在 Day 13 完成了條碼辨識後,接著把進庫流程串起來。
Barcode
│
▼
Product
│
▼
InventoryItem
POST /api/inventory/scan
{
"status": "ok",
"product": {
"id": 1,
"name": "光泉鮮乳"
},
"inventory_item": {
"id": 101,
"added_at": "2026-09-29",
"expiration_date": "2026-10-03"
}
}
實體商品
↓
拍 Barcode
↓
ESP32-S3-CAM
↓
Raspberry Pi
↓
Python Decode
↓
Product Lookup
↓
InventoryItem
↓
SQLite
↓
FastAPI
↓
Day 14 Dashboard