Source code for timApp.plugin.timtable.row_owner_info

from timApp.timdb.sqa import db


[docs]class RowOwnerInfo(db.Model): """ Information about the owner of a TimTable row. Includes document and paragraph id for determining the TimTable instance. """ __tablename__ = "rowownerinfo" doc_id = db.Column(db.Integer, primary_key=True) par_id = db.Column(db.Text, primary_key=True) unique_row_id = db.Column(db.Integer, primary_key=True) usergroup_id = db.Column( db.Integer, db.ForeignKey("usergroup.id"), primary_key=False ) # usergroup = db.relationship('UserGroup', back_populates='rowOwnerInfo') # block = db.relationship('Block', back_populates='tags') def __json__(self): return ["doc_id", "par_id", "unique_row_id", "usergroup_id"]