seriesmarker.persistence.model.genre module

class Genre(**kwargs)[source]

Bases: sqlalchemy.ext.declarative.api.Base

This class stores information about a genre, assigned to 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 0x7f122db88550; Genre>
__repr__()[source]
__table__ = Table('genre', MetaData(bind=None), Column('id', Integer(), table=<genre>, primary_key=True, nullable=False), Column('series_id', Integer(), ForeignKey('series.id'), table=<genre>), Column('name', String(), table=<genre>), schema=None)
__tablename__ = 'genre'
_sa_class_manager = <ClassManager of <class 'seriesmarker.persistence.model.genre.Genre'> at 7f122db8d1d8>
id
name
series_id