pas.models.parliamentarian_role =============================== .. py:module:: pas.models.parliamentarian_role Attributes ---------- .. autoapisummary:: pas.models.parliamentarian_role.Role pas.models.parliamentarian_role.PARLIAMENTARIAN_ROLES pas.models.parliamentarian_role.PARTY_ROLES pas.models.parliamentarian_role.PARLIAMENTARY_GROUP_ROLES Classes ------- .. autoapisummary:: pas.models.parliamentarian_role.ParliamentarianRole Module Contents --------------- .. py:type:: Role :canonical: Literal['none', 'member', 'vote_counter', 'vice_president', 'president'] .. py:data:: PARLIAMENTARIAN_ROLES :type: dict[Role, str] .. py:data:: PARTY_ROLES :type: dict[PartyRole, str] .. py:data:: PARLIAMENTARY_GROUP_ROLES :type: dict[PartyRole, str] .. py:class:: ParliamentarianRole Bases: :py:obj:`onegov.core.orm.Base`, :py:obj:`onegov.core.orm.mixins.TimestampMixin` Mixin providing created/modified timestamps for all records. The columns are deferred loaded as this is primarily for logging and future forensics. .. py:attribute:: __tablename__ :value: 'pas_parliamentarian_roles' .. py:attribute:: id :type: sqlalchemy.Column[uuid.UUID] .. py:attribute:: start :type: sqlalchemy.Column[datetime.date | None] .. py:attribute:: end :type: sqlalchemy.Column[datetime.date | None] .. py:attribute:: parliamentarian_id :type: sqlalchemy.Column[uuid.UUID] .. py:attribute:: parliamentarian :type: sqlalchemy.orm.relationship[onegov.pas.models.parliamentarian.Parliamentarian] .. py:attribute:: role :type: sqlalchemy.Column[Role] .. py:property:: role_label :type: str .. py:attribute:: party_id :type: sqlalchemy.Column[uuid.UUID | None] .. py:attribute:: party :type: sqlalchemy.orm.relationship[onegov.pas.models.party.Party | None] .. py:attribute:: party_role :type: sqlalchemy.Column[PartyRole] .. py:property:: party_role_label :type: str .. py:attribute:: parliamentary_group_id :type: sqlalchemy.Column[uuid.UUID | None] .. py:attribute:: parliamentary_group :type: sqlalchemy.orm.relationship[onegov.pas.models.parliamentary_group.ParliamentaryGroup | None] .. py:attribute:: parliamentary_group_role :type: sqlalchemy.Column[ParliamentaryGroupRole] .. py:property:: parliamentary_group_role_label :type: str .. py:attribute:: district :type: sqlalchemy.Column[str | None] .. py:attribute:: additional_information :type: sqlalchemy.Column[str | None] .. py:method:: __repr__() -> str