v0.6.1 — Pantry: categories, price tracking, and autocomplete

This commit is contained in:
Bonna Moon
2026-06-29 17:37:59 -05:00
parent 0d52ea5ad1
commit 62a0089ec2
8 changed files with 407 additions and 56 deletions

View File

@@ -349,13 +349,17 @@ model Item {
customFields Json?
// Consumable attributes
barcode String?
storedAt DateTime? // date frozen / preserved / stored
bestBefore DateTime? // expiry / best-by date
minStock Decimal? @db.Decimal(10, 2)
source ItemSource? // where it came from
plantId String? // link to a garden plant (harvest source)
plant Plant? @relation(fields: [plantId], references: [id], onDelete: SetNull)
barcode String?
storedAt DateTime? // date frozen / preserved / stored
bestBefore DateTime? // expiry / best-by date
minStock Decimal? @db.Decimal(10, 2)
source ItemSource? // where it came from
plantId String? // link to a garden plant (harvest source)
plant Plant? @relation(fields: [plantId], references: [id], onDelete: SetNull)
pantryCategory String? // e.g. "Meat", "Produce", "Dairy"
pantrySubcategory String? // e.g. "Beef", "Poultry", "Berries"
pricePaid Decimal? @db.Decimal(10, 2) // how much was paid
priceUnit String? // "package", "lb", "oz", "kg", etc.
// Shared
qrSlug String? @unique // short slug for a printed QR label
@@ -377,6 +381,7 @@ model Item {
@@index([name])
@@index([barcode])
@@index([plantId])
@@index([pantryCategory])
}
model Label {