include time restriction
All checks were successful
release-tag / release-image (push) Successful in 42s

This commit is contained in:
2025-05-26 10:48:10 +02:00
parent 4170eb14fb
commit df2d8f33a5
10 changed files with 90 additions and 105 deletions

View File

@@ -9,6 +9,7 @@ engine = create_engine(str(settings.SQLALCHEMY_DATABASE_URI))
# otherwise, SQLModel might fail to initialize relationships properly
# for more details: https://github.com/fastapi/full-stack-fastapi-template/issues/28
def init_db(session: Session) -> None:
# Tables should be created with Alembic migrations
# But if you don't want to use migrations, create
@@ -16,4 +17,4 @@ def init_db(session: Session) -> None:
from sqlmodel import SQLModel
# This works because the models are already imported and registered from app.models
SQLModel.metadata.create_all(engine)
SQLModel.metadata.create_all(engine)