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({
|
2021-09-29 21:43:41 +02:00
|
|
|
map: String,
|
2021-09-26 18:06:31 +02:00
|
|
|
time: Number,
|
2021-09-29 21:03:30 +02:00
|
|
|
date: Date,
|
2021-09-29 21:16:51 +02:00
|
|
|
serverLocation: String,
|
2021-09-29 21:43:41 +02:00
|
|
|
player: String
|
2021-09-25 17:47:05 +02:00
|
|
|
})
|
|
|
|
|
2021-10-11 22:47:34 +02:00
|
|
|
Finish.index({ player: 1, map: 1 })
|
|
|
|
|
2021-10-06 20:36:20 +02:00
|
|
|
/**
|
|
|
|
* This cotains the mongoose 'Finish' model.
|
|
|
|
* @module schemas/Finish
|
|
|
|
*/
|
2021-09-26 18:06:31 +02:00
|
|
|
export default mongoose.model("Finish", Finish)
|