mirror of
https://github.com/ajayyy/SponsorBlockServer.git
synced 2025-12-11 14:07:09 +03:00
23 lines
625 B
SQL
23 lines
625 B
SQL
BEGIN TRANSACTION;
|
|
DROP TABLE IF EXISTS "shadowBannedUsers";
|
|
DROP TABLE IF EXISTS "votes";
|
|
DROP TABLE IF EXISTS "sponsorTimes";
|
|
|
|
CREATE TABLE IF NOT EXISTS "shadowBannedUsers" (
|
|
"userID" TEXT NOT NULL
|
|
);
|
|
CREATE TABLE IF NOT EXISTS "votes" (
|
|
"UUID" TEXT NOT NULL,
|
|
"userID" INTEGER NOT NULL,
|
|
"hashedIP" INTEGER NOT NULL,
|
|
"type" INTEGER NOT NULL
|
|
);
|
|
CREATE TABLE IF NOT EXISTS "sponsorTimes" (
|
|
"videoID" TEXT NOT NULL,
|
|
"hashedIP" TEXT NOT NULL,
|
|
"timeSubmitted" INTEGER NOT NULL
|
|
);
|
|
CREATE INDEX IF NOT EXISTS sponsorTimes_hashedIP on sponsorTimes(hashedIP);
|
|
CREATE INDEX IF NOT EXISTS votes_userID on votes(UUID);
|
|
COMMIT;
|