11 lines
410 B
Python
11 lines
410 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
|
|
from db.Greetings import Greetings
|
|
from db.Presentation import Presentation
|
|
Base.metadata.create_all(engine)
|