feat(db): T06 create database connection and session management
- Add database.py with SQLAlchemy engine and session - Implement get_db() for FastAPI dependency injection - Implement init_db() for table creation - Use SQLAlchemy 2.0 declarative_base() syntax - Add comprehensive tests with 100% coverage Tests: 11 passed, 100% coverage
This commit is contained in:
@@ -44,9 +44,9 @@
|
||||
- [x] T04: Setup file configurazione (.env, config.py) (2024-04-07)
|
||||
- [x] T05: Configurare pytest e struttura test (2024-04-07)
|
||||
|
||||
### 🗄️ Database & Models (T06-T11) - 0/6 completati
|
||||
- [ ] T06: Creare database.py (connection & session)
|
||||
- [ ] T07: Creare model User (SQLAlchemy)
|
||||
### 🗄️ Database & Models (T06-T11) - 1/6 completati
|
||||
- [x] T06: Creare database.py (connection & session) - ✅ Completato (2026-04-07 11:00)
|
||||
- [ ] T07: Creare model User (SQLAlchemy) - 🟡 In progress
|
||||
- [ ] T08: Creare model ApiKey (SQLAlchemy)
|
||||
- [ ] T09: Creare model UsageStats (SQLAlchemy)
|
||||
- [ ] T10: Creare model ApiToken (SQLAlchemy)
|
||||
|
||||
Reference in New Issue
Block a user