Refine meal suggestions and planner entry controls

This commit is contained in:
2026-04-13 12:00:40 +02:00
parent 40bab48806
commit 1490fc8f1d
8 changed files with 334 additions and 35 deletions
+9
View File
@@ -94,6 +94,15 @@ CREATE TABLE IF NOT EXISTS reminder_events (
FOREIGN KEY (user_id) REFERENCES users(id) ON DELETE CASCADE
);
CREATE TABLE IF NOT EXISTS hidden_generated_suggestions (
id INTEGER PRIMARY KEY AUTOINCREMENT,
user_id INTEGER NOT NULL,
suggestion_key TEXT NOT NULL,
created_at TEXT NOT NULL DEFAULT CURRENT_TIMESTAMP,
UNIQUE (user_id, suggestion_key),
FOREIGN KEY (user_id) REFERENCES users(id) ON DELETE CASCADE
);
CREATE TABLE IF NOT EXISTS dayparts (
id INTEGER PRIMARY KEY AUTOINCREMENT,
slug TEXT NOT NULL UNIQUE,