feat: added seseion for sqlite, alembic and ruff, model Timerr, schemas.py, mixin for id, cruds: create timer, get timer, settings.py for db

This commit is contained in:
Arduinum628
2025-05-08 10:59:28 +03:00
parent 546c8885ac
commit 310f7c2680
19 changed files with 1001 additions and 33 deletions

View File

@@ -0,0 +1,13 @@
from sqlalchemy.orm import Mapped, mapped_column
from sqlalchemy import Integer
class IDMixin:
"""Базовый класс для моделей с id"""
id: Mapped[int] = mapped_column(
Integer,
name='id',
primary_key=True,
autoincrement=True
)