21 lines
365 B
Python
21 lines
365 B
Python
from pydantic import BaseModel
|
|
|
|
class ExperienceTaskResponse(BaseModel):
|
|
id: int
|
|
description: str
|
|
|
|
class Config:
|
|
from_attributes = True
|
|
|
|
class ExperienceResponse(BaseModel):
|
|
id: int
|
|
company: str
|
|
location: str
|
|
duration: str
|
|
role: str
|
|
tasks: list[ExperienceTaskResponse]
|
|
|
|
class Config:
|
|
from_attributes = Trues
|
|
|