invidious-experimenting/config/sql/users.sql

25 lines
711 B
MySQL
Raw Normal View History

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