created skeleton for lab 6

This commit is contained in:
2026-11-14 03:51:10 +03:00
parent 470d9d6f1e
commit 498ce1e0d2
144 changed files with 11428 additions and 21 deletions
+13
View File
@@ -0,0 +1,13 @@
from sqlalchemy import BigInteger, String
from sqlalchemy.orm import Mapped, mapped_column
from app.models.base import Base
class Counter(Base):
"""Именованный счётчик с атомарным обновлением."""
__tablename__ = "counters"
name: Mapped[str] = mapped_column(String(64), primary_key=True)
value: Mapped[int] = mapped_column(BigInteger)