initialize backend with FastAPI and Docker setup

This commit is contained in:
Giovanni committed 2026-06-03 11:35:09 +02:00
1 parent 5d724e37ab
commit 5ff02c0ff5
24 files changed
+420 -243

No files matched your search

+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