Files
multiplayer-stickfigure-game/API/room.model.js
Johnathon Slightham 71017cc5b6 updated
2021-09-07 12:53:34 -04:00

19 lines
338 B
JavaScript

const mongoose = require('mongoose');
const Schema = mongoose.Schema;
// Define collection and schema for Post
let Room = new Schema({
title: {
type: String
},
members: {
type: Array
},
game: {
type: String
}
}, {
collection: 'rooms'
});
module.exports = mongoose.model('Room', Room);