This is a fully working example project that features a sample SQLite database. The tutorial describes the creation of the project step by step.
- The tables are defined in app/models.py and the DDL scripts are defined in app/ddl.py.
- The DDL scripts are registered in migrations/env.py using the
register_ddlfunction. - Every revision script in migrations/versions is created automatically using
alembic revision --autogeneratecommand.