service_man/api/schemas/user_schema.py

12 lines
162 B
Python
Raw Normal View History

2024-03-06 03:59:16 +03:00
from uuid import UUID
from pydantic import BaseModel
class UserSchema(BaseModel):
id: UUID
name: str
class Config:
from_attributes = True