Add db & pydantic models + set up alembic

This commit is contained in:
2025-06-02 08:18:12 +02:00
parent fa0530e18c
commit aa64491313
33 changed files with 648 additions and 16 deletions
+9
View File
@@ -0,0 +1,9 @@
from sqlmodel import Session, create_engine, select
from app.config import settings
from app.models import Client, Supplier
engine = create_engine(str(settings.SQLALCHEMY_DATABASE_URI))
def init_db(session: Session) -> None:
""""""