20 lines
709 B
Python
20 lines
709 B
Python
from bot_bde.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
|
|
from db.RoRec import RoRec
|
|
from db.Polls import Polls
|
|
from db.Warn import Warn
|
|
from db.WarnAction import WarnAction
|
|
from db.InviteRole import InviteRole
|
|
from db.Tomuss import Tomuss
|
|
from db.PCP import PCP
|
|
from db.Extension import Extension, ExtensionState
|
|
from db.Calendar import Calendar, CalendarNotify
|
|
Base.metadata.create_all(engine)
|