File size: 2,918 Bytes
09801ca
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
"""
Legacy ORM Compatibility Layer — Maps legacy database.orm imports to app.models.

This ensures 100% backward compatibility for v1 legacy endpoints while maintaining
a single unified 43-table production PostgreSQL schema.
"""

from app.models.base import Base
from app.models.user import User as UserProfile, UserPreferences
from app.models.auth import UserSession, RefreshToken, PasswordResetToken
from app.models.rbac import Role, Permission, RolePermission, UserRole
from app.models.data_hub import DataConnection, DataIngestionJob, LineageNode, LineageEdge
from app.models.ml import Project, Dataset, Experiment, Experiment as MLExperiment, MLModel as DeployedModel, TrainingJob
from app.models.platform import AuditLog, AuditLog as ActivityLog, APIKey as DeveloperAPIKey, SystemSetting, FileUpload as UserFile
from app.models.chat import Conversation, Message, UserMemory, AIInsight
from app.models.dashboard import Dashboard, Chart, ComputerVisionTask, Notification as NotificationSettings
from app.models.vector_rag import VectorStore, DocumentChunk, RAGQueryLog
from app.models.simulator import Simulation, SimulationVersion
from app.models.reports import Report, ScheduledReport
from app.models.collaboration import Workspace, WorkspaceMember, SharedLink, ChatChannel, ChannelMessage, MessageReaction
from app.models.developer import WebhookEndpoint, WebhookDelivery, APICallLog

# Legacy Aliases
User = UserProfile
AdminUser = UserRole
UserQuery = Message
SavedScenario = Simulation
DataStory = Report
VisualPipeline = LineageNode
AgentLog = AuditLog
PushToken = NotificationSettings
Notification = NotificationSettings
MLDeployment = DeployedModel
MLOpsDeployment = DeployedModel
MLOpsExperiment = MLExperiment
MLOpsPredictionLog = APICallLog
Webhook = WebhookEndpoint
BatchPredictionJob = TrainingJob
ABTestConfig = Experiment
MLRegistryModel = DeployedModel
MLRegistryVersion = TrainingJob
ReportHistory = Report
ReportTemplate = Report

__all__ = [
    "Base",
    "UserProfile",
    "User",
    "AdminUser",
    "UserPreferences",
    "Conversation",
    "Message",
    "UserFile",
    "UserQuery",
    "UserMemory",
    "NotificationSettings",
    "Notification",
    "PushToken",
    "AIInsight",
    "AgentLog",
    "DataConnection",
    "Dashboard",
    "Chart",
    "DataStory",
    "MLDeployment",
    "MLOpsDeployment",
    "MLOpsExperiment",
    "MLOpsPredictionLog",
    "Webhook",
    "VisualPipeline",
    "Simulation",
    "SavedScenario",
    "Report",
    "ScheduledReport",
    "ReportHistory",
    "ReportTemplate",
    "Workspace",
    "WorkspaceMember",
    "SharedLink",
    "ChatChannel",
    "ChannelMessage",
    "MessageReaction",
    "ActivityLog",
    "DeveloperAPIKey",
    "WebhookEndpoint",
    "WebhookDelivery",
    "APICallLog",
    "MLExperiment",
    "DeployedModel",
    "BatchPredictionJob",
    "ABTestConfig",
    "MLRegistryModel",
    "MLRegistryVersion",
]