Skip to content
Snippets Groups Projects
models.py 281 B
Newer Older
from sqlalchemy import Integer, String
from database import db


class Role(db.Model):
    ADMIN_ROLE_ID = 1
Davor's avatar
Davor committed
    NO_ACCESS_ROLE_ID = 3

    id = db.Column(Integer, primary_key=True)
    name = db.Column(String(length=64))

    def __str__(self):
        return f"Role {self.name}"