Initial Websockets, Rooms & Players done

This commit is contained in:
Johnathon Slightham
2021-02-20 03:43:23 -05:00
parent eb946e93be
commit d9da392ae8
18 changed files with 3964 additions and 104 deletions

16
API/room.model.js Normal file
View File

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