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
|
|
|
|
);
|
|
|
|
|
2019-08-21 23:05:08 +02:00
|
|
|
COMMIT;
|