Finishes now use string instead of IDs.
This commit is contained in:
parent
555bea83ff
commit
c97f75a982
|
@ -1,11 +1,11 @@
|
|||
import mongoose from 'mongoose'
|
||||
|
||||
const Finish = new mongoose.Schema({
|
||||
map: { type: mongoose.Schema.ObjectId, ref: 'Level' },
|
||||
map: String,
|
||||
time: Number,
|
||||
date: Date,
|
||||
serverLocation: String,
|
||||
player: { type: mongoose.Schema.ObjectId, ref: 'Player' }
|
||||
player: String
|
||||
})
|
||||
|
||||
export default mongoose.model("Finish", Finish)
|
|
@ -1,11 +1,11 @@
|
|||
import mongoose from 'mongoose'
|
||||
|
||||
const TeamFinish = new mongoose.Schema({
|
||||
map: { type: mongoose.Schema.ObjectId, ref: 'Level' },
|
||||
map: String,
|
||||
time: Number,
|
||||
date: Date,
|
||||
serverLocation: String,
|
||||
players: [{ type: mongoose.Schema.ObjectId, ref: 'Player' }]
|
||||
players: [ String ]
|
||||
})
|
||||
|
||||
export default mongoose.model("TeamFinish", TeamFinish)
|
Loading…
Reference in New Issue
Block a user