v0.2 planning and ux improvements
This commit is contained in:
@@ -76,3 +76,15 @@ CREATE TABLE IF NOT EXISTS plan_entries (
|
||||
FOREIGN KEY (item_id) REFERENCES items(id) ON DELETE CASCADE,
|
||||
FOREIGN KEY (created_by) REFERENCES users(id) ON DELETE SET NULL
|
||||
);
|
||||
|
||||
CREATE INDEX IF NOT EXISTS idx_items_kind_name
|
||||
ON items (kind, name);
|
||||
|
||||
CREATE INDEX IF NOT EXISTS idx_items_availability_name
|
||||
ON items (availability_state, name);
|
||||
|
||||
CREATE INDEX IF NOT EXISTS idx_item_dayparts_daypart_item
|
||||
ON item_dayparts (daypart_id, item_id);
|
||||
|
||||
CREATE INDEX IF NOT EXISTS idx_plan_entries_plan_date_daypart
|
||||
ON plan_entries (plan_date, daypart_id);
|
||||
|
||||
Reference in New Issue
Block a user