Spaces:
Running
Running
const { ObjectId } = require("bson"); | |
const { default: mongoose } = require("mongoose"); | |
const Schema = mongoose.Schema; | |
const userSchema = new Schema({ | |
Round: { | |
type: Number, | |
}, | |
RoomID: { | |
type: Schema.Types.ObjectId, | |
ref: "Room" | |
}, | |
TeamID: { | |
type: Schema.Types.ObjectId, | |
ref: "Team" | |
}, | |
}); | |
module.exports = mongoose.model("PreviousRoom", userSchema); |