ddstats-server/schemas/Finish.js

17 lines
335 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: 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,
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)