diff --git a/schemas/Finish.js b/schemas/Finish.js index 072ad44..15d2a4a 100644 --- a/schemas/Finish.js +++ b/schemas/Finish.js @@ -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) \ No newline at end of file diff --git a/schemas/TeamFinish.js b/schemas/TeamFinish.js index 89fc1d7..f05033a 100644 --- a/schemas/TeamFinish.js +++ b/schemas/TeamFinish.js @@ -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) \ No newline at end of file