Source code for timApp.user.usergroupdoc
from timApp.timdb.sqa import db
[docs]class UserGroupDoc(db.Model):
"""Each UserGroup can have at most one administrative document. The rights of that document determine who can see
and edit the members of the UserGroup.
"""
__tablename__ = "usergroupdoc"
group_id = db.Column(db.Integer, db.ForeignKey("usergroup.id"), primary_key=True)
doc_id = db.Column(db.Integer, db.ForeignKey("block.id"), primary_key=True)