first commit

This commit is contained in:
Beyhan Oğur
2026-04-26 22:25:19 +03:00
commit 361dbef019
25 changed files with 814 additions and 0 deletions

10
app/db/session.py Normal file
View File

@@ -0,0 +1,10 @@
from sqlmodel import create_engine, Session
from app.core.config import settings
engine = create_engine(settings.DATABASE_URL, echo=False)
def get_session() -> Session:
with Session(engine) as session:
yield session