2019-08-21 23:05:08 +02:00
|
|
|
BEGIN TRANSACTION;
|
2020-04-30 02:56:34 +02:00
|
|
|
|
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-05-03 19:25:45 +02:00
|
|
|
CREATE TABLE IF NOT EXISTS "config" (
|
2020-11-24 14:15:13 +01:00
|
|
|
"key" TEXT NOT NULL,
|
2020-05-03 19:25:45 +02:00
|
|
|
"value" TEXT NOT NULL
|
|
|
|
);
|
|
|
|
|
2022-12-23 22:56:27 +01:00
|
|
|
CREATE TABLE IF NOT EXISTS "titleVotes" (
|
|
|
|
"id" SERIAL PRIMARY KEY,
|
2023-01-28 04:36:29 +01:00
|
|
|
"videoID" TEXT NOT NULL,
|
2022-12-23 22:56:27 +01:00
|
|
|
"UUID" TEXT NOT NULL,
|
|
|
|
"userID" TEXT NOT NULL,
|
|
|
|
"hashedIP" TEXT NOT NULL,
|
|
|
|
"type" INTEGER NOT NULL
|
|
|
|
);
|
|
|
|
|
|
|
|
CREATE TABLE IF NOT EXISTS "thumbnailVotes" (
|
|
|
|
"id" SERIAL PRIMARY KEY,
|
2023-01-28 04:36:29 +01:00
|
|
|
"videoID" TEXT NOT NULL,
|
2022-12-23 22:56:27 +01:00
|
|
|
"UUID" TEXT NOT NULL,
|
|
|
|
"userID" TEXT NOT NULL,
|
|
|
|
"hashedIP" TEXT NOT NULL,
|
|
|
|
"type" INTEGER NOT NULL
|
|
|
|
);
|
|
|
|
|
2019-08-21 23:05:08 +02:00
|
|
|
COMMIT;
|