2018-03-29 19:41:05 -07:00
|
|
|
-- Table: public.users
|
|
|
|
|
|
|
|
-- DROP TABLE public.users;
|
|
|
|
|
2018-08-15 10:40:42 -07:00
|
|
|
CREATE TABLE public.users
|
2018-03-29 19:41:05 -07:00
|
|
|
(
|
2018-08-15 10:40:42 -07:00
|
|
|
id text[] COLLATE pg_catalog."default" NOT NULL,
|
2018-03-29 19:41:05 -07:00
|
|
|
updated timestamp with time zone,
|
2018-03-31 17:09:27 -07:00
|
|
|
notifications text[] COLLATE pg_catalog."default",
|
2018-03-29 20:27:51 -07:00
|
|
|
subscriptions text[] COLLATE pg_catalog."default",
|
2018-03-31 08:30:17 -07:00
|
|
|
email text COLLATE pg_catalog."default" NOT NULL,
|
2018-07-18 18:07:24 -07:00
|
|
|
preferences text COLLATE pg_catalog."default",
|
2018-07-18 12:26:02 -07:00
|
|
|
password text COLLATE pg_catalog."default",
|
2018-07-20 16:41:23 -07:00
|
|
|
token text COLLATE pg_catalog."default",
|
2018-07-28 18:40:59 -07:00
|
|
|
watched text[] COLLATE pg_catalog."default",
|
2018-03-31 08:30:17 -07:00
|
|
|
CONSTRAINT users_email_key UNIQUE (email),
|
2018-03-29 20:27:51 -07:00
|
|
|
CONSTRAINT users_id_key UNIQUE (id)
|
2018-03-29 19:41:05 -07:00
|
|
|
)
|
|
|
|
WITH (
|
|
|
|
OIDS = FALSE
|
|
|
|
)
|
|
|
|
TABLESPACE pg_default;
|
|
|
|
|
|
|
|
GRANT ALL ON TABLE public.users TO kemal;
|