service_man/api/schemas/user_schema.py

12 lines
162 B
Python

from uuid import UUID
from pydantic import BaseModel
class UserSchema(BaseModel):
id: UUID
name: str
class Config:
from_attributes = True