- Configure Alembic for async migrations with SQLAlchemy 2.0 - Create Build model with UUID primary key, config_hash, status enum - Add indexes on status (queue queries) and config_hash (cache lookups) - Generate and apply initial migration creating builds table Build model fields: id, config_hash, status, iso_path, error_message, build_log, started_at, completed_at, created_at, updated_at.
8 lines
167 B
Python
8 lines
167 B
Python
"""Database models package.
|
|
|
|
Import all models here for Alembic autogenerate to discover them.
|
|
"""
|
|
|
|
from backend.app.db.models.build import Build
|
|
|
|
__all__ = ["Build"]
|