17 lines
352 B
JavaScript
17 lines
352 B
JavaScript
import mongoose from 'mongoose'
|
|
|
|
const Level = new mongoose.Schema({
|
|
name: String,
|
|
mapper: String,
|
|
release: Date,
|
|
category: String,
|
|
rating: Number,
|
|
awardPoints: Number,
|
|
totalFinishes: Number
|
|
})
|
|
|
|
/**
|
|
* This cotains the mongoose 'Level' (maps) model.
|
|
* @module schemas/Level
|
|
*/
|
|
export default mongoose.model("Level", Level) |