- User model (users table) with bcrypt password hashing - JWT-based login API (POST /api/auth/login, GET /api/auth/me) - Default admin account (admin/admin123) auto-created on startup - Login page with centered dark-themed login card - Route guards + Axios interceptors for token management - Login page renders without sidebar (standalone layout) - Gunicorn --preload to avoid worker DDL race condition
12 lines
585 B
Python
12 lines
585 B
Python
"""Model registry — all models are imported here so Alembic can discover them."""
|
|
|
|
from app.models.agent import Agent # noqa: F401
|
|
from app.models.task import ScheduledTask # noqa: F401
|
|
from app.models.execution import TaskExecution # noqa: F401
|
|
from app.models.notification import Alert, AlertRule, NotificationChannel # noqa: F401
|
|
from app.models.system_config import SystemConfig # noqa: F401
|
|
from app.models.user import User # noqa: F401
|
|
|
|
__all__ = ["Agent", "ScheduledTask", "TaskExecution", "NotificationChannel",
|
|
"AlertRule", "Alert", "SystemConfig", "User"]
|