2019-08-21 23:05:08 +02:00
|
|
|
BEGIN TRANSACTION;
|
2020-04-30 02:56:34 +02:00
|
|
|
|
2019-08-22 06:01:27 +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,
|
2020-04-30 03:26:11 +02:00
|
|
|
"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
|
|
|
|
2020-03-04 21:17:50 +01: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;
|