fix: member/milestone endpoints - role_id column, schema fixes
This commit is contained in:
@@ -190,8 +190,11 @@ class ProjectMemberCreate(ProjectMemberBase):
|
||||
pass
|
||||
|
||||
|
||||
class ProjectMemberResponse(ProjectMemberBase):
|
||||
class ProjectMemberResponse(BaseModel):
|
||||
id: int
|
||||
user_id: int
|
||||
project_id: int
|
||||
role: str = "dev"
|
||||
|
||||
class Config:
|
||||
from_attributes = True
|
||||
@@ -205,7 +208,7 @@ class MilestoneBase(BaseModel):
|
||||
|
||||
|
||||
class MilestoneCreate(MilestoneBase):
|
||||
project_id: int
|
||||
pass
|
||||
|
||||
|
||||
class MilestoneUpdate(BaseModel):
|
||||
|
||||
Reference in New Issue
Block a user