v0.6.1 — Pantry: categories, price tracking, and autocomplete
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user