12ff8c680f
added JSDoc style comments to the backend
27 lines
619 B
JavaScript
27 lines
619 B
JavaScript
const { Model } = require('flitter-orm')
|
|
/**
|
|
* Weekly Team Stat model
|
|
* @extends Model
|
|
* ---------------------------------------------------------------------------
|
|
*/
|
|
class WeeklyTeamStat extends Model {
|
|
static get services() {
|
|
return [...super.services, 'models']
|
|
}
|
|
|
|
/**
|
|
* defines the schema of the particular model
|
|
*/
|
|
static get schema() {
|
|
return {
|
|
team_id: String,
|
|
lineup_id: String,
|
|
week_num: Number,
|
|
player_ids: [String],
|
|
fantasy_points: Number,
|
|
}
|
|
}
|
|
}
|
|
|
|
module.exports = exports = WeeklyTeamStat
|