Extends
- Model
Members
(static) schema
Define the flitter-orm schema of the model.
- Source:
Methods
(async, static) getForUser(user) → {Promise.<Team>}
Look up or create a team for the given user.
Parameters:
Name | Type | Description |
---|---|---|
user |
User |
- Source:
Returns:
- Type
- Promise.<Team>
(async) cumulative_data()
Get the cumulative data for the team (total wins, losses, points scored & allowed)
- Source:
Returns:
object
(async) lineup()
returns the lineup
- Source:
Returns:
Promise
(async) players()
Returns the players associated with the team.
- Source:
Returns:
Promise>
(async) to_api()
Cast the team to the format expected for the API.
- Source:
Returns:
Promise