12 lines
162 B
Python
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
|