2021-03-22 00:16:56 +01:00
|
|
|
-- sponsorTimes
|
|
|
|
|
2021-03-27 00:02:32 +01:00
|
|
|
CREATE INDEX IF NOT EXISTS "sponsorTime_timeSubmitted"
|
2021-03-22 00:16:56 +01:00
|
|
|
ON public."sponsorTimes" USING btree
|
|
|
|
("timeSubmitted" ASC NULLS LAST)
|
|
|
|
TABLESPACE pg_default;
|
|
|
|
|
|
|
|
CREATE INDEX IF NOT EXISTS "sponsorTime_userID"
|
|
|
|
ON public."sponsorTimes" USING btree
|
|
|
|
("userID" COLLATE pg_catalog."default" ASC NULLS LAST)
|
|
|
|
TABLESPACE pg_default;
|
|
|
|
|
|
|
|
CREATE INDEX IF NOT EXISTS "sponsorTimes_UUID"
|
|
|
|
ON public."sponsorTimes" USING btree
|
|
|
|
("UUID" COLLATE pg_catalog."default" ASC NULLS LAST)
|
|
|
|
TABLESPACE pg_default;
|
2021-03-27 00:02:32 +01:00
|
|
|
|
|
|
|
CREATE INDEX IF NOT EXISTS "sponsorTimes_hashedVideoID_gin"
|
2021-03-24 04:46:46 +01:00
|
|
|
ON public."sponsorTimes" USING gin
|
|
|
|
("hashedVideoID" COLLATE pg_catalog."default" gin_trgm_ops, category COLLATE pg_catalog."default" gin_trgm_ops)
|
2021-03-22 00:16:56 +01:00
|
|
|
TABLESPACE pg_default;
|
|
|
|
|
|
|
|
CREATE INDEX IF NOT EXISTS "sponsorTimes_videoID"
|
|
|
|
ON public."sponsorTimes" USING btree
|
|
|
|
("videoID" COLLATE pg_catalog."default" ASC NULLS LAST, service COLLATE pg_catalog."default" ASC NULLS LAST, category COLLATE pg_catalog."default" ASC NULLS LAST, "timeSubmitted" ASC NULLS LAST)
|
|
|
|
TABLESPACE pg_default;
|
|
|
|
|
|
|
|
-- userNames
|
|
|
|
|
|
|
|
CREATE INDEX IF NOT EXISTS "userNames_userID"
|
|
|
|
ON public."userNames" USING btree
|
|
|
|
("userID" COLLATE pg_catalog."default" ASC NULLS LAST)
|
|
|
|
TABLESPACE pg_default;
|
|
|
|
|
|
|
|
-- vipUsers
|
|
|
|
|
|
|
|
CREATE INDEX IF NOT EXISTS "vipUsers_index"
|
|
|
|
ON public."vipUsers" USING btree
|
|
|
|
("userID" COLLATE pg_catalog."default" ASC NULLS LAST)
|
|
|
|
TABLESPACE pg_default;
|
|
|
|
|
|
|
|
-- warnings
|
|
|
|
|
2021-03-27 00:02:32 +01:00
|
|
|
CREATE INDEX IF NOT EXISTS "warnings_index"
|
2021-03-22 00:16:56 +01:00
|
|
|
ON public.warnings USING btree
|
|
|
|
("userID" COLLATE pg_catalog."default" ASC NULLS LAST, "issueTime" DESC NULLS LAST, enabled DESC NULLS LAST)
|
|
|
|
TABLESPACE pg_default;
|
|
|
|
|
|
|
|
CREATE INDEX IF NOT EXISTS "warnings_issueTime"
|
|
|
|
ON public.warnings USING btree
|
|
|
|
("issueTime" ASC NULLS LAST)
|
|
|
|
TABLESPACE pg_default;
|
|
|
|
|
2021-05-06 21:53:31 +02:00
|
|
|
-- lockCategories
|
2021-03-22 00:16:56 +01:00
|
|
|
|
|
|
|
CREATE INDEX IF NOT EXISTS "noSegments_videoID"
|
2021-05-06 21:53:31 +02:00
|
|
|
ON public."lockCategories" USING btree
|
2021-03-22 00:16:56 +01:00
|
|
|
("videoID" COLLATE pg_catalog."default" ASC NULLS LAST, category COLLATE pg_catalog."default" ASC NULLS LAST)
|
|
|
|
TABLESPACE pg_default;
|
|
|
|
|
|
|
|
-- categoryVotes
|
|
|
|
|
|
|
|
CREATE INDEX IF NOT EXISTS "categoryVotes_UUID_public"
|
|
|
|
ON public."categoryVotes" USING btree
|
|
|
|
("UUID" COLLATE pg_catalog."default" ASC NULLS LAST, category COLLATE pg_catalog."default" ASC NULLS LAST)
|
|
|
|
TABLESPACE pg_default;
|