SponsorBlockServer/databases/_private.db.sql

31 lines
698 B
MySQL
Raw Normal View History

2019-08-21 23:05:08 +02:00
BEGIN TRANSACTION;
2020-04-30 02:56:34 +02:00
CREATE TABLE IF NOT EXISTS "shadowBannedUsers" (
"userID" TEXT NOT NULL
);
2019-08-21 23:05:08 +02:00
CREATE TABLE IF NOT EXISTS "votes" (
"UUID" TEXT NOT NULL,
2020-04-30 02:56:34 +02:00
"userID" TEXT NOT NULL,
"hashedIP" TEXT NOT NULL,
2019-08-21 23:05:08 +02:00
"type" INTEGER NOT NULL
);
2020-04-30 02:56:34 +02:00
CREATE TABLE IF NOT EXISTS "categoryVotes" (
"UUID" TEXT NOT NULL,
"userID" TEXT NOT NULL,
"hashedIP" TEXT NOT NULL,
"category" TEXT NOT NULL,
"timeSubmitted" INTEGER NOT NULL
2020-04-30 02:56:34 +02:00
);
2019-08-21 23:05:08 +02:00
CREATE TABLE IF NOT EXISTS "sponsorTimes" (
"videoID" TEXT NOT NULL,
"hashedIP" TEXT NOT NULL,
"timeSubmitted" INTEGER NOT NULL
);
2020-04-30 02:56:34 +02:00
CREATE INDEX IF NOT EXISTS sponsorTimes_hashedIP on sponsorTimes(hashedIP);
CREATE INDEX IF NOT EXISTS votes_userID on votes(UUID);
2020-04-30 02:56:34 +02:00
2019-08-21 23:05:08 +02:00
COMMIT;