pas.models.commission_membership ================================ .. py:module:: pas.models.commission_membership Attributes ---------- .. autoapisummary:: pas.models.commission_membership.MembershipRole pas.models.commission_membership.ROLES Classes ------- .. autoapisummary:: pas.models.commission_membership.CommissionMembership Module Contents --------------- .. py:type:: MembershipRole :canonical: Literal['guest', 'member', 'extended_member', 'president'] .. py:data:: ROLES :type: dict[MembershipRole, str] .. py:class:: CommissionMembership 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_commission_memberships' .. 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:: role :type: sqlalchemy.Column[MembershipRole] .. py:property:: role_label :type: str .. py:attribute:: commission_id :type: sqlalchemy.Column[uuid.UUID] .. py:attribute:: commission :type: sqlalchemy.orm.relationship[onegov.pas.models.commission.Commission] .. py:attribute:: parliamentarian_id :type: sqlalchemy.Column[uuid.UUID] .. py:attribute:: parliamentarian :type: sqlalchemy.orm.relationship[onegov.pas.models.parliamentarian.Parliamentarian] .. py:method:: __repr__() -> str