mirror of
https://github.com/grocy/grocy.git
synced 2025-10-14 17:24:07 +00:00
Added first basic version of meal planning (references #146)
This commit is contained in:
8
migrations/0070.sql
Normal file
8
migrations/0070.sql
Normal 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)
|
||||
);
|
Reference in New Issue
Block a user