# ======================
# == Pydantic schemas ==
# ======================

from pydantic import BaseModel
from typing import List, Dict

class StockEvent(BaseModel):
    sku: str
    warehouse_code: str
    quantity: int
    event_type: str  # "receive", "ship", "adjust"

class AvailabilityRequest(BaseModel):
    items: List[Dict[str, int]]  # [{"sku": "P-001", "qty": 10}]

class ReservationRequest(BaseModel):
    warehouse_code: str
    items: List[Dict[str, int]]
