core/orm/__init__.py
2021-09-05 11:56:15 +03:00

16 lines
565 B
Python

from orm.rbac import Operation, Resource, Permission, Role
from orm.community import Community
from orm.user import User
from orm.message import Message
from orm.topic import Topic
from orm.notification import Notification
from orm.shout import Shout, ShoutAuthor, ShoutTopic, ShoutRating, ShoutViewByDay
from orm.base import Base, engine
from orm.comment import Comment
__all__ = ["User", "Role", "Operation", "Permission", "Message", "Shout", "Topic", "Notification"]
Base.metadata.create_all(engine)
Operation.init_table()
Resource.init_table()