ludo-web-multiplayer/backend/schemas/player.js
2023-11-12 13:35:47 +01:00

13 lines
275 B
JavaScript

const mongoose = require('mongoose');
const Schema = mongoose.Schema;
const PlayerSchema = new Schema({
name: String,
color: String,
ready: { type: Boolean, default: false },
nowMoving: { type: Boolean, default: false },
});
module.exports = PlayerSchema;