Spaces:
Running
Running
axeronis commited on
Commit ·
cb42cc9
1
Parent(s): 0482a4b
fix: include NovaMessage in init_db for auto table creation
Browse files
backend/app/core/database.py
CHANGED
|
@@ -57,7 +57,7 @@ async_session_maker = async_sessionmaker(
|
|
| 57 |
async def init_db():
|
| 58 |
"""Initialize database: create tables and enable extensions."""
|
| 59 |
# Import all models to ensure they're registered with SQLModel
|
| 60 |
-
from app.models import Tenant, Partner, Lead, KnowledgeBase, User
|
| 61 |
|
| 62 |
async with async_engine.begin() as conn:
|
| 63 |
# Enable pgvector extension
|
|
|
|
| 57 |
async def init_db():
|
| 58 |
"""Initialize database: create tables and enable extensions."""
|
| 59 |
# Import all models to ensure they're registered with SQLModel
|
| 60 |
+
from app.models import Tenant, Partner, Lead, KnowledgeBase, User, NovaMessage
|
| 61 |
|
| 62 |
async with async_engine.begin() as conn:
|
| 63 |
# Enable pgvector extension
|