entretien/migrations/demo.sql

40 lines
1.2 KiB
SQL

-- (1, 'daily'),
-- (2, 'weekly'),
-- (3, 'fortnightly'),
-- (4, 'monthly'),
-- (5, 'seasonally'),
-- (6, 'semiannually'),
-- (7, 'yearly')
insert into tasks (description, frequency_id) values
('**Kitchen**: Tidy', 2),
('**Kitchen**: Wipe counters', 2),
('**Dining**: Tidy', 2),
('**Dining**: Wipe table', 2),
('**Kitchen**: Clean sink', 3),
('**Bathroom**: Change towels', 3),
('**Bathroom**: Tidy', 3),
('**Bathroom**: Wipe counters & sinks', 4),
('**Bathroom**: Sweep/vacuum', 4),
('**Bathroom**: Empty trash', 4),
('**Bathroom**: Clean toilets', 4),
('Mirrors', 5),
('**kitchen**: Verticals', 5),
('Clean oven', 6),
('Wash dish rack', 6),
('Oil hinges', 7),
('Wash patio', 7);
insert into completions (task_id, datestamp) values
(1, date('now', '-7 days')),
(2, date('now', '-3 days')),
(3, date('now', '-11 days')),
(4, date('now', '-3 days')),
(6, date('now', '-13 days')),
(7, date('now', '-18 days')),
(8, date('now', '-35 days')),
(9, date('now', '-22 days')),
(10, date('now', '-43 days')),
(12, date('now', '-69 days')),
(13, date('now', '-43 days')),
(15, date('now', '-95 days')),
(17, date('now', '-204 days'));