Skip to content

exhibits#

Exhibits Database Model

Exhibits #

Bases: IDMixin, CreatedUpdatedMixin, DeletedAtMixin, Base

Exhibits Database Model

Source code in zoo/models/exhibits.py
class Exhibits(IDMixin, CreatedUpdatedMixin, DeletedAtMixin, Base):
    """
    Exhibits Database Model
    """

    __tablename__ = "exhibits"

    name: Mapped[str]
    description: Mapped[str] = mapped_column(default=None, nullable=True)
    location: Mapped[str] = mapped_column(default=None, nullable=True)

    animals: Mapped[List["Animals"]] = relationship(back_populates="exhibit")
    staff: Mapped[List["Staff"]] = relationship(back_populates="exhibit")