modify db schema

This commit is contained in:
knst-kotov
2021-08-23 11:02:45 +03:00
parent 892c929c35
commit 33a0b1d8be
5 changed files with 16 additions and 21 deletions

View File

@@ -2,12 +2,11 @@ from orm.rbac import Organization, Operation, Resource, Permission, Role
from orm.user import User
from orm.message import Message
from orm.topic import Topic
from orm.rating import Rating
from orm.notification import Notification
from orm.shout import Shout
from orm.base import Base, engine
__all__ = ["User", "Role", "Operation", "Permission", "Message", "Shout", "Topic", "Rating", "Notification"]
__all__ = ["User", "Role", "Operation", "Permission", "Message", "Shout", "Topic", "Notification"]
Base.metadata.create_all(engine)
Operation.init_table()