17 lines
311 B
Python
17 lines
311 B
Python
|
|
from pydantic import BaseModel
|
||
|
|
|
||
|
|
|
||
|
|
class InventoryResponse(BaseModel):
|
||
|
|
id: int
|
||
|
|
product_id: int
|
||
|
|
product_name: str
|
||
|
|
product_sku: str
|
||
|
|
warehouse_id: int
|
||
|
|
warehouse_name: str
|
||
|
|
quantity: int
|
||
|
|
locked_quantity: int
|
||
|
|
available_quantity: int
|
||
|
|
|
||
|
|
class Config:
|
||
|
|
from_attributes = True
|