Files
dwroller/database/playerModel.js
2025-08-15 10:35:27 +02:00

15 lines
418 B
JavaScript
Executable File

const mongoose = require('mongoose');
const playerSchema = new mongoose.Schema({
name: { type: String, required: true },
rollerInfo: { type: Object, default: {} },
shopInfo: { type: Object, default: {} },
tabInfo: { type: Object, default: {} },
pw: { type: String, default: '' },
pwHash: { type: String, default: '' },
});
const Player = mongoose.model('Player', playerSchema);
module.exports = Player;