first one

This commit is contained in:
2023-06-05 16:31:04 +03:00
commit e25080d054
11 changed files with 165 additions and 0 deletions

8
bot/app/db/base.py Normal file
View File

@ -0,0 +1,8 @@
from sqlalchemy import create_engine
from sqlalchemy.ext.declarative import declarative_base
from sqlalchemy.orm import sessionmaker
engine = create_engine("postgresql+psycopg2://user:password@postgres:5432/db")
Session = sessionmaker(bind=engine)
Base = declarative_base()