2018-03-29 22:41:05 -04:00
|
|
|
-- Table: public.users
|
|
|
|
|
|
|
|
-- DROP TABLE public.users;
|
|
|
|
|
|
|
|
CREATE TABLE public.users
|
|
|
|
(
|
|
|
|
id text COLLATE pg_catalog."default" NOT NULL,
|
|
|
|
updated timestamp with time zone,
|
2018-03-31 20:09:27 -04:00
|
|
|
notifications text[] COLLATE pg_catalog."default",
|
2018-03-29 23:27:51 -04:00
|
|
|
subscriptions text[] COLLATE pg_catalog."default",
|
2018-03-31 11:30:17 -04:00
|
|
|
email text COLLATE pg_catalog."default" NOT NULL,
|
|
|
|
CONSTRAINT users_email_key UNIQUE (email),
|
2018-03-29 23:27:51 -04:00
|
|
|
CONSTRAINT users_id_key UNIQUE (id)
|
2018-03-29 22:41:05 -04:00
|
|
|
)
|
|
|
|
WITH (
|
|
|
|
OIDS = FALSE
|
|
|
|
)
|
|
|
|
TABLESPACE pg_default;
|
|
|
|
|
|
|
|
GRANT ALL ON TABLE public.users TO kemal;
|