42 lines
1.2 KiB
Python
42 lines
1.2 KiB
Python
# ------------------------------------------------------------
|
||
# 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 backend.models.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 backend.models.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",
|
||
] |