0d30c58bf0
Snapshot of the working tree on srv1071960 (branch main), taken during server cleanup. .env files, node_modules, builds, logs and media were excluded.
41 lines
1.2 KiB
Python
41 lines
1.2 KiB
Python
"""Single import point for every ORM model.
|
|
|
|
Alembic autogenerate and SQLAlchemy's string-based relationship resolution both need
|
|
every mapper registered before use. Import this module, never individual model
|
|
modules, when you need "all of them".
|
|
"""
|
|
|
|
from app.audit.models import AuditLog
|
|
from app.auth.models import RefreshToken
|
|
from app.chemists.models import Chemist, ChemistAssignment
|
|
from app.csv_data.models import FormApproval
|
|
from app.database.base import Base
|
|
from app.doctors.models import Doctor, DoctorAssignment
|
|
from app.organization.models import AMHeadquarters, Company, Headquarters
|
|
from app.products.models import Product
|
|
from app.reports.models import ChemistCall, DailyCallReport, DoctorCall, MissedVisit, StockistCall
|
|
from app.stockists.models import Stockist
|
|
from app.users.models import User, UserExtraHeadquarters # noqa: F401
|
|
|
|
__all__ = [
|
|
"Base",
|
|
"AuditLog",
|
|
"RefreshToken",
|
|
"Chemist",
|
|
"FormApproval",
|
|
"ChemistAssignment",
|
|
"Doctor",
|
|
"DoctorAssignment",
|
|
"AMHeadquarters",
|
|
"Company",
|
|
"Headquarters",
|
|
"ChemistCall",
|
|
"DailyCallReport",
|
|
"DoctorCall",
|
|
"MissedVisit",
|
|
"StockistCall",
|
|
"User",
|
|
"Product",
|
|
"Stockist",
|
|
]
|