added a router for logistics, now creating label
This commit is contained in:
@ -1,4 +1,5 @@
|
||||
from typing import List, Optional
|
||||
from datetime import datetime, timedelta # Add this import
|
||||
from pydantic import BaseModel, EmailStr, constr, Field
|
||||
from datetime import date
|
||||
|
||||
@ -270,4 +271,23 @@ class ShipmentCreate(BaseModel):
|
||||
|
||||
|
||||
class UpdateShipmentComments(BaseModel):
|
||||
comments: str
|
||||
comments: str
|
||||
|
||||
class LogisticsEventCreate(BaseModel):
|
||||
dewar_qr_code: str
|
||||
location_qr_code: str
|
||||
transaction_type: str
|
||||
|
||||
class SlotCreate(BaseModel):
|
||||
id: int
|
||||
needs_refill: bool
|
||||
last_refill: datetime
|
||||
occupied: bool
|
||||
|
||||
class Slot(BaseModel):
|
||||
slot_id: int
|
||||
needs_refill: bool
|
||||
time_until_refill: str
|
||||
|
||||
class Config:
|
||||
from_attributes = True
|
Reference in New Issue
Block a user