dashboard/areas/roles/models.py
Davor 66b44ae1a0 MR comments
- NO_ACCESS_ROLE_ID constant moved to models.py
- added docstring for batch create request body
2022-07-21 14:14:22 +02:00

12 lines
260 B
Python

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