This repository has been archived on 2025-04-28. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
off-cooldown-bot/off_cooldown_bot/database/db.py
T
imcompiling 1ad68f4014
build_develop / build (push) Successful in 22s
Remove outdated comment.
2025-03-18 11:07:23 -04:00

11 lines
288 B
Python

"""Simple file to set up the sqlmodel connection to database."""
from sqlmodel import SQLModel, create_engine
from . import models # noqa: F401 - Need this import for creating the models.
url = "sqlite:///database.db"
engine = create_engine(url)
SQLModel.metadata.create_all(engine)