Files
Portfolio/apps/backend/app/schemas/project.py
T

33 lines
649 B
Python

from pydantic import BaseModel
from app.schemas.skill import ProjectSkill
class ProjectCard(BaseModel):
id: int
title: str
short_description: str
image_name: str
school: bool
beginning_year: int
end_year: int | None
skills: list[ProjectSkill]
class Config:
from_attributes = True
class ProjectPage(BaseModel):
id: int
title: str
short_description: str
long_description: str
repo_link: str | None
nb_image: int
image_name: str
school: bool
beginning_year: int
end_year: int | None
skills: list[ProjectSkill]
class Config:
from_attributes = True