core/orm/__init__.py

14 lines
452 B
Python
Raw Normal View History

2021-08-27 08:42:01 +00:00
from orm.rbac import Community, Operation, Resource, Permission, Role
2021-07-13 10:14:48 +00:00
from orm.user import User
from orm.message import Message
2021-08-20 08:08:32 +00:00
from orm.topic import Topic
from orm.notification import Notification
2021-08-07 16:14:20 +00:00
from orm.shout import Shout
2021-07-13 10:14:48 +00:00
from orm.base import Base, engine
2021-08-23 08:02:45 +00:00
__all__ = ["User", "Role", "Operation", "Permission", "Message", "Shout", "Topic", "Notification"]
2021-07-13 10:14:48 +00:00
Base.metadata.create_all(engine)
2021-08-17 09:14:26 +00:00
Operation.init_table()
Resource.init_table()