2018-11-18 00:48:12 +05:30
|
|
|
-- Table: public.nonces
|
|
|
|
|
|
|
|
-- DROP TABLE public.nonces;
|
|
|
|
|
2021-01-17 07:14:31 +05:30
|
|
|
CREATE TABLE IF NOT EXISTS public.nonces
|
2018-11-18 00:48:12 +05:30
|
|
|
(
|
2018-11-20 06:11:11 +05:30
|
|
|
nonce text,
|
2019-02-11 22:29:17 +05:30
|
|
|
expire timestamp with time zone,
|
|
|
|
CONSTRAINT nonces_id_key UNIQUE (nonce)
|
2018-11-18 00:48:12 +05:30
|
|
|
);
|
|
|
|
|
2021-01-17 07:14:31 +05:30
|
|
|
GRANT ALL ON TABLE public.nonces TO current_user;
|
2019-02-11 22:29:17 +05:30
|
|
|
|
|
|
|
-- Index: public.nonces_nonce_idx
|
|
|
|
|
|
|
|
-- DROP INDEX public.nonces_nonce_idx;
|
|
|
|
|
2021-01-17 07:14:31 +05:30
|
|
|
CREATE INDEX IF NOT EXISTS nonces_nonce_idx
|
2019-02-11 22:29:17 +05:30
|
|
|
ON public.nonces
|
|
|
|
USING btree
|
|
|
|
(nonce COLLATE pg_catalog."default");
|
|
|
|
|