I defined a role / permission model using the following model structure:
class Role(db.Model): __tablename__ = \'ro