with some tests

This commit is contained in:
counterweight 2025-12-18 21:48:41 +01:00
parent a764c92a0b
commit 0995e1cc77
Signed by: counterweight
GPG key ID: 883EDBAA726BD96C
18 changed files with 3020 additions and 16 deletions

11
backend/models.py Normal file
View file

@ -0,0 +1,11 @@
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)