Initial Switch to V2. Completely Overhauled Backend, Frontend and General Structure.
This commit is contained in:
23
backend/database/models.py
Normal file
23
backend/database/models.py
Normal file
@@ -0,0 +1,23 @@
|
||||
from database.postgres import Base # noqa: F401 — Base must be imported for Alembic autogenerate
|
||||
|
||||
# Import all ORM models here so Alembic autogenerate detects them.
|
||||
# Add each new model file as it is created.
|
||||
|
||||
# --- Existing ---
|
||||
from notes.orm import Entry, EntryLink # noqa: F401
|
||||
from tickets.orm import SupportTicket, TicketMessage # noqa: F401
|
||||
|
||||
# --- Phase 0 ---
|
||||
from shared.orm import MigrationRun, AuditLog # noqa: F401
|
||||
from crm.orm import ( # noqa: F401
|
||||
CrmProduct, CrmCustomer, CrmOrder,
|
||||
CrmCommsLog, CrmMedia, CrmSyncState,
|
||||
CrmQuotation, CrmQuotationItem,
|
||||
)
|
||||
from staff.orm import Staff # noqa: F401
|
||||
from settings.orm import ConsoleSetting, PublicFeature # noqa: F401
|
||||
from melodies.orm import MelodyDraft, BuiltMelody # noqa: F401
|
||||
from manufacturing.orm import MfgAuditLog # noqa: F401
|
||||
from devices.orm import DeviceAlert # noqa: F401
|
||||
# NOTE: device_logs, commands, heartbeats are partitioned/raw-SQL tables —
|
||||
# they are NOT ORM models and are created via op.execute() in the migration.
|
||||
Reference in New Issue
Block a user