pas.models.parliamentarian_role

Attributes

Role

PARLIAMENTARIAN_ROLES

PARTY_ROLES

PARLIAMENTARY_GROUP_ROLES

Classes

ParliamentarianRole

Mixin providing created/modified timestamps for all records.

Module Contents

pas.models.parliamentarian_role.Role: TypeAlias = Literal['none', 'member', 'vote_counter', 'vice_president', 'president'][source]
pas.models.parliamentarian_role.PARLIAMENTARIAN_ROLES: dict[Role, str][source]
pas.models.parliamentarian_role.PARTY_ROLES: dict[PartyRole, str][source]
pas.models.parliamentarian_role.PARLIAMENTARY_GROUP_ROLES: dict[PartyRole, str][source]
class pas.models.parliamentarian_role.ParliamentarianRole[source]

Bases: onegov.core.orm.Base, 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.

__tablename__ = 'pas_parliamentarian_roles'[source]
id: sqlalchemy.Column[uuid.UUID][source]
start: sqlalchemy.Column[datetime.date | None][source]
end: sqlalchemy.Column[datetime.date | None][source]
parliamentarian_id: sqlalchemy.Column[uuid.UUID][source]
parliamentarian: sqlalchemy.orm.relationship[onegov.pas.models.parliamentarian.Parliamentarian][source]
role: sqlalchemy.Column[Role][source]
property role_label: str[source]
party_id: sqlalchemy.Column[uuid.UUID | None][source]
party: sqlalchemy.orm.relationship[onegov.pas.models.party.Party | None][source]
party_role: sqlalchemy.Column[PartyRole][source]
property party_role_label: str[source]
parliamentary_group_id: sqlalchemy.Column[uuid.UUID | None][source]
parliamentary_group: sqlalchemy.orm.relationship[onegov.pas.models.parliamentary_group.ParliamentaryGroup | None][source]
parliamentary_group_role: sqlalchemy.Column[ParliamentaryGroupRole][source]
property parliamentary_group_role_label: str[source]
district: sqlalchemy.Column[str | None][source]
additional_information: sqlalchemy.Column[str | None][source]
__repr__() str[source]