From bbb067ec5ddc88862be50819076bfe63c744122e Mon Sep 17 00:00:00 2001 From: Matthew Somerville Date: Wed, 20 Jul 2016 14:58:34 +0100 Subject: Add user planned reports. A user with the appropriate permission can add/remove reports from their list of planned reports using a button on a report page. The list can be viewed at /my/planned. --- db/schema.sql | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'db/schema.sql') diff --git a/db/schema.sql b/db/schema.sql index f285922ac..48f0fd07e 100644 --- a/db/schema.sql +++ b/db/schema.sql @@ -458,6 +458,14 @@ create table user_body_permissions ( unique(user_id, body_id, permission_type) ); +create table user_planned_reports ( + id serial not null primary key, + user_id int references users(id) not null, + report_id int references problem(id) not null, + added timestamp not null default current_timestamp, + removed timestamp +); + create table response_templates ( id serial not null primary key, body_id int references body(id) not null, -- cgit v1.2.3