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,
|
2021-10-09 20:12:06 +02:00
|
|
|
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)
|