Refactor: deplacer backend dans apps/backend
This commit is contained in:
1 parent
ca3de277b4
commit
357b47bd61
18 files changed
+3
-3
No files matched your search
@@ -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
|
||||
Reference in new issue
Block a user