ddstats-server/schemas/Finish.js

10 lines
276 B
JavaScript
Raw Normal View History

2021-09-26 18:06:31 +02:00
import mongoose from 'mongoose'
2021-09-25 17:47:05 +02:00
2021-09-26 18:06:31 +02:00
const Finish = new mongoose.Schema({
map: { type: mongoose.Schema.ObjectId, ref: 'Level' },
time: Number,
2021-09-25 17:47:05 +02:00
time: Date,
2021-09-29 20:53:24 +02:00
player: { type: mongoose.Schema.ObjectId, ref: 'Player' }
2021-09-25 17:47:05 +02:00
})
2021-09-26 18:06:31 +02:00
export default mongoose.model("Finish", Finish)