mirror of
https://github.com/a-mayb3/Kanban_clone_backend.git
synced 2026-03-21 18:15:37 +01:00
Created schema projects_tasks to avoid circular imports
This commit is contained in:
parent
8fb4ba71b9
commit
96d833a089
3 changed files with 19 additions and 1 deletions
|
|
@ -7,12 +7,14 @@ from schemas.users import UserBase
|
|||
class ProjectBase(BaseModel):
|
||||
model_config = ConfigDict(from_attributes=True)
|
||||
|
||||
id: int
|
||||
name: str
|
||||
description: str
|
||||
tasks: List[TaskBase]
|
||||
users: List[UserBase]
|
||||
|
||||
class ProjectFull(ProjectBase):
|
||||
id: int
|
||||
|
||||
class ProjectCreate(BaseModel):
|
||||
name: str
|
||||
description: Optional[str] = None
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue