Add a table
Declare the model withtable=True:
session.py so SQLModel sees it:
Generate and apply a migration
Fromservices/tracker/:
alembic revision --autogenerate and writes a file to src/tracker/database/migrations/versions/. Apply it with:
pytest-alembic on every push and pull request:
Known defect: a custom type is not imported
Alembic sometimes generates a migration that refers to a custom type by its module path without importing it, which fails on upgrade:uv run alembic upgrade head afterwards.
