Skip to content

Instantly share code, notes, and snippets.

@an01f01
Last active July 15, 2022 19:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save an01f01/6ea8fcf58e465ddb6a6a9ca771980e46 to your computer and use it in GitHub Desktop.
Save an01f01/6ea8fcf58e465ddb6a6a9ca771980e46 to your computer and use it in GitHub Desktop.
-- 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