You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
395 B
22 lines
395 B
6 months ago
|
from pydantic import BaseModel
|
||
|
|
||
|
|
||
|
class EquipmentCreate(BaseModel):
|
||
|
plan_year: str
|
||
|
purchasing_authority: str
|
||
|
department: str
|
||
|
equipment_name: str
|
||
|
quantity: int
|
||
|
budget_unit_price: float
|
||
|
final_unit_price: float
|
||
|
purchase_item_no: str
|
||
|
progress: str
|
||
|
delete_flag: int = 0
|
||
|
|
||
|
|
||
|
class Equipment(EquipmentCreate):
|
||
|
id: int
|
||
|
|
||
|
class Config:
|
||
|
orm_mode = True
|