initial commit

This commit is contained in:
2025-05-25 22:09:31 +02:00
commit e8b832addc
19 changed files with 1177 additions and 0 deletions

13
app/api/deps.py Normal file
View File

@@ -0,0 +1,13 @@
from collections.abc import Generator
from typing import Annotated
from fastapi import Depends
from sqlmodel import Session
from app.core.db import engine
def get_db() -> Generator[Session, None, None]:
with Session(engine) as session:
yield session
SessionDep = Annotated[Session, Depends(get_db)]