9 lines
334 B
Python
9 lines
334 B
Python
from administrator.config import config
|
|
from sqlalchemy import create_engine
|
|
from sqlalchemy.orm import sessionmaker
|
|
from sqlalchemy.ext.declarative import declarative_base
|
|
engine = create_engine(config.get("db"))
|
|
Session = sessionmaker(bind=engine)
|
|
Base = declarative_base()
|
|
from db.Task import Task
|
|
Base.metadata.create_all(engine)
|