From 3486c19228830775392072fb57b44a265ce59687 Mon Sep 17 00:00:00 2001 From: Morgan McMillian Date: Wed, 3 May 2017 23:02:13 -0700 Subject: [PATCH] model for admin rooms --- models.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/models.py b/models.py index 18b8ce8..55c46ff 100644 --- a/models.py +++ b/models.py @@ -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