Refactor: deplacer backend dans apps/backend

This commit is contained in:
Giovanni committed 2026-10-03 12:17:10 +02:00
1 parent ca3de277b4
commit 357b47bd61
18 files changed
+3 -3

No files matched your search

+20
View File
@@ -0,0 +1,20 @@
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 = True
+33
View File
@@ -0,0 +1,33 @@
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
+17
View File
@@ -0,0 +1,17 @@
from pydantic import BaseModel
class SkillResponse(BaseModel):
id: int
name: str
type: str
class Config:
from_attributes = True
class ProjectSkill(BaseModel):
id: int
name: str
class Config:
from_attributes = True