from models.conversation_model import Conversation
from models.message_model import Message
from models.hr_query_log import HRQueryLog
from models.quota_policy import QuotaPolicy
from models.server_ip_log import ServerIPLog
from models.token_usage_log import TokenUsageLog
from models.erp_api_call_log import ErpApiCallLog
from models.intent_cache import IntentCache
from models.ai_action_audit_log import AiActionAuditLog
from models.voice_transcription import VoiceTranscription
from models.feature_flag import FeatureFlag

# alembic/env.py does `from models import *` and uses Base.metadata as its
# autogenerate target, so a model missing from __all__ never registers on the
# metadata — and the next `alembic revision --autogenerate` emits a DROP TABLE
# for it. AiActionAuditLog was missing here while its table and migration
# existed, which would have silently dropped the FR-07.4 audit trail.
# Anything added under models/ must be listed here.
__all__ = [
    "Conversation",
    "Message",
    "HRQueryLog",
    "QuotaPolicy",
    "ServerIPLog",
    "TokenUsageLog",
    "ErpApiCallLog",
    "IntentCache",
    "AiActionAuditLog",
    "VoiceTranscription",
    "FeatureFlag",
]
