Issue 1: repo scaffold and project structure

This commit is contained in:
Johnny 5
2026-06-07 19:20:02 +00:00
parent e0b31009b7
commit a70bdeaa5e
52 changed files with 6750 additions and 0 deletions
+13
View File
@@ -0,0 +1,13 @@
"""Database engine and session management."""
from sqlmodel import Session, create_engine
from ten31portal.config import DB_PATH
engine = create_engine(f"sqlite:///{DB_PATH}", echo=False)
def get_session():
"""FastAPI dependency that yields a database session."""
with Session(engine) as session:
yield session