othr
This commit is contained in:
@@ -3,6 +3,7 @@ from typing import List
|
||||
|
||||
from schemas.base import CustomModelCamel, OkMessageSchema
|
||||
from schemas.client import ClientSchema
|
||||
from schemas.product import ProductSchema
|
||||
from schemas.service import ServiceSchema
|
||||
|
||||
|
||||
@@ -28,6 +29,11 @@ class DealServiceSchema(CustomModelCamel):
|
||||
quantity: int
|
||||
|
||||
|
||||
class DealProductSchema(CustomModelCamel):
|
||||
product: ProductSchema
|
||||
quantity: int
|
||||
|
||||
|
||||
class DealSchema(CustomModelCamel):
|
||||
id: int
|
||||
name: str
|
||||
@@ -35,6 +41,7 @@ class DealSchema(CustomModelCamel):
|
||||
created_at: datetime.datetime
|
||||
current_status: int
|
||||
services: List[DealServiceSchema]
|
||||
products: List[DealProductSchema]
|
||||
# total_price: int
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user