2018-11-17 16:18:12 -03:00
|
|
|
-- Table: public.nonces
|
|
|
|
|
|
|
|
-- DROP TABLE public.nonces;
|
|
|
|
|
2021-01-16 22:44:31 -03:00
|
|
|
CREATE TABLE IF NOT EXISTS public.nonces
|
2018-11-17 16:18:12 -03:00
|
|
|
(
|
2018-11-19 21:41:11 -03:00
|
|
|
nonce text,
|
2019-02-11 13:59:17 -03:00
|
|
|
expire timestamp with time zone,
|
|
|
|
CONSTRAINT nonces_id_key UNIQUE (nonce)
|
2018-11-17 16:18:12 -03:00
|
|
|
);
|
|
|
|
|
2021-01-16 22:44:31 -03:00
|
|
|
GRANT ALL ON TABLE public.nonces TO current_user;
|
2019-02-11 13:59:17 -03:00
|
|
|
|
|
|
|
-- Index: public.nonces_nonce_idx
|
|
|
|
|
|
|
|
-- DROP INDEX public.nonces_nonce_idx;
|
|
|
|
|
2021-01-16 22:44:31 -03:00
|
|
|
CREATE INDEX IF NOT EXISTS nonces_nonce_idx
|
2019-02-11 13:59:17 -03:00
|
|
|
ON public.nonces
|
|
|
|
USING btree
|
|
|
|
(nonce COLLATE pg_catalog."default");
|
|
|
|
|