ramp_database.model.Team

class ramp_database.model.Team(name, admin, is_individual=True)

Team table.

Parameters
namestr

The name of the team.

adminramp_database.model.User

The admin user of the team.

is_individualbool

This team is an individual team.

Attributes
idint

The ID of the table row.

namestr

The name of the team.

admin_idint

The ID of the admin user.

adminramp_database.model.User

The admin user instance.

team_eventsramp_database.model.EventTeam

A back-reference to the events to which the team is enroll.

__init__(name, admin, is_individual=True)

A simple constructor that allows initialization from kwargs.

Sets attributes on the constructed instance using the names and values in kwargs.

Only keys that are present as attributes of the instance’s class are allowed. These could be, for example, any mapped columns or relationships.