107 lines
2.1 KiB
Python
107 lines
2.1 KiB
Python
from .auth import (
|
|
AppUser,
|
|
PasswordResetOtp,
|
|
Role,
|
|
UserRole,
|
|
Permission,
|
|
RolePermission,
|
|
Device,
|
|
DeviceChangeRequest,
|
|
)
|
|
|
|
from .content import (
|
|
AttributeDefinitionSet,
|
|
TemplatePresentationContract,
|
|
ContentItem,
|
|
ContentTranslation,
|
|
Tag,
|
|
ContentTag,
|
|
MediaAsset,
|
|
ContentMedia,
|
|
AttributeDefinition,
|
|
TemplateAttributePresentation,
|
|
AttributeDefinitionMember,
|
|
ContentAttribute,
|
|
Module,
|
|
ModuleContent,
|
|
ModuleTag,
|
|
SearchFacetDefinition,
|
|
SearchFacetValue,
|
|
SearchFacetMapping,
|
|
ContentSearchDocument,
|
|
ContentSearchFacet,
|
|
)
|
|
|
|
from .commerce import (
|
|
UserBillingProfile,
|
|
AccessPlan,
|
|
AccessPlanModule,
|
|
UserSubscription,
|
|
UserEntitlement,
|
|
Coupon,
|
|
PaymentTransaction,
|
|
Invoice,
|
|
InvoiceMonthlySequence,
|
|
CouponRedemption,
|
|
RefundDecision,
|
|
)
|
|
|
|
from .platform import (
|
|
UserActivityLog,
|
|
AdminAuditLog,
|
|
Notification,
|
|
)
|
|
|
|
|
|
def validate_orm_mappings() -> None:
|
|
"""Force configuration of the complete four-schema ORM graph."""
|
|
from sqlalchemy.orm import configure_mappers
|
|
|
|
configure_mappers()
|
|
|
|
__all__ = [
|
|
"AppUser",
|
|
"PasswordResetOtp",
|
|
"Role",
|
|
"UserRole",
|
|
"Permission",
|
|
"RolePermission",
|
|
"Device",
|
|
"DeviceChangeRequest",
|
|
"AttributeDefinitionSet",
|
|
"TemplatePresentationContract",
|
|
"ContentItem",
|
|
"ContentTranslation",
|
|
"Tag",
|
|
"ContentTag",
|
|
"MediaAsset",
|
|
"ContentMedia",
|
|
"AttributeDefinition",
|
|
"TemplateAttributePresentation",
|
|
"AttributeDefinitionMember",
|
|
"ContentAttribute",
|
|
"Module",
|
|
"ModuleContent",
|
|
"ModuleTag",
|
|
"SearchFacetDefinition",
|
|
"SearchFacetValue",
|
|
"SearchFacetMapping",
|
|
"ContentSearchDocument",
|
|
"ContentSearchFacet",
|
|
"UserBillingProfile",
|
|
"AccessPlan",
|
|
"AccessPlanModule",
|
|
"UserSubscription",
|
|
"UserEntitlement",
|
|
"Coupon",
|
|
"PaymentTransaction",
|
|
"Invoice",
|
|
"InvoiceMonthlySequence",
|
|
"CouponRedemption",
|
|
"RefundDecision",
|
|
"UserActivityLog",
|
|
"AdminAuditLog",
|
|
"Notification",
|
|
"validate_orm_mappings",
|
|
]
|