mirror of
https://github.com/Hestia-Homes/Model.git
synced 2026-06-08 11:17:27 +00:00
init db
This commit is contained in:
parent
f8736d3574
commit
c498dc1951
1 changed files with 5 additions and 0 deletions
5
scripts/init_db.py
Normal file
5
scripts/init_db.py
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
from sqlmodel import SQLModel
|
||||
import backend.app.db.models.organisation # noqa: F401
|
||||
from backend.app.db.connection import db_engine
|
||||
|
||||
SQLModel.metadata.create_all(db_engine)
|
||||
Loading…
Add table
Reference in a new issue