aboutsummaryrefslogtreecommitdiffstats
path: root/schema.sql
diff options
context:
space:
mode:
authorGuillaume Horel <guillaume.horel@gmail.com>2018-12-30 11:58:59 -0500
committerGuillaume Horel <guillaume.horel@gmail.com>2018-12-31 09:06:36 -0500
commit4a75bcac70417691f106f18a32a1cc33d55b0060 (patch)
tree4153da605ff10189288b7659197a702634fbe377 /schema.sql
parent3b49837d167e8770f1054457e172c36109169e51 (diff)
downloadid-4a75bcac70417691f106f18a32a1cc33d55b0060.tar.gz
update schema
Diffstat (limited to 'schema.sql')
-rw-r--r--schema.sql2
1 files changed, 1 insertions, 1 deletions
diff --git a/schema.sql b/schema.sql
index 5fd2c3e..b533685 100644
--- a/schema.sql
+++ b/schema.sql
@@ -7,6 +7,6 @@ CREATE TABLE sessions(
id uuid DEFAULT gen_random_uuid() PRIMARY KEY,
created_at timestamp DEFAULT now(),
expire timestamp,
- user_id integer REFERENCES users(id)
+ user_id integer REFERENCES users(id) ON DELETE CASCADE
);