e59db34a6d
- K-REG: GET /api/v1/compliance/ai-registry — lists all agents with ai_use_case_metadata - K-DPIA: GET /api/v1/compliance/dpia-template — pre-filled DPIA template export - K-INC: ComplianceIncident model, Migration 0133 (RLS), CRUD routes (admin-only) - K-RET: GET/PATCH /api/v1/compliance/retention-policies — 5 policies editable - K-COMP-TEST: 12/12 integration tests pass - K-DOC: docs/compliance.md — Betriebsdoku - Frontend: ComplianceTab.tsx in SettingsAI.tsx (new tab) - 13 files created/modified
89 lines
2.7 KiB
Python
89 lines
2.7 KiB
Python
"""SQLAlchemy models for LeoCRM."""
|
|
|
|
from app.models.address import Address
|
|
from app.models.ai_conversation import AIConversation, AIMessage
|
|
from app.models.attachment import Attachment
|
|
from app.models.audit import AuditLog
|
|
from app.models.auth import ApiToken, PasswordResetToken
|
|
from app.models.backup import Backup
|
|
from app.models.bank_account import BankAccount
|
|
from app.models.consumer_inbox import ConsumerInbox
|
|
from app.models.compliance import ComplianceIncident
|
|
from app.models.contact import Contact, ContactPerson
|
|
from app.models.contact_folder import ContactFolder
|
|
from app.models.contact_merge import ContactMergeHistory
|
|
from app.models.currency import Currency
|
|
from app.models.custom_field_definition import CustomFieldDefinition
|
|
from app.models.entity_history import EntityHistory
|
|
from app.models.entity_permission import EntityPermission
|
|
from app.models.entity_policy import EntityPolicy
|
|
from app.models.group import Group, UserGroup
|
|
from app.models.notification import Notification, NotificationPreference, NotificationType
|
|
from app.models.owned_mixin import OwnedMixin
|
|
from app.models.permission_delegation import PermissionDelegation
|
|
from app.models.permission_template import PermissionTemplate
|
|
from app.models.plugin import Plugin, PluginMigration
|
|
from app.models.role import Role
|
|
from app.models.saved_view import SavedView
|
|
from app.models.sequence import Sequence
|
|
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.user import User, UserTenant
|
|
from app.models.webhook import Webhook
|
|
from app.models.workflow import Workflow, WorkflowInstance, WorkflowStepHistory
|
|
|
|
__all__ = [
|
|
"Tenant",
|
|
"User",
|
|
"UserTenant",
|
|
"Role",
|
|
"Group",
|
|
"UserGroup",
|
|
"Session",
|
|
"AuditLog",
|
|
"Notification",
|
|
"NotificationType",
|
|
"NotificationPreference",
|
|
"PasswordResetToken",
|
|
"ApiToken",
|
|
"ComplianceIncident",
|
|
"Contact",
|
|
"ContactPerson",
|
|
"ContactFolder",
|
|
"ContactMergeHistory",
|
|
"EntityPermission",
|
|
"ConsumerInbox",
|
|
"PermissionDelegation",
|
|
"PermissionTemplate",
|
|
"EntityPolicy",
|
|
"OwnedMixin",
|
|
"EntityHistory",
|
|
"Currency",
|
|
"TaxRate",
|
|
"Sequence",
|
|
"SystemSettings",
|
|
"Attachment",
|
|
"Address",
|
|
"BankAccount",
|
|
"Plugin",
|
|
"PluginMigration",
|
|
"AIConversation",
|
|
"AIMessage",
|
|
"Backup",
|
|
"CustomFieldDefinition",
|
|
"Webhook",
|
|
"Workflow",
|
|
"WorkflowInstance",
|
|
"WorkflowStepHistory",
|
|
"SavedView",
|
|
]
|
|
from app.models.entity_attachment import EntityAttachment # noqa: F401
|
|
from app.models.workspace import ( # noqa: F401
|
|
Workspace,
|
|
WorkspaceModule,
|
|
WorkspaceUser,
|
|
WorkspaceWidget,
|
|
)
|