feat: scaffold Django multi-tenant project with 5 of 9 apps

Phase 1 scaffolding: config/, core/, base models, AES-256-GCM phone encryption, enums mirror

apps.tenant: Tenant + Domain (django-tenants)

apps.org: 11 models (OrgUnit hierarchy, Staff, audit logs)

apps.account: 4 models (UserAccount as AUTH_USER_MODEL, login/password tracking)

apps.permission: 7 models (RBAC + overrides + datascope + append-only changelog)

apps.region: 5 models (District, BusinessArea, MetroLine, MetroStation, School)

All migrations generated, manage.py check passes
This commit is contained in:
2026-04-29 17:01:55 +08:00
parent 61535a53c2
commit 9a7d06b34e
116 changed files with 3411 additions and 0 deletions

15
core/models/__init__.py Normal file
View File

@@ -0,0 +1,15 @@
from core.models.base import (
ActiveManager,
AuditedModel,
SoftDeleteModel,
TimeStampedModel,
UUIDPrimaryKeyModel,
)
__all__ = [
"ActiveManager",
"AuditedModel",
"SoftDeleteModel",
"TimeStampedModel",
"UUIDPrimaryKeyModel",
]