- Move get_db to main.py for cleaner separation of concerns - Remove engine/sessionmaker from database.py (keep only Base class) - Fix config.py: add +asyncpg to database_url, remove @dataclass - Add lifespan context manager for engine lifecycle - Add docker-compose.yml for web + postgres services - Add web/Dockerfile for containerized FastAPI app - Add web/.env.example as environment template |
||
|---|---|---|
| .. | ||
| models | ||
| routers | ||
| __init__.py | ||
| config.py | ||
| database.py | ||
| main.py | ||