Files
bakery-ia/services/notification/app/models/__init__.py

41 lines
944 B
Python
Raw Normal View History

2025-09-30 13:32:51 +02:00
"""
Notification Service Models Package
Import all models to ensure they are registered with SQLAlchemy Base.
"""
# Import AuditLog model for this service
from shared.security import create_audit_log_model
from shared.database.base import Base
# Create audit log model for this service
AuditLog = create_audit_log_model(Base)
2025-09-30 13:32:51 +02:00
# Import all models to register them with the Base metadata
from .notifications import (
Notification,
2025-10-01 11:24:06 +02:00
NotificationTemplate,
2025-09-30 13:32:51 +02:00
NotificationType,
NotificationStatus,
NotificationPriority,
NotificationPreference,
NotificationLog,
)
from .templates import (
EmailTemplate,
WhatsAppTemplate,
)
# List all models for easier access
__all__ = [
"Notification",
2025-10-01 11:24:06 +02:00
"NotificationTemplate",
2025-09-30 13:32:51 +02:00
"NotificationType",
"NotificationStatus",
"NotificationPriority",
"NotificationPreference",
"NotificationLog",
"EmailTemplate",
"WhatsAppTemplate",
"AuditLog",
2025-09-30 13:32:51 +02:00
]