Added first basic version of meal planning (references #146)

This commit is contained in:
Bernd Bestel
2019-05-06 19:38:47 +02:00
parent e240260f9f
commit 57233dba1a
11 changed files with 232 additions and 2 deletions

8
migrations/0070.sql Normal file
View File

@@ -0,0 +1,8 @@
CREATE TABLE meal_plan (
id INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT UNIQUE,
day DATE NOT NULL,
recipe_id INTEGER NOT NULL,
row_created_timestamp DATETIME DEFAULT (datetime('now', 'localtime')),
UNIQUE(day, recipe_id)
);