model for admin rooms

This commit is contained in:
Morgan McMillian 2017-05-03 23:02:13 -07:00
parent e129be8c86
commit 3486c19228

View file

@ -48,3 +48,12 @@ class MatrixMsgEvents(db.Model):
self.pnut_msgid = pnut_msgid
self.pnut_user = pnut_user
self.pnut_chan = pnut_chan
class MatrixAdminRooms(db.Model):
id = db.Column(db.Integer, primary_key=True)
matrix_id = db.Column(db.Text)
room_id = db.Column(db.Text)
def __init__(self, matrix_id, room_id):
self.matrix_id = matrix_id
self.room_id = room_id