Update 2025-04-13_16:25:39
This commit is contained in:
9
database.py
Normal file
9
database.py
Normal file
@ -0,0 +1,9 @@
|
||||
from sqlmodel import SQLModel, create_engine
|
||||
|
||||
DATABASE_URL = "postgresql+psycopg2://bythepowerofmemory:b62b64ba251b05cef147c89e2f7d7dcd@localhost/bythepowerofmemory"
|
||||
|
||||
engine = create_engine(DATABASE_URL, echo=False)
|
||||
|
||||
def init_db():
|
||||
SQLModel.metadata.create_all(engine)
|
||||
|
Reference in New Issue
Block a user