GPQBot
1from sqlalchemy import DateTime, func2from sqlalchemy.orm import Mapped, mapped_column3
4from app.db.sqlalchemy import Base5
6
7class FidbackModel(Base):8"""Simple database model for example."""9
10__tablename__ = "fidback"11
12id: Mapped[int] = mapped_column(13primary_key=True, autoincrement=True14) # noqa: WPS12515subdivision:Mapped[str]16division: Mapped[str]17discription:Mapped[str]18time_at:Mapped[str] = mapped_column(DateTime, server_default=func.now())19
20def __repr__(self) -> str:21"""Show string representation of record."""22return self.time_at