Updated code to fit with latest version

This commit is contained in:
vladfreeze
2021-12-02 11:29:24 +01:00
committed by Min RK
parent 7a56cadfb5
commit 4c30e9e1d1
6 changed files with 57 additions and 91 deletions

View File

@@ -222,9 +222,8 @@ class Group(Base):
__tablename__ = 'groups'
id = Column(Integer, primary_key=True, autoincrement=True)
name = Column(Unicode(255), unique=True)
# The properties column contains key:value pairs that represent group settings and their values. Example: {"ram": 8, "cpu": 4}
properties = Column(JSONDict, default={})
users = relationship('User', secondary='user_group_map', backref='groups')
properties = Column(JSONDict, default= {})
def __repr__(self):
return "<%s %s (%i users)>" % (