ddstats-server/schemas/Level.js

17 lines
352 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 Level = new mongoose.Schema({
2021-09-25 17:47:05 +02:00
name: String,
mapper: String,
release: Date,
category: String,
rating: Number,
awardPoints: Number,
totalFinishes: Number
2021-09-25 17:47:05 +02:00
})
2021-10-06 20:36:20 +02:00
/**
* This cotains the mongoose 'Level' (maps) model.
* @module schemas/Level
*/
2021-09-26 18:06:31 +02:00
export default mongoose.model("Level", Level)