invidious-experimenting/config/sql/users.sql

22 lines
538 B
MySQL
Raw Normal View History

2018-03-30 08:11:05 +05:30
-- Table: public.users
-- DROP TABLE public.users;
CREATE TABLE public.users
(
id text COLLATE pg_catalog."default" NOT NULL,
updated timestamp with time zone,
notifications integer,
2018-03-30 08:57:51 +05:30
subscriptions text[] COLLATE pg_catalog."default",
2018-03-31 21:00:17 +05:30
notifications_viewed timestamp with time zone,
email text COLLATE pg_catalog."default" NOT NULL,
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;