feat: client endpoints fixes for client tab in deal editor
This commit is contained in:
@ -1,6 +1,7 @@
|
||||
from datetime import datetime
|
||||
from typing import Optional
|
||||
|
||||
from modules.clients.schemas.client import ClientSchema
|
||||
from schemas.base import BaseSchema, BaseResponse, PaginationInfoSchema
|
||||
from schemas.board import BoardSchema
|
||||
from schemas.status import StatusSchema
|
||||
@ -16,6 +17,7 @@ class DealSchema(BaseSchema):
|
||||
status: StatusSchema
|
||||
board: BoardSchema
|
||||
created_at: datetime
|
||||
client: Optional[ClientSchema] = None
|
||||
|
||||
|
||||
class CreateDealSchema(BaseSchema):
|
||||
@ -23,6 +25,7 @@ class CreateDealSchema(BaseSchema):
|
||||
board_id: int
|
||||
lexorank: str
|
||||
status_id: int
|
||||
client_id: Optional[int] = None
|
||||
|
||||
|
||||
class UpdateDealSchema(BaseSchema):
|
||||
@ -30,6 +33,7 @@ class UpdateDealSchema(BaseSchema):
|
||||
lexorank: Optional[str] = None
|
||||
board_id: Optional[int] = None
|
||||
status_id: Optional[int] = None
|
||||
client: Optional[ClientSchema] = None
|
||||
|
||||
|
||||
# endregion
|
||||
|
||||
Reference in New Issue
Block a user