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