basic components and schema added
This commit is contained in:
@@ -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 );
|
||||
Reference in New Issue
Block a user