dashboard/areas/roles/models.py

10 lines
233 B
Python

from sqlalchemy import Integer, String
from database import db
class Role(db.Model):
id = db.Column(Integer, primary_key=True)
name = db.Column(String(length=64))
def __repr__(self):
return f"Role {self.name}"