Files
Fulfillment-Backend/schemas/deal.py
2024-03-04 04:15:01 +03:00

29 lines
471 B
Python

import datetime
from schemas.base import CustomModel
from schemas.client import ClientSchema
class DealChangeStatusRequest(CustomModel):
deal_id: int
new_status: int
class DealChangeStatusResponse(CustomModel):
ok: bool
class DealCreateRequest(CustomModel):
name: str
class DealCreateResponse(CustomModel):
ok: bool
class FastDeal(CustomModel):
name: str
client: ClientSchema
comment: str
acceptance_date: datetime.datetime