Files
multiplayer-stickfigure-game/API/player.model.js
2021-02-20 03:43:23 -05:00

13 lines
263 B
JavaScript

const mongoose = require('mongoose');
const Schema = mongoose.Schema;
// Define collection and schema for Post
let Player = new Schema({
name: {
type: String
}
}, {
collection: 'players'
});
module.exports = mongoose.model('Player', Player);