Revert "store views on the shouts table, remove the viewed table"

This commit is contained in:
Ilya Y
2023-08-04 13:12:21 +03:00
committed by GitHub
parent 93552781d5
commit c83b38f4c8
5 changed files with 99 additions and 29 deletions

View File

@@ -6,6 +6,7 @@ from orm.reaction import Reaction
from orm.shout import Shout
from orm.topic import Topic, TopicFollower
from orm.user import User, UserRating
from orm.viewed import ViewedEntry
# NOTE: keep orm module isolated
@@ -21,6 +22,7 @@ __all__ = [
"Notification",
"Reaction",
"UserRating",
"ViewedEntry"
]
@@ -33,4 +35,5 @@ def init_tables():
Role.init_table()
UserRating.init_table()
Shout.init_table()
ViewedEntry.init_table()
print("[orm] tables initialized")