arbret/backend/models.py

12 lines
294 B
Python
Raw Normal View History

2025-12-18 21:48:41 +01:00
from sqlalchemy import Integer
from sqlalchemy.orm import Mapped, mapped_column
from database import Base
class Counter(Base):
__tablename__ = "counter"
id: Mapped[int] = mapped_column(Integer, primary_key=True, default=1)
value: Mapped[int] = mapped_column(Integer, default=0)