Add shopping entry notes

This commit is contained in:
2026-04-26 13:18:14 +02:00
parent d3c58c5dd2
commit 1034ea72a8
5 changed files with 255 additions and 75 deletions
+2 -1
View File
@@ -167,6 +167,7 @@ CREATE TABLE IF NOT EXISTS shopping_entries (
owner_user_id INTEGER,
visibility TEXT NOT NULL DEFAULT 'shared',
item_id INTEGER NOT NULL,
shopping_note TEXT NOT NULL DEFAULT '',
added_by INTEGER,
checked_by INTEGER,
needed_for_date TEXT,
@@ -183,7 +184,7 @@ CREATE TABLE IF NOT EXISTS shopping_entries (
);
CREATE UNIQUE INDEX IF NOT EXISTS idx_shopping_entries_open_item
ON shopping_entries (item_id)
ON shopping_entries (item_id, COALESCE(shopping_note, ''))
WHERE is_checked = 0;
CREATE TABLE IF NOT EXISTS shopping_needs (