update topics logix

This commit is contained in:
2021-10-28 13:42:34 +03:00
parent 0d87f52d3a
commit 741ede054d
9 changed files with 79 additions and 13 deletions

View File

@@ -2,14 +2,14 @@ from orm.rbac import Operation, Resource, Permission, Role
from orm.community import Community
from orm.user import User, UserRating
from orm.message import Message
from orm.topic import Topic
from orm.topic import Topic, TopicSubscription
from orm.notification import Notification
from orm.shout import Shout, ShoutAuthor, ShoutTopic, ShoutRating, ShoutViewByDay,\
ShoutRatingStorage, ShoutViewStorage
from orm.base import Base, engine, local_session
from orm.comment import Comment, CommentRating
__all__ = ["User", "Role", "Operation", "Permission", "Message", "Shout", "Topic", "Notification", "ShoutRating", "Comment", "CommentRating", "UserRating"]
__all__ = ["User", "Role", "Operation", "Permission", "Message", "Shout", "Topic", "TopicSubscription", "Notification", "ShoutRating", "Comment", "CommentRating", "UserRating"]
Base.metadata.create_all(engine)
Operation.init_table()