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