Files
romm/backend/models/__init__.py
Georges-Antoine Assi e320bf5ed4 style(backend): tighten the index comments and docstrings
Cut the docstrings back to the one paragraph the surrounding migrations use,
and drop the comments that restate the index name next to them.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-09-07 13:02:38 -04:00

9 lines
259 B
Python

import importlib
import pkgutil
def load_all_models() -> None:
"""Import every module under `models/` so `BaseModel.metadata` is complete."""
for module in pkgutil.iter_modules(__path__):
importlib.import_module(f"{__name__}.{module.name}")