🎉 First commit, from couchbase generator, basic changes
not tested / updated yet
This commit is contained in:
14
{{cookiecutter.project_slug}}/backend/app/app/models/role.py
Normal file
14
{{cookiecutter.project_slug}}/backend/app/app/models/role.py
Normal file
@@ -0,0 +1,14 @@
|
||||
from enum import Enum
|
||||
from typing import List
|
||||
|
||||
from pydantic import BaseModel
|
||||
|
||||
from app.core.config import ROLE_SUPERUSER
|
||||
|
||||
|
||||
class RoleEnum(Enum):
|
||||
superuser = ROLE_SUPERUSER
|
||||
|
||||
|
||||
class Roles(BaseModel):
|
||||
roles: List[RoleEnum]
|
||||
Reference in New Issue
Block a user