2017-10-16 23:27:19 +00:00
|
|
|
BEGIN TRANSACTION;
|
|
|
|
CREATE TABLE "table_shows" (
|
|
|
|
`tvdbId` INTEGER NOT NULL UNIQUE,
|
|
|
|
`title` TEXT NOT NULL,
|
|
|
|
`path` TEXT NOT NULL UNIQUE,
|
|
|
|
`languages` TEXT,
|
|
|
|
`hearing_impaired` TEXT,
|
|
|
|
`sonarrSeriesId` INTEGER NOT NULL UNIQUE,
|
|
|
|
`overview` TEXT,
|
|
|
|
`poster` TEXT,
|
|
|
|
`fanart` TEXT,
|
2018-08-23 19:58:15 +00:00
|
|
|
`audio_language` "text",
|
|
|
|
`sortTitle` "text",
|
2017-10-16 23:27:19 +00:00
|
|
|
PRIMARY KEY(`tvdbId`)
|
|
|
|
);
|
|
|
|
CREATE TABLE "table_settings_providers" (
|
|
|
|
`name` TEXT NOT NULL UNIQUE,
|
|
|
|
`enabled` INTEGER,
|
2018-08-23 19:58:15 +00:00
|
|
|
`username` "text",
|
|
|
|
`password` "text",
|
2017-10-16 23:27:19 +00:00
|
|
|
PRIMARY KEY(`name`)
|
|
|
|
);
|
|
|
|
CREATE TABLE "table_settings_languages" (
|
|
|
|
`code3` TEXT NOT NULL UNIQUE,
|
|
|
|
`code2` TEXT,
|
|
|
|
`name` TEXT NOT NULL,
|
|
|
|
`enabled` INTEGER,
|
|
|
|
PRIMARY KEY(`code3`)
|
|
|
|
);
|
|
|
|
CREATE TABLE "table_history" (
|
|
|
|
`id` INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT UNIQUE,
|
|
|
|
`action` INTEGER NOT NULL,
|
|
|
|
`sonarrSeriesId` INTEGER NOT NULL,
|
|
|
|
`sonarrEpisodeId` INTEGER NOT NULL,
|
|
|
|
`timestamp` INTEGER NOT NULL,
|
|
|
|
`description` TEXT NOT NULL
|
|
|
|
);
|
|
|
|
CREATE TABLE "table_episodes" (
|
|
|
|
`sonarrSeriesId` INTEGER NOT NULL,
|
|
|
|
`sonarrEpisodeId` INTEGER NOT NULL UNIQUE,
|
|
|
|
`title` TEXT NOT NULL,
|
2018-02-22 03:09:27 +00:00
|
|
|
`path` TEXT NOT NULL,
|
2017-10-16 23:27:19 +00:00
|
|
|
`season` INTEGER NOT NULL,
|
|
|
|
`episode` INTEGER NOT NULL,
|
|
|
|
`subtitles` TEXT,
|
2018-08-23 19:58:15 +00:00
|
|
|
`missing_subtitles` TEXT,
|
|
|
|
`scene_name` TEXT,
|
2018-08-29 23:02:18 +00:00
|
|
|
`monitored` TEXT,
|
|
|
|
`failedAttempts` "text"
|
2018-08-23 19:58:15 +00:00
|
|
|
);
|
|
|
|
CREATE TABLE "table_movies" (
|
|
|
|
`tmdbId` TEXT NOT NULL UNIQUE,
|
|
|
|
`title` TEXT NOT NULL,
|
|
|
|
`path` TEXT NOT NULL UNIQUE,
|
|
|
|
`languages` TEXT,
|
|
|
|
`subtitles` TEXT,
|
|
|
|
`missing_subtitles` TEXT,
|
|
|
|
`hearing_impaired` TEXT,
|
|
|
|
`radarrId` INTEGER NOT NULL UNIQUE,
|
|
|
|
`overview` TEXT,
|
|
|
|
`poster` TEXT,
|
|
|
|
`fanart` TEXT,
|
|
|
|
`audio_language` "text",
|
|
|
|
`sceneName` TEXT,
|
2018-08-29 23:39:16 +00:00
|
|
|
`monitored` TEXT,
|
|
|
|
`failedAttempts` "text",
|
|
|
|
PRIMARY KEY(`tmdbId`)
|
2018-08-23 19:58:15 +00:00
|
|
|
);
|
|
|
|
CREATE TABLE "table_history_movie" (
|
|
|
|
`id` INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT UNIQUE,
|
|
|
|
`action` INTEGER NOT NULL,
|
|
|
|
`radarrId` INTEGER NOT NULL,
|
|
|
|
`timestamp` INTEGER NOT NULL,
|
|
|
|
`description` TEXT NOT NULL
|
|
|
|
);
|
|
|
|
CREATE TABLE "system" (
|
|
|
|
`configured` TEXT,
|
|
|
|
`updated` TEXT
|
2017-10-16 23:27:19 +00:00
|
|
|
);
|
2018-08-23 19:58:15 +00:00
|
|
|
INSERT INTO `system` (configured, updated) VALUES ('0', '0');
|
2017-10-16 23:27:19 +00:00
|
|
|
COMMIT;
|