File size: 651 Bytes
25732fb
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
import sys
from unittest.mock import MagicMock

# MOCK BROKEN DEPENDENCIES
mock_genai = MagicMock()
sys.modules['google'] = MagicMock()
sys.modules['google.generativeai'] = mock_genai
sys.modules['google.ai'] = MagicMock()
sys.modules['google.api_core'] = MagicMock()

from app import app, db
from models import AgentKnowledge, AgentMessage, AgentPerformance, ContentLibrary

with app.app_context():
    db.create_all()
    print("Database tables created successfully.")
    
    # Verify tables exist
    import sqlalchemy
    inspector = sqlalchemy.inspect(db.engine)
    tables = inspector.get_table_names()
    print(f"Existing tables: {tables}")