Update database paths and fix foreign key references across coordinator API

- Change SQLite database path from `/home/oib/windsurf/aitbc/data/` to `/opt/data/`
- Fix foreign key references to use correct table names (users, wallets, gpu_registry)
- Replace governance router with new governance and community routers
- Add multi-modal RL router to main application
- Simplify DEPLOYMENT_READINESS_REPORT.md to focus on production deployment status
- Update governance router with decentralized DAO voting
This commit is contained in:
oib
2026-02-26 19:32:06 +01:00
parent 1e2ea0bb9d
commit 7bb2905cca
89 changed files with 38245 additions and 1260 deletions

View File

@@ -27,7 +27,7 @@ class DatabaseConfig(BaseSettings):
# Default SQLite path
if self.adapter == "sqlite":
return "sqlite:///../data/coordinator.db"
return "sqlite:////opt/data/coordinator.db"
# Default PostgreSQL connection string
return f"{self.adapter}://localhost:5432/coordinator"
@@ -118,7 +118,7 @@ class Settings(BaseSettings):
if self.database.url:
return self.database.url
# Default SQLite path for backward compatibility
return "sqlite:////home/oib/windsurf/aitbc/data/coordinator.db"
return "sqlite:////opt/data/coordinator.db"
@database_url.setter
def database_url(self, value: str):