feat(backend): refactor mono repository
This commit is contained in:
42
backend/models/__init__.py
Normal file
42
backend/models/__init__.py
Normal file
@@ -0,0 +1,42 @@
|
||||
# ------------------------------------------------------------
|
||||
# Public interface for the ``myapp.models`` package.
|
||||
# By re‑exporting the most‑used symbols here callers can simply do:
|
||||
#
|
||||
# from myapp.models import Member, Service, ScheduleStatus
|
||||
#
|
||||
# This keeps import statements short and hides the internal file layout
|
||||
# (whether a model lives in ``dataclasses.py`` or elsewhere).
|
||||
# ------------------------------------------------------------
|
||||
|
||||
# Re‑export all dataclass models
|
||||
from .dataclasses import ( # noqa: F401 (re‑exported names)
|
||||
AcceptedLog,
|
||||
Classification,
|
||||
DeclineLog,
|
||||
Member,
|
||||
Schedule,
|
||||
ScheduledLog,
|
||||
Service,
|
||||
ServiceAvailability,
|
||||
ServiceType,
|
||||
)
|
||||
|
||||
# Re‑export any enums that belong to the model layer
|
||||
from .enums import ScheduleStatus # noqa: F401
|
||||
|
||||
# Optional: define what ``from myapp.models import *`` should export.
|
||||
# This is useful for documentation tools and for IDE auto‑completion.
|
||||
__all__ = [
|
||||
# Dataclasses
|
||||
"AcceptedLog",
|
||||
"Classification",
|
||||
"DeclineLog",
|
||||
"Member",
|
||||
"Schedule",
|
||||
"ScheduledLog",
|
||||
"Service",
|
||||
"ServiceAvailability",
|
||||
"ServiceType",
|
||||
# Enums
|
||||
"ScheduleStatus",
|
||||
]
|
||||
Reference in New Issue
Block a user