Add team model and basic team endpoints

This commit is contained in:
2020-11-01 13:55:05 -06:00
parent 9ffe5b3d46
commit 2d2f335b9c
2 changed files with 72 additions and 0 deletions

25
app/models/Team.model.js Normal file
View File

@@ -0,0 +1,25 @@
const { Model } = require('flitter-orm')
/*
* Team Model
* -------------------------------------------------------------
*/
class Team extends Model {
static get services() {
return [...super.services, 'output']
}
/*
* Define the flitter-orm schema of the model.
*/
static get schema() {
return {
user_id: String,
team_name: String,
team_num: Number,
player_ids: [String],
}
}
}
module.exports = exports = Team