This commit is contained in:
Tom Trappmann
2025-12-23 17:17:33 +01:00
commit d04730edd8
28 changed files with 387 additions and 0 deletions

0
app/db/__init__.py Normal file
View File

5
app/db/base.py Normal file
View File

@@ -0,0 +1,5 @@
from sqlalchemy.orm import DeclarativeBase
class Base(DeclarativeBase):
pass

7
app/db/init_db.py Normal file
View File

@@ -0,0 +1,7 @@
from app.core.database import engine
from app.db.base import Base
from app.models import user # noqa: F401
def init_db() -> None:
Base.metadata.create_all(bind=engine)