- Define SQLModel table models for AdminAllowlist, AdminAuditLog, Client, Service, Package, Booking, and Payment with foreign keys and strict validation. - Configure portable SQLModel create_engine in app/db/database.py supporting local SQLite and Turso Cloud (sqlite+libsql://) with PRAGMA foreign_keys = ON. - Provide get_session generator dependency for FastAPI routers. - Align ONE_ON_ONE service type to INDIVIDUAL across schema.sql, routers, seeds, and documentation. - Add unit tests for all models and database connectivity (75 tests passing). Refs: #6
17 lines
384 B
Python
17 lines
384 B
Python
from app.models.admin import AdminAllowlist, AdminAuditLog
|
|
from app.models.booking import Booking
|
|
from app.models.client import Client
|
|
from app.models.package import Package
|
|
from app.models.payment import Payment
|
|
from app.models.service import Service
|
|
|
|
__all__ = [
|
|
"AdminAllowlist",
|
|
"AdminAuditLog",
|
|
"Booking",
|
|
"Client",
|
|
"Package",
|
|
"Payment",
|
|
"Service",
|
|
]
|