B1: Fix duplicate __all__ in models/__init__.py — merged into single block with all models, no duplicates
This commit is contained in:
+9
-32
@@ -1,48 +1,21 @@
|
|||||||
"""SQLAlchemy models for LeoCRM."""
|
"""SQLAlchemy models for LeoCRM."""
|
||||||
|
|
||||||
|
from app.models.ai_conversation import AIConversation, AIMessage
|
||||||
|
from app.models.attachment import Attachment
|
||||||
from app.models.audit import AuditLog, DeletionLog
|
from app.models.audit import AuditLog, DeletionLog
|
||||||
from app.models.auth import ApiToken, PasswordResetToken
|
from app.models.auth import ApiToken, PasswordResetToken
|
||||||
from app.models.company import Company
|
from app.models.company import Company
|
||||||
from app.models.contact import CompanyContact, Contact
|
from app.models.contact import CompanyContact, Contact
|
||||||
from app.models.currency import Currency
|
from app.models.currency import Currency
|
||||||
from app.models.tax import TaxRate
|
|
||||||
from app.models.sequence import Sequence
|
|
||||||
from app.models.system_settings import SystemSettings
|
|
||||||
from app.models.attachment import Attachment
|
|
||||||
from app.models.notification import Notification
|
from app.models.notification import Notification
|
||||||
from app.models.plugin import Plugin, PluginMigration
|
from app.models.plugin import Plugin, PluginMigration
|
||||||
from app.models.role import Role
|
from app.models.role import Role
|
||||||
|
from app.models.sequence import Sequence
|
||||||
from app.models.session import Session
|
from app.models.session import Session
|
||||||
|
from app.models.system_settings import SystemSettings
|
||||||
|
from app.models.tax import TaxRate
|
||||||
from app.models.tenant import Tenant
|
from app.models.tenant import Tenant
|
||||||
from app.models.user import User, UserTenant
|
from app.models.user import User, UserTenant
|
||||||
|
|
||||||
__all__ = [
|
|
||||||
"Tenant",
|
|
||||||
"User",
|
|
||||||
"UserTenant",
|
|
||||||
"Role",
|
|
||||||
"Session",
|
|
||||||
"AuditLog",
|
|
||||||
"DeletionLog",
|
|
||||||
"Notification",
|
|
||||||
"PasswordResetToken",
|
|
||||||
"ApiToken",
|
|
||||||
"Company",
|
|
||||||
"Contact",
|
|
||||||
"CompanyContact",
|
|
||||||
"Currency",
|
|
||||||
"TaxRate",
|
|
||||||
"Sequence",
|
|
||||||
"SystemSettings",
|
|
||||||
"Attachment",
|
|
||||||
"Attachment",
|
|
||||||
"SystemSettings",
|
|
||||||
"Sequence",
|
|
||||||
"TaxRate",
|
|
||||||
"Plugin",
|
|
||||||
"PluginMigration",
|
|
||||||
]
|
|
||||||
from app.models.ai_conversation import AIConversation, AIMessage
|
|
||||||
from app.models.workflow import Workflow, WorkflowInstance, WorkflowStepHistory
|
from app.models.workflow import Workflow, WorkflowInstance, WorkflowStepHistory
|
||||||
|
|
||||||
__all__ = [
|
__all__ = [
|
||||||
@@ -60,6 +33,10 @@ __all__ = [
|
|||||||
"Contact",
|
"Contact",
|
||||||
"CompanyContact",
|
"CompanyContact",
|
||||||
"Currency",
|
"Currency",
|
||||||
|
"TaxRate",
|
||||||
|
"Sequence",
|
||||||
|
"SystemSettings",
|
||||||
|
"Attachment",
|
||||||
"Plugin",
|
"Plugin",
|
||||||
"PluginMigration",
|
"PluginMigration",
|
||||||
"AIConversation",
|
"AIConversation",
|
||||||
|
|||||||
Reference in New Issue
Block a user