Refactor models to improve consistency and relationships

Updated `Base` import to use centralized `app.core.database.Base` for consistency. Enhanced `TimestampMixin` and `UUIDMixin` with docstrings for clarity. Fixed metadata reference in `guest_gifts` table and added relationships in `email_template`.
This commit is contained in:
2025-02-28 09:21:02 +01:00
parent a924e0d5b2
commit 632330b4ac
4 changed files with 15 additions and 9 deletions

View File

@@ -2,7 +2,9 @@
Models package initialization.
Imports all models to ensure they're registered with SQLAlchemy.
"""
from .base import Base, TimestampMixin, UUIDMixin
# First import Base to avoid circular imports
from app.core.database import Base
from .base import TimestampMixin, UUIDMixin
# Import user model
from .user import User