basic components and schema added

This commit is contained in:
Wenszel
2021-03-13 16:01:03 +01:00
parent 5e52ff6fe4
commit 3b6fa7eab6
7 changed files with 79 additions and 2 deletions
+13
View File
@@ -0,0 +1,13 @@
var mongoose = require('mongoose');
var Schema = mongoose.Schema;
var GameRoomSchema = new Schema({
id: Number,
createDate: Date,
started: Boolean,
players: Array,
positions: Map
});
var GameRoomModel = mongoose.model('GameRoomModel', GameRoomSchema );