kiwi/app/models/schemas/quality.py
pyr0ball 8cbde774e5 chore: initial commit — kiwi Phase 2 complete
Pantry tracker app with:
- FastAPI backend + Vue 3 SPA frontend
- SQLite via circuitforge-core (migrations 001-005)
- Inventory CRUD, barcode scan, receipt OCR pipeline
- Expiry prediction (deterministic + LLM fallback)
- CF-core tier system integration
- Cloud session support (menagerie)
2026-03-30 22:20:48 -07:00

17 lines
431 B
Python

"""Quality assessment schemas (integer IDs, SQLite-compatible)."""
from __future__ import annotations
from typing import Any, Dict, List
from pydantic import BaseModel
class QualityAssessment(BaseModel):
id: int
receipt_id: int
overall_score: float
is_acceptable: bool
metrics: Dict[str, Any] = {}
improvement_suggestions: List[str] = []
created_at: str
model_config = {"from_attributes": True}