seriesmarker.persistence.model.season module

class Season(**kwargs)[source]

Bases: sqlalchemy.ext.declarative.api.Base

This class stores information about a season of a series.

__init__(**kwargs)

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.

__mapper__ = <Mapper at 0x7f122dbd16a0; Season>
__repr__()[source]
__table__ = Table('season', MetaData(bind=None), Column('id', Integer(), table=<season>, primary_key=True, nullable=False), Column('series_id', Integer(), ForeignKey('series.id'), table=<season>), Column('SeasonNumber', Integer(), table=<season>), Column('banner_id', Integer(), ForeignKey('banner.id'), table=<season>), schema=None)
__tablename__ = 'season'
_sa_class_manager = <ClassManager of <class 'seriesmarker.persistence.model.season.Season'> at 7f122dbcf908>
banner
banner_id
episodes
id
season_number
series_id