24 lines
636 B
Python
24 lines
636 B
Python
from datetime import datetime
|
|
|
|
from pydantic import BaseModel, ConfigDict
|
|
from pydantic.alias_generators import to_camel
|
|
|
|
|
|
class UsageFifoCandidateModel(BaseModel):
|
|
model_config = ConfigDict(alias_generator=to_camel, populate_by_name=True)
|
|
|
|
pallet_id: int
|
|
pallet_code: str
|
|
batch_no: str
|
|
remaining_packages: int
|
|
site_arrived_at: datetime
|
|
|
|
|
|
class UsageFifoRecommendationModel(BaseModel):
|
|
model_config = ConfigDict(alias_generator=to_camel, populate_by_name=True)
|
|
|
|
recommended: UsageFifoCandidateModel | None = None
|
|
unknown_arrival_count: int = 0
|
|
requires_skip_reason: bool = False
|
|
message: str
|