Files
gatekeeper/app/services/database.py
ahtlon 22e57996c2 Finish sqlmodel migration
- merge card.py, user.py and dbmodels.py into models.py
- deduplicate
- change responsemodels in the manager functions
- correct inports
2026-04-23 22:41:48 +02:00

8 lines
218 B
Python

from sqlmodel import create_engine, SQLModel
from ..model.models import Base
SQLALCHEMY_DATABASE_URL = "sqlite:///./gatekeeper.db"
engine = create_engine(SQLALCHEMY_DATABASE_URL)
SQLModel.metadata.create_all(engine)