seriesmarker.persistence.model.role_extra module¶
-
class
RoleExtra
(**kwargs)[source]¶ Bases:
sqlalchemy.ext.declarative.api.Base
This class stores extra information about a role, e.g., its image URL.
-
__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 0x7f122dbbe438; RoleExtra>¶
-
__table__
= Table('role_extra', MetaData(bind=None), Column('id', Integer(), table=<role_extra>, primary_key=True, nullable=False), Column('role_id', Integer(), ForeignKey('role.id'), table=<role_extra>), Column('BannerURL', String(), table=<role_extra>), schema=None)¶
-
__tablename__
= 'role_extra'¶
-
_sa_class_manager
= <ClassManager of <class 'seriesmarker.persistence.model.role_extra.RoleExtra'> at 7f122dbbd638>¶
-
id
¶
-
image_url
¶
-
role_id
¶
-