From bbb067ec5ddc88862be50819076bfe63c744122e Mon Sep 17 00:00:00 2001
From: Matthew Somerville <matthew@mysociety.org>
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_0042-planned_reports.sql | 11 +++++++++++
 1 file changed, 11 insertions(+)
 create mode 100644 db/schema_0042-planned_reports.sql

(limited to 'db/schema_0042-planned_reports.sql')

diff --git a/db/schema_0042-planned_reports.sql b/db/schema_0042-planned_reports.sql
new file mode 100644
index 000000000..55ad1cc64
--- /dev/null
+++ b/db/schema_0042-planned_reports.sql
@@ -0,0 +1,11 @@
+begin;
+
+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
+);
+
+commit;
-- 
cgit v1.2.3

