30 lines
537 B
Python
30 lines
537 B
Python
from pydantic import BaseModel
|
|
|
|
class ExperienceTaskResponse(BaseModel):
|
|
id: int
|
|
description: str
|
|
|
|
class Config:
|
|
from_attributes = True
|
|
|
|
class ExperienceLinkResponse(BaseModel):
|
|
id: int
|
|
label: str
|
|
link: str
|
|
|
|
class Config:
|
|
from_attributes = True
|
|
|
|
class ExperienceResponse(BaseModel):
|
|
id: int
|
|
company: str
|
|
location: str
|
|
duration: str
|
|
role: str
|
|
tasks: list[ExperienceTaskResponse]
|
|
links: list[ExperienceLinkResponse]
|
|
|
|
class Config:
|
|
from_attributes = True
|
|
|