feat: add PostgreSQL persistence layer

- adapters: SQLAlchemy implementations for all 4 repositories (Project, AssetLibrary, Asset, IngestJob)
- models: SQLAlchemy ORM models with proper schema
- database: connection config and session management
- tests: SQLAlchemy repository integration test (in-memory SQLite)
- all 7 integration tests passing
This commit is contained in:
Xiaoxia AI
2026-06-15 15:29:13 +08:00
parent d5504166ff
commit e4e2595e70
9 changed files with 292 additions and 0 deletions
+9
View File
@@ -0,0 +1,9 @@
from pydantic import BaseModel
class DatabaseSettings(BaseModel):
database_url: str = "postgresql://postgres:postgres@postgres:5432/xiaoxia_saas"
def get_database_settings() -> DatabaseSettings:
return DatabaseSettings()