models/Teams.js
// This object defines the relations to other models.
This object defines the relations to other models.
This object defines the relations to other models .
static get relationMappings() {
    return {
      users: {
        relation: Model.HasManyRelation,
        modelClass: `${__dirname}/Users`,
        join: {
          from: 'teams.id',
          to: 'users.team_id'
        }
      }
    };
  }
static get relationMappings ( ) { return { users : { relation : Model . HasManyRelation , modelClass : ` ${ __dirname } ` , join : { from : 'teams.id' , to : 'users.team_id' } } } ; }
This object defines the relations to other models.
This object defines the relations to other models .