refactor: tighten backend, flows, frontend, tests; push flows to Langflow
This commit is contained in:
parent
6688fb08c6
commit
06ab25fb47
31 changed files with 783 additions and 358 deletions
|
|
@ -44,6 +44,11 @@ def get_session() -> Iterator[Session]:
|
|||
yield session
|
||||
|
||||
|
||||
def get_db() -> Iterator[Session]:
|
||||
"""Single FastAPI DB dependency (all routers import this)."""
|
||||
yield from get_session()
|
||||
|
||||
|
||||
def create_all(url: str | None = None) -> None:
|
||||
"""Create tables directly (dev convenience; migrations own prod schema)."""
|
||||
SQLModel.metadata.create_all(get_engine(url))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue