Skip to content

Latest commit

 

History

History
28 lines (22 loc) · 428 Bytes

File metadata and controls

28 lines (22 loc) · 428 Bytes

FastApi.app

Here you can find basic app with PostgreSQL

Migrations

Create new migration revision

alembic revision -m '<message>' --autogenerate

DB migrate

alembic upgrade head

init db (for development)

./clear_prepare_db.sh
inv create-jobs
inv shell
# example:
users = db.scalars(sa.select(m.User).order_by(m.User.id)).all()