Python-code moved to backend/ directory.
This commit is contained in:
parent
f8c3bfddf2
commit
f048b0be58
15 changed files with 0 additions and 0 deletions
9
backend/app/db.py
Normal file
9
backend/app/db.py
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
from sqlalchemy import create_engine
|
||||
from sqlalchemy.orm import sessionmaker, DeclarativeBase
|
||||
from app.config import settings
|
||||
|
||||
engine = create_engine(settings.database_url, future=True)
|
||||
SessionLocal = sessionmaker(bind=engine, autoflush=False, autocommit=False)
|
||||
|
||||
class Base(DeclarativeBase):
|
||||
pass
|
||||
Loading…
Add table
Add a link
Reference in a new issue