-
-
Save an01f01/6ea8fcf58e465ddb6a6a9ca771980e46 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- Creates the user table | |
CREATE TABLE IF NOT EXISTS public.users | |
( | |
username character varying COLLATE pg_catalog."default" NOT NULL, | |
pwd character varying COLLATE pg_catalog."default" NOT NULL, | |
created timestamp with time zone NOT NULL DEFAULT now(), | |
CONSTRAINT users_pkey PRIMARY KEY (username) | |
) | |
WITH ( | |
OIDS = FALSE | |
) | |
TABLESPACE pg_default; | |
-- Creates the blacklisted token table | |
CREATE TABLE IF NOT EXISTS public.blacklist_tokens | |
( | |
blacklist_id SERIAL, | |
token_str character varying COLLATE pg_catalog."default" NOT NULL, | |
blacklisted_on timestamp with time zone NOT NULL DEFAULT now(), | |
CONSTRAINT blacklist_tokens_pkey PRIMARY KEY (blacklist_id) | |
) | |
WITH ( | |
OIDS = FALSE | |
) | |
TABLESPACE pg_default; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment