sponsorblock-mirror/migrations/2022-10-21-181413_create_sponsor_times/up.sql
2022-10-22 13:28:40 +01:00

24 lines
981 B
SQL

CREATE UNLOGGED TABLE "sponsorTimes"
(
"videoID" TEXT NOT NULL,
"startTime" REAL NOT NULL,
"endTime" REAL NOT NULL,
"votes" INTEGER NOT NULL,
"locked" INTEGER NOT NULL default '0',
"incorrectVotes" INTEGER NOT NULL default '1',
"UUID" TEXT NOT NULL UNIQUE PRIMARY KEY,
"userID" TEXT NOT NULL,
"timeSubmitted" BIGINT NOT NULL,
"views" INTEGER NOT NULL,
"category" TEXT NOT NULL DEFAULT 'sponsor',
"actionType" TEXT NOT NULL DEFAULT 'skip',
"service" TEXT NOT NULL DEFAULT 'YouTube',
"videoDuration" REAL NOT NULL DEFAULT '0',
"hidden" INTEGER NOT NULL DEFAULT '0',
"reputation" REAL NOT NULL DEFAULT 0,
"shadowHidden" INTEGER NOT NULL,
"hashedVideoID" TEXT NOT NULL default '',
"userAgent" TEXT NOT NULL default '',
"description" TEXT NOT NULL default ''
);