11 lines
183 B
Python
11 lines
183 B
Python
from typing import Optional
|
|
from pydantic import BaseModel
|
|
|
|
|
|
class RoleEntity(BaseModel):
|
|
id: Optional[int] = None
|
|
name: str
|
|
|
|
class Config:
|
|
from_attributes = True
|