feat(backend): refactor mono repository

This commit is contained in:
2025-08-27 11:04:56 -04:00
parent d0dbba21fb
commit be1c729220
37 changed files with 2534 additions and 452 deletions

View File

@@ -0,0 +1,42 @@
# ------------------------------------------------------------
# Public interface for the ``myapp.models`` package.
# By reexporting the mostused 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).
# ------------------------------------------------------------
# Reexport all dataclass models
from .dataclasses import ( # noqa: F401 (reexported names)
AcceptedLog,
Classification,
DeclineLog,
Member,
Schedule,
ScheduledLog,
Service,
ServiceAvailability,
ServiceType,
)
# Reexport 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 autocompletion.
__all__ = [
# Dataclasses
"AcceptedLog",
"Classification",
"DeclineLog",
"Member",
"Schedule",
"ScheduledLog",
"Service",
"ServiceAvailability",
"ServiceType",
# Enums
"ScheduleStatus",
]