create skeleton for lab 4

This commit is contained in:
2026-11-04 21:27:54 +03:00
parent ec540a1a72
commit 8503c1b6cd
133 changed files with 10856 additions and 40 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)