2019-08-21 23:05:08 +02:00
|
|
|
BEGIN TRANSACTION;
|
2020-04-30 02:56:34 +02:00
|
|
|
|
2021-03-05 02:23:05 +01:00
|
|
|
CREATE TABLE IF NOT EXISTS "vipUsers" (
|
|
|
|
"userID" TEXT NOT NULL
|
2019-09-17 01:45:39 +02:00
|
|
|
);
|
2021-03-05 01:44:54 +01:00
|
|
|
|
|
|
|
COMMIT;
|
|
|
|
|
|
|
|
BEGIN TRANSACTION;
|
|
|
|
|
2021-03-05 02:23:05 +01:00
|
|
|
CREATE TABLE IF NOT EXISTS "sponsorTimes" (
|
|
|
|
"videoID" TEXT NOT NULL,
|
|
|
|
"startTime" REAL NOT NULL,
|
|
|
|
"endTime" REAL NOT NULL,
|
|
|
|
"votes" INTEGER NOT NULL,
|
|
|
|
"UUID" TEXT NOT NULL UNIQUE,
|
|
|
|
"userID" TEXT NOT NULL,
|
|
|
|
"timeSubmitted" INTEGER NOT NULL,
|
|
|
|
"views" INTEGER NOT NULL,
|
|
|
|
"category" TEXT NOT NULL,
|
|
|
|
"shadowHidden" INTEGER NOT NULL
|
2019-08-22 06:01:27 +02:00
|
|
|
);
|
2021-03-05 02:23:05 +01:00
|
|
|
CREATE TABLE IF NOT EXISTS "userNames" (
|
|
|
|
"userID" TEXT NOT NULL,
|
|
|
|
"userName" TEXT NOT NULL
|
2019-09-17 01:45:39 +02:00
|
|
|
);
|
2021-03-05 02:23:05 +01:00
|
|
|
CREATE TABLE IF NOT EXISTS "categoryVotes" (
|
|
|
|
"UUID" TEXT NOT NULL,
|
|
|
|
"category" TEXT NOT NULL,
|
|
|
|
"votes" INTEGER NOT NULL default 0
|
2020-04-30 02:56:34 +02:00
|
|
|
);
|
2020-04-28 05:01:51 +02:00
|
|
|
|
2021-03-05 02:23:05 +01:00
|
|
|
CREATE TABLE IF NOT EXISTS "config" (
|
|
|
|
"key" TEXT NOT NULL UNIQUE,
|
|
|
|
"value" TEXT NOT NULL
|
2020-04-28 05:01:51 +02:00
|
|
|
);
|
|
|
|
|
2021-03-02 04:20:44 +01:00
|
|
|
CREATE EXTENSION IF NOT EXISTS pgcrypto; --!sqlite-ignore
|
|
|
|
|
2020-03-04 21:17:50 +01:00
|
|
|
COMMIT;
|