feat: cards, attributes and modules
This commit is contained in:
@@ -1,4 +1,6 @@
|
||||
from schemas.attribute import AttributeSchema
|
||||
from schemas.base import BaseSchema, OkMessageSchema
|
||||
from schemas.module import ModuleSchema
|
||||
|
||||
|
||||
# region Entities
|
||||
@@ -10,9 +12,11 @@ class BaseProjectSchema(BaseSchema):
|
||||
|
||||
class ProjectSchema(BaseProjectSchema):
|
||||
id: int
|
||||
attributes: list[AttributeSchema]
|
||||
modules: list[ModuleSchema]
|
||||
|
||||
|
||||
class ProjectSchemaWithCount(ProjectSchema):
|
||||
class FullProjectSchema(ProjectSchema):
|
||||
boards_count: int
|
||||
|
||||
|
||||
@@ -27,13 +31,14 @@ class CreateProjectRequest(BaseSchema):
|
||||
class UpdateProjectRequest(BaseSchema):
|
||||
project: ProjectSchema
|
||||
|
||||
|
||||
# endregion
|
||||
|
||||
|
||||
# region Responses
|
||||
|
||||
class GetProjectsResponse(BaseSchema):
|
||||
projects: list[ProjectSchemaWithCount]
|
||||
projects: list[FullProjectSchema]
|
||||
|
||||
|
||||
class CreateProjectResponse(OkMessageSchema):
|
||||
|
||||
Reference in New Issue
Block a user