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)
17 lines
431 B
Python
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}
|