2022-04-13 15:11:51 +02:00
|
|
|
from sqlalchemy import Integer, String
|
|
|
|
from database import db
|
|
|
|
|
|
|
|
|
|
|
|
class Role(db.Model):
|
2022-07-21 14:14:22 +02:00
|
|
|
NO_ACCESS_ROLE_ID = 3
|
|
|
|
|
2022-04-13 15:11:51 +02:00
|
|
|
id = db.Column(Integer, primary_key=True)
|
|
|
|
name = db.Column(String(length=64))
|
|
|
|
|
|
|
|
def __repr__(self):
|
|
|
|
return f"Role {self.name}"
|