ddstats-server/schemas/Player.js

17 lines
365 B
JavaScript

import mongoose from 'mongoose'
const Player = new mongoose.Schema({
name: String,
points: Number,
rankPoints: Number,
teamPoints: Number,
pointsThisWeek: Number,
pointsThisMonth: Number,
firstFinish: Date
})
/**
* This cotains the mongoose 'Player' model.
* @module schemas/Player
*/
export default mongoose.model("Player", Player)