SponsorBlockServer/databases/_sponsorTimes.db.sql

40 lines
844 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 "vipUsers" (
"userID" TEXT NOT NULL
2019-09-17 01:45:39 +02:00
);
2021-03-05 01:44:54 +01:00
COMMIT;
BEGIN TRANSACTION;
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
);
CREATE TABLE IF NOT EXISTS "userNames" (
"userID" TEXT NOT NULL,
"userName" TEXT NOT NULL
2019-09-17 01:45:39 +02: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
);
CREATE TABLE IF NOT EXISTS "config" (
"key" TEXT NOT NULL UNIQUE,
"value" TEXT NOT NULL
);
2021-03-02 04:20:44 +01:00
CREATE EXTENSION IF NOT EXISTS pgcrypto; --!sqlite-ignore
COMMIT;