mirror of
https://github.com/a-mayb3/Kanban_clone_backend.git
synced 2026-03-21 18:15:37 +01:00
renamed misc/ to schemas/
This commit is contained in:
parent
88180c9bd7
commit
0b676688c2
3 changed files with 0 additions and 4 deletions
20
schemas/projects.py
Normal file
20
schemas/projects.py
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
from pydantic import BaseModel, ConfigDict
|
||||
from typing import List, Optional
|
||||
|
||||
from misc.tasks import TaskBase
|
||||
from misc.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 ProjectCreate(BaseModel):
|
||||
name: str
|
||||
description: Optional[str] = None
|
||||
tasks: List[TaskBase] = []
|
||||
user_ids: List[int] = []
|
||||
Loading…
Add table
Add a link
Reference in a new issue