core/orm/__init__.py

16 lines
565 B
Python
Raw Normal View History

2021-08-28 10:13:50 +00:00
from orm.rbac import Operation, Resource, Permission, Role
from orm.community import Community
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-31 15:15:27 +00:00
from orm.shout import Shout, ShoutAuthor, ShoutTopic, ShoutRating, ShoutViewByDay
2021-07-13 10:14:48 +00:00
from orm.base import Base, engine
2021-09-05 08:56:15 +00:00
from orm.comment import Comment
2021-07-13 10:14:48 +00:00
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()