GPQBot
1from sqlalchemy import DateTime, func
2from sqlalchemy.orm import Mapped, mapped_column
3
4from app.db.sqlalchemy import Base
5
6
7class FidbackModel(Base):
8"""Simple database model for example."""
9
10__tablename__ = "fidback"
11
12id: Mapped[int] = mapped_column(
13primary_key=True, autoincrement=True
14) # noqa: WPS125
15subdivision: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