CREATE TABLE public.oauth_refresh_tokens ( id varchar(100) NOT NULL, access_token_id varchar(100) NOT NULL, revoked bool NOT NULL, expires_at timestamp NULL, CONSTRAINT oauth_refresh_tokens_pkey PRIMARY KEY (id) ); CREATE INDEX oauth_refresh_tokens_access_token_id_index ON public.oauth_refresh_tokens USING btree (access_token_id);