Static Public Attributes |
tuple | id = Column(Integer(unsigned=True), primary_key=True) |
tuple | user_id = Column(Integer(unsigned=True), ForeignKey('users.id'), nullable=False) |
tuple | challenge_id = Column(Integer(unsigned=True), ForeignKey('challenges.id'), nullable=False) |
tuple | challenge_type_id |
tuple | points = Column(SmallInteger(unsigned=True), nullable=False) |
tuple | created_at = Column(DateTime, nullable=False, default=current_timestamp) |
tuple | user |
tuple | challenge |
tuple | query = DBSession.query_property() |
list | index_fields = [] |
Detailed Description
Definition at line 11 of file workout.py.
Member Data Documentation
dictionary wowf.models.workout.Workout.__mapper_args__ = {'polymorphic_on': 'challenge_type_id', 'with_polymorphic': '*'} |
|
staticprivate |
string wowf.models.workout.Workout.__tablename__ = 'workouts' |
|
staticprivate |
tuple wowf.models.workout.Workout.challenge |
|
static |
Initial value:relationship(
'Challenge', lazy='joined', backref=backref('workouts', lazy='dynamic'))
Definition at line 26 of file workout.py.
tuple wowf.models.workout.Workout.challenge_id = Column(Integer(unsigned=True), ForeignKey('challenges.id'), nullable=False) |
|
static |
tuple wowf.models.workout.Workout.challenge_type_id |
|
static |
Initial value:Column(
Integer(unsigned=True), ForeignKey('challenge_types.id', ondelete='cascade'),
nullable=False)
Definition at line 18 of file workout.py.
tuple wowf.models.workout.Workout.created_at = Column(DateTime, nullable=False, default=current_timestamp) |
|
static |
tuple wowf.models.workout.Workout.id = Column(Integer(unsigned=True), primary_key=True) |
|
static |
tuple wowf.models.workout.Workout.points = Column(SmallInteger(unsigned=True), nullable=False) |
|
static |
tuple wowf.models.workout.Workout.user |
|
static |
Initial value:relationship(
'User', lazy='joined', backref=backref('workouts', lazy='dynamic'))
Definition at line 24 of file workout.py.
tuple wowf.models.workout.Workout.user_id = Column(Integer(unsigned=True), ForeignKey('users.id'), nullable=False) |
|
static |
The documentation for this class was generated from the following file: