You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This template has most of the groundwork laid for you and already and includes a User model (along with an authentication flow) and an Item example model. Take a look into the backend/model and backend/schema directories to get started. Plus the docs have got you covered: https://fastapi.tiangolo.com/tutorial/sql-databases/
Activity
teschmitt commentedon Oct 2, 2020
This template has most of the groundwork laid for you and already and includes a User model (along with an authentication flow) and an Item example model. Take a look into the
backend/modelandbackend/schemadirectories to get started. Plus the docs have got you covered: https://fastapi.tiangolo.com/tutorial/sql-databases/Andrew-Sheridan commentedon Apr 22, 2021
@teschmitt I'm not sure your answer here address the question raised by @lesourcil
If I spin up a stack from this template then during migrations tables get created in the
publicschema in the DB.Altering the db.base_class to have some metadata
should setup the models to be under
some_schema_namealembicto create this schema is another story.Andrew-Sheridan commentedon Apr 22, 2021
In the
alembic.envfile if you updaterun_migrations()to💚 Fix typos and name split in docker builder (#281)