- Auto-fixed 4,496 lint issues (import sorting, modern syntax, etc.) - Added ignore rules for patterns intentional in this codebase: E402 (late imports), E712 (SQLAlchemy filters), B904 (raise from), SIM108/SIM105/SIM117 (readability preferences) - Added per-file ignores for tests and scripts - Excluded broken scripts/rename_terminology.py (has curly quotes) Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
66 lines
1.4 KiB
Python
66 lines
1.4 KiB
Python
# app/modules/loyalty/models/__init__.py
|
|
"""
|
|
Loyalty module database models.
|
|
|
|
This is the canonical location for loyalty models. Module models are automatically
|
|
discovered and registered with SQLAlchemy's Base.metadata at startup.
|
|
|
|
Usage:
|
|
from app.modules.loyalty.models import (
|
|
LoyaltyProgram,
|
|
LoyaltyCard,
|
|
LoyaltyTransaction,
|
|
StaffPin,
|
|
AppleDeviceRegistration,
|
|
MerchantLoyaltySettings,
|
|
LoyaltyType,
|
|
TransactionType,
|
|
StaffPinPolicy,
|
|
)
|
|
"""
|
|
|
|
from app.modules.loyalty.models.apple_device import (
|
|
# Model
|
|
AppleDeviceRegistration,
|
|
)
|
|
from app.modules.loyalty.models.loyalty_card import (
|
|
# Model
|
|
LoyaltyCard,
|
|
)
|
|
from app.modules.loyalty.models.loyalty_program import (
|
|
# Model
|
|
LoyaltyProgram,
|
|
# Enums
|
|
LoyaltyType,
|
|
)
|
|
from app.modules.loyalty.models.loyalty_transaction import (
|
|
# Model
|
|
LoyaltyTransaction,
|
|
# Enums
|
|
TransactionType,
|
|
)
|
|
from app.modules.loyalty.models.merchant_settings import (
|
|
# Model
|
|
MerchantLoyaltySettings,
|
|
# Enums
|
|
StaffPinPolicy,
|
|
)
|
|
from app.modules.loyalty.models.staff_pin import (
|
|
# Model
|
|
StaffPin,
|
|
)
|
|
|
|
__all__ = [
|
|
# Enums
|
|
"LoyaltyType",
|
|
"TransactionType",
|
|
"StaffPinPolicy",
|
|
# Models
|
|
"LoyaltyProgram",
|
|
"LoyaltyCard",
|
|
"LoyaltyTransaction",
|
|
"StaffPin",
|
|
"AppleDeviceRegistration",
|
|
"MerchantLoyaltySettings",
|
|
]
|