from flask_sqlalchemy import SQLAlchemy db = SQLAlchemy() class MatrixUser(db.Model): id = db.Column(db.Integer, primary_key=True) matrix_id = db.Column(db.Text, unique=True) room_id = db.Column(db.Text) pnut_id = db.Column(db.Text, unique=True) pnut_token = db.Column(db.Text) def __init__(self, matrix_id, room_id, pnut_id, pnut_token): self.matrix_id = matrix_id self.room_id = room_id self.pnut_id = pnut_id self.pnut_token = pnut_token def __repr__(self): return '