1
0
Fork 0
This repository has been archived on 2024-02-17. You can view files and clone it, but cannot push or open issues or pull requests.
Administrator-py/db/__init__.py

20 lines
666 B
Python
Raw Normal View History

from administrator.config import config
2020-05-27 23:08:23 +02:00
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()
2020-05-27 23:19:51 +02:00
from db.Task import Task
2020-07-23 21:27:34 +02:00
from db.Greetings import Greetings
2020-07-23 21:29:02 +02:00
from db.Presentation import Presentation
2020-07-23 21:31:42 +02:00
from db.RoRec import RoRec
from db.Polls import Polls
from db.Warn import Warn
2020-08-02 19:41:38 +02:00
from db.WarnAction import WarnAction
2020-11-02 11:56:41 +01:00
from db.InviteRole import InviteRole
2020-11-03 15:47:51 +01:00
from db.Tomuss import Tomuss
from db.PCP import PCP
from db.Extension import Extension, ExtensionState
2020-05-27 23:08:23 +02:00
Base.metadata.create_all(engine)