diff options
| author | Guillaume Horel <guillaume.horel@gmail.com> | 2018-12-28 12:04:28 -0500 |
|---|---|---|
| committer | Guillaume Horel <guillaume.horel@gmail.com> | 2018-12-28 12:04:28 -0500 |
| commit | 04cf96cdc3ef6c78b2d4754e3c8028b5c1c45fc0 (patch) | |
| tree | 527cf6b90b4e90382c6f95049e580616e1b9932e /schema.sql | |
| parent | b8b80e0a896433bed8eb331aff3ecd12e00fd4ba (diff) | |
| download | id-04cf96cdc3ef6c78b2d4754e3c8028b5c1c45fc0.tar.gz | |
update schema
Diffstat (limited to 'schema.sql')
| -rw-r--r-- | schema.sql | 12 |
1 files changed, 7 insertions, 5 deletions
@@ -1,10 +1,12 @@ +CREATE TABLE users( + id serial PRIMARY KEY, + name text, + password text); + CREATE TABLE sessions( + id uuid DEFAULT gen_random_uuid() PRIMARY KEY, created_at timestamp DEFAULT now(), - session_id uuid DEFAULT gen_random_uuid(), + expire timestamp, user_id integer REFERENCES users(id) ); -CREATE TABLE users( - id integer PRIMARY KEY serial, - user_name text - password text); |
