summaryrefslogtreecommitdiffstats
path: root/migrations
diff options
context:
space:
mode:
authorSanto Cariotti <santo@dcariotti.me>2022-09-20 14:43:18 +0000
committerSanto Cariotti <santo@dcariotti.me>2022-09-20 14:43:18 +0000
commite010223224b28df4b53e763b2a4f2a4fb37cc339 (patch)
tree1c216db47ab74f4e024ed63bb097263a9bb2a773 /migrations
parentf7c2f950a5077a44036da9d0757e2d26fec93b3f (diff)
Create warning app
Diffstat (limited to 'migrations')
-rw-r--r--migrations/20220920135729_add-warnings-table.sql10
1 files changed, 10 insertions, 0 deletions
diff --git a/migrations/20220920135729_add-warnings-table.sql b/migrations/20220920135729_add-warnings-table.sql
new file mode 100644
index 0000000..887e4f5
--- /dev/null
+++ b/migrations/20220920135729_add-warnings-table.sql
@@ -0,0 +1,10 @@
+CREATE TABLE warnings (
+ id SERIAL PRIMARY KEY,
+ user_id INTEGER REFERENCES users(id) ON DELETE SET NULL,
+ model_id INTEGER REFERENCES models(id) ON DELETE SET NULL,
+ resolved_by INTEGER REFERENCES users(id) ON DELETE SET NULL,
+ note TEXT,
+ admin_note TEXT,
+ created TIMESTAMP NOT NULL,
+ updated TIMESTAMP NOT NULL
+);