diff --git a/app/schemas/io.legado.app.data.AppDatabase/1.json b/app/schemas/io.legado.app.data.AppDatabase/1.json deleted file mode 100644 index 1ab906cf0..000000000 --- a/app/schemas/io.legado.app.data.AppDatabase/1.json +++ /dev/null @@ -1,1022 +0,0 @@ -{ - "formatVersion": 1, - "database": { - "version": 1, - "identityHash": "d9ed367fc7241a61e9f770d416c4f887", - "entities": [ - { - "tableName": "books", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`bookUrl` TEXT NOT NULL, `tocUrl` TEXT NOT NULL, `origin` TEXT NOT NULL, `originName` TEXT NOT NULL, `name` TEXT NOT NULL, `author` TEXT NOT NULL, `kind` TEXT, `customTag` TEXT, `coverUrl` TEXT, `customCoverUrl` TEXT, `intro` TEXT, `customIntro` TEXT, `charset` TEXT, `type` INTEGER NOT NULL, `group` INTEGER NOT NULL, `latestChapterTitle` TEXT, `latestChapterTime` INTEGER NOT NULL, `lastCheckTime` INTEGER NOT NULL, `lastCheckCount` INTEGER NOT NULL, `totalChapterNum` INTEGER NOT NULL, `durChapterTitle` TEXT, `durChapterIndex` INTEGER NOT NULL, `durChapterPos` INTEGER NOT NULL, `durChapterTime` INTEGER NOT NULL, `wordCount` TEXT, `canUpdate` INTEGER NOT NULL, `order` INTEGER NOT NULL, `originOrder` INTEGER NOT NULL, `useReplaceRule` INTEGER NOT NULL, `variable` TEXT, PRIMARY KEY(`bookUrl`))", - "fields": [ - { - "fieldPath": "bookUrl", - "columnName": "bookUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "tocUrl", - "columnName": "tocUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "origin", - "columnName": "origin", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "originName", - "columnName": "originName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "author", - "columnName": "author", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "kind", - "columnName": "kind", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "customTag", - "columnName": "customTag", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "coverUrl", - "columnName": "coverUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "customCoverUrl", - "columnName": "customCoverUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "intro", - "columnName": "intro", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "customIntro", - "columnName": "customIntro", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "charset", - "columnName": "charset", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "type", - "columnName": "type", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "group", - "columnName": "group", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "latestChapterTitle", - "columnName": "latestChapterTitle", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "latestChapterTime", - "columnName": "latestChapterTime", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "lastCheckTime", - "columnName": "lastCheckTime", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "lastCheckCount", - "columnName": "lastCheckCount", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "totalChapterNum", - "columnName": "totalChapterNum", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "durChapterTitle", - "columnName": "durChapterTitle", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "durChapterIndex", - "columnName": "durChapterIndex", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "durChapterPos", - "columnName": "durChapterPos", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "durChapterTime", - "columnName": "durChapterTime", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "wordCount", - "columnName": "wordCount", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "canUpdate", - "columnName": "canUpdate", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "order", - "columnName": "order", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "originOrder", - "columnName": "originOrder", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "useReplaceRule", - "columnName": "useReplaceRule", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "variable", - "columnName": "variable", - "affinity": "TEXT", - "notNull": false - } - ], - "primaryKey": { - "columnNames": [ - "bookUrl" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_books_bookUrl", - "unique": true, - "columnNames": [ - "bookUrl" - ], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_books_bookUrl` ON `${TABLE_NAME}` (`bookUrl`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "book_groups", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`groupId` INTEGER NOT NULL, `groupName` TEXT NOT NULL, `order` INTEGER NOT NULL, PRIMARY KEY(`groupId`))", - "fields": [ - { - "fieldPath": "groupId", - "columnName": "groupId", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "groupName", - "columnName": "groupName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "order", - "columnName": "order", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "groupId" - ], - "autoGenerate": false - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "book_sources", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`bookSourceName` TEXT NOT NULL, `bookSourceGroup` TEXT, `bookSourceUrl` TEXT NOT NULL, `bookSourceType` INTEGER NOT NULL, `bookUrlPattern` TEXT, `customOrder` INTEGER NOT NULL, `enabled` INTEGER NOT NULL, `enabledExplore` INTEGER NOT NULL, `header` TEXT, `loginUrl` TEXT, `lastUpdateTime` INTEGER NOT NULL, `weight` INTEGER NOT NULL, `exploreUrl` TEXT, `ruleExplore` TEXT, `searchUrl` TEXT, `ruleSearch` TEXT, `ruleBookInfo` TEXT, `ruleToc` TEXT, `ruleContent` TEXT, PRIMARY KEY(`bookSourceUrl`))", - "fields": [ - { - "fieldPath": "bookSourceName", - "columnName": "bookSourceName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookSourceGroup", - "columnName": "bookSourceGroup", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "bookSourceUrl", - "columnName": "bookSourceUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookSourceType", - "columnName": "bookSourceType", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "bookUrlPattern", - "columnName": "bookUrlPattern", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "customOrder", - "columnName": "customOrder", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "enabled", - "columnName": "enabled", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "enabledExplore", - "columnName": "enabledExplore", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "header", - "columnName": "header", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "loginUrl", - "columnName": "loginUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "lastUpdateTime", - "columnName": "lastUpdateTime", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "weight", - "columnName": "weight", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "exploreUrl", - "columnName": "exploreUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleExplore", - "columnName": "ruleExplore", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "searchUrl", - "columnName": "searchUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleSearch", - "columnName": "ruleSearch", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleBookInfo", - "columnName": "ruleBookInfo", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleToc", - "columnName": "ruleToc", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleContent", - "columnName": "ruleContent", - "affinity": "TEXT", - "notNull": false - } - ], - "primaryKey": { - "columnNames": [ - "bookSourceUrl" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_book_sources_bookSourceUrl", - "unique": false, - "columnNames": [ - "bookSourceUrl" - ], - "createSql": "CREATE INDEX IF NOT EXISTS `index_book_sources_bookSourceUrl` ON `${TABLE_NAME}` (`bookSourceUrl`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "chapters", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`url` TEXT NOT NULL, `title` TEXT NOT NULL, `bookUrl` TEXT NOT NULL, `index` INTEGER NOT NULL, `resourceUrl` TEXT, `tag` TEXT, `start` INTEGER, `end` INTEGER, `variable` TEXT, PRIMARY KEY(`url`, `bookUrl`), FOREIGN KEY(`bookUrl`) REFERENCES `books`(`bookUrl`) ON UPDATE NO ACTION ON DELETE CASCADE )", - "fields": [ - { - "fieldPath": "url", - "columnName": "url", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "title", - "columnName": "title", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookUrl", - "columnName": "bookUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "index", - "columnName": "index", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "resourceUrl", - "columnName": "resourceUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "tag", - "columnName": "tag", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "start", - "columnName": "start", - "affinity": "INTEGER", - "notNull": false - }, - { - "fieldPath": "end", - "columnName": "end", - "affinity": "INTEGER", - "notNull": false - }, - { - "fieldPath": "variable", - "columnName": "variable", - "affinity": "TEXT", - "notNull": false - } - ], - "primaryKey": { - "columnNames": [ - "url", - "bookUrl" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_chapters_bookUrl", - "unique": false, - "columnNames": [ - "bookUrl" - ], - "createSql": "CREATE INDEX IF NOT EXISTS `index_chapters_bookUrl` ON `${TABLE_NAME}` (`bookUrl`)" - }, - { - "name": "index_chapters_bookUrl_index", - "unique": true, - "columnNames": [ - "bookUrl", - "index" - ], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_chapters_bookUrl_index` ON `${TABLE_NAME}` (`bookUrl`, `index`)" - } - ], - "foreignKeys": [ - { - "table": "books", - "onDelete": "CASCADE", - "onUpdate": "NO ACTION", - "columns": [ - "bookUrl" - ], - "referencedColumns": [ - "bookUrl" - ] - } - ] - }, - { - "tableName": "replace_rules", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, `name` TEXT NOT NULL, `group` TEXT, `pattern` TEXT NOT NULL, `replacement` TEXT NOT NULL, `scope` TEXT, `isEnabled` INTEGER NOT NULL, `isRegex` INTEGER NOT NULL, `sortOrder` INTEGER NOT NULL)", - "fields": [ - { - "fieldPath": "id", - "columnName": "id", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "group", - "columnName": "group", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "pattern", - "columnName": "pattern", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "replacement", - "columnName": "replacement", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "scope", - "columnName": "scope", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "isEnabled", - "columnName": "isEnabled", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "isRegex", - "columnName": "isRegex", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "order", - "columnName": "sortOrder", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "id" - ], - "autoGenerate": true - }, - "indices": [ - { - "name": "index_replace_rules_id", - "unique": false, - "columnNames": [ - "id" - ], - "createSql": "CREATE INDEX IF NOT EXISTS `index_replace_rules_id` ON `${TABLE_NAME}` (`id`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "searchBooks", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`bookUrl` TEXT NOT NULL, `origin` TEXT NOT NULL, `originName` TEXT NOT NULL, `type` INTEGER NOT NULL, `name` TEXT NOT NULL, `author` TEXT NOT NULL, `kind` TEXT, `coverUrl` TEXT, `intro` TEXT, `wordCount` TEXT, `latestChapterTitle` TEXT, `tocUrl` TEXT NOT NULL, `time` INTEGER NOT NULL, `variable` TEXT, `originOrder` INTEGER NOT NULL, PRIMARY KEY(`bookUrl`))", - "fields": [ - { - "fieldPath": "bookUrl", - "columnName": "bookUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "origin", - "columnName": "origin", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "originName", - "columnName": "originName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "type", - "columnName": "type", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "author", - "columnName": "author", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "kind", - "columnName": "kind", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "coverUrl", - "columnName": "coverUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "intro", - "columnName": "intro", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "wordCount", - "columnName": "wordCount", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "latestChapterTitle", - "columnName": "latestChapterTitle", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "tocUrl", - "columnName": "tocUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "time", - "columnName": "time", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "variable", - "columnName": "variable", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "originOrder", - "columnName": "originOrder", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "bookUrl" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_searchBooks_bookUrl", - "unique": true, - "columnNames": [ - "bookUrl" - ], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_searchBooks_bookUrl` ON `${TABLE_NAME}` (`bookUrl`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "search_keywords", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`word` TEXT NOT NULL, `usage` INTEGER NOT NULL, `lastUseTime` INTEGER NOT NULL, PRIMARY KEY(`word`))", - "fields": [ - { - "fieldPath": "word", - "columnName": "word", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "usage", - "columnName": "usage", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "lastUseTime", - "columnName": "lastUseTime", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "word" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_search_keywords_word", - "unique": true, - "columnNames": [ - "word" - ], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_search_keywords_word` ON `${TABLE_NAME}` (`word`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "cookies", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`url` TEXT NOT NULL, `cookie` TEXT NOT NULL, PRIMARY KEY(`url`))", - "fields": [ - { - "fieldPath": "url", - "columnName": "url", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "cookie", - "columnName": "cookie", - "affinity": "TEXT", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "url" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_cookies_url", - "unique": true, - "columnNames": [ - "url" - ], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_cookies_url` ON `${TABLE_NAME}` (`url`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "rssSources", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`sourceUrl` TEXT NOT NULL, `sourceName` TEXT NOT NULL, `sourceIcon` TEXT NOT NULL, `sourceGroup` TEXT, `enabled` INTEGER NOT NULL, `ruleArticles` TEXT, `ruleNextPage` TEXT, `ruleTitle` TEXT, `rulePubDate` TEXT, `ruleCategories` TEXT, `ruleDescription` TEXT, `ruleImage` TEXT, `ruleLink` TEXT, `ruleContent` TEXT, `enableJs` INTEGER NOT NULL, `loadWithBaseUrl` INTEGER NOT NULL, `customOrder` INTEGER NOT NULL, PRIMARY KEY(`sourceUrl`))", - "fields": [ - { - "fieldPath": "sourceUrl", - "columnName": "sourceUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "sourceName", - "columnName": "sourceName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "sourceIcon", - "columnName": "sourceIcon", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "sourceGroup", - "columnName": "sourceGroup", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "enabled", - "columnName": "enabled", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "ruleArticles", - "columnName": "ruleArticles", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleNextPage", - "columnName": "ruleNextPage", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleTitle", - "columnName": "ruleTitle", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "rulePubDate", - "columnName": "rulePubDate", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleCategories", - "columnName": "ruleCategories", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleDescription", - "columnName": "ruleDescription", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleImage", - "columnName": "ruleImage", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleLink", - "columnName": "ruleLink", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleContent", - "columnName": "ruleContent", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "enableJs", - "columnName": "enableJs", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "loadWithBaseUrl", - "columnName": "loadWithBaseUrl", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "customOrder", - "columnName": "customOrder", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "sourceUrl" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_rssSources_sourceUrl", - "unique": false, - "columnNames": [ - "sourceUrl" - ], - "createSql": "CREATE INDEX IF NOT EXISTS `index_rssSources_sourceUrl` ON `${TABLE_NAME}` (`sourceUrl`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "bookmarks", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`time` INTEGER NOT NULL, `bookUrl` TEXT NOT NULL, `bookName` TEXT NOT NULL, `chapterName` TEXT NOT NULL, `chapterIndex` INTEGER NOT NULL, `pageIndex` INTEGER NOT NULL, `content` TEXT NOT NULL, PRIMARY KEY(`time`))", - "fields": [ - { - "fieldPath": "time", - "columnName": "time", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "bookUrl", - "columnName": "bookUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookName", - "columnName": "bookName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "chapterName", - "columnName": "chapterName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "chapterIndex", - "columnName": "chapterIndex", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "pageIndex", - "columnName": "pageIndex", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "content", - "columnName": "content", - "affinity": "TEXT", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "time" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_bookmarks_bookUrl", - "unique": true, - "columnNames": [ - "bookUrl" - ], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_bookmarks_bookUrl` ON `${TABLE_NAME}` (`bookUrl`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "rssArticles", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`origin` TEXT NOT NULL, `title` TEXT NOT NULL, `order` INTEGER NOT NULL, `link` TEXT NOT NULL, `pubDate` TEXT, `description` TEXT, `content` TEXT, `image` TEXT, `categories` TEXT, `read` INTEGER NOT NULL, `star` INTEGER NOT NULL, PRIMARY KEY(`origin`, `link`))", - "fields": [ - { - "fieldPath": "origin", - "columnName": "origin", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "title", - "columnName": "title", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "order", - "columnName": "order", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "link", - "columnName": "link", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "pubDate", - "columnName": "pubDate", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "description", - "columnName": "description", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "content", - "columnName": "content", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "image", - "columnName": "image", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "categories", - "columnName": "categories", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "read", - "columnName": "read", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "star", - "columnName": "star", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "origin", - "link" - ], - "autoGenerate": false - }, - "indices": [], - "foreignKeys": [] - } - ], - "views": [], - "setupQueries": [ - "CREATE TABLE IF NOT EXISTS room_master_table (id INTEGER PRIMARY KEY,identity_hash TEXT)", - "INSERT OR REPLACE INTO room_master_table (id,identity_hash) VALUES(42, 'd9ed367fc7241a61e9f770d416c4f887')" - ] - } -} \ No newline at end of file diff --git a/app/schemas/io.legado.app.data.AppDatabase/10.json b/app/schemas/io.legado.app.data.AppDatabase/10.json deleted file mode 100644 index ddbecfb58..000000000 --- a/app/schemas/io.legado.app.data.AppDatabase/10.json +++ /dev/null @@ -1,1176 +0,0 @@ -{ - "formatVersion": 1, - "database": { - "version": 10, - "identityHash": "a9744f575dad6d4774cccc433921973b", - "entities": [ - { - "tableName": "books", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`bookUrl` TEXT NOT NULL, `tocUrl` TEXT NOT NULL, `origin` TEXT NOT NULL, `originName` TEXT NOT NULL, `name` TEXT NOT NULL, `author` TEXT NOT NULL, `kind` TEXT, `customTag` TEXT, `coverUrl` TEXT, `customCoverUrl` TEXT, `intro` TEXT, `customIntro` TEXT, `charset` TEXT, `type` INTEGER NOT NULL, `group` INTEGER NOT NULL, `latestChapterTitle` TEXT, `latestChapterTime` INTEGER NOT NULL, `lastCheckTime` INTEGER NOT NULL, `lastCheckCount` INTEGER NOT NULL, `totalChapterNum` INTEGER NOT NULL, `durChapterTitle` TEXT, `durChapterIndex` INTEGER NOT NULL, `durChapterPos` INTEGER NOT NULL, `durChapterTime` INTEGER NOT NULL, `wordCount` TEXT, `canUpdate` INTEGER NOT NULL, `order` INTEGER NOT NULL, `originOrder` INTEGER NOT NULL, `useReplaceRule` INTEGER NOT NULL, `variable` TEXT, PRIMARY KEY(`name`, `author`))", - "fields": [ - { - "fieldPath": "bookUrl", - "columnName": "bookUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "tocUrl", - "columnName": "tocUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "origin", - "columnName": "origin", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "originName", - "columnName": "originName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "author", - "columnName": "author", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "kind", - "columnName": "kind", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "customTag", - "columnName": "customTag", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "coverUrl", - "columnName": "coverUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "customCoverUrl", - "columnName": "customCoverUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "intro", - "columnName": "intro", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "customIntro", - "columnName": "customIntro", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "charset", - "columnName": "charset", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "type", - "columnName": "type", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "group", - "columnName": "group", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "latestChapterTitle", - "columnName": "latestChapterTitle", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "latestChapterTime", - "columnName": "latestChapterTime", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "lastCheckTime", - "columnName": "lastCheckTime", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "lastCheckCount", - "columnName": "lastCheckCount", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "totalChapterNum", - "columnName": "totalChapterNum", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "durChapterTitle", - "columnName": "durChapterTitle", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "durChapterIndex", - "columnName": "durChapterIndex", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "durChapterPos", - "columnName": "durChapterPos", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "durChapterTime", - "columnName": "durChapterTime", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "wordCount", - "columnName": "wordCount", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "canUpdate", - "columnName": "canUpdate", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "order", - "columnName": "order", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "originOrder", - "columnName": "originOrder", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "useReplaceRule", - "columnName": "useReplaceRule", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "variable", - "columnName": "variable", - "affinity": "TEXT", - "notNull": false - } - ], - "primaryKey": { - "columnNames": [ - "name", - "author" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_books_bookUrl", - "unique": true, - "columnNames": [ - "bookUrl" - ], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_books_bookUrl` ON `${TABLE_NAME}` (`bookUrl`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "book_groups", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`groupId` INTEGER NOT NULL, `groupName` TEXT NOT NULL, `order` INTEGER NOT NULL, PRIMARY KEY(`groupId`))", - "fields": [ - { - "fieldPath": "groupId", - "columnName": "groupId", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "groupName", - "columnName": "groupName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "order", - "columnName": "order", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "groupId" - ], - "autoGenerate": false - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "book_sources", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`bookSourceName` TEXT NOT NULL, `bookSourceGroup` TEXT, `bookSourceUrl` TEXT NOT NULL, `bookSourceType` INTEGER NOT NULL, `bookUrlPattern` TEXT, `customOrder` INTEGER NOT NULL, `enabled` INTEGER NOT NULL, `enabledExplore` INTEGER NOT NULL, `header` TEXT, `loginUrl` TEXT, `lastUpdateTime` INTEGER NOT NULL, `weight` INTEGER NOT NULL, `exploreUrl` TEXT, `ruleExplore` TEXT, `searchUrl` TEXT, `ruleSearch` TEXT, `ruleBookInfo` TEXT, `ruleToc` TEXT, `ruleContent` TEXT, PRIMARY KEY(`bookSourceUrl`))", - "fields": [ - { - "fieldPath": "bookSourceName", - "columnName": "bookSourceName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookSourceGroup", - "columnName": "bookSourceGroup", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "bookSourceUrl", - "columnName": "bookSourceUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookSourceType", - "columnName": "bookSourceType", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "bookUrlPattern", - "columnName": "bookUrlPattern", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "customOrder", - "columnName": "customOrder", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "enabled", - "columnName": "enabled", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "enabledExplore", - "columnName": "enabledExplore", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "header", - "columnName": "header", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "loginUrl", - "columnName": "loginUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "lastUpdateTime", - "columnName": "lastUpdateTime", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "weight", - "columnName": "weight", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "exploreUrl", - "columnName": "exploreUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleExplore", - "columnName": "ruleExplore", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "searchUrl", - "columnName": "searchUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleSearch", - "columnName": "ruleSearch", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleBookInfo", - "columnName": "ruleBookInfo", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleToc", - "columnName": "ruleToc", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleContent", - "columnName": "ruleContent", - "affinity": "TEXT", - "notNull": false - } - ], - "primaryKey": { - "columnNames": [ - "bookSourceUrl" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_book_sources_bookSourceUrl", - "unique": false, - "columnNames": [ - "bookSourceUrl" - ], - "createSql": "CREATE INDEX IF NOT EXISTS `index_book_sources_bookSourceUrl` ON `${TABLE_NAME}` (`bookSourceUrl`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "chapters", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`url` TEXT NOT NULL, `title` TEXT NOT NULL, `bookUrl` TEXT NOT NULL, `index` INTEGER NOT NULL, `resourceUrl` TEXT, `tag` TEXT, `start` INTEGER, `end` INTEGER, `variable` TEXT, PRIMARY KEY(`url`, `bookUrl`), FOREIGN KEY(`bookUrl`) REFERENCES `books`(`bookUrl`) ON UPDATE NO ACTION ON DELETE CASCADE )", - "fields": [ - { - "fieldPath": "url", - "columnName": "url", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "title", - "columnName": "title", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookUrl", - "columnName": "bookUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "index", - "columnName": "index", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "resourceUrl", - "columnName": "resourceUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "tag", - "columnName": "tag", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "start", - "columnName": "start", - "affinity": "INTEGER", - "notNull": false - }, - { - "fieldPath": "end", - "columnName": "end", - "affinity": "INTEGER", - "notNull": false - }, - { - "fieldPath": "variable", - "columnName": "variable", - "affinity": "TEXT", - "notNull": false - } - ], - "primaryKey": { - "columnNames": [ - "url", - "bookUrl" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_chapters_bookUrl", - "unique": false, - "columnNames": [ - "bookUrl" - ], - "createSql": "CREATE INDEX IF NOT EXISTS `index_chapters_bookUrl` ON `${TABLE_NAME}` (`bookUrl`)" - }, - { - "name": "index_chapters_bookUrl_index", - "unique": true, - "columnNames": [ - "bookUrl", - "index" - ], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_chapters_bookUrl_index` ON `${TABLE_NAME}` (`bookUrl`, `index`)" - } - ], - "foreignKeys": [ - { - "table": "books", - "onDelete": "CASCADE", - "onUpdate": "NO ACTION", - "columns": [ - "bookUrl" - ], - "referencedColumns": [ - "bookUrl" - ] - } - ] - }, - { - "tableName": "replace_rules", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, `name` TEXT NOT NULL, `group` TEXT, `pattern` TEXT NOT NULL, `replacement` TEXT NOT NULL, `scope` TEXT, `isEnabled` INTEGER NOT NULL, `isRegex` INTEGER NOT NULL, `sortOrder` INTEGER NOT NULL)", - "fields": [ - { - "fieldPath": "id", - "columnName": "id", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "group", - "columnName": "group", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "pattern", - "columnName": "pattern", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "replacement", - "columnName": "replacement", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "scope", - "columnName": "scope", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "isEnabled", - "columnName": "isEnabled", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "isRegex", - "columnName": "isRegex", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "order", - "columnName": "sortOrder", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "id" - ], - "autoGenerate": true - }, - "indices": [ - { - "name": "index_replace_rules_id", - "unique": false, - "columnNames": [ - "id" - ], - "createSql": "CREATE INDEX IF NOT EXISTS `index_replace_rules_id` ON `${TABLE_NAME}` (`id`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "searchBooks", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`bookUrl` TEXT NOT NULL, `origin` TEXT NOT NULL, `originName` TEXT NOT NULL, `type` INTEGER NOT NULL, `name` TEXT NOT NULL, `author` TEXT NOT NULL, `kind` TEXT, `coverUrl` TEXT, `intro` TEXT, `wordCount` TEXT, `latestChapterTitle` TEXT, `tocUrl` TEXT NOT NULL, `time` INTEGER NOT NULL, `variable` TEXT, `originOrder` INTEGER NOT NULL, PRIMARY KEY(`bookUrl`), FOREIGN KEY(`origin`) REFERENCES `book_sources`(`bookSourceUrl`) ON UPDATE NO ACTION ON DELETE CASCADE )", - "fields": [ - { - "fieldPath": "bookUrl", - "columnName": "bookUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "origin", - "columnName": "origin", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "originName", - "columnName": "originName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "type", - "columnName": "type", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "author", - "columnName": "author", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "kind", - "columnName": "kind", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "coverUrl", - "columnName": "coverUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "intro", - "columnName": "intro", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "wordCount", - "columnName": "wordCount", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "latestChapterTitle", - "columnName": "latestChapterTitle", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "tocUrl", - "columnName": "tocUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "time", - "columnName": "time", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "variable", - "columnName": "variable", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "originOrder", - "columnName": "originOrder", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "bookUrl" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_searchBooks_bookUrl", - "unique": true, - "columnNames": [ - "bookUrl" - ], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_searchBooks_bookUrl` ON `${TABLE_NAME}` (`bookUrl`)" - }, - { - "name": "index_searchBooks_origin", - "unique": false, - "columnNames": [ - "origin" - ], - "createSql": "CREATE INDEX IF NOT EXISTS `index_searchBooks_origin` ON `${TABLE_NAME}` (`origin`)" - } - ], - "foreignKeys": [ - { - "table": "book_sources", - "onDelete": "CASCADE", - "onUpdate": "NO ACTION", - "columns": [ - "origin" - ], - "referencedColumns": [ - "bookSourceUrl" - ] - } - ] - }, - { - "tableName": "search_keywords", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`word` TEXT NOT NULL, `usage` INTEGER NOT NULL, `lastUseTime` INTEGER NOT NULL, PRIMARY KEY(`word`))", - "fields": [ - { - "fieldPath": "word", - "columnName": "word", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "usage", - "columnName": "usage", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "lastUseTime", - "columnName": "lastUseTime", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "word" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_search_keywords_word", - "unique": true, - "columnNames": [ - "word" - ], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_search_keywords_word` ON `${TABLE_NAME}` (`word`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "cookies", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`url` TEXT NOT NULL, `cookie` TEXT NOT NULL, PRIMARY KEY(`url`))", - "fields": [ - { - "fieldPath": "url", - "columnName": "url", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "cookie", - "columnName": "cookie", - "affinity": "TEXT", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "url" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_cookies_url", - "unique": true, - "columnNames": [ - "url" - ], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_cookies_url` ON `${TABLE_NAME}` (`url`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "rssSources", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`sourceUrl` TEXT NOT NULL, `sourceName` TEXT NOT NULL, `sourceIcon` TEXT NOT NULL, `sourceGroup` TEXT, `enabled` INTEGER NOT NULL, `sortUrl` TEXT, `ruleArticles` TEXT, `ruleNextPage` TEXT, `ruleTitle` TEXT, `rulePubDate` TEXT, `ruleDescription` TEXT, `ruleImage` TEXT, `ruleLink` TEXT, `ruleContent` TEXT, `header` TEXT, `enableJs` INTEGER NOT NULL, `loadWithBaseUrl` INTEGER NOT NULL, `customOrder` INTEGER NOT NULL, PRIMARY KEY(`sourceUrl`))", - "fields": [ - { - "fieldPath": "sourceUrl", - "columnName": "sourceUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "sourceName", - "columnName": "sourceName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "sourceIcon", - "columnName": "sourceIcon", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "sourceGroup", - "columnName": "sourceGroup", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "enabled", - "columnName": "enabled", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "sortUrl", - "columnName": "sortUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleArticles", - "columnName": "ruleArticles", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleNextPage", - "columnName": "ruleNextPage", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleTitle", - "columnName": "ruleTitle", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "rulePubDate", - "columnName": "rulePubDate", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleDescription", - "columnName": "ruleDescription", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleImage", - "columnName": "ruleImage", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleLink", - "columnName": "ruleLink", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleContent", - "columnName": "ruleContent", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "header", - "columnName": "header", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "enableJs", - "columnName": "enableJs", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "loadWithBaseUrl", - "columnName": "loadWithBaseUrl", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "customOrder", - "columnName": "customOrder", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "sourceUrl" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_rssSources_sourceUrl", - "unique": false, - "columnNames": [ - "sourceUrl" - ], - "createSql": "CREATE INDEX IF NOT EXISTS `index_rssSources_sourceUrl` ON `${TABLE_NAME}` (`sourceUrl`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "bookmarks", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`time` INTEGER NOT NULL, `bookUrl` TEXT NOT NULL, `bookName` TEXT NOT NULL, `chapterIndex` INTEGER NOT NULL, `pageIndex` INTEGER NOT NULL, `chapterName` TEXT NOT NULL, `content` TEXT NOT NULL, PRIMARY KEY(`time`))", - "fields": [ - { - "fieldPath": "time", - "columnName": "time", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "bookUrl", - "columnName": "bookUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookName", - "columnName": "bookName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "chapterIndex", - "columnName": "chapterIndex", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "pageIndex", - "columnName": "pageIndex", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "chapterName", - "columnName": "chapterName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "content", - "columnName": "content", - "affinity": "TEXT", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "time" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_bookmarks_time", - "unique": true, - "columnNames": [ - "time" - ], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_bookmarks_time` ON `${TABLE_NAME}` (`time`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "rssArticles", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`origin` TEXT NOT NULL, `sort` TEXT NOT NULL, `title` TEXT NOT NULL, `order` INTEGER NOT NULL, `link` TEXT NOT NULL, `pubDate` TEXT, `description` TEXT, `content` TEXT, `image` TEXT, `read` INTEGER NOT NULL, PRIMARY KEY(`origin`, `link`))", - "fields": [ - { - "fieldPath": "origin", - "columnName": "origin", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "sort", - "columnName": "sort", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "title", - "columnName": "title", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "order", - "columnName": "order", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "link", - "columnName": "link", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "pubDate", - "columnName": "pubDate", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "description", - "columnName": "description", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "content", - "columnName": "content", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "image", - "columnName": "image", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "read", - "columnName": "read", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "origin", - "link" - ], - "autoGenerate": false - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "rssReadRecords", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`record` TEXT NOT NULL, `read` INTEGER NOT NULL, PRIMARY KEY(`record`))", - "fields": [ - { - "fieldPath": "record", - "columnName": "record", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "read", - "columnName": "read", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "record" - ], - "autoGenerate": false - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "rssStars", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`origin` TEXT NOT NULL, `sort` TEXT NOT NULL, `title` TEXT NOT NULL, `starTime` INTEGER NOT NULL, `link` TEXT NOT NULL, `pubDate` TEXT, `description` TEXT, `content` TEXT, `image` TEXT, PRIMARY KEY(`origin`, `link`))", - "fields": [ - { - "fieldPath": "origin", - "columnName": "origin", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "sort", - "columnName": "sort", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "title", - "columnName": "title", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "starTime", - "columnName": "starTime", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "link", - "columnName": "link", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "pubDate", - "columnName": "pubDate", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "description", - "columnName": "description", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "content", - "columnName": "content", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "image", - "columnName": "image", - "affinity": "TEXT", - "notNull": false - } - ], - "primaryKey": { - "columnNames": [ - "origin", - "link" - ], - "autoGenerate": false - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "txtTocRules", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`name` TEXT NOT NULL, `rule` TEXT NOT NULL, `serialNumber` INTEGER NOT NULL, `enable` INTEGER NOT NULL, PRIMARY KEY(`name`))", - "fields": [ - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "rule", - "columnName": "rule", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "serialNumber", - "columnName": "serialNumber", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "enable", - "columnName": "enable", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "name" - ], - "autoGenerate": false - }, - "indices": [], - "foreignKeys": [] - } - ], - "views": [], - "setupQueries": [ - "CREATE TABLE IF NOT EXISTS room_master_table (id INTEGER PRIMARY KEY,identity_hash TEXT)", - "INSERT OR REPLACE INTO room_master_table (id,identity_hash) VALUES(42, 'a9744f575dad6d4774cccc433921973b')" - ] - } -} \ No newline at end of file diff --git a/app/schemas/io.legado.app.data.AppDatabase/11.json b/app/schemas/io.legado.app.data.AppDatabase/11.json deleted file mode 100644 index 660476fd8..000000000 --- a/app/schemas/io.legado.app.data.AppDatabase/11.json +++ /dev/null @@ -1,1182 +0,0 @@ -{ - "formatVersion": 1, - "database": { - "version": 11, - "identityHash": "d3019908fa3212a7ac8eb87ac2f33369", - "entities": [ - { - "tableName": "books", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`bookUrl` TEXT NOT NULL, `tocUrl` TEXT NOT NULL, `origin` TEXT NOT NULL, `originName` TEXT NOT NULL, `name` TEXT NOT NULL, `author` TEXT NOT NULL, `kind` TEXT, `customTag` TEXT, `coverUrl` TEXT, `customCoverUrl` TEXT, `intro` TEXT, `customIntro` TEXT, `charset` TEXT, `type` INTEGER NOT NULL, `group` INTEGER NOT NULL, `latestChapterTitle` TEXT, `latestChapterTime` INTEGER NOT NULL, `lastCheckTime` INTEGER NOT NULL, `lastCheckCount` INTEGER NOT NULL, `totalChapterNum` INTEGER NOT NULL, `durChapterTitle` TEXT, `durChapterIndex` INTEGER NOT NULL, `durChapterPos` INTEGER NOT NULL, `durChapterTime` INTEGER NOT NULL, `wordCount` TEXT, `canUpdate` INTEGER NOT NULL, `order` INTEGER NOT NULL, `originOrder` INTEGER NOT NULL, `useReplaceRule` INTEGER NOT NULL, `variable` TEXT, PRIMARY KEY(`name`, `author`))", - "fields": [ - { - "fieldPath": "bookUrl", - "columnName": "bookUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "tocUrl", - "columnName": "tocUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "origin", - "columnName": "origin", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "originName", - "columnName": "originName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "author", - "columnName": "author", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "kind", - "columnName": "kind", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "customTag", - "columnName": "customTag", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "coverUrl", - "columnName": "coverUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "customCoverUrl", - "columnName": "customCoverUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "intro", - "columnName": "intro", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "customIntro", - "columnName": "customIntro", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "charset", - "columnName": "charset", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "type", - "columnName": "type", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "group", - "columnName": "group", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "latestChapterTitle", - "columnName": "latestChapterTitle", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "latestChapterTime", - "columnName": "latestChapterTime", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "lastCheckTime", - "columnName": "lastCheckTime", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "lastCheckCount", - "columnName": "lastCheckCount", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "totalChapterNum", - "columnName": "totalChapterNum", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "durChapterTitle", - "columnName": "durChapterTitle", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "durChapterIndex", - "columnName": "durChapterIndex", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "durChapterPos", - "columnName": "durChapterPos", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "durChapterTime", - "columnName": "durChapterTime", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "wordCount", - "columnName": "wordCount", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "canUpdate", - "columnName": "canUpdate", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "order", - "columnName": "order", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "originOrder", - "columnName": "originOrder", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "useReplaceRule", - "columnName": "useReplaceRule", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "variable", - "columnName": "variable", - "affinity": "TEXT", - "notNull": false - } - ], - "primaryKey": { - "columnNames": [ - "name", - "author" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_books_bookUrl", - "unique": true, - "columnNames": [ - "bookUrl" - ], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_books_bookUrl` ON `${TABLE_NAME}` (`bookUrl`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "book_groups", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`groupId` INTEGER NOT NULL, `groupName` TEXT NOT NULL, `order` INTEGER NOT NULL, PRIMARY KEY(`groupId`))", - "fields": [ - { - "fieldPath": "groupId", - "columnName": "groupId", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "groupName", - "columnName": "groupName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "order", - "columnName": "order", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "groupId" - ], - "autoGenerate": false - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "book_sources", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`bookSourceName` TEXT NOT NULL, `bookSourceGroup` TEXT, `bookSourceUrl` TEXT NOT NULL, `bookSourceType` INTEGER NOT NULL, `bookUrlPattern` TEXT, `customOrder` INTEGER NOT NULL, `enabled` INTEGER NOT NULL, `enabledExplore` INTEGER NOT NULL, `header` TEXT, `loginUrl` TEXT, `lastUpdateTime` INTEGER NOT NULL, `weight` INTEGER NOT NULL, `exploreUrl` TEXT, `ruleExplore` TEXT, `searchUrl` TEXT, `ruleSearch` TEXT, `ruleBookInfo` TEXT, `ruleToc` TEXT, `ruleContent` TEXT, PRIMARY KEY(`bookSourceUrl`))", - "fields": [ - { - "fieldPath": "bookSourceName", - "columnName": "bookSourceName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookSourceGroup", - "columnName": "bookSourceGroup", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "bookSourceUrl", - "columnName": "bookSourceUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookSourceType", - "columnName": "bookSourceType", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "bookUrlPattern", - "columnName": "bookUrlPattern", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "customOrder", - "columnName": "customOrder", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "enabled", - "columnName": "enabled", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "enabledExplore", - "columnName": "enabledExplore", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "header", - "columnName": "header", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "loginUrl", - "columnName": "loginUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "lastUpdateTime", - "columnName": "lastUpdateTime", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "weight", - "columnName": "weight", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "exploreUrl", - "columnName": "exploreUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleExplore", - "columnName": "ruleExplore", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "searchUrl", - "columnName": "searchUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleSearch", - "columnName": "ruleSearch", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleBookInfo", - "columnName": "ruleBookInfo", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleToc", - "columnName": "ruleToc", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleContent", - "columnName": "ruleContent", - "affinity": "TEXT", - "notNull": false - } - ], - "primaryKey": { - "columnNames": [ - "bookSourceUrl" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_book_sources_bookSourceUrl", - "unique": false, - "columnNames": [ - "bookSourceUrl" - ], - "createSql": "CREATE INDEX IF NOT EXISTS `index_book_sources_bookSourceUrl` ON `${TABLE_NAME}` (`bookSourceUrl`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "chapters", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`url` TEXT NOT NULL, `title` TEXT NOT NULL, `bookUrl` TEXT NOT NULL, `index` INTEGER NOT NULL, `resourceUrl` TEXT, `tag` TEXT, `start` INTEGER, `end` INTEGER, `variable` TEXT, PRIMARY KEY(`url`, `bookUrl`), FOREIGN KEY(`bookUrl`) REFERENCES `books`(`bookUrl`) ON UPDATE NO ACTION ON DELETE CASCADE )", - "fields": [ - { - "fieldPath": "url", - "columnName": "url", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "title", - "columnName": "title", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookUrl", - "columnName": "bookUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "index", - "columnName": "index", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "resourceUrl", - "columnName": "resourceUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "tag", - "columnName": "tag", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "start", - "columnName": "start", - "affinity": "INTEGER", - "notNull": false - }, - { - "fieldPath": "end", - "columnName": "end", - "affinity": "INTEGER", - "notNull": false - }, - { - "fieldPath": "variable", - "columnName": "variable", - "affinity": "TEXT", - "notNull": false - } - ], - "primaryKey": { - "columnNames": [ - "url", - "bookUrl" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_chapters_bookUrl", - "unique": false, - "columnNames": [ - "bookUrl" - ], - "createSql": "CREATE INDEX IF NOT EXISTS `index_chapters_bookUrl` ON `${TABLE_NAME}` (`bookUrl`)" - }, - { - "name": "index_chapters_bookUrl_index", - "unique": true, - "columnNames": [ - "bookUrl", - "index" - ], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_chapters_bookUrl_index` ON `${TABLE_NAME}` (`bookUrl`, `index`)" - } - ], - "foreignKeys": [ - { - "table": "books", - "onDelete": "CASCADE", - "onUpdate": "NO ACTION", - "columns": [ - "bookUrl" - ], - "referencedColumns": [ - "bookUrl" - ] - } - ] - }, - { - "tableName": "replace_rules", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, `name` TEXT NOT NULL, `group` TEXT, `pattern` TEXT NOT NULL, `replacement` TEXT NOT NULL, `scope` TEXT, `isEnabled` INTEGER NOT NULL, `isRegex` INTEGER NOT NULL, `sortOrder` INTEGER NOT NULL)", - "fields": [ - { - "fieldPath": "id", - "columnName": "id", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "group", - "columnName": "group", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "pattern", - "columnName": "pattern", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "replacement", - "columnName": "replacement", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "scope", - "columnName": "scope", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "isEnabled", - "columnName": "isEnabled", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "isRegex", - "columnName": "isRegex", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "order", - "columnName": "sortOrder", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "id" - ], - "autoGenerate": true - }, - "indices": [ - { - "name": "index_replace_rules_id", - "unique": false, - "columnNames": [ - "id" - ], - "createSql": "CREATE INDEX IF NOT EXISTS `index_replace_rules_id` ON `${TABLE_NAME}` (`id`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "searchBooks", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`bookUrl` TEXT NOT NULL, `origin` TEXT NOT NULL, `originName` TEXT NOT NULL, `type` INTEGER NOT NULL, `name` TEXT NOT NULL, `author` TEXT NOT NULL, `kind` TEXT, `coverUrl` TEXT, `intro` TEXT, `wordCount` TEXT, `latestChapterTitle` TEXT, `tocUrl` TEXT NOT NULL, `time` INTEGER NOT NULL, `variable` TEXT, `originOrder` INTEGER NOT NULL, PRIMARY KEY(`bookUrl`), FOREIGN KEY(`origin`) REFERENCES `book_sources`(`bookSourceUrl`) ON UPDATE NO ACTION ON DELETE CASCADE )", - "fields": [ - { - "fieldPath": "bookUrl", - "columnName": "bookUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "origin", - "columnName": "origin", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "originName", - "columnName": "originName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "type", - "columnName": "type", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "author", - "columnName": "author", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "kind", - "columnName": "kind", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "coverUrl", - "columnName": "coverUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "intro", - "columnName": "intro", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "wordCount", - "columnName": "wordCount", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "latestChapterTitle", - "columnName": "latestChapterTitle", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "tocUrl", - "columnName": "tocUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "time", - "columnName": "time", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "variable", - "columnName": "variable", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "originOrder", - "columnName": "originOrder", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "bookUrl" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_searchBooks_bookUrl", - "unique": true, - "columnNames": [ - "bookUrl" - ], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_searchBooks_bookUrl` ON `${TABLE_NAME}` (`bookUrl`)" - }, - { - "name": "index_searchBooks_origin", - "unique": false, - "columnNames": [ - "origin" - ], - "createSql": "CREATE INDEX IF NOT EXISTS `index_searchBooks_origin` ON `${TABLE_NAME}` (`origin`)" - } - ], - "foreignKeys": [ - { - "table": "book_sources", - "onDelete": "CASCADE", - "onUpdate": "NO ACTION", - "columns": [ - "origin" - ], - "referencedColumns": [ - "bookSourceUrl" - ] - } - ] - }, - { - "tableName": "search_keywords", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`word` TEXT NOT NULL, `usage` INTEGER NOT NULL, `lastUseTime` INTEGER NOT NULL, PRIMARY KEY(`word`))", - "fields": [ - { - "fieldPath": "word", - "columnName": "word", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "usage", - "columnName": "usage", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "lastUseTime", - "columnName": "lastUseTime", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "word" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_search_keywords_word", - "unique": true, - "columnNames": [ - "word" - ], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_search_keywords_word` ON `${TABLE_NAME}` (`word`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "cookies", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`url` TEXT NOT NULL, `cookie` TEXT NOT NULL, PRIMARY KEY(`url`))", - "fields": [ - { - "fieldPath": "url", - "columnName": "url", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "cookie", - "columnName": "cookie", - "affinity": "TEXT", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "url" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_cookies_url", - "unique": true, - "columnNames": [ - "url" - ], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_cookies_url` ON `${TABLE_NAME}` (`url`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "rssSources", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`sourceUrl` TEXT NOT NULL, `sourceName` TEXT NOT NULL, `sourceIcon` TEXT NOT NULL, `sourceGroup` TEXT, `enabled` INTEGER NOT NULL, `sortUrl` TEXT, `ruleArticles` TEXT, `ruleNextPage` TEXT, `ruleTitle` TEXT, `rulePubDate` TEXT, `ruleDescription` TEXT, `ruleImage` TEXT, `ruleLink` TEXT, `ruleContent` TEXT, `header` TEXT, `enableJs` INTEGER NOT NULL, `loadWithBaseUrl` INTEGER NOT NULL, `customOrder` INTEGER NOT NULL, PRIMARY KEY(`sourceUrl`))", - "fields": [ - { - "fieldPath": "sourceUrl", - "columnName": "sourceUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "sourceName", - "columnName": "sourceName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "sourceIcon", - "columnName": "sourceIcon", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "sourceGroup", - "columnName": "sourceGroup", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "enabled", - "columnName": "enabled", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "sortUrl", - "columnName": "sortUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleArticles", - "columnName": "ruleArticles", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleNextPage", - "columnName": "ruleNextPage", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleTitle", - "columnName": "ruleTitle", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "rulePubDate", - "columnName": "rulePubDate", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleDescription", - "columnName": "ruleDescription", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleImage", - "columnName": "ruleImage", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleLink", - "columnName": "ruleLink", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleContent", - "columnName": "ruleContent", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "header", - "columnName": "header", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "enableJs", - "columnName": "enableJs", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "loadWithBaseUrl", - "columnName": "loadWithBaseUrl", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "customOrder", - "columnName": "customOrder", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "sourceUrl" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_rssSources_sourceUrl", - "unique": false, - "columnNames": [ - "sourceUrl" - ], - "createSql": "CREATE INDEX IF NOT EXISTS `index_rssSources_sourceUrl` ON `${TABLE_NAME}` (`sourceUrl`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "bookmarks", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`time` INTEGER NOT NULL, `bookUrl` TEXT NOT NULL, `bookName` TEXT NOT NULL, `chapterIndex` INTEGER NOT NULL, `pageIndex` INTEGER NOT NULL, `chapterName` TEXT NOT NULL, `content` TEXT NOT NULL, PRIMARY KEY(`time`))", - "fields": [ - { - "fieldPath": "time", - "columnName": "time", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "bookUrl", - "columnName": "bookUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookName", - "columnName": "bookName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "chapterIndex", - "columnName": "chapterIndex", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "pageIndex", - "columnName": "pageIndex", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "chapterName", - "columnName": "chapterName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "content", - "columnName": "content", - "affinity": "TEXT", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "time" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_bookmarks_time", - "unique": true, - "columnNames": [ - "time" - ], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_bookmarks_time` ON `${TABLE_NAME}` (`time`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "rssArticles", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`origin` TEXT NOT NULL, `sort` TEXT NOT NULL, `title` TEXT NOT NULL, `order` INTEGER NOT NULL, `link` TEXT NOT NULL, `pubDate` TEXT, `description` TEXT, `content` TEXT, `image` TEXT, `read` INTEGER NOT NULL, PRIMARY KEY(`origin`, `link`))", - "fields": [ - { - "fieldPath": "origin", - "columnName": "origin", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "sort", - "columnName": "sort", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "title", - "columnName": "title", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "order", - "columnName": "order", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "link", - "columnName": "link", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "pubDate", - "columnName": "pubDate", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "description", - "columnName": "description", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "content", - "columnName": "content", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "image", - "columnName": "image", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "read", - "columnName": "read", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "origin", - "link" - ], - "autoGenerate": false - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "rssReadRecords", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`record` TEXT NOT NULL, `read` INTEGER NOT NULL, PRIMARY KEY(`record`))", - "fields": [ - { - "fieldPath": "record", - "columnName": "record", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "read", - "columnName": "read", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "record" - ], - "autoGenerate": false - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "rssStars", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`origin` TEXT NOT NULL, `sort` TEXT NOT NULL, `title` TEXT NOT NULL, `starTime` INTEGER NOT NULL, `link` TEXT NOT NULL, `pubDate` TEXT, `description` TEXT, `content` TEXT, `image` TEXT, PRIMARY KEY(`origin`, `link`))", - "fields": [ - { - "fieldPath": "origin", - "columnName": "origin", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "sort", - "columnName": "sort", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "title", - "columnName": "title", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "starTime", - "columnName": "starTime", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "link", - "columnName": "link", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "pubDate", - "columnName": "pubDate", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "description", - "columnName": "description", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "content", - "columnName": "content", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "image", - "columnName": "image", - "affinity": "TEXT", - "notNull": false - } - ], - "primaryKey": { - "columnNames": [ - "origin", - "link" - ], - "autoGenerate": false - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "txtTocRules", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER NOT NULL, `name` TEXT NOT NULL, `rule` TEXT NOT NULL, `serialNumber` INTEGER NOT NULL, `enable` INTEGER NOT NULL, PRIMARY KEY(`id`))", - "fields": [ - { - "fieldPath": "id", - "columnName": "id", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "rule", - "columnName": "rule", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "serialNumber", - "columnName": "serialNumber", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "enable", - "columnName": "enable", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "id" - ], - "autoGenerate": false - }, - "indices": [], - "foreignKeys": [] - } - ], - "views": [], - "setupQueries": [ - "CREATE TABLE IF NOT EXISTS room_master_table (id INTEGER PRIMARY KEY,identity_hash TEXT)", - "INSERT OR REPLACE INTO room_master_table (id,identity_hash) VALUES(42, 'd3019908fa3212a7ac8eb87ac2f33369')" - ] - } -} \ No newline at end of file diff --git a/app/schemas/io.legado.app.data.AppDatabase/12.json b/app/schemas/io.legado.app.data.AppDatabase/12.json deleted file mode 100644 index 1552fd7cb..000000000 --- a/app/schemas/io.legado.app.data.AppDatabase/12.json +++ /dev/null @@ -1,1188 +0,0 @@ -{ - "formatVersion": 1, - "database": { - "version": 12, - "identityHash": "fa238e7524c215177f66110c847d327d", - "entities": [ - { - "tableName": "books", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`bookUrl` TEXT NOT NULL, `tocUrl` TEXT NOT NULL, `origin` TEXT NOT NULL, `originName` TEXT NOT NULL, `name` TEXT NOT NULL, `author` TEXT NOT NULL, `kind` TEXT, `customTag` TEXT, `coverUrl` TEXT, `customCoverUrl` TEXT, `intro` TEXT, `customIntro` TEXT, `charset` TEXT, `type` INTEGER NOT NULL, `group` INTEGER NOT NULL, `latestChapterTitle` TEXT, `latestChapterTime` INTEGER NOT NULL, `lastCheckTime` INTEGER NOT NULL, `lastCheckCount` INTEGER NOT NULL, `totalChapterNum` INTEGER NOT NULL, `durChapterTitle` TEXT, `durChapterIndex` INTEGER NOT NULL, `durChapterPos` INTEGER NOT NULL, `durChapterTime` INTEGER NOT NULL, `wordCount` TEXT, `canUpdate` INTEGER NOT NULL, `order` INTEGER NOT NULL, `originOrder` INTEGER NOT NULL, `useReplaceRule` INTEGER NOT NULL, `variable` TEXT, PRIMARY KEY(`name`, `author`))", - "fields": [ - { - "fieldPath": "bookUrl", - "columnName": "bookUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "tocUrl", - "columnName": "tocUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "origin", - "columnName": "origin", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "originName", - "columnName": "originName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "author", - "columnName": "author", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "kind", - "columnName": "kind", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "customTag", - "columnName": "customTag", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "coverUrl", - "columnName": "coverUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "customCoverUrl", - "columnName": "customCoverUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "intro", - "columnName": "intro", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "customIntro", - "columnName": "customIntro", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "charset", - "columnName": "charset", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "type", - "columnName": "type", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "group", - "columnName": "group", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "latestChapterTitle", - "columnName": "latestChapterTitle", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "latestChapterTime", - "columnName": "latestChapterTime", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "lastCheckTime", - "columnName": "lastCheckTime", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "lastCheckCount", - "columnName": "lastCheckCount", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "totalChapterNum", - "columnName": "totalChapterNum", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "durChapterTitle", - "columnName": "durChapterTitle", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "durChapterIndex", - "columnName": "durChapterIndex", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "durChapterPos", - "columnName": "durChapterPos", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "durChapterTime", - "columnName": "durChapterTime", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "wordCount", - "columnName": "wordCount", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "canUpdate", - "columnName": "canUpdate", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "order", - "columnName": "order", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "originOrder", - "columnName": "originOrder", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "useReplaceRule", - "columnName": "useReplaceRule", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "variable", - "columnName": "variable", - "affinity": "TEXT", - "notNull": false - } - ], - "primaryKey": { - "columnNames": [ - "name", - "author" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_books_bookUrl", - "unique": true, - "columnNames": [ - "bookUrl" - ], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_books_bookUrl` ON `${TABLE_NAME}` (`bookUrl`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "book_groups", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`groupId` INTEGER NOT NULL, `groupName` TEXT NOT NULL, `order` INTEGER NOT NULL, PRIMARY KEY(`groupId`))", - "fields": [ - { - "fieldPath": "groupId", - "columnName": "groupId", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "groupName", - "columnName": "groupName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "order", - "columnName": "order", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "groupId" - ], - "autoGenerate": false - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "book_sources", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`bookSourceName` TEXT NOT NULL, `bookSourceGroup` TEXT, `bookSourceUrl` TEXT NOT NULL, `bookSourceType` INTEGER NOT NULL, `bookUrlPattern` TEXT, `customOrder` INTEGER NOT NULL, `enabled` INTEGER NOT NULL, `enabledExplore` INTEGER NOT NULL, `header` TEXT, `loginUrl` TEXT, `lastUpdateTime` INTEGER NOT NULL, `weight` INTEGER NOT NULL, `exploreUrl` TEXT, `ruleExplore` TEXT, `searchUrl` TEXT, `ruleSearch` TEXT, `ruleBookInfo` TEXT, `ruleToc` TEXT, `ruleContent` TEXT, PRIMARY KEY(`bookSourceUrl`))", - "fields": [ - { - "fieldPath": "bookSourceName", - "columnName": "bookSourceName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookSourceGroup", - "columnName": "bookSourceGroup", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "bookSourceUrl", - "columnName": "bookSourceUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookSourceType", - "columnName": "bookSourceType", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "bookUrlPattern", - "columnName": "bookUrlPattern", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "customOrder", - "columnName": "customOrder", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "enabled", - "columnName": "enabled", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "enabledExplore", - "columnName": "enabledExplore", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "header", - "columnName": "header", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "loginUrl", - "columnName": "loginUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "lastUpdateTime", - "columnName": "lastUpdateTime", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "weight", - "columnName": "weight", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "exploreUrl", - "columnName": "exploreUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleExplore", - "columnName": "ruleExplore", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "searchUrl", - "columnName": "searchUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleSearch", - "columnName": "ruleSearch", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleBookInfo", - "columnName": "ruleBookInfo", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleToc", - "columnName": "ruleToc", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleContent", - "columnName": "ruleContent", - "affinity": "TEXT", - "notNull": false - } - ], - "primaryKey": { - "columnNames": [ - "bookSourceUrl" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_book_sources_bookSourceUrl", - "unique": false, - "columnNames": [ - "bookSourceUrl" - ], - "createSql": "CREATE INDEX IF NOT EXISTS `index_book_sources_bookSourceUrl` ON `${TABLE_NAME}` (`bookSourceUrl`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "chapters", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`url` TEXT NOT NULL, `title` TEXT NOT NULL, `bookUrl` TEXT NOT NULL, `index` INTEGER NOT NULL, `resourceUrl` TEXT, `tag` TEXT, `start` INTEGER, `end` INTEGER, `variable` TEXT, PRIMARY KEY(`url`, `bookUrl`), FOREIGN KEY(`bookUrl`) REFERENCES `books`(`bookUrl`) ON UPDATE NO ACTION ON DELETE CASCADE )", - "fields": [ - { - "fieldPath": "url", - "columnName": "url", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "title", - "columnName": "title", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookUrl", - "columnName": "bookUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "index", - "columnName": "index", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "resourceUrl", - "columnName": "resourceUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "tag", - "columnName": "tag", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "start", - "columnName": "start", - "affinity": "INTEGER", - "notNull": false - }, - { - "fieldPath": "end", - "columnName": "end", - "affinity": "INTEGER", - "notNull": false - }, - { - "fieldPath": "variable", - "columnName": "variable", - "affinity": "TEXT", - "notNull": false - } - ], - "primaryKey": { - "columnNames": [ - "url", - "bookUrl" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_chapters_bookUrl", - "unique": false, - "columnNames": [ - "bookUrl" - ], - "createSql": "CREATE INDEX IF NOT EXISTS `index_chapters_bookUrl` ON `${TABLE_NAME}` (`bookUrl`)" - }, - { - "name": "index_chapters_bookUrl_index", - "unique": true, - "columnNames": [ - "bookUrl", - "index" - ], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_chapters_bookUrl_index` ON `${TABLE_NAME}` (`bookUrl`, `index`)" - } - ], - "foreignKeys": [ - { - "table": "books", - "onDelete": "CASCADE", - "onUpdate": "NO ACTION", - "columns": [ - "bookUrl" - ], - "referencedColumns": [ - "bookUrl" - ] - } - ] - }, - { - "tableName": "replace_rules", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, `name` TEXT NOT NULL, `group` TEXT, `pattern` TEXT NOT NULL, `replacement` TEXT NOT NULL, `scope` TEXT, `isEnabled` INTEGER NOT NULL, `isRegex` INTEGER NOT NULL, `sortOrder` INTEGER NOT NULL)", - "fields": [ - { - "fieldPath": "id", - "columnName": "id", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "group", - "columnName": "group", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "pattern", - "columnName": "pattern", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "replacement", - "columnName": "replacement", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "scope", - "columnName": "scope", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "isEnabled", - "columnName": "isEnabled", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "isRegex", - "columnName": "isRegex", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "order", - "columnName": "sortOrder", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "id" - ], - "autoGenerate": true - }, - "indices": [ - { - "name": "index_replace_rules_id", - "unique": false, - "columnNames": [ - "id" - ], - "createSql": "CREATE INDEX IF NOT EXISTS `index_replace_rules_id` ON `${TABLE_NAME}` (`id`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "searchBooks", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`bookUrl` TEXT NOT NULL, `origin` TEXT NOT NULL, `originName` TEXT NOT NULL, `type` INTEGER NOT NULL, `name` TEXT NOT NULL, `author` TEXT NOT NULL, `kind` TEXT, `coverUrl` TEXT, `intro` TEXT, `wordCount` TEXT, `latestChapterTitle` TEXT, `tocUrl` TEXT NOT NULL, `time` INTEGER NOT NULL, `variable` TEXT, `originOrder` INTEGER NOT NULL, PRIMARY KEY(`bookUrl`), FOREIGN KEY(`origin`) REFERENCES `book_sources`(`bookSourceUrl`) ON UPDATE NO ACTION ON DELETE CASCADE )", - "fields": [ - { - "fieldPath": "bookUrl", - "columnName": "bookUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "origin", - "columnName": "origin", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "originName", - "columnName": "originName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "type", - "columnName": "type", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "author", - "columnName": "author", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "kind", - "columnName": "kind", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "coverUrl", - "columnName": "coverUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "intro", - "columnName": "intro", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "wordCount", - "columnName": "wordCount", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "latestChapterTitle", - "columnName": "latestChapterTitle", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "tocUrl", - "columnName": "tocUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "time", - "columnName": "time", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "variable", - "columnName": "variable", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "originOrder", - "columnName": "originOrder", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "bookUrl" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_searchBooks_bookUrl", - "unique": true, - "columnNames": [ - "bookUrl" - ], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_searchBooks_bookUrl` ON `${TABLE_NAME}` (`bookUrl`)" - }, - { - "name": "index_searchBooks_origin", - "unique": false, - "columnNames": [ - "origin" - ], - "createSql": "CREATE INDEX IF NOT EXISTS `index_searchBooks_origin` ON `${TABLE_NAME}` (`origin`)" - } - ], - "foreignKeys": [ - { - "table": "book_sources", - "onDelete": "CASCADE", - "onUpdate": "NO ACTION", - "columns": [ - "origin" - ], - "referencedColumns": [ - "bookSourceUrl" - ] - } - ] - }, - { - "tableName": "search_keywords", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`word` TEXT NOT NULL, `usage` INTEGER NOT NULL, `lastUseTime` INTEGER NOT NULL, PRIMARY KEY(`word`))", - "fields": [ - { - "fieldPath": "word", - "columnName": "word", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "usage", - "columnName": "usage", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "lastUseTime", - "columnName": "lastUseTime", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "word" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_search_keywords_word", - "unique": true, - "columnNames": [ - "word" - ], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_search_keywords_word` ON `${TABLE_NAME}` (`word`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "cookies", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`url` TEXT NOT NULL, `cookie` TEXT NOT NULL, PRIMARY KEY(`url`))", - "fields": [ - { - "fieldPath": "url", - "columnName": "url", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "cookie", - "columnName": "cookie", - "affinity": "TEXT", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "url" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_cookies_url", - "unique": true, - "columnNames": [ - "url" - ], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_cookies_url` ON `${TABLE_NAME}` (`url`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "rssSources", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`sourceUrl` TEXT NOT NULL, `sourceName` TEXT NOT NULL, `sourceIcon` TEXT NOT NULL, `sourceGroup` TEXT, `enabled` INTEGER NOT NULL, `sortUrl` TEXT, `ruleArticles` TEXT, `ruleNextPage` TEXT, `ruleTitle` TEXT, `rulePubDate` TEXT, `ruleDescription` TEXT, `ruleImage` TEXT, `ruleLink` TEXT, `ruleContent` TEXT, `style` TEXT, `header` TEXT, `enableJs` INTEGER NOT NULL, `loadWithBaseUrl` INTEGER NOT NULL, `customOrder` INTEGER NOT NULL, PRIMARY KEY(`sourceUrl`))", - "fields": [ - { - "fieldPath": "sourceUrl", - "columnName": "sourceUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "sourceName", - "columnName": "sourceName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "sourceIcon", - "columnName": "sourceIcon", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "sourceGroup", - "columnName": "sourceGroup", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "enabled", - "columnName": "enabled", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "sortUrl", - "columnName": "sortUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleArticles", - "columnName": "ruleArticles", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleNextPage", - "columnName": "ruleNextPage", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleTitle", - "columnName": "ruleTitle", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "rulePubDate", - "columnName": "rulePubDate", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleDescription", - "columnName": "ruleDescription", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleImage", - "columnName": "ruleImage", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleLink", - "columnName": "ruleLink", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleContent", - "columnName": "ruleContent", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "style", - "columnName": "style", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "header", - "columnName": "header", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "enableJs", - "columnName": "enableJs", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "loadWithBaseUrl", - "columnName": "loadWithBaseUrl", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "customOrder", - "columnName": "customOrder", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "sourceUrl" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_rssSources_sourceUrl", - "unique": false, - "columnNames": [ - "sourceUrl" - ], - "createSql": "CREATE INDEX IF NOT EXISTS `index_rssSources_sourceUrl` ON `${TABLE_NAME}` (`sourceUrl`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "bookmarks", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`time` INTEGER NOT NULL, `bookUrl` TEXT NOT NULL, `bookName` TEXT NOT NULL, `chapterIndex` INTEGER NOT NULL, `pageIndex` INTEGER NOT NULL, `chapterName` TEXT NOT NULL, `content` TEXT NOT NULL, PRIMARY KEY(`time`))", - "fields": [ - { - "fieldPath": "time", - "columnName": "time", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "bookUrl", - "columnName": "bookUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookName", - "columnName": "bookName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "chapterIndex", - "columnName": "chapterIndex", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "pageIndex", - "columnName": "pageIndex", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "chapterName", - "columnName": "chapterName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "content", - "columnName": "content", - "affinity": "TEXT", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "time" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_bookmarks_time", - "unique": true, - "columnNames": [ - "time" - ], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_bookmarks_time` ON `${TABLE_NAME}` (`time`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "rssArticles", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`origin` TEXT NOT NULL, `sort` TEXT NOT NULL, `title` TEXT NOT NULL, `order` INTEGER NOT NULL, `link` TEXT NOT NULL, `pubDate` TEXT, `description` TEXT, `content` TEXT, `image` TEXT, `read` INTEGER NOT NULL, PRIMARY KEY(`origin`, `link`))", - "fields": [ - { - "fieldPath": "origin", - "columnName": "origin", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "sort", - "columnName": "sort", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "title", - "columnName": "title", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "order", - "columnName": "order", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "link", - "columnName": "link", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "pubDate", - "columnName": "pubDate", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "description", - "columnName": "description", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "content", - "columnName": "content", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "image", - "columnName": "image", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "read", - "columnName": "read", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "origin", - "link" - ], - "autoGenerate": false - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "rssReadRecords", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`record` TEXT NOT NULL, `read` INTEGER NOT NULL, PRIMARY KEY(`record`))", - "fields": [ - { - "fieldPath": "record", - "columnName": "record", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "read", - "columnName": "read", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "record" - ], - "autoGenerate": false - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "rssStars", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`origin` TEXT NOT NULL, `sort` TEXT NOT NULL, `title` TEXT NOT NULL, `starTime` INTEGER NOT NULL, `link` TEXT NOT NULL, `pubDate` TEXT, `description` TEXT, `content` TEXT, `image` TEXT, PRIMARY KEY(`origin`, `link`))", - "fields": [ - { - "fieldPath": "origin", - "columnName": "origin", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "sort", - "columnName": "sort", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "title", - "columnName": "title", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "starTime", - "columnName": "starTime", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "link", - "columnName": "link", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "pubDate", - "columnName": "pubDate", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "description", - "columnName": "description", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "content", - "columnName": "content", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "image", - "columnName": "image", - "affinity": "TEXT", - "notNull": false - } - ], - "primaryKey": { - "columnNames": [ - "origin", - "link" - ], - "autoGenerate": false - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "txtTocRules", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER NOT NULL, `name` TEXT NOT NULL, `rule` TEXT NOT NULL, `serialNumber` INTEGER NOT NULL, `enable` INTEGER NOT NULL, PRIMARY KEY(`id`))", - "fields": [ - { - "fieldPath": "id", - "columnName": "id", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "rule", - "columnName": "rule", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "serialNumber", - "columnName": "serialNumber", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "enable", - "columnName": "enable", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "id" - ], - "autoGenerate": false - }, - "indices": [], - "foreignKeys": [] - } - ], - "views": [], - "setupQueries": [ - "CREATE TABLE IF NOT EXISTS room_master_table (id INTEGER PRIMARY KEY,identity_hash TEXT)", - "INSERT OR REPLACE INTO room_master_table (id,identity_hash) VALUES(42, 'fa238e7524c215177f66110c847d327d')" - ] - } -} \ No newline at end of file diff --git a/app/schemas/io.legado.app.data.AppDatabase/13.json b/app/schemas/io.legado.app.data.AppDatabase/13.json deleted file mode 100644 index 3226a6f05..000000000 --- a/app/schemas/io.legado.app.data.AppDatabase/13.json +++ /dev/null @@ -1,1194 +0,0 @@ -{ - "formatVersion": 1, - "database": { - "version": 13, - "identityHash": "da04f8cb7f257482f105b1274a7a351b", - "entities": [ - { - "tableName": "books", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`bookUrl` TEXT NOT NULL, `tocUrl` TEXT NOT NULL, `origin` TEXT NOT NULL, `originName` TEXT NOT NULL, `name` TEXT NOT NULL, `author` TEXT NOT NULL, `kind` TEXT, `customTag` TEXT, `coverUrl` TEXT, `customCoverUrl` TEXT, `intro` TEXT, `customIntro` TEXT, `charset` TEXT, `type` INTEGER NOT NULL, `group` INTEGER NOT NULL, `latestChapterTitle` TEXT, `latestChapterTime` INTEGER NOT NULL, `lastCheckTime` INTEGER NOT NULL, `lastCheckCount` INTEGER NOT NULL, `totalChapterNum` INTEGER NOT NULL, `durChapterTitle` TEXT, `durChapterIndex` INTEGER NOT NULL, `durChapterPos` INTEGER NOT NULL, `durChapterTime` INTEGER NOT NULL, `wordCount` TEXT, `canUpdate` INTEGER NOT NULL, `order` INTEGER NOT NULL, `originOrder` INTEGER NOT NULL, `useReplaceRule` INTEGER NOT NULL, `variable` TEXT, PRIMARY KEY(`name`, `author`))", - "fields": [ - { - "fieldPath": "bookUrl", - "columnName": "bookUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "tocUrl", - "columnName": "tocUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "origin", - "columnName": "origin", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "originName", - "columnName": "originName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "author", - "columnName": "author", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "kind", - "columnName": "kind", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "customTag", - "columnName": "customTag", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "coverUrl", - "columnName": "coverUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "customCoverUrl", - "columnName": "customCoverUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "intro", - "columnName": "intro", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "customIntro", - "columnName": "customIntro", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "charset", - "columnName": "charset", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "type", - "columnName": "type", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "group", - "columnName": "group", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "latestChapterTitle", - "columnName": "latestChapterTitle", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "latestChapterTime", - "columnName": "latestChapterTime", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "lastCheckTime", - "columnName": "lastCheckTime", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "lastCheckCount", - "columnName": "lastCheckCount", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "totalChapterNum", - "columnName": "totalChapterNum", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "durChapterTitle", - "columnName": "durChapterTitle", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "durChapterIndex", - "columnName": "durChapterIndex", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "durChapterPos", - "columnName": "durChapterPos", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "durChapterTime", - "columnName": "durChapterTime", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "wordCount", - "columnName": "wordCount", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "canUpdate", - "columnName": "canUpdate", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "order", - "columnName": "order", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "originOrder", - "columnName": "originOrder", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "useReplaceRule", - "columnName": "useReplaceRule", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "variable", - "columnName": "variable", - "affinity": "TEXT", - "notNull": false - } - ], - "primaryKey": { - "columnNames": [ - "name", - "author" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_books_bookUrl", - "unique": true, - "columnNames": [ - "bookUrl" - ], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_books_bookUrl` ON `${TABLE_NAME}` (`bookUrl`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "book_groups", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`groupId` INTEGER NOT NULL, `groupName` TEXT NOT NULL, `order` INTEGER NOT NULL, PRIMARY KEY(`groupId`))", - "fields": [ - { - "fieldPath": "groupId", - "columnName": "groupId", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "groupName", - "columnName": "groupName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "order", - "columnName": "order", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "groupId" - ], - "autoGenerate": false - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "book_sources", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`bookSourceName` TEXT NOT NULL, `bookSourceGroup` TEXT, `bookSourceUrl` TEXT NOT NULL, `bookSourceType` INTEGER NOT NULL, `bookUrlPattern` TEXT, `customOrder` INTEGER NOT NULL, `enabled` INTEGER NOT NULL, `enabledExplore` INTEGER NOT NULL, `header` TEXT, `loginUrl` TEXT, `lastUpdateTime` INTEGER NOT NULL, `weight` INTEGER NOT NULL, `exploreUrl` TEXT, `ruleExplore` TEXT, `searchUrl` TEXT, `ruleSearch` TEXT, `ruleBookInfo` TEXT, `ruleToc` TEXT, `ruleContent` TEXT, PRIMARY KEY(`bookSourceUrl`))", - "fields": [ - { - "fieldPath": "bookSourceName", - "columnName": "bookSourceName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookSourceGroup", - "columnName": "bookSourceGroup", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "bookSourceUrl", - "columnName": "bookSourceUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookSourceType", - "columnName": "bookSourceType", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "bookUrlPattern", - "columnName": "bookUrlPattern", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "customOrder", - "columnName": "customOrder", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "enabled", - "columnName": "enabled", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "enabledExplore", - "columnName": "enabledExplore", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "header", - "columnName": "header", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "loginUrl", - "columnName": "loginUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "lastUpdateTime", - "columnName": "lastUpdateTime", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "weight", - "columnName": "weight", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "exploreUrl", - "columnName": "exploreUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleExplore", - "columnName": "ruleExplore", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "searchUrl", - "columnName": "searchUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleSearch", - "columnName": "ruleSearch", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleBookInfo", - "columnName": "ruleBookInfo", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleToc", - "columnName": "ruleToc", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleContent", - "columnName": "ruleContent", - "affinity": "TEXT", - "notNull": false - } - ], - "primaryKey": { - "columnNames": [ - "bookSourceUrl" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_book_sources_bookSourceUrl", - "unique": false, - "columnNames": [ - "bookSourceUrl" - ], - "createSql": "CREATE INDEX IF NOT EXISTS `index_book_sources_bookSourceUrl` ON `${TABLE_NAME}` (`bookSourceUrl`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "chapters", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`url` TEXT NOT NULL, `title` TEXT NOT NULL, `bookUrl` TEXT NOT NULL, `index` INTEGER NOT NULL, `resourceUrl` TEXT, `tag` TEXT, `start` INTEGER, `end` INTEGER, `variable` TEXT, PRIMARY KEY(`url`, `bookUrl`), FOREIGN KEY(`bookUrl`) REFERENCES `books`(`bookUrl`) ON UPDATE NO ACTION ON DELETE CASCADE )", - "fields": [ - { - "fieldPath": "url", - "columnName": "url", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "title", - "columnName": "title", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookUrl", - "columnName": "bookUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "index", - "columnName": "index", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "resourceUrl", - "columnName": "resourceUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "tag", - "columnName": "tag", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "start", - "columnName": "start", - "affinity": "INTEGER", - "notNull": false - }, - { - "fieldPath": "end", - "columnName": "end", - "affinity": "INTEGER", - "notNull": false - }, - { - "fieldPath": "variable", - "columnName": "variable", - "affinity": "TEXT", - "notNull": false - } - ], - "primaryKey": { - "columnNames": [ - "url", - "bookUrl" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_chapters_bookUrl", - "unique": false, - "columnNames": [ - "bookUrl" - ], - "createSql": "CREATE INDEX IF NOT EXISTS `index_chapters_bookUrl` ON `${TABLE_NAME}` (`bookUrl`)" - }, - { - "name": "index_chapters_bookUrl_index", - "unique": true, - "columnNames": [ - "bookUrl", - "index" - ], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_chapters_bookUrl_index` ON `${TABLE_NAME}` (`bookUrl`, `index`)" - } - ], - "foreignKeys": [ - { - "table": "books", - "onDelete": "CASCADE", - "onUpdate": "NO ACTION", - "columns": [ - "bookUrl" - ], - "referencedColumns": [ - "bookUrl" - ] - } - ] - }, - { - "tableName": "replace_rules", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, `name` TEXT NOT NULL, `group` TEXT, `pattern` TEXT NOT NULL, `replacement` TEXT NOT NULL, `scope` TEXT, `isEnabled` INTEGER NOT NULL, `isRegex` INTEGER NOT NULL, `sortOrder` INTEGER NOT NULL)", - "fields": [ - { - "fieldPath": "id", - "columnName": "id", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "group", - "columnName": "group", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "pattern", - "columnName": "pattern", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "replacement", - "columnName": "replacement", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "scope", - "columnName": "scope", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "isEnabled", - "columnName": "isEnabled", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "isRegex", - "columnName": "isRegex", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "order", - "columnName": "sortOrder", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "id" - ], - "autoGenerate": true - }, - "indices": [ - { - "name": "index_replace_rules_id", - "unique": false, - "columnNames": [ - "id" - ], - "createSql": "CREATE INDEX IF NOT EXISTS `index_replace_rules_id` ON `${TABLE_NAME}` (`id`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "searchBooks", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`bookUrl` TEXT NOT NULL, `origin` TEXT NOT NULL, `originName` TEXT NOT NULL, `type` INTEGER NOT NULL, `name` TEXT NOT NULL, `author` TEXT NOT NULL, `kind` TEXT, `coverUrl` TEXT, `intro` TEXT, `wordCount` TEXT, `latestChapterTitle` TEXT, `tocUrl` TEXT NOT NULL, `time` INTEGER NOT NULL, `variable` TEXT, `originOrder` INTEGER NOT NULL, PRIMARY KEY(`bookUrl`), FOREIGN KEY(`origin`) REFERENCES `book_sources`(`bookSourceUrl`) ON UPDATE NO ACTION ON DELETE CASCADE )", - "fields": [ - { - "fieldPath": "bookUrl", - "columnName": "bookUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "origin", - "columnName": "origin", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "originName", - "columnName": "originName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "type", - "columnName": "type", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "author", - "columnName": "author", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "kind", - "columnName": "kind", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "coverUrl", - "columnName": "coverUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "intro", - "columnName": "intro", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "wordCount", - "columnName": "wordCount", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "latestChapterTitle", - "columnName": "latestChapterTitle", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "tocUrl", - "columnName": "tocUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "time", - "columnName": "time", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "variable", - "columnName": "variable", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "originOrder", - "columnName": "originOrder", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "bookUrl" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_searchBooks_bookUrl", - "unique": true, - "columnNames": [ - "bookUrl" - ], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_searchBooks_bookUrl` ON `${TABLE_NAME}` (`bookUrl`)" - }, - { - "name": "index_searchBooks_origin", - "unique": false, - "columnNames": [ - "origin" - ], - "createSql": "CREATE INDEX IF NOT EXISTS `index_searchBooks_origin` ON `${TABLE_NAME}` (`origin`)" - } - ], - "foreignKeys": [ - { - "table": "book_sources", - "onDelete": "CASCADE", - "onUpdate": "NO ACTION", - "columns": [ - "origin" - ], - "referencedColumns": [ - "bookSourceUrl" - ] - } - ] - }, - { - "tableName": "search_keywords", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`word` TEXT NOT NULL, `usage` INTEGER NOT NULL, `lastUseTime` INTEGER NOT NULL, PRIMARY KEY(`word`))", - "fields": [ - { - "fieldPath": "word", - "columnName": "word", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "usage", - "columnName": "usage", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "lastUseTime", - "columnName": "lastUseTime", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "word" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_search_keywords_word", - "unique": true, - "columnNames": [ - "word" - ], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_search_keywords_word` ON `${TABLE_NAME}` (`word`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "cookies", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`url` TEXT NOT NULL, `cookie` TEXT NOT NULL, PRIMARY KEY(`url`))", - "fields": [ - { - "fieldPath": "url", - "columnName": "url", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "cookie", - "columnName": "cookie", - "affinity": "TEXT", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "url" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_cookies_url", - "unique": true, - "columnNames": [ - "url" - ], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_cookies_url` ON `${TABLE_NAME}` (`url`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "rssSources", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`sourceUrl` TEXT NOT NULL, `sourceName` TEXT NOT NULL, `sourceIcon` TEXT NOT NULL, `sourceGroup` TEXT, `enabled` INTEGER NOT NULL, `sortUrl` TEXT, `articleStyle` INTEGER NOT NULL, `ruleArticles` TEXT, `ruleNextPage` TEXT, `ruleTitle` TEXT, `rulePubDate` TEXT, `ruleDescription` TEXT, `ruleImage` TEXT, `ruleLink` TEXT, `ruleContent` TEXT, `style` TEXT, `header` TEXT, `enableJs` INTEGER NOT NULL, `loadWithBaseUrl` INTEGER NOT NULL, `customOrder` INTEGER NOT NULL, PRIMARY KEY(`sourceUrl`))", - "fields": [ - { - "fieldPath": "sourceUrl", - "columnName": "sourceUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "sourceName", - "columnName": "sourceName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "sourceIcon", - "columnName": "sourceIcon", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "sourceGroup", - "columnName": "sourceGroup", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "enabled", - "columnName": "enabled", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "sortUrl", - "columnName": "sortUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "articleStyle", - "columnName": "articleStyle", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "ruleArticles", - "columnName": "ruleArticles", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleNextPage", - "columnName": "ruleNextPage", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleTitle", - "columnName": "ruleTitle", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "rulePubDate", - "columnName": "rulePubDate", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleDescription", - "columnName": "ruleDescription", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleImage", - "columnName": "ruleImage", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleLink", - "columnName": "ruleLink", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleContent", - "columnName": "ruleContent", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "style", - "columnName": "style", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "header", - "columnName": "header", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "enableJs", - "columnName": "enableJs", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "loadWithBaseUrl", - "columnName": "loadWithBaseUrl", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "customOrder", - "columnName": "customOrder", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "sourceUrl" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_rssSources_sourceUrl", - "unique": false, - "columnNames": [ - "sourceUrl" - ], - "createSql": "CREATE INDEX IF NOT EXISTS `index_rssSources_sourceUrl` ON `${TABLE_NAME}` (`sourceUrl`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "bookmarks", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`time` INTEGER NOT NULL, `bookUrl` TEXT NOT NULL, `bookName` TEXT NOT NULL, `chapterIndex` INTEGER NOT NULL, `pageIndex` INTEGER NOT NULL, `chapterName` TEXT NOT NULL, `content` TEXT NOT NULL, PRIMARY KEY(`time`))", - "fields": [ - { - "fieldPath": "time", - "columnName": "time", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "bookUrl", - "columnName": "bookUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookName", - "columnName": "bookName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "chapterIndex", - "columnName": "chapterIndex", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "pageIndex", - "columnName": "pageIndex", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "chapterName", - "columnName": "chapterName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "content", - "columnName": "content", - "affinity": "TEXT", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "time" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_bookmarks_time", - "unique": true, - "columnNames": [ - "time" - ], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_bookmarks_time` ON `${TABLE_NAME}` (`time`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "rssArticles", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`origin` TEXT NOT NULL, `sort` TEXT NOT NULL, `title` TEXT NOT NULL, `order` INTEGER NOT NULL, `link` TEXT NOT NULL, `pubDate` TEXT, `description` TEXT, `content` TEXT, `image` TEXT, `read` INTEGER NOT NULL, PRIMARY KEY(`origin`, `link`))", - "fields": [ - { - "fieldPath": "origin", - "columnName": "origin", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "sort", - "columnName": "sort", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "title", - "columnName": "title", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "order", - "columnName": "order", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "link", - "columnName": "link", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "pubDate", - "columnName": "pubDate", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "description", - "columnName": "description", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "content", - "columnName": "content", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "image", - "columnName": "image", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "read", - "columnName": "read", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "origin", - "link" - ], - "autoGenerate": false - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "rssReadRecords", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`record` TEXT NOT NULL, `read` INTEGER NOT NULL, PRIMARY KEY(`record`))", - "fields": [ - { - "fieldPath": "record", - "columnName": "record", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "read", - "columnName": "read", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "record" - ], - "autoGenerate": false - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "rssStars", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`origin` TEXT NOT NULL, `sort` TEXT NOT NULL, `title` TEXT NOT NULL, `starTime` INTEGER NOT NULL, `link` TEXT NOT NULL, `pubDate` TEXT, `description` TEXT, `content` TEXT, `image` TEXT, PRIMARY KEY(`origin`, `link`))", - "fields": [ - { - "fieldPath": "origin", - "columnName": "origin", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "sort", - "columnName": "sort", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "title", - "columnName": "title", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "starTime", - "columnName": "starTime", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "link", - "columnName": "link", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "pubDate", - "columnName": "pubDate", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "description", - "columnName": "description", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "content", - "columnName": "content", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "image", - "columnName": "image", - "affinity": "TEXT", - "notNull": false - } - ], - "primaryKey": { - "columnNames": [ - "origin", - "link" - ], - "autoGenerate": false - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "txtTocRules", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER NOT NULL, `name` TEXT NOT NULL, `rule` TEXT NOT NULL, `serialNumber` INTEGER NOT NULL, `enable` INTEGER NOT NULL, PRIMARY KEY(`id`))", - "fields": [ - { - "fieldPath": "id", - "columnName": "id", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "rule", - "columnName": "rule", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "serialNumber", - "columnName": "serialNumber", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "enable", - "columnName": "enable", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "id" - ], - "autoGenerate": false - }, - "indices": [], - "foreignKeys": [] - } - ], - "views": [], - "setupQueries": [ - "CREATE TABLE IF NOT EXISTS room_master_table (id INTEGER PRIMARY KEY,identity_hash TEXT)", - "INSERT OR REPLACE INTO room_master_table (id,identity_hash) VALUES(42, 'da04f8cb7f257482f105b1274a7a351b')" - ] - } -} \ No newline at end of file diff --git a/app/schemas/io.legado.app.data.AppDatabase/14.json b/app/schemas/io.legado.app.data.AppDatabase/14.json deleted file mode 100644 index 7f0f72ab8..000000000 --- a/app/schemas/io.legado.app.data.AppDatabase/14.json +++ /dev/null @@ -1,1194 +0,0 @@ -{ - "formatVersion": 1, - "database": { - "version": 14, - "identityHash": "139ff0cc002ac7be67a60912cd26bac7", - "entities": [ - { - "tableName": "books", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`bookUrl` TEXT NOT NULL, `tocUrl` TEXT NOT NULL, `origin` TEXT NOT NULL, `originName` TEXT NOT NULL, `name` TEXT NOT NULL, `author` TEXT NOT NULL, `kind` TEXT, `customTag` TEXT, `coverUrl` TEXT, `customCoverUrl` TEXT, `intro` TEXT, `customIntro` TEXT, `charset` TEXT, `type` INTEGER NOT NULL, `group` INTEGER NOT NULL, `latestChapterTitle` TEXT, `latestChapterTime` INTEGER NOT NULL, `lastCheckTime` INTEGER NOT NULL, `lastCheckCount` INTEGER NOT NULL, `totalChapterNum` INTEGER NOT NULL, `durChapterTitle` TEXT, `durChapterIndex` INTEGER NOT NULL, `durChapterPos` INTEGER NOT NULL, `durChapterTime` INTEGER NOT NULL, `wordCount` TEXT, `canUpdate` INTEGER NOT NULL, `order` INTEGER NOT NULL, `originOrder` INTEGER NOT NULL, `useReplaceRule` INTEGER NOT NULL, `variable` TEXT, PRIMARY KEY(`bookUrl`))", - "fields": [ - { - "fieldPath": "bookUrl", - "columnName": "bookUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "tocUrl", - "columnName": "tocUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "origin", - "columnName": "origin", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "originName", - "columnName": "originName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "author", - "columnName": "author", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "kind", - "columnName": "kind", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "customTag", - "columnName": "customTag", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "coverUrl", - "columnName": "coverUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "customCoverUrl", - "columnName": "customCoverUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "intro", - "columnName": "intro", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "customIntro", - "columnName": "customIntro", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "charset", - "columnName": "charset", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "type", - "columnName": "type", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "group", - "columnName": "group", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "latestChapterTitle", - "columnName": "latestChapterTitle", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "latestChapterTime", - "columnName": "latestChapterTime", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "lastCheckTime", - "columnName": "lastCheckTime", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "lastCheckCount", - "columnName": "lastCheckCount", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "totalChapterNum", - "columnName": "totalChapterNum", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "durChapterTitle", - "columnName": "durChapterTitle", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "durChapterIndex", - "columnName": "durChapterIndex", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "durChapterPos", - "columnName": "durChapterPos", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "durChapterTime", - "columnName": "durChapterTime", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "wordCount", - "columnName": "wordCount", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "canUpdate", - "columnName": "canUpdate", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "order", - "columnName": "order", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "originOrder", - "columnName": "originOrder", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "useReplaceRule", - "columnName": "useReplaceRule", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "variable", - "columnName": "variable", - "affinity": "TEXT", - "notNull": false - } - ], - "primaryKey": { - "columnNames": [ - "bookUrl" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_books_name_author", - "unique": true, - "columnNames": [ - "name", - "author" - ], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_books_name_author` ON `${TABLE_NAME}` (`name`, `author`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "book_groups", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`groupId` INTEGER NOT NULL, `groupName` TEXT NOT NULL, `order` INTEGER NOT NULL, PRIMARY KEY(`groupId`))", - "fields": [ - { - "fieldPath": "groupId", - "columnName": "groupId", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "groupName", - "columnName": "groupName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "order", - "columnName": "order", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "groupId" - ], - "autoGenerate": false - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "book_sources", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`bookSourceName` TEXT NOT NULL, `bookSourceGroup` TEXT, `bookSourceUrl` TEXT NOT NULL, `bookSourceType` INTEGER NOT NULL, `bookUrlPattern` TEXT, `customOrder` INTEGER NOT NULL, `enabled` INTEGER NOT NULL, `enabledExplore` INTEGER NOT NULL, `header` TEXT, `loginUrl` TEXT, `lastUpdateTime` INTEGER NOT NULL, `weight` INTEGER NOT NULL, `exploreUrl` TEXT, `ruleExplore` TEXT, `searchUrl` TEXT, `ruleSearch` TEXT, `ruleBookInfo` TEXT, `ruleToc` TEXT, `ruleContent` TEXT, PRIMARY KEY(`bookSourceUrl`))", - "fields": [ - { - "fieldPath": "bookSourceName", - "columnName": "bookSourceName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookSourceGroup", - "columnName": "bookSourceGroup", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "bookSourceUrl", - "columnName": "bookSourceUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookSourceType", - "columnName": "bookSourceType", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "bookUrlPattern", - "columnName": "bookUrlPattern", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "customOrder", - "columnName": "customOrder", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "enabled", - "columnName": "enabled", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "enabledExplore", - "columnName": "enabledExplore", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "header", - "columnName": "header", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "loginUrl", - "columnName": "loginUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "lastUpdateTime", - "columnName": "lastUpdateTime", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "weight", - "columnName": "weight", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "exploreUrl", - "columnName": "exploreUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleExplore", - "columnName": "ruleExplore", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "searchUrl", - "columnName": "searchUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleSearch", - "columnName": "ruleSearch", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleBookInfo", - "columnName": "ruleBookInfo", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleToc", - "columnName": "ruleToc", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleContent", - "columnName": "ruleContent", - "affinity": "TEXT", - "notNull": false - } - ], - "primaryKey": { - "columnNames": [ - "bookSourceUrl" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_book_sources_bookSourceUrl", - "unique": false, - "columnNames": [ - "bookSourceUrl" - ], - "createSql": "CREATE INDEX IF NOT EXISTS `index_book_sources_bookSourceUrl` ON `${TABLE_NAME}` (`bookSourceUrl`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "chapters", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`url` TEXT NOT NULL, `title` TEXT NOT NULL, `bookUrl` TEXT NOT NULL, `index` INTEGER NOT NULL, `resourceUrl` TEXT, `tag` TEXT, `start` INTEGER, `end` INTEGER, `variable` TEXT, PRIMARY KEY(`url`, `bookUrl`), FOREIGN KEY(`bookUrl`) REFERENCES `books`(`bookUrl`) ON UPDATE NO ACTION ON DELETE CASCADE )", - "fields": [ - { - "fieldPath": "url", - "columnName": "url", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "title", - "columnName": "title", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookUrl", - "columnName": "bookUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "index", - "columnName": "index", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "resourceUrl", - "columnName": "resourceUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "tag", - "columnName": "tag", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "start", - "columnName": "start", - "affinity": "INTEGER", - "notNull": false - }, - { - "fieldPath": "end", - "columnName": "end", - "affinity": "INTEGER", - "notNull": false - }, - { - "fieldPath": "variable", - "columnName": "variable", - "affinity": "TEXT", - "notNull": false - } - ], - "primaryKey": { - "columnNames": [ - "url", - "bookUrl" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_chapters_bookUrl", - "unique": false, - "columnNames": [ - "bookUrl" - ], - "createSql": "CREATE INDEX IF NOT EXISTS `index_chapters_bookUrl` ON `${TABLE_NAME}` (`bookUrl`)" - }, - { - "name": "index_chapters_bookUrl_index", - "unique": true, - "columnNames": [ - "bookUrl", - "index" - ], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_chapters_bookUrl_index` ON `${TABLE_NAME}` (`bookUrl`, `index`)" - } - ], - "foreignKeys": [ - { - "table": "books", - "onDelete": "CASCADE", - "onUpdate": "NO ACTION", - "columns": [ - "bookUrl" - ], - "referencedColumns": [ - "bookUrl" - ] - } - ] - }, - { - "tableName": "replace_rules", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, `name` TEXT NOT NULL, `group` TEXT, `pattern` TEXT NOT NULL, `replacement` TEXT NOT NULL, `scope` TEXT, `isEnabled` INTEGER NOT NULL, `isRegex` INTEGER NOT NULL, `sortOrder` INTEGER NOT NULL)", - "fields": [ - { - "fieldPath": "id", - "columnName": "id", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "group", - "columnName": "group", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "pattern", - "columnName": "pattern", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "replacement", - "columnName": "replacement", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "scope", - "columnName": "scope", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "isEnabled", - "columnName": "isEnabled", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "isRegex", - "columnName": "isRegex", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "order", - "columnName": "sortOrder", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "id" - ], - "autoGenerate": true - }, - "indices": [ - { - "name": "index_replace_rules_id", - "unique": false, - "columnNames": [ - "id" - ], - "createSql": "CREATE INDEX IF NOT EXISTS `index_replace_rules_id` ON `${TABLE_NAME}` (`id`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "searchBooks", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`bookUrl` TEXT NOT NULL, `origin` TEXT NOT NULL, `originName` TEXT NOT NULL, `type` INTEGER NOT NULL, `name` TEXT NOT NULL, `author` TEXT NOT NULL, `kind` TEXT, `coverUrl` TEXT, `intro` TEXT, `wordCount` TEXT, `latestChapterTitle` TEXT, `tocUrl` TEXT NOT NULL, `time` INTEGER NOT NULL, `variable` TEXT, `originOrder` INTEGER NOT NULL, PRIMARY KEY(`bookUrl`), FOREIGN KEY(`origin`) REFERENCES `book_sources`(`bookSourceUrl`) ON UPDATE NO ACTION ON DELETE CASCADE )", - "fields": [ - { - "fieldPath": "bookUrl", - "columnName": "bookUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "origin", - "columnName": "origin", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "originName", - "columnName": "originName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "type", - "columnName": "type", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "author", - "columnName": "author", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "kind", - "columnName": "kind", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "coverUrl", - "columnName": "coverUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "intro", - "columnName": "intro", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "wordCount", - "columnName": "wordCount", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "latestChapterTitle", - "columnName": "latestChapterTitle", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "tocUrl", - "columnName": "tocUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "time", - "columnName": "time", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "variable", - "columnName": "variable", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "originOrder", - "columnName": "originOrder", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "bookUrl" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_searchBooks_bookUrl", - "unique": true, - "columnNames": [ - "bookUrl" - ], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_searchBooks_bookUrl` ON `${TABLE_NAME}` (`bookUrl`)" - }, - { - "name": "index_searchBooks_origin", - "unique": false, - "columnNames": [ - "origin" - ], - "createSql": "CREATE INDEX IF NOT EXISTS `index_searchBooks_origin` ON `${TABLE_NAME}` (`origin`)" - } - ], - "foreignKeys": [ - { - "table": "book_sources", - "onDelete": "CASCADE", - "onUpdate": "NO ACTION", - "columns": [ - "origin" - ], - "referencedColumns": [ - "bookSourceUrl" - ] - } - ] - }, - { - "tableName": "search_keywords", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`word` TEXT NOT NULL, `usage` INTEGER NOT NULL, `lastUseTime` INTEGER NOT NULL, PRIMARY KEY(`word`))", - "fields": [ - { - "fieldPath": "word", - "columnName": "word", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "usage", - "columnName": "usage", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "lastUseTime", - "columnName": "lastUseTime", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "word" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_search_keywords_word", - "unique": true, - "columnNames": [ - "word" - ], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_search_keywords_word` ON `${TABLE_NAME}` (`word`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "cookies", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`url` TEXT NOT NULL, `cookie` TEXT NOT NULL, PRIMARY KEY(`url`))", - "fields": [ - { - "fieldPath": "url", - "columnName": "url", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "cookie", - "columnName": "cookie", - "affinity": "TEXT", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "url" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_cookies_url", - "unique": true, - "columnNames": [ - "url" - ], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_cookies_url` ON `${TABLE_NAME}` (`url`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "rssSources", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`sourceUrl` TEXT NOT NULL, `sourceName` TEXT NOT NULL, `sourceIcon` TEXT NOT NULL, `sourceGroup` TEXT, `enabled` INTEGER NOT NULL, `sortUrl` TEXT, `articleStyle` INTEGER NOT NULL, `ruleArticles` TEXT, `ruleNextPage` TEXT, `ruleTitle` TEXT, `rulePubDate` TEXT, `ruleDescription` TEXT, `ruleImage` TEXT, `ruleLink` TEXT, `ruleContent` TEXT, `style` TEXT, `header` TEXT, `enableJs` INTEGER NOT NULL, `loadWithBaseUrl` INTEGER NOT NULL, `customOrder` INTEGER NOT NULL, PRIMARY KEY(`sourceUrl`))", - "fields": [ - { - "fieldPath": "sourceUrl", - "columnName": "sourceUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "sourceName", - "columnName": "sourceName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "sourceIcon", - "columnName": "sourceIcon", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "sourceGroup", - "columnName": "sourceGroup", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "enabled", - "columnName": "enabled", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "sortUrl", - "columnName": "sortUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "articleStyle", - "columnName": "articleStyle", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "ruleArticles", - "columnName": "ruleArticles", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleNextPage", - "columnName": "ruleNextPage", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleTitle", - "columnName": "ruleTitle", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "rulePubDate", - "columnName": "rulePubDate", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleDescription", - "columnName": "ruleDescription", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleImage", - "columnName": "ruleImage", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleLink", - "columnName": "ruleLink", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleContent", - "columnName": "ruleContent", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "style", - "columnName": "style", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "header", - "columnName": "header", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "enableJs", - "columnName": "enableJs", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "loadWithBaseUrl", - "columnName": "loadWithBaseUrl", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "customOrder", - "columnName": "customOrder", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "sourceUrl" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_rssSources_sourceUrl", - "unique": false, - "columnNames": [ - "sourceUrl" - ], - "createSql": "CREATE INDEX IF NOT EXISTS `index_rssSources_sourceUrl` ON `${TABLE_NAME}` (`sourceUrl`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "bookmarks", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`time` INTEGER NOT NULL, `bookUrl` TEXT NOT NULL, `bookName` TEXT NOT NULL, `chapterIndex` INTEGER NOT NULL, `pageIndex` INTEGER NOT NULL, `chapterName` TEXT NOT NULL, `content` TEXT NOT NULL, PRIMARY KEY(`time`))", - "fields": [ - { - "fieldPath": "time", - "columnName": "time", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "bookUrl", - "columnName": "bookUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookName", - "columnName": "bookName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "chapterIndex", - "columnName": "chapterIndex", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "pageIndex", - "columnName": "pageIndex", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "chapterName", - "columnName": "chapterName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "content", - "columnName": "content", - "affinity": "TEXT", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "time" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_bookmarks_time", - "unique": true, - "columnNames": [ - "time" - ], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_bookmarks_time` ON `${TABLE_NAME}` (`time`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "rssArticles", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`origin` TEXT NOT NULL, `sort` TEXT NOT NULL, `title` TEXT NOT NULL, `order` INTEGER NOT NULL, `link` TEXT NOT NULL, `pubDate` TEXT, `description` TEXT, `content` TEXT, `image` TEXT, `read` INTEGER NOT NULL, PRIMARY KEY(`origin`, `link`))", - "fields": [ - { - "fieldPath": "origin", - "columnName": "origin", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "sort", - "columnName": "sort", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "title", - "columnName": "title", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "order", - "columnName": "order", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "link", - "columnName": "link", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "pubDate", - "columnName": "pubDate", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "description", - "columnName": "description", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "content", - "columnName": "content", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "image", - "columnName": "image", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "read", - "columnName": "read", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "origin", - "link" - ], - "autoGenerate": false - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "rssReadRecords", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`record` TEXT NOT NULL, `read` INTEGER NOT NULL, PRIMARY KEY(`record`))", - "fields": [ - { - "fieldPath": "record", - "columnName": "record", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "read", - "columnName": "read", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "record" - ], - "autoGenerate": false - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "rssStars", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`origin` TEXT NOT NULL, `sort` TEXT NOT NULL, `title` TEXT NOT NULL, `starTime` INTEGER NOT NULL, `link` TEXT NOT NULL, `pubDate` TEXT, `description` TEXT, `content` TEXT, `image` TEXT, PRIMARY KEY(`origin`, `link`))", - "fields": [ - { - "fieldPath": "origin", - "columnName": "origin", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "sort", - "columnName": "sort", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "title", - "columnName": "title", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "starTime", - "columnName": "starTime", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "link", - "columnName": "link", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "pubDate", - "columnName": "pubDate", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "description", - "columnName": "description", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "content", - "columnName": "content", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "image", - "columnName": "image", - "affinity": "TEXT", - "notNull": false - } - ], - "primaryKey": { - "columnNames": [ - "origin", - "link" - ], - "autoGenerate": false - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "txtTocRules", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER NOT NULL, `name` TEXT NOT NULL, `rule` TEXT NOT NULL, `serialNumber` INTEGER NOT NULL, `enable` INTEGER NOT NULL, PRIMARY KEY(`id`))", - "fields": [ - { - "fieldPath": "id", - "columnName": "id", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "rule", - "columnName": "rule", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "serialNumber", - "columnName": "serialNumber", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "enable", - "columnName": "enable", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "id" - ], - "autoGenerate": false - }, - "indices": [], - "foreignKeys": [] - } - ], - "views": [], - "setupQueries": [ - "CREATE TABLE IF NOT EXISTS room_master_table (id INTEGER PRIMARY KEY,identity_hash TEXT)", - "INSERT OR REPLACE INTO room_master_table (id,identity_hash) VALUES(42, '139ff0cc002ac7be67a60912cd26bac7')" - ] - } -} \ No newline at end of file diff --git a/app/schemas/io.legado.app.data.AppDatabase/15.json b/app/schemas/io.legado.app.data.AppDatabase/15.json deleted file mode 100644 index cb401ac94..000000000 --- a/app/schemas/io.legado.app.data.AppDatabase/15.json +++ /dev/null @@ -1,1200 +0,0 @@ -{ - "formatVersion": 1, - "database": { - "version": 15, - "identityHash": "07a0976a08cbae60a16550af5663cde5", - "entities": [ - { - "tableName": "books", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`bookUrl` TEXT NOT NULL, `tocUrl` TEXT NOT NULL, `origin` TEXT NOT NULL, `originName` TEXT NOT NULL, `name` TEXT NOT NULL, `author` TEXT NOT NULL, `kind` TEXT, `customTag` TEXT, `coverUrl` TEXT, `customCoverUrl` TEXT, `intro` TEXT, `customIntro` TEXT, `charset` TEXT, `type` INTEGER NOT NULL, `group` INTEGER NOT NULL, `latestChapterTitle` TEXT, `latestChapterTime` INTEGER NOT NULL, `lastCheckTime` INTEGER NOT NULL, `lastCheckCount` INTEGER NOT NULL, `totalChapterNum` INTEGER NOT NULL, `durChapterTitle` TEXT, `durChapterIndex` INTEGER NOT NULL, `durChapterPos` INTEGER NOT NULL, `durChapterTime` INTEGER NOT NULL, `wordCount` TEXT, `canUpdate` INTEGER NOT NULL, `order` INTEGER NOT NULL, `originOrder` INTEGER NOT NULL, `useReplaceRule` INTEGER NOT NULL, `variable` TEXT, PRIMARY KEY(`bookUrl`))", - "fields": [ - { - "fieldPath": "bookUrl", - "columnName": "bookUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "tocUrl", - "columnName": "tocUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "origin", - "columnName": "origin", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "originName", - "columnName": "originName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "author", - "columnName": "author", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "kind", - "columnName": "kind", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "customTag", - "columnName": "customTag", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "coverUrl", - "columnName": "coverUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "customCoverUrl", - "columnName": "customCoverUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "intro", - "columnName": "intro", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "customIntro", - "columnName": "customIntro", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "charset", - "columnName": "charset", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "type", - "columnName": "type", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "group", - "columnName": "group", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "latestChapterTitle", - "columnName": "latestChapterTitle", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "latestChapterTime", - "columnName": "latestChapterTime", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "lastCheckTime", - "columnName": "lastCheckTime", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "lastCheckCount", - "columnName": "lastCheckCount", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "totalChapterNum", - "columnName": "totalChapterNum", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "durChapterTitle", - "columnName": "durChapterTitle", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "durChapterIndex", - "columnName": "durChapterIndex", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "durChapterPos", - "columnName": "durChapterPos", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "durChapterTime", - "columnName": "durChapterTime", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "wordCount", - "columnName": "wordCount", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "canUpdate", - "columnName": "canUpdate", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "order", - "columnName": "order", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "originOrder", - "columnName": "originOrder", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "useReplaceRule", - "columnName": "useReplaceRule", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "variable", - "columnName": "variable", - "affinity": "TEXT", - "notNull": false - } - ], - "primaryKey": { - "columnNames": [ - "bookUrl" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_books_name_author", - "unique": true, - "columnNames": [ - "name", - "author" - ], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_books_name_author` ON `${TABLE_NAME}` (`name`, `author`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "book_groups", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`groupId` INTEGER NOT NULL, `groupName` TEXT NOT NULL, `order` INTEGER NOT NULL, PRIMARY KEY(`groupId`))", - "fields": [ - { - "fieldPath": "groupId", - "columnName": "groupId", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "groupName", - "columnName": "groupName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "order", - "columnName": "order", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "groupId" - ], - "autoGenerate": false - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "book_sources", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`bookSourceName` TEXT NOT NULL, `bookSourceGroup` TEXT, `bookSourceUrl` TEXT NOT NULL, `bookSourceType` INTEGER NOT NULL, `bookUrlPattern` TEXT, `customOrder` INTEGER NOT NULL, `enabled` INTEGER NOT NULL, `enabledExplore` INTEGER NOT NULL, `header` TEXT, `loginUrl` TEXT, `lastUpdateTime` INTEGER NOT NULL, `weight` INTEGER NOT NULL, `exploreUrl` TEXT, `ruleExplore` TEXT, `searchUrl` TEXT, `ruleSearch` TEXT, `ruleBookInfo` TEXT, `ruleToc` TEXT, `ruleContent` TEXT, PRIMARY KEY(`bookSourceUrl`))", - "fields": [ - { - "fieldPath": "bookSourceName", - "columnName": "bookSourceName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookSourceGroup", - "columnName": "bookSourceGroup", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "bookSourceUrl", - "columnName": "bookSourceUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookSourceType", - "columnName": "bookSourceType", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "bookUrlPattern", - "columnName": "bookUrlPattern", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "customOrder", - "columnName": "customOrder", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "enabled", - "columnName": "enabled", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "enabledExplore", - "columnName": "enabledExplore", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "header", - "columnName": "header", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "loginUrl", - "columnName": "loginUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "lastUpdateTime", - "columnName": "lastUpdateTime", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "weight", - "columnName": "weight", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "exploreUrl", - "columnName": "exploreUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleExplore", - "columnName": "ruleExplore", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "searchUrl", - "columnName": "searchUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleSearch", - "columnName": "ruleSearch", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleBookInfo", - "columnName": "ruleBookInfo", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleToc", - "columnName": "ruleToc", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleContent", - "columnName": "ruleContent", - "affinity": "TEXT", - "notNull": false - } - ], - "primaryKey": { - "columnNames": [ - "bookSourceUrl" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_book_sources_bookSourceUrl", - "unique": false, - "columnNames": [ - "bookSourceUrl" - ], - "createSql": "CREATE INDEX IF NOT EXISTS `index_book_sources_bookSourceUrl` ON `${TABLE_NAME}` (`bookSourceUrl`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "chapters", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`url` TEXT NOT NULL, `title` TEXT NOT NULL, `bookUrl` TEXT NOT NULL, `index` INTEGER NOT NULL, `resourceUrl` TEXT, `tag` TEXT, `start` INTEGER, `end` INTEGER, `variable` TEXT, PRIMARY KEY(`url`, `bookUrl`), FOREIGN KEY(`bookUrl`) REFERENCES `books`(`bookUrl`) ON UPDATE NO ACTION ON DELETE CASCADE )", - "fields": [ - { - "fieldPath": "url", - "columnName": "url", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "title", - "columnName": "title", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookUrl", - "columnName": "bookUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "index", - "columnName": "index", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "resourceUrl", - "columnName": "resourceUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "tag", - "columnName": "tag", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "start", - "columnName": "start", - "affinity": "INTEGER", - "notNull": false - }, - { - "fieldPath": "end", - "columnName": "end", - "affinity": "INTEGER", - "notNull": false - }, - { - "fieldPath": "variable", - "columnName": "variable", - "affinity": "TEXT", - "notNull": false - } - ], - "primaryKey": { - "columnNames": [ - "url", - "bookUrl" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_chapters_bookUrl", - "unique": false, - "columnNames": [ - "bookUrl" - ], - "createSql": "CREATE INDEX IF NOT EXISTS `index_chapters_bookUrl` ON `${TABLE_NAME}` (`bookUrl`)" - }, - { - "name": "index_chapters_bookUrl_index", - "unique": true, - "columnNames": [ - "bookUrl", - "index" - ], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_chapters_bookUrl_index` ON `${TABLE_NAME}` (`bookUrl`, `index`)" - } - ], - "foreignKeys": [ - { - "table": "books", - "onDelete": "CASCADE", - "onUpdate": "NO ACTION", - "columns": [ - "bookUrl" - ], - "referencedColumns": [ - "bookUrl" - ] - } - ] - }, - { - "tableName": "replace_rules", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, `name` TEXT NOT NULL, `group` TEXT, `pattern` TEXT NOT NULL, `replacement` TEXT NOT NULL, `scope` TEXT, `isEnabled` INTEGER NOT NULL, `isRegex` INTEGER NOT NULL, `sortOrder` INTEGER NOT NULL)", - "fields": [ - { - "fieldPath": "id", - "columnName": "id", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "group", - "columnName": "group", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "pattern", - "columnName": "pattern", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "replacement", - "columnName": "replacement", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "scope", - "columnName": "scope", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "isEnabled", - "columnName": "isEnabled", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "isRegex", - "columnName": "isRegex", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "order", - "columnName": "sortOrder", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "id" - ], - "autoGenerate": true - }, - "indices": [ - { - "name": "index_replace_rules_id", - "unique": false, - "columnNames": [ - "id" - ], - "createSql": "CREATE INDEX IF NOT EXISTS `index_replace_rules_id` ON `${TABLE_NAME}` (`id`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "searchBooks", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`bookUrl` TEXT NOT NULL, `origin` TEXT NOT NULL, `originName` TEXT NOT NULL, `type` INTEGER NOT NULL, `name` TEXT NOT NULL, `author` TEXT NOT NULL, `kind` TEXT, `coverUrl` TEXT, `intro` TEXT, `wordCount` TEXT, `latestChapterTitle` TEXT, `tocUrl` TEXT NOT NULL, `time` INTEGER NOT NULL, `variable` TEXT, `originOrder` INTEGER NOT NULL, PRIMARY KEY(`bookUrl`), FOREIGN KEY(`origin`) REFERENCES `book_sources`(`bookSourceUrl`) ON UPDATE NO ACTION ON DELETE CASCADE )", - "fields": [ - { - "fieldPath": "bookUrl", - "columnName": "bookUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "origin", - "columnName": "origin", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "originName", - "columnName": "originName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "type", - "columnName": "type", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "author", - "columnName": "author", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "kind", - "columnName": "kind", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "coverUrl", - "columnName": "coverUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "intro", - "columnName": "intro", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "wordCount", - "columnName": "wordCount", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "latestChapterTitle", - "columnName": "latestChapterTitle", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "tocUrl", - "columnName": "tocUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "time", - "columnName": "time", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "variable", - "columnName": "variable", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "originOrder", - "columnName": "originOrder", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "bookUrl" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_searchBooks_bookUrl", - "unique": true, - "columnNames": [ - "bookUrl" - ], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_searchBooks_bookUrl` ON `${TABLE_NAME}` (`bookUrl`)" - }, - { - "name": "index_searchBooks_origin", - "unique": false, - "columnNames": [ - "origin" - ], - "createSql": "CREATE INDEX IF NOT EXISTS `index_searchBooks_origin` ON `${TABLE_NAME}` (`origin`)" - } - ], - "foreignKeys": [ - { - "table": "book_sources", - "onDelete": "CASCADE", - "onUpdate": "NO ACTION", - "columns": [ - "origin" - ], - "referencedColumns": [ - "bookSourceUrl" - ] - } - ] - }, - { - "tableName": "search_keywords", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`word` TEXT NOT NULL, `usage` INTEGER NOT NULL, `lastUseTime` INTEGER NOT NULL, PRIMARY KEY(`word`))", - "fields": [ - { - "fieldPath": "word", - "columnName": "word", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "usage", - "columnName": "usage", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "lastUseTime", - "columnName": "lastUseTime", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "word" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_search_keywords_word", - "unique": true, - "columnNames": [ - "word" - ], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_search_keywords_word` ON `${TABLE_NAME}` (`word`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "cookies", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`url` TEXT NOT NULL, `cookie` TEXT NOT NULL, PRIMARY KEY(`url`))", - "fields": [ - { - "fieldPath": "url", - "columnName": "url", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "cookie", - "columnName": "cookie", - "affinity": "TEXT", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "url" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_cookies_url", - "unique": true, - "columnNames": [ - "url" - ], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_cookies_url` ON `${TABLE_NAME}` (`url`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "rssSources", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`sourceUrl` TEXT NOT NULL, `sourceName` TEXT NOT NULL, `sourceIcon` TEXT NOT NULL, `sourceGroup` TEXT, `enabled` INTEGER NOT NULL, `sortUrl` TEXT, `articleStyle` INTEGER NOT NULL, `ruleArticles` TEXT, `ruleNextPage` TEXT, `ruleTitle` TEXT, `rulePubDate` TEXT, `ruleDescription` TEXT, `ruleImage` TEXT, `ruleLink` TEXT, `ruleContent` TEXT, `style` TEXT, `header` TEXT, `enableJs` INTEGER NOT NULL, `loadWithBaseUrl` INTEGER NOT NULL, `customOrder` INTEGER NOT NULL, PRIMARY KEY(`sourceUrl`))", - "fields": [ - { - "fieldPath": "sourceUrl", - "columnName": "sourceUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "sourceName", - "columnName": "sourceName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "sourceIcon", - "columnName": "sourceIcon", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "sourceGroup", - "columnName": "sourceGroup", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "enabled", - "columnName": "enabled", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "sortUrl", - "columnName": "sortUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "articleStyle", - "columnName": "articleStyle", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "ruleArticles", - "columnName": "ruleArticles", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleNextPage", - "columnName": "ruleNextPage", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleTitle", - "columnName": "ruleTitle", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "rulePubDate", - "columnName": "rulePubDate", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleDescription", - "columnName": "ruleDescription", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleImage", - "columnName": "ruleImage", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleLink", - "columnName": "ruleLink", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleContent", - "columnName": "ruleContent", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "style", - "columnName": "style", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "header", - "columnName": "header", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "enableJs", - "columnName": "enableJs", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "loadWithBaseUrl", - "columnName": "loadWithBaseUrl", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "customOrder", - "columnName": "customOrder", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "sourceUrl" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_rssSources_sourceUrl", - "unique": false, - "columnNames": [ - "sourceUrl" - ], - "createSql": "CREATE INDEX IF NOT EXISTS `index_rssSources_sourceUrl` ON `${TABLE_NAME}` (`sourceUrl`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "bookmarks", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`time` INTEGER NOT NULL, `bookUrl` TEXT NOT NULL, `bookName` TEXT NOT NULL, `bookAuthor` TEXT NOT NULL, `chapterIndex` INTEGER NOT NULL, `pageIndex` INTEGER NOT NULL, `chapterName` TEXT NOT NULL, `content` TEXT NOT NULL, PRIMARY KEY(`time`))", - "fields": [ - { - "fieldPath": "time", - "columnName": "time", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "bookUrl", - "columnName": "bookUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookName", - "columnName": "bookName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookAuthor", - "columnName": "bookAuthor", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "chapterIndex", - "columnName": "chapterIndex", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "pageIndex", - "columnName": "pageIndex", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "chapterName", - "columnName": "chapterName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "content", - "columnName": "content", - "affinity": "TEXT", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "time" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_bookmarks_time", - "unique": true, - "columnNames": [ - "time" - ], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_bookmarks_time` ON `${TABLE_NAME}` (`time`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "rssArticles", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`origin` TEXT NOT NULL, `sort` TEXT NOT NULL, `title` TEXT NOT NULL, `order` INTEGER NOT NULL, `link` TEXT NOT NULL, `pubDate` TEXT, `description` TEXT, `content` TEXT, `image` TEXT, `read` INTEGER NOT NULL, PRIMARY KEY(`origin`, `link`))", - "fields": [ - { - "fieldPath": "origin", - "columnName": "origin", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "sort", - "columnName": "sort", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "title", - "columnName": "title", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "order", - "columnName": "order", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "link", - "columnName": "link", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "pubDate", - "columnName": "pubDate", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "description", - "columnName": "description", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "content", - "columnName": "content", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "image", - "columnName": "image", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "read", - "columnName": "read", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "origin", - "link" - ], - "autoGenerate": false - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "rssReadRecords", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`record` TEXT NOT NULL, `read` INTEGER NOT NULL, PRIMARY KEY(`record`))", - "fields": [ - { - "fieldPath": "record", - "columnName": "record", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "read", - "columnName": "read", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "record" - ], - "autoGenerate": false - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "rssStars", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`origin` TEXT NOT NULL, `sort` TEXT NOT NULL, `title` TEXT NOT NULL, `starTime` INTEGER NOT NULL, `link` TEXT NOT NULL, `pubDate` TEXT, `description` TEXT, `content` TEXT, `image` TEXT, PRIMARY KEY(`origin`, `link`))", - "fields": [ - { - "fieldPath": "origin", - "columnName": "origin", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "sort", - "columnName": "sort", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "title", - "columnName": "title", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "starTime", - "columnName": "starTime", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "link", - "columnName": "link", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "pubDate", - "columnName": "pubDate", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "description", - "columnName": "description", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "content", - "columnName": "content", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "image", - "columnName": "image", - "affinity": "TEXT", - "notNull": false - } - ], - "primaryKey": { - "columnNames": [ - "origin", - "link" - ], - "autoGenerate": false - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "txtTocRules", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER NOT NULL, `name` TEXT NOT NULL, `rule` TEXT NOT NULL, `serialNumber` INTEGER NOT NULL, `enable` INTEGER NOT NULL, PRIMARY KEY(`id`))", - "fields": [ - { - "fieldPath": "id", - "columnName": "id", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "rule", - "columnName": "rule", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "serialNumber", - "columnName": "serialNumber", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "enable", - "columnName": "enable", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "id" - ], - "autoGenerate": false - }, - "indices": [], - "foreignKeys": [] - } - ], - "views": [], - "setupQueries": [ - "CREATE TABLE IF NOT EXISTS room_master_table (id INTEGER PRIMARY KEY,identity_hash TEXT)", - "INSERT OR REPLACE INTO room_master_table (id,identity_hash) VALUES(42, '07a0976a08cbae60a16550af5663cde5')" - ] - } -} \ No newline at end of file diff --git a/app/schemas/io.legado.app.data.AppDatabase/16.json b/app/schemas/io.legado.app.data.AppDatabase/16.json deleted file mode 100644 index 80bb3925b..000000000 --- a/app/schemas/io.legado.app.data.AppDatabase/16.json +++ /dev/null @@ -1,1226 +0,0 @@ -{ - "formatVersion": 1, - "database": { - "version": 16, - "identityHash": "ce9320370930dec28d85e2a77fad95e2", - "entities": [ - { - "tableName": "books", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`bookUrl` TEXT NOT NULL, `tocUrl` TEXT NOT NULL, `origin` TEXT NOT NULL, `originName` TEXT NOT NULL, `name` TEXT NOT NULL, `author` TEXT NOT NULL, `kind` TEXT, `customTag` TEXT, `coverUrl` TEXT, `customCoverUrl` TEXT, `intro` TEXT, `customIntro` TEXT, `charset` TEXT, `type` INTEGER NOT NULL, `group` INTEGER NOT NULL, `latestChapterTitle` TEXT, `latestChapterTime` INTEGER NOT NULL, `lastCheckTime` INTEGER NOT NULL, `lastCheckCount` INTEGER NOT NULL, `totalChapterNum` INTEGER NOT NULL, `durChapterTitle` TEXT, `durChapterIndex` INTEGER NOT NULL, `durChapterPos` INTEGER NOT NULL, `durChapterTime` INTEGER NOT NULL, `wordCount` TEXT, `canUpdate` INTEGER NOT NULL, `order` INTEGER NOT NULL, `originOrder` INTEGER NOT NULL, `useReplaceRule` INTEGER NOT NULL, `variable` TEXT, PRIMARY KEY(`bookUrl`))", - "fields": [ - { - "fieldPath": "bookUrl", - "columnName": "bookUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "tocUrl", - "columnName": "tocUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "origin", - "columnName": "origin", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "originName", - "columnName": "originName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "author", - "columnName": "author", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "kind", - "columnName": "kind", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "customTag", - "columnName": "customTag", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "coverUrl", - "columnName": "coverUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "customCoverUrl", - "columnName": "customCoverUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "intro", - "columnName": "intro", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "customIntro", - "columnName": "customIntro", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "charset", - "columnName": "charset", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "type", - "columnName": "type", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "group", - "columnName": "group", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "latestChapterTitle", - "columnName": "latestChapterTitle", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "latestChapterTime", - "columnName": "latestChapterTime", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "lastCheckTime", - "columnName": "lastCheckTime", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "lastCheckCount", - "columnName": "lastCheckCount", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "totalChapterNum", - "columnName": "totalChapterNum", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "durChapterTitle", - "columnName": "durChapterTitle", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "durChapterIndex", - "columnName": "durChapterIndex", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "durChapterPos", - "columnName": "durChapterPos", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "durChapterTime", - "columnName": "durChapterTime", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "wordCount", - "columnName": "wordCount", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "canUpdate", - "columnName": "canUpdate", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "order", - "columnName": "order", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "originOrder", - "columnName": "originOrder", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "useReplaceRule", - "columnName": "useReplaceRule", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "variable", - "columnName": "variable", - "affinity": "TEXT", - "notNull": false - } - ], - "primaryKey": { - "columnNames": [ - "bookUrl" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_books_name_author", - "unique": true, - "columnNames": [ - "name", - "author" - ], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_books_name_author` ON `${TABLE_NAME}` (`name`, `author`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "book_groups", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`groupId` INTEGER NOT NULL, `groupName` TEXT NOT NULL, `order` INTEGER NOT NULL, PRIMARY KEY(`groupId`))", - "fields": [ - { - "fieldPath": "groupId", - "columnName": "groupId", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "groupName", - "columnName": "groupName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "order", - "columnName": "order", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "groupId" - ], - "autoGenerate": false - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "book_sources", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`bookSourceName` TEXT NOT NULL, `bookSourceGroup` TEXT, `bookSourceUrl` TEXT NOT NULL, `bookSourceType` INTEGER NOT NULL, `bookUrlPattern` TEXT, `customOrder` INTEGER NOT NULL, `enabled` INTEGER NOT NULL, `enabledExplore` INTEGER NOT NULL, `header` TEXT, `loginUrl` TEXT, `lastUpdateTime` INTEGER NOT NULL, `weight` INTEGER NOT NULL, `exploreUrl` TEXT, `ruleExplore` TEXT, `searchUrl` TEXT, `ruleSearch` TEXT, `ruleBookInfo` TEXT, `ruleToc` TEXT, `ruleContent` TEXT, PRIMARY KEY(`bookSourceUrl`))", - "fields": [ - { - "fieldPath": "bookSourceName", - "columnName": "bookSourceName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookSourceGroup", - "columnName": "bookSourceGroup", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "bookSourceUrl", - "columnName": "bookSourceUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookSourceType", - "columnName": "bookSourceType", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "bookUrlPattern", - "columnName": "bookUrlPattern", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "customOrder", - "columnName": "customOrder", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "enabled", - "columnName": "enabled", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "enabledExplore", - "columnName": "enabledExplore", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "header", - "columnName": "header", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "loginUrl", - "columnName": "loginUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "lastUpdateTime", - "columnName": "lastUpdateTime", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "weight", - "columnName": "weight", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "exploreUrl", - "columnName": "exploreUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleExplore", - "columnName": "ruleExplore", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "searchUrl", - "columnName": "searchUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleSearch", - "columnName": "ruleSearch", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleBookInfo", - "columnName": "ruleBookInfo", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleToc", - "columnName": "ruleToc", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleContent", - "columnName": "ruleContent", - "affinity": "TEXT", - "notNull": false - } - ], - "primaryKey": { - "columnNames": [ - "bookSourceUrl" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_book_sources_bookSourceUrl", - "unique": false, - "columnNames": [ - "bookSourceUrl" - ], - "createSql": "CREATE INDEX IF NOT EXISTS `index_book_sources_bookSourceUrl` ON `${TABLE_NAME}` (`bookSourceUrl`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "chapters", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`url` TEXT NOT NULL, `title` TEXT NOT NULL, `bookUrl` TEXT NOT NULL, `index` INTEGER NOT NULL, `resourceUrl` TEXT, `tag` TEXT, `start` INTEGER, `end` INTEGER, `variable` TEXT, PRIMARY KEY(`url`, `bookUrl`), FOREIGN KEY(`bookUrl`) REFERENCES `books`(`bookUrl`) ON UPDATE NO ACTION ON DELETE CASCADE )", - "fields": [ - { - "fieldPath": "url", - "columnName": "url", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "title", - "columnName": "title", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookUrl", - "columnName": "bookUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "index", - "columnName": "index", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "resourceUrl", - "columnName": "resourceUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "tag", - "columnName": "tag", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "start", - "columnName": "start", - "affinity": "INTEGER", - "notNull": false - }, - { - "fieldPath": "end", - "columnName": "end", - "affinity": "INTEGER", - "notNull": false - }, - { - "fieldPath": "variable", - "columnName": "variable", - "affinity": "TEXT", - "notNull": false - } - ], - "primaryKey": { - "columnNames": [ - "url", - "bookUrl" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_chapters_bookUrl", - "unique": false, - "columnNames": [ - "bookUrl" - ], - "createSql": "CREATE INDEX IF NOT EXISTS `index_chapters_bookUrl` ON `${TABLE_NAME}` (`bookUrl`)" - }, - { - "name": "index_chapters_bookUrl_index", - "unique": true, - "columnNames": [ - "bookUrl", - "index" - ], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_chapters_bookUrl_index` ON `${TABLE_NAME}` (`bookUrl`, `index`)" - } - ], - "foreignKeys": [ - { - "table": "books", - "onDelete": "CASCADE", - "onUpdate": "NO ACTION", - "columns": [ - "bookUrl" - ], - "referencedColumns": [ - "bookUrl" - ] - } - ] - }, - { - "tableName": "replace_rules", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, `name` TEXT NOT NULL, `group` TEXT, `pattern` TEXT NOT NULL, `replacement` TEXT NOT NULL, `scope` TEXT, `isEnabled` INTEGER NOT NULL, `isRegex` INTEGER NOT NULL, `sortOrder` INTEGER NOT NULL)", - "fields": [ - { - "fieldPath": "id", - "columnName": "id", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "group", - "columnName": "group", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "pattern", - "columnName": "pattern", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "replacement", - "columnName": "replacement", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "scope", - "columnName": "scope", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "isEnabled", - "columnName": "isEnabled", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "isRegex", - "columnName": "isRegex", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "order", - "columnName": "sortOrder", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "id" - ], - "autoGenerate": true - }, - "indices": [ - { - "name": "index_replace_rules_id", - "unique": false, - "columnNames": [ - "id" - ], - "createSql": "CREATE INDEX IF NOT EXISTS `index_replace_rules_id` ON `${TABLE_NAME}` (`id`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "searchBooks", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`bookUrl` TEXT NOT NULL, `origin` TEXT NOT NULL, `originName` TEXT NOT NULL, `type` INTEGER NOT NULL, `name` TEXT NOT NULL, `author` TEXT NOT NULL, `kind` TEXT, `coverUrl` TEXT, `intro` TEXT, `wordCount` TEXT, `latestChapterTitle` TEXT, `tocUrl` TEXT NOT NULL, `time` INTEGER NOT NULL, `variable` TEXT, `originOrder` INTEGER NOT NULL, PRIMARY KEY(`bookUrl`), FOREIGN KEY(`origin`) REFERENCES `book_sources`(`bookSourceUrl`) ON UPDATE NO ACTION ON DELETE CASCADE )", - "fields": [ - { - "fieldPath": "bookUrl", - "columnName": "bookUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "origin", - "columnName": "origin", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "originName", - "columnName": "originName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "type", - "columnName": "type", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "author", - "columnName": "author", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "kind", - "columnName": "kind", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "coverUrl", - "columnName": "coverUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "intro", - "columnName": "intro", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "wordCount", - "columnName": "wordCount", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "latestChapterTitle", - "columnName": "latestChapterTitle", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "tocUrl", - "columnName": "tocUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "time", - "columnName": "time", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "variable", - "columnName": "variable", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "originOrder", - "columnName": "originOrder", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "bookUrl" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_searchBooks_bookUrl", - "unique": true, - "columnNames": [ - "bookUrl" - ], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_searchBooks_bookUrl` ON `${TABLE_NAME}` (`bookUrl`)" - }, - { - "name": "index_searchBooks_origin", - "unique": false, - "columnNames": [ - "origin" - ], - "createSql": "CREATE INDEX IF NOT EXISTS `index_searchBooks_origin` ON `${TABLE_NAME}` (`origin`)" - } - ], - "foreignKeys": [ - { - "table": "book_sources", - "onDelete": "CASCADE", - "onUpdate": "NO ACTION", - "columns": [ - "origin" - ], - "referencedColumns": [ - "bookSourceUrl" - ] - } - ] - }, - { - "tableName": "search_keywords", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`word` TEXT NOT NULL, `usage` INTEGER NOT NULL, `lastUseTime` INTEGER NOT NULL, PRIMARY KEY(`word`))", - "fields": [ - { - "fieldPath": "word", - "columnName": "word", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "usage", - "columnName": "usage", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "lastUseTime", - "columnName": "lastUseTime", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "word" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_search_keywords_word", - "unique": true, - "columnNames": [ - "word" - ], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_search_keywords_word` ON `${TABLE_NAME}` (`word`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "cookies", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`url` TEXT NOT NULL, `cookie` TEXT NOT NULL, PRIMARY KEY(`url`))", - "fields": [ - { - "fieldPath": "url", - "columnName": "url", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "cookie", - "columnName": "cookie", - "affinity": "TEXT", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "url" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_cookies_url", - "unique": true, - "columnNames": [ - "url" - ], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_cookies_url` ON `${TABLE_NAME}` (`url`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "rssSources", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`sourceUrl` TEXT NOT NULL, `sourceName` TEXT NOT NULL, `sourceIcon` TEXT NOT NULL, `sourceGroup` TEXT, `enabled` INTEGER NOT NULL, `sortUrl` TEXT, `articleStyle` INTEGER NOT NULL, `ruleArticles` TEXT, `ruleNextPage` TEXT, `ruleTitle` TEXT, `rulePubDate` TEXT, `ruleDescription` TEXT, `ruleImage` TEXT, `ruleLink` TEXT, `ruleContent` TEXT, `style` TEXT, `header` TEXT, `enableJs` INTEGER NOT NULL, `loadWithBaseUrl` INTEGER NOT NULL, `customOrder` INTEGER NOT NULL, PRIMARY KEY(`sourceUrl`))", - "fields": [ - { - "fieldPath": "sourceUrl", - "columnName": "sourceUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "sourceName", - "columnName": "sourceName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "sourceIcon", - "columnName": "sourceIcon", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "sourceGroup", - "columnName": "sourceGroup", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "enabled", - "columnName": "enabled", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "sortUrl", - "columnName": "sortUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "articleStyle", - "columnName": "articleStyle", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "ruleArticles", - "columnName": "ruleArticles", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleNextPage", - "columnName": "ruleNextPage", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleTitle", - "columnName": "ruleTitle", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "rulePubDate", - "columnName": "rulePubDate", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleDescription", - "columnName": "ruleDescription", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleImage", - "columnName": "ruleImage", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleLink", - "columnName": "ruleLink", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleContent", - "columnName": "ruleContent", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "style", - "columnName": "style", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "header", - "columnName": "header", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "enableJs", - "columnName": "enableJs", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "loadWithBaseUrl", - "columnName": "loadWithBaseUrl", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "customOrder", - "columnName": "customOrder", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "sourceUrl" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_rssSources_sourceUrl", - "unique": false, - "columnNames": [ - "sourceUrl" - ], - "createSql": "CREATE INDEX IF NOT EXISTS `index_rssSources_sourceUrl` ON `${TABLE_NAME}` (`sourceUrl`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "bookmarks", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`time` INTEGER NOT NULL, `bookUrl` TEXT NOT NULL, `bookName` TEXT NOT NULL, `bookAuthor` TEXT NOT NULL, `chapterIndex` INTEGER NOT NULL, `pageIndex` INTEGER NOT NULL, `chapterName` TEXT NOT NULL, `content` TEXT NOT NULL, PRIMARY KEY(`time`))", - "fields": [ - { - "fieldPath": "time", - "columnName": "time", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "bookUrl", - "columnName": "bookUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookName", - "columnName": "bookName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookAuthor", - "columnName": "bookAuthor", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "chapterIndex", - "columnName": "chapterIndex", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "pageIndex", - "columnName": "pageIndex", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "chapterName", - "columnName": "chapterName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "content", - "columnName": "content", - "affinity": "TEXT", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "time" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_bookmarks_time", - "unique": true, - "columnNames": [ - "time" - ], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_bookmarks_time` ON `${TABLE_NAME}` (`time`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "rssArticles", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`origin` TEXT NOT NULL, `sort` TEXT NOT NULL, `title` TEXT NOT NULL, `order` INTEGER NOT NULL, `link` TEXT NOT NULL, `pubDate` TEXT, `description` TEXT, `content` TEXT, `image` TEXT, `read` INTEGER NOT NULL, PRIMARY KEY(`origin`, `link`))", - "fields": [ - { - "fieldPath": "origin", - "columnName": "origin", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "sort", - "columnName": "sort", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "title", - "columnName": "title", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "order", - "columnName": "order", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "link", - "columnName": "link", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "pubDate", - "columnName": "pubDate", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "description", - "columnName": "description", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "content", - "columnName": "content", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "image", - "columnName": "image", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "read", - "columnName": "read", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "origin", - "link" - ], - "autoGenerate": false - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "rssReadRecords", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`record` TEXT NOT NULL, `read` INTEGER NOT NULL, PRIMARY KEY(`record`))", - "fields": [ - { - "fieldPath": "record", - "columnName": "record", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "read", - "columnName": "read", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "record" - ], - "autoGenerate": false - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "rssStars", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`origin` TEXT NOT NULL, `sort` TEXT NOT NULL, `title` TEXT NOT NULL, `starTime` INTEGER NOT NULL, `link` TEXT NOT NULL, `pubDate` TEXT, `description` TEXT, `content` TEXT, `image` TEXT, PRIMARY KEY(`origin`, `link`))", - "fields": [ - { - "fieldPath": "origin", - "columnName": "origin", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "sort", - "columnName": "sort", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "title", - "columnName": "title", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "starTime", - "columnName": "starTime", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "link", - "columnName": "link", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "pubDate", - "columnName": "pubDate", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "description", - "columnName": "description", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "content", - "columnName": "content", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "image", - "columnName": "image", - "affinity": "TEXT", - "notNull": false - } - ], - "primaryKey": { - "columnNames": [ - "origin", - "link" - ], - "autoGenerate": false - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "txtTocRules", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER NOT NULL, `name` TEXT NOT NULL, `rule` TEXT NOT NULL, `serialNumber` INTEGER NOT NULL, `enable` INTEGER NOT NULL, PRIMARY KEY(`id`))", - "fields": [ - { - "fieldPath": "id", - "columnName": "id", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "rule", - "columnName": "rule", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "serialNumber", - "columnName": "serialNumber", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "enable", - "columnName": "enable", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "id" - ], - "autoGenerate": false - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "readRecord", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`bookName` TEXT NOT NULL, `readTime` INTEGER NOT NULL, PRIMARY KEY(`bookName`))", - "fields": [ - { - "fieldPath": "bookName", - "columnName": "bookName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "readTime", - "columnName": "readTime", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "bookName" - ], - "autoGenerate": false - }, - "indices": [], - "foreignKeys": [] - } - ], - "views": [], - "setupQueries": [ - "CREATE TABLE IF NOT EXISTS room_master_table (id INTEGER PRIMARY KEY,identity_hash TEXT)", - "INSERT OR REPLACE INTO room_master_table (id,identity_hash) VALUES(42, 'ce9320370930dec28d85e2a77fad95e2')" - ] - } -} \ No newline at end of file diff --git a/app/schemas/io.legado.app.data.AppDatabase/17.json b/app/schemas/io.legado.app.data.AppDatabase/17.json deleted file mode 100644 index f061e584e..000000000 --- a/app/schemas/io.legado.app.data.AppDatabase/17.json +++ /dev/null @@ -1,1226 +0,0 @@ -{ - "formatVersion": 1, - "database": { - "version": 17, - "identityHash": "ce9320370930dec28d85e2a77fad95e2", - "entities": [ - { - "tableName": "books", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`bookUrl` TEXT NOT NULL, `tocUrl` TEXT NOT NULL, `origin` TEXT NOT NULL, `originName` TEXT NOT NULL, `name` TEXT NOT NULL, `author` TEXT NOT NULL, `kind` TEXT, `customTag` TEXT, `coverUrl` TEXT, `customCoverUrl` TEXT, `intro` TEXT, `customIntro` TEXT, `charset` TEXT, `type` INTEGER NOT NULL, `group` INTEGER NOT NULL, `latestChapterTitle` TEXT, `latestChapterTime` INTEGER NOT NULL, `lastCheckTime` INTEGER NOT NULL, `lastCheckCount` INTEGER NOT NULL, `totalChapterNum` INTEGER NOT NULL, `durChapterTitle` TEXT, `durChapterIndex` INTEGER NOT NULL, `durChapterPos` INTEGER NOT NULL, `durChapterTime` INTEGER NOT NULL, `wordCount` TEXT, `canUpdate` INTEGER NOT NULL, `order` INTEGER NOT NULL, `originOrder` INTEGER NOT NULL, `useReplaceRule` INTEGER NOT NULL, `variable` TEXT, PRIMARY KEY(`bookUrl`))", - "fields": [ - { - "fieldPath": "bookUrl", - "columnName": "bookUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "tocUrl", - "columnName": "tocUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "origin", - "columnName": "origin", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "originName", - "columnName": "originName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "author", - "columnName": "author", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "kind", - "columnName": "kind", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "customTag", - "columnName": "customTag", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "coverUrl", - "columnName": "coverUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "customCoverUrl", - "columnName": "customCoverUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "intro", - "columnName": "intro", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "customIntro", - "columnName": "customIntro", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "charset", - "columnName": "charset", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "type", - "columnName": "type", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "group", - "columnName": "group", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "latestChapterTitle", - "columnName": "latestChapterTitle", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "latestChapterTime", - "columnName": "latestChapterTime", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "lastCheckTime", - "columnName": "lastCheckTime", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "lastCheckCount", - "columnName": "lastCheckCount", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "totalChapterNum", - "columnName": "totalChapterNum", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "durChapterTitle", - "columnName": "durChapterTitle", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "durChapterIndex", - "columnName": "durChapterIndex", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "durChapterPos", - "columnName": "durChapterPos", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "durChapterTime", - "columnName": "durChapterTime", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "wordCount", - "columnName": "wordCount", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "canUpdate", - "columnName": "canUpdate", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "order", - "columnName": "order", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "originOrder", - "columnName": "originOrder", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "useReplaceRule", - "columnName": "useReplaceRule", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "variable", - "columnName": "variable", - "affinity": "TEXT", - "notNull": false - } - ], - "primaryKey": { - "columnNames": [ - "bookUrl" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_books_name_author", - "unique": true, - "columnNames": [ - "name", - "author" - ], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_books_name_author` ON `${TABLE_NAME}` (`name`, `author`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "book_groups", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`groupId` INTEGER NOT NULL, `groupName` TEXT NOT NULL, `order` INTEGER NOT NULL, PRIMARY KEY(`groupId`))", - "fields": [ - { - "fieldPath": "groupId", - "columnName": "groupId", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "groupName", - "columnName": "groupName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "order", - "columnName": "order", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "groupId" - ], - "autoGenerate": false - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "book_sources", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`bookSourceName` TEXT NOT NULL, `bookSourceGroup` TEXT, `bookSourceUrl` TEXT NOT NULL, `bookSourceType` INTEGER NOT NULL, `bookUrlPattern` TEXT, `customOrder` INTEGER NOT NULL, `enabled` INTEGER NOT NULL, `enabledExplore` INTEGER NOT NULL, `header` TEXT, `loginUrl` TEXT, `lastUpdateTime` INTEGER NOT NULL, `weight` INTEGER NOT NULL, `exploreUrl` TEXT, `ruleExplore` TEXT, `searchUrl` TEXT, `ruleSearch` TEXT, `ruleBookInfo` TEXT, `ruleToc` TEXT, `ruleContent` TEXT, PRIMARY KEY(`bookSourceUrl`))", - "fields": [ - { - "fieldPath": "bookSourceName", - "columnName": "bookSourceName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookSourceGroup", - "columnName": "bookSourceGroup", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "bookSourceUrl", - "columnName": "bookSourceUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookSourceType", - "columnName": "bookSourceType", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "bookUrlPattern", - "columnName": "bookUrlPattern", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "customOrder", - "columnName": "customOrder", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "enabled", - "columnName": "enabled", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "enabledExplore", - "columnName": "enabledExplore", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "header", - "columnName": "header", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "loginUrl", - "columnName": "loginUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "lastUpdateTime", - "columnName": "lastUpdateTime", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "weight", - "columnName": "weight", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "exploreUrl", - "columnName": "exploreUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleExplore", - "columnName": "ruleExplore", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "searchUrl", - "columnName": "searchUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleSearch", - "columnName": "ruleSearch", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleBookInfo", - "columnName": "ruleBookInfo", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleToc", - "columnName": "ruleToc", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleContent", - "columnName": "ruleContent", - "affinity": "TEXT", - "notNull": false - } - ], - "primaryKey": { - "columnNames": [ - "bookSourceUrl" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_book_sources_bookSourceUrl", - "unique": false, - "columnNames": [ - "bookSourceUrl" - ], - "createSql": "CREATE INDEX IF NOT EXISTS `index_book_sources_bookSourceUrl` ON `${TABLE_NAME}` (`bookSourceUrl`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "chapters", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`url` TEXT NOT NULL, `title` TEXT NOT NULL, `bookUrl` TEXT NOT NULL, `index` INTEGER NOT NULL, `resourceUrl` TEXT, `tag` TEXT, `start` INTEGER, `end` INTEGER, `variable` TEXT, PRIMARY KEY(`url`, `bookUrl`), FOREIGN KEY(`bookUrl`) REFERENCES `books`(`bookUrl`) ON UPDATE NO ACTION ON DELETE CASCADE )", - "fields": [ - { - "fieldPath": "url", - "columnName": "url", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "title", - "columnName": "title", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookUrl", - "columnName": "bookUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "index", - "columnName": "index", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "resourceUrl", - "columnName": "resourceUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "tag", - "columnName": "tag", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "start", - "columnName": "start", - "affinity": "INTEGER", - "notNull": false - }, - { - "fieldPath": "end", - "columnName": "end", - "affinity": "INTEGER", - "notNull": false - }, - { - "fieldPath": "variable", - "columnName": "variable", - "affinity": "TEXT", - "notNull": false - } - ], - "primaryKey": { - "columnNames": [ - "url", - "bookUrl" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_chapters_bookUrl", - "unique": false, - "columnNames": [ - "bookUrl" - ], - "createSql": "CREATE INDEX IF NOT EXISTS `index_chapters_bookUrl` ON `${TABLE_NAME}` (`bookUrl`)" - }, - { - "name": "index_chapters_bookUrl_index", - "unique": true, - "columnNames": [ - "bookUrl", - "index" - ], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_chapters_bookUrl_index` ON `${TABLE_NAME}` (`bookUrl`, `index`)" - } - ], - "foreignKeys": [ - { - "table": "books", - "onDelete": "CASCADE", - "onUpdate": "NO ACTION", - "columns": [ - "bookUrl" - ], - "referencedColumns": [ - "bookUrl" - ] - } - ] - }, - { - "tableName": "replace_rules", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, `name` TEXT NOT NULL, `group` TEXT, `pattern` TEXT NOT NULL, `replacement` TEXT NOT NULL, `scope` TEXT, `isEnabled` INTEGER NOT NULL, `isRegex` INTEGER NOT NULL, `sortOrder` INTEGER NOT NULL)", - "fields": [ - { - "fieldPath": "id", - "columnName": "id", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "group", - "columnName": "group", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "pattern", - "columnName": "pattern", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "replacement", - "columnName": "replacement", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "scope", - "columnName": "scope", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "isEnabled", - "columnName": "isEnabled", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "isRegex", - "columnName": "isRegex", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "order", - "columnName": "sortOrder", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "id" - ], - "autoGenerate": true - }, - "indices": [ - { - "name": "index_replace_rules_id", - "unique": false, - "columnNames": [ - "id" - ], - "createSql": "CREATE INDEX IF NOT EXISTS `index_replace_rules_id` ON `${TABLE_NAME}` (`id`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "searchBooks", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`bookUrl` TEXT NOT NULL, `origin` TEXT NOT NULL, `originName` TEXT NOT NULL, `type` INTEGER NOT NULL, `name` TEXT NOT NULL, `author` TEXT NOT NULL, `kind` TEXT, `coverUrl` TEXT, `intro` TEXT, `wordCount` TEXT, `latestChapterTitle` TEXT, `tocUrl` TEXT NOT NULL, `time` INTEGER NOT NULL, `variable` TEXT, `originOrder` INTEGER NOT NULL, PRIMARY KEY(`bookUrl`), FOREIGN KEY(`origin`) REFERENCES `book_sources`(`bookSourceUrl`) ON UPDATE NO ACTION ON DELETE CASCADE )", - "fields": [ - { - "fieldPath": "bookUrl", - "columnName": "bookUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "origin", - "columnName": "origin", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "originName", - "columnName": "originName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "type", - "columnName": "type", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "author", - "columnName": "author", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "kind", - "columnName": "kind", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "coverUrl", - "columnName": "coverUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "intro", - "columnName": "intro", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "wordCount", - "columnName": "wordCount", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "latestChapterTitle", - "columnName": "latestChapterTitle", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "tocUrl", - "columnName": "tocUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "time", - "columnName": "time", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "variable", - "columnName": "variable", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "originOrder", - "columnName": "originOrder", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "bookUrl" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_searchBooks_bookUrl", - "unique": true, - "columnNames": [ - "bookUrl" - ], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_searchBooks_bookUrl` ON `${TABLE_NAME}` (`bookUrl`)" - }, - { - "name": "index_searchBooks_origin", - "unique": false, - "columnNames": [ - "origin" - ], - "createSql": "CREATE INDEX IF NOT EXISTS `index_searchBooks_origin` ON `${TABLE_NAME}` (`origin`)" - } - ], - "foreignKeys": [ - { - "table": "book_sources", - "onDelete": "CASCADE", - "onUpdate": "NO ACTION", - "columns": [ - "origin" - ], - "referencedColumns": [ - "bookSourceUrl" - ] - } - ] - }, - { - "tableName": "search_keywords", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`word` TEXT NOT NULL, `usage` INTEGER NOT NULL, `lastUseTime` INTEGER NOT NULL, PRIMARY KEY(`word`))", - "fields": [ - { - "fieldPath": "word", - "columnName": "word", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "usage", - "columnName": "usage", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "lastUseTime", - "columnName": "lastUseTime", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "word" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_search_keywords_word", - "unique": true, - "columnNames": [ - "word" - ], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_search_keywords_word` ON `${TABLE_NAME}` (`word`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "cookies", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`url` TEXT NOT NULL, `cookie` TEXT NOT NULL, PRIMARY KEY(`url`))", - "fields": [ - { - "fieldPath": "url", - "columnName": "url", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "cookie", - "columnName": "cookie", - "affinity": "TEXT", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "url" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_cookies_url", - "unique": true, - "columnNames": [ - "url" - ], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_cookies_url` ON `${TABLE_NAME}` (`url`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "rssSources", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`sourceUrl` TEXT NOT NULL, `sourceName` TEXT NOT NULL, `sourceIcon` TEXT NOT NULL, `sourceGroup` TEXT, `enabled` INTEGER NOT NULL, `sortUrl` TEXT, `articleStyle` INTEGER NOT NULL, `ruleArticles` TEXT, `ruleNextPage` TEXT, `ruleTitle` TEXT, `rulePubDate` TEXT, `ruleDescription` TEXT, `ruleImage` TEXT, `ruleLink` TEXT, `ruleContent` TEXT, `style` TEXT, `header` TEXT, `enableJs` INTEGER NOT NULL, `loadWithBaseUrl` INTEGER NOT NULL, `customOrder` INTEGER NOT NULL, PRIMARY KEY(`sourceUrl`))", - "fields": [ - { - "fieldPath": "sourceUrl", - "columnName": "sourceUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "sourceName", - "columnName": "sourceName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "sourceIcon", - "columnName": "sourceIcon", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "sourceGroup", - "columnName": "sourceGroup", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "enabled", - "columnName": "enabled", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "sortUrl", - "columnName": "sortUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "articleStyle", - "columnName": "articleStyle", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "ruleArticles", - "columnName": "ruleArticles", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleNextPage", - "columnName": "ruleNextPage", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleTitle", - "columnName": "ruleTitle", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "rulePubDate", - "columnName": "rulePubDate", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleDescription", - "columnName": "ruleDescription", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleImage", - "columnName": "ruleImage", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleLink", - "columnName": "ruleLink", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleContent", - "columnName": "ruleContent", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "style", - "columnName": "style", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "header", - "columnName": "header", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "enableJs", - "columnName": "enableJs", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "loadWithBaseUrl", - "columnName": "loadWithBaseUrl", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "customOrder", - "columnName": "customOrder", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "sourceUrl" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_rssSources_sourceUrl", - "unique": false, - "columnNames": [ - "sourceUrl" - ], - "createSql": "CREATE INDEX IF NOT EXISTS `index_rssSources_sourceUrl` ON `${TABLE_NAME}` (`sourceUrl`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "bookmarks", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`time` INTEGER NOT NULL, `bookUrl` TEXT NOT NULL, `bookName` TEXT NOT NULL, `bookAuthor` TEXT NOT NULL, `chapterIndex` INTEGER NOT NULL, `pageIndex` INTEGER NOT NULL, `chapterName` TEXT NOT NULL, `content` TEXT NOT NULL, PRIMARY KEY(`time`))", - "fields": [ - { - "fieldPath": "time", - "columnName": "time", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "bookUrl", - "columnName": "bookUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookName", - "columnName": "bookName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookAuthor", - "columnName": "bookAuthor", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "chapterIndex", - "columnName": "chapterIndex", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "pageIndex", - "columnName": "pageIndex", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "chapterName", - "columnName": "chapterName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "content", - "columnName": "content", - "affinity": "TEXT", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "time" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_bookmarks_time", - "unique": true, - "columnNames": [ - "time" - ], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_bookmarks_time` ON `${TABLE_NAME}` (`time`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "rssArticles", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`origin` TEXT NOT NULL, `sort` TEXT NOT NULL, `title` TEXT NOT NULL, `order` INTEGER NOT NULL, `link` TEXT NOT NULL, `pubDate` TEXT, `description` TEXT, `content` TEXT, `image` TEXT, `read` INTEGER NOT NULL, PRIMARY KEY(`origin`, `link`))", - "fields": [ - { - "fieldPath": "origin", - "columnName": "origin", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "sort", - "columnName": "sort", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "title", - "columnName": "title", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "order", - "columnName": "order", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "link", - "columnName": "link", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "pubDate", - "columnName": "pubDate", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "description", - "columnName": "description", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "content", - "columnName": "content", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "image", - "columnName": "image", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "read", - "columnName": "read", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "origin", - "link" - ], - "autoGenerate": false - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "rssReadRecords", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`record` TEXT NOT NULL, `read` INTEGER NOT NULL, PRIMARY KEY(`record`))", - "fields": [ - { - "fieldPath": "record", - "columnName": "record", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "read", - "columnName": "read", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "record" - ], - "autoGenerate": false - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "rssStars", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`origin` TEXT NOT NULL, `sort` TEXT NOT NULL, `title` TEXT NOT NULL, `starTime` INTEGER NOT NULL, `link` TEXT NOT NULL, `pubDate` TEXT, `description` TEXT, `content` TEXT, `image` TEXT, PRIMARY KEY(`origin`, `link`))", - "fields": [ - { - "fieldPath": "origin", - "columnName": "origin", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "sort", - "columnName": "sort", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "title", - "columnName": "title", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "starTime", - "columnName": "starTime", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "link", - "columnName": "link", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "pubDate", - "columnName": "pubDate", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "description", - "columnName": "description", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "content", - "columnName": "content", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "image", - "columnName": "image", - "affinity": "TEXT", - "notNull": false - } - ], - "primaryKey": { - "columnNames": [ - "origin", - "link" - ], - "autoGenerate": false - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "txtTocRules", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER NOT NULL, `name` TEXT NOT NULL, `rule` TEXT NOT NULL, `serialNumber` INTEGER NOT NULL, `enable` INTEGER NOT NULL, PRIMARY KEY(`id`))", - "fields": [ - { - "fieldPath": "id", - "columnName": "id", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "rule", - "columnName": "rule", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "serialNumber", - "columnName": "serialNumber", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "enable", - "columnName": "enable", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "id" - ], - "autoGenerate": false - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "readRecord", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`bookName` TEXT NOT NULL, `readTime` INTEGER NOT NULL, PRIMARY KEY(`bookName`))", - "fields": [ - { - "fieldPath": "bookName", - "columnName": "bookName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "readTime", - "columnName": "readTime", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "bookName" - ], - "autoGenerate": false - }, - "indices": [], - "foreignKeys": [] - } - ], - "views": [], - "setupQueries": [ - "CREATE TABLE IF NOT EXISTS room_master_table (id INTEGER PRIMARY KEY,identity_hash TEXT)", - "INSERT OR REPLACE INTO room_master_table (id,identity_hash) VALUES(42, 'ce9320370930dec28d85e2a77fad95e2')" - ] - } -} \ No newline at end of file diff --git a/app/schemas/io.legado.app.data.AppDatabase/18.json b/app/schemas/io.legado.app.data.AppDatabase/18.json deleted file mode 100644 index 2ba39a806..000000000 --- a/app/schemas/io.legado.app.data.AppDatabase/18.json +++ /dev/null @@ -1,1258 +0,0 @@ -{ - "formatVersion": 1, - "database": { - "version": 18, - "identityHash": "ec3badfc86fb8187260ab26fb78a2d3f", - "entities": [ - { - "tableName": "books", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`bookUrl` TEXT NOT NULL, `tocUrl` TEXT NOT NULL, `origin` TEXT NOT NULL, `originName` TEXT NOT NULL, `name` TEXT NOT NULL, `author` TEXT NOT NULL, `kind` TEXT, `customTag` TEXT, `coverUrl` TEXT, `customCoverUrl` TEXT, `intro` TEXT, `customIntro` TEXT, `charset` TEXT, `type` INTEGER NOT NULL, `group` INTEGER NOT NULL, `latestChapterTitle` TEXT, `latestChapterTime` INTEGER NOT NULL, `lastCheckTime` INTEGER NOT NULL, `lastCheckCount` INTEGER NOT NULL, `totalChapterNum` INTEGER NOT NULL, `durChapterTitle` TEXT, `durChapterIndex` INTEGER NOT NULL, `durChapterPos` INTEGER NOT NULL, `durChapterTime` INTEGER NOT NULL, `wordCount` TEXT, `canUpdate` INTEGER NOT NULL, `order` INTEGER NOT NULL, `originOrder` INTEGER NOT NULL, `useReplaceRule` INTEGER NOT NULL, `variable` TEXT, PRIMARY KEY(`bookUrl`))", - "fields": [ - { - "fieldPath": "bookUrl", - "columnName": "bookUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "tocUrl", - "columnName": "tocUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "origin", - "columnName": "origin", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "originName", - "columnName": "originName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "author", - "columnName": "author", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "kind", - "columnName": "kind", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "customTag", - "columnName": "customTag", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "coverUrl", - "columnName": "coverUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "customCoverUrl", - "columnName": "customCoverUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "intro", - "columnName": "intro", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "customIntro", - "columnName": "customIntro", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "charset", - "columnName": "charset", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "type", - "columnName": "type", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "group", - "columnName": "group", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "latestChapterTitle", - "columnName": "latestChapterTitle", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "latestChapterTime", - "columnName": "latestChapterTime", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "lastCheckTime", - "columnName": "lastCheckTime", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "lastCheckCount", - "columnName": "lastCheckCount", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "totalChapterNum", - "columnName": "totalChapterNum", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "durChapterTitle", - "columnName": "durChapterTitle", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "durChapterIndex", - "columnName": "durChapterIndex", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "durChapterPos", - "columnName": "durChapterPos", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "durChapterTime", - "columnName": "durChapterTime", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "wordCount", - "columnName": "wordCount", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "canUpdate", - "columnName": "canUpdate", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "order", - "columnName": "order", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "originOrder", - "columnName": "originOrder", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "useReplaceRule", - "columnName": "useReplaceRule", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "variable", - "columnName": "variable", - "affinity": "TEXT", - "notNull": false - } - ], - "primaryKey": { - "columnNames": [ - "bookUrl" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_books_name_author", - "unique": true, - "columnNames": [ - "name", - "author" - ], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_books_name_author` ON `${TABLE_NAME}` (`name`, `author`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "book_groups", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`groupId` INTEGER NOT NULL, `groupName` TEXT NOT NULL, `order` INTEGER NOT NULL, PRIMARY KEY(`groupId`))", - "fields": [ - { - "fieldPath": "groupId", - "columnName": "groupId", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "groupName", - "columnName": "groupName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "order", - "columnName": "order", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "groupId" - ], - "autoGenerate": false - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "book_sources", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`bookSourceName` TEXT NOT NULL, `bookSourceGroup` TEXT, `bookSourceUrl` TEXT NOT NULL, `bookSourceType` INTEGER NOT NULL, `bookUrlPattern` TEXT, `customOrder` INTEGER NOT NULL, `enabled` INTEGER NOT NULL, `enabledExplore` INTEGER NOT NULL, `header` TEXT, `loginUrl` TEXT, `lastUpdateTime` INTEGER NOT NULL, `weight` INTEGER NOT NULL, `exploreUrl` TEXT, `ruleExplore` TEXT, `searchUrl` TEXT, `ruleSearch` TEXT, `ruleBookInfo` TEXT, `ruleToc` TEXT, `ruleContent` TEXT, PRIMARY KEY(`bookSourceUrl`))", - "fields": [ - { - "fieldPath": "bookSourceName", - "columnName": "bookSourceName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookSourceGroup", - "columnName": "bookSourceGroup", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "bookSourceUrl", - "columnName": "bookSourceUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookSourceType", - "columnName": "bookSourceType", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "bookUrlPattern", - "columnName": "bookUrlPattern", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "customOrder", - "columnName": "customOrder", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "enabled", - "columnName": "enabled", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "enabledExplore", - "columnName": "enabledExplore", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "header", - "columnName": "header", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "loginUrl", - "columnName": "loginUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "lastUpdateTime", - "columnName": "lastUpdateTime", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "weight", - "columnName": "weight", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "exploreUrl", - "columnName": "exploreUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleExplore", - "columnName": "ruleExplore", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "searchUrl", - "columnName": "searchUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleSearch", - "columnName": "ruleSearch", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleBookInfo", - "columnName": "ruleBookInfo", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleToc", - "columnName": "ruleToc", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleContent", - "columnName": "ruleContent", - "affinity": "TEXT", - "notNull": false - } - ], - "primaryKey": { - "columnNames": [ - "bookSourceUrl" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_book_sources_bookSourceUrl", - "unique": false, - "columnNames": [ - "bookSourceUrl" - ], - "createSql": "CREATE INDEX IF NOT EXISTS `index_book_sources_bookSourceUrl` ON `${TABLE_NAME}` (`bookSourceUrl`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "chapters", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`url` TEXT NOT NULL, `title` TEXT NOT NULL, `bookUrl` TEXT NOT NULL, `index` INTEGER NOT NULL, `resourceUrl` TEXT, `tag` TEXT, `start` INTEGER, `end` INTEGER, `variable` TEXT, PRIMARY KEY(`url`, `bookUrl`), FOREIGN KEY(`bookUrl`) REFERENCES `books`(`bookUrl`) ON UPDATE NO ACTION ON DELETE CASCADE )", - "fields": [ - { - "fieldPath": "url", - "columnName": "url", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "title", - "columnName": "title", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookUrl", - "columnName": "bookUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "index", - "columnName": "index", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "resourceUrl", - "columnName": "resourceUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "tag", - "columnName": "tag", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "start", - "columnName": "start", - "affinity": "INTEGER", - "notNull": false - }, - { - "fieldPath": "end", - "columnName": "end", - "affinity": "INTEGER", - "notNull": false - }, - { - "fieldPath": "variable", - "columnName": "variable", - "affinity": "TEXT", - "notNull": false - } - ], - "primaryKey": { - "columnNames": [ - "url", - "bookUrl" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_chapters_bookUrl", - "unique": false, - "columnNames": [ - "bookUrl" - ], - "createSql": "CREATE INDEX IF NOT EXISTS `index_chapters_bookUrl` ON `${TABLE_NAME}` (`bookUrl`)" - }, - { - "name": "index_chapters_bookUrl_index", - "unique": true, - "columnNames": [ - "bookUrl", - "index" - ], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_chapters_bookUrl_index` ON `${TABLE_NAME}` (`bookUrl`, `index`)" - } - ], - "foreignKeys": [ - { - "table": "books", - "onDelete": "CASCADE", - "onUpdate": "NO ACTION", - "columns": [ - "bookUrl" - ], - "referencedColumns": [ - "bookUrl" - ] - } - ] - }, - { - "tableName": "replace_rules", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, `name` TEXT NOT NULL, `group` TEXT, `pattern` TEXT NOT NULL, `replacement` TEXT NOT NULL, `scope` TEXT, `isEnabled` INTEGER NOT NULL, `isRegex` INTEGER NOT NULL, `sortOrder` INTEGER NOT NULL)", - "fields": [ - { - "fieldPath": "id", - "columnName": "id", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "group", - "columnName": "group", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "pattern", - "columnName": "pattern", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "replacement", - "columnName": "replacement", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "scope", - "columnName": "scope", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "isEnabled", - "columnName": "isEnabled", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "isRegex", - "columnName": "isRegex", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "order", - "columnName": "sortOrder", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "id" - ], - "autoGenerate": true - }, - "indices": [ - { - "name": "index_replace_rules_id", - "unique": false, - "columnNames": [ - "id" - ], - "createSql": "CREATE INDEX IF NOT EXISTS `index_replace_rules_id` ON `${TABLE_NAME}` (`id`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "searchBooks", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`bookUrl` TEXT NOT NULL, `origin` TEXT NOT NULL, `originName` TEXT NOT NULL, `type` INTEGER NOT NULL, `name` TEXT NOT NULL, `author` TEXT NOT NULL, `kind` TEXT, `coverUrl` TEXT, `intro` TEXT, `wordCount` TEXT, `latestChapterTitle` TEXT, `tocUrl` TEXT NOT NULL, `time` INTEGER NOT NULL, `variable` TEXT, `originOrder` INTEGER NOT NULL, PRIMARY KEY(`bookUrl`), FOREIGN KEY(`origin`) REFERENCES `book_sources`(`bookSourceUrl`) ON UPDATE NO ACTION ON DELETE CASCADE )", - "fields": [ - { - "fieldPath": "bookUrl", - "columnName": "bookUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "origin", - "columnName": "origin", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "originName", - "columnName": "originName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "type", - "columnName": "type", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "author", - "columnName": "author", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "kind", - "columnName": "kind", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "coverUrl", - "columnName": "coverUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "intro", - "columnName": "intro", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "wordCount", - "columnName": "wordCount", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "latestChapterTitle", - "columnName": "latestChapterTitle", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "tocUrl", - "columnName": "tocUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "time", - "columnName": "time", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "variable", - "columnName": "variable", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "originOrder", - "columnName": "originOrder", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "bookUrl" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_searchBooks_bookUrl", - "unique": true, - "columnNames": [ - "bookUrl" - ], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_searchBooks_bookUrl` ON `${TABLE_NAME}` (`bookUrl`)" - }, - { - "name": "index_searchBooks_origin", - "unique": false, - "columnNames": [ - "origin" - ], - "createSql": "CREATE INDEX IF NOT EXISTS `index_searchBooks_origin` ON `${TABLE_NAME}` (`origin`)" - } - ], - "foreignKeys": [ - { - "table": "book_sources", - "onDelete": "CASCADE", - "onUpdate": "NO ACTION", - "columns": [ - "origin" - ], - "referencedColumns": [ - "bookSourceUrl" - ] - } - ] - }, - { - "tableName": "search_keywords", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`word` TEXT NOT NULL, `usage` INTEGER NOT NULL, `lastUseTime` INTEGER NOT NULL, PRIMARY KEY(`word`))", - "fields": [ - { - "fieldPath": "word", - "columnName": "word", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "usage", - "columnName": "usage", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "lastUseTime", - "columnName": "lastUseTime", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "word" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_search_keywords_word", - "unique": true, - "columnNames": [ - "word" - ], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_search_keywords_word` ON `${TABLE_NAME}` (`word`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "cookies", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`url` TEXT NOT NULL, `cookie` TEXT NOT NULL, PRIMARY KEY(`url`))", - "fields": [ - { - "fieldPath": "url", - "columnName": "url", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "cookie", - "columnName": "cookie", - "affinity": "TEXT", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "url" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_cookies_url", - "unique": true, - "columnNames": [ - "url" - ], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_cookies_url` ON `${TABLE_NAME}` (`url`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "rssSources", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`sourceUrl` TEXT NOT NULL, `sourceName` TEXT NOT NULL, `sourceIcon` TEXT NOT NULL, `sourceGroup` TEXT, `enabled` INTEGER NOT NULL, `sortUrl` TEXT, `articleStyle` INTEGER NOT NULL, `ruleArticles` TEXT, `ruleNextPage` TEXT, `ruleTitle` TEXT, `rulePubDate` TEXT, `ruleDescription` TEXT, `ruleImage` TEXT, `ruleLink` TEXT, `ruleContent` TEXT, `style` TEXT, `header` TEXT, `enableJs` INTEGER NOT NULL, `loadWithBaseUrl` INTEGER NOT NULL, `customOrder` INTEGER NOT NULL, PRIMARY KEY(`sourceUrl`))", - "fields": [ - { - "fieldPath": "sourceUrl", - "columnName": "sourceUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "sourceName", - "columnName": "sourceName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "sourceIcon", - "columnName": "sourceIcon", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "sourceGroup", - "columnName": "sourceGroup", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "enabled", - "columnName": "enabled", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "sortUrl", - "columnName": "sortUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "articleStyle", - "columnName": "articleStyle", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "ruleArticles", - "columnName": "ruleArticles", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleNextPage", - "columnName": "ruleNextPage", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleTitle", - "columnName": "ruleTitle", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "rulePubDate", - "columnName": "rulePubDate", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleDescription", - "columnName": "ruleDescription", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleImage", - "columnName": "ruleImage", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleLink", - "columnName": "ruleLink", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleContent", - "columnName": "ruleContent", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "style", - "columnName": "style", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "header", - "columnName": "header", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "enableJs", - "columnName": "enableJs", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "loadWithBaseUrl", - "columnName": "loadWithBaseUrl", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "customOrder", - "columnName": "customOrder", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "sourceUrl" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_rssSources_sourceUrl", - "unique": false, - "columnNames": [ - "sourceUrl" - ], - "createSql": "CREATE INDEX IF NOT EXISTS `index_rssSources_sourceUrl` ON `${TABLE_NAME}` (`sourceUrl`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "bookmarks", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`time` INTEGER NOT NULL, `bookUrl` TEXT NOT NULL, `bookName` TEXT NOT NULL, `bookAuthor` TEXT NOT NULL, `chapterIndex` INTEGER NOT NULL, `pageIndex` INTEGER NOT NULL, `chapterName` TEXT NOT NULL, `content` TEXT NOT NULL, PRIMARY KEY(`time`))", - "fields": [ - { - "fieldPath": "time", - "columnName": "time", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "bookUrl", - "columnName": "bookUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookName", - "columnName": "bookName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookAuthor", - "columnName": "bookAuthor", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "chapterIndex", - "columnName": "chapterIndex", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "pageIndex", - "columnName": "pageIndex", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "chapterName", - "columnName": "chapterName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "content", - "columnName": "content", - "affinity": "TEXT", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "time" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_bookmarks_time", - "unique": true, - "columnNames": [ - "time" - ], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_bookmarks_time` ON `${TABLE_NAME}` (`time`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "rssArticles", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`origin` TEXT NOT NULL, `sort` TEXT NOT NULL, `title` TEXT NOT NULL, `order` INTEGER NOT NULL, `link` TEXT NOT NULL, `pubDate` TEXT, `description` TEXT, `content` TEXT, `image` TEXT, `read` INTEGER NOT NULL, PRIMARY KEY(`origin`, `link`))", - "fields": [ - { - "fieldPath": "origin", - "columnName": "origin", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "sort", - "columnName": "sort", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "title", - "columnName": "title", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "order", - "columnName": "order", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "link", - "columnName": "link", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "pubDate", - "columnName": "pubDate", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "description", - "columnName": "description", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "content", - "columnName": "content", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "image", - "columnName": "image", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "read", - "columnName": "read", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "origin", - "link" - ], - "autoGenerate": false - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "rssReadRecords", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`record` TEXT NOT NULL, `read` INTEGER NOT NULL, PRIMARY KEY(`record`))", - "fields": [ - { - "fieldPath": "record", - "columnName": "record", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "read", - "columnName": "read", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "record" - ], - "autoGenerate": false - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "rssStars", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`origin` TEXT NOT NULL, `sort` TEXT NOT NULL, `title` TEXT NOT NULL, `starTime` INTEGER NOT NULL, `link` TEXT NOT NULL, `pubDate` TEXT, `description` TEXT, `content` TEXT, `image` TEXT, PRIMARY KEY(`origin`, `link`))", - "fields": [ - { - "fieldPath": "origin", - "columnName": "origin", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "sort", - "columnName": "sort", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "title", - "columnName": "title", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "starTime", - "columnName": "starTime", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "link", - "columnName": "link", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "pubDate", - "columnName": "pubDate", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "description", - "columnName": "description", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "content", - "columnName": "content", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "image", - "columnName": "image", - "affinity": "TEXT", - "notNull": false - } - ], - "primaryKey": { - "columnNames": [ - "origin", - "link" - ], - "autoGenerate": false - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "txtTocRules", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER NOT NULL, `name` TEXT NOT NULL, `rule` TEXT NOT NULL, `serialNumber` INTEGER NOT NULL, `enable` INTEGER NOT NULL, PRIMARY KEY(`id`))", - "fields": [ - { - "fieldPath": "id", - "columnName": "id", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "rule", - "columnName": "rule", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "serialNumber", - "columnName": "serialNumber", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "enable", - "columnName": "enable", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "id" - ], - "autoGenerate": false - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "readRecord", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`bookName` TEXT NOT NULL, `readTime` INTEGER NOT NULL, PRIMARY KEY(`bookName`))", - "fields": [ - { - "fieldPath": "bookName", - "columnName": "bookName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "readTime", - "columnName": "readTime", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "bookName" - ], - "autoGenerate": false - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "httpTTS", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER NOT NULL, `name` TEXT NOT NULL, `url` TEXT NOT NULL, PRIMARY KEY(`id`))", - "fields": [ - { - "fieldPath": "id", - "columnName": "id", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "url", - "columnName": "url", - "affinity": "TEXT", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "id" - ], - "autoGenerate": false - }, - "indices": [], - "foreignKeys": [] - } - ], - "views": [], - "setupQueries": [ - "CREATE TABLE IF NOT EXISTS room_master_table (id INTEGER PRIMARY KEY,identity_hash TEXT)", - "INSERT OR REPLACE INTO room_master_table (id,identity_hash) VALUES(42, 'ec3badfc86fb8187260ab26fb78a2d3f')" - ] - } -} \ No newline at end of file diff --git a/app/schemas/io.legado.app.data.AppDatabase/19.json b/app/schemas/io.legado.app.data.AppDatabase/19.json deleted file mode 100644 index bb5a0bb0f..000000000 --- a/app/schemas/io.legado.app.data.AppDatabase/19.json +++ /dev/null @@ -1,1265 +0,0 @@ -{ - "formatVersion": 1, - "database": { - "version": 19, - "identityHash": "c58916ed4a4aece6092e21acf99845a1", - "entities": [ - { - "tableName": "books", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`bookUrl` TEXT NOT NULL, `tocUrl` TEXT NOT NULL, `origin` TEXT NOT NULL, `originName` TEXT NOT NULL, `name` TEXT NOT NULL, `author` TEXT NOT NULL, `kind` TEXT, `customTag` TEXT, `coverUrl` TEXT, `customCoverUrl` TEXT, `intro` TEXT, `customIntro` TEXT, `charset` TEXT, `type` INTEGER NOT NULL, `group` INTEGER NOT NULL, `latestChapterTitle` TEXT, `latestChapterTime` INTEGER NOT NULL, `lastCheckTime` INTEGER NOT NULL, `lastCheckCount` INTEGER NOT NULL, `totalChapterNum` INTEGER NOT NULL, `durChapterTitle` TEXT, `durChapterIndex` INTEGER NOT NULL, `durChapterPos` INTEGER NOT NULL, `durChapterTime` INTEGER NOT NULL, `wordCount` TEXT, `canUpdate` INTEGER NOT NULL, `order` INTEGER NOT NULL, `originOrder` INTEGER NOT NULL, `useReplaceRule` INTEGER NOT NULL, `variable` TEXT, PRIMARY KEY(`bookUrl`))", - "fields": [ - { - "fieldPath": "bookUrl", - "columnName": "bookUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "tocUrl", - "columnName": "tocUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "origin", - "columnName": "origin", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "originName", - "columnName": "originName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "author", - "columnName": "author", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "kind", - "columnName": "kind", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "customTag", - "columnName": "customTag", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "coverUrl", - "columnName": "coverUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "customCoverUrl", - "columnName": "customCoverUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "intro", - "columnName": "intro", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "customIntro", - "columnName": "customIntro", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "charset", - "columnName": "charset", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "type", - "columnName": "type", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "group", - "columnName": "group", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "latestChapterTitle", - "columnName": "latestChapterTitle", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "latestChapterTime", - "columnName": "latestChapterTime", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "lastCheckTime", - "columnName": "lastCheckTime", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "lastCheckCount", - "columnName": "lastCheckCount", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "totalChapterNum", - "columnName": "totalChapterNum", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "durChapterTitle", - "columnName": "durChapterTitle", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "durChapterIndex", - "columnName": "durChapterIndex", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "durChapterPos", - "columnName": "durChapterPos", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "durChapterTime", - "columnName": "durChapterTime", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "wordCount", - "columnName": "wordCount", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "canUpdate", - "columnName": "canUpdate", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "order", - "columnName": "order", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "originOrder", - "columnName": "originOrder", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "useReplaceRule", - "columnName": "useReplaceRule", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "variable", - "columnName": "variable", - "affinity": "TEXT", - "notNull": false - } - ], - "primaryKey": { - "columnNames": [ - "bookUrl" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_books_name_author", - "unique": true, - "columnNames": [ - "name", - "author" - ], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_books_name_author` ON `${TABLE_NAME}` (`name`, `author`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "book_groups", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`groupId` INTEGER NOT NULL, `groupName` TEXT NOT NULL, `order` INTEGER NOT NULL, PRIMARY KEY(`groupId`))", - "fields": [ - { - "fieldPath": "groupId", - "columnName": "groupId", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "groupName", - "columnName": "groupName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "order", - "columnName": "order", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "groupId" - ], - "autoGenerate": false - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "book_sources", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`bookSourceName` TEXT NOT NULL, `bookSourceGroup` TEXT, `bookSourceUrl` TEXT NOT NULL, `bookSourceType` INTEGER NOT NULL, `bookUrlPattern` TEXT, `customOrder` INTEGER NOT NULL, `enabled` INTEGER NOT NULL, `enabledExplore` INTEGER NOT NULL, `header` TEXT, `loginUrl` TEXT, `lastUpdateTime` INTEGER NOT NULL, `weight` INTEGER NOT NULL, `exploreUrl` TEXT, `ruleExplore` TEXT, `searchUrl` TEXT, `ruleSearch` TEXT, `ruleBookInfo` TEXT, `ruleToc` TEXT, `ruleContent` TEXT, PRIMARY KEY(`bookSourceUrl`))", - "fields": [ - { - "fieldPath": "bookSourceName", - "columnName": "bookSourceName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookSourceGroup", - "columnName": "bookSourceGroup", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "bookSourceUrl", - "columnName": "bookSourceUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookSourceType", - "columnName": "bookSourceType", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "bookUrlPattern", - "columnName": "bookUrlPattern", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "customOrder", - "columnName": "customOrder", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "enabled", - "columnName": "enabled", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "enabledExplore", - "columnName": "enabledExplore", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "header", - "columnName": "header", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "loginUrl", - "columnName": "loginUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "lastUpdateTime", - "columnName": "lastUpdateTime", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "weight", - "columnName": "weight", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "exploreUrl", - "columnName": "exploreUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleExplore", - "columnName": "ruleExplore", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "searchUrl", - "columnName": "searchUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleSearch", - "columnName": "ruleSearch", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleBookInfo", - "columnName": "ruleBookInfo", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleToc", - "columnName": "ruleToc", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleContent", - "columnName": "ruleContent", - "affinity": "TEXT", - "notNull": false - } - ], - "primaryKey": { - "columnNames": [ - "bookSourceUrl" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_book_sources_bookSourceUrl", - "unique": false, - "columnNames": [ - "bookSourceUrl" - ], - "createSql": "CREATE INDEX IF NOT EXISTS `index_book_sources_bookSourceUrl` ON `${TABLE_NAME}` (`bookSourceUrl`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "chapters", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`url` TEXT NOT NULL, `title` TEXT NOT NULL, `bookUrl` TEXT NOT NULL, `index` INTEGER NOT NULL, `resourceUrl` TEXT, `tag` TEXT, `start` INTEGER, `end` INTEGER, `variable` TEXT, PRIMARY KEY(`url`, `bookUrl`), FOREIGN KEY(`bookUrl`) REFERENCES `books`(`bookUrl`) ON UPDATE NO ACTION ON DELETE CASCADE )", - "fields": [ - { - "fieldPath": "url", - "columnName": "url", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "title", - "columnName": "title", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookUrl", - "columnName": "bookUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "index", - "columnName": "index", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "resourceUrl", - "columnName": "resourceUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "tag", - "columnName": "tag", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "start", - "columnName": "start", - "affinity": "INTEGER", - "notNull": false - }, - { - "fieldPath": "end", - "columnName": "end", - "affinity": "INTEGER", - "notNull": false - }, - { - "fieldPath": "variable", - "columnName": "variable", - "affinity": "TEXT", - "notNull": false - } - ], - "primaryKey": { - "columnNames": [ - "url", - "bookUrl" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_chapters_bookUrl", - "unique": false, - "columnNames": [ - "bookUrl" - ], - "createSql": "CREATE INDEX IF NOT EXISTS `index_chapters_bookUrl` ON `${TABLE_NAME}` (`bookUrl`)" - }, - { - "name": "index_chapters_bookUrl_index", - "unique": true, - "columnNames": [ - "bookUrl", - "index" - ], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_chapters_bookUrl_index` ON `${TABLE_NAME}` (`bookUrl`, `index`)" - } - ], - "foreignKeys": [ - { - "table": "books", - "onDelete": "CASCADE", - "onUpdate": "NO ACTION", - "columns": [ - "bookUrl" - ], - "referencedColumns": [ - "bookUrl" - ] - } - ] - }, - { - "tableName": "replace_rules", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, `name` TEXT NOT NULL, `group` TEXT, `pattern` TEXT NOT NULL, `replacement` TEXT NOT NULL, `scope` TEXT, `isEnabled` INTEGER NOT NULL, `isRegex` INTEGER NOT NULL, `sortOrder` INTEGER NOT NULL)", - "fields": [ - { - "fieldPath": "id", - "columnName": "id", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "group", - "columnName": "group", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "pattern", - "columnName": "pattern", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "replacement", - "columnName": "replacement", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "scope", - "columnName": "scope", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "isEnabled", - "columnName": "isEnabled", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "isRegex", - "columnName": "isRegex", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "order", - "columnName": "sortOrder", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "id" - ], - "autoGenerate": true - }, - "indices": [ - { - "name": "index_replace_rules_id", - "unique": false, - "columnNames": [ - "id" - ], - "createSql": "CREATE INDEX IF NOT EXISTS `index_replace_rules_id` ON `${TABLE_NAME}` (`id`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "searchBooks", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`bookUrl` TEXT NOT NULL, `origin` TEXT NOT NULL, `originName` TEXT NOT NULL, `type` INTEGER NOT NULL, `name` TEXT NOT NULL, `author` TEXT NOT NULL, `kind` TEXT, `coverUrl` TEXT, `intro` TEXT, `wordCount` TEXT, `latestChapterTitle` TEXT, `tocUrl` TEXT NOT NULL, `time` INTEGER NOT NULL, `variable` TEXT, `originOrder` INTEGER NOT NULL, PRIMARY KEY(`bookUrl`), FOREIGN KEY(`origin`) REFERENCES `book_sources`(`bookSourceUrl`) ON UPDATE NO ACTION ON DELETE CASCADE )", - "fields": [ - { - "fieldPath": "bookUrl", - "columnName": "bookUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "origin", - "columnName": "origin", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "originName", - "columnName": "originName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "type", - "columnName": "type", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "author", - "columnName": "author", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "kind", - "columnName": "kind", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "coverUrl", - "columnName": "coverUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "intro", - "columnName": "intro", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "wordCount", - "columnName": "wordCount", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "latestChapterTitle", - "columnName": "latestChapterTitle", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "tocUrl", - "columnName": "tocUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "time", - "columnName": "time", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "variable", - "columnName": "variable", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "originOrder", - "columnName": "originOrder", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "bookUrl" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_searchBooks_bookUrl", - "unique": true, - "columnNames": [ - "bookUrl" - ], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_searchBooks_bookUrl` ON `${TABLE_NAME}` (`bookUrl`)" - }, - { - "name": "index_searchBooks_origin", - "unique": false, - "columnNames": [ - "origin" - ], - "createSql": "CREATE INDEX IF NOT EXISTS `index_searchBooks_origin` ON `${TABLE_NAME}` (`origin`)" - } - ], - "foreignKeys": [ - { - "table": "book_sources", - "onDelete": "CASCADE", - "onUpdate": "NO ACTION", - "columns": [ - "origin" - ], - "referencedColumns": [ - "bookSourceUrl" - ] - } - ] - }, - { - "tableName": "search_keywords", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`word` TEXT NOT NULL, `usage` INTEGER NOT NULL, `lastUseTime` INTEGER NOT NULL, PRIMARY KEY(`word`))", - "fields": [ - { - "fieldPath": "word", - "columnName": "word", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "usage", - "columnName": "usage", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "lastUseTime", - "columnName": "lastUseTime", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "word" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_search_keywords_word", - "unique": true, - "columnNames": [ - "word" - ], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_search_keywords_word` ON `${TABLE_NAME}` (`word`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "cookies", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`url` TEXT NOT NULL, `cookie` TEXT NOT NULL, PRIMARY KEY(`url`))", - "fields": [ - { - "fieldPath": "url", - "columnName": "url", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "cookie", - "columnName": "cookie", - "affinity": "TEXT", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "url" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_cookies_url", - "unique": true, - "columnNames": [ - "url" - ], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_cookies_url` ON `${TABLE_NAME}` (`url`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "rssSources", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`sourceUrl` TEXT NOT NULL, `sourceName` TEXT NOT NULL, `sourceIcon` TEXT NOT NULL, `sourceGroup` TEXT, `enabled` INTEGER NOT NULL, `sortUrl` TEXT, `articleStyle` INTEGER NOT NULL, `ruleArticles` TEXT, `ruleNextPage` TEXT, `ruleTitle` TEXT, `rulePubDate` TEXT, `ruleDescription` TEXT, `ruleImage` TEXT, `ruleLink` TEXT, `ruleContent` TEXT, `style` TEXT, `header` TEXT, `enableJs` INTEGER NOT NULL, `loadWithBaseUrl` INTEGER NOT NULL, `customOrder` INTEGER NOT NULL, PRIMARY KEY(`sourceUrl`))", - "fields": [ - { - "fieldPath": "sourceUrl", - "columnName": "sourceUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "sourceName", - "columnName": "sourceName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "sourceIcon", - "columnName": "sourceIcon", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "sourceGroup", - "columnName": "sourceGroup", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "enabled", - "columnName": "enabled", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "sortUrl", - "columnName": "sortUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "articleStyle", - "columnName": "articleStyle", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "ruleArticles", - "columnName": "ruleArticles", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleNextPage", - "columnName": "ruleNextPage", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleTitle", - "columnName": "ruleTitle", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "rulePubDate", - "columnName": "rulePubDate", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleDescription", - "columnName": "ruleDescription", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleImage", - "columnName": "ruleImage", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleLink", - "columnName": "ruleLink", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleContent", - "columnName": "ruleContent", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "style", - "columnName": "style", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "header", - "columnName": "header", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "enableJs", - "columnName": "enableJs", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "loadWithBaseUrl", - "columnName": "loadWithBaseUrl", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "customOrder", - "columnName": "customOrder", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "sourceUrl" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_rssSources_sourceUrl", - "unique": false, - "columnNames": [ - "sourceUrl" - ], - "createSql": "CREATE INDEX IF NOT EXISTS `index_rssSources_sourceUrl` ON `${TABLE_NAME}` (`sourceUrl`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "bookmarks", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`time` INTEGER NOT NULL, `bookUrl` TEXT NOT NULL, `bookName` TEXT NOT NULL, `bookAuthor` TEXT NOT NULL, `chapterIndex` INTEGER NOT NULL, `pageIndex` INTEGER NOT NULL, `chapterName` TEXT NOT NULL, `content` TEXT NOT NULL, PRIMARY KEY(`time`))", - "fields": [ - { - "fieldPath": "time", - "columnName": "time", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "bookUrl", - "columnName": "bookUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookName", - "columnName": "bookName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookAuthor", - "columnName": "bookAuthor", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "chapterIndex", - "columnName": "chapterIndex", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "pageIndex", - "columnName": "pageIndex", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "chapterName", - "columnName": "chapterName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "content", - "columnName": "content", - "affinity": "TEXT", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "time" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_bookmarks_time", - "unique": true, - "columnNames": [ - "time" - ], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_bookmarks_time` ON `${TABLE_NAME}` (`time`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "rssArticles", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`origin` TEXT NOT NULL, `sort` TEXT NOT NULL, `title` TEXT NOT NULL, `order` INTEGER NOT NULL, `link` TEXT NOT NULL, `pubDate` TEXT, `description` TEXT, `content` TEXT, `image` TEXT, `read` INTEGER NOT NULL, PRIMARY KEY(`origin`, `link`))", - "fields": [ - { - "fieldPath": "origin", - "columnName": "origin", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "sort", - "columnName": "sort", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "title", - "columnName": "title", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "order", - "columnName": "order", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "link", - "columnName": "link", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "pubDate", - "columnName": "pubDate", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "description", - "columnName": "description", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "content", - "columnName": "content", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "image", - "columnName": "image", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "read", - "columnName": "read", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "origin", - "link" - ], - "autoGenerate": false - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "rssReadRecords", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`record` TEXT NOT NULL, `read` INTEGER NOT NULL, PRIMARY KEY(`record`))", - "fields": [ - { - "fieldPath": "record", - "columnName": "record", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "read", - "columnName": "read", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "record" - ], - "autoGenerate": false - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "rssStars", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`origin` TEXT NOT NULL, `sort` TEXT NOT NULL, `title` TEXT NOT NULL, `starTime` INTEGER NOT NULL, `link` TEXT NOT NULL, `pubDate` TEXT, `description` TEXT, `content` TEXT, `image` TEXT, PRIMARY KEY(`origin`, `link`))", - "fields": [ - { - "fieldPath": "origin", - "columnName": "origin", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "sort", - "columnName": "sort", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "title", - "columnName": "title", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "starTime", - "columnName": "starTime", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "link", - "columnName": "link", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "pubDate", - "columnName": "pubDate", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "description", - "columnName": "description", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "content", - "columnName": "content", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "image", - "columnName": "image", - "affinity": "TEXT", - "notNull": false - } - ], - "primaryKey": { - "columnNames": [ - "origin", - "link" - ], - "autoGenerate": false - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "txtTocRules", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER NOT NULL, `name` TEXT NOT NULL, `rule` TEXT NOT NULL, `serialNumber` INTEGER NOT NULL, `enable` INTEGER NOT NULL, PRIMARY KEY(`id`))", - "fields": [ - { - "fieldPath": "id", - "columnName": "id", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "rule", - "columnName": "rule", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "serialNumber", - "columnName": "serialNumber", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "enable", - "columnName": "enable", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "id" - ], - "autoGenerate": false - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "readRecord", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`androidId` TEXT NOT NULL, `bookName` TEXT NOT NULL, `readTime` INTEGER NOT NULL, PRIMARY KEY(`androidId`, `bookName`))", - "fields": [ - { - "fieldPath": "androidId", - "columnName": "androidId", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookName", - "columnName": "bookName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "readTime", - "columnName": "readTime", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "androidId", - "bookName" - ], - "autoGenerate": false - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "httpTTS", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER NOT NULL, `name` TEXT NOT NULL, `url` TEXT NOT NULL, PRIMARY KEY(`id`))", - "fields": [ - { - "fieldPath": "id", - "columnName": "id", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "url", - "columnName": "url", - "affinity": "TEXT", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "id" - ], - "autoGenerate": false - }, - "indices": [], - "foreignKeys": [] - } - ], - "views": [], - "setupQueries": [ - "CREATE TABLE IF NOT EXISTS room_master_table (id INTEGER PRIMARY KEY,identity_hash TEXT)", - "INSERT OR REPLACE INTO room_master_table (id,identity_hash) VALUES(42, 'c58916ed4a4aece6092e21acf99845a1')" - ] - } -} \ No newline at end of file diff --git a/app/schemas/io.legado.app.data.AppDatabase/2.json b/app/schemas/io.legado.app.data.AppDatabase/2.json deleted file mode 100644 index 7fa0d4da9..000000000 --- a/app/schemas/io.legado.app.data.AppDatabase/2.json +++ /dev/null @@ -1,1028 +0,0 @@ -{ - "formatVersion": 1, - "database": { - "version": 2, - "identityHash": "8164f697c57c68c7b82ec8e427214a88", - "entities": [ - { - "tableName": "books", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`bookUrl` TEXT NOT NULL, `tocUrl` TEXT NOT NULL, `origin` TEXT NOT NULL, `originName` TEXT NOT NULL, `name` TEXT NOT NULL, `author` TEXT NOT NULL, `kind` TEXT, `customTag` TEXT, `coverUrl` TEXT, `customCoverUrl` TEXT, `intro` TEXT, `customIntro` TEXT, `charset` TEXT, `type` INTEGER NOT NULL, `group` INTEGER NOT NULL, `latestChapterTitle` TEXT, `latestChapterTime` INTEGER NOT NULL, `lastCheckTime` INTEGER NOT NULL, `lastCheckCount` INTEGER NOT NULL, `totalChapterNum` INTEGER NOT NULL, `durChapterTitle` TEXT, `durChapterIndex` INTEGER NOT NULL, `durChapterPos` INTEGER NOT NULL, `durChapterTime` INTEGER NOT NULL, `wordCount` TEXT, `canUpdate` INTEGER NOT NULL, `order` INTEGER NOT NULL, `originOrder` INTEGER NOT NULL, `useReplaceRule` INTEGER NOT NULL, `variable` TEXT, PRIMARY KEY(`bookUrl`))", - "fields": [ - { - "fieldPath": "bookUrl", - "columnName": "bookUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "tocUrl", - "columnName": "tocUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "origin", - "columnName": "origin", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "originName", - "columnName": "originName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "author", - "columnName": "author", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "kind", - "columnName": "kind", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "customTag", - "columnName": "customTag", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "coverUrl", - "columnName": "coverUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "customCoverUrl", - "columnName": "customCoverUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "intro", - "columnName": "intro", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "customIntro", - "columnName": "customIntro", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "charset", - "columnName": "charset", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "type", - "columnName": "type", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "group", - "columnName": "group", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "latestChapterTitle", - "columnName": "latestChapterTitle", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "latestChapterTime", - "columnName": "latestChapterTime", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "lastCheckTime", - "columnName": "lastCheckTime", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "lastCheckCount", - "columnName": "lastCheckCount", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "totalChapterNum", - "columnName": "totalChapterNum", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "durChapterTitle", - "columnName": "durChapterTitle", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "durChapterIndex", - "columnName": "durChapterIndex", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "durChapterPos", - "columnName": "durChapterPos", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "durChapterTime", - "columnName": "durChapterTime", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "wordCount", - "columnName": "wordCount", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "canUpdate", - "columnName": "canUpdate", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "order", - "columnName": "order", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "originOrder", - "columnName": "originOrder", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "useReplaceRule", - "columnName": "useReplaceRule", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "variable", - "columnName": "variable", - "affinity": "TEXT", - "notNull": false - } - ], - "primaryKey": { - "columnNames": [ - "bookUrl" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_books_bookUrl", - "unique": true, - "columnNames": [ - "bookUrl" - ], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_books_bookUrl` ON `${TABLE_NAME}` (`bookUrl`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "book_groups", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`groupId` INTEGER NOT NULL, `groupName` TEXT NOT NULL, `order` INTEGER NOT NULL, PRIMARY KEY(`groupId`))", - "fields": [ - { - "fieldPath": "groupId", - "columnName": "groupId", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "groupName", - "columnName": "groupName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "order", - "columnName": "order", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "groupId" - ], - "autoGenerate": false - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "book_sources", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`bookSourceName` TEXT NOT NULL, `bookSourceGroup` TEXT, `bookSourceUrl` TEXT NOT NULL, `bookSourceType` INTEGER NOT NULL, `bookUrlPattern` TEXT, `customOrder` INTEGER NOT NULL, `enabled` INTEGER NOT NULL, `enabledExplore` INTEGER NOT NULL, `header` TEXT, `loginUrl` TEXT, `lastUpdateTime` INTEGER NOT NULL, `weight` INTEGER NOT NULL, `exploreUrl` TEXT, `ruleExplore` TEXT, `searchUrl` TEXT, `ruleSearch` TEXT, `ruleBookInfo` TEXT, `ruleToc` TEXT, `ruleContent` TEXT, PRIMARY KEY(`bookSourceUrl`))", - "fields": [ - { - "fieldPath": "bookSourceName", - "columnName": "bookSourceName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookSourceGroup", - "columnName": "bookSourceGroup", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "bookSourceUrl", - "columnName": "bookSourceUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookSourceType", - "columnName": "bookSourceType", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "bookUrlPattern", - "columnName": "bookUrlPattern", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "customOrder", - "columnName": "customOrder", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "enabled", - "columnName": "enabled", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "enabledExplore", - "columnName": "enabledExplore", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "header", - "columnName": "header", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "loginUrl", - "columnName": "loginUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "lastUpdateTime", - "columnName": "lastUpdateTime", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "weight", - "columnName": "weight", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "exploreUrl", - "columnName": "exploreUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleExplore", - "columnName": "ruleExplore", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "searchUrl", - "columnName": "searchUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleSearch", - "columnName": "ruleSearch", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleBookInfo", - "columnName": "ruleBookInfo", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleToc", - "columnName": "ruleToc", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleContent", - "columnName": "ruleContent", - "affinity": "TEXT", - "notNull": false - } - ], - "primaryKey": { - "columnNames": [ - "bookSourceUrl" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_book_sources_bookSourceUrl", - "unique": false, - "columnNames": [ - "bookSourceUrl" - ], - "createSql": "CREATE INDEX IF NOT EXISTS `index_book_sources_bookSourceUrl` ON `${TABLE_NAME}` (`bookSourceUrl`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "chapters", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`url` TEXT NOT NULL, `title` TEXT NOT NULL, `bookUrl` TEXT NOT NULL, `index` INTEGER NOT NULL, `resourceUrl` TEXT, `tag` TEXT, `start` INTEGER, `end` INTEGER, `variable` TEXT, PRIMARY KEY(`url`, `bookUrl`), FOREIGN KEY(`bookUrl`) REFERENCES `books`(`bookUrl`) ON UPDATE NO ACTION ON DELETE CASCADE )", - "fields": [ - { - "fieldPath": "url", - "columnName": "url", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "title", - "columnName": "title", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookUrl", - "columnName": "bookUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "index", - "columnName": "index", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "resourceUrl", - "columnName": "resourceUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "tag", - "columnName": "tag", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "start", - "columnName": "start", - "affinity": "INTEGER", - "notNull": false - }, - { - "fieldPath": "end", - "columnName": "end", - "affinity": "INTEGER", - "notNull": false - }, - { - "fieldPath": "variable", - "columnName": "variable", - "affinity": "TEXT", - "notNull": false - } - ], - "primaryKey": { - "columnNames": [ - "url", - "bookUrl" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_chapters_bookUrl", - "unique": false, - "columnNames": [ - "bookUrl" - ], - "createSql": "CREATE INDEX IF NOT EXISTS `index_chapters_bookUrl` ON `${TABLE_NAME}` (`bookUrl`)" - }, - { - "name": "index_chapters_bookUrl_index", - "unique": true, - "columnNames": [ - "bookUrl", - "index" - ], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_chapters_bookUrl_index` ON `${TABLE_NAME}` (`bookUrl`, `index`)" - } - ], - "foreignKeys": [ - { - "table": "books", - "onDelete": "CASCADE", - "onUpdate": "NO ACTION", - "columns": [ - "bookUrl" - ], - "referencedColumns": [ - "bookUrl" - ] - } - ] - }, - { - "tableName": "replace_rules", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, `name` TEXT NOT NULL, `group` TEXT, `pattern` TEXT NOT NULL, `replacement` TEXT NOT NULL, `scope` TEXT, `isEnabled` INTEGER NOT NULL, `isRegex` INTEGER NOT NULL, `sortOrder` INTEGER NOT NULL)", - "fields": [ - { - "fieldPath": "id", - "columnName": "id", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "group", - "columnName": "group", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "pattern", - "columnName": "pattern", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "replacement", - "columnName": "replacement", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "scope", - "columnName": "scope", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "isEnabled", - "columnName": "isEnabled", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "isRegex", - "columnName": "isRegex", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "order", - "columnName": "sortOrder", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "id" - ], - "autoGenerate": true - }, - "indices": [ - { - "name": "index_replace_rules_id", - "unique": false, - "columnNames": [ - "id" - ], - "createSql": "CREATE INDEX IF NOT EXISTS `index_replace_rules_id` ON `${TABLE_NAME}` (`id`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "searchBooks", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`bookUrl` TEXT NOT NULL, `origin` TEXT NOT NULL, `originName` TEXT NOT NULL, `type` INTEGER NOT NULL, `name` TEXT NOT NULL, `author` TEXT NOT NULL, `kind` TEXT, `coverUrl` TEXT, `intro` TEXT, `wordCount` TEXT, `latestChapterTitle` TEXT, `tocUrl` TEXT NOT NULL, `time` INTEGER NOT NULL, `variable` TEXT, `originOrder` INTEGER NOT NULL, PRIMARY KEY(`bookUrl`), FOREIGN KEY(`origin`) REFERENCES `book_sources`(`bookSourceUrl`) ON UPDATE NO ACTION ON DELETE CASCADE )", - "fields": [ - { - "fieldPath": "bookUrl", - "columnName": "bookUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "origin", - "columnName": "origin", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "originName", - "columnName": "originName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "type", - "columnName": "type", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "author", - "columnName": "author", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "kind", - "columnName": "kind", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "coverUrl", - "columnName": "coverUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "intro", - "columnName": "intro", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "wordCount", - "columnName": "wordCount", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "latestChapterTitle", - "columnName": "latestChapterTitle", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "tocUrl", - "columnName": "tocUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "time", - "columnName": "time", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "variable", - "columnName": "variable", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "originOrder", - "columnName": "originOrder", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "bookUrl" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_searchBooks_bookUrl", - "unique": true, - "columnNames": [ - "bookUrl" - ], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_searchBooks_bookUrl` ON `${TABLE_NAME}` (`bookUrl`)" - } - ], - "foreignKeys": [ - { - "table": "book_sources", - "onDelete": "CASCADE", - "onUpdate": "NO ACTION", - "columns": [ - "origin" - ], - "referencedColumns": [ - "bookSourceUrl" - ] - } - ] - }, - { - "tableName": "search_keywords", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`word` TEXT NOT NULL, `usage` INTEGER NOT NULL, `lastUseTime` INTEGER NOT NULL, PRIMARY KEY(`word`))", - "fields": [ - { - "fieldPath": "word", - "columnName": "word", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "usage", - "columnName": "usage", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "lastUseTime", - "columnName": "lastUseTime", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "word" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_search_keywords_word", - "unique": true, - "columnNames": [ - "word" - ], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_search_keywords_word` ON `${TABLE_NAME}` (`word`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "cookies", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`url` TEXT NOT NULL, `cookie` TEXT NOT NULL, PRIMARY KEY(`url`))", - "fields": [ - { - "fieldPath": "url", - "columnName": "url", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "cookie", - "columnName": "cookie", - "affinity": "TEXT", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "url" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_cookies_url", - "unique": true, - "columnNames": [ - "url" - ], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_cookies_url` ON `${TABLE_NAME}` (`url`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "rssSources", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`sourceUrl` TEXT NOT NULL, `sourceName` TEXT NOT NULL, `sourceIcon` TEXT NOT NULL, `sourceGroup` TEXT, `enabled` INTEGER NOT NULL, `ruleArticles` TEXT, `ruleNextPage` TEXT, `ruleTitle` TEXT, `rulePubDate` TEXT, `ruleDescription` TEXT, `ruleImage` TEXT, `ruleLink` TEXT, `ruleContent` TEXT, `header` TEXT, `enableJs` INTEGER NOT NULL, `loadWithBaseUrl` INTEGER NOT NULL, `customOrder` INTEGER NOT NULL, PRIMARY KEY(`sourceUrl`))", - "fields": [ - { - "fieldPath": "sourceUrl", - "columnName": "sourceUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "sourceName", - "columnName": "sourceName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "sourceIcon", - "columnName": "sourceIcon", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "sourceGroup", - "columnName": "sourceGroup", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "enabled", - "columnName": "enabled", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "ruleArticles", - "columnName": "ruleArticles", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleNextPage", - "columnName": "ruleNextPage", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleTitle", - "columnName": "ruleTitle", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "rulePubDate", - "columnName": "rulePubDate", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleDescription", - "columnName": "ruleDescription", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleImage", - "columnName": "ruleImage", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleLink", - "columnName": "ruleLink", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleContent", - "columnName": "ruleContent", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "header", - "columnName": "header", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "enableJs", - "columnName": "enableJs", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "loadWithBaseUrl", - "columnName": "loadWithBaseUrl", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "customOrder", - "columnName": "customOrder", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "sourceUrl" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_rssSources_sourceUrl", - "unique": false, - "columnNames": [ - "sourceUrl" - ], - "createSql": "CREATE INDEX IF NOT EXISTS `index_rssSources_sourceUrl` ON `${TABLE_NAME}` (`sourceUrl`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "bookmarks", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`time` INTEGER NOT NULL, `bookUrl` TEXT NOT NULL, `bookName` TEXT NOT NULL, `chapterName` TEXT NOT NULL, `chapterIndex` INTEGER NOT NULL, `pageIndex` INTEGER NOT NULL, `content` TEXT NOT NULL, PRIMARY KEY(`time`))", - "fields": [ - { - "fieldPath": "time", - "columnName": "time", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "bookUrl", - "columnName": "bookUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookName", - "columnName": "bookName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "chapterName", - "columnName": "chapterName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "chapterIndex", - "columnName": "chapterIndex", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "pageIndex", - "columnName": "pageIndex", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "content", - "columnName": "content", - "affinity": "TEXT", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "time" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_bookmarks_bookUrl", - "unique": true, - "columnNames": [ - "bookUrl" - ], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_bookmarks_bookUrl` ON `${TABLE_NAME}` (`bookUrl`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "rssArticles", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`origin` TEXT NOT NULL, `title` TEXT NOT NULL, `order` INTEGER NOT NULL, `link` TEXT NOT NULL, `pubDate` TEXT, `description` TEXT, `content` TEXT, `image` TEXT, `read` INTEGER NOT NULL, `star` INTEGER NOT NULL, PRIMARY KEY(`origin`, `link`))", - "fields": [ - { - "fieldPath": "origin", - "columnName": "origin", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "title", - "columnName": "title", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "order", - "columnName": "order", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "link", - "columnName": "link", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "pubDate", - "columnName": "pubDate", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "description", - "columnName": "description", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "content", - "columnName": "content", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "image", - "columnName": "image", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "read", - "columnName": "read", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "star", - "columnName": "star", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "origin", - "link" - ], - "autoGenerate": false - }, - "indices": [], - "foreignKeys": [] - } - ], - "views": [], - "setupQueries": [ - "CREATE TABLE IF NOT EXISTS room_master_table (id INTEGER PRIMARY KEY,identity_hash TEXT)", - "INSERT OR REPLACE INTO room_master_table (id,identity_hash) VALUES(42, '8164f697c57c68c7b82ec8e427214a88')" - ] - } -} \ No newline at end of file diff --git a/app/schemas/io.legado.app.data.AppDatabase/20.json b/app/schemas/io.legado.app.data.AppDatabase/20.json deleted file mode 100644 index 31058f1df..000000000 --- a/app/schemas/io.legado.app.data.AppDatabase/20.json +++ /dev/null @@ -1,1271 +0,0 @@ -{ - "formatVersion": 1, - "database": { - "version": 20, - "identityHash": "2c443ea987b87d8daf2a6161a98d2d5c", - "entities": [ - { - "tableName": "books", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`bookUrl` TEXT NOT NULL, `tocUrl` TEXT NOT NULL, `origin` TEXT NOT NULL, `originName` TEXT NOT NULL, `name` TEXT NOT NULL, `author` TEXT NOT NULL, `kind` TEXT, `customTag` TEXT, `coverUrl` TEXT, `customCoverUrl` TEXT, `intro` TEXT, `customIntro` TEXT, `charset` TEXT, `type` INTEGER NOT NULL, `group` INTEGER NOT NULL, `latestChapterTitle` TEXT, `latestChapterTime` INTEGER NOT NULL, `lastCheckTime` INTEGER NOT NULL, `lastCheckCount` INTEGER NOT NULL, `totalChapterNum` INTEGER NOT NULL, `durChapterTitle` TEXT, `durChapterIndex` INTEGER NOT NULL, `durChapterPos` INTEGER NOT NULL, `durChapterTime` INTEGER NOT NULL, `wordCount` TEXT, `canUpdate` INTEGER NOT NULL, `order` INTEGER NOT NULL, `originOrder` INTEGER NOT NULL, `useReplaceRule` INTEGER NOT NULL, `variable` TEXT, PRIMARY KEY(`bookUrl`))", - "fields": [ - { - "fieldPath": "bookUrl", - "columnName": "bookUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "tocUrl", - "columnName": "tocUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "origin", - "columnName": "origin", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "originName", - "columnName": "originName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "author", - "columnName": "author", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "kind", - "columnName": "kind", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "customTag", - "columnName": "customTag", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "coverUrl", - "columnName": "coverUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "customCoverUrl", - "columnName": "customCoverUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "intro", - "columnName": "intro", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "customIntro", - "columnName": "customIntro", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "charset", - "columnName": "charset", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "type", - "columnName": "type", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "group", - "columnName": "group", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "latestChapterTitle", - "columnName": "latestChapterTitle", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "latestChapterTime", - "columnName": "latestChapterTime", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "lastCheckTime", - "columnName": "lastCheckTime", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "lastCheckCount", - "columnName": "lastCheckCount", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "totalChapterNum", - "columnName": "totalChapterNum", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "durChapterTitle", - "columnName": "durChapterTitle", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "durChapterIndex", - "columnName": "durChapterIndex", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "durChapterPos", - "columnName": "durChapterPos", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "durChapterTime", - "columnName": "durChapterTime", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "wordCount", - "columnName": "wordCount", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "canUpdate", - "columnName": "canUpdate", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "order", - "columnName": "order", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "originOrder", - "columnName": "originOrder", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "useReplaceRule", - "columnName": "useReplaceRule", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "variable", - "columnName": "variable", - "affinity": "TEXT", - "notNull": false - } - ], - "primaryKey": { - "columnNames": [ - "bookUrl" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_books_name_author", - "unique": true, - "columnNames": [ - "name", - "author" - ], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_books_name_author` ON `${TABLE_NAME}` (`name`, `author`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "book_groups", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`groupId` INTEGER NOT NULL, `groupName` TEXT NOT NULL, `order` INTEGER NOT NULL, PRIMARY KEY(`groupId`))", - "fields": [ - { - "fieldPath": "groupId", - "columnName": "groupId", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "groupName", - "columnName": "groupName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "order", - "columnName": "order", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "groupId" - ], - "autoGenerate": false - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "book_sources", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`bookSourceName` TEXT NOT NULL, `bookSourceGroup` TEXT, `bookSourceUrl` TEXT NOT NULL, `bookSourceType` INTEGER NOT NULL, `bookUrlPattern` TEXT, `customOrder` INTEGER NOT NULL, `enabled` INTEGER NOT NULL, `enabledExplore` INTEGER NOT NULL, `header` TEXT, `loginUrl` TEXT, `bookSourceComment` TEXT, `lastUpdateTime` INTEGER NOT NULL, `weight` INTEGER NOT NULL, `exploreUrl` TEXT, `ruleExplore` TEXT, `searchUrl` TEXT, `ruleSearch` TEXT, `ruleBookInfo` TEXT, `ruleToc` TEXT, `ruleContent` TEXT, PRIMARY KEY(`bookSourceUrl`))", - "fields": [ - { - "fieldPath": "bookSourceName", - "columnName": "bookSourceName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookSourceGroup", - "columnName": "bookSourceGroup", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "bookSourceUrl", - "columnName": "bookSourceUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookSourceType", - "columnName": "bookSourceType", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "bookUrlPattern", - "columnName": "bookUrlPattern", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "customOrder", - "columnName": "customOrder", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "enabled", - "columnName": "enabled", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "enabledExplore", - "columnName": "enabledExplore", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "header", - "columnName": "header", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "loginUrl", - "columnName": "loginUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "bookSourceComment", - "columnName": "bookSourceComment", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "lastUpdateTime", - "columnName": "lastUpdateTime", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "weight", - "columnName": "weight", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "exploreUrl", - "columnName": "exploreUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleExplore", - "columnName": "ruleExplore", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "searchUrl", - "columnName": "searchUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleSearch", - "columnName": "ruleSearch", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleBookInfo", - "columnName": "ruleBookInfo", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleToc", - "columnName": "ruleToc", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleContent", - "columnName": "ruleContent", - "affinity": "TEXT", - "notNull": false - } - ], - "primaryKey": { - "columnNames": [ - "bookSourceUrl" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_book_sources_bookSourceUrl", - "unique": false, - "columnNames": [ - "bookSourceUrl" - ], - "createSql": "CREATE INDEX IF NOT EXISTS `index_book_sources_bookSourceUrl` ON `${TABLE_NAME}` (`bookSourceUrl`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "chapters", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`url` TEXT NOT NULL, `title` TEXT NOT NULL, `bookUrl` TEXT NOT NULL, `index` INTEGER NOT NULL, `resourceUrl` TEXT, `tag` TEXT, `start` INTEGER, `end` INTEGER, `variable` TEXT, PRIMARY KEY(`url`, `bookUrl`), FOREIGN KEY(`bookUrl`) REFERENCES `books`(`bookUrl`) ON UPDATE NO ACTION ON DELETE CASCADE )", - "fields": [ - { - "fieldPath": "url", - "columnName": "url", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "title", - "columnName": "title", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookUrl", - "columnName": "bookUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "index", - "columnName": "index", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "resourceUrl", - "columnName": "resourceUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "tag", - "columnName": "tag", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "start", - "columnName": "start", - "affinity": "INTEGER", - "notNull": false - }, - { - "fieldPath": "end", - "columnName": "end", - "affinity": "INTEGER", - "notNull": false - }, - { - "fieldPath": "variable", - "columnName": "variable", - "affinity": "TEXT", - "notNull": false - } - ], - "primaryKey": { - "columnNames": [ - "url", - "bookUrl" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_chapters_bookUrl", - "unique": false, - "columnNames": [ - "bookUrl" - ], - "createSql": "CREATE INDEX IF NOT EXISTS `index_chapters_bookUrl` ON `${TABLE_NAME}` (`bookUrl`)" - }, - { - "name": "index_chapters_bookUrl_index", - "unique": true, - "columnNames": [ - "bookUrl", - "index" - ], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_chapters_bookUrl_index` ON `${TABLE_NAME}` (`bookUrl`, `index`)" - } - ], - "foreignKeys": [ - { - "table": "books", - "onDelete": "CASCADE", - "onUpdate": "NO ACTION", - "columns": [ - "bookUrl" - ], - "referencedColumns": [ - "bookUrl" - ] - } - ] - }, - { - "tableName": "replace_rules", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, `name` TEXT NOT NULL, `group` TEXT, `pattern` TEXT NOT NULL, `replacement` TEXT NOT NULL, `scope` TEXT, `isEnabled` INTEGER NOT NULL, `isRegex` INTEGER NOT NULL, `sortOrder` INTEGER NOT NULL)", - "fields": [ - { - "fieldPath": "id", - "columnName": "id", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "group", - "columnName": "group", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "pattern", - "columnName": "pattern", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "replacement", - "columnName": "replacement", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "scope", - "columnName": "scope", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "isEnabled", - "columnName": "isEnabled", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "isRegex", - "columnName": "isRegex", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "order", - "columnName": "sortOrder", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "id" - ], - "autoGenerate": true - }, - "indices": [ - { - "name": "index_replace_rules_id", - "unique": false, - "columnNames": [ - "id" - ], - "createSql": "CREATE INDEX IF NOT EXISTS `index_replace_rules_id` ON `${TABLE_NAME}` (`id`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "searchBooks", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`bookUrl` TEXT NOT NULL, `origin` TEXT NOT NULL, `originName` TEXT NOT NULL, `type` INTEGER NOT NULL, `name` TEXT NOT NULL, `author` TEXT NOT NULL, `kind` TEXT, `coverUrl` TEXT, `intro` TEXT, `wordCount` TEXT, `latestChapterTitle` TEXT, `tocUrl` TEXT NOT NULL, `time` INTEGER NOT NULL, `variable` TEXT, `originOrder` INTEGER NOT NULL, PRIMARY KEY(`bookUrl`), FOREIGN KEY(`origin`) REFERENCES `book_sources`(`bookSourceUrl`) ON UPDATE NO ACTION ON DELETE CASCADE )", - "fields": [ - { - "fieldPath": "bookUrl", - "columnName": "bookUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "origin", - "columnName": "origin", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "originName", - "columnName": "originName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "type", - "columnName": "type", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "author", - "columnName": "author", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "kind", - "columnName": "kind", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "coverUrl", - "columnName": "coverUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "intro", - "columnName": "intro", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "wordCount", - "columnName": "wordCount", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "latestChapterTitle", - "columnName": "latestChapterTitle", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "tocUrl", - "columnName": "tocUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "time", - "columnName": "time", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "variable", - "columnName": "variable", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "originOrder", - "columnName": "originOrder", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "bookUrl" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_searchBooks_bookUrl", - "unique": true, - "columnNames": [ - "bookUrl" - ], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_searchBooks_bookUrl` ON `${TABLE_NAME}` (`bookUrl`)" - }, - { - "name": "index_searchBooks_origin", - "unique": false, - "columnNames": [ - "origin" - ], - "createSql": "CREATE INDEX IF NOT EXISTS `index_searchBooks_origin` ON `${TABLE_NAME}` (`origin`)" - } - ], - "foreignKeys": [ - { - "table": "book_sources", - "onDelete": "CASCADE", - "onUpdate": "NO ACTION", - "columns": [ - "origin" - ], - "referencedColumns": [ - "bookSourceUrl" - ] - } - ] - }, - { - "tableName": "search_keywords", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`word` TEXT NOT NULL, `usage` INTEGER NOT NULL, `lastUseTime` INTEGER NOT NULL, PRIMARY KEY(`word`))", - "fields": [ - { - "fieldPath": "word", - "columnName": "word", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "usage", - "columnName": "usage", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "lastUseTime", - "columnName": "lastUseTime", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "word" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_search_keywords_word", - "unique": true, - "columnNames": [ - "word" - ], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_search_keywords_word` ON `${TABLE_NAME}` (`word`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "cookies", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`url` TEXT NOT NULL, `cookie` TEXT NOT NULL, PRIMARY KEY(`url`))", - "fields": [ - { - "fieldPath": "url", - "columnName": "url", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "cookie", - "columnName": "cookie", - "affinity": "TEXT", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "url" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_cookies_url", - "unique": true, - "columnNames": [ - "url" - ], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_cookies_url` ON `${TABLE_NAME}` (`url`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "rssSources", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`sourceUrl` TEXT NOT NULL, `sourceName` TEXT NOT NULL, `sourceIcon` TEXT NOT NULL, `sourceGroup` TEXT, `enabled` INTEGER NOT NULL, `sortUrl` TEXT, `articleStyle` INTEGER NOT NULL, `ruleArticles` TEXT, `ruleNextPage` TEXT, `ruleTitle` TEXT, `rulePubDate` TEXT, `ruleDescription` TEXT, `ruleImage` TEXT, `ruleLink` TEXT, `ruleContent` TEXT, `style` TEXT, `header` TEXT, `enableJs` INTEGER NOT NULL, `loadWithBaseUrl` INTEGER NOT NULL, `customOrder` INTEGER NOT NULL, PRIMARY KEY(`sourceUrl`))", - "fields": [ - { - "fieldPath": "sourceUrl", - "columnName": "sourceUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "sourceName", - "columnName": "sourceName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "sourceIcon", - "columnName": "sourceIcon", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "sourceGroup", - "columnName": "sourceGroup", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "enabled", - "columnName": "enabled", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "sortUrl", - "columnName": "sortUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "articleStyle", - "columnName": "articleStyle", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "ruleArticles", - "columnName": "ruleArticles", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleNextPage", - "columnName": "ruleNextPage", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleTitle", - "columnName": "ruleTitle", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "rulePubDate", - "columnName": "rulePubDate", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleDescription", - "columnName": "ruleDescription", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleImage", - "columnName": "ruleImage", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleLink", - "columnName": "ruleLink", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleContent", - "columnName": "ruleContent", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "style", - "columnName": "style", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "header", - "columnName": "header", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "enableJs", - "columnName": "enableJs", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "loadWithBaseUrl", - "columnName": "loadWithBaseUrl", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "customOrder", - "columnName": "customOrder", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "sourceUrl" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_rssSources_sourceUrl", - "unique": false, - "columnNames": [ - "sourceUrl" - ], - "createSql": "CREATE INDEX IF NOT EXISTS `index_rssSources_sourceUrl` ON `${TABLE_NAME}` (`sourceUrl`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "bookmarks", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`time` INTEGER NOT NULL, `bookUrl` TEXT NOT NULL, `bookName` TEXT NOT NULL, `bookAuthor` TEXT NOT NULL, `chapterIndex` INTEGER NOT NULL, `pageIndex` INTEGER NOT NULL, `chapterName` TEXT NOT NULL, `content` TEXT NOT NULL, PRIMARY KEY(`time`))", - "fields": [ - { - "fieldPath": "time", - "columnName": "time", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "bookUrl", - "columnName": "bookUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookName", - "columnName": "bookName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookAuthor", - "columnName": "bookAuthor", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "chapterIndex", - "columnName": "chapterIndex", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "pageIndex", - "columnName": "pageIndex", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "chapterName", - "columnName": "chapterName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "content", - "columnName": "content", - "affinity": "TEXT", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "time" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_bookmarks_time", - "unique": true, - "columnNames": [ - "time" - ], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_bookmarks_time` ON `${TABLE_NAME}` (`time`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "rssArticles", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`origin` TEXT NOT NULL, `sort` TEXT NOT NULL, `title` TEXT NOT NULL, `order` INTEGER NOT NULL, `link` TEXT NOT NULL, `pubDate` TEXT, `description` TEXT, `content` TEXT, `image` TEXT, `read` INTEGER NOT NULL, PRIMARY KEY(`origin`, `link`))", - "fields": [ - { - "fieldPath": "origin", - "columnName": "origin", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "sort", - "columnName": "sort", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "title", - "columnName": "title", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "order", - "columnName": "order", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "link", - "columnName": "link", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "pubDate", - "columnName": "pubDate", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "description", - "columnName": "description", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "content", - "columnName": "content", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "image", - "columnName": "image", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "read", - "columnName": "read", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "origin", - "link" - ], - "autoGenerate": false - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "rssReadRecords", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`record` TEXT NOT NULL, `read` INTEGER NOT NULL, PRIMARY KEY(`record`))", - "fields": [ - { - "fieldPath": "record", - "columnName": "record", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "read", - "columnName": "read", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "record" - ], - "autoGenerate": false - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "rssStars", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`origin` TEXT NOT NULL, `sort` TEXT NOT NULL, `title` TEXT NOT NULL, `starTime` INTEGER NOT NULL, `link` TEXT NOT NULL, `pubDate` TEXT, `description` TEXT, `content` TEXT, `image` TEXT, PRIMARY KEY(`origin`, `link`))", - "fields": [ - { - "fieldPath": "origin", - "columnName": "origin", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "sort", - "columnName": "sort", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "title", - "columnName": "title", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "starTime", - "columnName": "starTime", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "link", - "columnName": "link", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "pubDate", - "columnName": "pubDate", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "description", - "columnName": "description", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "content", - "columnName": "content", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "image", - "columnName": "image", - "affinity": "TEXT", - "notNull": false - } - ], - "primaryKey": { - "columnNames": [ - "origin", - "link" - ], - "autoGenerate": false - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "txtTocRules", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER NOT NULL, `name` TEXT NOT NULL, `rule` TEXT NOT NULL, `serialNumber` INTEGER NOT NULL, `enable` INTEGER NOT NULL, PRIMARY KEY(`id`))", - "fields": [ - { - "fieldPath": "id", - "columnName": "id", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "rule", - "columnName": "rule", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "serialNumber", - "columnName": "serialNumber", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "enable", - "columnName": "enable", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "id" - ], - "autoGenerate": false - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "readRecord", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`androidId` TEXT NOT NULL, `bookName` TEXT NOT NULL, `readTime` INTEGER NOT NULL, PRIMARY KEY(`androidId`, `bookName`))", - "fields": [ - { - "fieldPath": "androidId", - "columnName": "androidId", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookName", - "columnName": "bookName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "readTime", - "columnName": "readTime", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "androidId", - "bookName" - ], - "autoGenerate": false - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "httpTTS", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER NOT NULL, `name` TEXT NOT NULL, `url` TEXT NOT NULL, PRIMARY KEY(`id`))", - "fields": [ - { - "fieldPath": "id", - "columnName": "id", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "url", - "columnName": "url", - "affinity": "TEXT", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "id" - ], - "autoGenerate": false - }, - "indices": [], - "foreignKeys": [] - } - ], - "views": [], - "setupQueries": [ - "CREATE TABLE IF NOT EXISTS room_master_table (id INTEGER PRIMARY KEY,identity_hash TEXT)", - "INSERT OR REPLACE INTO room_master_table (id,identity_hash) VALUES(42, '2c443ea987b87d8daf2a6161a98d2d5c')" - ] - } -} \ No newline at end of file diff --git a/app/schemas/io.legado.app.data.AppDatabase/21.json b/app/schemas/io.legado.app.data.AppDatabase/21.json deleted file mode 100644 index 80bc0b319..000000000 --- a/app/schemas/io.legado.app.data.AppDatabase/21.json +++ /dev/null @@ -1,1283 +0,0 @@ -{ - "formatVersion": 1, - "database": { - "version": 21, - "identityHash": "eac4e5b7fdad840e82c1f607a3a8a46a", - "entities": [ - { - "tableName": "books", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`bookUrl` TEXT NOT NULL, `tocUrl` TEXT NOT NULL, `origin` TEXT NOT NULL, `originName` TEXT NOT NULL, `name` TEXT NOT NULL, `author` TEXT NOT NULL, `kind` TEXT, `customTag` TEXT, `coverUrl` TEXT, `customCoverUrl` TEXT, `intro` TEXT, `customIntro` TEXT, `charset` TEXT, `type` INTEGER NOT NULL, `group` INTEGER NOT NULL, `latestChapterTitle` TEXT, `latestChapterTime` INTEGER NOT NULL, `lastCheckTime` INTEGER NOT NULL, `lastCheckCount` INTEGER NOT NULL, `totalChapterNum` INTEGER NOT NULL, `durChapterTitle` TEXT, `durChapterIndex` INTEGER NOT NULL, `durChapterPos` INTEGER NOT NULL, `durChapterTime` INTEGER NOT NULL, `wordCount` TEXT, `canUpdate` INTEGER NOT NULL, `order` INTEGER NOT NULL, `originOrder` INTEGER NOT NULL, `useReplaceRule` INTEGER NOT NULL, `variable` TEXT, `config` TEXT, PRIMARY KEY(`bookUrl`))", - "fields": [ - { - "fieldPath": "bookUrl", - "columnName": "bookUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "tocUrl", - "columnName": "tocUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "origin", - "columnName": "origin", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "originName", - "columnName": "originName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "author", - "columnName": "author", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "kind", - "columnName": "kind", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "customTag", - "columnName": "customTag", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "coverUrl", - "columnName": "coverUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "customCoverUrl", - "columnName": "customCoverUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "intro", - "columnName": "intro", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "customIntro", - "columnName": "customIntro", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "charset", - "columnName": "charset", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "type", - "columnName": "type", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "group", - "columnName": "group", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "latestChapterTitle", - "columnName": "latestChapterTitle", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "latestChapterTime", - "columnName": "latestChapterTime", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "lastCheckTime", - "columnName": "lastCheckTime", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "lastCheckCount", - "columnName": "lastCheckCount", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "totalChapterNum", - "columnName": "totalChapterNum", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "durChapterTitle", - "columnName": "durChapterTitle", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "durChapterIndex", - "columnName": "durChapterIndex", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "durChapterPos", - "columnName": "durChapterPos", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "durChapterTime", - "columnName": "durChapterTime", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "wordCount", - "columnName": "wordCount", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "canUpdate", - "columnName": "canUpdate", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "order", - "columnName": "order", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "originOrder", - "columnName": "originOrder", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "useReplaceRule", - "columnName": "useReplaceRule", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "variable", - "columnName": "variable", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "config", - "columnName": "config", - "affinity": "TEXT", - "notNull": false - } - ], - "primaryKey": { - "columnNames": [ - "bookUrl" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_books_name_author", - "unique": true, - "columnNames": [ - "name", - "author" - ], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_books_name_author` ON `${TABLE_NAME}` (`name`, `author`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "book_groups", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`groupId` INTEGER NOT NULL, `groupName` TEXT NOT NULL, `order` INTEGER NOT NULL, `show` INTEGER NOT NULL, PRIMARY KEY(`groupId`))", - "fields": [ - { - "fieldPath": "groupId", - "columnName": "groupId", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "groupName", - "columnName": "groupName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "order", - "columnName": "order", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "show", - "columnName": "show", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "groupId" - ], - "autoGenerate": false - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "book_sources", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`bookSourceName` TEXT NOT NULL, `bookSourceGroup` TEXT, `bookSourceUrl` TEXT NOT NULL, `bookSourceType` INTEGER NOT NULL, `bookUrlPattern` TEXT, `customOrder` INTEGER NOT NULL, `enabled` INTEGER NOT NULL, `enabledExplore` INTEGER NOT NULL, `header` TEXT, `loginUrl` TEXT, `bookSourceComment` TEXT, `lastUpdateTime` INTEGER NOT NULL, `weight` INTEGER NOT NULL, `exploreUrl` TEXT, `ruleExplore` TEXT, `searchUrl` TEXT, `ruleSearch` TEXT, `ruleBookInfo` TEXT, `ruleToc` TEXT, `ruleContent` TEXT, PRIMARY KEY(`bookSourceUrl`))", - "fields": [ - { - "fieldPath": "bookSourceName", - "columnName": "bookSourceName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookSourceGroup", - "columnName": "bookSourceGroup", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "bookSourceUrl", - "columnName": "bookSourceUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookSourceType", - "columnName": "bookSourceType", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "bookUrlPattern", - "columnName": "bookUrlPattern", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "customOrder", - "columnName": "customOrder", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "enabled", - "columnName": "enabled", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "enabledExplore", - "columnName": "enabledExplore", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "header", - "columnName": "header", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "loginUrl", - "columnName": "loginUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "bookSourceComment", - "columnName": "bookSourceComment", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "lastUpdateTime", - "columnName": "lastUpdateTime", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "weight", - "columnName": "weight", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "exploreUrl", - "columnName": "exploreUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleExplore", - "columnName": "ruleExplore", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "searchUrl", - "columnName": "searchUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleSearch", - "columnName": "ruleSearch", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleBookInfo", - "columnName": "ruleBookInfo", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleToc", - "columnName": "ruleToc", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleContent", - "columnName": "ruleContent", - "affinity": "TEXT", - "notNull": false - } - ], - "primaryKey": { - "columnNames": [ - "bookSourceUrl" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_book_sources_bookSourceUrl", - "unique": false, - "columnNames": [ - "bookSourceUrl" - ], - "createSql": "CREATE INDEX IF NOT EXISTS `index_book_sources_bookSourceUrl` ON `${TABLE_NAME}` (`bookSourceUrl`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "chapters", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`url` TEXT NOT NULL, `title` TEXT NOT NULL, `bookUrl` TEXT NOT NULL, `index` INTEGER NOT NULL, `resourceUrl` TEXT, `tag` TEXT, `start` INTEGER, `end` INTEGER, `variable` TEXT, PRIMARY KEY(`url`, `bookUrl`), FOREIGN KEY(`bookUrl`) REFERENCES `books`(`bookUrl`) ON UPDATE NO ACTION ON DELETE CASCADE )", - "fields": [ - { - "fieldPath": "url", - "columnName": "url", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "title", - "columnName": "title", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookUrl", - "columnName": "bookUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "index", - "columnName": "index", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "resourceUrl", - "columnName": "resourceUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "tag", - "columnName": "tag", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "start", - "columnName": "start", - "affinity": "INTEGER", - "notNull": false - }, - { - "fieldPath": "end", - "columnName": "end", - "affinity": "INTEGER", - "notNull": false - }, - { - "fieldPath": "variable", - "columnName": "variable", - "affinity": "TEXT", - "notNull": false - } - ], - "primaryKey": { - "columnNames": [ - "url", - "bookUrl" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_chapters_bookUrl", - "unique": false, - "columnNames": [ - "bookUrl" - ], - "createSql": "CREATE INDEX IF NOT EXISTS `index_chapters_bookUrl` ON `${TABLE_NAME}` (`bookUrl`)" - }, - { - "name": "index_chapters_bookUrl_index", - "unique": true, - "columnNames": [ - "bookUrl", - "index" - ], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_chapters_bookUrl_index` ON `${TABLE_NAME}` (`bookUrl`, `index`)" - } - ], - "foreignKeys": [ - { - "table": "books", - "onDelete": "CASCADE", - "onUpdate": "NO ACTION", - "columns": [ - "bookUrl" - ], - "referencedColumns": [ - "bookUrl" - ] - } - ] - }, - { - "tableName": "replace_rules", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, `name` TEXT NOT NULL, `group` TEXT, `pattern` TEXT NOT NULL, `replacement` TEXT NOT NULL, `scope` TEXT, `isEnabled` INTEGER NOT NULL, `isRegex` INTEGER NOT NULL, `sortOrder` INTEGER NOT NULL)", - "fields": [ - { - "fieldPath": "id", - "columnName": "id", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "group", - "columnName": "group", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "pattern", - "columnName": "pattern", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "replacement", - "columnName": "replacement", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "scope", - "columnName": "scope", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "isEnabled", - "columnName": "isEnabled", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "isRegex", - "columnName": "isRegex", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "order", - "columnName": "sortOrder", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "id" - ], - "autoGenerate": true - }, - "indices": [ - { - "name": "index_replace_rules_id", - "unique": false, - "columnNames": [ - "id" - ], - "createSql": "CREATE INDEX IF NOT EXISTS `index_replace_rules_id` ON `${TABLE_NAME}` (`id`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "searchBooks", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`bookUrl` TEXT NOT NULL, `origin` TEXT NOT NULL, `originName` TEXT NOT NULL, `type` INTEGER NOT NULL, `name` TEXT NOT NULL, `author` TEXT NOT NULL, `kind` TEXT, `coverUrl` TEXT, `intro` TEXT, `wordCount` TEXT, `latestChapterTitle` TEXT, `tocUrl` TEXT NOT NULL, `time` INTEGER NOT NULL, `variable` TEXT, `originOrder` INTEGER NOT NULL, PRIMARY KEY(`bookUrl`), FOREIGN KEY(`origin`) REFERENCES `book_sources`(`bookSourceUrl`) ON UPDATE NO ACTION ON DELETE CASCADE )", - "fields": [ - { - "fieldPath": "bookUrl", - "columnName": "bookUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "origin", - "columnName": "origin", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "originName", - "columnName": "originName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "type", - "columnName": "type", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "author", - "columnName": "author", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "kind", - "columnName": "kind", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "coverUrl", - "columnName": "coverUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "intro", - "columnName": "intro", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "wordCount", - "columnName": "wordCount", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "latestChapterTitle", - "columnName": "latestChapterTitle", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "tocUrl", - "columnName": "tocUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "time", - "columnName": "time", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "variable", - "columnName": "variable", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "originOrder", - "columnName": "originOrder", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "bookUrl" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_searchBooks_bookUrl", - "unique": true, - "columnNames": [ - "bookUrl" - ], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_searchBooks_bookUrl` ON `${TABLE_NAME}` (`bookUrl`)" - }, - { - "name": "index_searchBooks_origin", - "unique": false, - "columnNames": [ - "origin" - ], - "createSql": "CREATE INDEX IF NOT EXISTS `index_searchBooks_origin` ON `${TABLE_NAME}` (`origin`)" - } - ], - "foreignKeys": [ - { - "table": "book_sources", - "onDelete": "CASCADE", - "onUpdate": "NO ACTION", - "columns": [ - "origin" - ], - "referencedColumns": [ - "bookSourceUrl" - ] - } - ] - }, - { - "tableName": "search_keywords", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`word` TEXT NOT NULL, `usage` INTEGER NOT NULL, `lastUseTime` INTEGER NOT NULL, PRIMARY KEY(`word`))", - "fields": [ - { - "fieldPath": "word", - "columnName": "word", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "usage", - "columnName": "usage", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "lastUseTime", - "columnName": "lastUseTime", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "word" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_search_keywords_word", - "unique": true, - "columnNames": [ - "word" - ], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_search_keywords_word` ON `${TABLE_NAME}` (`word`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "cookies", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`url` TEXT NOT NULL, `cookie` TEXT NOT NULL, PRIMARY KEY(`url`))", - "fields": [ - { - "fieldPath": "url", - "columnName": "url", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "cookie", - "columnName": "cookie", - "affinity": "TEXT", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "url" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_cookies_url", - "unique": true, - "columnNames": [ - "url" - ], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_cookies_url` ON `${TABLE_NAME}` (`url`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "rssSources", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`sourceUrl` TEXT NOT NULL, `sourceName` TEXT NOT NULL, `sourceIcon` TEXT NOT NULL, `sourceGroup` TEXT, `enabled` INTEGER NOT NULL, `sortUrl` TEXT, `articleStyle` INTEGER NOT NULL, `ruleArticles` TEXT, `ruleNextPage` TEXT, `ruleTitle` TEXT, `rulePubDate` TEXT, `ruleDescription` TEXT, `ruleImage` TEXT, `ruleLink` TEXT, `ruleContent` TEXT, `style` TEXT, `header` TEXT, `enableJs` INTEGER NOT NULL, `loadWithBaseUrl` INTEGER NOT NULL, `customOrder` INTEGER NOT NULL, PRIMARY KEY(`sourceUrl`))", - "fields": [ - { - "fieldPath": "sourceUrl", - "columnName": "sourceUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "sourceName", - "columnName": "sourceName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "sourceIcon", - "columnName": "sourceIcon", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "sourceGroup", - "columnName": "sourceGroup", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "enabled", - "columnName": "enabled", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "sortUrl", - "columnName": "sortUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "articleStyle", - "columnName": "articleStyle", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "ruleArticles", - "columnName": "ruleArticles", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleNextPage", - "columnName": "ruleNextPage", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleTitle", - "columnName": "ruleTitle", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "rulePubDate", - "columnName": "rulePubDate", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleDescription", - "columnName": "ruleDescription", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleImage", - "columnName": "ruleImage", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleLink", - "columnName": "ruleLink", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleContent", - "columnName": "ruleContent", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "style", - "columnName": "style", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "header", - "columnName": "header", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "enableJs", - "columnName": "enableJs", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "loadWithBaseUrl", - "columnName": "loadWithBaseUrl", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "customOrder", - "columnName": "customOrder", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "sourceUrl" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_rssSources_sourceUrl", - "unique": false, - "columnNames": [ - "sourceUrl" - ], - "createSql": "CREATE INDEX IF NOT EXISTS `index_rssSources_sourceUrl` ON `${TABLE_NAME}` (`sourceUrl`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "bookmarks", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`time` INTEGER NOT NULL, `bookUrl` TEXT NOT NULL, `bookName` TEXT NOT NULL, `bookAuthor` TEXT NOT NULL, `chapterIndex` INTEGER NOT NULL, `pageIndex` INTEGER NOT NULL, `chapterName` TEXT NOT NULL, `content` TEXT NOT NULL, PRIMARY KEY(`time`))", - "fields": [ - { - "fieldPath": "time", - "columnName": "time", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "bookUrl", - "columnName": "bookUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookName", - "columnName": "bookName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookAuthor", - "columnName": "bookAuthor", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "chapterIndex", - "columnName": "chapterIndex", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "pageIndex", - "columnName": "pageIndex", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "chapterName", - "columnName": "chapterName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "content", - "columnName": "content", - "affinity": "TEXT", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "time" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_bookmarks_time", - "unique": true, - "columnNames": [ - "time" - ], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_bookmarks_time` ON `${TABLE_NAME}` (`time`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "rssArticles", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`origin` TEXT NOT NULL, `sort` TEXT NOT NULL, `title` TEXT NOT NULL, `order` INTEGER NOT NULL, `link` TEXT NOT NULL, `pubDate` TEXT, `description` TEXT, `content` TEXT, `image` TEXT, `read` INTEGER NOT NULL, PRIMARY KEY(`origin`, `link`))", - "fields": [ - { - "fieldPath": "origin", - "columnName": "origin", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "sort", - "columnName": "sort", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "title", - "columnName": "title", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "order", - "columnName": "order", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "link", - "columnName": "link", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "pubDate", - "columnName": "pubDate", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "description", - "columnName": "description", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "content", - "columnName": "content", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "image", - "columnName": "image", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "read", - "columnName": "read", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "origin", - "link" - ], - "autoGenerate": false - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "rssReadRecords", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`record` TEXT NOT NULL, `read` INTEGER NOT NULL, PRIMARY KEY(`record`))", - "fields": [ - { - "fieldPath": "record", - "columnName": "record", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "read", - "columnName": "read", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "record" - ], - "autoGenerate": false - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "rssStars", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`origin` TEXT NOT NULL, `sort` TEXT NOT NULL, `title` TEXT NOT NULL, `starTime` INTEGER NOT NULL, `link` TEXT NOT NULL, `pubDate` TEXT, `description` TEXT, `content` TEXT, `image` TEXT, PRIMARY KEY(`origin`, `link`))", - "fields": [ - { - "fieldPath": "origin", - "columnName": "origin", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "sort", - "columnName": "sort", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "title", - "columnName": "title", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "starTime", - "columnName": "starTime", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "link", - "columnName": "link", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "pubDate", - "columnName": "pubDate", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "description", - "columnName": "description", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "content", - "columnName": "content", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "image", - "columnName": "image", - "affinity": "TEXT", - "notNull": false - } - ], - "primaryKey": { - "columnNames": [ - "origin", - "link" - ], - "autoGenerate": false - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "txtTocRules", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER NOT NULL, `name` TEXT NOT NULL, `rule` TEXT NOT NULL, `serialNumber` INTEGER NOT NULL, `enable` INTEGER NOT NULL, PRIMARY KEY(`id`))", - "fields": [ - { - "fieldPath": "id", - "columnName": "id", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "rule", - "columnName": "rule", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "serialNumber", - "columnName": "serialNumber", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "enable", - "columnName": "enable", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "id" - ], - "autoGenerate": false - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "readRecord", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`androidId` TEXT NOT NULL, `bookName` TEXT NOT NULL, `readTime` INTEGER NOT NULL, PRIMARY KEY(`androidId`, `bookName`))", - "fields": [ - { - "fieldPath": "androidId", - "columnName": "androidId", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookName", - "columnName": "bookName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "readTime", - "columnName": "readTime", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "androidId", - "bookName" - ], - "autoGenerate": false - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "httpTTS", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER NOT NULL, `name` TEXT NOT NULL, `url` TEXT NOT NULL, PRIMARY KEY(`id`))", - "fields": [ - { - "fieldPath": "id", - "columnName": "id", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "url", - "columnName": "url", - "affinity": "TEXT", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "id" - ], - "autoGenerate": false - }, - "indices": [], - "foreignKeys": [] - } - ], - "views": [], - "setupQueries": [ - "CREATE TABLE IF NOT EXISTS room_master_table (id INTEGER PRIMARY KEY,identity_hash TEXT)", - "INSERT OR REPLACE INTO room_master_table (id,identity_hash) VALUES(42, 'eac4e5b7fdad840e82c1f607a3a8a46a')" - ] - } -} \ No newline at end of file diff --git a/app/schemas/io.legado.app.data.AppDatabase/22.json b/app/schemas/io.legado.app.data.AppDatabase/22.json deleted file mode 100644 index 02a64213a..000000000 --- a/app/schemas/io.legado.app.data.AppDatabase/22.json +++ /dev/null @@ -1,1277 +0,0 @@ -{ - "formatVersion": 1, - "database": { - "version": 22, - "identityHash": "9cf4f754700355578a8b8bf045c0e8e1", - "entities": [ - { - "tableName": "books", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`bookUrl` TEXT NOT NULL, `tocUrl` TEXT NOT NULL, `origin` TEXT NOT NULL, `originName` TEXT NOT NULL, `name` TEXT NOT NULL, `author` TEXT NOT NULL, `kind` TEXT, `customTag` TEXT, `coverUrl` TEXT, `customCoverUrl` TEXT, `intro` TEXT, `customIntro` TEXT, `charset` TEXT, `type` INTEGER NOT NULL, `group` INTEGER NOT NULL, `latestChapterTitle` TEXT, `latestChapterTime` INTEGER NOT NULL, `lastCheckTime` INTEGER NOT NULL, `lastCheckCount` INTEGER NOT NULL, `totalChapterNum` INTEGER NOT NULL, `durChapterTitle` TEXT, `durChapterIndex` INTEGER NOT NULL, `durChapterPos` INTEGER NOT NULL, `durChapterTime` INTEGER NOT NULL, `wordCount` TEXT, `canUpdate` INTEGER NOT NULL, `order` INTEGER NOT NULL, `originOrder` INTEGER NOT NULL, `variable` TEXT, `readConfig` TEXT, PRIMARY KEY(`bookUrl`))", - "fields": [ - { - "fieldPath": "bookUrl", - "columnName": "bookUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "tocUrl", - "columnName": "tocUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "origin", - "columnName": "origin", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "originName", - "columnName": "originName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "author", - "columnName": "author", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "kind", - "columnName": "kind", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "customTag", - "columnName": "customTag", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "coverUrl", - "columnName": "coverUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "customCoverUrl", - "columnName": "customCoverUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "intro", - "columnName": "intro", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "customIntro", - "columnName": "customIntro", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "charset", - "columnName": "charset", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "type", - "columnName": "type", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "group", - "columnName": "group", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "latestChapterTitle", - "columnName": "latestChapterTitle", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "latestChapterTime", - "columnName": "latestChapterTime", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "lastCheckTime", - "columnName": "lastCheckTime", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "lastCheckCount", - "columnName": "lastCheckCount", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "totalChapterNum", - "columnName": "totalChapterNum", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "durChapterTitle", - "columnName": "durChapterTitle", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "durChapterIndex", - "columnName": "durChapterIndex", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "durChapterPos", - "columnName": "durChapterPos", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "durChapterTime", - "columnName": "durChapterTime", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "wordCount", - "columnName": "wordCount", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "canUpdate", - "columnName": "canUpdate", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "order", - "columnName": "order", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "originOrder", - "columnName": "originOrder", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "variable", - "columnName": "variable", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "readConfig", - "columnName": "readConfig", - "affinity": "TEXT", - "notNull": false - } - ], - "primaryKey": { - "columnNames": [ - "bookUrl" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_books_name_author", - "unique": true, - "columnNames": [ - "name", - "author" - ], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_books_name_author` ON `${TABLE_NAME}` (`name`, `author`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "book_groups", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`groupId` INTEGER NOT NULL, `groupName` TEXT NOT NULL, `order` INTEGER NOT NULL, `show` INTEGER NOT NULL, PRIMARY KEY(`groupId`))", - "fields": [ - { - "fieldPath": "groupId", - "columnName": "groupId", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "groupName", - "columnName": "groupName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "order", - "columnName": "order", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "show", - "columnName": "show", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "groupId" - ], - "autoGenerate": false - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "book_sources", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`bookSourceName` TEXT NOT NULL, `bookSourceGroup` TEXT, `bookSourceUrl` TEXT NOT NULL, `bookSourceType` INTEGER NOT NULL, `bookUrlPattern` TEXT, `customOrder` INTEGER NOT NULL, `enabled` INTEGER NOT NULL, `enabledExplore` INTEGER NOT NULL, `header` TEXT, `loginUrl` TEXT, `bookSourceComment` TEXT, `lastUpdateTime` INTEGER NOT NULL, `weight` INTEGER NOT NULL, `exploreUrl` TEXT, `ruleExplore` TEXT, `searchUrl` TEXT, `ruleSearch` TEXT, `ruleBookInfo` TEXT, `ruleToc` TEXT, `ruleContent` TEXT, PRIMARY KEY(`bookSourceUrl`))", - "fields": [ - { - "fieldPath": "bookSourceName", - "columnName": "bookSourceName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookSourceGroup", - "columnName": "bookSourceGroup", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "bookSourceUrl", - "columnName": "bookSourceUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookSourceType", - "columnName": "bookSourceType", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "bookUrlPattern", - "columnName": "bookUrlPattern", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "customOrder", - "columnName": "customOrder", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "enabled", - "columnName": "enabled", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "enabledExplore", - "columnName": "enabledExplore", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "header", - "columnName": "header", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "loginUrl", - "columnName": "loginUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "bookSourceComment", - "columnName": "bookSourceComment", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "lastUpdateTime", - "columnName": "lastUpdateTime", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "weight", - "columnName": "weight", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "exploreUrl", - "columnName": "exploreUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleExplore", - "columnName": "ruleExplore", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "searchUrl", - "columnName": "searchUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleSearch", - "columnName": "ruleSearch", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleBookInfo", - "columnName": "ruleBookInfo", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleToc", - "columnName": "ruleToc", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleContent", - "columnName": "ruleContent", - "affinity": "TEXT", - "notNull": false - } - ], - "primaryKey": { - "columnNames": [ - "bookSourceUrl" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_book_sources_bookSourceUrl", - "unique": false, - "columnNames": [ - "bookSourceUrl" - ], - "createSql": "CREATE INDEX IF NOT EXISTS `index_book_sources_bookSourceUrl` ON `${TABLE_NAME}` (`bookSourceUrl`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "chapters", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`url` TEXT NOT NULL, `title` TEXT NOT NULL, `bookUrl` TEXT NOT NULL, `index` INTEGER NOT NULL, `resourceUrl` TEXT, `tag` TEXT, `start` INTEGER, `end` INTEGER, `variable` TEXT, PRIMARY KEY(`url`, `bookUrl`), FOREIGN KEY(`bookUrl`) REFERENCES `books`(`bookUrl`) ON UPDATE NO ACTION ON DELETE CASCADE )", - "fields": [ - { - "fieldPath": "url", - "columnName": "url", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "title", - "columnName": "title", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookUrl", - "columnName": "bookUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "index", - "columnName": "index", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "resourceUrl", - "columnName": "resourceUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "tag", - "columnName": "tag", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "start", - "columnName": "start", - "affinity": "INTEGER", - "notNull": false - }, - { - "fieldPath": "end", - "columnName": "end", - "affinity": "INTEGER", - "notNull": false - }, - { - "fieldPath": "variable", - "columnName": "variable", - "affinity": "TEXT", - "notNull": false - } - ], - "primaryKey": { - "columnNames": [ - "url", - "bookUrl" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_chapters_bookUrl", - "unique": false, - "columnNames": [ - "bookUrl" - ], - "createSql": "CREATE INDEX IF NOT EXISTS `index_chapters_bookUrl` ON `${TABLE_NAME}` (`bookUrl`)" - }, - { - "name": "index_chapters_bookUrl_index", - "unique": true, - "columnNames": [ - "bookUrl", - "index" - ], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_chapters_bookUrl_index` ON `${TABLE_NAME}` (`bookUrl`, `index`)" - } - ], - "foreignKeys": [ - { - "table": "books", - "onDelete": "CASCADE", - "onUpdate": "NO ACTION", - "columns": [ - "bookUrl" - ], - "referencedColumns": [ - "bookUrl" - ] - } - ] - }, - { - "tableName": "replace_rules", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, `name` TEXT NOT NULL, `group` TEXT, `pattern` TEXT NOT NULL, `replacement` TEXT NOT NULL, `scope` TEXT, `isEnabled` INTEGER NOT NULL, `isRegex` INTEGER NOT NULL, `sortOrder` INTEGER NOT NULL)", - "fields": [ - { - "fieldPath": "id", - "columnName": "id", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "group", - "columnName": "group", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "pattern", - "columnName": "pattern", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "replacement", - "columnName": "replacement", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "scope", - "columnName": "scope", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "isEnabled", - "columnName": "isEnabled", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "isRegex", - "columnName": "isRegex", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "order", - "columnName": "sortOrder", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "id" - ], - "autoGenerate": true - }, - "indices": [ - { - "name": "index_replace_rules_id", - "unique": false, - "columnNames": [ - "id" - ], - "createSql": "CREATE INDEX IF NOT EXISTS `index_replace_rules_id` ON `${TABLE_NAME}` (`id`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "searchBooks", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`bookUrl` TEXT NOT NULL, `origin` TEXT NOT NULL, `originName` TEXT NOT NULL, `type` INTEGER NOT NULL, `name` TEXT NOT NULL, `author` TEXT NOT NULL, `kind` TEXT, `coverUrl` TEXT, `intro` TEXT, `wordCount` TEXT, `latestChapterTitle` TEXT, `tocUrl` TEXT NOT NULL, `time` INTEGER NOT NULL, `variable` TEXT, `originOrder` INTEGER NOT NULL, PRIMARY KEY(`bookUrl`), FOREIGN KEY(`origin`) REFERENCES `book_sources`(`bookSourceUrl`) ON UPDATE NO ACTION ON DELETE CASCADE )", - "fields": [ - { - "fieldPath": "bookUrl", - "columnName": "bookUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "origin", - "columnName": "origin", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "originName", - "columnName": "originName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "type", - "columnName": "type", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "author", - "columnName": "author", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "kind", - "columnName": "kind", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "coverUrl", - "columnName": "coverUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "intro", - "columnName": "intro", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "wordCount", - "columnName": "wordCount", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "latestChapterTitle", - "columnName": "latestChapterTitle", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "tocUrl", - "columnName": "tocUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "time", - "columnName": "time", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "variable", - "columnName": "variable", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "originOrder", - "columnName": "originOrder", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "bookUrl" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_searchBooks_bookUrl", - "unique": true, - "columnNames": [ - "bookUrl" - ], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_searchBooks_bookUrl` ON `${TABLE_NAME}` (`bookUrl`)" - }, - { - "name": "index_searchBooks_origin", - "unique": false, - "columnNames": [ - "origin" - ], - "createSql": "CREATE INDEX IF NOT EXISTS `index_searchBooks_origin` ON `${TABLE_NAME}` (`origin`)" - } - ], - "foreignKeys": [ - { - "table": "book_sources", - "onDelete": "CASCADE", - "onUpdate": "NO ACTION", - "columns": [ - "origin" - ], - "referencedColumns": [ - "bookSourceUrl" - ] - } - ] - }, - { - "tableName": "search_keywords", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`word` TEXT NOT NULL, `usage` INTEGER NOT NULL, `lastUseTime` INTEGER NOT NULL, PRIMARY KEY(`word`))", - "fields": [ - { - "fieldPath": "word", - "columnName": "word", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "usage", - "columnName": "usage", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "lastUseTime", - "columnName": "lastUseTime", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "word" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_search_keywords_word", - "unique": true, - "columnNames": [ - "word" - ], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_search_keywords_word` ON `${TABLE_NAME}` (`word`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "cookies", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`url` TEXT NOT NULL, `cookie` TEXT NOT NULL, PRIMARY KEY(`url`))", - "fields": [ - { - "fieldPath": "url", - "columnName": "url", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "cookie", - "columnName": "cookie", - "affinity": "TEXT", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "url" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_cookies_url", - "unique": true, - "columnNames": [ - "url" - ], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_cookies_url` ON `${TABLE_NAME}` (`url`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "rssSources", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`sourceUrl` TEXT NOT NULL, `sourceName` TEXT NOT NULL, `sourceIcon` TEXT NOT NULL, `sourceGroup` TEXT, `enabled` INTEGER NOT NULL, `sortUrl` TEXT, `articleStyle` INTEGER NOT NULL, `ruleArticles` TEXT, `ruleNextPage` TEXT, `ruleTitle` TEXT, `rulePubDate` TEXT, `ruleDescription` TEXT, `ruleImage` TEXT, `ruleLink` TEXT, `ruleContent` TEXT, `style` TEXT, `header` TEXT, `enableJs` INTEGER NOT NULL, `loadWithBaseUrl` INTEGER NOT NULL, `customOrder` INTEGER NOT NULL, PRIMARY KEY(`sourceUrl`))", - "fields": [ - { - "fieldPath": "sourceUrl", - "columnName": "sourceUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "sourceName", - "columnName": "sourceName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "sourceIcon", - "columnName": "sourceIcon", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "sourceGroup", - "columnName": "sourceGroup", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "enabled", - "columnName": "enabled", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "sortUrl", - "columnName": "sortUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "articleStyle", - "columnName": "articleStyle", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "ruleArticles", - "columnName": "ruleArticles", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleNextPage", - "columnName": "ruleNextPage", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleTitle", - "columnName": "ruleTitle", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "rulePubDate", - "columnName": "rulePubDate", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleDescription", - "columnName": "ruleDescription", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleImage", - "columnName": "ruleImage", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleLink", - "columnName": "ruleLink", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleContent", - "columnName": "ruleContent", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "style", - "columnName": "style", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "header", - "columnName": "header", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "enableJs", - "columnName": "enableJs", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "loadWithBaseUrl", - "columnName": "loadWithBaseUrl", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "customOrder", - "columnName": "customOrder", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "sourceUrl" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_rssSources_sourceUrl", - "unique": false, - "columnNames": [ - "sourceUrl" - ], - "createSql": "CREATE INDEX IF NOT EXISTS `index_rssSources_sourceUrl` ON `${TABLE_NAME}` (`sourceUrl`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "bookmarks", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`time` INTEGER NOT NULL, `bookUrl` TEXT NOT NULL, `bookName` TEXT NOT NULL, `bookAuthor` TEXT NOT NULL, `chapterIndex` INTEGER NOT NULL, `pageIndex` INTEGER NOT NULL, `chapterName` TEXT NOT NULL, `content` TEXT NOT NULL, PRIMARY KEY(`time`))", - "fields": [ - { - "fieldPath": "time", - "columnName": "time", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "bookUrl", - "columnName": "bookUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookName", - "columnName": "bookName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookAuthor", - "columnName": "bookAuthor", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "chapterIndex", - "columnName": "chapterIndex", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "pageIndex", - "columnName": "pageIndex", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "chapterName", - "columnName": "chapterName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "content", - "columnName": "content", - "affinity": "TEXT", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "time" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_bookmarks_time", - "unique": true, - "columnNames": [ - "time" - ], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_bookmarks_time` ON `${TABLE_NAME}` (`time`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "rssArticles", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`origin` TEXT NOT NULL, `sort` TEXT NOT NULL, `title` TEXT NOT NULL, `order` INTEGER NOT NULL, `link` TEXT NOT NULL, `pubDate` TEXT, `description` TEXT, `content` TEXT, `image` TEXT, `read` INTEGER NOT NULL, PRIMARY KEY(`origin`, `link`))", - "fields": [ - { - "fieldPath": "origin", - "columnName": "origin", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "sort", - "columnName": "sort", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "title", - "columnName": "title", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "order", - "columnName": "order", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "link", - "columnName": "link", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "pubDate", - "columnName": "pubDate", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "description", - "columnName": "description", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "content", - "columnName": "content", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "image", - "columnName": "image", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "read", - "columnName": "read", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "origin", - "link" - ], - "autoGenerate": false - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "rssReadRecords", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`record` TEXT NOT NULL, `read` INTEGER NOT NULL, PRIMARY KEY(`record`))", - "fields": [ - { - "fieldPath": "record", - "columnName": "record", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "read", - "columnName": "read", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "record" - ], - "autoGenerate": false - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "rssStars", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`origin` TEXT NOT NULL, `sort` TEXT NOT NULL, `title` TEXT NOT NULL, `starTime` INTEGER NOT NULL, `link` TEXT NOT NULL, `pubDate` TEXT, `description` TEXT, `content` TEXT, `image` TEXT, PRIMARY KEY(`origin`, `link`))", - "fields": [ - { - "fieldPath": "origin", - "columnName": "origin", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "sort", - "columnName": "sort", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "title", - "columnName": "title", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "starTime", - "columnName": "starTime", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "link", - "columnName": "link", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "pubDate", - "columnName": "pubDate", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "description", - "columnName": "description", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "content", - "columnName": "content", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "image", - "columnName": "image", - "affinity": "TEXT", - "notNull": false - } - ], - "primaryKey": { - "columnNames": [ - "origin", - "link" - ], - "autoGenerate": false - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "txtTocRules", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER NOT NULL, `name` TEXT NOT NULL, `rule` TEXT NOT NULL, `serialNumber` INTEGER NOT NULL, `enable` INTEGER NOT NULL, PRIMARY KEY(`id`))", - "fields": [ - { - "fieldPath": "id", - "columnName": "id", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "rule", - "columnName": "rule", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "serialNumber", - "columnName": "serialNumber", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "enable", - "columnName": "enable", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "id" - ], - "autoGenerate": false - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "readRecord", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`androidId` TEXT NOT NULL, `bookName` TEXT NOT NULL, `readTime` INTEGER NOT NULL, PRIMARY KEY(`androidId`, `bookName`))", - "fields": [ - { - "fieldPath": "androidId", - "columnName": "androidId", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookName", - "columnName": "bookName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "readTime", - "columnName": "readTime", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "androidId", - "bookName" - ], - "autoGenerate": false - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "httpTTS", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER NOT NULL, `name` TEXT NOT NULL, `url` TEXT NOT NULL, PRIMARY KEY(`id`))", - "fields": [ - { - "fieldPath": "id", - "columnName": "id", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "url", - "columnName": "url", - "affinity": "TEXT", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "id" - ], - "autoGenerate": false - }, - "indices": [], - "foreignKeys": [] - } - ], - "views": [], - "setupQueries": [ - "CREATE TABLE IF NOT EXISTS room_master_table (id INTEGER PRIMARY KEY,identity_hash TEXT)", - "INSERT OR REPLACE INTO room_master_table (id,identity_hash) VALUES(42, '9cf4f754700355578a8b8bf045c0e8e1')" - ] - } -} \ No newline at end of file diff --git a/app/schemas/io.legado.app.data.AppDatabase/23.json b/app/schemas/io.legado.app.data.AppDatabase/23.json deleted file mode 100644 index 48934cae4..000000000 --- a/app/schemas/io.legado.app.data.AppDatabase/23.json +++ /dev/null @@ -1,1283 +0,0 @@ -{ - "formatVersion": 1, - "database": { - "version": 23, - "identityHash": "874aa30f88921306741b488dbad38536", - "entities": [ - { - "tableName": "books", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`bookUrl` TEXT NOT NULL, `tocUrl` TEXT NOT NULL, `origin` TEXT NOT NULL, `originName` TEXT NOT NULL, `name` TEXT NOT NULL, `author` TEXT NOT NULL, `kind` TEXT, `customTag` TEXT, `coverUrl` TEXT, `customCoverUrl` TEXT, `intro` TEXT, `customIntro` TEXT, `charset` TEXT, `type` INTEGER NOT NULL, `group` INTEGER NOT NULL, `latestChapterTitle` TEXT, `latestChapterTime` INTEGER NOT NULL, `lastCheckTime` INTEGER NOT NULL, `lastCheckCount` INTEGER NOT NULL, `totalChapterNum` INTEGER NOT NULL, `durChapterTitle` TEXT, `durChapterIndex` INTEGER NOT NULL, `durChapterPos` INTEGER NOT NULL, `durChapterTime` INTEGER NOT NULL, `wordCount` TEXT, `canUpdate` INTEGER NOT NULL, `order` INTEGER NOT NULL, `originOrder` INTEGER NOT NULL, `variable` TEXT, `readConfig` TEXT, PRIMARY KEY(`bookUrl`))", - "fields": [ - { - "fieldPath": "bookUrl", - "columnName": "bookUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "tocUrl", - "columnName": "tocUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "origin", - "columnName": "origin", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "originName", - "columnName": "originName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "author", - "columnName": "author", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "kind", - "columnName": "kind", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "customTag", - "columnName": "customTag", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "coverUrl", - "columnName": "coverUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "customCoverUrl", - "columnName": "customCoverUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "intro", - "columnName": "intro", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "customIntro", - "columnName": "customIntro", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "charset", - "columnName": "charset", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "type", - "columnName": "type", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "group", - "columnName": "group", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "latestChapterTitle", - "columnName": "latestChapterTitle", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "latestChapterTime", - "columnName": "latestChapterTime", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "lastCheckTime", - "columnName": "lastCheckTime", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "lastCheckCount", - "columnName": "lastCheckCount", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "totalChapterNum", - "columnName": "totalChapterNum", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "durChapterTitle", - "columnName": "durChapterTitle", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "durChapterIndex", - "columnName": "durChapterIndex", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "durChapterPos", - "columnName": "durChapterPos", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "durChapterTime", - "columnName": "durChapterTime", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "wordCount", - "columnName": "wordCount", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "canUpdate", - "columnName": "canUpdate", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "order", - "columnName": "order", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "originOrder", - "columnName": "originOrder", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "variable", - "columnName": "variable", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "readConfig", - "columnName": "readConfig", - "affinity": "TEXT", - "notNull": false - } - ], - "primaryKey": { - "columnNames": [ - "bookUrl" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_books_name_author", - "unique": true, - "columnNames": [ - "name", - "author" - ], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_books_name_author` ON `${TABLE_NAME}` (`name`, `author`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "book_groups", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`groupId` INTEGER NOT NULL, `groupName` TEXT NOT NULL, `order` INTEGER NOT NULL, `show` INTEGER NOT NULL, PRIMARY KEY(`groupId`))", - "fields": [ - { - "fieldPath": "groupId", - "columnName": "groupId", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "groupName", - "columnName": "groupName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "order", - "columnName": "order", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "show", - "columnName": "show", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "groupId" - ], - "autoGenerate": false - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "book_sources", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`bookSourceName` TEXT NOT NULL, `bookSourceGroup` TEXT, `bookSourceUrl` TEXT NOT NULL, `bookSourceType` INTEGER NOT NULL, `bookUrlPattern` TEXT, `customOrder` INTEGER NOT NULL, `enabled` INTEGER NOT NULL, `enabledExplore` INTEGER NOT NULL, `header` TEXT, `loginUrl` TEXT, `bookSourceComment` TEXT, `lastUpdateTime` INTEGER NOT NULL, `weight` INTEGER NOT NULL, `exploreUrl` TEXT, `ruleExplore` TEXT, `searchUrl` TEXT, `ruleSearch` TEXT, `ruleBookInfo` TEXT, `ruleToc` TEXT, `ruleContent` TEXT, PRIMARY KEY(`bookSourceUrl`))", - "fields": [ - { - "fieldPath": "bookSourceName", - "columnName": "bookSourceName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookSourceGroup", - "columnName": "bookSourceGroup", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "bookSourceUrl", - "columnName": "bookSourceUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookSourceType", - "columnName": "bookSourceType", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "bookUrlPattern", - "columnName": "bookUrlPattern", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "customOrder", - "columnName": "customOrder", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "enabled", - "columnName": "enabled", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "enabledExplore", - "columnName": "enabledExplore", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "header", - "columnName": "header", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "loginUrl", - "columnName": "loginUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "bookSourceComment", - "columnName": "bookSourceComment", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "lastUpdateTime", - "columnName": "lastUpdateTime", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "weight", - "columnName": "weight", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "exploreUrl", - "columnName": "exploreUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleExplore", - "columnName": "ruleExplore", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "searchUrl", - "columnName": "searchUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleSearch", - "columnName": "ruleSearch", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleBookInfo", - "columnName": "ruleBookInfo", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleToc", - "columnName": "ruleToc", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleContent", - "columnName": "ruleContent", - "affinity": "TEXT", - "notNull": false - } - ], - "primaryKey": { - "columnNames": [ - "bookSourceUrl" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_book_sources_bookSourceUrl", - "unique": false, - "columnNames": [ - "bookSourceUrl" - ], - "createSql": "CREATE INDEX IF NOT EXISTS `index_book_sources_bookSourceUrl` ON `${TABLE_NAME}` (`bookSourceUrl`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "chapters", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`url` TEXT NOT NULL, `title` TEXT NOT NULL, `baseUrl` TEXT NOT NULL, `bookUrl` TEXT NOT NULL, `index` INTEGER NOT NULL, `resourceUrl` TEXT, `tag` TEXT, `start` INTEGER, `end` INTEGER, `variable` TEXT, PRIMARY KEY(`url`, `bookUrl`), FOREIGN KEY(`bookUrl`) REFERENCES `books`(`bookUrl`) ON UPDATE NO ACTION ON DELETE CASCADE )", - "fields": [ - { - "fieldPath": "url", - "columnName": "url", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "title", - "columnName": "title", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "baseUrl", - "columnName": "baseUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookUrl", - "columnName": "bookUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "index", - "columnName": "index", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "resourceUrl", - "columnName": "resourceUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "tag", - "columnName": "tag", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "start", - "columnName": "start", - "affinity": "INTEGER", - "notNull": false - }, - { - "fieldPath": "end", - "columnName": "end", - "affinity": "INTEGER", - "notNull": false - }, - { - "fieldPath": "variable", - "columnName": "variable", - "affinity": "TEXT", - "notNull": false - } - ], - "primaryKey": { - "columnNames": [ - "url", - "bookUrl" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_chapters_bookUrl", - "unique": false, - "columnNames": [ - "bookUrl" - ], - "createSql": "CREATE INDEX IF NOT EXISTS `index_chapters_bookUrl` ON `${TABLE_NAME}` (`bookUrl`)" - }, - { - "name": "index_chapters_bookUrl_index", - "unique": true, - "columnNames": [ - "bookUrl", - "index" - ], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_chapters_bookUrl_index` ON `${TABLE_NAME}` (`bookUrl`, `index`)" - } - ], - "foreignKeys": [ - { - "table": "books", - "onDelete": "CASCADE", - "onUpdate": "NO ACTION", - "columns": [ - "bookUrl" - ], - "referencedColumns": [ - "bookUrl" - ] - } - ] - }, - { - "tableName": "replace_rules", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, `name` TEXT NOT NULL, `group` TEXT, `pattern` TEXT NOT NULL, `replacement` TEXT NOT NULL, `scope` TEXT, `isEnabled` INTEGER NOT NULL, `isRegex` INTEGER NOT NULL, `sortOrder` INTEGER NOT NULL)", - "fields": [ - { - "fieldPath": "id", - "columnName": "id", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "group", - "columnName": "group", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "pattern", - "columnName": "pattern", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "replacement", - "columnName": "replacement", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "scope", - "columnName": "scope", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "isEnabled", - "columnName": "isEnabled", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "isRegex", - "columnName": "isRegex", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "order", - "columnName": "sortOrder", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "id" - ], - "autoGenerate": true - }, - "indices": [ - { - "name": "index_replace_rules_id", - "unique": false, - "columnNames": [ - "id" - ], - "createSql": "CREATE INDEX IF NOT EXISTS `index_replace_rules_id` ON `${TABLE_NAME}` (`id`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "searchBooks", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`bookUrl` TEXT NOT NULL, `origin` TEXT NOT NULL, `originName` TEXT NOT NULL, `type` INTEGER NOT NULL, `name` TEXT NOT NULL, `author` TEXT NOT NULL, `kind` TEXT, `coverUrl` TEXT, `intro` TEXT, `wordCount` TEXT, `latestChapterTitle` TEXT, `tocUrl` TEXT NOT NULL, `time` INTEGER NOT NULL, `variable` TEXT, `originOrder` INTEGER NOT NULL, PRIMARY KEY(`bookUrl`), FOREIGN KEY(`origin`) REFERENCES `book_sources`(`bookSourceUrl`) ON UPDATE NO ACTION ON DELETE CASCADE )", - "fields": [ - { - "fieldPath": "bookUrl", - "columnName": "bookUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "origin", - "columnName": "origin", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "originName", - "columnName": "originName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "type", - "columnName": "type", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "author", - "columnName": "author", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "kind", - "columnName": "kind", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "coverUrl", - "columnName": "coverUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "intro", - "columnName": "intro", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "wordCount", - "columnName": "wordCount", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "latestChapterTitle", - "columnName": "latestChapterTitle", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "tocUrl", - "columnName": "tocUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "time", - "columnName": "time", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "variable", - "columnName": "variable", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "originOrder", - "columnName": "originOrder", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "bookUrl" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_searchBooks_bookUrl", - "unique": true, - "columnNames": [ - "bookUrl" - ], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_searchBooks_bookUrl` ON `${TABLE_NAME}` (`bookUrl`)" - }, - { - "name": "index_searchBooks_origin", - "unique": false, - "columnNames": [ - "origin" - ], - "createSql": "CREATE INDEX IF NOT EXISTS `index_searchBooks_origin` ON `${TABLE_NAME}` (`origin`)" - } - ], - "foreignKeys": [ - { - "table": "book_sources", - "onDelete": "CASCADE", - "onUpdate": "NO ACTION", - "columns": [ - "origin" - ], - "referencedColumns": [ - "bookSourceUrl" - ] - } - ] - }, - { - "tableName": "search_keywords", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`word` TEXT NOT NULL, `usage` INTEGER NOT NULL, `lastUseTime` INTEGER NOT NULL, PRIMARY KEY(`word`))", - "fields": [ - { - "fieldPath": "word", - "columnName": "word", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "usage", - "columnName": "usage", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "lastUseTime", - "columnName": "lastUseTime", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "word" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_search_keywords_word", - "unique": true, - "columnNames": [ - "word" - ], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_search_keywords_word` ON `${TABLE_NAME}` (`word`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "cookies", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`url` TEXT NOT NULL, `cookie` TEXT NOT NULL, PRIMARY KEY(`url`))", - "fields": [ - { - "fieldPath": "url", - "columnName": "url", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "cookie", - "columnName": "cookie", - "affinity": "TEXT", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "url" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_cookies_url", - "unique": true, - "columnNames": [ - "url" - ], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_cookies_url` ON `${TABLE_NAME}` (`url`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "rssSources", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`sourceUrl` TEXT NOT NULL, `sourceName` TEXT NOT NULL, `sourceIcon` TEXT NOT NULL, `sourceGroup` TEXT, `enabled` INTEGER NOT NULL, `sortUrl` TEXT, `articleStyle` INTEGER NOT NULL, `ruleArticles` TEXT, `ruleNextPage` TEXT, `ruleTitle` TEXT, `rulePubDate` TEXT, `ruleDescription` TEXT, `ruleImage` TEXT, `ruleLink` TEXT, `ruleContent` TEXT, `style` TEXT, `header` TEXT, `enableJs` INTEGER NOT NULL, `loadWithBaseUrl` INTEGER NOT NULL, `customOrder` INTEGER NOT NULL, PRIMARY KEY(`sourceUrl`))", - "fields": [ - { - "fieldPath": "sourceUrl", - "columnName": "sourceUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "sourceName", - "columnName": "sourceName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "sourceIcon", - "columnName": "sourceIcon", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "sourceGroup", - "columnName": "sourceGroup", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "enabled", - "columnName": "enabled", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "sortUrl", - "columnName": "sortUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "articleStyle", - "columnName": "articleStyle", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "ruleArticles", - "columnName": "ruleArticles", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleNextPage", - "columnName": "ruleNextPage", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleTitle", - "columnName": "ruleTitle", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "rulePubDate", - "columnName": "rulePubDate", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleDescription", - "columnName": "ruleDescription", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleImage", - "columnName": "ruleImage", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleLink", - "columnName": "ruleLink", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleContent", - "columnName": "ruleContent", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "style", - "columnName": "style", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "header", - "columnName": "header", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "enableJs", - "columnName": "enableJs", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "loadWithBaseUrl", - "columnName": "loadWithBaseUrl", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "customOrder", - "columnName": "customOrder", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "sourceUrl" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_rssSources_sourceUrl", - "unique": false, - "columnNames": [ - "sourceUrl" - ], - "createSql": "CREATE INDEX IF NOT EXISTS `index_rssSources_sourceUrl` ON `${TABLE_NAME}` (`sourceUrl`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "bookmarks", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`time` INTEGER NOT NULL, `bookUrl` TEXT NOT NULL, `bookName` TEXT NOT NULL, `bookAuthor` TEXT NOT NULL, `chapterIndex` INTEGER NOT NULL, `pageIndex` INTEGER NOT NULL, `chapterName` TEXT NOT NULL, `content` TEXT NOT NULL, PRIMARY KEY(`time`))", - "fields": [ - { - "fieldPath": "time", - "columnName": "time", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "bookUrl", - "columnName": "bookUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookName", - "columnName": "bookName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookAuthor", - "columnName": "bookAuthor", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "chapterIndex", - "columnName": "chapterIndex", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "pageIndex", - "columnName": "pageIndex", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "chapterName", - "columnName": "chapterName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "content", - "columnName": "content", - "affinity": "TEXT", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "time" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_bookmarks_time", - "unique": true, - "columnNames": [ - "time" - ], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_bookmarks_time` ON `${TABLE_NAME}` (`time`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "rssArticles", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`origin` TEXT NOT NULL, `sort` TEXT NOT NULL, `title` TEXT NOT NULL, `order` INTEGER NOT NULL, `link` TEXT NOT NULL, `pubDate` TEXT, `description` TEXT, `content` TEXT, `image` TEXT, `read` INTEGER NOT NULL, PRIMARY KEY(`origin`, `link`))", - "fields": [ - { - "fieldPath": "origin", - "columnName": "origin", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "sort", - "columnName": "sort", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "title", - "columnName": "title", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "order", - "columnName": "order", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "link", - "columnName": "link", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "pubDate", - "columnName": "pubDate", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "description", - "columnName": "description", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "content", - "columnName": "content", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "image", - "columnName": "image", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "read", - "columnName": "read", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "origin", - "link" - ], - "autoGenerate": false - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "rssReadRecords", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`record` TEXT NOT NULL, `read` INTEGER NOT NULL, PRIMARY KEY(`record`))", - "fields": [ - { - "fieldPath": "record", - "columnName": "record", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "read", - "columnName": "read", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "record" - ], - "autoGenerate": false - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "rssStars", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`origin` TEXT NOT NULL, `sort` TEXT NOT NULL, `title` TEXT NOT NULL, `starTime` INTEGER NOT NULL, `link` TEXT NOT NULL, `pubDate` TEXT, `description` TEXT, `content` TEXT, `image` TEXT, PRIMARY KEY(`origin`, `link`))", - "fields": [ - { - "fieldPath": "origin", - "columnName": "origin", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "sort", - "columnName": "sort", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "title", - "columnName": "title", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "starTime", - "columnName": "starTime", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "link", - "columnName": "link", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "pubDate", - "columnName": "pubDate", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "description", - "columnName": "description", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "content", - "columnName": "content", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "image", - "columnName": "image", - "affinity": "TEXT", - "notNull": false - } - ], - "primaryKey": { - "columnNames": [ - "origin", - "link" - ], - "autoGenerate": false - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "txtTocRules", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER NOT NULL, `name` TEXT NOT NULL, `rule` TEXT NOT NULL, `serialNumber` INTEGER NOT NULL, `enable` INTEGER NOT NULL, PRIMARY KEY(`id`))", - "fields": [ - { - "fieldPath": "id", - "columnName": "id", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "rule", - "columnName": "rule", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "serialNumber", - "columnName": "serialNumber", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "enable", - "columnName": "enable", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "id" - ], - "autoGenerate": false - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "readRecord", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`androidId` TEXT NOT NULL, `bookName` TEXT NOT NULL, `readTime` INTEGER NOT NULL, PRIMARY KEY(`androidId`, `bookName`))", - "fields": [ - { - "fieldPath": "androidId", - "columnName": "androidId", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookName", - "columnName": "bookName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "readTime", - "columnName": "readTime", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "androidId", - "bookName" - ], - "autoGenerate": false - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "httpTTS", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER NOT NULL, `name` TEXT NOT NULL, `url` TEXT NOT NULL, PRIMARY KEY(`id`))", - "fields": [ - { - "fieldPath": "id", - "columnName": "id", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "url", - "columnName": "url", - "affinity": "TEXT", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "id" - ], - "autoGenerate": false - }, - "indices": [], - "foreignKeys": [] - } - ], - "views": [], - "setupQueries": [ - "CREATE TABLE IF NOT EXISTS room_master_table (id INTEGER PRIMARY KEY,identity_hash TEXT)", - "INSERT OR REPLACE INTO room_master_table (id,identity_hash) VALUES(42, '874aa30f88921306741b488dbad38536')" - ] - } -} \ No newline at end of file diff --git a/app/schemas/io.legado.app.data.AppDatabase/24.json b/app/schemas/io.legado.app.data.AppDatabase/24.json deleted file mode 100644 index 879ffdd5f..000000000 --- a/app/schemas/io.legado.app.data.AppDatabase/24.json +++ /dev/null @@ -1,1324 +0,0 @@ -{ - "formatVersion": 1, - "database": { - "version": 24, - "identityHash": "55416d5a8a8530659ae3e7f948c0058b", - "entities": [ - { - "tableName": "books", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`bookUrl` TEXT NOT NULL, `tocUrl` TEXT NOT NULL, `origin` TEXT NOT NULL, `originName` TEXT NOT NULL, `name` TEXT NOT NULL, `author` TEXT NOT NULL, `kind` TEXT, `customTag` TEXT, `coverUrl` TEXT, `customCoverUrl` TEXT, `intro` TEXT, `customIntro` TEXT, `charset` TEXT, `type` INTEGER NOT NULL, `group` INTEGER NOT NULL, `latestChapterTitle` TEXT, `latestChapterTime` INTEGER NOT NULL, `lastCheckTime` INTEGER NOT NULL, `lastCheckCount` INTEGER NOT NULL, `totalChapterNum` INTEGER NOT NULL, `durChapterTitle` TEXT, `durChapterIndex` INTEGER NOT NULL, `durChapterPos` INTEGER NOT NULL, `durChapterTime` INTEGER NOT NULL, `wordCount` TEXT, `canUpdate` INTEGER NOT NULL, `order` INTEGER NOT NULL, `originOrder` INTEGER NOT NULL, `variable` TEXT, `readConfig` TEXT, PRIMARY KEY(`bookUrl`))", - "fields": [ - { - "fieldPath": "bookUrl", - "columnName": "bookUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "tocUrl", - "columnName": "tocUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "origin", - "columnName": "origin", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "originName", - "columnName": "originName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "author", - "columnName": "author", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "kind", - "columnName": "kind", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "customTag", - "columnName": "customTag", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "coverUrl", - "columnName": "coverUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "customCoverUrl", - "columnName": "customCoverUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "intro", - "columnName": "intro", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "customIntro", - "columnName": "customIntro", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "charset", - "columnName": "charset", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "type", - "columnName": "type", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "group", - "columnName": "group", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "latestChapterTitle", - "columnName": "latestChapterTitle", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "latestChapterTime", - "columnName": "latestChapterTime", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "lastCheckTime", - "columnName": "lastCheckTime", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "lastCheckCount", - "columnName": "lastCheckCount", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "totalChapterNum", - "columnName": "totalChapterNum", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "durChapterTitle", - "columnName": "durChapterTitle", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "durChapterIndex", - "columnName": "durChapterIndex", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "durChapterPos", - "columnName": "durChapterPos", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "durChapterTime", - "columnName": "durChapterTime", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "wordCount", - "columnName": "wordCount", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "canUpdate", - "columnName": "canUpdate", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "order", - "columnName": "order", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "originOrder", - "columnName": "originOrder", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "variable", - "columnName": "variable", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "readConfig", - "columnName": "readConfig", - "affinity": "TEXT", - "notNull": false - } - ], - "primaryKey": { - "columnNames": [ - "bookUrl" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_books_name_author", - "unique": true, - "columnNames": [ - "name", - "author" - ], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_books_name_author` ON `${TABLE_NAME}` (`name`, `author`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "book_groups", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`groupId` INTEGER NOT NULL, `groupName` TEXT NOT NULL, `order` INTEGER NOT NULL, `show` INTEGER NOT NULL, PRIMARY KEY(`groupId`))", - "fields": [ - { - "fieldPath": "groupId", - "columnName": "groupId", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "groupName", - "columnName": "groupName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "order", - "columnName": "order", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "show", - "columnName": "show", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "groupId" - ], - "autoGenerate": false - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "book_sources", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`bookSourceName` TEXT NOT NULL, `bookSourceGroup` TEXT, `bookSourceUrl` TEXT NOT NULL, `bookSourceType` INTEGER NOT NULL, `bookUrlPattern` TEXT, `customOrder` INTEGER NOT NULL, `enabled` INTEGER NOT NULL, `enabledExplore` INTEGER NOT NULL, `header` TEXT, `loginUrl` TEXT, `bookSourceComment` TEXT, `lastUpdateTime` INTEGER NOT NULL, `weight` INTEGER NOT NULL, `exploreUrl` TEXT, `ruleExplore` TEXT, `searchUrl` TEXT, `ruleSearch` TEXT, `ruleBookInfo` TEXT, `ruleToc` TEXT, `ruleContent` TEXT, PRIMARY KEY(`bookSourceUrl`))", - "fields": [ - { - "fieldPath": "bookSourceName", - "columnName": "bookSourceName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookSourceGroup", - "columnName": "bookSourceGroup", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "bookSourceUrl", - "columnName": "bookSourceUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookSourceType", - "columnName": "bookSourceType", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "bookUrlPattern", - "columnName": "bookUrlPattern", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "customOrder", - "columnName": "customOrder", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "enabled", - "columnName": "enabled", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "enabledExplore", - "columnName": "enabledExplore", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "header", - "columnName": "header", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "loginUrl", - "columnName": "loginUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "bookSourceComment", - "columnName": "bookSourceComment", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "lastUpdateTime", - "columnName": "lastUpdateTime", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "weight", - "columnName": "weight", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "exploreUrl", - "columnName": "exploreUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleExplore", - "columnName": "ruleExplore", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "searchUrl", - "columnName": "searchUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleSearch", - "columnName": "ruleSearch", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleBookInfo", - "columnName": "ruleBookInfo", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleToc", - "columnName": "ruleToc", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleContent", - "columnName": "ruleContent", - "affinity": "TEXT", - "notNull": false - } - ], - "primaryKey": { - "columnNames": [ - "bookSourceUrl" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_book_sources_bookSourceUrl", - "unique": false, - "columnNames": [ - "bookSourceUrl" - ], - "createSql": "CREATE INDEX IF NOT EXISTS `index_book_sources_bookSourceUrl` ON `${TABLE_NAME}` (`bookSourceUrl`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "chapters", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`url` TEXT NOT NULL, `title` TEXT NOT NULL, `baseUrl` TEXT NOT NULL, `bookUrl` TEXT NOT NULL, `index` INTEGER NOT NULL, `resourceUrl` TEXT, `tag` TEXT, `start` INTEGER, `end` INTEGER, `variable` TEXT, PRIMARY KEY(`url`, `bookUrl`), FOREIGN KEY(`bookUrl`) REFERENCES `books`(`bookUrl`) ON UPDATE NO ACTION ON DELETE CASCADE )", - "fields": [ - { - "fieldPath": "url", - "columnName": "url", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "title", - "columnName": "title", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "baseUrl", - "columnName": "baseUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookUrl", - "columnName": "bookUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "index", - "columnName": "index", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "resourceUrl", - "columnName": "resourceUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "tag", - "columnName": "tag", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "start", - "columnName": "start", - "affinity": "INTEGER", - "notNull": false - }, - { - "fieldPath": "end", - "columnName": "end", - "affinity": "INTEGER", - "notNull": false - }, - { - "fieldPath": "variable", - "columnName": "variable", - "affinity": "TEXT", - "notNull": false - } - ], - "primaryKey": { - "columnNames": [ - "url", - "bookUrl" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_chapters_bookUrl", - "unique": false, - "columnNames": [ - "bookUrl" - ], - "createSql": "CREATE INDEX IF NOT EXISTS `index_chapters_bookUrl` ON `${TABLE_NAME}` (`bookUrl`)" - }, - { - "name": "index_chapters_bookUrl_index", - "unique": true, - "columnNames": [ - "bookUrl", - "index" - ], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_chapters_bookUrl_index` ON `${TABLE_NAME}` (`bookUrl`, `index`)" - } - ], - "foreignKeys": [ - { - "table": "books", - "onDelete": "CASCADE", - "onUpdate": "NO ACTION", - "columns": [ - "bookUrl" - ], - "referencedColumns": [ - "bookUrl" - ] - } - ] - }, - { - "tableName": "replace_rules", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, `name` TEXT NOT NULL, `group` TEXT, `pattern` TEXT NOT NULL, `replacement` TEXT NOT NULL, `scope` TEXT, `isEnabled` INTEGER NOT NULL, `isRegex` INTEGER NOT NULL, `sortOrder` INTEGER NOT NULL)", - "fields": [ - { - "fieldPath": "id", - "columnName": "id", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "group", - "columnName": "group", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "pattern", - "columnName": "pattern", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "replacement", - "columnName": "replacement", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "scope", - "columnName": "scope", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "isEnabled", - "columnName": "isEnabled", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "isRegex", - "columnName": "isRegex", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "order", - "columnName": "sortOrder", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "id" - ], - "autoGenerate": true - }, - "indices": [ - { - "name": "index_replace_rules_id", - "unique": false, - "columnNames": [ - "id" - ], - "createSql": "CREATE INDEX IF NOT EXISTS `index_replace_rules_id` ON `${TABLE_NAME}` (`id`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "searchBooks", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`bookUrl` TEXT NOT NULL, `origin` TEXT NOT NULL, `originName` TEXT NOT NULL, `type` INTEGER NOT NULL, `name` TEXT NOT NULL, `author` TEXT NOT NULL, `kind` TEXT, `coverUrl` TEXT, `intro` TEXT, `wordCount` TEXT, `latestChapterTitle` TEXT, `tocUrl` TEXT NOT NULL, `time` INTEGER NOT NULL, `variable` TEXT, `originOrder` INTEGER NOT NULL, PRIMARY KEY(`bookUrl`), FOREIGN KEY(`origin`) REFERENCES `book_sources`(`bookSourceUrl`) ON UPDATE NO ACTION ON DELETE CASCADE )", - "fields": [ - { - "fieldPath": "bookUrl", - "columnName": "bookUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "origin", - "columnName": "origin", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "originName", - "columnName": "originName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "type", - "columnName": "type", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "author", - "columnName": "author", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "kind", - "columnName": "kind", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "coverUrl", - "columnName": "coverUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "intro", - "columnName": "intro", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "wordCount", - "columnName": "wordCount", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "latestChapterTitle", - "columnName": "latestChapterTitle", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "tocUrl", - "columnName": "tocUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "time", - "columnName": "time", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "variable", - "columnName": "variable", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "originOrder", - "columnName": "originOrder", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "bookUrl" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_searchBooks_bookUrl", - "unique": true, - "columnNames": [ - "bookUrl" - ], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_searchBooks_bookUrl` ON `${TABLE_NAME}` (`bookUrl`)" - }, - { - "name": "index_searchBooks_origin", - "unique": false, - "columnNames": [ - "origin" - ], - "createSql": "CREATE INDEX IF NOT EXISTS `index_searchBooks_origin` ON `${TABLE_NAME}` (`origin`)" - } - ], - "foreignKeys": [ - { - "table": "book_sources", - "onDelete": "CASCADE", - "onUpdate": "NO ACTION", - "columns": [ - "origin" - ], - "referencedColumns": [ - "bookSourceUrl" - ] - } - ] - }, - { - "tableName": "search_keywords", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`word` TEXT NOT NULL, `usage` INTEGER NOT NULL, `lastUseTime` INTEGER NOT NULL, PRIMARY KEY(`word`))", - "fields": [ - { - "fieldPath": "word", - "columnName": "word", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "usage", - "columnName": "usage", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "lastUseTime", - "columnName": "lastUseTime", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "word" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_search_keywords_word", - "unique": true, - "columnNames": [ - "word" - ], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_search_keywords_word` ON `${TABLE_NAME}` (`word`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "cookies", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`url` TEXT NOT NULL, `cookie` TEXT NOT NULL, PRIMARY KEY(`url`))", - "fields": [ - { - "fieldPath": "url", - "columnName": "url", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "cookie", - "columnName": "cookie", - "affinity": "TEXT", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "url" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_cookies_url", - "unique": true, - "columnNames": [ - "url" - ], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_cookies_url` ON `${TABLE_NAME}` (`url`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "rssSources", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`sourceUrl` TEXT NOT NULL, `sourceName` TEXT NOT NULL, `sourceIcon` TEXT NOT NULL, `sourceGroup` TEXT, `enabled` INTEGER NOT NULL, `sortUrl` TEXT, `articleStyle` INTEGER NOT NULL, `ruleArticles` TEXT, `ruleNextPage` TEXT, `ruleTitle` TEXT, `rulePubDate` TEXT, `ruleDescription` TEXT, `ruleImage` TEXT, `ruleLink` TEXT, `ruleContent` TEXT, `style` TEXT, `header` TEXT, `enableJs` INTEGER NOT NULL, `loadWithBaseUrl` INTEGER NOT NULL, `customOrder` INTEGER NOT NULL, PRIMARY KEY(`sourceUrl`))", - "fields": [ - { - "fieldPath": "sourceUrl", - "columnName": "sourceUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "sourceName", - "columnName": "sourceName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "sourceIcon", - "columnName": "sourceIcon", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "sourceGroup", - "columnName": "sourceGroup", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "enabled", - "columnName": "enabled", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "sortUrl", - "columnName": "sortUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "articleStyle", - "columnName": "articleStyle", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "ruleArticles", - "columnName": "ruleArticles", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleNextPage", - "columnName": "ruleNextPage", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleTitle", - "columnName": "ruleTitle", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "rulePubDate", - "columnName": "rulePubDate", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleDescription", - "columnName": "ruleDescription", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleImage", - "columnName": "ruleImage", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleLink", - "columnName": "ruleLink", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleContent", - "columnName": "ruleContent", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "style", - "columnName": "style", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "header", - "columnName": "header", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "enableJs", - "columnName": "enableJs", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "loadWithBaseUrl", - "columnName": "loadWithBaseUrl", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "customOrder", - "columnName": "customOrder", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "sourceUrl" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_rssSources_sourceUrl", - "unique": false, - "columnNames": [ - "sourceUrl" - ], - "createSql": "CREATE INDEX IF NOT EXISTS `index_rssSources_sourceUrl` ON `${TABLE_NAME}` (`sourceUrl`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "bookmarks", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`time` INTEGER NOT NULL, `bookUrl` TEXT NOT NULL, `bookName` TEXT NOT NULL, `bookAuthor` TEXT NOT NULL, `chapterIndex` INTEGER NOT NULL, `pageIndex` INTEGER NOT NULL, `chapterName` TEXT NOT NULL, `content` TEXT NOT NULL, PRIMARY KEY(`time`))", - "fields": [ - { - "fieldPath": "time", - "columnName": "time", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "bookUrl", - "columnName": "bookUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookName", - "columnName": "bookName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookAuthor", - "columnName": "bookAuthor", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "chapterIndex", - "columnName": "chapterIndex", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "pageIndex", - "columnName": "pageIndex", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "chapterName", - "columnName": "chapterName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "content", - "columnName": "content", - "affinity": "TEXT", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "time" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_bookmarks_time", - "unique": true, - "columnNames": [ - "time" - ], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_bookmarks_time` ON `${TABLE_NAME}` (`time`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "rssArticles", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`origin` TEXT NOT NULL, `sort` TEXT NOT NULL, `title` TEXT NOT NULL, `order` INTEGER NOT NULL, `link` TEXT NOT NULL, `pubDate` TEXT, `description` TEXT, `content` TEXT, `image` TEXT, `read` INTEGER NOT NULL, PRIMARY KEY(`origin`, `link`))", - "fields": [ - { - "fieldPath": "origin", - "columnName": "origin", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "sort", - "columnName": "sort", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "title", - "columnName": "title", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "order", - "columnName": "order", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "link", - "columnName": "link", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "pubDate", - "columnName": "pubDate", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "description", - "columnName": "description", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "content", - "columnName": "content", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "image", - "columnName": "image", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "read", - "columnName": "read", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "origin", - "link" - ], - "autoGenerate": false - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "rssReadRecords", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`record` TEXT NOT NULL, `read` INTEGER NOT NULL, PRIMARY KEY(`record`))", - "fields": [ - { - "fieldPath": "record", - "columnName": "record", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "read", - "columnName": "read", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "record" - ], - "autoGenerate": false - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "rssStars", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`origin` TEXT NOT NULL, `sort` TEXT NOT NULL, `title` TEXT NOT NULL, `starTime` INTEGER NOT NULL, `link` TEXT NOT NULL, `pubDate` TEXT, `description` TEXT, `content` TEXT, `image` TEXT, PRIMARY KEY(`origin`, `link`))", - "fields": [ - { - "fieldPath": "origin", - "columnName": "origin", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "sort", - "columnName": "sort", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "title", - "columnName": "title", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "starTime", - "columnName": "starTime", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "link", - "columnName": "link", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "pubDate", - "columnName": "pubDate", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "description", - "columnName": "description", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "content", - "columnName": "content", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "image", - "columnName": "image", - "affinity": "TEXT", - "notNull": false - } - ], - "primaryKey": { - "columnNames": [ - "origin", - "link" - ], - "autoGenerate": false - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "txtTocRules", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER NOT NULL, `name` TEXT NOT NULL, `rule` TEXT NOT NULL, `serialNumber` INTEGER NOT NULL, `enable` INTEGER NOT NULL, PRIMARY KEY(`id`))", - "fields": [ - { - "fieldPath": "id", - "columnName": "id", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "rule", - "columnName": "rule", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "serialNumber", - "columnName": "serialNumber", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "enable", - "columnName": "enable", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "id" - ], - "autoGenerate": false - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "readRecord", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`androidId` TEXT NOT NULL, `bookName` TEXT NOT NULL, `readTime` INTEGER NOT NULL, PRIMARY KEY(`androidId`, `bookName`))", - "fields": [ - { - "fieldPath": "androidId", - "columnName": "androidId", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookName", - "columnName": "bookName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "readTime", - "columnName": "readTime", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "androidId", - "bookName" - ], - "autoGenerate": false - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "httpTTS", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER NOT NULL, `name` TEXT NOT NULL, `url` TEXT NOT NULL, PRIMARY KEY(`id`))", - "fields": [ - { - "fieldPath": "id", - "columnName": "id", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "url", - "columnName": "url", - "affinity": "TEXT", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "id" - ], - "autoGenerate": false - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "caches", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`key` TEXT NOT NULL, `value` TEXT, `deadline` INTEGER NOT NULL, PRIMARY KEY(`key`))", - "fields": [ - { - "fieldPath": "key", - "columnName": "key", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "value", - "columnName": "value", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "deadline", - "columnName": "deadline", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "key" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_caches_key", - "unique": true, - "columnNames": [ - "key" - ], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_caches_key` ON `${TABLE_NAME}` (`key`)" - } - ], - "foreignKeys": [] - } - ], - "views": [], - "setupQueries": [ - "CREATE TABLE IF NOT EXISTS room_master_table (id INTEGER PRIMARY KEY,identity_hash TEXT)", - "INSERT OR REPLACE INTO room_master_table (id,identity_hash) VALUES(42, '55416d5a8a8530659ae3e7f948c0058b')" - ] - } -} \ No newline at end of file diff --git a/app/schemas/io.legado.app.data.AppDatabase/25.json b/app/schemas/io.legado.app.data.AppDatabase/25.json deleted file mode 100644 index c5e40e258..000000000 --- a/app/schemas/io.legado.app.data.AppDatabase/25.json +++ /dev/null @@ -1,1368 +0,0 @@ -{ - "formatVersion": 1, - "database": { - "version": 25, - "identityHash": "469ee9861faf7f562d7c60bc15a4a58b", - "entities": [ - { - "tableName": "books", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`bookUrl` TEXT NOT NULL, `tocUrl` TEXT NOT NULL, `origin` TEXT NOT NULL, `originName` TEXT NOT NULL, `name` TEXT NOT NULL, `author` TEXT NOT NULL, `kind` TEXT, `customTag` TEXT, `coverUrl` TEXT, `customCoverUrl` TEXT, `intro` TEXT, `customIntro` TEXT, `charset` TEXT, `type` INTEGER NOT NULL, `group` INTEGER NOT NULL, `latestChapterTitle` TEXT, `latestChapterTime` INTEGER NOT NULL, `lastCheckTime` INTEGER NOT NULL, `lastCheckCount` INTEGER NOT NULL, `totalChapterNum` INTEGER NOT NULL, `durChapterTitle` TEXT, `durChapterIndex` INTEGER NOT NULL, `durChapterPos` INTEGER NOT NULL, `durChapterTime` INTEGER NOT NULL, `wordCount` TEXT, `canUpdate` INTEGER NOT NULL, `order` INTEGER NOT NULL, `originOrder` INTEGER NOT NULL, `variable` TEXT, `readConfig` TEXT, PRIMARY KEY(`bookUrl`))", - "fields": [ - { - "fieldPath": "bookUrl", - "columnName": "bookUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "tocUrl", - "columnName": "tocUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "origin", - "columnName": "origin", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "originName", - "columnName": "originName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "author", - "columnName": "author", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "kind", - "columnName": "kind", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "customTag", - "columnName": "customTag", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "coverUrl", - "columnName": "coverUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "customCoverUrl", - "columnName": "customCoverUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "intro", - "columnName": "intro", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "customIntro", - "columnName": "customIntro", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "charset", - "columnName": "charset", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "type", - "columnName": "type", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "group", - "columnName": "group", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "latestChapterTitle", - "columnName": "latestChapterTitle", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "latestChapterTime", - "columnName": "latestChapterTime", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "lastCheckTime", - "columnName": "lastCheckTime", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "lastCheckCount", - "columnName": "lastCheckCount", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "totalChapterNum", - "columnName": "totalChapterNum", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "durChapterTitle", - "columnName": "durChapterTitle", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "durChapterIndex", - "columnName": "durChapterIndex", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "durChapterPos", - "columnName": "durChapterPos", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "durChapterTime", - "columnName": "durChapterTime", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "wordCount", - "columnName": "wordCount", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "canUpdate", - "columnName": "canUpdate", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "order", - "columnName": "order", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "originOrder", - "columnName": "originOrder", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "variable", - "columnName": "variable", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "readConfig", - "columnName": "readConfig", - "affinity": "TEXT", - "notNull": false - } - ], - "primaryKey": { - "columnNames": [ - "bookUrl" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_books_name_author", - "unique": true, - "columnNames": [ - "name", - "author" - ], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_books_name_author` ON `${TABLE_NAME}` (`name`, `author`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "book_groups", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`groupId` INTEGER NOT NULL, `groupName` TEXT NOT NULL, `order` INTEGER NOT NULL, `show` INTEGER NOT NULL, PRIMARY KEY(`groupId`))", - "fields": [ - { - "fieldPath": "groupId", - "columnName": "groupId", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "groupName", - "columnName": "groupName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "order", - "columnName": "order", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "show", - "columnName": "show", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "groupId" - ], - "autoGenerate": false - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "book_sources", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`bookSourceName` TEXT NOT NULL, `bookSourceGroup` TEXT, `bookSourceUrl` TEXT NOT NULL, `bookSourceType` INTEGER NOT NULL, `bookUrlPattern` TEXT, `customOrder` INTEGER NOT NULL, `enabled` INTEGER NOT NULL, `enabledExplore` INTEGER NOT NULL, `header` TEXT, `loginUrl` TEXT, `bookSourceComment` TEXT, `lastUpdateTime` INTEGER NOT NULL, `weight` INTEGER NOT NULL, `exploreUrl` TEXT, `ruleExplore` TEXT, `searchUrl` TEXT, `ruleSearch` TEXT, `ruleBookInfo` TEXT, `ruleToc` TEXT, `ruleContent` TEXT, PRIMARY KEY(`bookSourceUrl`))", - "fields": [ - { - "fieldPath": "bookSourceName", - "columnName": "bookSourceName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookSourceGroup", - "columnName": "bookSourceGroup", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "bookSourceUrl", - "columnName": "bookSourceUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookSourceType", - "columnName": "bookSourceType", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "bookUrlPattern", - "columnName": "bookUrlPattern", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "customOrder", - "columnName": "customOrder", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "enabled", - "columnName": "enabled", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "enabledExplore", - "columnName": "enabledExplore", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "header", - "columnName": "header", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "loginUrl", - "columnName": "loginUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "bookSourceComment", - "columnName": "bookSourceComment", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "lastUpdateTime", - "columnName": "lastUpdateTime", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "weight", - "columnName": "weight", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "exploreUrl", - "columnName": "exploreUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleExplore", - "columnName": "ruleExplore", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "searchUrl", - "columnName": "searchUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleSearch", - "columnName": "ruleSearch", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleBookInfo", - "columnName": "ruleBookInfo", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleToc", - "columnName": "ruleToc", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleContent", - "columnName": "ruleContent", - "affinity": "TEXT", - "notNull": false - } - ], - "primaryKey": { - "columnNames": [ - "bookSourceUrl" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_book_sources_bookSourceUrl", - "unique": false, - "columnNames": [ - "bookSourceUrl" - ], - "createSql": "CREATE INDEX IF NOT EXISTS `index_book_sources_bookSourceUrl` ON `${TABLE_NAME}` (`bookSourceUrl`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "chapters", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`url` TEXT NOT NULL, `title` TEXT NOT NULL, `baseUrl` TEXT NOT NULL, `bookUrl` TEXT NOT NULL, `index` INTEGER NOT NULL, `resourceUrl` TEXT, `tag` TEXT, `start` INTEGER, `end` INTEGER, `variable` TEXT, PRIMARY KEY(`url`, `bookUrl`), FOREIGN KEY(`bookUrl`) REFERENCES `books`(`bookUrl`) ON UPDATE NO ACTION ON DELETE CASCADE )", - "fields": [ - { - "fieldPath": "url", - "columnName": "url", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "title", - "columnName": "title", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "baseUrl", - "columnName": "baseUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookUrl", - "columnName": "bookUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "index", - "columnName": "index", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "resourceUrl", - "columnName": "resourceUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "tag", - "columnName": "tag", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "start", - "columnName": "start", - "affinity": "INTEGER", - "notNull": false - }, - { - "fieldPath": "end", - "columnName": "end", - "affinity": "INTEGER", - "notNull": false - }, - { - "fieldPath": "variable", - "columnName": "variable", - "affinity": "TEXT", - "notNull": false - } - ], - "primaryKey": { - "columnNames": [ - "url", - "bookUrl" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_chapters_bookUrl", - "unique": false, - "columnNames": [ - "bookUrl" - ], - "createSql": "CREATE INDEX IF NOT EXISTS `index_chapters_bookUrl` ON `${TABLE_NAME}` (`bookUrl`)" - }, - { - "name": "index_chapters_bookUrl_index", - "unique": true, - "columnNames": [ - "bookUrl", - "index" - ], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_chapters_bookUrl_index` ON `${TABLE_NAME}` (`bookUrl`, `index`)" - } - ], - "foreignKeys": [ - { - "table": "books", - "onDelete": "CASCADE", - "onUpdate": "NO ACTION", - "columns": [ - "bookUrl" - ], - "referencedColumns": [ - "bookUrl" - ] - } - ] - }, - { - "tableName": "replace_rules", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, `name` TEXT NOT NULL, `group` TEXT, `pattern` TEXT NOT NULL, `replacement` TEXT NOT NULL, `scope` TEXT, `isEnabled` INTEGER NOT NULL, `isRegex` INTEGER NOT NULL, `sortOrder` INTEGER NOT NULL)", - "fields": [ - { - "fieldPath": "id", - "columnName": "id", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "group", - "columnName": "group", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "pattern", - "columnName": "pattern", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "replacement", - "columnName": "replacement", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "scope", - "columnName": "scope", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "isEnabled", - "columnName": "isEnabled", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "isRegex", - "columnName": "isRegex", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "order", - "columnName": "sortOrder", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "id" - ], - "autoGenerate": true - }, - "indices": [ - { - "name": "index_replace_rules_id", - "unique": false, - "columnNames": [ - "id" - ], - "createSql": "CREATE INDEX IF NOT EXISTS `index_replace_rules_id` ON `${TABLE_NAME}` (`id`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "searchBooks", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`bookUrl` TEXT NOT NULL, `origin` TEXT NOT NULL, `originName` TEXT NOT NULL, `type` INTEGER NOT NULL, `name` TEXT NOT NULL, `author` TEXT NOT NULL, `kind` TEXT, `coverUrl` TEXT, `intro` TEXT, `wordCount` TEXT, `latestChapterTitle` TEXT, `tocUrl` TEXT NOT NULL, `time` INTEGER NOT NULL, `variable` TEXT, `originOrder` INTEGER NOT NULL, PRIMARY KEY(`bookUrl`), FOREIGN KEY(`origin`) REFERENCES `book_sources`(`bookSourceUrl`) ON UPDATE NO ACTION ON DELETE CASCADE )", - "fields": [ - { - "fieldPath": "bookUrl", - "columnName": "bookUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "origin", - "columnName": "origin", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "originName", - "columnName": "originName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "type", - "columnName": "type", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "author", - "columnName": "author", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "kind", - "columnName": "kind", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "coverUrl", - "columnName": "coverUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "intro", - "columnName": "intro", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "wordCount", - "columnName": "wordCount", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "latestChapterTitle", - "columnName": "latestChapterTitle", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "tocUrl", - "columnName": "tocUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "time", - "columnName": "time", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "variable", - "columnName": "variable", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "originOrder", - "columnName": "originOrder", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "bookUrl" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_searchBooks_bookUrl", - "unique": true, - "columnNames": [ - "bookUrl" - ], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_searchBooks_bookUrl` ON `${TABLE_NAME}` (`bookUrl`)" - }, - { - "name": "index_searchBooks_origin", - "unique": false, - "columnNames": [ - "origin" - ], - "createSql": "CREATE INDEX IF NOT EXISTS `index_searchBooks_origin` ON `${TABLE_NAME}` (`origin`)" - } - ], - "foreignKeys": [ - { - "table": "book_sources", - "onDelete": "CASCADE", - "onUpdate": "NO ACTION", - "columns": [ - "origin" - ], - "referencedColumns": [ - "bookSourceUrl" - ] - } - ] - }, - { - "tableName": "search_keywords", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`word` TEXT NOT NULL, `usage` INTEGER NOT NULL, `lastUseTime` INTEGER NOT NULL, PRIMARY KEY(`word`))", - "fields": [ - { - "fieldPath": "word", - "columnName": "word", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "usage", - "columnName": "usage", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "lastUseTime", - "columnName": "lastUseTime", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "word" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_search_keywords_word", - "unique": true, - "columnNames": [ - "word" - ], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_search_keywords_word` ON `${TABLE_NAME}` (`word`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "cookies", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`url` TEXT NOT NULL, `cookie` TEXT NOT NULL, PRIMARY KEY(`url`))", - "fields": [ - { - "fieldPath": "url", - "columnName": "url", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "cookie", - "columnName": "cookie", - "affinity": "TEXT", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "url" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_cookies_url", - "unique": true, - "columnNames": [ - "url" - ], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_cookies_url` ON `${TABLE_NAME}` (`url`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "rssSources", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`sourceUrl` TEXT NOT NULL, `sourceName` TEXT NOT NULL, `sourceIcon` TEXT NOT NULL, `sourceGroup` TEXT, `enabled` INTEGER NOT NULL, `sortUrl` TEXT, `articleStyle` INTEGER NOT NULL, `ruleArticles` TEXT, `ruleNextPage` TEXT, `ruleTitle` TEXT, `rulePubDate` TEXT, `ruleDescription` TEXT, `ruleImage` TEXT, `ruleLink` TEXT, `ruleContent` TEXT, `style` TEXT, `header` TEXT, `enableJs` INTEGER NOT NULL, `loadWithBaseUrl` INTEGER NOT NULL, `customOrder` INTEGER NOT NULL, PRIMARY KEY(`sourceUrl`))", - "fields": [ - { - "fieldPath": "sourceUrl", - "columnName": "sourceUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "sourceName", - "columnName": "sourceName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "sourceIcon", - "columnName": "sourceIcon", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "sourceGroup", - "columnName": "sourceGroup", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "enabled", - "columnName": "enabled", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "sortUrl", - "columnName": "sortUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "articleStyle", - "columnName": "articleStyle", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "ruleArticles", - "columnName": "ruleArticles", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleNextPage", - "columnName": "ruleNextPage", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleTitle", - "columnName": "ruleTitle", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "rulePubDate", - "columnName": "rulePubDate", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleDescription", - "columnName": "ruleDescription", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleImage", - "columnName": "ruleImage", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleLink", - "columnName": "ruleLink", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleContent", - "columnName": "ruleContent", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "style", - "columnName": "style", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "header", - "columnName": "header", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "enableJs", - "columnName": "enableJs", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "loadWithBaseUrl", - "columnName": "loadWithBaseUrl", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "customOrder", - "columnName": "customOrder", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "sourceUrl" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_rssSources_sourceUrl", - "unique": false, - "columnNames": [ - "sourceUrl" - ], - "createSql": "CREATE INDEX IF NOT EXISTS `index_rssSources_sourceUrl` ON `${TABLE_NAME}` (`sourceUrl`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "bookmarks", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`time` INTEGER NOT NULL, `bookUrl` TEXT NOT NULL, `bookName` TEXT NOT NULL, `bookAuthor` TEXT NOT NULL, `chapterIndex` INTEGER NOT NULL, `pageIndex` INTEGER NOT NULL, `chapterName` TEXT NOT NULL, `content` TEXT NOT NULL, PRIMARY KEY(`time`))", - "fields": [ - { - "fieldPath": "time", - "columnName": "time", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "bookUrl", - "columnName": "bookUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookName", - "columnName": "bookName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookAuthor", - "columnName": "bookAuthor", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "chapterIndex", - "columnName": "chapterIndex", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "pageIndex", - "columnName": "pageIndex", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "chapterName", - "columnName": "chapterName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "content", - "columnName": "content", - "affinity": "TEXT", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "time" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_bookmarks_time", - "unique": true, - "columnNames": [ - "time" - ], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_bookmarks_time` ON `${TABLE_NAME}` (`time`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "rssArticles", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`origin` TEXT NOT NULL, `sort` TEXT NOT NULL, `title` TEXT NOT NULL, `order` INTEGER NOT NULL, `link` TEXT NOT NULL, `pubDate` TEXT, `description` TEXT, `content` TEXT, `image` TEXT, `read` INTEGER NOT NULL, PRIMARY KEY(`origin`, `link`))", - "fields": [ - { - "fieldPath": "origin", - "columnName": "origin", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "sort", - "columnName": "sort", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "title", - "columnName": "title", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "order", - "columnName": "order", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "link", - "columnName": "link", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "pubDate", - "columnName": "pubDate", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "description", - "columnName": "description", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "content", - "columnName": "content", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "image", - "columnName": "image", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "read", - "columnName": "read", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "origin", - "link" - ], - "autoGenerate": false - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "rssReadRecords", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`record` TEXT NOT NULL, `read` INTEGER NOT NULL, PRIMARY KEY(`record`))", - "fields": [ - { - "fieldPath": "record", - "columnName": "record", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "read", - "columnName": "read", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "record" - ], - "autoGenerate": false - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "rssStars", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`origin` TEXT NOT NULL, `sort` TEXT NOT NULL, `title` TEXT NOT NULL, `starTime` INTEGER NOT NULL, `link` TEXT NOT NULL, `pubDate` TEXT, `description` TEXT, `content` TEXT, `image` TEXT, PRIMARY KEY(`origin`, `link`))", - "fields": [ - { - "fieldPath": "origin", - "columnName": "origin", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "sort", - "columnName": "sort", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "title", - "columnName": "title", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "starTime", - "columnName": "starTime", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "link", - "columnName": "link", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "pubDate", - "columnName": "pubDate", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "description", - "columnName": "description", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "content", - "columnName": "content", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "image", - "columnName": "image", - "affinity": "TEXT", - "notNull": false - } - ], - "primaryKey": { - "columnNames": [ - "origin", - "link" - ], - "autoGenerate": false - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "txtTocRules", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER NOT NULL, `name` TEXT NOT NULL, `rule` TEXT NOT NULL, `serialNumber` INTEGER NOT NULL, `enable` INTEGER NOT NULL, PRIMARY KEY(`id`))", - "fields": [ - { - "fieldPath": "id", - "columnName": "id", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "rule", - "columnName": "rule", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "serialNumber", - "columnName": "serialNumber", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "enable", - "columnName": "enable", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "id" - ], - "autoGenerate": false - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "readRecord", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`androidId` TEXT NOT NULL, `bookName` TEXT NOT NULL, `readTime` INTEGER NOT NULL, PRIMARY KEY(`androidId`, `bookName`))", - "fields": [ - { - "fieldPath": "androidId", - "columnName": "androidId", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookName", - "columnName": "bookName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "readTime", - "columnName": "readTime", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "androidId", - "bookName" - ], - "autoGenerate": false - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "httpTTS", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER NOT NULL, `name` TEXT NOT NULL, `url` TEXT NOT NULL, PRIMARY KEY(`id`))", - "fields": [ - { - "fieldPath": "id", - "columnName": "id", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "url", - "columnName": "url", - "affinity": "TEXT", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "id" - ], - "autoGenerate": false - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "caches", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`key` TEXT NOT NULL, `value` TEXT, `deadline` INTEGER NOT NULL, PRIMARY KEY(`key`))", - "fields": [ - { - "fieldPath": "key", - "columnName": "key", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "value", - "columnName": "value", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "deadline", - "columnName": "deadline", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "key" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_caches_key", - "unique": true, - "columnNames": [ - "key" - ], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_caches_key` ON `${TABLE_NAME}` (`key`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "sourceSubs", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER NOT NULL, `name` TEXT NOT NULL, `url` TEXT NOT NULL, `type` INTEGER NOT NULL, `customOrder` INTEGER NOT NULL, PRIMARY KEY(`id`))", - "fields": [ - { - "fieldPath": "id", - "columnName": "id", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "url", - "columnName": "url", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "type", - "columnName": "type", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "customOrder", - "columnName": "customOrder", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "id" - ], - "autoGenerate": false - }, - "indices": [], - "foreignKeys": [] - } - ], - "views": [], - "setupQueries": [ - "CREATE TABLE IF NOT EXISTS room_master_table (id INTEGER PRIMARY KEY,identity_hash TEXT)", - "INSERT OR REPLACE INTO room_master_table (id,identity_hash) VALUES(42, '469ee9861faf7f562d7c60bc15a4a58b')" - ] - } -} \ No newline at end of file diff --git a/app/schemas/io.legado.app.data.AppDatabase/26.json b/app/schemas/io.legado.app.data.AppDatabase/26.json deleted file mode 100644 index 573b83e23..000000000 --- a/app/schemas/io.legado.app.data.AppDatabase/26.json +++ /dev/null @@ -1,1392 +0,0 @@ -{ - "formatVersion": 1, - "database": { - "version": 26, - "identityHash": "e20aa63032efb23c9e9c269afd64e7d7", - "entities": [ - { - "tableName": "books", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`bookUrl` TEXT NOT NULL, `tocUrl` TEXT NOT NULL, `origin` TEXT NOT NULL, `originName` TEXT NOT NULL, `name` TEXT NOT NULL, `author` TEXT NOT NULL, `kind` TEXT, `customTag` TEXT, `coverUrl` TEXT, `customCoverUrl` TEXT, `intro` TEXT, `customIntro` TEXT, `charset` TEXT, `type` INTEGER NOT NULL, `group` INTEGER NOT NULL, `latestChapterTitle` TEXT, `latestChapterTime` INTEGER NOT NULL, `lastCheckTime` INTEGER NOT NULL, `lastCheckCount` INTEGER NOT NULL, `totalChapterNum` INTEGER NOT NULL, `durChapterTitle` TEXT, `durChapterIndex` INTEGER NOT NULL, `durChapterPos` INTEGER NOT NULL, `durChapterTime` INTEGER NOT NULL, `wordCount` TEXT, `canUpdate` INTEGER NOT NULL, `order` INTEGER NOT NULL, `originOrder` INTEGER NOT NULL, `variable` TEXT, `readConfig` TEXT, PRIMARY KEY(`bookUrl`))", - "fields": [ - { - "fieldPath": "bookUrl", - "columnName": "bookUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "tocUrl", - "columnName": "tocUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "origin", - "columnName": "origin", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "originName", - "columnName": "originName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "author", - "columnName": "author", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "kind", - "columnName": "kind", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "customTag", - "columnName": "customTag", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "coverUrl", - "columnName": "coverUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "customCoverUrl", - "columnName": "customCoverUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "intro", - "columnName": "intro", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "customIntro", - "columnName": "customIntro", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "charset", - "columnName": "charset", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "type", - "columnName": "type", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "group", - "columnName": "group", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "latestChapterTitle", - "columnName": "latestChapterTitle", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "latestChapterTime", - "columnName": "latestChapterTime", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "lastCheckTime", - "columnName": "lastCheckTime", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "lastCheckCount", - "columnName": "lastCheckCount", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "totalChapterNum", - "columnName": "totalChapterNum", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "durChapterTitle", - "columnName": "durChapterTitle", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "durChapterIndex", - "columnName": "durChapterIndex", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "durChapterPos", - "columnName": "durChapterPos", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "durChapterTime", - "columnName": "durChapterTime", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "wordCount", - "columnName": "wordCount", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "canUpdate", - "columnName": "canUpdate", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "order", - "columnName": "order", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "originOrder", - "columnName": "originOrder", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "variable", - "columnName": "variable", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "readConfig", - "columnName": "readConfig", - "affinity": "TEXT", - "notNull": false - } - ], - "primaryKey": { - "columnNames": [ - "bookUrl" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_books_name_author", - "unique": true, - "columnNames": [ - "name", - "author" - ], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_books_name_author` ON `${TABLE_NAME}` (`name`, `author`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "book_groups", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`groupId` INTEGER NOT NULL, `groupName` TEXT NOT NULL, `order` INTEGER NOT NULL, `show` INTEGER NOT NULL, PRIMARY KEY(`groupId`))", - "fields": [ - { - "fieldPath": "groupId", - "columnName": "groupId", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "groupName", - "columnName": "groupName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "order", - "columnName": "order", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "show", - "columnName": "show", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "groupId" - ], - "autoGenerate": false - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "book_sources", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`bookSourceName` TEXT NOT NULL, `bookSourceGroup` TEXT, `bookSourceUrl` TEXT NOT NULL, `bookSourceType` INTEGER NOT NULL, `bookUrlPattern` TEXT, `customOrder` INTEGER NOT NULL, `enabled` INTEGER NOT NULL, `enabledExplore` INTEGER NOT NULL, `header` TEXT, `loginUrl` TEXT, `bookSourceComment` TEXT, `lastUpdateTime` INTEGER NOT NULL, `weight` INTEGER NOT NULL, `exploreUrl` TEXT, `ruleExplore` TEXT, `searchUrl` TEXT, `ruleSearch` TEXT, `ruleBookInfo` TEXT, `ruleToc` TEXT, `ruleContent` TEXT, PRIMARY KEY(`bookSourceUrl`))", - "fields": [ - { - "fieldPath": "bookSourceName", - "columnName": "bookSourceName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookSourceGroup", - "columnName": "bookSourceGroup", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "bookSourceUrl", - "columnName": "bookSourceUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookSourceType", - "columnName": "bookSourceType", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "bookUrlPattern", - "columnName": "bookUrlPattern", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "customOrder", - "columnName": "customOrder", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "enabled", - "columnName": "enabled", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "enabledExplore", - "columnName": "enabledExplore", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "header", - "columnName": "header", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "loginUrl", - "columnName": "loginUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "bookSourceComment", - "columnName": "bookSourceComment", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "lastUpdateTime", - "columnName": "lastUpdateTime", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "weight", - "columnName": "weight", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "exploreUrl", - "columnName": "exploreUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleExplore", - "columnName": "ruleExplore", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "searchUrl", - "columnName": "searchUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleSearch", - "columnName": "ruleSearch", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleBookInfo", - "columnName": "ruleBookInfo", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleToc", - "columnName": "ruleToc", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleContent", - "columnName": "ruleContent", - "affinity": "TEXT", - "notNull": false - } - ], - "primaryKey": { - "columnNames": [ - "bookSourceUrl" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_book_sources_bookSourceUrl", - "unique": false, - "columnNames": [ - "bookSourceUrl" - ], - "createSql": "CREATE INDEX IF NOT EXISTS `index_book_sources_bookSourceUrl` ON `${TABLE_NAME}` (`bookSourceUrl`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "chapters", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`url` TEXT NOT NULL, `title` TEXT NOT NULL, `baseUrl` TEXT NOT NULL, `bookUrl` TEXT NOT NULL, `index` INTEGER NOT NULL, `resourceUrl` TEXT, `tag` TEXT, `start` INTEGER, `end` INTEGER, `variable` TEXT, PRIMARY KEY(`url`, `bookUrl`), FOREIGN KEY(`bookUrl`) REFERENCES `books`(`bookUrl`) ON UPDATE NO ACTION ON DELETE CASCADE )", - "fields": [ - { - "fieldPath": "url", - "columnName": "url", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "title", - "columnName": "title", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "baseUrl", - "columnName": "baseUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookUrl", - "columnName": "bookUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "index", - "columnName": "index", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "resourceUrl", - "columnName": "resourceUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "tag", - "columnName": "tag", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "start", - "columnName": "start", - "affinity": "INTEGER", - "notNull": false - }, - { - "fieldPath": "end", - "columnName": "end", - "affinity": "INTEGER", - "notNull": false - }, - { - "fieldPath": "variable", - "columnName": "variable", - "affinity": "TEXT", - "notNull": false - } - ], - "primaryKey": { - "columnNames": [ - "url", - "bookUrl" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_chapters_bookUrl", - "unique": false, - "columnNames": [ - "bookUrl" - ], - "createSql": "CREATE INDEX IF NOT EXISTS `index_chapters_bookUrl` ON `${TABLE_NAME}` (`bookUrl`)" - }, - { - "name": "index_chapters_bookUrl_index", - "unique": true, - "columnNames": [ - "bookUrl", - "index" - ], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_chapters_bookUrl_index` ON `${TABLE_NAME}` (`bookUrl`, `index`)" - } - ], - "foreignKeys": [ - { - "table": "books", - "onDelete": "CASCADE", - "onUpdate": "NO ACTION", - "columns": [ - "bookUrl" - ], - "referencedColumns": [ - "bookUrl" - ] - } - ] - }, - { - "tableName": "replace_rules", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, `name` TEXT NOT NULL, `group` TEXT, `pattern` TEXT NOT NULL, `replacement` TEXT NOT NULL, `scope` TEXT, `isEnabled` INTEGER NOT NULL, `isRegex` INTEGER NOT NULL, `sortOrder` INTEGER NOT NULL)", - "fields": [ - { - "fieldPath": "id", - "columnName": "id", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "group", - "columnName": "group", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "pattern", - "columnName": "pattern", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "replacement", - "columnName": "replacement", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "scope", - "columnName": "scope", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "isEnabled", - "columnName": "isEnabled", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "isRegex", - "columnName": "isRegex", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "order", - "columnName": "sortOrder", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "id" - ], - "autoGenerate": true - }, - "indices": [ - { - "name": "index_replace_rules_id", - "unique": false, - "columnNames": [ - "id" - ], - "createSql": "CREATE INDEX IF NOT EXISTS `index_replace_rules_id` ON `${TABLE_NAME}` (`id`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "searchBooks", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`bookUrl` TEXT NOT NULL, `origin` TEXT NOT NULL, `originName` TEXT NOT NULL, `type` INTEGER NOT NULL, `name` TEXT NOT NULL, `author` TEXT NOT NULL, `kind` TEXT, `coverUrl` TEXT, `intro` TEXT, `wordCount` TEXT, `latestChapterTitle` TEXT, `tocUrl` TEXT NOT NULL, `time` INTEGER NOT NULL, `variable` TEXT, `originOrder` INTEGER NOT NULL, PRIMARY KEY(`bookUrl`), FOREIGN KEY(`origin`) REFERENCES `book_sources`(`bookSourceUrl`) ON UPDATE NO ACTION ON DELETE CASCADE )", - "fields": [ - { - "fieldPath": "bookUrl", - "columnName": "bookUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "origin", - "columnName": "origin", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "originName", - "columnName": "originName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "type", - "columnName": "type", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "author", - "columnName": "author", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "kind", - "columnName": "kind", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "coverUrl", - "columnName": "coverUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "intro", - "columnName": "intro", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "wordCount", - "columnName": "wordCount", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "latestChapterTitle", - "columnName": "latestChapterTitle", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "tocUrl", - "columnName": "tocUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "time", - "columnName": "time", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "variable", - "columnName": "variable", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "originOrder", - "columnName": "originOrder", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "bookUrl" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_searchBooks_bookUrl", - "unique": true, - "columnNames": [ - "bookUrl" - ], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_searchBooks_bookUrl` ON `${TABLE_NAME}` (`bookUrl`)" - }, - { - "name": "index_searchBooks_origin", - "unique": false, - "columnNames": [ - "origin" - ], - "createSql": "CREATE INDEX IF NOT EXISTS `index_searchBooks_origin` ON `${TABLE_NAME}` (`origin`)" - } - ], - "foreignKeys": [ - { - "table": "book_sources", - "onDelete": "CASCADE", - "onUpdate": "NO ACTION", - "columns": [ - "origin" - ], - "referencedColumns": [ - "bookSourceUrl" - ] - } - ] - }, - { - "tableName": "search_keywords", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`word` TEXT NOT NULL, `usage` INTEGER NOT NULL, `lastUseTime` INTEGER NOT NULL, PRIMARY KEY(`word`))", - "fields": [ - { - "fieldPath": "word", - "columnName": "word", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "usage", - "columnName": "usage", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "lastUseTime", - "columnName": "lastUseTime", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "word" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_search_keywords_word", - "unique": true, - "columnNames": [ - "word" - ], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_search_keywords_word` ON `${TABLE_NAME}` (`word`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "cookies", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`url` TEXT NOT NULL, `cookie` TEXT NOT NULL, PRIMARY KEY(`url`))", - "fields": [ - { - "fieldPath": "url", - "columnName": "url", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "cookie", - "columnName": "cookie", - "affinity": "TEXT", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "url" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_cookies_url", - "unique": true, - "columnNames": [ - "url" - ], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_cookies_url` ON `${TABLE_NAME}` (`url`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "rssSources", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`sourceUrl` TEXT NOT NULL, `sourceName` TEXT NOT NULL, `sourceIcon` TEXT NOT NULL, `sourceGroup` TEXT, `enabled` INTEGER NOT NULL, `sortUrl` TEXT, `singleUrl` INTEGER NOT NULL, `articleStyle` INTEGER NOT NULL, `ruleArticles` TEXT, `ruleNextPage` TEXT, `ruleTitle` TEXT, `rulePubDate` TEXT, `ruleDescription` TEXT, `ruleImage` TEXT, `ruleLink` TEXT, `ruleContent` TEXT, `style` TEXT, `header` TEXT, `enableJs` INTEGER NOT NULL, `loadWithBaseUrl` INTEGER NOT NULL, `customOrder` INTEGER NOT NULL, PRIMARY KEY(`sourceUrl`))", - "fields": [ - { - "fieldPath": "sourceUrl", - "columnName": "sourceUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "sourceName", - "columnName": "sourceName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "sourceIcon", - "columnName": "sourceIcon", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "sourceGroup", - "columnName": "sourceGroup", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "enabled", - "columnName": "enabled", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "sortUrl", - "columnName": "sortUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "singleUrl", - "columnName": "singleUrl", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "articleStyle", - "columnName": "articleStyle", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "ruleArticles", - "columnName": "ruleArticles", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleNextPage", - "columnName": "ruleNextPage", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleTitle", - "columnName": "ruleTitle", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "rulePubDate", - "columnName": "rulePubDate", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleDescription", - "columnName": "ruleDescription", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleImage", - "columnName": "ruleImage", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleLink", - "columnName": "ruleLink", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleContent", - "columnName": "ruleContent", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "style", - "columnName": "style", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "header", - "columnName": "header", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "enableJs", - "columnName": "enableJs", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "loadWithBaseUrl", - "columnName": "loadWithBaseUrl", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "customOrder", - "columnName": "customOrder", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "sourceUrl" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_rssSources_sourceUrl", - "unique": false, - "columnNames": [ - "sourceUrl" - ], - "createSql": "CREATE INDEX IF NOT EXISTS `index_rssSources_sourceUrl` ON `${TABLE_NAME}` (`sourceUrl`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "bookmarks", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`time` INTEGER NOT NULL, `bookUrl` TEXT NOT NULL, `bookName` TEXT NOT NULL, `bookAuthor` TEXT NOT NULL, `chapterIndex` INTEGER NOT NULL, `chapterPos` INTEGER NOT NULL, `chapterName` TEXT NOT NULL, `bookText` TEXT NOT NULL, `content` TEXT NOT NULL, PRIMARY KEY(`time`))", - "fields": [ - { - "fieldPath": "time", - "columnName": "time", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "bookUrl", - "columnName": "bookUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookName", - "columnName": "bookName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookAuthor", - "columnName": "bookAuthor", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "chapterIndex", - "columnName": "chapterIndex", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "chapterPos", - "columnName": "chapterPos", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "chapterName", - "columnName": "chapterName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookText", - "columnName": "bookText", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "content", - "columnName": "content", - "affinity": "TEXT", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "time" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_bookmarks_time", - "unique": true, - "columnNames": [ - "time" - ], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_bookmarks_time` ON `${TABLE_NAME}` (`time`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "rssArticles", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`origin` TEXT NOT NULL, `sort` TEXT NOT NULL, `title` TEXT NOT NULL, `order` INTEGER NOT NULL, `link` TEXT NOT NULL, `pubDate` TEXT, `description` TEXT, `content` TEXT, `image` TEXT, `read` INTEGER NOT NULL, PRIMARY KEY(`origin`, `link`))", - "fields": [ - { - "fieldPath": "origin", - "columnName": "origin", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "sort", - "columnName": "sort", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "title", - "columnName": "title", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "order", - "columnName": "order", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "link", - "columnName": "link", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "pubDate", - "columnName": "pubDate", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "description", - "columnName": "description", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "content", - "columnName": "content", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "image", - "columnName": "image", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "read", - "columnName": "read", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "origin", - "link" - ], - "autoGenerate": false - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "rssReadRecords", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`record` TEXT NOT NULL, `read` INTEGER NOT NULL, PRIMARY KEY(`record`))", - "fields": [ - { - "fieldPath": "record", - "columnName": "record", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "read", - "columnName": "read", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "record" - ], - "autoGenerate": false - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "rssStars", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`origin` TEXT NOT NULL, `sort` TEXT NOT NULL, `title` TEXT NOT NULL, `starTime` INTEGER NOT NULL, `link` TEXT NOT NULL, `pubDate` TEXT, `description` TEXT, `content` TEXT, `image` TEXT, PRIMARY KEY(`origin`, `link`))", - "fields": [ - { - "fieldPath": "origin", - "columnName": "origin", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "sort", - "columnName": "sort", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "title", - "columnName": "title", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "starTime", - "columnName": "starTime", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "link", - "columnName": "link", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "pubDate", - "columnName": "pubDate", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "description", - "columnName": "description", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "content", - "columnName": "content", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "image", - "columnName": "image", - "affinity": "TEXT", - "notNull": false - } - ], - "primaryKey": { - "columnNames": [ - "origin", - "link" - ], - "autoGenerate": false - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "txtTocRules", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER NOT NULL, `name` TEXT NOT NULL, `rule` TEXT NOT NULL, `serialNumber` INTEGER NOT NULL, `enable` INTEGER NOT NULL, PRIMARY KEY(`id`))", - "fields": [ - { - "fieldPath": "id", - "columnName": "id", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "rule", - "columnName": "rule", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "serialNumber", - "columnName": "serialNumber", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "enable", - "columnName": "enable", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "id" - ], - "autoGenerate": false - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "readRecord", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`androidId` TEXT NOT NULL, `bookName` TEXT NOT NULL, `readTime` INTEGER NOT NULL, PRIMARY KEY(`androidId`, `bookName`))", - "fields": [ - { - "fieldPath": "androidId", - "columnName": "androidId", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookName", - "columnName": "bookName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "readTime", - "columnName": "readTime", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "androidId", - "bookName" - ], - "autoGenerate": false - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "httpTTS", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER NOT NULL, `name` TEXT NOT NULL, `url` TEXT NOT NULL, PRIMARY KEY(`id`))", - "fields": [ - { - "fieldPath": "id", - "columnName": "id", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "url", - "columnName": "url", - "affinity": "TEXT", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "id" - ], - "autoGenerate": false - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "caches", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`key` TEXT NOT NULL, `value` TEXT, `deadline` INTEGER NOT NULL, PRIMARY KEY(`key`))", - "fields": [ - { - "fieldPath": "key", - "columnName": "key", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "value", - "columnName": "value", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "deadline", - "columnName": "deadline", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "key" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_caches_key", - "unique": true, - "columnNames": [ - "key" - ], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_caches_key` ON `${TABLE_NAME}` (`key`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "ruleSubs", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER NOT NULL, `name` TEXT NOT NULL, `url` TEXT NOT NULL, `type` INTEGER NOT NULL, `customOrder` INTEGER NOT NULL, `autoUpdate` INTEGER NOT NULL, `update` INTEGER NOT NULL, PRIMARY KEY(`id`))", - "fields": [ - { - "fieldPath": "id", - "columnName": "id", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "url", - "columnName": "url", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "type", - "columnName": "type", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "customOrder", - "columnName": "customOrder", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "autoUpdate", - "columnName": "autoUpdate", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "update", - "columnName": "update", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "id" - ], - "autoGenerate": false - }, - "indices": [], - "foreignKeys": [] - } - ], - "views": [], - "setupQueries": [ - "CREATE TABLE IF NOT EXISTS room_master_table (id INTEGER PRIMARY KEY,identity_hash TEXT)", - "INSERT OR REPLACE INTO room_master_table (id,identity_hash) VALUES(42, 'e20aa63032efb23c9e9c269afd64e7d7')" - ] - } -} \ No newline at end of file diff --git a/app/schemas/io.legado.app.data.AppDatabase/27.json b/app/schemas/io.legado.app.data.AppDatabase/27.json deleted file mode 100644 index 98e0181e7..000000000 --- a/app/schemas/io.legado.app.data.AppDatabase/27.json +++ /dev/null @@ -1,1392 +0,0 @@ -{ - "formatVersion": 1, - "database": { - "version": 27, - "identityHash": "e20aa63032efb23c9e9c269afd64e7d7", - "entities": [ - { - "tableName": "books", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`bookUrl` TEXT NOT NULL, `tocUrl` TEXT NOT NULL, `origin` TEXT NOT NULL, `originName` TEXT NOT NULL, `name` TEXT NOT NULL, `author` TEXT NOT NULL, `kind` TEXT, `customTag` TEXT, `coverUrl` TEXT, `customCoverUrl` TEXT, `intro` TEXT, `customIntro` TEXT, `charset` TEXT, `type` INTEGER NOT NULL, `group` INTEGER NOT NULL, `latestChapterTitle` TEXT, `latestChapterTime` INTEGER NOT NULL, `lastCheckTime` INTEGER NOT NULL, `lastCheckCount` INTEGER NOT NULL, `totalChapterNum` INTEGER NOT NULL, `durChapterTitle` TEXT, `durChapterIndex` INTEGER NOT NULL, `durChapterPos` INTEGER NOT NULL, `durChapterTime` INTEGER NOT NULL, `wordCount` TEXT, `canUpdate` INTEGER NOT NULL, `order` INTEGER NOT NULL, `originOrder` INTEGER NOT NULL, `variable` TEXT, `readConfig` TEXT, PRIMARY KEY(`bookUrl`))", - "fields": [ - { - "fieldPath": "bookUrl", - "columnName": "bookUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "tocUrl", - "columnName": "tocUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "origin", - "columnName": "origin", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "originName", - "columnName": "originName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "author", - "columnName": "author", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "kind", - "columnName": "kind", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "customTag", - "columnName": "customTag", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "coverUrl", - "columnName": "coverUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "customCoverUrl", - "columnName": "customCoverUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "intro", - "columnName": "intro", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "customIntro", - "columnName": "customIntro", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "charset", - "columnName": "charset", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "type", - "columnName": "type", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "group", - "columnName": "group", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "latestChapterTitle", - "columnName": "latestChapterTitle", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "latestChapterTime", - "columnName": "latestChapterTime", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "lastCheckTime", - "columnName": "lastCheckTime", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "lastCheckCount", - "columnName": "lastCheckCount", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "totalChapterNum", - "columnName": "totalChapterNum", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "durChapterTitle", - "columnName": "durChapterTitle", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "durChapterIndex", - "columnName": "durChapterIndex", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "durChapterPos", - "columnName": "durChapterPos", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "durChapterTime", - "columnName": "durChapterTime", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "wordCount", - "columnName": "wordCount", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "canUpdate", - "columnName": "canUpdate", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "order", - "columnName": "order", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "originOrder", - "columnName": "originOrder", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "variable", - "columnName": "variable", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "readConfig", - "columnName": "readConfig", - "affinity": "TEXT", - "notNull": false - } - ], - "primaryKey": { - "columnNames": [ - "bookUrl" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_books_name_author", - "unique": true, - "columnNames": [ - "name", - "author" - ], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_books_name_author` ON `${TABLE_NAME}` (`name`, `author`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "book_groups", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`groupId` INTEGER NOT NULL, `groupName` TEXT NOT NULL, `order` INTEGER NOT NULL, `show` INTEGER NOT NULL, PRIMARY KEY(`groupId`))", - "fields": [ - { - "fieldPath": "groupId", - "columnName": "groupId", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "groupName", - "columnName": "groupName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "order", - "columnName": "order", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "show", - "columnName": "show", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "groupId" - ], - "autoGenerate": false - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "book_sources", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`bookSourceName` TEXT NOT NULL, `bookSourceGroup` TEXT, `bookSourceUrl` TEXT NOT NULL, `bookSourceType` INTEGER NOT NULL, `bookUrlPattern` TEXT, `customOrder` INTEGER NOT NULL, `enabled` INTEGER NOT NULL, `enabledExplore` INTEGER NOT NULL, `header` TEXT, `loginUrl` TEXT, `bookSourceComment` TEXT, `lastUpdateTime` INTEGER NOT NULL, `weight` INTEGER NOT NULL, `exploreUrl` TEXT, `ruleExplore` TEXT, `searchUrl` TEXT, `ruleSearch` TEXT, `ruleBookInfo` TEXT, `ruleToc` TEXT, `ruleContent` TEXT, PRIMARY KEY(`bookSourceUrl`))", - "fields": [ - { - "fieldPath": "bookSourceName", - "columnName": "bookSourceName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookSourceGroup", - "columnName": "bookSourceGroup", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "bookSourceUrl", - "columnName": "bookSourceUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookSourceType", - "columnName": "bookSourceType", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "bookUrlPattern", - "columnName": "bookUrlPattern", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "customOrder", - "columnName": "customOrder", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "enabled", - "columnName": "enabled", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "enabledExplore", - "columnName": "enabledExplore", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "header", - "columnName": "header", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "loginUrl", - "columnName": "loginUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "bookSourceComment", - "columnName": "bookSourceComment", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "lastUpdateTime", - "columnName": "lastUpdateTime", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "weight", - "columnName": "weight", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "exploreUrl", - "columnName": "exploreUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleExplore", - "columnName": "ruleExplore", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "searchUrl", - "columnName": "searchUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleSearch", - "columnName": "ruleSearch", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleBookInfo", - "columnName": "ruleBookInfo", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleToc", - "columnName": "ruleToc", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleContent", - "columnName": "ruleContent", - "affinity": "TEXT", - "notNull": false - } - ], - "primaryKey": { - "columnNames": [ - "bookSourceUrl" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_book_sources_bookSourceUrl", - "unique": false, - "columnNames": [ - "bookSourceUrl" - ], - "createSql": "CREATE INDEX IF NOT EXISTS `index_book_sources_bookSourceUrl` ON `${TABLE_NAME}` (`bookSourceUrl`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "chapters", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`url` TEXT NOT NULL, `title` TEXT NOT NULL, `baseUrl` TEXT NOT NULL, `bookUrl` TEXT NOT NULL, `index` INTEGER NOT NULL, `resourceUrl` TEXT, `tag` TEXT, `start` INTEGER, `end` INTEGER, `variable` TEXT, PRIMARY KEY(`url`, `bookUrl`), FOREIGN KEY(`bookUrl`) REFERENCES `books`(`bookUrl`) ON UPDATE NO ACTION ON DELETE CASCADE )", - "fields": [ - { - "fieldPath": "url", - "columnName": "url", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "title", - "columnName": "title", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "baseUrl", - "columnName": "baseUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookUrl", - "columnName": "bookUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "index", - "columnName": "index", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "resourceUrl", - "columnName": "resourceUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "tag", - "columnName": "tag", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "start", - "columnName": "start", - "affinity": "INTEGER", - "notNull": false - }, - { - "fieldPath": "end", - "columnName": "end", - "affinity": "INTEGER", - "notNull": false - }, - { - "fieldPath": "variable", - "columnName": "variable", - "affinity": "TEXT", - "notNull": false - } - ], - "primaryKey": { - "columnNames": [ - "url", - "bookUrl" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_chapters_bookUrl", - "unique": false, - "columnNames": [ - "bookUrl" - ], - "createSql": "CREATE INDEX IF NOT EXISTS `index_chapters_bookUrl` ON `${TABLE_NAME}` (`bookUrl`)" - }, - { - "name": "index_chapters_bookUrl_index", - "unique": true, - "columnNames": [ - "bookUrl", - "index" - ], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_chapters_bookUrl_index` ON `${TABLE_NAME}` (`bookUrl`, `index`)" - } - ], - "foreignKeys": [ - { - "table": "books", - "onDelete": "CASCADE", - "onUpdate": "NO ACTION", - "columns": [ - "bookUrl" - ], - "referencedColumns": [ - "bookUrl" - ] - } - ] - }, - { - "tableName": "replace_rules", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, `name` TEXT NOT NULL, `group` TEXT, `pattern` TEXT NOT NULL, `replacement` TEXT NOT NULL, `scope` TEXT, `isEnabled` INTEGER NOT NULL, `isRegex` INTEGER NOT NULL, `sortOrder` INTEGER NOT NULL)", - "fields": [ - { - "fieldPath": "id", - "columnName": "id", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "group", - "columnName": "group", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "pattern", - "columnName": "pattern", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "replacement", - "columnName": "replacement", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "scope", - "columnName": "scope", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "isEnabled", - "columnName": "isEnabled", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "isRegex", - "columnName": "isRegex", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "order", - "columnName": "sortOrder", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "id" - ], - "autoGenerate": true - }, - "indices": [ - { - "name": "index_replace_rules_id", - "unique": false, - "columnNames": [ - "id" - ], - "createSql": "CREATE INDEX IF NOT EXISTS `index_replace_rules_id` ON `${TABLE_NAME}` (`id`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "searchBooks", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`bookUrl` TEXT NOT NULL, `origin` TEXT NOT NULL, `originName` TEXT NOT NULL, `type` INTEGER NOT NULL, `name` TEXT NOT NULL, `author` TEXT NOT NULL, `kind` TEXT, `coverUrl` TEXT, `intro` TEXT, `wordCount` TEXT, `latestChapterTitle` TEXT, `tocUrl` TEXT NOT NULL, `time` INTEGER NOT NULL, `variable` TEXT, `originOrder` INTEGER NOT NULL, PRIMARY KEY(`bookUrl`), FOREIGN KEY(`origin`) REFERENCES `book_sources`(`bookSourceUrl`) ON UPDATE NO ACTION ON DELETE CASCADE )", - "fields": [ - { - "fieldPath": "bookUrl", - "columnName": "bookUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "origin", - "columnName": "origin", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "originName", - "columnName": "originName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "type", - "columnName": "type", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "author", - "columnName": "author", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "kind", - "columnName": "kind", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "coverUrl", - "columnName": "coverUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "intro", - "columnName": "intro", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "wordCount", - "columnName": "wordCount", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "latestChapterTitle", - "columnName": "latestChapterTitle", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "tocUrl", - "columnName": "tocUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "time", - "columnName": "time", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "variable", - "columnName": "variable", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "originOrder", - "columnName": "originOrder", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "bookUrl" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_searchBooks_bookUrl", - "unique": true, - "columnNames": [ - "bookUrl" - ], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_searchBooks_bookUrl` ON `${TABLE_NAME}` (`bookUrl`)" - }, - { - "name": "index_searchBooks_origin", - "unique": false, - "columnNames": [ - "origin" - ], - "createSql": "CREATE INDEX IF NOT EXISTS `index_searchBooks_origin` ON `${TABLE_NAME}` (`origin`)" - } - ], - "foreignKeys": [ - { - "table": "book_sources", - "onDelete": "CASCADE", - "onUpdate": "NO ACTION", - "columns": [ - "origin" - ], - "referencedColumns": [ - "bookSourceUrl" - ] - } - ] - }, - { - "tableName": "search_keywords", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`word` TEXT NOT NULL, `usage` INTEGER NOT NULL, `lastUseTime` INTEGER NOT NULL, PRIMARY KEY(`word`))", - "fields": [ - { - "fieldPath": "word", - "columnName": "word", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "usage", - "columnName": "usage", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "lastUseTime", - "columnName": "lastUseTime", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "word" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_search_keywords_word", - "unique": true, - "columnNames": [ - "word" - ], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_search_keywords_word` ON `${TABLE_NAME}` (`word`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "cookies", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`url` TEXT NOT NULL, `cookie` TEXT NOT NULL, PRIMARY KEY(`url`))", - "fields": [ - { - "fieldPath": "url", - "columnName": "url", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "cookie", - "columnName": "cookie", - "affinity": "TEXT", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "url" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_cookies_url", - "unique": true, - "columnNames": [ - "url" - ], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_cookies_url` ON `${TABLE_NAME}` (`url`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "rssSources", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`sourceUrl` TEXT NOT NULL, `sourceName` TEXT NOT NULL, `sourceIcon` TEXT NOT NULL, `sourceGroup` TEXT, `enabled` INTEGER NOT NULL, `sortUrl` TEXT, `singleUrl` INTEGER NOT NULL, `articleStyle` INTEGER NOT NULL, `ruleArticles` TEXT, `ruleNextPage` TEXT, `ruleTitle` TEXT, `rulePubDate` TEXT, `ruleDescription` TEXT, `ruleImage` TEXT, `ruleLink` TEXT, `ruleContent` TEXT, `style` TEXT, `header` TEXT, `enableJs` INTEGER NOT NULL, `loadWithBaseUrl` INTEGER NOT NULL, `customOrder` INTEGER NOT NULL, PRIMARY KEY(`sourceUrl`))", - "fields": [ - { - "fieldPath": "sourceUrl", - "columnName": "sourceUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "sourceName", - "columnName": "sourceName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "sourceIcon", - "columnName": "sourceIcon", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "sourceGroup", - "columnName": "sourceGroup", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "enabled", - "columnName": "enabled", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "sortUrl", - "columnName": "sortUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "singleUrl", - "columnName": "singleUrl", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "articleStyle", - "columnName": "articleStyle", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "ruleArticles", - "columnName": "ruleArticles", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleNextPage", - "columnName": "ruleNextPage", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleTitle", - "columnName": "ruleTitle", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "rulePubDate", - "columnName": "rulePubDate", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleDescription", - "columnName": "ruleDescription", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleImage", - "columnName": "ruleImage", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleLink", - "columnName": "ruleLink", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleContent", - "columnName": "ruleContent", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "style", - "columnName": "style", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "header", - "columnName": "header", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "enableJs", - "columnName": "enableJs", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "loadWithBaseUrl", - "columnName": "loadWithBaseUrl", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "customOrder", - "columnName": "customOrder", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "sourceUrl" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_rssSources_sourceUrl", - "unique": false, - "columnNames": [ - "sourceUrl" - ], - "createSql": "CREATE INDEX IF NOT EXISTS `index_rssSources_sourceUrl` ON `${TABLE_NAME}` (`sourceUrl`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "bookmarks", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`time` INTEGER NOT NULL, `bookUrl` TEXT NOT NULL, `bookName` TEXT NOT NULL, `bookAuthor` TEXT NOT NULL, `chapterIndex` INTEGER NOT NULL, `chapterPos` INTEGER NOT NULL, `chapterName` TEXT NOT NULL, `bookText` TEXT NOT NULL, `content` TEXT NOT NULL, PRIMARY KEY(`time`))", - "fields": [ - { - "fieldPath": "time", - "columnName": "time", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "bookUrl", - "columnName": "bookUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookName", - "columnName": "bookName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookAuthor", - "columnName": "bookAuthor", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "chapterIndex", - "columnName": "chapterIndex", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "chapterPos", - "columnName": "chapterPos", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "chapterName", - "columnName": "chapterName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookText", - "columnName": "bookText", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "content", - "columnName": "content", - "affinity": "TEXT", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "time" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_bookmarks_time", - "unique": true, - "columnNames": [ - "time" - ], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_bookmarks_time` ON `${TABLE_NAME}` (`time`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "rssArticles", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`origin` TEXT NOT NULL, `sort` TEXT NOT NULL, `title` TEXT NOT NULL, `order` INTEGER NOT NULL, `link` TEXT NOT NULL, `pubDate` TEXT, `description` TEXT, `content` TEXT, `image` TEXT, `read` INTEGER NOT NULL, PRIMARY KEY(`origin`, `link`))", - "fields": [ - { - "fieldPath": "origin", - "columnName": "origin", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "sort", - "columnName": "sort", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "title", - "columnName": "title", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "order", - "columnName": "order", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "link", - "columnName": "link", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "pubDate", - "columnName": "pubDate", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "description", - "columnName": "description", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "content", - "columnName": "content", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "image", - "columnName": "image", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "read", - "columnName": "read", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "origin", - "link" - ], - "autoGenerate": false - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "rssReadRecords", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`record` TEXT NOT NULL, `read` INTEGER NOT NULL, PRIMARY KEY(`record`))", - "fields": [ - { - "fieldPath": "record", - "columnName": "record", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "read", - "columnName": "read", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "record" - ], - "autoGenerate": false - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "rssStars", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`origin` TEXT NOT NULL, `sort` TEXT NOT NULL, `title` TEXT NOT NULL, `starTime` INTEGER NOT NULL, `link` TEXT NOT NULL, `pubDate` TEXT, `description` TEXT, `content` TEXT, `image` TEXT, PRIMARY KEY(`origin`, `link`))", - "fields": [ - { - "fieldPath": "origin", - "columnName": "origin", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "sort", - "columnName": "sort", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "title", - "columnName": "title", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "starTime", - "columnName": "starTime", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "link", - "columnName": "link", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "pubDate", - "columnName": "pubDate", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "description", - "columnName": "description", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "content", - "columnName": "content", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "image", - "columnName": "image", - "affinity": "TEXT", - "notNull": false - } - ], - "primaryKey": { - "columnNames": [ - "origin", - "link" - ], - "autoGenerate": false - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "txtTocRules", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER NOT NULL, `name` TEXT NOT NULL, `rule` TEXT NOT NULL, `serialNumber` INTEGER NOT NULL, `enable` INTEGER NOT NULL, PRIMARY KEY(`id`))", - "fields": [ - { - "fieldPath": "id", - "columnName": "id", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "rule", - "columnName": "rule", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "serialNumber", - "columnName": "serialNumber", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "enable", - "columnName": "enable", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "id" - ], - "autoGenerate": false - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "readRecord", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`androidId` TEXT NOT NULL, `bookName` TEXT NOT NULL, `readTime` INTEGER NOT NULL, PRIMARY KEY(`androidId`, `bookName`))", - "fields": [ - { - "fieldPath": "androidId", - "columnName": "androidId", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookName", - "columnName": "bookName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "readTime", - "columnName": "readTime", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "androidId", - "bookName" - ], - "autoGenerate": false - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "httpTTS", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER NOT NULL, `name` TEXT NOT NULL, `url` TEXT NOT NULL, PRIMARY KEY(`id`))", - "fields": [ - { - "fieldPath": "id", - "columnName": "id", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "url", - "columnName": "url", - "affinity": "TEXT", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "id" - ], - "autoGenerate": false - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "caches", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`key` TEXT NOT NULL, `value` TEXT, `deadline` INTEGER NOT NULL, PRIMARY KEY(`key`))", - "fields": [ - { - "fieldPath": "key", - "columnName": "key", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "value", - "columnName": "value", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "deadline", - "columnName": "deadline", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "key" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_caches_key", - "unique": true, - "columnNames": [ - "key" - ], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_caches_key` ON `${TABLE_NAME}` (`key`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "ruleSubs", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER NOT NULL, `name` TEXT NOT NULL, `url` TEXT NOT NULL, `type` INTEGER NOT NULL, `customOrder` INTEGER NOT NULL, `autoUpdate` INTEGER NOT NULL, `update` INTEGER NOT NULL, PRIMARY KEY(`id`))", - "fields": [ - { - "fieldPath": "id", - "columnName": "id", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "url", - "columnName": "url", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "type", - "columnName": "type", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "customOrder", - "columnName": "customOrder", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "autoUpdate", - "columnName": "autoUpdate", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "update", - "columnName": "update", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "id" - ], - "autoGenerate": false - }, - "indices": [], - "foreignKeys": [] - } - ], - "views": [], - "setupQueries": [ - "CREATE TABLE IF NOT EXISTS room_master_table (id INTEGER PRIMARY KEY,identity_hash TEXT)", - "INSERT OR REPLACE INTO room_master_table (id,identity_hash) VALUES(42, 'e20aa63032efb23c9e9c269afd64e7d7')" - ] - } -} \ No newline at end of file diff --git a/app/schemas/io.legado.app.data.AppDatabase/28.json b/app/schemas/io.legado.app.data.AppDatabase/28.json deleted file mode 100644 index 180fb4fa4..000000000 --- a/app/schemas/io.legado.app.data.AppDatabase/28.json +++ /dev/null @@ -1,1404 +0,0 @@ -{ - "formatVersion": 1, - "database": { - "version": 28, - "identityHash": "f77119a40a8930665af834d03c8c5d25", - "entities": [ - { - "tableName": "books", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`bookUrl` TEXT NOT NULL, `tocUrl` TEXT NOT NULL, `origin` TEXT NOT NULL, `originName` TEXT NOT NULL, `name` TEXT NOT NULL, `author` TEXT NOT NULL, `kind` TEXT, `customTag` TEXT, `coverUrl` TEXT, `customCoverUrl` TEXT, `intro` TEXT, `customIntro` TEXT, `charset` TEXT, `type` INTEGER NOT NULL, `group` INTEGER NOT NULL, `latestChapterTitle` TEXT, `latestChapterTime` INTEGER NOT NULL, `lastCheckTime` INTEGER NOT NULL, `lastCheckCount` INTEGER NOT NULL, `totalChapterNum` INTEGER NOT NULL, `durChapterTitle` TEXT, `durChapterIndex` INTEGER NOT NULL, `durChapterPos` INTEGER NOT NULL, `durChapterTime` INTEGER NOT NULL, `wordCount` TEXT, `canUpdate` INTEGER NOT NULL, `order` INTEGER NOT NULL, `originOrder` INTEGER NOT NULL, `variable` TEXT, `readConfig` TEXT, PRIMARY KEY(`bookUrl`))", - "fields": [ - { - "fieldPath": "bookUrl", - "columnName": "bookUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "tocUrl", - "columnName": "tocUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "origin", - "columnName": "origin", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "originName", - "columnName": "originName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "author", - "columnName": "author", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "kind", - "columnName": "kind", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "customTag", - "columnName": "customTag", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "coverUrl", - "columnName": "coverUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "customCoverUrl", - "columnName": "customCoverUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "intro", - "columnName": "intro", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "customIntro", - "columnName": "customIntro", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "charset", - "columnName": "charset", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "type", - "columnName": "type", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "group", - "columnName": "group", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "latestChapterTitle", - "columnName": "latestChapterTitle", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "latestChapterTime", - "columnName": "latestChapterTime", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "lastCheckTime", - "columnName": "lastCheckTime", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "lastCheckCount", - "columnName": "lastCheckCount", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "totalChapterNum", - "columnName": "totalChapterNum", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "durChapterTitle", - "columnName": "durChapterTitle", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "durChapterIndex", - "columnName": "durChapterIndex", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "durChapterPos", - "columnName": "durChapterPos", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "durChapterTime", - "columnName": "durChapterTime", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "wordCount", - "columnName": "wordCount", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "canUpdate", - "columnName": "canUpdate", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "order", - "columnName": "order", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "originOrder", - "columnName": "originOrder", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "variable", - "columnName": "variable", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "readConfig", - "columnName": "readConfig", - "affinity": "TEXT", - "notNull": false - } - ], - "primaryKey": { - "columnNames": [ - "bookUrl" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_books_name_author", - "unique": true, - "columnNames": [ - "name", - "author" - ], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_books_name_author` ON `${TABLE_NAME}` (`name`, `author`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "book_groups", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`groupId` INTEGER NOT NULL, `groupName` TEXT NOT NULL, `order` INTEGER NOT NULL, `show` INTEGER NOT NULL, PRIMARY KEY(`groupId`))", - "fields": [ - { - "fieldPath": "groupId", - "columnName": "groupId", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "groupName", - "columnName": "groupName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "order", - "columnName": "order", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "show", - "columnName": "show", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "groupId" - ], - "autoGenerate": false - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "book_sources", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`bookSourceName` TEXT NOT NULL, `bookSourceGroup` TEXT, `bookSourceUrl` TEXT NOT NULL, `bookSourceType` INTEGER NOT NULL, `bookUrlPattern` TEXT, `customOrder` INTEGER NOT NULL, `enabled` INTEGER NOT NULL, `enabledExplore` INTEGER NOT NULL, `header` TEXT, `loginUrl` TEXT, `bookSourceComment` TEXT, `lastUpdateTime` INTEGER NOT NULL, `weight` INTEGER NOT NULL, `exploreUrl` TEXT, `ruleExplore` TEXT, `searchUrl` TEXT, `ruleSearch` TEXT, `ruleBookInfo` TEXT, `ruleToc` TEXT, `ruleContent` TEXT, PRIMARY KEY(`bookSourceUrl`))", - "fields": [ - { - "fieldPath": "bookSourceName", - "columnName": "bookSourceName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookSourceGroup", - "columnName": "bookSourceGroup", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "bookSourceUrl", - "columnName": "bookSourceUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookSourceType", - "columnName": "bookSourceType", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "bookUrlPattern", - "columnName": "bookUrlPattern", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "customOrder", - "columnName": "customOrder", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "enabled", - "columnName": "enabled", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "enabledExplore", - "columnName": "enabledExplore", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "header", - "columnName": "header", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "loginUrl", - "columnName": "loginUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "bookSourceComment", - "columnName": "bookSourceComment", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "lastUpdateTime", - "columnName": "lastUpdateTime", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "weight", - "columnName": "weight", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "exploreUrl", - "columnName": "exploreUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleExplore", - "columnName": "ruleExplore", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "searchUrl", - "columnName": "searchUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleSearch", - "columnName": "ruleSearch", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleBookInfo", - "columnName": "ruleBookInfo", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleToc", - "columnName": "ruleToc", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleContent", - "columnName": "ruleContent", - "affinity": "TEXT", - "notNull": false - } - ], - "primaryKey": { - "columnNames": [ - "bookSourceUrl" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_book_sources_bookSourceUrl", - "unique": false, - "columnNames": [ - "bookSourceUrl" - ], - "createSql": "CREATE INDEX IF NOT EXISTS `index_book_sources_bookSourceUrl` ON `${TABLE_NAME}` (`bookSourceUrl`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "chapters", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`url` TEXT NOT NULL, `title` TEXT NOT NULL, `baseUrl` TEXT NOT NULL, `bookUrl` TEXT NOT NULL, `index` INTEGER NOT NULL, `resourceUrl` TEXT, `tag` TEXT, `start` INTEGER, `end` INTEGER, `variable` TEXT, PRIMARY KEY(`url`, `bookUrl`), FOREIGN KEY(`bookUrl`) REFERENCES `books`(`bookUrl`) ON UPDATE NO ACTION ON DELETE CASCADE )", - "fields": [ - { - "fieldPath": "url", - "columnName": "url", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "title", - "columnName": "title", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "baseUrl", - "columnName": "baseUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookUrl", - "columnName": "bookUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "index", - "columnName": "index", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "resourceUrl", - "columnName": "resourceUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "tag", - "columnName": "tag", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "start", - "columnName": "start", - "affinity": "INTEGER", - "notNull": false - }, - { - "fieldPath": "end", - "columnName": "end", - "affinity": "INTEGER", - "notNull": false - }, - { - "fieldPath": "variable", - "columnName": "variable", - "affinity": "TEXT", - "notNull": false - } - ], - "primaryKey": { - "columnNames": [ - "url", - "bookUrl" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_chapters_bookUrl", - "unique": false, - "columnNames": [ - "bookUrl" - ], - "createSql": "CREATE INDEX IF NOT EXISTS `index_chapters_bookUrl` ON `${TABLE_NAME}` (`bookUrl`)" - }, - { - "name": "index_chapters_bookUrl_index", - "unique": true, - "columnNames": [ - "bookUrl", - "index" - ], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_chapters_bookUrl_index` ON `${TABLE_NAME}` (`bookUrl`, `index`)" - } - ], - "foreignKeys": [ - { - "table": "books", - "onDelete": "CASCADE", - "onUpdate": "NO ACTION", - "columns": [ - "bookUrl" - ], - "referencedColumns": [ - "bookUrl" - ] - } - ] - }, - { - "tableName": "replace_rules", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, `name` TEXT NOT NULL, `group` TEXT, `pattern` TEXT NOT NULL, `replacement` TEXT NOT NULL, `scope` TEXT, `isEnabled` INTEGER NOT NULL, `isRegex` INTEGER NOT NULL, `sortOrder` INTEGER NOT NULL)", - "fields": [ - { - "fieldPath": "id", - "columnName": "id", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "group", - "columnName": "group", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "pattern", - "columnName": "pattern", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "replacement", - "columnName": "replacement", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "scope", - "columnName": "scope", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "isEnabled", - "columnName": "isEnabled", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "isRegex", - "columnName": "isRegex", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "order", - "columnName": "sortOrder", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "id" - ], - "autoGenerate": true - }, - "indices": [ - { - "name": "index_replace_rules_id", - "unique": false, - "columnNames": [ - "id" - ], - "createSql": "CREATE INDEX IF NOT EXISTS `index_replace_rules_id` ON `${TABLE_NAME}` (`id`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "searchBooks", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`bookUrl` TEXT NOT NULL, `origin` TEXT NOT NULL, `originName` TEXT NOT NULL, `type` INTEGER NOT NULL, `name` TEXT NOT NULL, `author` TEXT NOT NULL, `kind` TEXT, `coverUrl` TEXT, `intro` TEXT, `wordCount` TEXT, `latestChapterTitle` TEXT, `tocUrl` TEXT NOT NULL, `time` INTEGER NOT NULL, `variable` TEXT, `originOrder` INTEGER NOT NULL, PRIMARY KEY(`bookUrl`), FOREIGN KEY(`origin`) REFERENCES `book_sources`(`bookSourceUrl`) ON UPDATE NO ACTION ON DELETE CASCADE )", - "fields": [ - { - "fieldPath": "bookUrl", - "columnName": "bookUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "origin", - "columnName": "origin", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "originName", - "columnName": "originName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "type", - "columnName": "type", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "author", - "columnName": "author", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "kind", - "columnName": "kind", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "coverUrl", - "columnName": "coverUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "intro", - "columnName": "intro", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "wordCount", - "columnName": "wordCount", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "latestChapterTitle", - "columnName": "latestChapterTitle", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "tocUrl", - "columnName": "tocUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "time", - "columnName": "time", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "variable", - "columnName": "variable", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "originOrder", - "columnName": "originOrder", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "bookUrl" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_searchBooks_bookUrl", - "unique": true, - "columnNames": [ - "bookUrl" - ], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_searchBooks_bookUrl` ON `${TABLE_NAME}` (`bookUrl`)" - }, - { - "name": "index_searchBooks_origin", - "unique": false, - "columnNames": [ - "origin" - ], - "createSql": "CREATE INDEX IF NOT EXISTS `index_searchBooks_origin` ON `${TABLE_NAME}` (`origin`)" - } - ], - "foreignKeys": [ - { - "table": "book_sources", - "onDelete": "CASCADE", - "onUpdate": "NO ACTION", - "columns": [ - "origin" - ], - "referencedColumns": [ - "bookSourceUrl" - ] - } - ] - }, - { - "tableName": "search_keywords", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`word` TEXT NOT NULL, `usage` INTEGER NOT NULL, `lastUseTime` INTEGER NOT NULL, PRIMARY KEY(`word`))", - "fields": [ - { - "fieldPath": "word", - "columnName": "word", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "usage", - "columnName": "usage", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "lastUseTime", - "columnName": "lastUseTime", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "word" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_search_keywords_word", - "unique": true, - "columnNames": [ - "word" - ], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_search_keywords_word` ON `${TABLE_NAME}` (`word`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "cookies", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`url` TEXT NOT NULL, `cookie` TEXT NOT NULL, PRIMARY KEY(`url`))", - "fields": [ - { - "fieldPath": "url", - "columnName": "url", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "cookie", - "columnName": "cookie", - "affinity": "TEXT", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "url" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_cookies_url", - "unique": true, - "columnNames": [ - "url" - ], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_cookies_url` ON `${TABLE_NAME}` (`url`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "rssSources", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`sourceUrl` TEXT NOT NULL, `sourceName` TEXT NOT NULL, `sourceIcon` TEXT NOT NULL, `sourceGroup` TEXT, `enabled` INTEGER NOT NULL, `sortUrl` TEXT, `singleUrl` INTEGER NOT NULL, `articleStyle` INTEGER NOT NULL, `ruleArticles` TEXT, `ruleNextPage` TEXT, `ruleTitle` TEXT, `rulePubDate` TEXT, `ruleDescription` TEXT, `ruleImage` TEXT, `ruleLink` TEXT, `ruleContent` TEXT, `style` TEXT, `header` TEXT, `enableJs` INTEGER NOT NULL, `loadWithBaseUrl` INTEGER NOT NULL, `customOrder` INTEGER NOT NULL, PRIMARY KEY(`sourceUrl`))", - "fields": [ - { - "fieldPath": "sourceUrl", - "columnName": "sourceUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "sourceName", - "columnName": "sourceName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "sourceIcon", - "columnName": "sourceIcon", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "sourceGroup", - "columnName": "sourceGroup", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "enabled", - "columnName": "enabled", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "sortUrl", - "columnName": "sortUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "singleUrl", - "columnName": "singleUrl", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "articleStyle", - "columnName": "articleStyle", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "ruleArticles", - "columnName": "ruleArticles", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleNextPage", - "columnName": "ruleNextPage", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleTitle", - "columnName": "ruleTitle", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "rulePubDate", - "columnName": "rulePubDate", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleDescription", - "columnName": "ruleDescription", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleImage", - "columnName": "ruleImage", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleLink", - "columnName": "ruleLink", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleContent", - "columnName": "ruleContent", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "style", - "columnName": "style", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "header", - "columnName": "header", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "enableJs", - "columnName": "enableJs", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "loadWithBaseUrl", - "columnName": "loadWithBaseUrl", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "customOrder", - "columnName": "customOrder", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "sourceUrl" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_rssSources_sourceUrl", - "unique": false, - "columnNames": [ - "sourceUrl" - ], - "createSql": "CREATE INDEX IF NOT EXISTS `index_rssSources_sourceUrl` ON `${TABLE_NAME}` (`sourceUrl`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "bookmarks", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`time` INTEGER NOT NULL, `bookUrl` TEXT NOT NULL, `bookName` TEXT NOT NULL, `bookAuthor` TEXT NOT NULL, `chapterIndex` INTEGER NOT NULL, `chapterPos` INTEGER NOT NULL, `chapterName` TEXT NOT NULL, `bookText` TEXT NOT NULL, `content` TEXT NOT NULL, PRIMARY KEY(`time`))", - "fields": [ - { - "fieldPath": "time", - "columnName": "time", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "bookUrl", - "columnName": "bookUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookName", - "columnName": "bookName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookAuthor", - "columnName": "bookAuthor", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "chapterIndex", - "columnName": "chapterIndex", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "chapterPos", - "columnName": "chapterPos", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "chapterName", - "columnName": "chapterName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookText", - "columnName": "bookText", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "content", - "columnName": "content", - "affinity": "TEXT", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "time" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_bookmarks_time", - "unique": true, - "columnNames": [ - "time" - ], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_bookmarks_time` ON `${TABLE_NAME}` (`time`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "rssArticles", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`origin` TEXT NOT NULL, `sort` TEXT NOT NULL, `title` TEXT NOT NULL, `order` INTEGER NOT NULL, `link` TEXT NOT NULL, `pubDate` TEXT, `description` TEXT, `content` TEXT, `image` TEXT, `read` INTEGER NOT NULL, `variable` TEXT, PRIMARY KEY(`origin`, `link`))", - "fields": [ - { - "fieldPath": "origin", - "columnName": "origin", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "sort", - "columnName": "sort", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "title", - "columnName": "title", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "order", - "columnName": "order", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "link", - "columnName": "link", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "pubDate", - "columnName": "pubDate", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "description", - "columnName": "description", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "content", - "columnName": "content", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "image", - "columnName": "image", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "read", - "columnName": "read", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "variable", - "columnName": "variable", - "affinity": "TEXT", - "notNull": false - } - ], - "primaryKey": { - "columnNames": [ - "origin", - "link" - ], - "autoGenerate": false - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "rssReadRecords", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`record` TEXT NOT NULL, `read` INTEGER NOT NULL, PRIMARY KEY(`record`))", - "fields": [ - { - "fieldPath": "record", - "columnName": "record", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "read", - "columnName": "read", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "record" - ], - "autoGenerate": false - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "rssStars", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`origin` TEXT NOT NULL, `sort` TEXT NOT NULL, `title` TEXT NOT NULL, `starTime` INTEGER NOT NULL, `link` TEXT NOT NULL, `pubDate` TEXT, `description` TEXT, `content` TEXT, `image` TEXT, `variable` TEXT, PRIMARY KEY(`origin`, `link`))", - "fields": [ - { - "fieldPath": "origin", - "columnName": "origin", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "sort", - "columnName": "sort", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "title", - "columnName": "title", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "starTime", - "columnName": "starTime", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "link", - "columnName": "link", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "pubDate", - "columnName": "pubDate", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "description", - "columnName": "description", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "content", - "columnName": "content", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "image", - "columnName": "image", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "variable", - "columnName": "variable", - "affinity": "TEXT", - "notNull": false - } - ], - "primaryKey": { - "columnNames": [ - "origin", - "link" - ], - "autoGenerate": false - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "txtTocRules", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER NOT NULL, `name` TEXT NOT NULL, `rule` TEXT NOT NULL, `serialNumber` INTEGER NOT NULL, `enable` INTEGER NOT NULL, PRIMARY KEY(`id`))", - "fields": [ - { - "fieldPath": "id", - "columnName": "id", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "rule", - "columnName": "rule", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "serialNumber", - "columnName": "serialNumber", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "enable", - "columnName": "enable", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "id" - ], - "autoGenerate": false - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "readRecord", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`androidId` TEXT NOT NULL, `bookName` TEXT NOT NULL, `readTime` INTEGER NOT NULL, PRIMARY KEY(`androidId`, `bookName`))", - "fields": [ - { - "fieldPath": "androidId", - "columnName": "androidId", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookName", - "columnName": "bookName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "readTime", - "columnName": "readTime", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "androidId", - "bookName" - ], - "autoGenerate": false - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "httpTTS", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER NOT NULL, `name` TEXT NOT NULL, `url` TEXT NOT NULL, PRIMARY KEY(`id`))", - "fields": [ - { - "fieldPath": "id", - "columnName": "id", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "url", - "columnName": "url", - "affinity": "TEXT", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "id" - ], - "autoGenerate": false - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "caches", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`key` TEXT NOT NULL, `value` TEXT, `deadline` INTEGER NOT NULL, PRIMARY KEY(`key`))", - "fields": [ - { - "fieldPath": "key", - "columnName": "key", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "value", - "columnName": "value", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "deadline", - "columnName": "deadline", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "key" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_caches_key", - "unique": true, - "columnNames": [ - "key" - ], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_caches_key` ON `${TABLE_NAME}` (`key`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "ruleSubs", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER NOT NULL, `name` TEXT NOT NULL, `url` TEXT NOT NULL, `type` INTEGER NOT NULL, `customOrder` INTEGER NOT NULL, `autoUpdate` INTEGER NOT NULL, `update` INTEGER NOT NULL, PRIMARY KEY(`id`))", - "fields": [ - { - "fieldPath": "id", - "columnName": "id", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "url", - "columnName": "url", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "type", - "columnName": "type", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "customOrder", - "columnName": "customOrder", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "autoUpdate", - "columnName": "autoUpdate", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "update", - "columnName": "update", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "id" - ], - "autoGenerate": false - }, - "indices": [], - "foreignKeys": [] - } - ], - "views": [], - "setupQueries": [ - "CREATE TABLE IF NOT EXISTS room_master_table (id INTEGER PRIMARY KEY,identity_hash TEXT)", - "INSERT OR REPLACE INTO room_master_table (id,identity_hash) VALUES(42, 'f77119a40a8930665af834d03c8c5d25')" - ] - } -} \ No newline at end of file diff --git a/app/schemas/io.legado.app.data.AppDatabase/29.json b/app/schemas/io.legado.app.data.AppDatabase/29.json deleted file mode 100644 index f31bbc341..000000000 --- a/app/schemas/io.legado.app.data.AppDatabase/29.json +++ /dev/null @@ -1,1410 +0,0 @@ -{ - "formatVersion": 1, - "database": { - "version": 29, - "identityHash": "85f1e7146f650af82aac6f9137eff815", - "entities": [ - { - "tableName": "books", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`bookUrl` TEXT NOT NULL, `tocUrl` TEXT NOT NULL, `origin` TEXT NOT NULL, `originName` TEXT NOT NULL, `name` TEXT NOT NULL, `author` TEXT NOT NULL, `kind` TEXT, `customTag` TEXT, `coverUrl` TEXT, `customCoverUrl` TEXT, `intro` TEXT, `customIntro` TEXT, `charset` TEXT, `type` INTEGER NOT NULL, `group` INTEGER NOT NULL, `latestChapterTitle` TEXT, `latestChapterTime` INTEGER NOT NULL, `lastCheckTime` INTEGER NOT NULL, `lastCheckCount` INTEGER NOT NULL, `totalChapterNum` INTEGER NOT NULL, `durChapterTitle` TEXT, `durChapterIndex` INTEGER NOT NULL, `durChapterPos` INTEGER NOT NULL, `durChapterTime` INTEGER NOT NULL, `wordCount` TEXT, `canUpdate` INTEGER NOT NULL, `order` INTEGER NOT NULL, `originOrder` INTEGER NOT NULL, `variable` TEXT, `readConfig` TEXT, PRIMARY KEY(`bookUrl`))", - "fields": [ - { - "fieldPath": "bookUrl", - "columnName": "bookUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "tocUrl", - "columnName": "tocUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "origin", - "columnName": "origin", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "originName", - "columnName": "originName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "author", - "columnName": "author", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "kind", - "columnName": "kind", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "customTag", - "columnName": "customTag", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "coverUrl", - "columnName": "coverUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "customCoverUrl", - "columnName": "customCoverUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "intro", - "columnName": "intro", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "customIntro", - "columnName": "customIntro", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "charset", - "columnName": "charset", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "type", - "columnName": "type", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "group", - "columnName": "group", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "latestChapterTitle", - "columnName": "latestChapterTitle", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "latestChapterTime", - "columnName": "latestChapterTime", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "lastCheckTime", - "columnName": "lastCheckTime", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "lastCheckCount", - "columnName": "lastCheckCount", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "totalChapterNum", - "columnName": "totalChapterNum", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "durChapterTitle", - "columnName": "durChapterTitle", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "durChapterIndex", - "columnName": "durChapterIndex", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "durChapterPos", - "columnName": "durChapterPos", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "durChapterTime", - "columnName": "durChapterTime", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "wordCount", - "columnName": "wordCount", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "canUpdate", - "columnName": "canUpdate", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "order", - "columnName": "order", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "originOrder", - "columnName": "originOrder", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "variable", - "columnName": "variable", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "readConfig", - "columnName": "readConfig", - "affinity": "TEXT", - "notNull": false - } - ], - "primaryKey": { - "columnNames": [ - "bookUrl" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_books_name_author", - "unique": true, - "columnNames": [ - "name", - "author" - ], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_books_name_author` ON `${TABLE_NAME}` (`name`, `author`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "book_groups", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`groupId` INTEGER NOT NULL, `groupName` TEXT NOT NULL, `order` INTEGER NOT NULL, `show` INTEGER NOT NULL, PRIMARY KEY(`groupId`))", - "fields": [ - { - "fieldPath": "groupId", - "columnName": "groupId", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "groupName", - "columnName": "groupName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "order", - "columnName": "order", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "show", - "columnName": "show", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "groupId" - ], - "autoGenerate": false - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "book_sources", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`bookSourceName` TEXT NOT NULL, `bookSourceGroup` TEXT, `bookSourceUrl` TEXT NOT NULL, `bookSourceType` INTEGER NOT NULL, `bookUrlPattern` TEXT, `customOrder` INTEGER NOT NULL, `enabled` INTEGER NOT NULL, `enabledExplore` INTEGER NOT NULL, `header` TEXT, `loginUrl` TEXT, `bookSourceComment` TEXT, `lastUpdateTime` INTEGER NOT NULL, `weight` INTEGER NOT NULL, `exploreUrl` TEXT, `ruleExplore` TEXT, `searchUrl` TEXT, `ruleSearch` TEXT, `ruleBookInfo` TEXT, `ruleToc` TEXT, `ruleContent` TEXT, PRIMARY KEY(`bookSourceUrl`))", - "fields": [ - { - "fieldPath": "bookSourceName", - "columnName": "bookSourceName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookSourceGroup", - "columnName": "bookSourceGroup", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "bookSourceUrl", - "columnName": "bookSourceUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookSourceType", - "columnName": "bookSourceType", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "bookUrlPattern", - "columnName": "bookUrlPattern", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "customOrder", - "columnName": "customOrder", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "enabled", - "columnName": "enabled", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "enabledExplore", - "columnName": "enabledExplore", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "header", - "columnName": "header", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "loginUrl", - "columnName": "loginUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "bookSourceComment", - "columnName": "bookSourceComment", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "lastUpdateTime", - "columnName": "lastUpdateTime", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "weight", - "columnName": "weight", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "exploreUrl", - "columnName": "exploreUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleExplore", - "columnName": "ruleExplore", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "searchUrl", - "columnName": "searchUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleSearch", - "columnName": "ruleSearch", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleBookInfo", - "columnName": "ruleBookInfo", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleToc", - "columnName": "ruleToc", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleContent", - "columnName": "ruleContent", - "affinity": "TEXT", - "notNull": false - } - ], - "primaryKey": { - "columnNames": [ - "bookSourceUrl" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_book_sources_bookSourceUrl", - "unique": false, - "columnNames": [ - "bookSourceUrl" - ], - "createSql": "CREATE INDEX IF NOT EXISTS `index_book_sources_bookSourceUrl` ON `${TABLE_NAME}` (`bookSourceUrl`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "chapters", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`url` TEXT NOT NULL, `title` TEXT NOT NULL, `baseUrl` TEXT NOT NULL, `bookUrl` TEXT NOT NULL, `index` INTEGER NOT NULL, `resourceUrl` TEXT, `tag` TEXT, `start` INTEGER, `end` INTEGER, `variable` TEXT, PRIMARY KEY(`url`, `bookUrl`), FOREIGN KEY(`bookUrl`) REFERENCES `books`(`bookUrl`) ON UPDATE NO ACTION ON DELETE CASCADE )", - "fields": [ - { - "fieldPath": "url", - "columnName": "url", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "title", - "columnName": "title", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "baseUrl", - "columnName": "baseUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookUrl", - "columnName": "bookUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "index", - "columnName": "index", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "resourceUrl", - "columnName": "resourceUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "tag", - "columnName": "tag", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "start", - "columnName": "start", - "affinity": "INTEGER", - "notNull": false - }, - { - "fieldPath": "end", - "columnName": "end", - "affinity": "INTEGER", - "notNull": false - }, - { - "fieldPath": "variable", - "columnName": "variable", - "affinity": "TEXT", - "notNull": false - } - ], - "primaryKey": { - "columnNames": [ - "url", - "bookUrl" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_chapters_bookUrl", - "unique": false, - "columnNames": [ - "bookUrl" - ], - "createSql": "CREATE INDEX IF NOT EXISTS `index_chapters_bookUrl` ON `${TABLE_NAME}` (`bookUrl`)" - }, - { - "name": "index_chapters_bookUrl_index", - "unique": true, - "columnNames": [ - "bookUrl", - "index" - ], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_chapters_bookUrl_index` ON `${TABLE_NAME}` (`bookUrl`, `index`)" - } - ], - "foreignKeys": [ - { - "table": "books", - "onDelete": "CASCADE", - "onUpdate": "NO ACTION", - "columns": [ - "bookUrl" - ], - "referencedColumns": [ - "bookUrl" - ] - } - ] - }, - { - "tableName": "replace_rules", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, `name` TEXT NOT NULL, `group` TEXT, `pattern` TEXT NOT NULL, `replacement` TEXT NOT NULL, `scope` TEXT, `isEnabled` INTEGER NOT NULL, `isRegex` INTEGER NOT NULL, `sortOrder` INTEGER NOT NULL)", - "fields": [ - { - "fieldPath": "id", - "columnName": "id", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "group", - "columnName": "group", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "pattern", - "columnName": "pattern", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "replacement", - "columnName": "replacement", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "scope", - "columnName": "scope", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "isEnabled", - "columnName": "isEnabled", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "isRegex", - "columnName": "isRegex", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "order", - "columnName": "sortOrder", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "id" - ], - "autoGenerate": true - }, - "indices": [ - { - "name": "index_replace_rules_id", - "unique": false, - "columnNames": [ - "id" - ], - "createSql": "CREATE INDEX IF NOT EXISTS `index_replace_rules_id` ON `${TABLE_NAME}` (`id`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "searchBooks", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`bookUrl` TEXT NOT NULL, `origin` TEXT NOT NULL, `originName` TEXT NOT NULL, `type` INTEGER NOT NULL, `name` TEXT NOT NULL, `author` TEXT NOT NULL, `kind` TEXT, `coverUrl` TEXT, `intro` TEXT, `wordCount` TEXT, `latestChapterTitle` TEXT, `tocUrl` TEXT NOT NULL, `time` INTEGER NOT NULL, `variable` TEXT, `originOrder` INTEGER NOT NULL, PRIMARY KEY(`bookUrl`), FOREIGN KEY(`origin`) REFERENCES `book_sources`(`bookSourceUrl`) ON UPDATE NO ACTION ON DELETE CASCADE )", - "fields": [ - { - "fieldPath": "bookUrl", - "columnName": "bookUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "origin", - "columnName": "origin", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "originName", - "columnName": "originName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "type", - "columnName": "type", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "author", - "columnName": "author", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "kind", - "columnName": "kind", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "coverUrl", - "columnName": "coverUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "intro", - "columnName": "intro", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "wordCount", - "columnName": "wordCount", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "latestChapterTitle", - "columnName": "latestChapterTitle", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "tocUrl", - "columnName": "tocUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "time", - "columnName": "time", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "variable", - "columnName": "variable", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "originOrder", - "columnName": "originOrder", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "bookUrl" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_searchBooks_bookUrl", - "unique": true, - "columnNames": [ - "bookUrl" - ], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_searchBooks_bookUrl` ON `${TABLE_NAME}` (`bookUrl`)" - }, - { - "name": "index_searchBooks_origin", - "unique": false, - "columnNames": [ - "origin" - ], - "createSql": "CREATE INDEX IF NOT EXISTS `index_searchBooks_origin` ON `${TABLE_NAME}` (`origin`)" - } - ], - "foreignKeys": [ - { - "table": "book_sources", - "onDelete": "CASCADE", - "onUpdate": "NO ACTION", - "columns": [ - "origin" - ], - "referencedColumns": [ - "bookSourceUrl" - ] - } - ] - }, - { - "tableName": "search_keywords", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`word` TEXT NOT NULL, `usage` INTEGER NOT NULL, `lastUseTime` INTEGER NOT NULL, PRIMARY KEY(`word`))", - "fields": [ - { - "fieldPath": "word", - "columnName": "word", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "usage", - "columnName": "usage", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "lastUseTime", - "columnName": "lastUseTime", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "word" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_search_keywords_word", - "unique": true, - "columnNames": [ - "word" - ], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_search_keywords_word` ON `${TABLE_NAME}` (`word`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "cookies", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`url` TEXT NOT NULL, `cookie` TEXT NOT NULL, PRIMARY KEY(`url`))", - "fields": [ - { - "fieldPath": "url", - "columnName": "url", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "cookie", - "columnName": "cookie", - "affinity": "TEXT", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "url" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_cookies_url", - "unique": true, - "columnNames": [ - "url" - ], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_cookies_url` ON `${TABLE_NAME}` (`url`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "rssSources", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`sourceUrl` TEXT NOT NULL, `sourceName` TEXT NOT NULL, `sourceIcon` TEXT NOT NULL, `sourceGroup` TEXT, `sourceComment` TEXT, `enabled` INTEGER NOT NULL, `sortUrl` TEXT, `singleUrl` INTEGER NOT NULL, `articleStyle` INTEGER NOT NULL, `ruleArticles` TEXT, `ruleNextPage` TEXT, `ruleTitle` TEXT, `rulePubDate` TEXT, `ruleDescription` TEXT, `ruleImage` TEXT, `ruleLink` TEXT, `ruleContent` TEXT, `style` TEXT, `header` TEXT, `enableJs` INTEGER NOT NULL, `loadWithBaseUrl` INTEGER NOT NULL, `customOrder` INTEGER NOT NULL, PRIMARY KEY(`sourceUrl`))", - "fields": [ - { - "fieldPath": "sourceUrl", - "columnName": "sourceUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "sourceName", - "columnName": "sourceName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "sourceIcon", - "columnName": "sourceIcon", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "sourceGroup", - "columnName": "sourceGroup", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "sourceComment", - "columnName": "sourceComment", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "enabled", - "columnName": "enabled", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "sortUrl", - "columnName": "sortUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "singleUrl", - "columnName": "singleUrl", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "articleStyle", - "columnName": "articleStyle", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "ruleArticles", - "columnName": "ruleArticles", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleNextPage", - "columnName": "ruleNextPage", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleTitle", - "columnName": "ruleTitle", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "rulePubDate", - "columnName": "rulePubDate", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleDescription", - "columnName": "ruleDescription", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleImage", - "columnName": "ruleImage", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleLink", - "columnName": "ruleLink", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleContent", - "columnName": "ruleContent", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "style", - "columnName": "style", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "header", - "columnName": "header", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "enableJs", - "columnName": "enableJs", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "loadWithBaseUrl", - "columnName": "loadWithBaseUrl", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "customOrder", - "columnName": "customOrder", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "sourceUrl" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_rssSources_sourceUrl", - "unique": false, - "columnNames": [ - "sourceUrl" - ], - "createSql": "CREATE INDEX IF NOT EXISTS `index_rssSources_sourceUrl` ON `${TABLE_NAME}` (`sourceUrl`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "bookmarks", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`time` INTEGER NOT NULL, `bookUrl` TEXT NOT NULL, `bookName` TEXT NOT NULL, `bookAuthor` TEXT NOT NULL, `chapterIndex` INTEGER NOT NULL, `chapterPos` INTEGER NOT NULL, `chapterName` TEXT NOT NULL, `bookText` TEXT NOT NULL, `content` TEXT NOT NULL, PRIMARY KEY(`time`))", - "fields": [ - { - "fieldPath": "time", - "columnName": "time", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "bookUrl", - "columnName": "bookUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookName", - "columnName": "bookName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookAuthor", - "columnName": "bookAuthor", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "chapterIndex", - "columnName": "chapterIndex", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "chapterPos", - "columnName": "chapterPos", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "chapterName", - "columnName": "chapterName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookText", - "columnName": "bookText", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "content", - "columnName": "content", - "affinity": "TEXT", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "time" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_bookmarks_time", - "unique": true, - "columnNames": [ - "time" - ], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_bookmarks_time` ON `${TABLE_NAME}` (`time`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "rssArticles", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`origin` TEXT NOT NULL, `sort` TEXT NOT NULL, `title` TEXT NOT NULL, `order` INTEGER NOT NULL, `link` TEXT NOT NULL, `pubDate` TEXT, `description` TEXT, `content` TEXT, `image` TEXT, `read` INTEGER NOT NULL, `variable` TEXT, PRIMARY KEY(`origin`, `link`))", - "fields": [ - { - "fieldPath": "origin", - "columnName": "origin", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "sort", - "columnName": "sort", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "title", - "columnName": "title", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "order", - "columnName": "order", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "link", - "columnName": "link", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "pubDate", - "columnName": "pubDate", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "description", - "columnName": "description", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "content", - "columnName": "content", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "image", - "columnName": "image", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "read", - "columnName": "read", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "variable", - "columnName": "variable", - "affinity": "TEXT", - "notNull": false - } - ], - "primaryKey": { - "columnNames": [ - "origin", - "link" - ], - "autoGenerate": false - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "rssReadRecords", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`record` TEXT NOT NULL, `read` INTEGER NOT NULL, PRIMARY KEY(`record`))", - "fields": [ - { - "fieldPath": "record", - "columnName": "record", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "read", - "columnName": "read", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "record" - ], - "autoGenerate": false - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "rssStars", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`origin` TEXT NOT NULL, `sort` TEXT NOT NULL, `title` TEXT NOT NULL, `starTime` INTEGER NOT NULL, `link` TEXT NOT NULL, `pubDate` TEXT, `description` TEXT, `content` TEXT, `image` TEXT, `variable` TEXT, PRIMARY KEY(`origin`, `link`))", - "fields": [ - { - "fieldPath": "origin", - "columnName": "origin", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "sort", - "columnName": "sort", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "title", - "columnName": "title", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "starTime", - "columnName": "starTime", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "link", - "columnName": "link", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "pubDate", - "columnName": "pubDate", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "description", - "columnName": "description", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "content", - "columnName": "content", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "image", - "columnName": "image", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "variable", - "columnName": "variable", - "affinity": "TEXT", - "notNull": false - } - ], - "primaryKey": { - "columnNames": [ - "origin", - "link" - ], - "autoGenerate": false - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "txtTocRules", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER NOT NULL, `name` TEXT NOT NULL, `rule` TEXT NOT NULL, `serialNumber` INTEGER NOT NULL, `enable` INTEGER NOT NULL, PRIMARY KEY(`id`))", - "fields": [ - { - "fieldPath": "id", - "columnName": "id", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "rule", - "columnName": "rule", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "serialNumber", - "columnName": "serialNumber", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "enable", - "columnName": "enable", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "id" - ], - "autoGenerate": false - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "readRecord", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`androidId` TEXT NOT NULL, `bookName` TEXT NOT NULL, `readTime` INTEGER NOT NULL, PRIMARY KEY(`androidId`, `bookName`))", - "fields": [ - { - "fieldPath": "androidId", - "columnName": "androidId", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookName", - "columnName": "bookName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "readTime", - "columnName": "readTime", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "androidId", - "bookName" - ], - "autoGenerate": false - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "httpTTS", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER NOT NULL, `name` TEXT NOT NULL, `url` TEXT NOT NULL, PRIMARY KEY(`id`))", - "fields": [ - { - "fieldPath": "id", - "columnName": "id", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "url", - "columnName": "url", - "affinity": "TEXT", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "id" - ], - "autoGenerate": false - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "caches", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`key` TEXT NOT NULL, `value` TEXT, `deadline` INTEGER NOT NULL, PRIMARY KEY(`key`))", - "fields": [ - { - "fieldPath": "key", - "columnName": "key", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "value", - "columnName": "value", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "deadline", - "columnName": "deadline", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "key" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_caches_key", - "unique": true, - "columnNames": [ - "key" - ], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_caches_key` ON `${TABLE_NAME}` (`key`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "ruleSubs", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER NOT NULL, `name` TEXT NOT NULL, `url` TEXT NOT NULL, `type` INTEGER NOT NULL, `customOrder` INTEGER NOT NULL, `autoUpdate` INTEGER NOT NULL, `update` INTEGER NOT NULL, PRIMARY KEY(`id`))", - "fields": [ - { - "fieldPath": "id", - "columnName": "id", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "url", - "columnName": "url", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "type", - "columnName": "type", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "customOrder", - "columnName": "customOrder", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "autoUpdate", - "columnName": "autoUpdate", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "update", - "columnName": "update", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "id" - ], - "autoGenerate": false - }, - "indices": [], - "foreignKeys": [] - } - ], - "views": [], - "setupQueries": [ - "CREATE TABLE IF NOT EXISTS room_master_table (id INTEGER PRIMARY KEY,identity_hash TEXT)", - "INSERT OR REPLACE INTO room_master_table (id,identity_hash) VALUES(42, '85f1e7146f650af82aac6f9137eff815')" - ] - } -} \ No newline at end of file diff --git a/app/schemas/io.legado.app.data.AppDatabase/3.json b/app/schemas/io.legado.app.data.AppDatabase/3.json deleted file mode 100644 index 0880d84a9..000000000 --- a/app/schemas/io.legado.app.data.AppDatabase/3.json +++ /dev/null @@ -1,1036 +0,0 @@ -{ - "formatVersion": 1, - "database": { - "version": 3, - "identityHash": "a3ccd8882307290a450c49e09a4435f6", - "entities": [ - { - "tableName": "books", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`bookUrl` TEXT NOT NULL, `tocUrl` TEXT NOT NULL, `origin` TEXT NOT NULL, `originName` TEXT NOT NULL, `name` TEXT NOT NULL, `author` TEXT NOT NULL, `kind` TEXT, `customTag` TEXT, `coverUrl` TEXT, `customCoverUrl` TEXT, `intro` TEXT, `customIntro` TEXT, `charset` TEXT, `type` INTEGER NOT NULL, `group` INTEGER NOT NULL, `latestChapterTitle` TEXT, `latestChapterTime` INTEGER NOT NULL, `lastCheckTime` INTEGER NOT NULL, `lastCheckCount` INTEGER NOT NULL, `totalChapterNum` INTEGER NOT NULL, `durChapterTitle` TEXT, `durChapterIndex` INTEGER NOT NULL, `durChapterPos` INTEGER NOT NULL, `durChapterTime` INTEGER NOT NULL, `wordCount` TEXT, `canUpdate` INTEGER NOT NULL, `order` INTEGER NOT NULL, `originOrder` INTEGER NOT NULL, `useReplaceRule` INTEGER NOT NULL, `variable` TEXT, PRIMARY KEY(`bookUrl`))", - "fields": [ - { - "fieldPath": "bookUrl", - "columnName": "bookUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "tocUrl", - "columnName": "tocUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "origin", - "columnName": "origin", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "originName", - "columnName": "originName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "author", - "columnName": "author", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "kind", - "columnName": "kind", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "customTag", - "columnName": "customTag", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "coverUrl", - "columnName": "coverUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "customCoverUrl", - "columnName": "customCoverUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "intro", - "columnName": "intro", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "customIntro", - "columnName": "customIntro", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "charset", - "columnName": "charset", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "type", - "columnName": "type", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "group", - "columnName": "group", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "latestChapterTitle", - "columnName": "latestChapterTitle", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "latestChapterTime", - "columnName": "latestChapterTime", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "lastCheckTime", - "columnName": "lastCheckTime", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "lastCheckCount", - "columnName": "lastCheckCount", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "totalChapterNum", - "columnName": "totalChapterNum", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "durChapterTitle", - "columnName": "durChapterTitle", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "durChapterIndex", - "columnName": "durChapterIndex", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "durChapterPos", - "columnName": "durChapterPos", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "durChapterTime", - "columnName": "durChapterTime", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "wordCount", - "columnName": "wordCount", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "canUpdate", - "columnName": "canUpdate", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "order", - "columnName": "order", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "originOrder", - "columnName": "originOrder", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "useReplaceRule", - "columnName": "useReplaceRule", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "variable", - "columnName": "variable", - "affinity": "TEXT", - "notNull": false - } - ], - "primaryKey": { - "columnNames": [ - "bookUrl" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_books_bookUrl", - "unique": true, - "columnNames": [ - "bookUrl" - ], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_books_bookUrl` ON `${TABLE_NAME}` (`bookUrl`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "book_groups", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`groupId` INTEGER NOT NULL, `groupName` TEXT NOT NULL, `order` INTEGER NOT NULL, PRIMARY KEY(`groupId`))", - "fields": [ - { - "fieldPath": "groupId", - "columnName": "groupId", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "groupName", - "columnName": "groupName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "order", - "columnName": "order", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "groupId" - ], - "autoGenerate": false - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "book_sources", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`bookSourceName` TEXT NOT NULL, `bookSourceGroup` TEXT, `bookSourceUrl` TEXT NOT NULL, `bookSourceType` INTEGER NOT NULL, `bookUrlPattern` TEXT, `customOrder` INTEGER NOT NULL, `enabled` INTEGER NOT NULL, `enabledExplore` INTEGER NOT NULL, `header` TEXT, `loginUrl` TEXT, `lastUpdateTime` INTEGER NOT NULL, `weight` INTEGER NOT NULL, `exploreUrl` TEXT, `ruleExplore` TEXT, `searchUrl` TEXT, `ruleSearch` TEXT, `ruleBookInfo` TEXT, `ruleToc` TEXT, `ruleContent` TEXT, PRIMARY KEY(`bookSourceUrl`))", - "fields": [ - { - "fieldPath": "bookSourceName", - "columnName": "bookSourceName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookSourceGroup", - "columnName": "bookSourceGroup", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "bookSourceUrl", - "columnName": "bookSourceUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookSourceType", - "columnName": "bookSourceType", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "bookUrlPattern", - "columnName": "bookUrlPattern", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "customOrder", - "columnName": "customOrder", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "enabled", - "columnName": "enabled", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "enabledExplore", - "columnName": "enabledExplore", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "header", - "columnName": "header", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "loginUrl", - "columnName": "loginUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "lastUpdateTime", - "columnName": "lastUpdateTime", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "weight", - "columnName": "weight", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "exploreUrl", - "columnName": "exploreUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleExplore", - "columnName": "ruleExplore", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "searchUrl", - "columnName": "searchUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleSearch", - "columnName": "ruleSearch", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleBookInfo", - "columnName": "ruleBookInfo", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleToc", - "columnName": "ruleToc", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleContent", - "columnName": "ruleContent", - "affinity": "TEXT", - "notNull": false - } - ], - "primaryKey": { - "columnNames": [ - "bookSourceUrl" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_book_sources_bookSourceUrl", - "unique": false, - "columnNames": [ - "bookSourceUrl" - ], - "createSql": "CREATE INDEX IF NOT EXISTS `index_book_sources_bookSourceUrl` ON `${TABLE_NAME}` (`bookSourceUrl`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "chapters", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`url` TEXT NOT NULL, `title` TEXT NOT NULL, `bookUrl` TEXT NOT NULL, `index` INTEGER NOT NULL, `resourceUrl` TEXT, `tag` TEXT, `start` INTEGER, `end` INTEGER, `variable` TEXT, PRIMARY KEY(`url`, `bookUrl`), FOREIGN KEY(`bookUrl`) REFERENCES `books`(`bookUrl`) ON UPDATE NO ACTION ON DELETE CASCADE )", - "fields": [ - { - "fieldPath": "url", - "columnName": "url", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "title", - "columnName": "title", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookUrl", - "columnName": "bookUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "index", - "columnName": "index", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "resourceUrl", - "columnName": "resourceUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "tag", - "columnName": "tag", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "start", - "columnName": "start", - "affinity": "INTEGER", - "notNull": false - }, - { - "fieldPath": "end", - "columnName": "end", - "affinity": "INTEGER", - "notNull": false - }, - { - "fieldPath": "variable", - "columnName": "variable", - "affinity": "TEXT", - "notNull": false - } - ], - "primaryKey": { - "columnNames": [ - "url", - "bookUrl" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_chapters_bookUrl", - "unique": false, - "columnNames": [ - "bookUrl" - ], - "createSql": "CREATE INDEX IF NOT EXISTS `index_chapters_bookUrl` ON `${TABLE_NAME}` (`bookUrl`)" - }, - { - "name": "index_chapters_bookUrl_index", - "unique": true, - "columnNames": [ - "bookUrl", - "index" - ], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_chapters_bookUrl_index` ON `${TABLE_NAME}` (`bookUrl`, `index`)" - } - ], - "foreignKeys": [ - { - "table": "books", - "onDelete": "CASCADE", - "onUpdate": "NO ACTION", - "columns": [ - "bookUrl" - ], - "referencedColumns": [ - "bookUrl" - ] - } - ] - }, - { - "tableName": "replace_rules", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, `name` TEXT NOT NULL, `group` TEXT, `pattern` TEXT NOT NULL, `replacement` TEXT NOT NULL, `scope` TEXT, `isEnabled` INTEGER NOT NULL, `isRegex` INTEGER NOT NULL, `sortOrder` INTEGER NOT NULL)", - "fields": [ - { - "fieldPath": "id", - "columnName": "id", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "group", - "columnName": "group", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "pattern", - "columnName": "pattern", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "replacement", - "columnName": "replacement", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "scope", - "columnName": "scope", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "isEnabled", - "columnName": "isEnabled", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "isRegex", - "columnName": "isRegex", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "order", - "columnName": "sortOrder", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "id" - ], - "autoGenerate": true - }, - "indices": [ - { - "name": "index_replace_rules_id", - "unique": false, - "columnNames": [ - "id" - ], - "createSql": "CREATE INDEX IF NOT EXISTS `index_replace_rules_id` ON `${TABLE_NAME}` (`id`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "searchBooks", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`bookUrl` TEXT NOT NULL, `origin` TEXT NOT NULL, `originName` TEXT NOT NULL, `type` INTEGER NOT NULL, `name` TEXT NOT NULL, `author` TEXT NOT NULL, `kind` TEXT, `coverUrl` TEXT, `intro` TEXT, `wordCount` TEXT, `latestChapterTitle` TEXT, `tocUrl` TEXT NOT NULL, `time` INTEGER NOT NULL, `variable` TEXT, `originOrder` INTEGER NOT NULL, PRIMARY KEY(`bookUrl`), FOREIGN KEY(`origin`) REFERENCES `book_sources`(`bookSourceUrl`) ON UPDATE NO ACTION ON DELETE CASCADE )", - "fields": [ - { - "fieldPath": "bookUrl", - "columnName": "bookUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "origin", - "columnName": "origin", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "originName", - "columnName": "originName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "type", - "columnName": "type", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "author", - "columnName": "author", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "kind", - "columnName": "kind", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "coverUrl", - "columnName": "coverUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "intro", - "columnName": "intro", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "wordCount", - "columnName": "wordCount", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "latestChapterTitle", - "columnName": "latestChapterTitle", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "tocUrl", - "columnName": "tocUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "time", - "columnName": "time", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "variable", - "columnName": "variable", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "originOrder", - "columnName": "originOrder", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "bookUrl" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_searchBooks_bookUrl", - "unique": true, - "columnNames": [ - "bookUrl" - ], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_searchBooks_bookUrl` ON `${TABLE_NAME}` (`bookUrl`)" - }, - { - "name": "index_searchBooks_origin", - "unique": false, - "columnNames": [ - "origin" - ], - "createSql": "CREATE INDEX IF NOT EXISTS `index_searchBooks_origin` ON `${TABLE_NAME}` (`origin`)" - } - ], - "foreignKeys": [ - { - "table": "book_sources", - "onDelete": "CASCADE", - "onUpdate": "NO ACTION", - "columns": [ - "origin" - ], - "referencedColumns": [ - "bookSourceUrl" - ] - } - ] - }, - { - "tableName": "search_keywords", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`word` TEXT NOT NULL, `usage` INTEGER NOT NULL, `lastUseTime` INTEGER NOT NULL, PRIMARY KEY(`word`))", - "fields": [ - { - "fieldPath": "word", - "columnName": "word", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "usage", - "columnName": "usage", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "lastUseTime", - "columnName": "lastUseTime", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "word" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_search_keywords_word", - "unique": true, - "columnNames": [ - "word" - ], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_search_keywords_word` ON `${TABLE_NAME}` (`word`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "cookies", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`url` TEXT NOT NULL, `cookie` TEXT NOT NULL, PRIMARY KEY(`url`))", - "fields": [ - { - "fieldPath": "url", - "columnName": "url", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "cookie", - "columnName": "cookie", - "affinity": "TEXT", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "url" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_cookies_url", - "unique": true, - "columnNames": [ - "url" - ], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_cookies_url` ON `${TABLE_NAME}` (`url`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "rssSources", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`sourceUrl` TEXT NOT NULL, `sourceName` TEXT NOT NULL, `sourceIcon` TEXT NOT NULL, `sourceGroup` TEXT, `enabled` INTEGER NOT NULL, `ruleArticles` TEXT, `ruleNextPage` TEXT, `ruleTitle` TEXT, `rulePubDate` TEXT, `ruleDescription` TEXT, `ruleImage` TEXT, `ruleLink` TEXT, `ruleContent` TEXT, `header` TEXT, `enableJs` INTEGER NOT NULL, `loadWithBaseUrl` INTEGER NOT NULL, `customOrder` INTEGER NOT NULL, PRIMARY KEY(`sourceUrl`))", - "fields": [ - { - "fieldPath": "sourceUrl", - "columnName": "sourceUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "sourceName", - "columnName": "sourceName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "sourceIcon", - "columnName": "sourceIcon", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "sourceGroup", - "columnName": "sourceGroup", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "enabled", - "columnName": "enabled", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "ruleArticles", - "columnName": "ruleArticles", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleNextPage", - "columnName": "ruleNextPage", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleTitle", - "columnName": "ruleTitle", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "rulePubDate", - "columnName": "rulePubDate", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleDescription", - "columnName": "ruleDescription", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleImage", - "columnName": "ruleImage", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleLink", - "columnName": "ruleLink", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleContent", - "columnName": "ruleContent", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "header", - "columnName": "header", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "enableJs", - "columnName": "enableJs", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "loadWithBaseUrl", - "columnName": "loadWithBaseUrl", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "customOrder", - "columnName": "customOrder", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "sourceUrl" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_rssSources_sourceUrl", - "unique": false, - "columnNames": [ - "sourceUrl" - ], - "createSql": "CREATE INDEX IF NOT EXISTS `index_rssSources_sourceUrl` ON `${TABLE_NAME}` (`sourceUrl`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "bookmarks", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`time` INTEGER NOT NULL, `bookUrl` TEXT NOT NULL, `bookName` TEXT NOT NULL, `chapterName` TEXT NOT NULL, `chapterIndex` INTEGER NOT NULL, `pageIndex` INTEGER NOT NULL, `content` TEXT NOT NULL, PRIMARY KEY(`time`))", - "fields": [ - { - "fieldPath": "time", - "columnName": "time", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "bookUrl", - "columnName": "bookUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookName", - "columnName": "bookName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "chapterName", - "columnName": "chapterName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "chapterIndex", - "columnName": "chapterIndex", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "pageIndex", - "columnName": "pageIndex", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "content", - "columnName": "content", - "affinity": "TEXT", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "time" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_bookmarks_bookUrl", - "unique": true, - "columnNames": [ - "bookUrl" - ], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_bookmarks_bookUrl` ON `${TABLE_NAME}` (`bookUrl`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "rssArticles", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`origin` TEXT NOT NULL, `title` TEXT NOT NULL, `order` INTEGER NOT NULL, `link` TEXT NOT NULL, `pubDate` TEXT, `description` TEXT, `content` TEXT, `image` TEXT, `read` INTEGER NOT NULL, `star` INTEGER NOT NULL, PRIMARY KEY(`origin`, `link`))", - "fields": [ - { - "fieldPath": "origin", - "columnName": "origin", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "title", - "columnName": "title", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "order", - "columnName": "order", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "link", - "columnName": "link", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "pubDate", - "columnName": "pubDate", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "description", - "columnName": "description", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "content", - "columnName": "content", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "image", - "columnName": "image", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "read", - "columnName": "read", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "star", - "columnName": "star", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "origin", - "link" - ], - "autoGenerate": false - }, - "indices": [], - "foreignKeys": [] - } - ], - "views": [], - "setupQueries": [ - "CREATE TABLE IF NOT EXISTS room_master_table (id INTEGER PRIMARY KEY,identity_hash TEXT)", - "INSERT OR REPLACE INTO room_master_table (id,identity_hash) VALUES(42, 'a3ccd8882307290a450c49e09a4435f6')" - ] - } -} \ No newline at end of file diff --git a/app/schemas/io.legado.app.data.AppDatabase/30.json b/app/schemas/io.legado.app.data.AppDatabase/30.json deleted file mode 100644 index e5bf2b031..000000000 --- a/app/schemas/io.legado.app.data.AppDatabase/30.json +++ /dev/null @@ -1,1485 +0,0 @@ -{ - "formatVersion": 1, - "database": { - "version": 30, - "identityHash": "d9c8ef97ef4ffe0c1dbd57ca74bc4de4", - "entities": [ - { - "tableName": "books", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`bookUrl` TEXT NOT NULL, `tocUrl` TEXT NOT NULL, `origin` TEXT NOT NULL, `originName` TEXT NOT NULL, `name` TEXT NOT NULL, `author` TEXT NOT NULL, `kind` TEXT, `customTag` TEXT, `coverUrl` TEXT, `customCoverUrl` TEXT, `intro` TEXT, `customIntro` TEXT, `charset` TEXT, `type` INTEGER NOT NULL, `group` INTEGER NOT NULL, `latestChapterTitle` TEXT, `latestChapterTime` INTEGER NOT NULL, `lastCheckTime` INTEGER NOT NULL, `lastCheckCount` INTEGER NOT NULL, `totalChapterNum` INTEGER NOT NULL, `durChapterTitle` TEXT, `durChapterIndex` INTEGER NOT NULL, `durChapterPos` INTEGER NOT NULL, `durChapterTime` INTEGER NOT NULL, `wordCount` TEXT, `canUpdate` INTEGER NOT NULL, `order` INTEGER NOT NULL, `originOrder` INTEGER NOT NULL, `variable` TEXT, `readConfig` TEXT, PRIMARY KEY(`bookUrl`))", - "fields": [ - { - "fieldPath": "bookUrl", - "columnName": "bookUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "tocUrl", - "columnName": "tocUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "origin", - "columnName": "origin", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "originName", - "columnName": "originName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "author", - "columnName": "author", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "kind", - "columnName": "kind", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "customTag", - "columnName": "customTag", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "coverUrl", - "columnName": "coverUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "customCoverUrl", - "columnName": "customCoverUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "intro", - "columnName": "intro", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "customIntro", - "columnName": "customIntro", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "charset", - "columnName": "charset", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "type", - "columnName": "type", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "group", - "columnName": "group", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "latestChapterTitle", - "columnName": "latestChapterTitle", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "latestChapterTime", - "columnName": "latestChapterTime", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "lastCheckTime", - "columnName": "lastCheckTime", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "lastCheckCount", - "columnName": "lastCheckCount", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "totalChapterNum", - "columnName": "totalChapterNum", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "durChapterTitle", - "columnName": "durChapterTitle", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "durChapterIndex", - "columnName": "durChapterIndex", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "durChapterPos", - "columnName": "durChapterPos", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "durChapterTime", - "columnName": "durChapterTime", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "wordCount", - "columnName": "wordCount", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "canUpdate", - "columnName": "canUpdate", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "order", - "columnName": "order", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "originOrder", - "columnName": "originOrder", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "variable", - "columnName": "variable", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "readConfig", - "columnName": "readConfig", - "affinity": "TEXT", - "notNull": false - } - ], - "primaryKey": { - "columnNames": [ - "bookUrl" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_books_name_author", - "unique": true, - "columnNames": [ - "name", - "author" - ], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_books_name_author` ON `${TABLE_NAME}` (`name`, `author`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "book_groups", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`groupId` INTEGER NOT NULL, `groupName` TEXT NOT NULL, `order` INTEGER NOT NULL, `show` INTEGER NOT NULL, PRIMARY KEY(`groupId`))", - "fields": [ - { - "fieldPath": "groupId", - "columnName": "groupId", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "groupName", - "columnName": "groupName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "order", - "columnName": "order", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "show", - "columnName": "show", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "groupId" - ], - "autoGenerate": false - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "book_sources", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`bookSourceName` TEXT NOT NULL, `bookSourceGroup` TEXT, `bookSourceUrl` TEXT NOT NULL, `bookSourceType` INTEGER NOT NULL, `bookUrlPattern` TEXT, `customOrder` INTEGER NOT NULL, `enabled` INTEGER NOT NULL, `enabledExplore` INTEGER NOT NULL, `header` TEXT, `loginUrl` TEXT, `bookSourceComment` TEXT, `lastUpdateTime` INTEGER NOT NULL, `weight` INTEGER NOT NULL, `exploreUrl` TEXT, `ruleExplore` TEXT, `searchUrl` TEXT, `ruleSearch` TEXT, `ruleBookInfo` TEXT, `ruleToc` TEXT, `ruleContent` TEXT, PRIMARY KEY(`bookSourceUrl`))", - "fields": [ - { - "fieldPath": "bookSourceName", - "columnName": "bookSourceName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookSourceGroup", - "columnName": "bookSourceGroup", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "bookSourceUrl", - "columnName": "bookSourceUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookSourceType", - "columnName": "bookSourceType", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "bookUrlPattern", - "columnName": "bookUrlPattern", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "customOrder", - "columnName": "customOrder", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "enabled", - "columnName": "enabled", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "enabledExplore", - "columnName": "enabledExplore", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "header", - "columnName": "header", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "loginUrl", - "columnName": "loginUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "bookSourceComment", - "columnName": "bookSourceComment", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "lastUpdateTime", - "columnName": "lastUpdateTime", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "weight", - "columnName": "weight", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "exploreUrl", - "columnName": "exploreUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleExplore", - "columnName": "ruleExplore", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "searchUrl", - "columnName": "searchUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleSearch", - "columnName": "ruleSearch", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleBookInfo", - "columnName": "ruleBookInfo", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleToc", - "columnName": "ruleToc", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleContent", - "columnName": "ruleContent", - "affinity": "TEXT", - "notNull": false - } - ], - "primaryKey": { - "columnNames": [ - "bookSourceUrl" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_book_sources_bookSourceUrl", - "unique": false, - "columnNames": [ - "bookSourceUrl" - ], - "createSql": "CREATE INDEX IF NOT EXISTS `index_book_sources_bookSourceUrl` ON `${TABLE_NAME}` (`bookSourceUrl`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "chapters", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`url` TEXT NOT NULL, `title` TEXT NOT NULL, `baseUrl` TEXT NOT NULL, `bookUrl` TEXT NOT NULL, `index` INTEGER NOT NULL, `resourceUrl` TEXT, `tag` TEXT, `start` INTEGER, `end` INTEGER, `startFragmentId` TEXT, `endFragmentId` TEXT, `variable` TEXT, PRIMARY KEY(`url`, `bookUrl`), FOREIGN KEY(`bookUrl`) REFERENCES `books`(`bookUrl`) ON UPDATE NO ACTION ON DELETE CASCADE )", - "fields": [ - { - "fieldPath": "url", - "columnName": "url", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "title", - "columnName": "title", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "baseUrl", - "columnName": "baseUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookUrl", - "columnName": "bookUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "index", - "columnName": "index", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "resourceUrl", - "columnName": "resourceUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "tag", - "columnName": "tag", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "start", - "columnName": "start", - "affinity": "INTEGER", - "notNull": false - }, - { - "fieldPath": "end", - "columnName": "end", - "affinity": "INTEGER", - "notNull": false - }, - { - "fieldPath": "startFragmentId", - "columnName": "startFragmentId", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "endFragmentId", - "columnName": "endFragmentId", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "variable", - "columnName": "variable", - "affinity": "TEXT", - "notNull": false - } - ], - "primaryKey": { - "columnNames": [ - "url", - "bookUrl" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_chapters_bookUrl", - "unique": false, - "columnNames": [ - "bookUrl" - ], - "createSql": "CREATE INDEX IF NOT EXISTS `index_chapters_bookUrl` ON `${TABLE_NAME}` (`bookUrl`)" - }, - { - "name": "index_chapters_bookUrl_index", - "unique": true, - "columnNames": [ - "bookUrl", - "index" - ], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_chapters_bookUrl_index` ON `${TABLE_NAME}` (`bookUrl`, `index`)" - } - ], - "foreignKeys": [ - { - "table": "books", - "onDelete": "CASCADE", - "onUpdate": "NO ACTION", - "columns": [ - "bookUrl" - ], - "referencedColumns": [ - "bookUrl" - ] - } - ] - }, - { - "tableName": "replace_rules", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, `name` TEXT NOT NULL, `group` TEXT, `pattern` TEXT NOT NULL, `replacement` TEXT NOT NULL, `scope` TEXT, `isEnabled` INTEGER NOT NULL, `isRegex` INTEGER NOT NULL, `sortOrder` INTEGER NOT NULL)", - "fields": [ - { - "fieldPath": "id", - "columnName": "id", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "group", - "columnName": "group", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "pattern", - "columnName": "pattern", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "replacement", - "columnName": "replacement", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "scope", - "columnName": "scope", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "isEnabled", - "columnName": "isEnabled", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "isRegex", - "columnName": "isRegex", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "order", - "columnName": "sortOrder", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "id" - ], - "autoGenerate": true - }, - "indices": [ - { - "name": "index_replace_rules_id", - "unique": false, - "columnNames": [ - "id" - ], - "createSql": "CREATE INDEX IF NOT EXISTS `index_replace_rules_id` ON `${TABLE_NAME}` (`id`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "searchBooks", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`bookUrl` TEXT NOT NULL, `origin` TEXT NOT NULL, `originName` TEXT NOT NULL, `type` INTEGER NOT NULL, `name` TEXT NOT NULL, `author` TEXT NOT NULL, `kind` TEXT, `coverUrl` TEXT, `intro` TEXT, `wordCount` TEXT, `latestChapterTitle` TEXT, `tocUrl` TEXT NOT NULL, `time` INTEGER NOT NULL, `variable` TEXT, `originOrder` INTEGER NOT NULL, PRIMARY KEY(`bookUrl`), FOREIGN KEY(`origin`) REFERENCES `book_sources`(`bookSourceUrl`) ON UPDATE NO ACTION ON DELETE CASCADE )", - "fields": [ - { - "fieldPath": "bookUrl", - "columnName": "bookUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "origin", - "columnName": "origin", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "originName", - "columnName": "originName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "type", - "columnName": "type", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "author", - "columnName": "author", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "kind", - "columnName": "kind", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "coverUrl", - "columnName": "coverUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "intro", - "columnName": "intro", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "wordCount", - "columnName": "wordCount", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "latestChapterTitle", - "columnName": "latestChapterTitle", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "tocUrl", - "columnName": "tocUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "time", - "columnName": "time", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "variable", - "columnName": "variable", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "originOrder", - "columnName": "originOrder", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "bookUrl" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_searchBooks_bookUrl", - "unique": true, - "columnNames": [ - "bookUrl" - ], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_searchBooks_bookUrl` ON `${TABLE_NAME}` (`bookUrl`)" - }, - { - "name": "index_searchBooks_origin", - "unique": false, - "columnNames": [ - "origin" - ], - "createSql": "CREATE INDEX IF NOT EXISTS `index_searchBooks_origin` ON `${TABLE_NAME}` (`origin`)" - } - ], - "foreignKeys": [ - { - "table": "book_sources", - "onDelete": "CASCADE", - "onUpdate": "NO ACTION", - "columns": [ - "origin" - ], - "referencedColumns": [ - "bookSourceUrl" - ] - } - ] - }, - { - "tableName": "search_keywords", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`word` TEXT NOT NULL, `usage` INTEGER NOT NULL, `lastUseTime` INTEGER NOT NULL, PRIMARY KEY(`word`))", - "fields": [ - { - "fieldPath": "word", - "columnName": "word", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "usage", - "columnName": "usage", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "lastUseTime", - "columnName": "lastUseTime", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "word" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_search_keywords_word", - "unique": true, - "columnNames": [ - "word" - ], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_search_keywords_word` ON `${TABLE_NAME}` (`word`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "cookies", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`url` TEXT NOT NULL, `cookie` TEXT NOT NULL, PRIMARY KEY(`url`))", - "fields": [ - { - "fieldPath": "url", - "columnName": "url", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "cookie", - "columnName": "cookie", - "affinity": "TEXT", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "url" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_cookies_url", - "unique": true, - "columnNames": [ - "url" - ], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_cookies_url` ON `${TABLE_NAME}` (`url`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "rssSources", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`sourceUrl` TEXT NOT NULL, `sourceName` TEXT NOT NULL, `sourceIcon` TEXT NOT NULL, `sourceGroup` TEXT, `sourceComment` TEXT, `enabled` INTEGER NOT NULL, `sortUrl` TEXT, `singleUrl` INTEGER NOT NULL, `articleStyle` INTEGER NOT NULL, `ruleArticles` TEXT, `ruleNextPage` TEXT, `ruleTitle` TEXT, `rulePubDate` TEXT, `ruleDescription` TEXT, `ruleImage` TEXT, `ruleLink` TEXT, `ruleContent` TEXT, `style` TEXT, `header` TEXT, `enableJs` INTEGER NOT NULL, `loadWithBaseUrl` INTEGER NOT NULL, `customOrder` INTEGER NOT NULL, PRIMARY KEY(`sourceUrl`))", - "fields": [ - { - "fieldPath": "sourceUrl", - "columnName": "sourceUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "sourceName", - "columnName": "sourceName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "sourceIcon", - "columnName": "sourceIcon", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "sourceGroup", - "columnName": "sourceGroup", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "sourceComment", - "columnName": "sourceComment", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "enabled", - "columnName": "enabled", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "sortUrl", - "columnName": "sortUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "singleUrl", - "columnName": "singleUrl", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "articleStyle", - "columnName": "articleStyle", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "ruleArticles", - "columnName": "ruleArticles", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleNextPage", - "columnName": "ruleNextPage", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleTitle", - "columnName": "ruleTitle", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "rulePubDate", - "columnName": "rulePubDate", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleDescription", - "columnName": "ruleDescription", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleImage", - "columnName": "ruleImage", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleLink", - "columnName": "ruleLink", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleContent", - "columnName": "ruleContent", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "style", - "columnName": "style", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "header", - "columnName": "header", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "enableJs", - "columnName": "enableJs", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "loadWithBaseUrl", - "columnName": "loadWithBaseUrl", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "customOrder", - "columnName": "customOrder", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "sourceUrl" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_rssSources_sourceUrl", - "unique": false, - "columnNames": [ - "sourceUrl" - ], - "createSql": "CREATE INDEX IF NOT EXISTS `index_rssSources_sourceUrl` ON `${TABLE_NAME}` (`sourceUrl`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "bookmarks", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`time` INTEGER NOT NULL, `bookUrl` TEXT NOT NULL, `bookName` TEXT NOT NULL, `bookAuthor` TEXT NOT NULL, `chapterIndex` INTEGER NOT NULL, `chapterPos` INTEGER NOT NULL, `chapterName` TEXT NOT NULL, `bookText` TEXT NOT NULL, `content` TEXT NOT NULL, PRIMARY KEY(`time`))", - "fields": [ - { - "fieldPath": "time", - "columnName": "time", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "bookUrl", - "columnName": "bookUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookName", - "columnName": "bookName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookAuthor", - "columnName": "bookAuthor", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "chapterIndex", - "columnName": "chapterIndex", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "chapterPos", - "columnName": "chapterPos", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "chapterName", - "columnName": "chapterName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookText", - "columnName": "bookText", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "content", - "columnName": "content", - "affinity": "TEXT", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "time" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_bookmarks_time", - "unique": true, - "columnNames": [ - "time" - ], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_bookmarks_time` ON `${TABLE_NAME}` (`time`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "rssArticles", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`origin` TEXT NOT NULL, `sort` TEXT NOT NULL, `title` TEXT NOT NULL, `order` INTEGER NOT NULL, `link` TEXT NOT NULL, `pubDate` TEXT, `description` TEXT, `content` TEXT, `image` TEXT, `read` INTEGER NOT NULL, `variable` TEXT, PRIMARY KEY(`origin`, `link`))", - "fields": [ - { - "fieldPath": "origin", - "columnName": "origin", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "sort", - "columnName": "sort", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "title", - "columnName": "title", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "order", - "columnName": "order", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "link", - "columnName": "link", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "pubDate", - "columnName": "pubDate", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "description", - "columnName": "description", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "content", - "columnName": "content", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "image", - "columnName": "image", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "read", - "columnName": "read", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "variable", - "columnName": "variable", - "affinity": "TEXT", - "notNull": false - } - ], - "primaryKey": { - "columnNames": [ - "origin", - "link" - ], - "autoGenerate": false - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "rssReadRecords", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`record` TEXT NOT NULL, `read` INTEGER NOT NULL, PRIMARY KEY(`record`))", - "fields": [ - { - "fieldPath": "record", - "columnName": "record", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "read", - "columnName": "read", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "record" - ], - "autoGenerate": false - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "rssStars", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`origin` TEXT NOT NULL, `sort` TEXT NOT NULL, `title` TEXT NOT NULL, `starTime` INTEGER NOT NULL, `link` TEXT NOT NULL, `pubDate` TEXT, `description` TEXT, `content` TEXT, `image` TEXT, `variable` TEXT, PRIMARY KEY(`origin`, `link`))", - "fields": [ - { - "fieldPath": "origin", - "columnName": "origin", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "sort", - "columnName": "sort", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "title", - "columnName": "title", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "starTime", - "columnName": "starTime", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "link", - "columnName": "link", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "pubDate", - "columnName": "pubDate", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "description", - "columnName": "description", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "content", - "columnName": "content", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "image", - "columnName": "image", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "variable", - "columnName": "variable", - "affinity": "TEXT", - "notNull": false - } - ], - "primaryKey": { - "columnNames": [ - "origin", - "link" - ], - "autoGenerate": false - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "txtTocRules", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER NOT NULL, `name` TEXT NOT NULL, `rule` TEXT NOT NULL, `serialNumber` INTEGER NOT NULL, `enable` INTEGER NOT NULL, PRIMARY KEY(`id`))", - "fields": [ - { - "fieldPath": "id", - "columnName": "id", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "rule", - "columnName": "rule", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "serialNumber", - "columnName": "serialNumber", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "enable", - "columnName": "enable", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "id" - ], - "autoGenerate": false - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "readRecord", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`deviceId` TEXT NOT NULL, `bookName` TEXT NOT NULL, `readTime` INTEGER NOT NULL, PRIMARY KEY(`deviceId`, `bookName`))", - "fields": [ - { - "fieldPath": "deviceId", - "columnName": "deviceId", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookName", - "columnName": "bookName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "readTime", - "columnName": "readTime", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "deviceId", - "bookName" - ], - "autoGenerate": false - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "httpTTS", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER NOT NULL, `name` TEXT NOT NULL, `url` TEXT NOT NULL, PRIMARY KEY(`id`))", - "fields": [ - { - "fieldPath": "id", - "columnName": "id", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "url", - "columnName": "url", - "affinity": "TEXT", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "id" - ], - "autoGenerate": false - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "caches", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`key` TEXT NOT NULL, `value` TEXT, `deadline` INTEGER NOT NULL, PRIMARY KEY(`key`))", - "fields": [ - { - "fieldPath": "key", - "columnName": "key", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "value", - "columnName": "value", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "deadline", - "columnName": "deadline", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "key" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_caches_key", - "unique": true, - "columnNames": [ - "key" - ], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_caches_key` ON `${TABLE_NAME}` (`key`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "ruleSubs", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER NOT NULL, `name` TEXT NOT NULL, `url` TEXT NOT NULL, `type` INTEGER NOT NULL, `customOrder` INTEGER NOT NULL, `autoUpdate` INTEGER NOT NULL, `update` INTEGER NOT NULL, PRIMARY KEY(`id`))", - "fields": [ - { - "fieldPath": "id", - "columnName": "id", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "url", - "columnName": "url", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "type", - "columnName": "type", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "customOrder", - "columnName": "customOrder", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "autoUpdate", - "columnName": "autoUpdate", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "update", - "columnName": "update", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "id" - ], - "autoGenerate": false - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "epubChapters", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`bookUrl` TEXT NOT NULL, `href` TEXT NOT NULL, `parentHref` TEXT, PRIMARY KEY(`bookUrl`, `href`), FOREIGN KEY(`bookUrl`) REFERENCES `books`(`bookUrl`) ON UPDATE NO ACTION ON DELETE CASCADE )", - "fields": [ - { - "fieldPath": "bookUrl", - "columnName": "bookUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "href", - "columnName": "href", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "parentHref", - "columnName": "parentHref", - "affinity": "TEXT", - "notNull": false - } - ], - "primaryKey": { - "columnNames": [ - "bookUrl", - "href" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_epubChapters_bookUrl", - "unique": false, - "columnNames": [ - "bookUrl" - ], - "createSql": "CREATE INDEX IF NOT EXISTS `index_epubChapters_bookUrl` ON `${TABLE_NAME}` (`bookUrl`)" - }, - { - "name": "index_epubChapters_bookUrl_href", - "unique": true, - "columnNames": [ - "bookUrl", - "href" - ], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_epubChapters_bookUrl_href` ON `${TABLE_NAME}` (`bookUrl`, `href`)" - } - ], - "foreignKeys": [ - { - "table": "books", - "onDelete": "CASCADE", - "onUpdate": "NO ACTION", - "columns": [ - "bookUrl" - ], - "referencedColumns": [ - "bookUrl" - ] - } - ] - } - ], - "views": [], - "setupQueries": [ - "CREATE TABLE IF NOT EXISTS room_master_table (id INTEGER PRIMARY KEY,identity_hash TEXT)", - "INSERT OR REPLACE INTO room_master_table (id,identity_hash) VALUES(42, 'd9c8ef97ef4ffe0c1dbd57ca74bc4de4')" - ] - } -} \ No newline at end of file diff --git a/app/schemas/io.legado.app.data.AppDatabase/31.json b/app/schemas/io.legado.app.data.AppDatabase/31.json deleted file mode 100644 index fe8a10f4d..000000000 --- a/app/schemas/io.legado.app.data.AppDatabase/31.json +++ /dev/null @@ -1,1422 +0,0 @@ -{ - "formatVersion": 1, - "database": { - "version": 31, - "identityHash": "d1c390e708a1e89c7d016cdd2e0b2e88", - "entities": [ - { - "tableName": "books", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`bookUrl` TEXT NOT NULL, `tocUrl` TEXT NOT NULL, `origin` TEXT NOT NULL, `originName` TEXT NOT NULL, `name` TEXT NOT NULL, `author` TEXT NOT NULL, `kind` TEXT, `customTag` TEXT, `coverUrl` TEXT, `customCoverUrl` TEXT, `intro` TEXT, `customIntro` TEXT, `charset` TEXT, `type` INTEGER NOT NULL, `group` INTEGER NOT NULL, `latestChapterTitle` TEXT, `latestChapterTime` INTEGER NOT NULL, `lastCheckTime` INTEGER NOT NULL, `lastCheckCount` INTEGER NOT NULL, `totalChapterNum` INTEGER NOT NULL, `durChapterTitle` TEXT, `durChapterIndex` INTEGER NOT NULL, `durChapterPos` INTEGER NOT NULL, `durChapterTime` INTEGER NOT NULL, `wordCount` TEXT, `canUpdate` INTEGER NOT NULL, `order` INTEGER NOT NULL, `originOrder` INTEGER NOT NULL, `variable` TEXT, `readConfig` TEXT, PRIMARY KEY(`bookUrl`))", - "fields": [ - { - "fieldPath": "bookUrl", - "columnName": "bookUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "tocUrl", - "columnName": "tocUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "origin", - "columnName": "origin", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "originName", - "columnName": "originName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "author", - "columnName": "author", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "kind", - "columnName": "kind", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "customTag", - "columnName": "customTag", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "coverUrl", - "columnName": "coverUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "customCoverUrl", - "columnName": "customCoverUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "intro", - "columnName": "intro", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "customIntro", - "columnName": "customIntro", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "charset", - "columnName": "charset", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "type", - "columnName": "type", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "group", - "columnName": "group", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "latestChapterTitle", - "columnName": "latestChapterTitle", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "latestChapterTime", - "columnName": "latestChapterTime", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "lastCheckTime", - "columnName": "lastCheckTime", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "lastCheckCount", - "columnName": "lastCheckCount", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "totalChapterNum", - "columnName": "totalChapterNum", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "durChapterTitle", - "columnName": "durChapterTitle", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "durChapterIndex", - "columnName": "durChapterIndex", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "durChapterPos", - "columnName": "durChapterPos", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "durChapterTime", - "columnName": "durChapterTime", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "wordCount", - "columnName": "wordCount", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "canUpdate", - "columnName": "canUpdate", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "order", - "columnName": "order", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "originOrder", - "columnName": "originOrder", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "variable", - "columnName": "variable", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "readConfig", - "columnName": "readConfig", - "affinity": "TEXT", - "notNull": false - } - ], - "primaryKey": { - "columnNames": [ - "bookUrl" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_books_name_author", - "unique": true, - "columnNames": [ - "name", - "author" - ], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_books_name_author` ON `${TABLE_NAME}` (`name`, `author`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "book_groups", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`groupId` INTEGER NOT NULL, `groupName` TEXT NOT NULL, `order` INTEGER NOT NULL, `show` INTEGER NOT NULL, PRIMARY KEY(`groupId`))", - "fields": [ - { - "fieldPath": "groupId", - "columnName": "groupId", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "groupName", - "columnName": "groupName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "order", - "columnName": "order", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "show", - "columnName": "show", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "groupId" - ], - "autoGenerate": false - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "book_sources", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`bookSourceName` TEXT NOT NULL, `bookSourceGroup` TEXT, `bookSourceUrl` TEXT NOT NULL, `bookSourceType` INTEGER NOT NULL, `bookUrlPattern` TEXT, `customOrder` INTEGER NOT NULL, `enabled` INTEGER NOT NULL, `enabledExplore` INTEGER NOT NULL, `header` TEXT, `loginUrl` TEXT, `bookSourceComment` TEXT, `lastUpdateTime` INTEGER NOT NULL, `weight` INTEGER NOT NULL, `exploreUrl` TEXT, `ruleExplore` TEXT, `searchUrl` TEXT, `ruleSearch` TEXT, `ruleBookInfo` TEXT, `ruleToc` TEXT, `ruleContent` TEXT, PRIMARY KEY(`bookSourceUrl`))", - "fields": [ - { - "fieldPath": "bookSourceName", - "columnName": "bookSourceName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookSourceGroup", - "columnName": "bookSourceGroup", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "bookSourceUrl", - "columnName": "bookSourceUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookSourceType", - "columnName": "bookSourceType", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "bookUrlPattern", - "columnName": "bookUrlPattern", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "customOrder", - "columnName": "customOrder", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "enabled", - "columnName": "enabled", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "enabledExplore", - "columnName": "enabledExplore", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "header", - "columnName": "header", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "loginUrl", - "columnName": "loginUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "bookSourceComment", - "columnName": "bookSourceComment", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "lastUpdateTime", - "columnName": "lastUpdateTime", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "weight", - "columnName": "weight", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "exploreUrl", - "columnName": "exploreUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleExplore", - "columnName": "ruleExplore", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "searchUrl", - "columnName": "searchUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleSearch", - "columnName": "ruleSearch", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleBookInfo", - "columnName": "ruleBookInfo", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleToc", - "columnName": "ruleToc", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleContent", - "columnName": "ruleContent", - "affinity": "TEXT", - "notNull": false - } - ], - "primaryKey": { - "columnNames": [ - "bookSourceUrl" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_book_sources_bookSourceUrl", - "unique": false, - "columnNames": [ - "bookSourceUrl" - ], - "createSql": "CREATE INDEX IF NOT EXISTS `index_book_sources_bookSourceUrl` ON `${TABLE_NAME}` (`bookSourceUrl`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "chapters", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`url` TEXT NOT NULL, `title` TEXT NOT NULL, `baseUrl` TEXT NOT NULL, `bookUrl` TEXT NOT NULL, `index` INTEGER NOT NULL, `resourceUrl` TEXT, `tag` TEXT, `start` INTEGER, `end` INTEGER, `startFragmentId` TEXT, `endFragmentId` TEXT, `variable` TEXT, PRIMARY KEY(`url`, `bookUrl`), FOREIGN KEY(`bookUrl`) REFERENCES `books`(`bookUrl`) ON UPDATE NO ACTION ON DELETE CASCADE )", - "fields": [ - { - "fieldPath": "url", - "columnName": "url", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "title", - "columnName": "title", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "baseUrl", - "columnName": "baseUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookUrl", - "columnName": "bookUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "index", - "columnName": "index", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "resourceUrl", - "columnName": "resourceUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "tag", - "columnName": "tag", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "start", - "columnName": "start", - "affinity": "INTEGER", - "notNull": false - }, - { - "fieldPath": "end", - "columnName": "end", - "affinity": "INTEGER", - "notNull": false - }, - { - "fieldPath": "startFragmentId", - "columnName": "startFragmentId", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "endFragmentId", - "columnName": "endFragmentId", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "variable", - "columnName": "variable", - "affinity": "TEXT", - "notNull": false - } - ], - "primaryKey": { - "columnNames": [ - "url", - "bookUrl" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_chapters_bookUrl", - "unique": false, - "columnNames": [ - "bookUrl" - ], - "createSql": "CREATE INDEX IF NOT EXISTS `index_chapters_bookUrl` ON `${TABLE_NAME}` (`bookUrl`)" - }, - { - "name": "index_chapters_bookUrl_index", - "unique": true, - "columnNames": [ - "bookUrl", - "index" - ], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_chapters_bookUrl_index` ON `${TABLE_NAME}` (`bookUrl`, `index`)" - } - ], - "foreignKeys": [ - { - "table": "books", - "onDelete": "CASCADE", - "onUpdate": "NO ACTION", - "columns": [ - "bookUrl" - ], - "referencedColumns": [ - "bookUrl" - ] - } - ] - }, - { - "tableName": "replace_rules", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, `name` TEXT NOT NULL, `group` TEXT, `pattern` TEXT NOT NULL, `replacement` TEXT NOT NULL, `scope` TEXT, `isEnabled` INTEGER NOT NULL, `isRegex` INTEGER NOT NULL, `sortOrder` INTEGER NOT NULL)", - "fields": [ - { - "fieldPath": "id", - "columnName": "id", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "group", - "columnName": "group", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "pattern", - "columnName": "pattern", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "replacement", - "columnName": "replacement", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "scope", - "columnName": "scope", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "isEnabled", - "columnName": "isEnabled", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "isRegex", - "columnName": "isRegex", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "order", - "columnName": "sortOrder", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "id" - ], - "autoGenerate": true - }, - "indices": [ - { - "name": "index_replace_rules_id", - "unique": false, - "columnNames": [ - "id" - ], - "createSql": "CREATE INDEX IF NOT EXISTS `index_replace_rules_id` ON `${TABLE_NAME}` (`id`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "searchBooks", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`bookUrl` TEXT NOT NULL, `origin` TEXT NOT NULL, `originName` TEXT NOT NULL, `type` INTEGER NOT NULL, `name` TEXT NOT NULL, `author` TEXT NOT NULL, `kind` TEXT, `coverUrl` TEXT, `intro` TEXT, `wordCount` TEXT, `latestChapterTitle` TEXT, `tocUrl` TEXT NOT NULL, `time` INTEGER NOT NULL, `variable` TEXT, `originOrder` INTEGER NOT NULL, PRIMARY KEY(`bookUrl`), FOREIGN KEY(`origin`) REFERENCES `book_sources`(`bookSourceUrl`) ON UPDATE NO ACTION ON DELETE CASCADE )", - "fields": [ - { - "fieldPath": "bookUrl", - "columnName": "bookUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "origin", - "columnName": "origin", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "originName", - "columnName": "originName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "type", - "columnName": "type", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "author", - "columnName": "author", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "kind", - "columnName": "kind", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "coverUrl", - "columnName": "coverUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "intro", - "columnName": "intro", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "wordCount", - "columnName": "wordCount", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "latestChapterTitle", - "columnName": "latestChapterTitle", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "tocUrl", - "columnName": "tocUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "time", - "columnName": "time", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "variable", - "columnName": "variable", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "originOrder", - "columnName": "originOrder", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "bookUrl" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_searchBooks_bookUrl", - "unique": true, - "columnNames": [ - "bookUrl" - ], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_searchBooks_bookUrl` ON `${TABLE_NAME}` (`bookUrl`)" - }, - { - "name": "index_searchBooks_origin", - "unique": false, - "columnNames": [ - "origin" - ], - "createSql": "CREATE INDEX IF NOT EXISTS `index_searchBooks_origin` ON `${TABLE_NAME}` (`origin`)" - } - ], - "foreignKeys": [ - { - "table": "book_sources", - "onDelete": "CASCADE", - "onUpdate": "NO ACTION", - "columns": [ - "origin" - ], - "referencedColumns": [ - "bookSourceUrl" - ] - } - ] - }, - { - "tableName": "search_keywords", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`word` TEXT NOT NULL, `usage` INTEGER NOT NULL, `lastUseTime` INTEGER NOT NULL, PRIMARY KEY(`word`))", - "fields": [ - { - "fieldPath": "word", - "columnName": "word", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "usage", - "columnName": "usage", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "lastUseTime", - "columnName": "lastUseTime", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "word" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_search_keywords_word", - "unique": true, - "columnNames": [ - "word" - ], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_search_keywords_word` ON `${TABLE_NAME}` (`word`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "cookies", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`url` TEXT NOT NULL, `cookie` TEXT NOT NULL, PRIMARY KEY(`url`))", - "fields": [ - { - "fieldPath": "url", - "columnName": "url", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "cookie", - "columnName": "cookie", - "affinity": "TEXT", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "url" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_cookies_url", - "unique": true, - "columnNames": [ - "url" - ], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_cookies_url` ON `${TABLE_NAME}` (`url`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "rssSources", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`sourceUrl` TEXT NOT NULL, `sourceName` TEXT NOT NULL, `sourceIcon` TEXT NOT NULL, `sourceGroup` TEXT, `sourceComment` TEXT, `enabled` INTEGER NOT NULL, `sortUrl` TEXT, `singleUrl` INTEGER NOT NULL, `articleStyle` INTEGER NOT NULL, `ruleArticles` TEXT, `ruleNextPage` TEXT, `ruleTitle` TEXT, `rulePubDate` TEXT, `ruleDescription` TEXT, `ruleImage` TEXT, `ruleLink` TEXT, `ruleContent` TEXT, `style` TEXT, `header` TEXT, `enableJs` INTEGER NOT NULL, `loadWithBaseUrl` INTEGER NOT NULL, `customOrder` INTEGER NOT NULL, PRIMARY KEY(`sourceUrl`))", - "fields": [ - { - "fieldPath": "sourceUrl", - "columnName": "sourceUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "sourceName", - "columnName": "sourceName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "sourceIcon", - "columnName": "sourceIcon", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "sourceGroup", - "columnName": "sourceGroup", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "sourceComment", - "columnName": "sourceComment", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "enabled", - "columnName": "enabled", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "sortUrl", - "columnName": "sortUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "singleUrl", - "columnName": "singleUrl", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "articleStyle", - "columnName": "articleStyle", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "ruleArticles", - "columnName": "ruleArticles", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleNextPage", - "columnName": "ruleNextPage", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleTitle", - "columnName": "ruleTitle", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "rulePubDate", - "columnName": "rulePubDate", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleDescription", - "columnName": "ruleDescription", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleImage", - "columnName": "ruleImage", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleLink", - "columnName": "ruleLink", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleContent", - "columnName": "ruleContent", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "style", - "columnName": "style", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "header", - "columnName": "header", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "enableJs", - "columnName": "enableJs", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "loadWithBaseUrl", - "columnName": "loadWithBaseUrl", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "customOrder", - "columnName": "customOrder", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "sourceUrl" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_rssSources_sourceUrl", - "unique": false, - "columnNames": [ - "sourceUrl" - ], - "createSql": "CREATE INDEX IF NOT EXISTS `index_rssSources_sourceUrl` ON `${TABLE_NAME}` (`sourceUrl`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "bookmarks", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`time` INTEGER NOT NULL, `bookUrl` TEXT NOT NULL, `bookName` TEXT NOT NULL, `bookAuthor` TEXT NOT NULL, `chapterIndex` INTEGER NOT NULL, `chapterPos` INTEGER NOT NULL, `chapterName` TEXT NOT NULL, `bookText` TEXT NOT NULL, `content` TEXT NOT NULL, PRIMARY KEY(`time`))", - "fields": [ - { - "fieldPath": "time", - "columnName": "time", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "bookUrl", - "columnName": "bookUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookName", - "columnName": "bookName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookAuthor", - "columnName": "bookAuthor", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "chapterIndex", - "columnName": "chapterIndex", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "chapterPos", - "columnName": "chapterPos", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "chapterName", - "columnName": "chapterName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookText", - "columnName": "bookText", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "content", - "columnName": "content", - "affinity": "TEXT", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "time" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_bookmarks_time", - "unique": true, - "columnNames": [ - "time" - ], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_bookmarks_time` ON `${TABLE_NAME}` (`time`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "rssArticles", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`origin` TEXT NOT NULL, `sort` TEXT NOT NULL, `title` TEXT NOT NULL, `order` INTEGER NOT NULL, `link` TEXT NOT NULL, `pubDate` TEXT, `description` TEXT, `content` TEXT, `image` TEXT, `read` INTEGER NOT NULL, `variable` TEXT, PRIMARY KEY(`origin`, `link`))", - "fields": [ - { - "fieldPath": "origin", - "columnName": "origin", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "sort", - "columnName": "sort", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "title", - "columnName": "title", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "order", - "columnName": "order", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "link", - "columnName": "link", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "pubDate", - "columnName": "pubDate", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "description", - "columnName": "description", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "content", - "columnName": "content", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "image", - "columnName": "image", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "read", - "columnName": "read", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "variable", - "columnName": "variable", - "affinity": "TEXT", - "notNull": false - } - ], - "primaryKey": { - "columnNames": [ - "origin", - "link" - ], - "autoGenerate": false - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "rssReadRecords", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`record` TEXT NOT NULL, `read` INTEGER NOT NULL, PRIMARY KEY(`record`))", - "fields": [ - { - "fieldPath": "record", - "columnName": "record", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "read", - "columnName": "read", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "record" - ], - "autoGenerate": false - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "rssStars", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`origin` TEXT NOT NULL, `sort` TEXT NOT NULL, `title` TEXT NOT NULL, `starTime` INTEGER NOT NULL, `link` TEXT NOT NULL, `pubDate` TEXT, `description` TEXT, `content` TEXT, `image` TEXT, `variable` TEXT, PRIMARY KEY(`origin`, `link`))", - "fields": [ - { - "fieldPath": "origin", - "columnName": "origin", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "sort", - "columnName": "sort", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "title", - "columnName": "title", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "starTime", - "columnName": "starTime", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "link", - "columnName": "link", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "pubDate", - "columnName": "pubDate", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "description", - "columnName": "description", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "content", - "columnName": "content", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "image", - "columnName": "image", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "variable", - "columnName": "variable", - "affinity": "TEXT", - "notNull": false - } - ], - "primaryKey": { - "columnNames": [ - "origin", - "link" - ], - "autoGenerate": false - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "txtTocRules", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER NOT NULL, `name` TEXT NOT NULL, `rule` TEXT NOT NULL, `serialNumber` INTEGER NOT NULL, `enable` INTEGER NOT NULL, PRIMARY KEY(`id`))", - "fields": [ - { - "fieldPath": "id", - "columnName": "id", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "rule", - "columnName": "rule", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "serialNumber", - "columnName": "serialNumber", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "enable", - "columnName": "enable", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "id" - ], - "autoGenerate": false - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "readRecord", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`deviceId` TEXT NOT NULL, `bookName` TEXT NOT NULL, `readTime` INTEGER NOT NULL, PRIMARY KEY(`deviceId`, `bookName`))", - "fields": [ - { - "fieldPath": "deviceId", - "columnName": "deviceId", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookName", - "columnName": "bookName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "readTime", - "columnName": "readTime", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "deviceId", - "bookName" - ], - "autoGenerate": false - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "httpTTS", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER NOT NULL, `name` TEXT NOT NULL, `url` TEXT NOT NULL, PRIMARY KEY(`id`))", - "fields": [ - { - "fieldPath": "id", - "columnName": "id", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "url", - "columnName": "url", - "affinity": "TEXT", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "id" - ], - "autoGenerate": false - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "caches", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`key` TEXT NOT NULL, `value` TEXT, `deadline` INTEGER NOT NULL, PRIMARY KEY(`key`))", - "fields": [ - { - "fieldPath": "key", - "columnName": "key", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "value", - "columnName": "value", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "deadline", - "columnName": "deadline", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "key" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_caches_key", - "unique": true, - "columnNames": [ - "key" - ], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_caches_key` ON `${TABLE_NAME}` (`key`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "ruleSubs", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER NOT NULL, `name` TEXT NOT NULL, `url` TEXT NOT NULL, `type` INTEGER NOT NULL, `customOrder` INTEGER NOT NULL, `autoUpdate` INTEGER NOT NULL, `update` INTEGER NOT NULL, PRIMARY KEY(`id`))", - "fields": [ - { - "fieldPath": "id", - "columnName": "id", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "url", - "columnName": "url", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "type", - "columnName": "type", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "customOrder", - "columnName": "customOrder", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "autoUpdate", - "columnName": "autoUpdate", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "update", - "columnName": "update", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "id" - ], - "autoGenerate": false - }, - "indices": [], - "foreignKeys": [] - } - ], - "views": [], - "setupQueries": [ - "CREATE TABLE IF NOT EXISTS room_master_table (id INTEGER PRIMARY KEY,identity_hash TEXT)", - "INSERT OR REPLACE INTO room_master_table (id,identity_hash) VALUES(42, 'd1c390e708a1e89c7d016cdd2e0b2e88')" - ] - } -} \ No newline at end of file diff --git a/app/schemas/io.legado.app.data.AppDatabase/32.json b/app/schemas/io.legado.app.data.AppDatabase/32.json deleted file mode 100644 index 03fd2016f..000000000 --- a/app/schemas/io.legado.app.data.AppDatabase/32.json +++ /dev/null @@ -1,1422 +0,0 @@ -{ - "formatVersion": 1, - "database": { - "version": 32, - "identityHash": "d1c390e708a1e89c7d016cdd2e0b2e88", - "entities": [ - { - "tableName": "books", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`bookUrl` TEXT NOT NULL, `tocUrl` TEXT NOT NULL, `origin` TEXT NOT NULL, `originName` TEXT NOT NULL, `name` TEXT NOT NULL, `author` TEXT NOT NULL, `kind` TEXT, `customTag` TEXT, `coverUrl` TEXT, `customCoverUrl` TEXT, `intro` TEXT, `customIntro` TEXT, `charset` TEXT, `type` INTEGER NOT NULL, `group` INTEGER NOT NULL, `latestChapterTitle` TEXT, `latestChapterTime` INTEGER NOT NULL, `lastCheckTime` INTEGER NOT NULL, `lastCheckCount` INTEGER NOT NULL, `totalChapterNum` INTEGER NOT NULL, `durChapterTitle` TEXT, `durChapterIndex` INTEGER NOT NULL, `durChapterPos` INTEGER NOT NULL, `durChapterTime` INTEGER NOT NULL, `wordCount` TEXT, `canUpdate` INTEGER NOT NULL, `order` INTEGER NOT NULL, `originOrder` INTEGER NOT NULL, `variable` TEXT, `readConfig` TEXT, PRIMARY KEY(`bookUrl`))", - "fields": [ - { - "fieldPath": "bookUrl", - "columnName": "bookUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "tocUrl", - "columnName": "tocUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "origin", - "columnName": "origin", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "originName", - "columnName": "originName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "author", - "columnName": "author", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "kind", - "columnName": "kind", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "customTag", - "columnName": "customTag", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "coverUrl", - "columnName": "coverUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "customCoverUrl", - "columnName": "customCoverUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "intro", - "columnName": "intro", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "customIntro", - "columnName": "customIntro", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "charset", - "columnName": "charset", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "type", - "columnName": "type", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "group", - "columnName": "group", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "latestChapterTitle", - "columnName": "latestChapterTitle", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "latestChapterTime", - "columnName": "latestChapterTime", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "lastCheckTime", - "columnName": "lastCheckTime", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "lastCheckCount", - "columnName": "lastCheckCount", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "totalChapterNum", - "columnName": "totalChapterNum", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "durChapterTitle", - "columnName": "durChapterTitle", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "durChapterIndex", - "columnName": "durChapterIndex", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "durChapterPos", - "columnName": "durChapterPos", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "durChapterTime", - "columnName": "durChapterTime", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "wordCount", - "columnName": "wordCount", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "canUpdate", - "columnName": "canUpdate", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "order", - "columnName": "order", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "originOrder", - "columnName": "originOrder", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "variable", - "columnName": "variable", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "readConfig", - "columnName": "readConfig", - "affinity": "TEXT", - "notNull": false - } - ], - "primaryKey": { - "columnNames": [ - "bookUrl" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_books_name_author", - "unique": true, - "columnNames": [ - "name", - "author" - ], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_books_name_author` ON `${TABLE_NAME}` (`name`, `author`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "book_groups", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`groupId` INTEGER NOT NULL, `groupName` TEXT NOT NULL, `order` INTEGER NOT NULL, `show` INTEGER NOT NULL, PRIMARY KEY(`groupId`))", - "fields": [ - { - "fieldPath": "groupId", - "columnName": "groupId", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "groupName", - "columnName": "groupName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "order", - "columnName": "order", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "show", - "columnName": "show", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "groupId" - ], - "autoGenerate": false - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "book_sources", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`bookSourceName` TEXT NOT NULL, `bookSourceGroup` TEXT, `bookSourceUrl` TEXT NOT NULL, `bookSourceType` INTEGER NOT NULL, `bookUrlPattern` TEXT, `customOrder` INTEGER NOT NULL, `enabled` INTEGER NOT NULL, `enabledExplore` INTEGER NOT NULL, `header` TEXT, `loginUrl` TEXT, `bookSourceComment` TEXT, `lastUpdateTime` INTEGER NOT NULL, `weight` INTEGER NOT NULL, `exploreUrl` TEXT, `ruleExplore` TEXT, `searchUrl` TEXT, `ruleSearch` TEXT, `ruleBookInfo` TEXT, `ruleToc` TEXT, `ruleContent` TEXT, PRIMARY KEY(`bookSourceUrl`))", - "fields": [ - { - "fieldPath": "bookSourceName", - "columnName": "bookSourceName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookSourceGroup", - "columnName": "bookSourceGroup", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "bookSourceUrl", - "columnName": "bookSourceUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookSourceType", - "columnName": "bookSourceType", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "bookUrlPattern", - "columnName": "bookUrlPattern", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "customOrder", - "columnName": "customOrder", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "enabled", - "columnName": "enabled", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "enabledExplore", - "columnName": "enabledExplore", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "header", - "columnName": "header", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "loginUrl", - "columnName": "loginUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "bookSourceComment", - "columnName": "bookSourceComment", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "lastUpdateTime", - "columnName": "lastUpdateTime", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "weight", - "columnName": "weight", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "exploreUrl", - "columnName": "exploreUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleExplore", - "columnName": "ruleExplore", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "searchUrl", - "columnName": "searchUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleSearch", - "columnName": "ruleSearch", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleBookInfo", - "columnName": "ruleBookInfo", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleToc", - "columnName": "ruleToc", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleContent", - "columnName": "ruleContent", - "affinity": "TEXT", - "notNull": false - } - ], - "primaryKey": { - "columnNames": [ - "bookSourceUrl" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_book_sources_bookSourceUrl", - "unique": false, - "columnNames": [ - "bookSourceUrl" - ], - "createSql": "CREATE INDEX IF NOT EXISTS `index_book_sources_bookSourceUrl` ON `${TABLE_NAME}` (`bookSourceUrl`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "chapters", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`url` TEXT NOT NULL, `title` TEXT NOT NULL, `baseUrl` TEXT NOT NULL, `bookUrl` TEXT NOT NULL, `index` INTEGER NOT NULL, `resourceUrl` TEXT, `tag` TEXT, `start` INTEGER, `end` INTEGER, `startFragmentId` TEXT, `endFragmentId` TEXT, `variable` TEXT, PRIMARY KEY(`url`, `bookUrl`), FOREIGN KEY(`bookUrl`) REFERENCES `books`(`bookUrl`) ON UPDATE NO ACTION ON DELETE CASCADE )", - "fields": [ - { - "fieldPath": "url", - "columnName": "url", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "title", - "columnName": "title", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "baseUrl", - "columnName": "baseUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookUrl", - "columnName": "bookUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "index", - "columnName": "index", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "resourceUrl", - "columnName": "resourceUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "tag", - "columnName": "tag", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "start", - "columnName": "start", - "affinity": "INTEGER", - "notNull": false - }, - { - "fieldPath": "end", - "columnName": "end", - "affinity": "INTEGER", - "notNull": false - }, - { - "fieldPath": "startFragmentId", - "columnName": "startFragmentId", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "endFragmentId", - "columnName": "endFragmentId", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "variable", - "columnName": "variable", - "affinity": "TEXT", - "notNull": false - } - ], - "primaryKey": { - "columnNames": [ - "url", - "bookUrl" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_chapters_bookUrl", - "unique": false, - "columnNames": [ - "bookUrl" - ], - "createSql": "CREATE INDEX IF NOT EXISTS `index_chapters_bookUrl` ON `${TABLE_NAME}` (`bookUrl`)" - }, - { - "name": "index_chapters_bookUrl_index", - "unique": true, - "columnNames": [ - "bookUrl", - "index" - ], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_chapters_bookUrl_index` ON `${TABLE_NAME}` (`bookUrl`, `index`)" - } - ], - "foreignKeys": [ - { - "table": "books", - "onDelete": "CASCADE", - "onUpdate": "NO ACTION", - "columns": [ - "bookUrl" - ], - "referencedColumns": [ - "bookUrl" - ] - } - ] - }, - { - "tableName": "replace_rules", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, `name` TEXT NOT NULL, `group` TEXT, `pattern` TEXT NOT NULL, `replacement` TEXT NOT NULL, `scope` TEXT, `isEnabled` INTEGER NOT NULL, `isRegex` INTEGER NOT NULL, `sortOrder` INTEGER NOT NULL)", - "fields": [ - { - "fieldPath": "id", - "columnName": "id", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "group", - "columnName": "group", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "pattern", - "columnName": "pattern", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "replacement", - "columnName": "replacement", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "scope", - "columnName": "scope", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "isEnabled", - "columnName": "isEnabled", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "isRegex", - "columnName": "isRegex", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "order", - "columnName": "sortOrder", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "id" - ], - "autoGenerate": true - }, - "indices": [ - { - "name": "index_replace_rules_id", - "unique": false, - "columnNames": [ - "id" - ], - "createSql": "CREATE INDEX IF NOT EXISTS `index_replace_rules_id` ON `${TABLE_NAME}` (`id`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "searchBooks", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`bookUrl` TEXT NOT NULL, `origin` TEXT NOT NULL, `originName` TEXT NOT NULL, `type` INTEGER NOT NULL, `name` TEXT NOT NULL, `author` TEXT NOT NULL, `kind` TEXT, `coverUrl` TEXT, `intro` TEXT, `wordCount` TEXT, `latestChapterTitle` TEXT, `tocUrl` TEXT NOT NULL, `time` INTEGER NOT NULL, `variable` TEXT, `originOrder` INTEGER NOT NULL, PRIMARY KEY(`bookUrl`), FOREIGN KEY(`origin`) REFERENCES `book_sources`(`bookSourceUrl`) ON UPDATE NO ACTION ON DELETE CASCADE )", - "fields": [ - { - "fieldPath": "bookUrl", - "columnName": "bookUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "origin", - "columnName": "origin", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "originName", - "columnName": "originName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "type", - "columnName": "type", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "author", - "columnName": "author", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "kind", - "columnName": "kind", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "coverUrl", - "columnName": "coverUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "intro", - "columnName": "intro", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "wordCount", - "columnName": "wordCount", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "latestChapterTitle", - "columnName": "latestChapterTitle", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "tocUrl", - "columnName": "tocUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "time", - "columnName": "time", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "variable", - "columnName": "variable", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "originOrder", - "columnName": "originOrder", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "bookUrl" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_searchBooks_bookUrl", - "unique": true, - "columnNames": [ - "bookUrl" - ], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_searchBooks_bookUrl` ON `${TABLE_NAME}` (`bookUrl`)" - }, - { - "name": "index_searchBooks_origin", - "unique": false, - "columnNames": [ - "origin" - ], - "createSql": "CREATE INDEX IF NOT EXISTS `index_searchBooks_origin` ON `${TABLE_NAME}` (`origin`)" - } - ], - "foreignKeys": [ - { - "table": "book_sources", - "onDelete": "CASCADE", - "onUpdate": "NO ACTION", - "columns": [ - "origin" - ], - "referencedColumns": [ - "bookSourceUrl" - ] - } - ] - }, - { - "tableName": "search_keywords", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`word` TEXT NOT NULL, `usage` INTEGER NOT NULL, `lastUseTime` INTEGER NOT NULL, PRIMARY KEY(`word`))", - "fields": [ - { - "fieldPath": "word", - "columnName": "word", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "usage", - "columnName": "usage", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "lastUseTime", - "columnName": "lastUseTime", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "word" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_search_keywords_word", - "unique": true, - "columnNames": [ - "word" - ], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_search_keywords_word` ON `${TABLE_NAME}` (`word`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "cookies", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`url` TEXT NOT NULL, `cookie` TEXT NOT NULL, PRIMARY KEY(`url`))", - "fields": [ - { - "fieldPath": "url", - "columnName": "url", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "cookie", - "columnName": "cookie", - "affinity": "TEXT", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "url" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_cookies_url", - "unique": true, - "columnNames": [ - "url" - ], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_cookies_url` ON `${TABLE_NAME}` (`url`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "rssSources", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`sourceUrl` TEXT NOT NULL, `sourceName` TEXT NOT NULL, `sourceIcon` TEXT NOT NULL, `sourceGroup` TEXT, `sourceComment` TEXT, `enabled` INTEGER NOT NULL, `sortUrl` TEXT, `singleUrl` INTEGER NOT NULL, `articleStyle` INTEGER NOT NULL, `ruleArticles` TEXT, `ruleNextPage` TEXT, `ruleTitle` TEXT, `rulePubDate` TEXT, `ruleDescription` TEXT, `ruleImage` TEXT, `ruleLink` TEXT, `ruleContent` TEXT, `style` TEXT, `header` TEXT, `enableJs` INTEGER NOT NULL, `loadWithBaseUrl` INTEGER NOT NULL, `customOrder` INTEGER NOT NULL, PRIMARY KEY(`sourceUrl`))", - "fields": [ - { - "fieldPath": "sourceUrl", - "columnName": "sourceUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "sourceName", - "columnName": "sourceName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "sourceIcon", - "columnName": "sourceIcon", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "sourceGroup", - "columnName": "sourceGroup", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "sourceComment", - "columnName": "sourceComment", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "enabled", - "columnName": "enabled", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "sortUrl", - "columnName": "sortUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "singleUrl", - "columnName": "singleUrl", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "articleStyle", - "columnName": "articleStyle", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "ruleArticles", - "columnName": "ruleArticles", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleNextPage", - "columnName": "ruleNextPage", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleTitle", - "columnName": "ruleTitle", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "rulePubDate", - "columnName": "rulePubDate", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleDescription", - "columnName": "ruleDescription", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleImage", - "columnName": "ruleImage", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleLink", - "columnName": "ruleLink", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleContent", - "columnName": "ruleContent", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "style", - "columnName": "style", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "header", - "columnName": "header", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "enableJs", - "columnName": "enableJs", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "loadWithBaseUrl", - "columnName": "loadWithBaseUrl", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "customOrder", - "columnName": "customOrder", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "sourceUrl" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_rssSources_sourceUrl", - "unique": false, - "columnNames": [ - "sourceUrl" - ], - "createSql": "CREATE INDEX IF NOT EXISTS `index_rssSources_sourceUrl` ON `${TABLE_NAME}` (`sourceUrl`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "bookmarks", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`time` INTEGER NOT NULL, `bookUrl` TEXT NOT NULL, `bookName` TEXT NOT NULL, `bookAuthor` TEXT NOT NULL, `chapterIndex` INTEGER NOT NULL, `chapterPos` INTEGER NOT NULL, `chapterName` TEXT NOT NULL, `bookText` TEXT NOT NULL, `content` TEXT NOT NULL, PRIMARY KEY(`time`))", - "fields": [ - { - "fieldPath": "time", - "columnName": "time", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "bookUrl", - "columnName": "bookUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookName", - "columnName": "bookName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookAuthor", - "columnName": "bookAuthor", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "chapterIndex", - "columnName": "chapterIndex", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "chapterPos", - "columnName": "chapterPos", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "chapterName", - "columnName": "chapterName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookText", - "columnName": "bookText", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "content", - "columnName": "content", - "affinity": "TEXT", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "time" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_bookmarks_time", - "unique": true, - "columnNames": [ - "time" - ], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_bookmarks_time` ON `${TABLE_NAME}` (`time`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "rssArticles", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`origin` TEXT NOT NULL, `sort` TEXT NOT NULL, `title` TEXT NOT NULL, `order` INTEGER NOT NULL, `link` TEXT NOT NULL, `pubDate` TEXT, `description` TEXT, `content` TEXT, `image` TEXT, `read` INTEGER NOT NULL, `variable` TEXT, PRIMARY KEY(`origin`, `link`))", - "fields": [ - { - "fieldPath": "origin", - "columnName": "origin", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "sort", - "columnName": "sort", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "title", - "columnName": "title", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "order", - "columnName": "order", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "link", - "columnName": "link", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "pubDate", - "columnName": "pubDate", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "description", - "columnName": "description", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "content", - "columnName": "content", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "image", - "columnName": "image", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "read", - "columnName": "read", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "variable", - "columnName": "variable", - "affinity": "TEXT", - "notNull": false - } - ], - "primaryKey": { - "columnNames": [ - "origin", - "link" - ], - "autoGenerate": false - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "rssReadRecords", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`record` TEXT NOT NULL, `read` INTEGER NOT NULL, PRIMARY KEY(`record`))", - "fields": [ - { - "fieldPath": "record", - "columnName": "record", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "read", - "columnName": "read", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "record" - ], - "autoGenerate": false - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "rssStars", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`origin` TEXT NOT NULL, `sort` TEXT NOT NULL, `title` TEXT NOT NULL, `starTime` INTEGER NOT NULL, `link` TEXT NOT NULL, `pubDate` TEXT, `description` TEXT, `content` TEXT, `image` TEXT, `variable` TEXT, PRIMARY KEY(`origin`, `link`))", - "fields": [ - { - "fieldPath": "origin", - "columnName": "origin", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "sort", - "columnName": "sort", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "title", - "columnName": "title", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "starTime", - "columnName": "starTime", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "link", - "columnName": "link", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "pubDate", - "columnName": "pubDate", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "description", - "columnName": "description", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "content", - "columnName": "content", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "image", - "columnName": "image", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "variable", - "columnName": "variable", - "affinity": "TEXT", - "notNull": false - } - ], - "primaryKey": { - "columnNames": [ - "origin", - "link" - ], - "autoGenerate": false - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "txtTocRules", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER NOT NULL, `name` TEXT NOT NULL, `rule` TEXT NOT NULL, `serialNumber` INTEGER NOT NULL, `enable` INTEGER NOT NULL, PRIMARY KEY(`id`))", - "fields": [ - { - "fieldPath": "id", - "columnName": "id", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "rule", - "columnName": "rule", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "serialNumber", - "columnName": "serialNumber", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "enable", - "columnName": "enable", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "id" - ], - "autoGenerate": false - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "readRecord", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`deviceId` TEXT NOT NULL, `bookName` TEXT NOT NULL, `readTime` INTEGER NOT NULL, PRIMARY KEY(`deviceId`, `bookName`))", - "fields": [ - { - "fieldPath": "deviceId", - "columnName": "deviceId", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookName", - "columnName": "bookName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "readTime", - "columnName": "readTime", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "deviceId", - "bookName" - ], - "autoGenerate": false - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "httpTTS", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER NOT NULL, `name` TEXT NOT NULL, `url` TEXT NOT NULL, PRIMARY KEY(`id`))", - "fields": [ - { - "fieldPath": "id", - "columnName": "id", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "url", - "columnName": "url", - "affinity": "TEXT", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "id" - ], - "autoGenerate": false - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "caches", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`key` TEXT NOT NULL, `value` TEXT, `deadline` INTEGER NOT NULL, PRIMARY KEY(`key`))", - "fields": [ - { - "fieldPath": "key", - "columnName": "key", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "value", - "columnName": "value", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "deadline", - "columnName": "deadline", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "key" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_caches_key", - "unique": true, - "columnNames": [ - "key" - ], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_caches_key` ON `${TABLE_NAME}` (`key`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "ruleSubs", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER NOT NULL, `name` TEXT NOT NULL, `url` TEXT NOT NULL, `type` INTEGER NOT NULL, `customOrder` INTEGER NOT NULL, `autoUpdate` INTEGER NOT NULL, `update` INTEGER NOT NULL, PRIMARY KEY(`id`))", - "fields": [ - { - "fieldPath": "id", - "columnName": "id", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "url", - "columnName": "url", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "type", - "columnName": "type", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "customOrder", - "columnName": "customOrder", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "autoUpdate", - "columnName": "autoUpdate", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "update", - "columnName": "update", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "id" - ], - "autoGenerate": false - }, - "indices": [], - "foreignKeys": [] - } - ], - "views": [], - "setupQueries": [ - "CREATE TABLE IF NOT EXISTS room_master_table (id INTEGER PRIMARY KEY,identity_hash TEXT)", - "INSERT OR REPLACE INTO room_master_table (id,identity_hash) VALUES(42, 'd1c390e708a1e89c7d016cdd2e0b2e88')" - ] - } -} \ No newline at end of file diff --git a/app/schemas/io.legado.app.data.AppDatabase/33.json b/app/schemas/io.legado.app.data.AppDatabase/33.json deleted file mode 100644 index f4deedbd2..000000000 --- a/app/schemas/io.legado.app.data.AppDatabase/33.json +++ /dev/null @@ -1,1417 +0,0 @@ -{ - "formatVersion": 1, - "database": { - "version": 33, - "identityHash": "6dad1518f359667b4d740fc6a1f44a21", - "entities": [ - { - "tableName": "books", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`bookUrl` TEXT NOT NULL, `tocUrl` TEXT NOT NULL, `origin` TEXT NOT NULL, `originName` TEXT NOT NULL, `name` TEXT NOT NULL, `author` TEXT NOT NULL, `kind` TEXT, `customTag` TEXT, `coverUrl` TEXT, `customCoverUrl` TEXT, `intro` TEXT, `customIntro` TEXT, `charset` TEXT, `type` INTEGER NOT NULL, `group` INTEGER NOT NULL, `latestChapterTitle` TEXT, `latestChapterTime` INTEGER NOT NULL, `lastCheckTime` INTEGER NOT NULL, `lastCheckCount` INTEGER NOT NULL, `totalChapterNum` INTEGER NOT NULL, `durChapterTitle` TEXT, `durChapterIndex` INTEGER NOT NULL, `durChapterPos` INTEGER NOT NULL, `durChapterTime` INTEGER NOT NULL, `wordCount` TEXT, `canUpdate` INTEGER NOT NULL, `order` INTEGER NOT NULL, `originOrder` INTEGER NOT NULL, `variable` TEXT, `readConfig` TEXT, PRIMARY KEY(`bookUrl`))", - "fields": [ - { - "fieldPath": "bookUrl", - "columnName": "bookUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "tocUrl", - "columnName": "tocUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "origin", - "columnName": "origin", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "originName", - "columnName": "originName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "author", - "columnName": "author", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "kind", - "columnName": "kind", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "customTag", - "columnName": "customTag", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "coverUrl", - "columnName": "coverUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "customCoverUrl", - "columnName": "customCoverUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "intro", - "columnName": "intro", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "customIntro", - "columnName": "customIntro", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "charset", - "columnName": "charset", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "type", - "columnName": "type", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "group", - "columnName": "group", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "latestChapterTitle", - "columnName": "latestChapterTitle", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "latestChapterTime", - "columnName": "latestChapterTime", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "lastCheckTime", - "columnName": "lastCheckTime", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "lastCheckCount", - "columnName": "lastCheckCount", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "totalChapterNum", - "columnName": "totalChapterNum", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "durChapterTitle", - "columnName": "durChapterTitle", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "durChapterIndex", - "columnName": "durChapterIndex", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "durChapterPos", - "columnName": "durChapterPos", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "durChapterTime", - "columnName": "durChapterTime", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "wordCount", - "columnName": "wordCount", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "canUpdate", - "columnName": "canUpdate", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "order", - "columnName": "order", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "originOrder", - "columnName": "originOrder", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "variable", - "columnName": "variable", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "readConfig", - "columnName": "readConfig", - "affinity": "TEXT", - "notNull": false - } - ], - "primaryKey": { - "columnNames": [ - "bookUrl" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_books_name_author", - "unique": true, - "columnNames": [ - "name", - "author" - ], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_books_name_author` ON `${TABLE_NAME}` (`name`, `author`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "book_groups", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`groupId` INTEGER NOT NULL, `groupName` TEXT NOT NULL, `order` INTEGER NOT NULL, `show` INTEGER NOT NULL, PRIMARY KEY(`groupId`))", - "fields": [ - { - "fieldPath": "groupId", - "columnName": "groupId", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "groupName", - "columnName": "groupName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "order", - "columnName": "order", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "show", - "columnName": "show", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "groupId" - ], - "autoGenerate": false - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "book_sources", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`bookSourceName` TEXT NOT NULL, `bookSourceGroup` TEXT, `bookSourceUrl` TEXT NOT NULL, `bookSourceType` INTEGER NOT NULL, `bookUrlPattern` TEXT, `customOrder` INTEGER NOT NULL, `enabled` INTEGER NOT NULL, `enabledExplore` INTEGER NOT NULL, `header` TEXT, `loginUrl` TEXT, `bookSourceComment` TEXT, `lastUpdateTime` INTEGER NOT NULL, `weight` INTEGER NOT NULL, `exploreUrl` TEXT, `ruleExplore` TEXT, `searchUrl` TEXT, `ruleSearch` TEXT, `ruleBookInfo` TEXT, `ruleToc` TEXT, `ruleContent` TEXT, PRIMARY KEY(`bookSourceUrl`))", - "fields": [ - { - "fieldPath": "bookSourceName", - "columnName": "bookSourceName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookSourceGroup", - "columnName": "bookSourceGroup", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "bookSourceUrl", - "columnName": "bookSourceUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookSourceType", - "columnName": "bookSourceType", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "bookUrlPattern", - "columnName": "bookUrlPattern", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "customOrder", - "columnName": "customOrder", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "enabled", - "columnName": "enabled", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "enabledExplore", - "columnName": "enabledExplore", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "header", - "columnName": "header", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "loginUrl", - "columnName": "loginUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "bookSourceComment", - "columnName": "bookSourceComment", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "lastUpdateTime", - "columnName": "lastUpdateTime", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "weight", - "columnName": "weight", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "exploreUrl", - "columnName": "exploreUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleExplore", - "columnName": "ruleExplore", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "searchUrl", - "columnName": "searchUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleSearch", - "columnName": "ruleSearch", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleBookInfo", - "columnName": "ruleBookInfo", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleToc", - "columnName": "ruleToc", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleContent", - "columnName": "ruleContent", - "affinity": "TEXT", - "notNull": false - } - ], - "primaryKey": { - "columnNames": [ - "bookSourceUrl" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_book_sources_bookSourceUrl", - "unique": false, - "columnNames": [ - "bookSourceUrl" - ], - "createSql": "CREATE INDEX IF NOT EXISTS `index_book_sources_bookSourceUrl` ON `${TABLE_NAME}` (`bookSourceUrl`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "chapters", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`url` TEXT NOT NULL, `title` TEXT NOT NULL, `baseUrl` TEXT NOT NULL, `bookUrl` TEXT NOT NULL, `index` INTEGER NOT NULL, `resourceUrl` TEXT, `tag` TEXT, `start` INTEGER, `end` INTEGER, `startFragmentId` TEXT, `endFragmentId` TEXT, `variable` TEXT, PRIMARY KEY(`url`, `bookUrl`), FOREIGN KEY(`bookUrl`) REFERENCES `books`(`bookUrl`) ON UPDATE NO ACTION ON DELETE CASCADE )", - "fields": [ - { - "fieldPath": "url", - "columnName": "url", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "title", - "columnName": "title", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "baseUrl", - "columnName": "baseUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookUrl", - "columnName": "bookUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "index", - "columnName": "index", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "resourceUrl", - "columnName": "resourceUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "tag", - "columnName": "tag", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "start", - "columnName": "start", - "affinity": "INTEGER", - "notNull": false - }, - { - "fieldPath": "end", - "columnName": "end", - "affinity": "INTEGER", - "notNull": false - }, - { - "fieldPath": "startFragmentId", - "columnName": "startFragmentId", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "endFragmentId", - "columnName": "endFragmentId", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "variable", - "columnName": "variable", - "affinity": "TEXT", - "notNull": false - } - ], - "primaryKey": { - "columnNames": [ - "url", - "bookUrl" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_chapters_bookUrl", - "unique": false, - "columnNames": [ - "bookUrl" - ], - "createSql": "CREATE INDEX IF NOT EXISTS `index_chapters_bookUrl` ON `${TABLE_NAME}` (`bookUrl`)" - }, - { - "name": "index_chapters_bookUrl_index", - "unique": true, - "columnNames": [ - "bookUrl", - "index" - ], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_chapters_bookUrl_index` ON `${TABLE_NAME}` (`bookUrl`, `index`)" - } - ], - "foreignKeys": [ - { - "table": "books", - "onDelete": "CASCADE", - "onUpdate": "NO ACTION", - "columns": [ - "bookUrl" - ], - "referencedColumns": [ - "bookUrl" - ] - } - ] - }, - { - "tableName": "replace_rules", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, `name` TEXT NOT NULL, `group` TEXT, `pattern` TEXT NOT NULL, `replacement` TEXT NOT NULL, `scope` TEXT, `isEnabled` INTEGER NOT NULL, `isRegex` INTEGER NOT NULL, `sortOrder` INTEGER NOT NULL)", - "fields": [ - { - "fieldPath": "id", - "columnName": "id", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "group", - "columnName": "group", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "pattern", - "columnName": "pattern", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "replacement", - "columnName": "replacement", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "scope", - "columnName": "scope", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "isEnabled", - "columnName": "isEnabled", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "isRegex", - "columnName": "isRegex", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "order", - "columnName": "sortOrder", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "id" - ], - "autoGenerate": true - }, - "indices": [ - { - "name": "index_replace_rules_id", - "unique": false, - "columnNames": [ - "id" - ], - "createSql": "CREATE INDEX IF NOT EXISTS `index_replace_rules_id` ON `${TABLE_NAME}` (`id`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "searchBooks", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`bookUrl` TEXT NOT NULL, `origin` TEXT NOT NULL, `originName` TEXT NOT NULL, `type` INTEGER NOT NULL, `name` TEXT NOT NULL, `author` TEXT NOT NULL, `kind` TEXT, `coverUrl` TEXT, `intro` TEXT, `wordCount` TEXT, `latestChapterTitle` TEXT, `tocUrl` TEXT NOT NULL, `time` INTEGER NOT NULL, `variable` TEXT, `originOrder` INTEGER NOT NULL, PRIMARY KEY(`bookUrl`), FOREIGN KEY(`origin`) REFERENCES `book_sources`(`bookSourceUrl`) ON UPDATE NO ACTION ON DELETE CASCADE )", - "fields": [ - { - "fieldPath": "bookUrl", - "columnName": "bookUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "origin", - "columnName": "origin", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "originName", - "columnName": "originName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "type", - "columnName": "type", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "author", - "columnName": "author", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "kind", - "columnName": "kind", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "coverUrl", - "columnName": "coverUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "intro", - "columnName": "intro", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "wordCount", - "columnName": "wordCount", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "latestChapterTitle", - "columnName": "latestChapterTitle", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "tocUrl", - "columnName": "tocUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "time", - "columnName": "time", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "variable", - "columnName": "variable", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "originOrder", - "columnName": "originOrder", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "bookUrl" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_searchBooks_bookUrl", - "unique": true, - "columnNames": [ - "bookUrl" - ], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_searchBooks_bookUrl` ON `${TABLE_NAME}` (`bookUrl`)" - }, - { - "name": "index_searchBooks_origin", - "unique": false, - "columnNames": [ - "origin" - ], - "createSql": "CREATE INDEX IF NOT EXISTS `index_searchBooks_origin` ON `${TABLE_NAME}` (`origin`)" - } - ], - "foreignKeys": [ - { - "table": "book_sources", - "onDelete": "CASCADE", - "onUpdate": "NO ACTION", - "columns": [ - "origin" - ], - "referencedColumns": [ - "bookSourceUrl" - ] - } - ] - }, - { - "tableName": "search_keywords", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`word` TEXT NOT NULL, `usage` INTEGER NOT NULL, `lastUseTime` INTEGER NOT NULL, PRIMARY KEY(`word`))", - "fields": [ - { - "fieldPath": "word", - "columnName": "word", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "usage", - "columnName": "usage", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "lastUseTime", - "columnName": "lastUseTime", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "word" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_search_keywords_word", - "unique": true, - "columnNames": [ - "word" - ], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_search_keywords_word` ON `${TABLE_NAME}` (`word`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "cookies", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`url` TEXT NOT NULL, `cookie` TEXT NOT NULL, PRIMARY KEY(`url`))", - "fields": [ - { - "fieldPath": "url", - "columnName": "url", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "cookie", - "columnName": "cookie", - "affinity": "TEXT", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "url" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_cookies_url", - "unique": true, - "columnNames": [ - "url" - ], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_cookies_url` ON `${TABLE_NAME}` (`url`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "rssSources", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`sourceUrl` TEXT NOT NULL, `sourceName` TEXT NOT NULL, `sourceIcon` TEXT NOT NULL, `sourceGroup` TEXT, `sourceComment` TEXT, `enabled` INTEGER NOT NULL, `sortUrl` TEXT, `singleUrl` INTEGER NOT NULL, `articleStyle` INTEGER NOT NULL, `ruleArticles` TEXT, `ruleNextPage` TEXT, `ruleTitle` TEXT, `rulePubDate` TEXT, `ruleDescription` TEXT, `ruleImage` TEXT, `ruleLink` TEXT, `ruleContent` TEXT, `style` TEXT, `header` TEXT, `enableJs` INTEGER NOT NULL, `loadWithBaseUrl` INTEGER NOT NULL, `customOrder` INTEGER NOT NULL, PRIMARY KEY(`sourceUrl`))", - "fields": [ - { - "fieldPath": "sourceUrl", - "columnName": "sourceUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "sourceName", - "columnName": "sourceName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "sourceIcon", - "columnName": "sourceIcon", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "sourceGroup", - "columnName": "sourceGroup", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "sourceComment", - "columnName": "sourceComment", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "enabled", - "columnName": "enabled", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "sortUrl", - "columnName": "sortUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "singleUrl", - "columnName": "singleUrl", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "articleStyle", - "columnName": "articleStyle", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "ruleArticles", - "columnName": "ruleArticles", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleNextPage", - "columnName": "ruleNextPage", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleTitle", - "columnName": "ruleTitle", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "rulePubDate", - "columnName": "rulePubDate", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleDescription", - "columnName": "ruleDescription", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleImage", - "columnName": "ruleImage", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleLink", - "columnName": "ruleLink", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleContent", - "columnName": "ruleContent", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "style", - "columnName": "style", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "header", - "columnName": "header", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "enableJs", - "columnName": "enableJs", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "loadWithBaseUrl", - "columnName": "loadWithBaseUrl", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "customOrder", - "columnName": "customOrder", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "sourceUrl" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_rssSources_sourceUrl", - "unique": false, - "columnNames": [ - "sourceUrl" - ], - "createSql": "CREATE INDEX IF NOT EXISTS `index_rssSources_sourceUrl` ON `${TABLE_NAME}` (`sourceUrl`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "bookmarks", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`time` INTEGER NOT NULL, `bookName` TEXT NOT NULL, `bookAuthor` TEXT NOT NULL, `chapterIndex` INTEGER NOT NULL, `chapterPos` INTEGER NOT NULL, `chapterName` TEXT NOT NULL, `bookText` TEXT NOT NULL, `content` TEXT NOT NULL, PRIMARY KEY(`time`))", - "fields": [ - { - "fieldPath": "time", - "columnName": "time", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "bookName", - "columnName": "bookName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookAuthor", - "columnName": "bookAuthor", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "chapterIndex", - "columnName": "chapterIndex", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "chapterPos", - "columnName": "chapterPos", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "chapterName", - "columnName": "chapterName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookText", - "columnName": "bookText", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "content", - "columnName": "content", - "affinity": "TEXT", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "time" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_bookmarks_bookName_bookAuthor", - "unique": false, - "columnNames": [ - "bookName", - "bookAuthor" - ], - "createSql": "CREATE INDEX IF NOT EXISTS `index_bookmarks_bookName_bookAuthor` ON `${TABLE_NAME}` (`bookName`, `bookAuthor`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "rssArticles", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`origin` TEXT NOT NULL, `sort` TEXT NOT NULL, `title` TEXT NOT NULL, `order` INTEGER NOT NULL, `link` TEXT NOT NULL, `pubDate` TEXT, `description` TEXT, `content` TEXT, `image` TEXT, `read` INTEGER NOT NULL, `variable` TEXT, PRIMARY KEY(`origin`, `link`))", - "fields": [ - { - "fieldPath": "origin", - "columnName": "origin", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "sort", - "columnName": "sort", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "title", - "columnName": "title", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "order", - "columnName": "order", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "link", - "columnName": "link", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "pubDate", - "columnName": "pubDate", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "description", - "columnName": "description", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "content", - "columnName": "content", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "image", - "columnName": "image", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "read", - "columnName": "read", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "variable", - "columnName": "variable", - "affinity": "TEXT", - "notNull": false - } - ], - "primaryKey": { - "columnNames": [ - "origin", - "link" - ], - "autoGenerate": false - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "rssReadRecords", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`record` TEXT NOT NULL, `read` INTEGER NOT NULL, PRIMARY KEY(`record`))", - "fields": [ - { - "fieldPath": "record", - "columnName": "record", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "read", - "columnName": "read", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "record" - ], - "autoGenerate": false - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "rssStars", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`origin` TEXT NOT NULL, `sort` TEXT NOT NULL, `title` TEXT NOT NULL, `starTime` INTEGER NOT NULL, `link` TEXT NOT NULL, `pubDate` TEXT, `description` TEXT, `content` TEXT, `image` TEXT, `variable` TEXT, PRIMARY KEY(`origin`, `link`))", - "fields": [ - { - "fieldPath": "origin", - "columnName": "origin", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "sort", - "columnName": "sort", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "title", - "columnName": "title", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "starTime", - "columnName": "starTime", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "link", - "columnName": "link", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "pubDate", - "columnName": "pubDate", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "description", - "columnName": "description", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "content", - "columnName": "content", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "image", - "columnName": "image", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "variable", - "columnName": "variable", - "affinity": "TEXT", - "notNull": false - } - ], - "primaryKey": { - "columnNames": [ - "origin", - "link" - ], - "autoGenerate": false - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "txtTocRules", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER NOT NULL, `name` TEXT NOT NULL, `rule` TEXT NOT NULL, `serialNumber` INTEGER NOT NULL, `enable` INTEGER NOT NULL, PRIMARY KEY(`id`))", - "fields": [ - { - "fieldPath": "id", - "columnName": "id", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "rule", - "columnName": "rule", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "serialNumber", - "columnName": "serialNumber", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "enable", - "columnName": "enable", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "id" - ], - "autoGenerate": false - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "readRecord", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`deviceId` TEXT NOT NULL, `bookName` TEXT NOT NULL, `readTime` INTEGER NOT NULL, PRIMARY KEY(`deviceId`, `bookName`))", - "fields": [ - { - "fieldPath": "deviceId", - "columnName": "deviceId", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookName", - "columnName": "bookName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "readTime", - "columnName": "readTime", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "deviceId", - "bookName" - ], - "autoGenerate": false - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "httpTTS", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER NOT NULL, `name` TEXT NOT NULL, `url` TEXT NOT NULL, PRIMARY KEY(`id`))", - "fields": [ - { - "fieldPath": "id", - "columnName": "id", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "url", - "columnName": "url", - "affinity": "TEXT", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "id" - ], - "autoGenerate": false - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "caches", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`key` TEXT NOT NULL, `value` TEXT, `deadline` INTEGER NOT NULL, PRIMARY KEY(`key`))", - "fields": [ - { - "fieldPath": "key", - "columnName": "key", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "value", - "columnName": "value", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "deadline", - "columnName": "deadline", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "key" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_caches_key", - "unique": true, - "columnNames": [ - "key" - ], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_caches_key` ON `${TABLE_NAME}` (`key`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "ruleSubs", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER NOT NULL, `name` TEXT NOT NULL, `url` TEXT NOT NULL, `type` INTEGER NOT NULL, `customOrder` INTEGER NOT NULL, `autoUpdate` INTEGER NOT NULL, `update` INTEGER NOT NULL, PRIMARY KEY(`id`))", - "fields": [ - { - "fieldPath": "id", - "columnName": "id", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "url", - "columnName": "url", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "type", - "columnName": "type", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "customOrder", - "columnName": "customOrder", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "autoUpdate", - "columnName": "autoUpdate", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "update", - "columnName": "update", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "id" - ], - "autoGenerate": false - }, - "indices": [], - "foreignKeys": [] - } - ], - "views": [], - "setupQueries": [ - "CREATE TABLE IF NOT EXISTS room_master_table (id INTEGER PRIMARY KEY,identity_hash TEXT)", - "INSERT OR REPLACE INTO room_master_table (id,identity_hash) VALUES(42, '6dad1518f359667b4d740fc6a1f44a21')" - ] - } -} \ No newline at end of file diff --git a/app/schemas/io.legado.app.data.AppDatabase/34.json b/app/schemas/io.legado.app.data.AppDatabase/34.json deleted file mode 100644 index 3fe40c410..000000000 --- a/app/schemas/io.legado.app.data.AppDatabase/34.json +++ /dev/null @@ -1,1423 +0,0 @@ -{ - "formatVersion": 1, - "database": { - "version": 34, - "identityHash": "2e519f1f67ca16091cbc3891c1b71c66", - "entities": [ - { - "tableName": "books", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`bookUrl` TEXT NOT NULL, `tocUrl` TEXT NOT NULL, `origin` TEXT NOT NULL, `originName` TEXT NOT NULL, `name` TEXT NOT NULL, `author` TEXT NOT NULL, `kind` TEXT, `customTag` TEXT, `coverUrl` TEXT, `customCoverUrl` TEXT, `intro` TEXT, `customIntro` TEXT, `charset` TEXT, `type` INTEGER NOT NULL, `group` INTEGER NOT NULL, `latestChapterTitle` TEXT, `latestChapterTime` INTEGER NOT NULL, `lastCheckTime` INTEGER NOT NULL, `lastCheckCount` INTEGER NOT NULL, `totalChapterNum` INTEGER NOT NULL, `durChapterTitle` TEXT, `durChapterIndex` INTEGER NOT NULL, `durChapterPos` INTEGER NOT NULL, `durChapterTime` INTEGER NOT NULL, `wordCount` TEXT, `canUpdate` INTEGER NOT NULL, `order` INTEGER NOT NULL, `originOrder` INTEGER NOT NULL, `variable` TEXT, `readConfig` TEXT, PRIMARY KEY(`bookUrl`))", - "fields": [ - { - "fieldPath": "bookUrl", - "columnName": "bookUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "tocUrl", - "columnName": "tocUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "origin", - "columnName": "origin", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "originName", - "columnName": "originName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "author", - "columnName": "author", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "kind", - "columnName": "kind", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "customTag", - "columnName": "customTag", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "coverUrl", - "columnName": "coverUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "customCoverUrl", - "columnName": "customCoverUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "intro", - "columnName": "intro", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "customIntro", - "columnName": "customIntro", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "charset", - "columnName": "charset", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "type", - "columnName": "type", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "group", - "columnName": "group", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "latestChapterTitle", - "columnName": "latestChapterTitle", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "latestChapterTime", - "columnName": "latestChapterTime", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "lastCheckTime", - "columnName": "lastCheckTime", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "lastCheckCount", - "columnName": "lastCheckCount", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "totalChapterNum", - "columnName": "totalChapterNum", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "durChapterTitle", - "columnName": "durChapterTitle", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "durChapterIndex", - "columnName": "durChapterIndex", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "durChapterPos", - "columnName": "durChapterPos", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "durChapterTime", - "columnName": "durChapterTime", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "wordCount", - "columnName": "wordCount", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "canUpdate", - "columnName": "canUpdate", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "order", - "columnName": "order", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "originOrder", - "columnName": "originOrder", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "variable", - "columnName": "variable", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "readConfig", - "columnName": "readConfig", - "affinity": "TEXT", - "notNull": false - } - ], - "primaryKey": { - "columnNames": [ - "bookUrl" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_books_name_author", - "unique": true, - "columnNames": [ - "name", - "author" - ], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_books_name_author` ON `${TABLE_NAME}` (`name`, `author`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "book_groups", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`groupId` INTEGER NOT NULL, `groupName` TEXT NOT NULL, `cover` TEXT, `order` INTEGER NOT NULL, `show` INTEGER NOT NULL, PRIMARY KEY(`groupId`))", - "fields": [ - { - "fieldPath": "groupId", - "columnName": "groupId", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "groupName", - "columnName": "groupName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "cover", - "columnName": "cover", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "order", - "columnName": "order", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "show", - "columnName": "show", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "groupId" - ], - "autoGenerate": false - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "book_sources", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`bookSourceName` TEXT NOT NULL, `bookSourceGroup` TEXT, `bookSourceUrl` TEXT NOT NULL, `bookSourceType` INTEGER NOT NULL, `bookUrlPattern` TEXT, `customOrder` INTEGER NOT NULL, `enabled` INTEGER NOT NULL, `enabledExplore` INTEGER NOT NULL, `header` TEXT, `loginUrl` TEXT, `bookSourceComment` TEXT, `lastUpdateTime` INTEGER NOT NULL, `weight` INTEGER NOT NULL, `exploreUrl` TEXT, `ruleExplore` TEXT, `searchUrl` TEXT, `ruleSearch` TEXT, `ruleBookInfo` TEXT, `ruleToc` TEXT, `ruleContent` TEXT, PRIMARY KEY(`bookSourceUrl`))", - "fields": [ - { - "fieldPath": "bookSourceName", - "columnName": "bookSourceName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookSourceGroup", - "columnName": "bookSourceGroup", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "bookSourceUrl", - "columnName": "bookSourceUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookSourceType", - "columnName": "bookSourceType", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "bookUrlPattern", - "columnName": "bookUrlPattern", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "customOrder", - "columnName": "customOrder", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "enabled", - "columnName": "enabled", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "enabledExplore", - "columnName": "enabledExplore", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "header", - "columnName": "header", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "loginUrl", - "columnName": "loginUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "bookSourceComment", - "columnName": "bookSourceComment", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "lastUpdateTime", - "columnName": "lastUpdateTime", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "weight", - "columnName": "weight", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "exploreUrl", - "columnName": "exploreUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleExplore", - "columnName": "ruleExplore", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "searchUrl", - "columnName": "searchUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleSearch", - "columnName": "ruleSearch", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleBookInfo", - "columnName": "ruleBookInfo", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleToc", - "columnName": "ruleToc", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleContent", - "columnName": "ruleContent", - "affinity": "TEXT", - "notNull": false - } - ], - "primaryKey": { - "columnNames": [ - "bookSourceUrl" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_book_sources_bookSourceUrl", - "unique": false, - "columnNames": [ - "bookSourceUrl" - ], - "createSql": "CREATE INDEX IF NOT EXISTS `index_book_sources_bookSourceUrl` ON `${TABLE_NAME}` (`bookSourceUrl`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "chapters", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`url` TEXT NOT NULL, `title` TEXT NOT NULL, `baseUrl` TEXT NOT NULL, `bookUrl` TEXT NOT NULL, `index` INTEGER NOT NULL, `resourceUrl` TEXT, `tag` TEXT, `start` INTEGER, `end` INTEGER, `startFragmentId` TEXT, `endFragmentId` TEXT, `variable` TEXT, PRIMARY KEY(`url`, `bookUrl`), FOREIGN KEY(`bookUrl`) REFERENCES `books`(`bookUrl`) ON UPDATE NO ACTION ON DELETE CASCADE )", - "fields": [ - { - "fieldPath": "url", - "columnName": "url", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "title", - "columnName": "title", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "baseUrl", - "columnName": "baseUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookUrl", - "columnName": "bookUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "index", - "columnName": "index", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "resourceUrl", - "columnName": "resourceUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "tag", - "columnName": "tag", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "start", - "columnName": "start", - "affinity": "INTEGER", - "notNull": false - }, - { - "fieldPath": "end", - "columnName": "end", - "affinity": "INTEGER", - "notNull": false - }, - { - "fieldPath": "startFragmentId", - "columnName": "startFragmentId", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "endFragmentId", - "columnName": "endFragmentId", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "variable", - "columnName": "variable", - "affinity": "TEXT", - "notNull": false - } - ], - "primaryKey": { - "columnNames": [ - "url", - "bookUrl" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_chapters_bookUrl", - "unique": false, - "columnNames": [ - "bookUrl" - ], - "createSql": "CREATE INDEX IF NOT EXISTS `index_chapters_bookUrl` ON `${TABLE_NAME}` (`bookUrl`)" - }, - { - "name": "index_chapters_bookUrl_index", - "unique": true, - "columnNames": [ - "bookUrl", - "index" - ], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_chapters_bookUrl_index` ON `${TABLE_NAME}` (`bookUrl`, `index`)" - } - ], - "foreignKeys": [ - { - "table": "books", - "onDelete": "CASCADE", - "onUpdate": "NO ACTION", - "columns": [ - "bookUrl" - ], - "referencedColumns": [ - "bookUrl" - ] - } - ] - }, - { - "tableName": "replace_rules", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, `name` TEXT NOT NULL, `group` TEXT, `pattern` TEXT NOT NULL, `replacement` TEXT NOT NULL, `scope` TEXT, `isEnabled` INTEGER NOT NULL, `isRegex` INTEGER NOT NULL, `sortOrder` INTEGER NOT NULL)", - "fields": [ - { - "fieldPath": "id", - "columnName": "id", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "group", - "columnName": "group", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "pattern", - "columnName": "pattern", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "replacement", - "columnName": "replacement", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "scope", - "columnName": "scope", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "isEnabled", - "columnName": "isEnabled", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "isRegex", - "columnName": "isRegex", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "order", - "columnName": "sortOrder", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "id" - ], - "autoGenerate": true - }, - "indices": [ - { - "name": "index_replace_rules_id", - "unique": false, - "columnNames": [ - "id" - ], - "createSql": "CREATE INDEX IF NOT EXISTS `index_replace_rules_id` ON `${TABLE_NAME}` (`id`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "searchBooks", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`bookUrl` TEXT NOT NULL, `origin` TEXT NOT NULL, `originName` TEXT NOT NULL, `type` INTEGER NOT NULL, `name` TEXT NOT NULL, `author` TEXT NOT NULL, `kind` TEXT, `coverUrl` TEXT, `intro` TEXT, `wordCount` TEXT, `latestChapterTitle` TEXT, `tocUrl` TEXT NOT NULL, `time` INTEGER NOT NULL, `variable` TEXT, `originOrder` INTEGER NOT NULL, PRIMARY KEY(`bookUrl`), FOREIGN KEY(`origin`) REFERENCES `book_sources`(`bookSourceUrl`) ON UPDATE NO ACTION ON DELETE CASCADE )", - "fields": [ - { - "fieldPath": "bookUrl", - "columnName": "bookUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "origin", - "columnName": "origin", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "originName", - "columnName": "originName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "type", - "columnName": "type", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "author", - "columnName": "author", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "kind", - "columnName": "kind", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "coverUrl", - "columnName": "coverUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "intro", - "columnName": "intro", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "wordCount", - "columnName": "wordCount", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "latestChapterTitle", - "columnName": "latestChapterTitle", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "tocUrl", - "columnName": "tocUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "time", - "columnName": "time", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "variable", - "columnName": "variable", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "originOrder", - "columnName": "originOrder", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "bookUrl" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_searchBooks_bookUrl", - "unique": true, - "columnNames": [ - "bookUrl" - ], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_searchBooks_bookUrl` ON `${TABLE_NAME}` (`bookUrl`)" - }, - { - "name": "index_searchBooks_origin", - "unique": false, - "columnNames": [ - "origin" - ], - "createSql": "CREATE INDEX IF NOT EXISTS `index_searchBooks_origin` ON `${TABLE_NAME}` (`origin`)" - } - ], - "foreignKeys": [ - { - "table": "book_sources", - "onDelete": "CASCADE", - "onUpdate": "NO ACTION", - "columns": [ - "origin" - ], - "referencedColumns": [ - "bookSourceUrl" - ] - } - ] - }, - { - "tableName": "search_keywords", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`word` TEXT NOT NULL, `usage` INTEGER NOT NULL, `lastUseTime` INTEGER NOT NULL, PRIMARY KEY(`word`))", - "fields": [ - { - "fieldPath": "word", - "columnName": "word", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "usage", - "columnName": "usage", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "lastUseTime", - "columnName": "lastUseTime", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "word" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_search_keywords_word", - "unique": true, - "columnNames": [ - "word" - ], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_search_keywords_word` ON `${TABLE_NAME}` (`word`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "cookies", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`url` TEXT NOT NULL, `cookie` TEXT NOT NULL, PRIMARY KEY(`url`))", - "fields": [ - { - "fieldPath": "url", - "columnName": "url", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "cookie", - "columnName": "cookie", - "affinity": "TEXT", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "url" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_cookies_url", - "unique": true, - "columnNames": [ - "url" - ], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_cookies_url` ON `${TABLE_NAME}` (`url`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "rssSources", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`sourceUrl` TEXT NOT NULL, `sourceName` TEXT NOT NULL, `sourceIcon` TEXT NOT NULL, `sourceGroup` TEXT, `sourceComment` TEXT, `enabled` INTEGER NOT NULL, `sortUrl` TEXT, `singleUrl` INTEGER NOT NULL, `articleStyle` INTEGER NOT NULL, `ruleArticles` TEXT, `ruleNextPage` TEXT, `ruleTitle` TEXT, `rulePubDate` TEXT, `ruleDescription` TEXT, `ruleImage` TEXT, `ruleLink` TEXT, `ruleContent` TEXT, `style` TEXT, `header` TEXT, `enableJs` INTEGER NOT NULL, `loadWithBaseUrl` INTEGER NOT NULL, `customOrder` INTEGER NOT NULL, PRIMARY KEY(`sourceUrl`))", - "fields": [ - { - "fieldPath": "sourceUrl", - "columnName": "sourceUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "sourceName", - "columnName": "sourceName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "sourceIcon", - "columnName": "sourceIcon", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "sourceGroup", - "columnName": "sourceGroup", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "sourceComment", - "columnName": "sourceComment", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "enabled", - "columnName": "enabled", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "sortUrl", - "columnName": "sortUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "singleUrl", - "columnName": "singleUrl", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "articleStyle", - "columnName": "articleStyle", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "ruleArticles", - "columnName": "ruleArticles", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleNextPage", - "columnName": "ruleNextPage", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleTitle", - "columnName": "ruleTitle", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "rulePubDate", - "columnName": "rulePubDate", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleDescription", - "columnName": "ruleDescription", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleImage", - "columnName": "ruleImage", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleLink", - "columnName": "ruleLink", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleContent", - "columnName": "ruleContent", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "style", - "columnName": "style", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "header", - "columnName": "header", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "enableJs", - "columnName": "enableJs", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "loadWithBaseUrl", - "columnName": "loadWithBaseUrl", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "customOrder", - "columnName": "customOrder", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "sourceUrl" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_rssSources_sourceUrl", - "unique": false, - "columnNames": [ - "sourceUrl" - ], - "createSql": "CREATE INDEX IF NOT EXISTS `index_rssSources_sourceUrl` ON `${TABLE_NAME}` (`sourceUrl`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "bookmarks", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`time` INTEGER NOT NULL, `bookName` TEXT NOT NULL, `bookAuthor` TEXT NOT NULL, `chapterIndex` INTEGER NOT NULL, `chapterPos` INTEGER NOT NULL, `chapterName` TEXT NOT NULL, `bookText` TEXT NOT NULL, `content` TEXT NOT NULL, PRIMARY KEY(`time`))", - "fields": [ - { - "fieldPath": "time", - "columnName": "time", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "bookName", - "columnName": "bookName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookAuthor", - "columnName": "bookAuthor", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "chapterIndex", - "columnName": "chapterIndex", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "chapterPos", - "columnName": "chapterPos", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "chapterName", - "columnName": "chapterName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookText", - "columnName": "bookText", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "content", - "columnName": "content", - "affinity": "TEXT", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "time" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_bookmarks_bookName_bookAuthor", - "unique": false, - "columnNames": [ - "bookName", - "bookAuthor" - ], - "createSql": "CREATE INDEX IF NOT EXISTS `index_bookmarks_bookName_bookAuthor` ON `${TABLE_NAME}` (`bookName`, `bookAuthor`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "rssArticles", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`origin` TEXT NOT NULL, `sort` TEXT NOT NULL, `title` TEXT NOT NULL, `order` INTEGER NOT NULL, `link` TEXT NOT NULL, `pubDate` TEXT, `description` TEXT, `content` TEXT, `image` TEXT, `read` INTEGER NOT NULL, `variable` TEXT, PRIMARY KEY(`origin`, `link`))", - "fields": [ - { - "fieldPath": "origin", - "columnName": "origin", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "sort", - "columnName": "sort", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "title", - "columnName": "title", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "order", - "columnName": "order", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "link", - "columnName": "link", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "pubDate", - "columnName": "pubDate", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "description", - "columnName": "description", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "content", - "columnName": "content", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "image", - "columnName": "image", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "read", - "columnName": "read", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "variable", - "columnName": "variable", - "affinity": "TEXT", - "notNull": false - } - ], - "primaryKey": { - "columnNames": [ - "origin", - "link" - ], - "autoGenerate": false - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "rssReadRecords", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`record` TEXT NOT NULL, `read` INTEGER NOT NULL, PRIMARY KEY(`record`))", - "fields": [ - { - "fieldPath": "record", - "columnName": "record", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "read", - "columnName": "read", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "record" - ], - "autoGenerate": false - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "rssStars", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`origin` TEXT NOT NULL, `sort` TEXT NOT NULL, `title` TEXT NOT NULL, `starTime` INTEGER NOT NULL, `link` TEXT NOT NULL, `pubDate` TEXT, `description` TEXT, `content` TEXT, `image` TEXT, `variable` TEXT, PRIMARY KEY(`origin`, `link`))", - "fields": [ - { - "fieldPath": "origin", - "columnName": "origin", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "sort", - "columnName": "sort", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "title", - "columnName": "title", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "starTime", - "columnName": "starTime", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "link", - "columnName": "link", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "pubDate", - "columnName": "pubDate", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "description", - "columnName": "description", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "content", - "columnName": "content", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "image", - "columnName": "image", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "variable", - "columnName": "variable", - "affinity": "TEXT", - "notNull": false - } - ], - "primaryKey": { - "columnNames": [ - "origin", - "link" - ], - "autoGenerate": false - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "txtTocRules", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER NOT NULL, `name` TEXT NOT NULL, `rule` TEXT NOT NULL, `serialNumber` INTEGER NOT NULL, `enable` INTEGER NOT NULL, PRIMARY KEY(`id`))", - "fields": [ - { - "fieldPath": "id", - "columnName": "id", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "rule", - "columnName": "rule", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "serialNumber", - "columnName": "serialNumber", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "enable", - "columnName": "enable", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "id" - ], - "autoGenerate": false - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "readRecord", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`deviceId` TEXT NOT NULL, `bookName` TEXT NOT NULL, `readTime` INTEGER NOT NULL, PRIMARY KEY(`deviceId`, `bookName`))", - "fields": [ - { - "fieldPath": "deviceId", - "columnName": "deviceId", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookName", - "columnName": "bookName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "readTime", - "columnName": "readTime", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "deviceId", - "bookName" - ], - "autoGenerate": false - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "httpTTS", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER NOT NULL, `name` TEXT NOT NULL, `url` TEXT NOT NULL, PRIMARY KEY(`id`))", - "fields": [ - { - "fieldPath": "id", - "columnName": "id", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "url", - "columnName": "url", - "affinity": "TEXT", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "id" - ], - "autoGenerate": false - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "caches", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`key` TEXT NOT NULL, `value` TEXT, `deadline` INTEGER NOT NULL, PRIMARY KEY(`key`))", - "fields": [ - { - "fieldPath": "key", - "columnName": "key", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "value", - "columnName": "value", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "deadline", - "columnName": "deadline", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "key" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_caches_key", - "unique": true, - "columnNames": [ - "key" - ], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_caches_key` ON `${TABLE_NAME}` (`key`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "ruleSubs", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER NOT NULL, `name` TEXT NOT NULL, `url` TEXT NOT NULL, `type` INTEGER NOT NULL, `customOrder` INTEGER NOT NULL, `autoUpdate` INTEGER NOT NULL, `update` INTEGER NOT NULL, PRIMARY KEY(`id`))", - "fields": [ - { - "fieldPath": "id", - "columnName": "id", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "url", - "columnName": "url", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "type", - "columnName": "type", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "customOrder", - "columnName": "customOrder", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "autoUpdate", - "columnName": "autoUpdate", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "update", - "columnName": "update", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "id" - ], - "autoGenerate": false - }, - "indices": [], - "foreignKeys": [] - } - ], - "views": [], - "setupQueries": [ - "CREATE TABLE IF NOT EXISTS room_master_table (id INTEGER PRIMARY KEY,identity_hash TEXT)", - "INSERT OR REPLACE INTO room_master_table (id,identity_hash) VALUES(42, '2e519f1f67ca16091cbc3891c1b71c66')" - ] - } -} \ No newline at end of file diff --git a/app/schemas/io.legado.app.data.AppDatabase/35.json b/app/schemas/io.legado.app.data.AppDatabase/35.json deleted file mode 100644 index 9e3eeb6fa..000000000 --- a/app/schemas/io.legado.app.data.AppDatabase/35.json +++ /dev/null @@ -1,1441 +0,0 @@ -{ - "formatVersion": 1, - "database": { - "version": 35, - "identityHash": "25948a8defe4d091514bb725b4db7683", - "entities": [ - { - "tableName": "books", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`bookUrl` TEXT NOT NULL, `tocUrl` TEXT NOT NULL, `origin` TEXT NOT NULL, `originName` TEXT NOT NULL, `name` TEXT NOT NULL, `author` TEXT NOT NULL, `kind` TEXT, `customTag` TEXT, `coverUrl` TEXT, `customCoverUrl` TEXT, `intro` TEXT, `customIntro` TEXT, `charset` TEXT, `type` INTEGER NOT NULL, `group` INTEGER NOT NULL, `latestChapterTitle` TEXT, `latestChapterTime` INTEGER NOT NULL, `lastCheckTime` INTEGER NOT NULL, `lastCheckCount` INTEGER NOT NULL, `totalChapterNum` INTEGER NOT NULL, `durChapterTitle` TEXT, `durChapterIndex` INTEGER NOT NULL, `durChapterPos` INTEGER NOT NULL, `durChapterTime` INTEGER NOT NULL, `wordCount` TEXT, `canUpdate` INTEGER NOT NULL, `order` INTEGER NOT NULL, `originOrder` INTEGER NOT NULL, `variable` TEXT, `readConfig` TEXT, PRIMARY KEY(`bookUrl`))", - "fields": [ - { - "fieldPath": "bookUrl", - "columnName": "bookUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "tocUrl", - "columnName": "tocUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "origin", - "columnName": "origin", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "originName", - "columnName": "originName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "author", - "columnName": "author", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "kind", - "columnName": "kind", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "customTag", - "columnName": "customTag", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "coverUrl", - "columnName": "coverUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "customCoverUrl", - "columnName": "customCoverUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "intro", - "columnName": "intro", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "customIntro", - "columnName": "customIntro", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "charset", - "columnName": "charset", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "type", - "columnName": "type", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "group", - "columnName": "group", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "latestChapterTitle", - "columnName": "latestChapterTitle", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "latestChapterTime", - "columnName": "latestChapterTime", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "lastCheckTime", - "columnName": "lastCheckTime", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "lastCheckCount", - "columnName": "lastCheckCount", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "totalChapterNum", - "columnName": "totalChapterNum", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "durChapterTitle", - "columnName": "durChapterTitle", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "durChapterIndex", - "columnName": "durChapterIndex", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "durChapterPos", - "columnName": "durChapterPos", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "durChapterTime", - "columnName": "durChapterTime", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "wordCount", - "columnName": "wordCount", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "canUpdate", - "columnName": "canUpdate", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "order", - "columnName": "order", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "originOrder", - "columnName": "originOrder", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "variable", - "columnName": "variable", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "readConfig", - "columnName": "readConfig", - "affinity": "TEXT", - "notNull": false - } - ], - "primaryKey": { - "columnNames": [ - "bookUrl" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_books_name_author", - "unique": true, - "columnNames": [ - "name", - "author" - ], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_books_name_author` ON `${TABLE_NAME}` (`name`, `author`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "book_groups", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`groupId` INTEGER NOT NULL, `groupName` TEXT NOT NULL, `cover` TEXT, `order` INTEGER NOT NULL, `show` INTEGER NOT NULL, PRIMARY KEY(`groupId`))", - "fields": [ - { - "fieldPath": "groupId", - "columnName": "groupId", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "groupName", - "columnName": "groupName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "cover", - "columnName": "cover", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "order", - "columnName": "order", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "show", - "columnName": "show", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "groupId" - ], - "autoGenerate": false - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "book_sources", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`bookSourceName` TEXT NOT NULL, `bookSourceGroup` TEXT, `bookSourceUrl` TEXT NOT NULL, `bookSourceType` INTEGER NOT NULL, `bookUrlPattern` TEXT, `concurrentRate` TEXT, `customOrder` INTEGER NOT NULL, `enabled` INTEGER NOT NULL, `enabledExplore` INTEGER NOT NULL, `header` TEXT, `loginUrl` TEXT, `loginUi` TEXT, `loginCheckJs` TEXT, `bookSourceComment` TEXT, `lastUpdateTime` INTEGER NOT NULL, `weight` INTEGER NOT NULL, `exploreUrl` TEXT, `ruleExplore` TEXT, `searchUrl` TEXT, `ruleSearch` TEXT, `ruleBookInfo` TEXT, `ruleToc` TEXT, `ruleContent` TEXT, PRIMARY KEY(`bookSourceUrl`))", - "fields": [ - { - "fieldPath": "bookSourceName", - "columnName": "bookSourceName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookSourceGroup", - "columnName": "bookSourceGroup", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "bookSourceUrl", - "columnName": "bookSourceUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookSourceType", - "columnName": "bookSourceType", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "bookUrlPattern", - "columnName": "bookUrlPattern", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "concurrentRate", - "columnName": "concurrentRate", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "customOrder", - "columnName": "customOrder", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "enabled", - "columnName": "enabled", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "enabledExplore", - "columnName": "enabledExplore", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "header", - "columnName": "header", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "loginUrl", - "columnName": "loginUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "loginUi", - "columnName": "loginUi", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "loginCheckJs", - "columnName": "loginCheckJs", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "bookSourceComment", - "columnName": "bookSourceComment", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "lastUpdateTime", - "columnName": "lastUpdateTime", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "weight", - "columnName": "weight", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "exploreUrl", - "columnName": "exploreUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleExplore", - "columnName": "ruleExplore", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "searchUrl", - "columnName": "searchUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleSearch", - "columnName": "ruleSearch", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleBookInfo", - "columnName": "ruleBookInfo", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleToc", - "columnName": "ruleToc", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleContent", - "columnName": "ruleContent", - "affinity": "TEXT", - "notNull": false - } - ], - "primaryKey": { - "columnNames": [ - "bookSourceUrl" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_book_sources_bookSourceUrl", - "unique": false, - "columnNames": [ - "bookSourceUrl" - ], - "createSql": "CREATE INDEX IF NOT EXISTS `index_book_sources_bookSourceUrl` ON `${TABLE_NAME}` (`bookSourceUrl`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "chapters", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`url` TEXT NOT NULL, `title` TEXT NOT NULL, `baseUrl` TEXT NOT NULL, `bookUrl` TEXT NOT NULL, `index` INTEGER NOT NULL, `resourceUrl` TEXT, `tag` TEXT, `start` INTEGER, `end` INTEGER, `startFragmentId` TEXT, `endFragmentId` TEXT, `variable` TEXT, PRIMARY KEY(`url`, `bookUrl`), FOREIGN KEY(`bookUrl`) REFERENCES `books`(`bookUrl`) ON UPDATE NO ACTION ON DELETE CASCADE )", - "fields": [ - { - "fieldPath": "url", - "columnName": "url", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "title", - "columnName": "title", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "baseUrl", - "columnName": "baseUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookUrl", - "columnName": "bookUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "index", - "columnName": "index", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "resourceUrl", - "columnName": "resourceUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "tag", - "columnName": "tag", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "start", - "columnName": "start", - "affinity": "INTEGER", - "notNull": false - }, - { - "fieldPath": "end", - "columnName": "end", - "affinity": "INTEGER", - "notNull": false - }, - { - "fieldPath": "startFragmentId", - "columnName": "startFragmentId", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "endFragmentId", - "columnName": "endFragmentId", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "variable", - "columnName": "variable", - "affinity": "TEXT", - "notNull": false - } - ], - "primaryKey": { - "columnNames": [ - "url", - "bookUrl" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_chapters_bookUrl", - "unique": false, - "columnNames": [ - "bookUrl" - ], - "createSql": "CREATE INDEX IF NOT EXISTS `index_chapters_bookUrl` ON `${TABLE_NAME}` (`bookUrl`)" - }, - { - "name": "index_chapters_bookUrl_index", - "unique": true, - "columnNames": [ - "bookUrl", - "index" - ], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_chapters_bookUrl_index` ON `${TABLE_NAME}` (`bookUrl`, `index`)" - } - ], - "foreignKeys": [ - { - "table": "books", - "onDelete": "CASCADE", - "onUpdate": "NO ACTION", - "columns": [ - "bookUrl" - ], - "referencedColumns": [ - "bookUrl" - ] - } - ] - }, - { - "tableName": "replace_rules", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, `name` TEXT NOT NULL, `group` TEXT, `pattern` TEXT NOT NULL, `replacement` TEXT NOT NULL, `scope` TEXT, `isEnabled` INTEGER NOT NULL, `isRegex` INTEGER NOT NULL, `sortOrder` INTEGER NOT NULL)", - "fields": [ - { - "fieldPath": "id", - "columnName": "id", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "group", - "columnName": "group", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "pattern", - "columnName": "pattern", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "replacement", - "columnName": "replacement", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "scope", - "columnName": "scope", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "isEnabled", - "columnName": "isEnabled", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "isRegex", - "columnName": "isRegex", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "order", - "columnName": "sortOrder", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "id" - ], - "autoGenerate": true - }, - "indices": [ - { - "name": "index_replace_rules_id", - "unique": false, - "columnNames": [ - "id" - ], - "createSql": "CREATE INDEX IF NOT EXISTS `index_replace_rules_id` ON `${TABLE_NAME}` (`id`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "searchBooks", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`bookUrl` TEXT NOT NULL, `origin` TEXT NOT NULL, `originName` TEXT NOT NULL, `type` INTEGER NOT NULL, `name` TEXT NOT NULL, `author` TEXT NOT NULL, `kind` TEXT, `coverUrl` TEXT, `intro` TEXT, `wordCount` TEXT, `latestChapterTitle` TEXT, `tocUrl` TEXT NOT NULL, `time` INTEGER NOT NULL, `variable` TEXT, `originOrder` INTEGER NOT NULL, PRIMARY KEY(`bookUrl`), FOREIGN KEY(`origin`) REFERENCES `book_sources`(`bookSourceUrl`) ON UPDATE NO ACTION ON DELETE CASCADE )", - "fields": [ - { - "fieldPath": "bookUrl", - "columnName": "bookUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "origin", - "columnName": "origin", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "originName", - "columnName": "originName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "type", - "columnName": "type", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "author", - "columnName": "author", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "kind", - "columnName": "kind", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "coverUrl", - "columnName": "coverUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "intro", - "columnName": "intro", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "wordCount", - "columnName": "wordCount", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "latestChapterTitle", - "columnName": "latestChapterTitle", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "tocUrl", - "columnName": "tocUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "time", - "columnName": "time", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "variable", - "columnName": "variable", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "originOrder", - "columnName": "originOrder", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "bookUrl" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_searchBooks_bookUrl", - "unique": true, - "columnNames": [ - "bookUrl" - ], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_searchBooks_bookUrl` ON `${TABLE_NAME}` (`bookUrl`)" - }, - { - "name": "index_searchBooks_origin", - "unique": false, - "columnNames": [ - "origin" - ], - "createSql": "CREATE INDEX IF NOT EXISTS `index_searchBooks_origin` ON `${TABLE_NAME}` (`origin`)" - } - ], - "foreignKeys": [ - { - "table": "book_sources", - "onDelete": "CASCADE", - "onUpdate": "NO ACTION", - "columns": [ - "origin" - ], - "referencedColumns": [ - "bookSourceUrl" - ] - } - ] - }, - { - "tableName": "search_keywords", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`word` TEXT NOT NULL, `usage` INTEGER NOT NULL, `lastUseTime` INTEGER NOT NULL, PRIMARY KEY(`word`))", - "fields": [ - { - "fieldPath": "word", - "columnName": "word", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "usage", - "columnName": "usage", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "lastUseTime", - "columnName": "lastUseTime", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "word" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_search_keywords_word", - "unique": true, - "columnNames": [ - "word" - ], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_search_keywords_word` ON `${TABLE_NAME}` (`word`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "cookies", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`url` TEXT NOT NULL, `cookie` TEXT NOT NULL, PRIMARY KEY(`url`))", - "fields": [ - { - "fieldPath": "url", - "columnName": "url", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "cookie", - "columnName": "cookie", - "affinity": "TEXT", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "url" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_cookies_url", - "unique": true, - "columnNames": [ - "url" - ], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_cookies_url` ON `${TABLE_NAME}` (`url`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "rssSources", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`sourceUrl` TEXT NOT NULL, `sourceName` TEXT NOT NULL, `sourceIcon` TEXT NOT NULL, `sourceGroup` TEXT, `sourceComment` TEXT, `enabled` INTEGER NOT NULL, `sortUrl` TEXT, `singleUrl` INTEGER NOT NULL, `articleStyle` INTEGER NOT NULL, `ruleArticles` TEXT, `ruleNextPage` TEXT, `ruleTitle` TEXT, `rulePubDate` TEXT, `ruleDescription` TEXT, `ruleImage` TEXT, `ruleLink` TEXT, `ruleContent` TEXT, `style` TEXT, `header` TEXT, `enableJs` INTEGER NOT NULL, `loadWithBaseUrl` INTEGER NOT NULL, `customOrder` INTEGER NOT NULL, PRIMARY KEY(`sourceUrl`))", - "fields": [ - { - "fieldPath": "sourceUrl", - "columnName": "sourceUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "sourceName", - "columnName": "sourceName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "sourceIcon", - "columnName": "sourceIcon", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "sourceGroup", - "columnName": "sourceGroup", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "sourceComment", - "columnName": "sourceComment", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "enabled", - "columnName": "enabled", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "sortUrl", - "columnName": "sortUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "singleUrl", - "columnName": "singleUrl", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "articleStyle", - "columnName": "articleStyle", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "ruleArticles", - "columnName": "ruleArticles", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleNextPage", - "columnName": "ruleNextPage", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleTitle", - "columnName": "ruleTitle", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "rulePubDate", - "columnName": "rulePubDate", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleDescription", - "columnName": "ruleDescription", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleImage", - "columnName": "ruleImage", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleLink", - "columnName": "ruleLink", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleContent", - "columnName": "ruleContent", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "style", - "columnName": "style", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "header", - "columnName": "header", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "enableJs", - "columnName": "enableJs", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "loadWithBaseUrl", - "columnName": "loadWithBaseUrl", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "customOrder", - "columnName": "customOrder", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "sourceUrl" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_rssSources_sourceUrl", - "unique": false, - "columnNames": [ - "sourceUrl" - ], - "createSql": "CREATE INDEX IF NOT EXISTS `index_rssSources_sourceUrl` ON `${TABLE_NAME}` (`sourceUrl`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "bookmarks", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`time` INTEGER NOT NULL, `bookName` TEXT NOT NULL, `bookAuthor` TEXT NOT NULL, `chapterIndex` INTEGER NOT NULL, `chapterPos` INTEGER NOT NULL, `chapterName` TEXT NOT NULL, `bookText` TEXT NOT NULL, `content` TEXT NOT NULL, PRIMARY KEY(`time`))", - "fields": [ - { - "fieldPath": "time", - "columnName": "time", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "bookName", - "columnName": "bookName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookAuthor", - "columnName": "bookAuthor", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "chapterIndex", - "columnName": "chapterIndex", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "chapterPos", - "columnName": "chapterPos", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "chapterName", - "columnName": "chapterName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookText", - "columnName": "bookText", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "content", - "columnName": "content", - "affinity": "TEXT", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "time" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_bookmarks_bookName_bookAuthor", - "unique": false, - "columnNames": [ - "bookName", - "bookAuthor" - ], - "createSql": "CREATE INDEX IF NOT EXISTS `index_bookmarks_bookName_bookAuthor` ON `${TABLE_NAME}` (`bookName`, `bookAuthor`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "rssArticles", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`origin` TEXT NOT NULL, `sort` TEXT NOT NULL, `title` TEXT NOT NULL, `order` INTEGER NOT NULL, `link` TEXT NOT NULL, `pubDate` TEXT, `description` TEXT, `content` TEXT, `image` TEXT, `read` INTEGER NOT NULL, `variable` TEXT, PRIMARY KEY(`origin`, `link`))", - "fields": [ - { - "fieldPath": "origin", - "columnName": "origin", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "sort", - "columnName": "sort", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "title", - "columnName": "title", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "order", - "columnName": "order", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "link", - "columnName": "link", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "pubDate", - "columnName": "pubDate", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "description", - "columnName": "description", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "content", - "columnName": "content", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "image", - "columnName": "image", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "read", - "columnName": "read", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "variable", - "columnName": "variable", - "affinity": "TEXT", - "notNull": false - } - ], - "primaryKey": { - "columnNames": [ - "origin", - "link" - ], - "autoGenerate": false - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "rssReadRecords", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`record` TEXT NOT NULL, `read` INTEGER NOT NULL, PRIMARY KEY(`record`))", - "fields": [ - { - "fieldPath": "record", - "columnName": "record", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "read", - "columnName": "read", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "record" - ], - "autoGenerate": false - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "rssStars", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`origin` TEXT NOT NULL, `sort` TEXT NOT NULL, `title` TEXT NOT NULL, `starTime` INTEGER NOT NULL, `link` TEXT NOT NULL, `pubDate` TEXT, `description` TEXT, `content` TEXT, `image` TEXT, `variable` TEXT, PRIMARY KEY(`origin`, `link`))", - "fields": [ - { - "fieldPath": "origin", - "columnName": "origin", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "sort", - "columnName": "sort", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "title", - "columnName": "title", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "starTime", - "columnName": "starTime", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "link", - "columnName": "link", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "pubDate", - "columnName": "pubDate", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "description", - "columnName": "description", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "content", - "columnName": "content", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "image", - "columnName": "image", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "variable", - "columnName": "variable", - "affinity": "TEXT", - "notNull": false - } - ], - "primaryKey": { - "columnNames": [ - "origin", - "link" - ], - "autoGenerate": false - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "txtTocRules", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER NOT NULL, `name` TEXT NOT NULL, `rule` TEXT NOT NULL, `serialNumber` INTEGER NOT NULL, `enable` INTEGER NOT NULL, PRIMARY KEY(`id`))", - "fields": [ - { - "fieldPath": "id", - "columnName": "id", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "rule", - "columnName": "rule", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "serialNumber", - "columnName": "serialNumber", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "enable", - "columnName": "enable", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "id" - ], - "autoGenerate": false - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "readRecord", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`deviceId` TEXT NOT NULL, `bookName` TEXT NOT NULL, `readTime` INTEGER NOT NULL, PRIMARY KEY(`deviceId`, `bookName`))", - "fields": [ - { - "fieldPath": "deviceId", - "columnName": "deviceId", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookName", - "columnName": "bookName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "readTime", - "columnName": "readTime", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "deviceId", - "bookName" - ], - "autoGenerate": false - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "httpTTS", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER NOT NULL, `name` TEXT NOT NULL, `url` TEXT NOT NULL, PRIMARY KEY(`id`))", - "fields": [ - { - "fieldPath": "id", - "columnName": "id", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "url", - "columnName": "url", - "affinity": "TEXT", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "id" - ], - "autoGenerate": false - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "caches", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`key` TEXT NOT NULL, `value` TEXT, `deadline` INTEGER NOT NULL, PRIMARY KEY(`key`))", - "fields": [ - { - "fieldPath": "key", - "columnName": "key", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "value", - "columnName": "value", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "deadline", - "columnName": "deadline", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "key" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_caches_key", - "unique": true, - "columnNames": [ - "key" - ], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_caches_key` ON `${TABLE_NAME}` (`key`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "ruleSubs", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER NOT NULL, `name` TEXT NOT NULL, `url` TEXT NOT NULL, `type` INTEGER NOT NULL, `customOrder` INTEGER NOT NULL, `autoUpdate` INTEGER NOT NULL, `update` INTEGER NOT NULL, PRIMARY KEY(`id`))", - "fields": [ - { - "fieldPath": "id", - "columnName": "id", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "url", - "columnName": "url", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "type", - "columnName": "type", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "customOrder", - "columnName": "customOrder", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "autoUpdate", - "columnName": "autoUpdate", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "update", - "columnName": "update", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "id" - ], - "autoGenerate": false - }, - "indices": [], - "foreignKeys": [] - } - ], - "views": [], - "setupQueries": [ - "CREATE TABLE IF NOT EXISTS room_master_table (id INTEGER PRIMARY KEY,identity_hash TEXT)", - "INSERT OR REPLACE INTO room_master_table (id,identity_hash) VALUES(42, '25948a8defe4d091514bb725b4db7683')" - ] - } -} \ No newline at end of file diff --git a/app/schemas/io.legado.app.data.AppDatabase/36.json b/app/schemas/io.legado.app.data.AppDatabase/36.json deleted file mode 100644 index d99c1b8fb..000000000 --- a/app/schemas/io.legado.app.data.AppDatabase/36.json +++ /dev/null @@ -1,1441 +0,0 @@ -{ - "formatVersion": 1, - "database": { - "version": 36, - "identityHash": "25948a8defe4d091514bb725b4db7683", - "entities": [ - { - "tableName": "books", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`bookUrl` TEXT NOT NULL, `tocUrl` TEXT NOT NULL, `origin` TEXT NOT NULL, `originName` TEXT NOT NULL, `name` TEXT NOT NULL, `author` TEXT NOT NULL, `kind` TEXT, `customTag` TEXT, `coverUrl` TEXT, `customCoverUrl` TEXT, `intro` TEXT, `customIntro` TEXT, `charset` TEXT, `type` INTEGER NOT NULL, `group` INTEGER NOT NULL, `latestChapterTitle` TEXT, `latestChapterTime` INTEGER NOT NULL, `lastCheckTime` INTEGER NOT NULL, `lastCheckCount` INTEGER NOT NULL, `totalChapterNum` INTEGER NOT NULL, `durChapterTitle` TEXT, `durChapterIndex` INTEGER NOT NULL, `durChapterPos` INTEGER NOT NULL, `durChapterTime` INTEGER NOT NULL, `wordCount` TEXT, `canUpdate` INTEGER NOT NULL, `order` INTEGER NOT NULL, `originOrder` INTEGER NOT NULL, `variable` TEXT, `readConfig` TEXT, PRIMARY KEY(`bookUrl`))", - "fields": [ - { - "fieldPath": "bookUrl", - "columnName": "bookUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "tocUrl", - "columnName": "tocUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "origin", - "columnName": "origin", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "originName", - "columnName": "originName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "author", - "columnName": "author", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "kind", - "columnName": "kind", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "customTag", - "columnName": "customTag", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "coverUrl", - "columnName": "coverUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "customCoverUrl", - "columnName": "customCoverUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "intro", - "columnName": "intro", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "customIntro", - "columnName": "customIntro", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "charset", - "columnName": "charset", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "type", - "columnName": "type", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "group", - "columnName": "group", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "latestChapterTitle", - "columnName": "latestChapterTitle", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "latestChapterTime", - "columnName": "latestChapterTime", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "lastCheckTime", - "columnName": "lastCheckTime", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "lastCheckCount", - "columnName": "lastCheckCount", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "totalChapterNum", - "columnName": "totalChapterNum", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "durChapterTitle", - "columnName": "durChapterTitle", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "durChapterIndex", - "columnName": "durChapterIndex", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "durChapterPos", - "columnName": "durChapterPos", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "durChapterTime", - "columnName": "durChapterTime", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "wordCount", - "columnName": "wordCount", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "canUpdate", - "columnName": "canUpdate", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "order", - "columnName": "order", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "originOrder", - "columnName": "originOrder", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "variable", - "columnName": "variable", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "readConfig", - "columnName": "readConfig", - "affinity": "TEXT", - "notNull": false - } - ], - "primaryKey": { - "columnNames": [ - "bookUrl" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_books_name_author", - "unique": true, - "columnNames": [ - "name", - "author" - ], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_books_name_author` ON `${TABLE_NAME}` (`name`, `author`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "book_groups", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`groupId` INTEGER NOT NULL, `groupName` TEXT NOT NULL, `cover` TEXT, `order` INTEGER NOT NULL, `show` INTEGER NOT NULL, PRIMARY KEY(`groupId`))", - "fields": [ - { - "fieldPath": "groupId", - "columnName": "groupId", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "groupName", - "columnName": "groupName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "cover", - "columnName": "cover", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "order", - "columnName": "order", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "show", - "columnName": "show", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "groupId" - ], - "autoGenerate": false - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "book_sources", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`bookSourceName` TEXT NOT NULL, `bookSourceGroup` TEXT, `bookSourceUrl` TEXT NOT NULL, `bookSourceType` INTEGER NOT NULL, `bookUrlPattern` TEXT, `concurrentRate` TEXT, `customOrder` INTEGER NOT NULL, `enabled` INTEGER NOT NULL, `enabledExplore` INTEGER NOT NULL, `header` TEXT, `loginUrl` TEXT, `loginUi` TEXT, `loginCheckJs` TEXT, `bookSourceComment` TEXT, `lastUpdateTime` INTEGER NOT NULL, `weight` INTEGER NOT NULL, `exploreUrl` TEXT, `ruleExplore` TEXT, `searchUrl` TEXT, `ruleSearch` TEXT, `ruleBookInfo` TEXT, `ruleToc` TEXT, `ruleContent` TEXT, PRIMARY KEY(`bookSourceUrl`))", - "fields": [ - { - "fieldPath": "bookSourceName", - "columnName": "bookSourceName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookSourceGroup", - "columnName": "bookSourceGroup", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "bookSourceUrl", - "columnName": "bookSourceUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookSourceType", - "columnName": "bookSourceType", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "bookUrlPattern", - "columnName": "bookUrlPattern", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "concurrentRate", - "columnName": "concurrentRate", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "customOrder", - "columnName": "customOrder", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "enabled", - "columnName": "enabled", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "enabledExplore", - "columnName": "enabledExplore", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "header", - "columnName": "header", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "loginUrl", - "columnName": "loginUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "loginUi", - "columnName": "loginUi", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "loginCheckJs", - "columnName": "loginCheckJs", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "bookSourceComment", - "columnName": "bookSourceComment", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "lastUpdateTime", - "columnName": "lastUpdateTime", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "weight", - "columnName": "weight", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "exploreUrl", - "columnName": "exploreUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleExplore", - "columnName": "ruleExplore", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "searchUrl", - "columnName": "searchUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleSearch", - "columnName": "ruleSearch", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleBookInfo", - "columnName": "ruleBookInfo", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleToc", - "columnName": "ruleToc", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleContent", - "columnName": "ruleContent", - "affinity": "TEXT", - "notNull": false - } - ], - "primaryKey": { - "columnNames": [ - "bookSourceUrl" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_book_sources_bookSourceUrl", - "unique": false, - "columnNames": [ - "bookSourceUrl" - ], - "createSql": "CREATE INDEX IF NOT EXISTS `index_book_sources_bookSourceUrl` ON `${TABLE_NAME}` (`bookSourceUrl`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "chapters", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`url` TEXT NOT NULL, `title` TEXT NOT NULL, `baseUrl` TEXT NOT NULL, `bookUrl` TEXT NOT NULL, `index` INTEGER NOT NULL, `resourceUrl` TEXT, `tag` TEXT, `start` INTEGER, `end` INTEGER, `startFragmentId` TEXT, `endFragmentId` TEXT, `variable` TEXT, PRIMARY KEY(`url`, `bookUrl`), FOREIGN KEY(`bookUrl`) REFERENCES `books`(`bookUrl`) ON UPDATE NO ACTION ON DELETE CASCADE )", - "fields": [ - { - "fieldPath": "url", - "columnName": "url", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "title", - "columnName": "title", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "baseUrl", - "columnName": "baseUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookUrl", - "columnName": "bookUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "index", - "columnName": "index", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "resourceUrl", - "columnName": "resourceUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "tag", - "columnName": "tag", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "start", - "columnName": "start", - "affinity": "INTEGER", - "notNull": false - }, - { - "fieldPath": "end", - "columnName": "end", - "affinity": "INTEGER", - "notNull": false - }, - { - "fieldPath": "startFragmentId", - "columnName": "startFragmentId", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "endFragmentId", - "columnName": "endFragmentId", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "variable", - "columnName": "variable", - "affinity": "TEXT", - "notNull": false - } - ], - "primaryKey": { - "columnNames": [ - "url", - "bookUrl" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_chapters_bookUrl", - "unique": false, - "columnNames": [ - "bookUrl" - ], - "createSql": "CREATE INDEX IF NOT EXISTS `index_chapters_bookUrl` ON `${TABLE_NAME}` (`bookUrl`)" - }, - { - "name": "index_chapters_bookUrl_index", - "unique": true, - "columnNames": [ - "bookUrl", - "index" - ], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_chapters_bookUrl_index` ON `${TABLE_NAME}` (`bookUrl`, `index`)" - } - ], - "foreignKeys": [ - { - "table": "books", - "onDelete": "CASCADE", - "onUpdate": "NO ACTION", - "columns": [ - "bookUrl" - ], - "referencedColumns": [ - "bookUrl" - ] - } - ] - }, - { - "tableName": "replace_rules", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, `name` TEXT NOT NULL, `group` TEXT, `pattern` TEXT NOT NULL, `replacement` TEXT NOT NULL, `scope` TEXT, `isEnabled` INTEGER NOT NULL, `isRegex` INTEGER NOT NULL, `sortOrder` INTEGER NOT NULL)", - "fields": [ - { - "fieldPath": "id", - "columnName": "id", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "group", - "columnName": "group", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "pattern", - "columnName": "pattern", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "replacement", - "columnName": "replacement", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "scope", - "columnName": "scope", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "isEnabled", - "columnName": "isEnabled", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "isRegex", - "columnName": "isRegex", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "order", - "columnName": "sortOrder", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "id" - ], - "autoGenerate": true - }, - "indices": [ - { - "name": "index_replace_rules_id", - "unique": false, - "columnNames": [ - "id" - ], - "createSql": "CREATE INDEX IF NOT EXISTS `index_replace_rules_id` ON `${TABLE_NAME}` (`id`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "searchBooks", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`bookUrl` TEXT NOT NULL, `origin` TEXT NOT NULL, `originName` TEXT NOT NULL, `type` INTEGER NOT NULL, `name` TEXT NOT NULL, `author` TEXT NOT NULL, `kind` TEXT, `coverUrl` TEXT, `intro` TEXT, `wordCount` TEXT, `latestChapterTitle` TEXT, `tocUrl` TEXT NOT NULL, `time` INTEGER NOT NULL, `variable` TEXT, `originOrder` INTEGER NOT NULL, PRIMARY KEY(`bookUrl`), FOREIGN KEY(`origin`) REFERENCES `book_sources`(`bookSourceUrl`) ON UPDATE NO ACTION ON DELETE CASCADE )", - "fields": [ - { - "fieldPath": "bookUrl", - "columnName": "bookUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "origin", - "columnName": "origin", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "originName", - "columnName": "originName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "type", - "columnName": "type", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "author", - "columnName": "author", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "kind", - "columnName": "kind", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "coverUrl", - "columnName": "coverUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "intro", - "columnName": "intro", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "wordCount", - "columnName": "wordCount", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "latestChapterTitle", - "columnName": "latestChapterTitle", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "tocUrl", - "columnName": "tocUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "time", - "columnName": "time", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "variable", - "columnName": "variable", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "originOrder", - "columnName": "originOrder", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "bookUrl" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_searchBooks_bookUrl", - "unique": true, - "columnNames": [ - "bookUrl" - ], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_searchBooks_bookUrl` ON `${TABLE_NAME}` (`bookUrl`)" - }, - { - "name": "index_searchBooks_origin", - "unique": false, - "columnNames": [ - "origin" - ], - "createSql": "CREATE INDEX IF NOT EXISTS `index_searchBooks_origin` ON `${TABLE_NAME}` (`origin`)" - } - ], - "foreignKeys": [ - { - "table": "book_sources", - "onDelete": "CASCADE", - "onUpdate": "NO ACTION", - "columns": [ - "origin" - ], - "referencedColumns": [ - "bookSourceUrl" - ] - } - ] - }, - { - "tableName": "search_keywords", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`word` TEXT NOT NULL, `usage` INTEGER NOT NULL, `lastUseTime` INTEGER NOT NULL, PRIMARY KEY(`word`))", - "fields": [ - { - "fieldPath": "word", - "columnName": "word", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "usage", - "columnName": "usage", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "lastUseTime", - "columnName": "lastUseTime", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "word" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_search_keywords_word", - "unique": true, - "columnNames": [ - "word" - ], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_search_keywords_word` ON `${TABLE_NAME}` (`word`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "cookies", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`url` TEXT NOT NULL, `cookie` TEXT NOT NULL, PRIMARY KEY(`url`))", - "fields": [ - { - "fieldPath": "url", - "columnName": "url", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "cookie", - "columnName": "cookie", - "affinity": "TEXT", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "url" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_cookies_url", - "unique": true, - "columnNames": [ - "url" - ], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_cookies_url` ON `${TABLE_NAME}` (`url`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "rssSources", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`sourceUrl` TEXT NOT NULL, `sourceName` TEXT NOT NULL, `sourceIcon` TEXT NOT NULL, `sourceGroup` TEXT, `sourceComment` TEXT, `enabled` INTEGER NOT NULL, `sortUrl` TEXT, `singleUrl` INTEGER NOT NULL, `articleStyle` INTEGER NOT NULL, `ruleArticles` TEXT, `ruleNextPage` TEXT, `ruleTitle` TEXT, `rulePubDate` TEXT, `ruleDescription` TEXT, `ruleImage` TEXT, `ruleLink` TEXT, `ruleContent` TEXT, `style` TEXT, `header` TEXT, `enableJs` INTEGER NOT NULL, `loadWithBaseUrl` INTEGER NOT NULL, `customOrder` INTEGER NOT NULL, PRIMARY KEY(`sourceUrl`))", - "fields": [ - { - "fieldPath": "sourceUrl", - "columnName": "sourceUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "sourceName", - "columnName": "sourceName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "sourceIcon", - "columnName": "sourceIcon", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "sourceGroup", - "columnName": "sourceGroup", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "sourceComment", - "columnName": "sourceComment", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "enabled", - "columnName": "enabled", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "sortUrl", - "columnName": "sortUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "singleUrl", - "columnName": "singleUrl", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "articleStyle", - "columnName": "articleStyle", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "ruleArticles", - "columnName": "ruleArticles", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleNextPage", - "columnName": "ruleNextPage", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleTitle", - "columnName": "ruleTitle", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "rulePubDate", - "columnName": "rulePubDate", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleDescription", - "columnName": "ruleDescription", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleImage", - "columnName": "ruleImage", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleLink", - "columnName": "ruleLink", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleContent", - "columnName": "ruleContent", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "style", - "columnName": "style", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "header", - "columnName": "header", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "enableJs", - "columnName": "enableJs", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "loadWithBaseUrl", - "columnName": "loadWithBaseUrl", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "customOrder", - "columnName": "customOrder", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "sourceUrl" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_rssSources_sourceUrl", - "unique": false, - "columnNames": [ - "sourceUrl" - ], - "createSql": "CREATE INDEX IF NOT EXISTS `index_rssSources_sourceUrl` ON `${TABLE_NAME}` (`sourceUrl`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "bookmarks", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`time` INTEGER NOT NULL, `bookName` TEXT NOT NULL, `bookAuthor` TEXT NOT NULL, `chapterIndex` INTEGER NOT NULL, `chapterPos` INTEGER NOT NULL, `chapterName` TEXT NOT NULL, `bookText` TEXT NOT NULL, `content` TEXT NOT NULL, PRIMARY KEY(`time`))", - "fields": [ - { - "fieldPath": "time", - "columnName": "time", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "bookName", - "columnName": "bookName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookAuthor", - "columnName": "bookAuthor", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "chapterIndex", - "columnName": "chapterIndex", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "chapterPos", - "columnName": "chapterPos", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "chapterName", - "columnName": "chapterName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookText", - "columnName": "bookText", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "content", - "columnName": "content", - "affinity": "TEXT", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "time" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_bookmarks_bookName_bookAuthor", - "unique": false, - "columnNames": [ - "bookName", - "bookAuthor" - ], - "createSql": "CREATE INDEX IF NOT EXISTS `index_bookmarks_bookName_bookAuthor` ON `${TABLE_NAME}` (`bookName`, `bookAuthor`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "rssArticles", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`origin` TEXT NOT NULL, `sort` TEXT NOT NULL, `title` TEXT NOT NULL, `order` INTEGER NOT NULL, `link` TEXT NOT NULL, `pubDate` TEXT, `description` TEXT, `content` TEXT, `image` TEXT, `read` INTEGER NOT NULL, `variable` TEXT, PRIMARY KEY(`origin`, `link`))", - "fields": [ - { - "fieldPath": "origin", - "columnName": "origin", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "sort", - "columnName": "sort", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "title", - "columnName": "title", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "order", - "columnName": "order", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "link", - "columnName": "link", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "pubDate", - "columnName": "pubDate", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "description", - "columnName": "description", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "content", - "columnName": "content", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "image", - "columnName": "image", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "read", - "columnName": "read", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "variable", - "columnName": "variable", - "affinity": "TEXT", - "notNull": false - } - ], - "primaryKey": { - "columnNames": [ - "origin", - "link" - ], - "autoGenerate": false - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "rssReadRecords", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`record` TEXT NOT NULL, `read` INTEGER NOT NULL, PRIMARY KEY(`record`))", - "fields": [ - { - "fieldPath": "record", - "columnName": "record", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "read", - "columnName": "read", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "record" - ], - "autoGenerate": false - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "rssStars", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`origin` TEXT NOT NULL, `sort` TEXT NOT NULL, `title` TEXT NOT NULL, `starTime` INTEGER NOT NULL, `link` TEXT NOT NULL, `pubDate` TEXT, `description` TEXT, `content` TEXT, `image` TEXT, `variable` TEXT, PRIMARY KEY(`origin`, `link`))", - "fields": [ - { - "fieldPath": "origin", - "columnName": "origin", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "sort", - "columnName": "sort", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "title", - "columnName": "title", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "starTime", - "columnName": "starTime", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "link", - "columnName": "link", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "pubDate", - "columnName": "pubDate", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "description", - "columnName": "description", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "content", - "columnName": "content", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "image", - "columnName": "image", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "variable", - "columnName": "variable", - "affinity": "TEXT", - "notNull": false - } - ], - "primaryKey": { - "columnNames": [ - "origin", - "link" - ], - "autoGenerate": false - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "txtTocRules", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER NOT NULL, `name` TEXT NOT NULL, `rule` TEXT NOT NULL, `serialNumber` INTEGER NOT NULL, `enable` INTEGER NOT NULL, PRIMARY KEY(`id`))", - "fields": [ - { - "fieldPath": "id", - "columnName": "id", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "rule", - "columnName": "rule", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "serialNumber", - "columnName": "serialNumber", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "enable", - "columnName": "enable", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "id" - ], - "autoGenerate": false - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "readRecord", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`deviceId` TEXT NOT NULL, `bookName` TEXT NOT NULL, `readTime` INTEGER NOT NULL, PRIMARY KEY(`deviceId`, `bookName`))", - "fields": [ - { - "fieldPath": "deviceId", - "columnName": "deviceId", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookName", - "columnName": "bookName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "readTime", - "columnName": "readTime", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "deviceId", - "bookName" - ], - "autoGenerate": false - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "httpTTS", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER NOT NULL, `name` TEXT NOT NULL, `url` TEXT NOT NULL, PRIMARY KEY(`id`))", - "fields": [ - { - "fieldPath": "id", - "columnName": "id", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "url", - "columnName": "url", - "affinity": "TEXT", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "id" - ], - "autoGenerate": false - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "caches", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`key` TEXT NOT NULL, `value` TEXT, `deadline` INTEGER NOT NULL, PRIMARY KEY(`key`))", - "fields": [ - { - "fieldPath": "key", - "columnName": "key", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "value", - "columnName": "value", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "deadline", - "columnName": "deadline", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "key" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_caches_key", - "unique": true, - "columnNames": [ - "key" - ], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_caches_key` ON `${TABLE_NAME}` (`key`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "ruleSubs", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER NOT NULL, `name` TEXT NOT NULL, `url` TEXT NOT NULL, `type` INTEGER NOT NULL, `customOrder` INTEGER NOT NULL, `autoUpdate` INTEGER NOT NULL, `update` INTEGER NOT NULL, PRIMARY KEY(`id`))", - "fields": [ - { - "fieldPath": "id", - "columnName": "id", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "url", - "columnName": "url", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "type", - "columnName": "type", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "customOrder", - "columnName": "customOrder", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "autoUpdate", - "columnName": "autoUpdate", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "update", - "columnName": "update", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "id" - ], - "autoGenerate": false - }, - "indices": [], - "foreignKeys": [] - } - ], - "views": [], - "setupQueries": [ - "CREATE TABLE IF NOT EXISTS room_master_table (id INTEGER PRIMARY KEY,identity_hash TEXT)", - "INSERT OR REPLACE INTO room_master_table (id,identity_hash) VALUES(42, '25948a8defe4d091514bb725b4db7683')" - ] - } -} \ No newline at end of file diff --git a/app/schemas/io.legado.app.data.AppDatabase/37.json b/app/schemas/io.legado.app.data.AppDatabase/37.json deleted file mode 100644 index c5c21ec88..000000000 --- a/app/schemas/io.legado.app.data.AppDatabase/37.json +++ /dev/null @@ -1,1459 +0,0 @@ -{ - "formatVersion": 1, - "database": { - "version": 37, - "identityHash": "11ebd6a72eb3f9ccd6ca46bc5535bca5", - "entities": [ - { - "tableName": "books", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`bookUrl` TEXT NOT NULL, `tocUrl` TEXT NOT NULL, `origin` TEXT NOT NULL, `originName` TEXT NOT NULL, `name` TEXT NOT NULL, `author` TEXT NOT NULL, `kind` TEXT, `customTag` TEXT, `coverUrl` TEXT, `customCoverUrl` TEXT, `intro` TEXT, `customIntro` TEXT, `charset` TEXT, `type` INTEGER NOT NULL, `group` INTEGER NOT NULL, `latestChapterTitle` TEXT, `latestChapterTime` INTEGER NOT NULL, `lastCheckTime` INTEGER NOT NULL, `lastCheckCount` INTEGER NOT NULL, `totalChapterNum` INTEGER NOT NULL, `durChapterTitle` TEXT, `durChapterIndex` INTEGER NOT NULL, `durChapterPos` INTEGER NOT NULL, `durChapterTime` INTEGER NOT NULL, `wordCount` TEXT, `canUpdate` INTEGER NOT NULL, `order` INTEGER NOT NULL, `originOrder` INTEGER NOT NULL, `variable` TEXT, `readConfig` TEXT, PRIMARY KEY(`bookUrl`))", - "fields": [ - { - "fieldPath": "bookUrl", - "columnName": "bookUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "tocUrl", - "columnName": "tocUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "origin", - "columnName": "origin", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "originName", - "columnName": "originName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "author", - "columnName": "author", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "kind", - "columnName": "kind", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "customTag", - "columnName": "customTag", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "coverUrl", - "columnName": "coverUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "customCoverUrl", - "columnName": "customCoverUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "intro", - "columnName": "intro", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "customIntro", - "columnName": "customIntro", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "charset", - "columnName": "charset", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "type", - "columnName": "type", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "group", - "columnName": "group", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "latestChapterTitle", - "columnName": "latestChapterTitle", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "latestChapterTime", - "columnName": "latestChapterTime", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "lastCheckTime", - "columnName": "lastCheckTime", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "lastCheckCount", - "columnName": "lastCheckCount", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "totalChapterNum", - "columnName": "totalChapterNum", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "durChapterTitle", - "columnName": "durChapterTitle", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "durChapterIndex", - "columnName": "durChapterIndex", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "durChapterPos", - "columnName": "durChapterPos", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "durChapterTime", - "columnName": "durChapterTime", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "wordCount", - "columnName": "wordCount", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "canUpdate", - "columnName": "canUpdate", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "order", - "columnName": "order", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "originOrder", - "columnName": "originOrder", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "variable", - "columnName": "variable", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "readConfig", - "columnName": "readConfig", - "affinity": "TEXT", - "notNull": false - } - ], - "primaryKey": { - "columnNames": [ - "bookUrl" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_books_name_author", - "unique": true, - "columnNames": [ - "name", - "author" - ], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_books_name_author` ON `${TABLE_NAME}` (`name`, `author`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "book_groups", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`groupId` INTEGER NOT NULL, `groupName` TEXT NOT NULL, `cover` TEXT, `order` INTEGER NOT NULL, `show` INTEGER NOT NULL, PRIMARY KEY(`groupId`))", - "fields": [ - { - "fieldPath": "groupId", - "columnName": "groupId", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "groupName", - "columnName": "groupName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "cover", - "columnName": "cover", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "order", - "columnName": "order", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "show", - "columnName": "show", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "groupId" - ], - "autoGenerate": false - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "book_sources", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`bookSourceName` TEXT NOT NULL, `bookSourceGroup` TEXT, `bookSourceUrl` TEXT NOT NULL, `bookSourceType` INTEGER NOT NULL, `bookUrlPattern` TEXT, `concurrentRate` TEXT, `customOrder` INTEGER NOT NULL, `enabled` INTEGER NOT NULL, `enabledExplore` INTEGER NOT NULL, `header` TEXT, `loginUrl` TEXT, `loginUi` TEXT, `loginCheckJs` TEXT, `bookSourceComment` TEXT, `lastUpdateTime` INTEGER NOT NULL, `weight` INTEGER NOT NULL, `exploreUrl` TEXT, `ruleExplore` TEXT, `searchUrl` TEXT, `ruleSearch` TEXT, `ruleBookInfo` TEXT, `ruleToc` TEXT, `ruleContent` TEXT, PRIMARY KEY(`bookSourceUrl`))", - "fields": [ - { - "fieldPath": "bookSourceName", - "columnName": "bookSourceName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookSourceGroup", - "columnName": "bookSourceGroup", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "bookSourceUrl", - "columnName": "bookSourceUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookSourceType", - "columnName": "bookSourceType", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "bookUrlPattern", - "columnName": "bookUrlPattern", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "concurrentRate", - "columnName": "concurrentRate", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "customOrder", - "columnName": "customOrder", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "enabled", - "columnName": "enabled", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "enabledExplore", - "columnName": "enabledExplore", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "header", - "columnName": "header", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "loginUrl", - "columnName": "loginUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "loginUi", - "columnName": "loginUi", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "loginCheckJs", - "columnName": "loginCheckJs", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "bookSourceComment", - "columnName": "bookSourceComment", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "lastUpdateTime", - "columnName": "lastUpdateTime", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "weight", - "columnName": "weight", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "exploreUrl", - "columnName": "exploreUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleExplore", - "columnName": "ruleExplore", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "searchUrl", - "columnName": "searchUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleSearch", - "columnName": "ruleSearch", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleBookInfo", - "columnName": "ruleBookInfo", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleToc", - "columnName": "ruleToc", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleContent", - "columnName": "ruleContent", - "affinity": "TEXT", - "notNull": false - } - ], - "primaryKey": { - "columnNames": [ - "bookSourceUrl" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_book_sources_bookSourceUrl", - "unique": false, - "columnNames": [ - "bookSourceUrl" - ], - "createSql": "CREATE INDEX IF NOT EXISTS `index_book_sources_bookSourceUrl` ON `${TABLE_NAME}` (`bookSourceUrl`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "chapters", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`url` TEXT NOT NULL, `title` TEXT NOT NULL, `baseUrl` TEXT NOT NULL, `bookUrl` TEXT NOT NULL, `index` INTEGER NOT NULL, `resourceUrl` TEXT, `tag` TEXT, `start` INTEGER, `end` INTEGER, `startFragmentId` TEXT, `endFragmentId` TEXT, `variable` TEXT, PRIMARY KEY(`url`, `bookUrl`), FOREIGN KEY(`bookUrl`) REFERENCES `books`(`bookUrl`) ON UPDATE NO ACTION ON DELETE CASCADE )", - "fields": [ - { - "fieldPath": "url", - "columnName": "url", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "title", - "columnName": "title", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "baseUrl", - "columnName": "baseUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookUrl", - "columnName": "bookUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "index", - "columnName": "index", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "resourceUrl", - "columnName": "resourceUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "tag", - "columnName": "tag", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "start", - "columnName": "start", - "affinity": "INTEGER", - "notNull": false - }, - { - "fieldPath": "end", - "columnName": "end", - "affinity": "INTEGER", - "notNull": false - }, - { - "fieldPath": "startFragmentId", - "columnName": "startFragmentId", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "endFragmentId", - "columnName": "endFragmentId", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "variable", - "columnName": "variable", - "affinity": "TEXT", - "notNull": false - } - ], - "primaryKey": { - "columnNames": [ - "url", - "bookUrl" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_chapters_bookUrl", - "unique": false, - "columnNames": [ - "bookUrl" - ], - "createSql": "CREATE INDEX IF NOT EXISTS `index_chapters_bookUrl` ON `${TABLE_NAME}` (`bookUrl`)" - }, - { - "name": "index_chapters_bookUrl_index", - "unique": true, - "columnNames": [ - "bookUrl", - "index" - ], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_chapters_bookUrl_index` ON `${TABLE_NAME}` (`bookUrl`, `index`)" - } - ], - "foreignKeys": [ - { - "table": "books", - "onDelete": "CASCADE", - "onUpdate": "NO ACTION", - "columns": [ - "bookUrl" - ], - "referencedColumns": [ - "bookUrl" - ] - } - ] - }, - { - "tableName": "replace_rules", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, `name` TEXT NOT NULL, `group` TEXT, `pattern` TEXT NOT NULL, `replacement` TEXT NOT NULL, `scope` TEXT, `isEnabled` INTEGER NOT NULL, `isRegex` INTEGER NOT NULL, `sortOrder` INTEGER NOT NULL)", - "fields": [ - { - "fieldPath": "id", - "columnName": "id", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "group", - "columnName": "group", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "pattern", - "columnName": "pattern", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "replacement", - "columnName": "replacement", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "scope", - "columnName": "scope", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "isEnabled", - "columnName": "isEnabled", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "isRegex", - "columnName": "isRegex", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "order", - "columnName": "sortOrder", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "id" - ], - "autoGenerate": true - }, - "indices": [ - { - "name": "index_replace_rules_id", - "unique": false, - "columnNames": [ - "id" - ], - "createSql": "CREATE INDEX IF NOT EXISTS `index_replace_rules_id` ON `${TABLE_NAME}` (`id`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "searchBooks", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`bookUrl` TEXT NOT NULL, `origin` TEXT NOT NULL, `originName` TEXT NOT NULL, `type` INTEGER NOT NULL, `name` TEXT NOT NULL, `author` TEXT NOT NULL, `kind` TEXT, `coverUrl` TEXT, `intro` TEXT, `wordCount` TEXT, `latestChapterTitle` TEXT, `tocUrl` TEXT NOT NULL, `time` INTEGER NOT NULL, `variable` TEXT, `originOrder` INTEGER NOT NULL, PRIMARY KEY(`bookUrl`), FOREIGN KEY(`origin`) REFERENCES `book_sources`(`bookSourceUrl`) ON UPDATE NO ACTION ON DELETE CASCADE )", - "fields": [ - { - "fieldPath": "bookUrl", - "columnName": "bookUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "origin", - "columnName": "origin", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "originName", - "columnName": "originName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "type", - "columnName": "type", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "author", - "columnName": "author", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "kind", - "columnName": "kind", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "coverUrl", - "columnName": "coverUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "intro", - "columnName": "intro", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "wordCount", - "columnName": "wordCount", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "latestChapterTitle", - "columnName": "latestChapterTitle", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "tocUrl", - "columnName": "tocUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "time", - "columnName": "time", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "variable", - "columnName": "variable", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "originOrder", - "columnName": "originOrder", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "bookUrl" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_searchBooks_bookUrl", - "unique": true, - "columnNames": [ - "bookUrl" - ], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_searchBooks_bookUrl` ON `${TABLE_NAME}` (`bookUrl`)" - }, - { - "name": "index_searchBooks_origin", - "unique": false, - "columnNames": [ - "origin" - ], - "createSql": "CREATE INDEX IF NOT EXISTS `index_searchBooks_origin` ON `${TABLE_NAME}` (`origin`)" - } - ], - "foreignKeys": [ - { - "table": "book_sources", - "onDelete": "CASCADE", - "onUpdate": "NO ACTION", - "columns": [ - "origin" - ], - "referencedColumns": [ - "bookSourceUrl" - ] - } - ] - }, - { - "tableName": "search_keywords", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`word` TEXT NOT NULL, `usage` INTEGER NOT NULL, `lastUseTime` INTEGER NOT NULL, PRIMARY KEY(`word`))", - "fields": [ - { - "fieldPath": "word", - "columnName": "word", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "usage", - "columnName": "usage", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "lastUseTime", - "columnName": "lastUseTime", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "word" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_search_keywords_word", - "unique": true, - "columnNames": [ - "word" - ], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_search_keywords_word` ON `${TABLE_NAME}` (`word`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "cookies", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`url` TEXT NOT NULL, `cookie` TEXT NOT NULL, PRIMARY KEY(`url`))", - "fields": [ - { - "fieldPath": "url", - "columnName": "url", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "cookie", - "columnName": "cookie", - "affinity": "TEXT", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "url" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_cookies_url", - "unique": true, - "columnNames": [ - "url" - ], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_cookies_url` ON `${TABLE_NAME}` (`url`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "rssSources", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`sourceUrl` TEXT NOT NULL, `sourceName` TEXT NOT NULL, `sourceIcon` TEXT NOT NULL, `sourceGroup` TEXT, `sourceComment` TEXT, `enabled` INTEGER NOT NULL, `header` TEXT, `loginUrl` TEXT, `loginUi` TEXT, `loginCheckJs` TEXT, `sortUrl` TEXT, `singleUrl` INTEGER NOT NULL, `articleStyle` INTEGER NOT NULL, `ruleArticles` TEXT, `ruleNextPage` TEXT, `ruleTitle` TEXT, `rulePubDate` TEXT, `ruleDescription` TEXT, `ruleImage` TEXT, `ruleLink` TEXT, `ruleContent` TEXT, `style` TEXT, `enableJs` INTEGER NOT NULL, `loadWithBaseUrl` INTEGER NOT NULL, `customOrder` INTEGER NOT NULL, PRIMARY KEY(`sourceUrl`))", - "fields": [ - { - "fieldPath": "sourceUrl", - "columnName": "sourceUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "sourceName", - "columnName": "sourceName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "sourceIcon", - "columnName": "sourceIcon", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "sourceGroup", - "columnName": "sourceGroup", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "sourceComment", - "columnName": "sourceComment", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "enabled", - "columnName": "enabled", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "header", - "columnName": "header", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "loginUrl", - "columnName": "loginUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "loginUi", - "columnName": "loginUi", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "loginCheckJs", - "columnName": "loginCheckJs", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "sortUrl", - "columnName": "sortUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "singleUrl", - "columnName": "singleUrl", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "articleStyle", - "columnName": "articleStyle", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "ruleArticles", - "columnName": "ruleArticles", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleNextPage", - "columnName": "ruleNextPage", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleTitle", - "columnName": "ruleTitle", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "rulePubDate", - "columnName": "rulePubDate", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleDescription", - "columnName": "ruleDescription", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleImage", - "columnName": "ruleImage", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleLink", - "columnName": "ruleLink", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleContent", - "columnName": "ruleContent", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "style", - "columnName": "style", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "enableJs", - "columnName": "enableJs", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "loadWithBaseUrl", - "columnName": "loadWithBaseUrl", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "customOrder", - "columnName": "customOrder", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "sourceUrl" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_rssSources_sourceUrl", - "unique": false, - "columnNames": [ - "sourceUrl" - ], - "createSql": "CREATE INDEX IF NOT EXISTS `index_rssSources_sourceUrl` ON `${TABLE_NAME}` (`sourceUrl`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "bookmarks", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`time` INTEGER NOT NULL, `bookName` TEXT NOT NULL, `bookAuthor` TEXT NOT NULL, `chapterIndex` INTEGER NOT NULL, `chapterPos` INTEGER NOT NULL, `chapterName` TEXT NOT NULL, `bookText` TEXT NOT NULL, `content` TEXT NOT NULL, PRIMARY KEY(`time`))", - "fields": [ - { - "fieldPath": "time", - "columnName": "time", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "bookName", - "columnName": "bookName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookAuthor", - "columnName": "bookAuthor", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "chapterIndex", - "columnName": "chapterIndex", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "chapterPos", - "columnName": "chapterPos", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "chapterName", - "columnName": "chapterName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookText", - "columnName": "bookText", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "content", - "columnName": "content", - "affinity": "TEXT", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "time" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_bookmarks_bookName_bookAuthor", - "unique": false, - "columnNames": [ - "bookName", - "bookAuthor" - ], - "createSql": "CREATE INDEX IF NOT EXISTS `index_bookmarks_bookName_bookAuthor` ON `${TABLE_NAME}` (`bookName`, `bookAuthor`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "rssArticles", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`origin` TEXT NOT NULL, `sort` TEXT NOT NULL, `title` TEXT NOT NULL, `order` INTEGER NOT NULL, `link` TEXT NOT NULL, `pubDate` TEXT, `description` TEXT, `content` TEXT, `image` TEXT, `read` INTEGER NOT NULL, `variable` TEXT, PRIMARY KEY(`origin`, `link`))", - "fields": [ - { - "fieldPath": "origin", - "columnName": "origin", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "sort", - "columnName": "sort", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "title", - "columnName": "title", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "order", - "columnName": "order", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "link", - "columnName": "link", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "pubDate", - "columnName": "pubDate", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "description", - "columnName": "description", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "content", - "columnName": "content", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "image", - "columnName": "image", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "read", - "columnName": "read", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "variable", - "columnName": "variable", - "affinity": "TEXT", - "notNull": false - } - ], - "primaryKey": { - "columnNames": [ - "origin", - "link" - ], - "autoGenerate": false - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "rssReadRecords", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`record` TEXT NOT NULL, `read` INTEGER NOT NULL, PRIMARY KEY(`record`))", - "fields": [ - { - "fieldPath": "record", - "columnName": "record", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "read", - "columnName": "read", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "record" - ], - "autoGenerate": false - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "rssStars", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`origin` TEXT NOT NULL, `sort` TEXT NOT NULL, `title` TEXT NOT NULL, `starTime` INTEGER NOT NULL, `link` TEXT NOT NULL, `pubDate` TEXT, `description` TEXT, `content` TEXT, `image` TEXT, `variable` TEXT, PRIMARY KEY(`origin`, `link`))", - "fields": [ - { - "fieldPath": "origin", - "columnName": "origin", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "sort", - "columnName": "sort", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "title", - "columnName": "title", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "starTime", - "columnName": "starTime", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "link", - "columnName": "link", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "pubDate", - "columnName": "pubDate", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "description", - "columnName": "description", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "content", - "columnName": "content", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "image", - "columnName": "image", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "variable", - "columnName": "variable", - "affinity": "TEXT", - "notNull": false - } - ], - "primaryKey": { - "columnNames": [ - "origin", - "link" - ], - "autoGenerate": false - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "txtTocRules", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER NOT NULL, `name` TEXT NOT NULL, `rule` TEXT NOT NULL, `serialNumber` INTEGER NOT NULL, `enable` INTEGER NOT NULL, PRIMARY KEY(`id`))", - "fields": [ - { - "fieldPath": "id", - "columnName": "id", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "rule", - "columnName": "rule", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "serialNumber", - "columnName": "serialNumber", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "enable", - "columnName": "enable", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "id" - ], - "autoGenerate": false - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "readRecord", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`deviceId` TEXT NOT NULL, `bookName` TEXT NOT NULL, `readTime` INTEGER NOT NULL, PRIMARY KEY(`deviceId`, `bookName`))", - "fields": [ - { - "fieldPath": "deviceId", - "columnName": "deviceId", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookName", - "columnName": "bookName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "readTime", - "columnName": "readTime", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "deviceId", - "bookName" - ], - "autoGenerate": false - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "httpTTS", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER NOT NULL, `name` TEXT NOT NULL, `url` TEXT NOT NULL, PRIMARY KEY(`id`))", - "fields": [ - { - "fieldPath": "id", - "columnName": "id", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "url", - "columnName": "url", - "affinity": "TEXT", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "id" - ], - "autoGenerate": false - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "caches", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`key` TEXT NOT NULL, `value` TEXT, `deadline` INTEGER NOT NULL, PRIMARY KEY(`key`))", - "fields": [ - { - "fieldPath": "key", - "columnName": "key", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "value", - "columnName": "value", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "deadline", - "columnName": "deadline", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "key" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_caches_key", - "unique": true, - "columnNames": [ - "key" - ], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_caches_key` ON `${TABLE_NAME}` (`key`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "ruleSubs", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER NOT NULL, `name` TEXT NOT NULL, `url` TEXT NOT NULL, `type` INTEGER NOT NULL, `customOrder` INTEGER NOT NULL, `autoUpdate` INTEGER NOT NULL, `update` INTEGER NOT NULL, PRIMARY KEY(`id`))", - "fields": [ - { - "fieldPath": "id", - "columnName": "id", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "url", - "columnName": "url", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "type", - "columnName": "type", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "customOrder", - "columnName": "customOrder", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "autoUpdate", - "columnName": "autoUpdate", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "update", - "columnName": "update", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "id" - ], - "autoGenerate": false - }, - "indices": [], - "foreignKeys": [] - } - ], - "views": [], - "setupQueries": [ - "CREATE TABLE IF NOT EXISTS room_master_table (id INTEGER PRIMARY KEY,identity_hash TEXT)", - "INSERT OR REPLACE INTO room_master_table (id,identity_hash) VALUES(42, '11ebd6a72eb3f9ccd6ca46bc5535bca5')" - ] - } -} \ No newline at end of file diff --git a/app/schemas/io.legado.app.data.AppDatabase/38.json b/app/schemas/io.legado.app.data.AppDatabase/38.json deleted file mode 100644 index ab7415219..000000000 --- a/app/schemas/io.legado.app.data.AppDatabase/38.json +++ /dev/null @@ -1,1465 +0,0 @@ -{ - "formatVersion": 1, - "database": { - "version": 38, - "identityHash": "5211699415b40f58b06d4136d14173d1", - "entities": [ - { - "tableName": "books", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`bookUrl` TEXT NOT NULL, `tocUrl` TEXT NOT NULL, `origin` TEXT NOT NULL, `originName` TEXT NOT NULL, `name` TEXT NOT NULL, `author` TEXT NOT NULL, `kind` TEXT, `customTag` TEXT, `coverUrl` TEXT, `customCoverUrl` TEXT, `intro` TEXT, `customIntro` TEXT, `charset` TEXT, `type` INTEGER NOT NULL, `group` INTEGER NOT NULL, `latestChapterTitle` TEXT, `latestChapterTime` INTEGER NOT NULL, `lastCheckTime` INTEGER NOT NULL, `lastCheckCount` INTEGER NOT NULL, `totalChapterNum` INTEGER NOT NULL, `durChapterTitle` TEXT, `durChapterIndex` INTEGER NOT NULL, `durChapterPos` INTEGER NOT NULL, `durChapterTime` INTEGER NOT NULL, `wordCount` TEXT, `canUpdate` INTEGER NOT NULL, `order` INTEGER NOT NULL, `originOrder` INTEGER NOT NULL, `variable` TEXT, `readConfig` TEXT, PRIMARY KEY(`bookUrl`))", - "fields": [ - { - "fieldPath": "bookUrl", - "columnName": "bookUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "tocUrl", - "columnName": "tocUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "origin", - "columnName": "origin", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "originName", - "columnName": "originName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "author", - "columnName": "author", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "kind", - "columnName": "kind", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "customTag", - "columnName": "customTag", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "coverUrl", - "columnName": "coverUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "customCoverUrl", - "columnName": "customCoverUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "intro", - "columnName": "intro", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "customIntro", - "columnName": "customIntro", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "charset", - "columnName": "charset", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "type", - "columnName": "type", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "group", - "columnName": "group", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "latestChapterTitle", - "columnName": "latestChapterTitle", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "latestChapterTime", - "columnName": "latestChapterTime", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "lastCheckTime", - "columnName": "lastCheckTime", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "lastCheckCount", - "columnName": "lastCheckCount", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "totalChapterNum", - "columnName": "totalChapterNum", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "durChapterTitle", - "columnName": "durChapterTitle", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "durChapterIndex", - "columnName": "durChapterIndex", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "durChapterPos", - "columnName": "durChapterPos", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "durChapterTime", - "columnName": "durChapterTime", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "wordCount", - "columnName": "wordCount", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "canUpdate", - "columnName": "canUpdate", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "order", - "columnName": "order", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "originOrder", - "columnName": "originOrder", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "variable", - "columnName": "variable", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "readConfig", - "columnName": "readConfig", - "affinity": "TEXT", - "notNull": false - } - ], - "primaryKey": { - "columnNames": [ - "bookUrl" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_books_name_author", - "unique": true, - "columnNames": [ - "name", - "author" - ], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_books_name_author` ON `${TABLE_NAME}` (`name`, `author`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "book_groups", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`groupId` INTEGER NOT NULL, `groupName` TEXT NOT NULL, `cover` TEXT, `order` INTEGER NOT NULL, `show` INTEGER NOT NULL, PRIMARY KEY(`groupId`))", - "fields": [ - { - "fieldPath": "groupId", - "columnName": "groupId", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "groupName", - "columnName": "groupName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "cover", - "columnName": "cover", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "order", - "columnName": "order", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "show", - "columnName": "show", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "groupId" - ], - "autoGenerate": false - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "book_sources", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`bookSourceName` TEXT NOT NULL, `bookSourceGroup` TEXT, `bookSourceUrl` TEXT NOT NULL, `bookSourceType` INTEGER NOT NULL, `bookUrlPattern` TEXT, `concurrentRate` TEXT, `customOrder` INTEGER NOT NULL, `enabled` INTEGER NOT NULL, `enabledExplore` INTEGER NOT NULL, `header` TEXT, `loginUrl` TEXT, `loginUi` TEXT, `loginCheckJs` TEXT, `bookSourceComment` TEXT, `lastUpdateTime` INTEGER NOT NULL, `respondTime` INTEGER NOT NULL, `weight` INTEGER NOT NULL, `exploreUrl` TEXT, `ruleExplore` TEXT, `searchUrl` TEXT, `ruleSearch` TEXT, `ruleBookInfo` TEXT, `ruleToc` TEXT, `ruleContent` TEXT, PRIMARY KEY(`bookSourceUrl`))", - "fields": [ - { - "fieldPath": "bookSourceName", - "columnName": "bookSourceName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookSourceGroup", - "columnName": "bookSourceGroup", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "bookSourceUrl", - "columnName": "bookSourceUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookSourceType", - "columnName": "bookSourceType", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "bookUrlPattern", - "columnName": "bookUrlPattern", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "concurrentRate", - "columnName": "concurrentRate", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "customOrder", - "columnName": "customOrder", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "enabled", - "columnName": "enabled", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "enabledExplore", - "columnName": "enabledExplore", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "header", - "columnName": "header", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "loginUrl", - "columnName": "loginUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "loginUi", - "columnName": "loginUi", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "loginCheckJs", - "columnName": "loginCheckJs", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "bookSourceComment", - "columnName": "bookSourceComment", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "lastUpdateTime", - "columnName": "lastUpdateTime", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "respondTime", - "columnName": "respondTime", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "weight", - "columnName": "weight", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "exploreUrl", - "columnName": "exploreUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleExplore", - "columnName": "ruleExplore", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "searchUrl", - "columnName": "searchUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleSearch", - "columnName": "ruleSearch", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleBookInfo", - "columnName": "ruleBookInfo", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleToc", - "columnName": "ruleToc", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleContent", - "columnName": "ruleContent", - "affinity": "TEXT", - "notNull": false - } - ], - "primaryKey": { - "columnNames": [ - "bookSourceUrl" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_book_sources_bookSourceUrl", - "unique": false, - "columnNames": [ - "bookSourceUrl" - ], - "createSql": "CREATE INDEX IF NOT EXISTS `index_book_sources_bookSourceUrl` ON `${TABLE_NAME}` (`bookSourceUrl`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "chapters", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`url` TEXT NOT NULL, `title` TEXT NOT NULL, `baseUrl` TEXT NOT NULL, `bookUrl` TEXT NOT NULL, `index` INTEGER NOT NULL, `resourceUrl` TEXT, `tag` TEXT, `start` INTEGER, `end` INTEGER, `startFragmentId` TEXT, `endFragmentId` TEXT, `variable` TEXT, PRIMARY KEY(`url`, `bookUrl`), FOREIGN KEY(`bookUrl`) REFERENCES `books`(`bookUrl`) ON UPDATE NO ACTION ON DELETE CASCADE )", - "fields": [ - { - "fieldPath": "url", - "columnName": "url", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "title", - "columnName": "title", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "baseUrl", - "columnName": "baseUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookUrl", - "columnName": "bookUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "index", - "columnName": "index", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "resourceUrl", - "columnName": "resourceUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "tag", - "columnName": "tag", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "start", - "columnName": "start", - "affinity": "INTEGER", - "notNull": false - }, - { - "fieldPath": "end", - "columnName": "end", - "affinity": "INTEGER", - "notNull": false - }, - { - "fieldPath": "startFragmentId", - "columnName": "startFragmentId", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "endFragmentId", - "columnName": "endFragmentId", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "variable", - "columnName": "variable", - "affinity": "TEXT", - "notNull": false - } - ], - "primaryKey": { - "columnNames": [ - "url", - "bookUrl" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_chapters_bookUrl", - "unique": false, - "columnNames": [ - "bookUrl" - ], - "createSql": "CREATE INDEX IF NOT EXISTS `index_chapters_bookUrl` ON `${TABLE_NAME}` (`bookUrl`)" - }, - { - "name": "index_chapters_bookUrl_index", - "unique": true, - "columnNames": [ - "bookUrl", - "index" - ], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_chapters_bookUrl_index` ON `${TABLE_NAME}` (`bookUrl`, `index`)" - } - ], - "foreignKeys": [ - { - "table": "books", - "onDelete": "CASCADE", - "onUpdate": "NO ACTION", - "columns": [ - "bookUrl" - ], - "referencedColumns": [ - "bookUrl" - ] - } - ] - }, - { - "tableName": "replace_rules", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, `name` TEXT NOT NULL, `group` TEXT, `pattern` TEXT NOT NULL, `replacement` TEXT NOT NULL, `scope` TEXT, `isEnabled` INTEGER NOT NULL, `isRegex` INTEGER NOT NULL, `sortOrder` INTEGER NOT NULL)", - "fields": [ - { - "fieldPath": "id", - "columnName": "id", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "group", - "columnName": "group", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "pattern", - "columnName": "pattern", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "replacement", - "columnName": "replacement", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "scope", - "columnName": "scope", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "isEnabled", - "columnName": "isEnabled", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "isRegex", - "columnName": "isRegex", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "order", - "columnName": "sortOrder", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "id" - ], - "autoGenerate": true - }, - "indices": [ - { - "name": "index_replace_rules_id", - "unique": false, - "columnNames": [ - "id" - ], - "createSql": "CREATE INDEX IF NOT EXISTS `index_replace_rules_id` ON `${TABLE_NAME}` (`id`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "searchBooks", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`bookUrl` TEXT NOT NULL, `origin` TEXT NOT NULL, `originName` TEXT NOT NULL, `type` INTEGER NOT NULL, `name` TEXT NOT NULL, `author` TEXT NOT NULL, `kind` TEXT, `coverUrl` TEXT, `intro` TEXT, `wordCount` TEXT, `latestChapterTitle` TEXT, `tocUrl` TEXT NOT NULL, `time` INTEGER NOT NULL, `variable` TEXT, `originOrder` INTEGER NOT NULL, PRIMARY KEY(`bookUrl`), FOREIGN KEY(`origin`) REFERENCES `book_sources`(`bookSourceUrl`) ON UPDATE NO ACTION ON DELETE CASCADE )", - "fields": [ - { - "fieldPath": "bookUrl", - "columnName": "bookUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "origin", - "columnName": "origin", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "originName", - "columnName": "originName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "type", - "columnName": "type", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "author", - "columnName": "author", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "kind", - "columnName": "kind", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "coverUrl", - "columnName": "coverUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "intro", - "columnName": "intro", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "wordCount", - "columnName": "wordCount", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "latestChapterTitle", - "columnName": "latestChapterTitle", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "tocUrl", - "columnName": "tocUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "time", - "columnName": "time", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "variable", - "columnName": "variable", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "originOrder", - "columnName": "originOrder", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "bookUrl" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_searchBooks_bookUrl", - "unique": true, - "columnNames": [ - "bookUrl" - ], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_searchBooks_bookUrl` ON `${TABLE_NAME}` (`bookUrl`)" - }, - { - "name": "index_searchBooks_origin", - "unique": false, - "columnNames": [ - "origin" - ], - "createSql": "CREATE INDEX IF NOT EXISTS `index_searchBooks_origin` ON `${TABLE_NAME}` (`origin`)" - } - ], - "foreignKeys": [ - { - "table": "book_sources", - "onDelete": "CASCADE", - "onUpdate": "NO ACTION", - "columns": [ - "origin" - ], - "referencedColumns": [ - "bookSourceUrl" - ] - } - ] - }, - { - "tableName": "search_keywords", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`word` TEXT NOT NULL, `usage` INTEGER NOT NULL, `lastUseTime` INTEGER NOT NULL, PRIMARY KEY(`word`))", - "fields": [ - { - "fieldPath": "word", - "columnName": "word", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "usage", - "columnName": "usage", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "lastUseTime", - "columnName": "lastUseTime", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "word" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_search_keywords_word", - "unique": true, - "columnNames": [ - "word" - ], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_search_keywords_word` ON `${TABLE_NAME}` (`word`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "cookies", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`url` TEXT NOT NULL, `cookie` TEXT NOT NULL, PRIMARY KEY(`url`))", - "fields": [ - { - "fieldPath": "url", - "columnName": "url", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "cookie", - "columnName": "cookie", - "affinity": "TEXT", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "url" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_cookies_url", - "unique": true, - "columnNames": [ - "url" - ], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_cookies_url` ON `${TABLE_NAME}` (`url`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "rssSources", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`sourceUrl` TEXT NOT NULL, `sourceName` TEXT NOT NULL, `sourceIcon` TEXT NOT NULL, `sourceGroup` TEXT, `sourceComment` TEXT, `enabled` INTEGER NOT NULL, `header` TEXT, `loginUrl` TEXT, `loginUi` TEXT, `loginCheckJs` TEXT, `sortUrl` TEXT, `singleUrl` INTEGER NOT NULL, `articleStyle` INTEGER NOT NULL, `ruleArticles` TEXT, `ruleNextPage` TEXT, `ruleTitle` TEXT, `rulePubDate` TEXT, `ruleDescription` TEXT, `ruleImage` TEXT, `ruleLink` TEXT, `ruleContent` TEXT, `style` TEXT, `enableJs` INTEGER NOT NULL, `loadWithBaseUrl` INTEGER NOT NULL, `customOrder` INTEGER NOT NULL, PRIMARY KEY(`sourceUrl`))", - "fields": [ - { - "fieldPath": "sourceUrl", - "columnName": "sourceUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "sourceName", - "columnName": "sourceName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "sourceIcon", - "columnName": "sourceIcon", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "sourceGroup", - "columnName": "sourceGroup", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "sourceComment", - "columnName": "sourceComment", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "enabled", - "columnName": "enabled", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "header", - "columnName": "header", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "loginUrl", - "columnName": "loginUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "loginUi", - "columnName": "loginUi", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "loginCheckJs", - "columnName": "loginCheckJs", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "sortUrl", - "columnName": "sortUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "singleUrl", - "columnName": "singleUrl", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "articleStyle", - "columnName": "articleStyle", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "ruleArticles", - "columnName": "ruleArticles", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleNextPage", - "columnName": "ruleNextPage", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleTitle", - "columnName": "ruleTitle", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "rulePubDate", - "columnName": "rulePubDate", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleDescription", - "columnName": "ruleDescription", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleImage", - "columnName": "ruleImage", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleLink", - "columnName": "ruleLink", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleContent", - "columnName": "ruleContent", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "style", - "columnName": "style", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "enableJs", - "columnName": "enableJs", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "loadWithBaseUrl", - "columnName": "loadWithBaseUrl", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "customOrder", - "columnName": "customOrder", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "sourceUrl" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_rssSources_sourceUrl", - "unique": false, - "columnNames": [ - "sourceUrl" - ], - "createSql": "CREATE INDEX IF NOT EXISTS `index_rssSources_sourceUrl` ON `${TABLE_NAME}` (`sourceUrl`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "bookmarks", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`time` INTEGER NOT NULL, `bookName` TEXT NOT NULL, `bookAuthor` TEXT NOT NULL, `chapterIndex` INTEGER NOT NULL, `chapterPos` INTEGER NOT NULL, `chapterName` TEXT NOT NULL, `bookText` TEXT NOT NULL, `content` TEXT NOT NULL, PRIMARY KEY(`time`))", - "fields": [ - { - "fieldPath": "time", - "columnName": "time", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "bookName", - "columnName": "bookName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookAuthor", - "columnName": "bookAuthor", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "chapterIndex", - "columnName": "chapterIndex", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "chapterPos", - "columnName": "chapterPos", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "chapterName", - "columnName": "chapterName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookText", - "columnName": "bookText", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "content", - "columnName": "content", - "affinity": "TEXT", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "time" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_bookmarks_bookName_bookAuthor", - "unique": false, - "columnNames": [ - "bookName", - "bookAuthor" - ], - "createSql": "CREATE INDEX IF NOT EXISTS `index_bookmarks_bookName_bookAuthor` ON `${TABLE_NAME}` (`bookName`, `bookAuthor`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "rssArticles", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`origin` TEXT NOT NULL, `sort` TEXT NOT NULL, `title` TEXT NOT NULL, `order` INTEGER NOT NULL, `link` TEXT NOT NULL, `pubDate` TEXT, `description` TEXT, `content` TEXT, `image` TEXT, `read` INTEGER NOT NULL, `variable` TEXT, PRIMARY KEY(`origin`, `link`))", - "fields": [ - { - "fieldPath": "origin", - "columnName": "origin", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "sort", - "columnName": "sort", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "title", - "columnName": "title", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "order", - "columnName": "order", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "link", - "columnName": "link", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "pubDate", - "columnName": "pubDate", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "description", - "columnName": "description", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "content", - "columnName": "content", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "image", - "columnName": "image", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "read", - "columnName": "read", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "variable", - "columnName": "variable", - "affinity": "TEXT", - "notNull": false - } - ], - "primaryKey": { - "columnNames": [ - "origin", - "link" - ], - "autoGenerate": false - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "rssReadRecords", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`record` TEXT NOT NULL, `read` INTEGER NOT NULL, PRIMARY KEY(`record`))", - "fields": [ - { - "fieldPath": "record", - "columnName": "record", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "read", - "columnName": "read", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "record" - ], - "autoGenerate": false - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "rssStars", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`origin` TEXT NOT NULL, `sort` TEXT NOT NULL, `title` TEXT NOT NULL, `starTime` INTEGER NOT NULL, `link` TEXT NOT NULL, `pubDate` TEXT, `description` TEXT, `content` TEXT, `image` TEXT, `variable` TEXT, PRIMARY KEY(`origin`, `link`))", - "fields": [ - { - "fieldPath": "origin", - "columnName": "origin", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "sort", - "columnName": "sort", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "title", - "columnName": "title", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "starTime", - "columnName": "starTime", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "link", - "columnName": "link", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "pubDate", - "columnName": "pubDate", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "description", - "columnName": "description", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "content", - "columnName": "content", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "image", - "columnName": "image", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "variable", - "columnName": "variable", - "affinity": "TEXT", - "notNull": false - } - ], - "primaryKey": { - "columnNames": [ - "origin", - "link" - ], - "autoGenerate": false - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "txtTocRules", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER NOT NULL, `name` TEXT NOT NULL, `rule` TEXT NOT NULL, `serialNumber` INTEGER NOT NULL, `enable` INTEGER NOT NULL, PRIMARY KEY(`id`))", - "fields": [ - { - "fieldPath": "id", - "columnName": "id", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "rule", - "columnName": "rule", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "serialNumber", - "columnName": "serialNumber", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "enable", - "columnName": "enable", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "id" - ], - "autoGenerate": false - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "readRecord", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`deviceId` TEXT NOT NULL, `bookName` TEXT NOT NULL, `readTime` INTEGER NOT NULL, PRIMARY KEY(`deviceId`, `bookName`))", - "fields": [ - { - "fieldPath": "deviceId", - "columnName": "deviceId", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookName", - "columnName": "bookName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "readTime", - "columnName": "readTime", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "deviceId", - "bookName" - ], - "autoGenerate": false - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "httpTTS", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER NOT NULL, `name` TEXT NOT NULL, `url` TEXT NOT NULL, PRIMARY KEY(`id`))", - "fields": [ - { - "fieldPath": "id", - "columnName": "id", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "url", - "columnName": "url", - "affinity": "TEXT", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "id" - ], - "autoGenerate": false - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "caches", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`key` TEXT NOT NULL, `value` TEXT, `deadline` INTEGER NOT NULL, PRIMARY KEY(`key`))", - "fields": [ - { - "fieldPath": "key", - "columnName": "key", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "value", - "columnName": "value", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "deadline", - "columnName": "deadline", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "key" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_caches_key", - "unique": true, - "columnNames": [ - "key" - ], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_caches_key` ON `${TABLE_NAME}` (`key`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "ruleSubs", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER NOT NULL, `name` TEXT NOT NULL, `url` TEXT NOT NULL, `type` INTEGER NOT NULL, `customOrder` INTEGER NOT NULL, `autoUpdate` INTEGER NOT NULL, `update` INTEGER NOT NULL, PRIMARY KEY(`id`))", - "fields": [ - { - "fieldPath": "id", - "columnName": "id", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "url", - "columnName": "url", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "type", - "columnName": "type", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "customOrder", - "columnName": "customOrder", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "autoUpdate", - "columnName": "autoUpdate", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "update", - "columnName": "update", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "id" - ], - "autoGenerate": false - }, - "indices": [], - "foreignKeys": [] - } - ], - "views": [], - "setupQueries": [ - "CREATE TABLE IF NOT EXISTS room_master_table (id INTEGER PRIMARY KEY,identity_hash TEXT)", - "INSERT OR REPLACE INTO room_master_table (id,identity_hash) VALUES(42, '5211699415b40f58b06d4136d14173d1')" - ] - } -} \ No newline at end of file diff --git a/app/schemas/io.legado.app.data.AppDatabase/39.json b/app/schemas/io.legado.app.data.AppDatabase/39.json deleted file mode 100644 index 290db5cb0..000000000 --- a/app/schemas/io.legado.app.data.AppDatabase/39.json +++ /dev/null @@ -1,1471 +0,0 @@ -{ - "formatVersion": 1, - "database": { - "version": 39, - "identityHash": "8cfa1fb6bb9a65c04bfe563680126a4f", - "entities": [ - { - "tableName": "books", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`bookUrl` TEXT NOT NULL, `tocUrl` TEXT NOT NULL, `origin` TEXT NOT NULL, `originName` TEXT NOT NULL, `name` TEXT NOT NULL, `author` TEXT NOT NULL, `kind` TEXT, `customTag` TEXT, `coverUrl` TEXT, `customCoverUrl` TEXT, `intro` TEXT, `customIntro` TEXT, `charset` TEXT, `type` INTEGER NOT NULL, `group` INTEGER NOT NULL, `latestChapterTitle` TEXT, `latestChapterTime` INTEGER NOT NULL, `lastCheckTime` INTEGER NOT NULL, `lastCheckCount` INTEGER NOT NULL, `totalChapterNum` INTEGER NOT NULL, `durChapterTitle` TEXT, `durChapterIndex` INTEGER NOT NULL, `durChapterPos` INTEGER NOT NULL, `durChapterTime` INTEGER NOT NULL, `wordCount` TEXT, `canUpdate` INTEGER NOT NULL, `order` INTEGER NOT NULL, `originOrder` INTEGER NOT NULL, `variable` TEXT, `readConfig` TEXT, PRIMARY KEY(`bookUrl`))", - "fields": [ - { - "fieldPath": "bookUrl", - "columnName": "bookUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "tocUrl", - "columnName": "tocUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "origin", - "columnName": "origin", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "originName", - "columnName": "originName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "author", - "columnName": "author", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "kind", - "columnName": "kind", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "customTag", - "columnName": "customTag", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "coverUrl", - "columnName": "coverUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "customCoverUrl", - "columnName": "customCoverUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "intro", - "columnName": "intro", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "customIntro", - "columnName": "customIntro", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "charset", - "columnName": "charset", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "type", - "columnName": "type", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "group", - "columnName": "group", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "latestChapterTitle", - "columnName": "latestChapterTitle", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "latestChapterTime", - "columnName": "latestChapterTime", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "lastCheckTime", - "columnName": "lastCheckTime", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "lastCheckCount", - "columnName": "lastCheckCount", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "totalChapterNum", - "columnName": "totalChapterNum", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "durChapterTitle", - "columnName": "durChapterTitle", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "durChapterIndex", - "columnName": "durChapterIndex", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "durChapterPos", - "columnName": "durChapterPos", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "durChapterTime", - "columnName": "durChapterTime", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "wordCount", - "columnName": "wordCount", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "canUpdate", - "columnName": "canUpdate", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "order", - "columnName": "order", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "originOrder", - "columnName": "originOrder", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "variable", - "columnName": "variable", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "readConfig", - "columnName": "readConfig", - "affinity": "TEXT", - "notNull": false - } - ], - "primaryKey": { - "columnNames": [ - "bookUrl" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_books_name_author", - "unique": true, - "columnNames": [ - "name", - "author" - ], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_books_name_author` ON `${TABLE_NAME}` (`name`, `author`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "book_groups", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`groupId` INTEGER NOT NULL, `groupName` TEXT NOT NULL, `cover` TEXT, `order` INTEGER NOT NULL, `show` INTEGER NOT NULL, PRIMARY KEY(`groupId`))", - "fields": [ - { - "fieldPath": "groupId", - "columnName": "groupId", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "groupName", - "columnName": "groupName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "cover", - "columnName": "cover", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "order", - "columnName": "order", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "show", - "columnName": "show", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "groupId" - ], - "autoGenerate": false - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "book_sources", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`bookSourceName` TEXT NOT NULL, `bookSourceGroup` TEXT, `bookSourceUrl` TEXT NOT NULL, `bookSourceType` INTEGER NOT NULL, `bookUrlPattern` TEXT, `customOrder` INTEGER NOT NULL, `enabled` INTEGER NOT NULL, `enabledExplore` INTEGER NOT NULL, `concurrentRate` TEXT, `header` TEXT, `loginUrl` TEXT, `loginUi` TEXT, `loginCheckJs` TEXT, `bookSourceComment` TEXT, `lastUpdateTime` INTEGER NOT NULL, `respondTime` INTEGER NOT NULL, `weight` INTEGER NOT NULL, `exploreUrl` TEXT, `ruleExplore` TEXT, `searchUrl` TEXT, `ruleSearch` TEXT, `ruleBookInfo` TEXT, `ruleToc` TEXT, `ruleContent` TEXT, PRIMARY KEY(`bookSourceUrl`))", - "fields": [ - { - "fieldPath": "bookSourceName", - "columnName": "bookSourceName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookSourceGroup", - "columnName": "bookSourceGroup", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "bookSourceUrl", - "columnName": "bookSourceUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookSourceType", - "columnName": "bookSourceType", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "bookUrlPattern", - "columnName": "bookUrlPattern", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "customOrder", - "columnName": "customOrder", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "enabled", - "columnName": "enabled", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "enabledExplore", - "columnName": "enabledExplore", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "concurrentRate", - "columnName": "concurrentRate", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "header", - "columnName": "header", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "loginUrl", - "columnName": "loginUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "loginUi", - "columnName": "loginUi", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "loginCheckJs", - "columnName": "loginCheckJs", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "bookSourceComment", - "columnName": "bookSourceComment", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "lastUpdateTime", - "columnName": "lastUpdateTime", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "respondTime", - "columnName": "respondTime", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "weight", - "columnName": "weight", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "exploreUrl", - "columnName": "exploreUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleExplore", - "columnName": "ruleExplore", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "searchUrl", - "columnName": "searchUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleSearch", - "columnName": "ruleSearch", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleBookInfo", - "columnName": "ruleBookInfo", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleToc", - "columnName": "ruleToc", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleContent", - "columnName": "ruleContent", - "affinity": "TEXT", - "notNull": false - } - ], - "primaryKey": { - "columnNames": [ - "bookSourceUrl" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_book_sources_bookSourceUrl", - "unique": false, - "columnNames": [ - "bookSourceUrl" - ], - "createSql": "CREATE INDEX IF NOT EXISTS `index_book_sources_bookSourceUrl` ON `${TABLE_NAME}` (`bookSourceUrl`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "chapters", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`url` TEXT NOT NULL, `title` TEXT NOT NULL, `baseUrl` TEXT NOT NULL, `bookUrl` TEXT NOT NULL, `index` INTEGER NOT NULL, `resourceUrl` TEXT, `tag` TEXT, `start` INTEGER, `end` INTEGER, `startFragmentId` TEXT, `endFragmentId` TEXT, `variable` TEXT, PRIMARY KEY(`url`, `bookUrl`), FOREIGN KEY(`bookUrl`) REFERENCES `books`(`bookUrl`) ON UPDATE NO ACTION ON DELETE CASCADE )", - "fields": [ - { - "fieldPath": "url", - "columnName": "url", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "title", - "columnName": "title", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "baseUrl", - "columnName": "baseUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookUrl", - "columnName": "bookUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "index", - "columnName": "index", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "resourceUrl", - "columnName": "resourceUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "tag", - "columnName": "tag", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "start", - "columnName": "start", - "affinity": "INTEGER", - "notNull": false - }, - { - "fieldPath": "end", - "columnName": "end", - "affinity": "INTEGER", - "notNull": false - }, - { - "fieldPath": "startFragmentId", - "columnName": "startFragmentId", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "endFragmentId", - "columnName": "endFragmentId", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "variable", - "columnName": "variable", - "affinity": "TEXT", - "notNull": false - } - ], - "primaryKey": { - "columnNames": [ - "url", - "bookUrl" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_chapters_bookUrl", - "unique": false, - "columnNames": [ - "bookUrl" - ], - "createSql": "CREATE INDEX IF NOT EXISTS `index_chapters_bookUrl` ON `${TABLE_NAME}` (`bookUrl`)" - }, - { - "name": "index_chapters_bookUrl_index", - "unique": true, - "columnNames": [ - "bookUrl", - "index" - ], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_chapters_bookUrl_index` ON `${TABLE_NAME}` (`bookUrl`, `index`)" - } - ], - "foreignKeys": [ - { - "table": "books", - "onDelete": "CASCADE", - "onUpdate": "NO ACTION", - "columns": [ - "bookUrl" - ], - "referencedColumns": [ - "bookUrl" - ] - } - ] - }, - { - "tableName": "replace_rules", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, `name` TEXT NOT NULL, `group` TEXT, `pattern` TEXT NOT NULL, `replacement` TEXT NOT NULL, `scope` TEXT, `isEnabled` INTEGER NOT NULL, `isRegex` INTEGER NOT NULL, `sortOrder` INTEGER NOT NULL)", - "fields": [ - { - "fieldPath": "id", - "columnName": "id", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "group", - "columnName": "group", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "pattern", - "columnName": "pattern", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "replacement", - "columnName": "replacement", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "scope", - "columnName": "scope", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "isEnabled", - "columnName": "isEnabled", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "isRegex", - "columnName": "isRegex", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "order", - "columnName": "sortOrder", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "id" - ], - "autoGenerate": true - }, - "indices": [ - { - "name": "index_replace_rules_id", - "unique": false, - "columnNames": [ - "id" - ], - "createSql": "CREATE INDEX IF NOT EXISTS `index_replace_rules_id` ON `${TABLE_NAME}` (`id`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "searchBooks", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`bookUrl` TEXT NOT NULL, `origin` TEXT NOT NULL, `originName` TEXT NOT NULL, `type` INTEGER NOT NULL, `name` TEXT NOT NULL, `author` TEXT NOT NULL, `kind` TEXT, `coverUrl` TEXT, `intro` TEXT, `wordCount` TEXT, `latestChapterTitle` TEXT, `tocUrl` TEXT NOT NULL, `time` INTEGER NOT NULL, `variable` TEXT, `originOrder` INTEGER NOT NULL, PRIMARY KEY(`bookUrl`), FOREIGN KEY(`origin`) REFERENCES `book_sources`(`bookSourceUrl`) ON UPDATE NO ACTION ON DELETE CASCADE )", - "fields": [ - { - "fieldPath": "bookUrl", - "columnName": "bookUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "origin", - "columnName": "origin", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "originName", - "columnName": "originName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "type", - "columnName": "type", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "author", - "columnName": "author", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "kind", - "columnName": "kind", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "coverUrl", - "columnName": "coverUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "intro", - "columnName": "intro", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "wordCount", - "columnName": "wordCount", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "latestChapterTitle", - "columnName": "latestChapterTitle", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "tocUrl", - "columnName": "tocUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "time", - "columnName": "time", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "variable", - "columnName": "variable", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "originOrder", - "columnName": "originOrder", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "bookUrl" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_searchBooks_bookUrl", - "unique": true, - "columnNames": [ - "bookUrl" - ], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_searchBooks_bookUrl` ON `${TABLE_NAME}` (`bookUrl`)" - }, - { - "name": "index_searchBooks_origin", - "unique": false, - "columnNames": [ - "origin" - ], - "createSql": "CREATE INDEX IF NOT EXISTS `index_searchBooks_origin` ON `${TABLE_NAME}` (`origin`)" - } - ], - "foreignKeys": [ - { - "table": "book_sources", - "onDelete": "CASCADE", - "onUpdate": "NO ACTION", - "columns": [ - "origin" - ], - "referencedColumns": [ - "bookSourceUrl" - ] - } - ] - }, - { - "tableName": "search_keywords", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`word` TEXT NOT NULL, `usage` INTEGER NOT NULL, `lastUseTime` INTEGER NOT NULL, PRIMARY KEY(`word`))", - "fields": [ - { - "fieldPath": "word", - "columnName": "word", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "usage", - "columnName": "usage", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "lastUseTime", - "columnName": "lastUseTime", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "word" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_search_keywords_word", - "unique": true, - "columnNames": [ - "word" - ], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_search_keywords_word` ON `${TABLE_NAME}` (`word`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "cookies", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`url` TEXT NOT NULL, `cookie` TEXT NOT NULL, PRIMARY KEY(`url`))", - "fields": [ - { - "fieldPath": "url", - "columnName": "url", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "cookie", - "columnName": "cookie", - "affinity": "TEXT", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "url" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_cookies_url", - "unique": true, - "columnNames": [ - "url" - ], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_cookies_url` ON `${TABLE_NAME}` (`url`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "rssSources", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`sourceUrl` TEXT NOT NULL, `sourceName` TEXT NOT NULL, `sourceIcon` TEXT NOT NULL, `sourceGroup` TEXT, `sourceComment` TEXT, `enabled` INTEGER NOT NULL, `concurrentRate` TEXT, `header` TEXT, `loginUrl` TEXT, `loginUi` TEXT, `loginCheckJs` TEXT, `sortUrl` TEXT, `singleUrl` INTEGER NOT NULL, `articleStyle` INTEGER NOT NULL, `ruleArticles` TEXT, `ruleNextPage` TEXT, `ruleTitle` TEXT, `rulePubDate` TEXT, `ruleDescription` TEXT, `ruleImage` TEXT, `ruleLink` TEXT, `ruleContent` TEXT, `style` TEXT, `enableJs` INTEGER NOT NULL, `loadWithBaseUrl` INTEGER NOT NULL, `customOrder` INTEGER NOT NULL, PRIMARY KEY(`sourceUrl`))", - "fields": [ - { - "fieldPath": "sourceUrl", - "columnName": "sourceUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "sourceName", - "columnName": "sourceName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "sourceIcon", - "columnName": "sourceIcon", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "sourceGroup", - "columnName": "sourceGroup", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "sourceComment", - "columnName": "sourceComment", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "enabled", - "columnName": "enabled", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "concurrentRate", - "columnName": "concurrentRate", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "header", - "columnName": "header", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "loginUrl", - "columnName": "loginUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "loginUi", - "columnName": "loginUi", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "loginCheckJs", - "columnName": "loginCheckJs", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "sortUrl", - "columnName": "sortUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "singleUrl", - "columnName": "singleUrl", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "articleStyle", - "columnName": "articleStyle", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "ruleArticles", - "columnName": "ruleArticles", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleNextPage", - "columnName": "ruleNextPage", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleTitle", - "columnName": "ruleTitle", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "rulePubDate", - "columnName": "rulePubDate", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleDescription", - "columnName": "ruleDescription", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleImage", - "columnName": "ruleImage", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleLink", - "columnName": "ruleLink", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleContent", - "columnName": "ruleContent", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "style", - "columnName": "style", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "enableJs", - "columnName": "enableJs", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "loadWithBaseUrl", - "columnName": "loadWithBaseUrl", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "customOrder", - "columnName": "customOrder", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "sourceUrl" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_rssSources_sourceUrl", - "unique": false, - "columnNames": [ - "sourceUrl" - ], - "createSql": "CREATE INDEX IF NOT EXISTS `index_rssSources_sourceUrl` ON `${TABLE_NAME}` (`sourceUrl`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "bookmarks", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`time` INTEGER NOT NULL, `bookName` TEXT NOT NULL, `bookAuthor` TEXT NOT NULL, `chapterIndex` INTEGER NOT NULL, `chapterPos` INTEGER NOT NULL, `chapterName` TEXT NOT NULL, `bookText` TEXT NOT NULL, `content` TEXT NOT NULL, PRIMARY KEY(`time`))", - "fields": [ - { - "fieldPath": "time", - "columnName": "time", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "bookName", - "columnName": "bookName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookAuthor", - "columnName": "bookAuthor", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "chapterIndex", - "columnName": "chapterIndex", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "chapterPos", - "columnName": "chapterPos", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "chapterName", - "columnName": "chapterName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookText", - "columnName": "bookText", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "content", - "columnName": "content", - "affinity": "TEXT", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "time" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_bookmarks_bookName_bookAuthor", - "unique": false, - "columnNames": [ - "bookName", - "bookAuthor" - ], - "createSql": "CREATE INDEX IF NOT EXISTS `index_bookmarks_bookName_bookAuthor` ON `${TABLE_NAME}` (`bookName`, `bookAuthor`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "rssArticles", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`origin` TEXT NOT NULL, `sort` TEXT NOT NULL, `title` TEXT NOT NULL, `order` INTEGER NOT NULL, `link` TEXT NOT NULL, `pubDate` TEXT, `description` TEXT, `content` TEXT, `image` TEXT, `read` INTEGER NOT NULL, `variable` TEXT, PRIMARY KEY(`origin`, `link`))", - "fields": [ - { - "fieldPath": "origin", - "columnName": "origin", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "sort", - "columnName": "sort", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "title", - "columnName": "title", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "order", - "columnName": "order", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "link", - "columnName": "link", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "pubDate", - "columnName": "pubDate", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "description", - "columnName": "description", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "content", - "columnName": "content", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "image", - "columnName": "image", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "read", - "columnName": "read", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "variable", - "columnName": "variable", - "affinity": "TEXT", - "notNull": false - } - ], - "primaryKey": { - "columnNames": [ - "origin", - "link" - ], - "autoGenerate": false - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "rssReadRecords", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`record` TEXT NOT NULL, `read` INTEGER NOT NULL, PRIMARY KEY(`record`))", - "fields": [ - { - "fieldPath": "record", - "columnName": "record", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "read", - "columnName": "read", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "record" - ], - "autoGenerate": false - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "rssStars", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`origin` TEXT NOT NULL, `sort` TEXT NOT NULL, `title` TEXT NOT NULL, `starTime` INTEGER NOT NULL, `link` TEXT NOT NULL, `pubDate` TEXT, `description` TEXT, `content` TEXT, `image` TEXT, `variable` TEXT, PRIMARY KEY(`origin`, `link`))", - "fields": [ - { - "fieldPath": "origin", - "columnName": "origin", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "sort", - "columnName": "sort", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "title", - "columnName": "title", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "starTime", - "columnName": "starTime", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "link", - "columnName": "link", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "pubDate", - "columnName": "pubDate", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "description", - "columnName": "description", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "content", - "columnName": "content", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "image", - "columnName": "image", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "variable", - "columnName": "variable", - "affinity": "TEXT", - "notNull": false - } - ], - "primaryKey": { - "columnNames": [ - "origin", - "link" - ], - "autoGenerate": false - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "txtTocRules", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER NOT NULL, `name` TEXT NOT NULL, `rule` TEXT NOT NULL, `serialNumber` INTEGER NOT NULL, `enable` INTEGER NOT NULL, PRIMARY KEY(`id`))", - "fields": [ - { - "fieldPath": "id", - "columnName": "id", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "rule", - "columnName": "rule", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "serialNumber", - "columnName": "serialNumber", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "enable", - "columnName": "enable", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "id" - ], - "autoGenerate": false - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "readRecord", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`deviceId` TEXT NOT NULL, `bookName` TEXT NOT NULL, `readTime` INTEGER NOT NULL, PRIMARY KEY(`deviceId`, `bookName`))", - "fields": [ - { - "fieldPath": "deviceId", - "columnName": "deviceId", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookName", - "columnName": "bookName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "readTime", - "columnName": "readTime", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "deviceId", - "bookName" - ], - "autoGenerate": false - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "httpTTS", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER NOT NULL, `name` TEXT NOT NULL, `url` TEXT NOT NULL, PRIMARY KEY(`id`))", - "fields": [ - { - "fieldPath": "id", - "columnName": "id", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "url", - "columnName": "url", - "affinity": "TEXT", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "id" - ], - "autoGenerate": false - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "caches", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`key` TEXT NOT NULL, `value` TEXT, `deadline` INTEGER NOT NULL, PRIMARY KEY(`key`))", - "fields": [ - { - "fieldPath": "key", - "columnName": "key", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "value", - "columnName": "value", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "deadline", - "columnName": "deadline", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "key" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_caches_key", - "unique": true, - "columnNames": [ - "key" - ], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_caches_key` ON `${TABLE_NAME}` (`key`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "ruleSubs", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER NOT NULL, `name` TEXT NOT NULL, `url` TEXT NOT NULL, `type` INTEGER NOT NULL, `customOrder` INTEGER NOT NULL, `autoUpdate` INTEGER NOT NULL, `update` INTEGER NOT NULL, PRIMARY KEY(`id`))", - "fields": [ - { - "fieldPath": "id", - "columnName": "id", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "url", - "columnName": "url", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "type", - "columnName": "type", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "customOrder", - "columnName": "customOrder", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "autoUpdate", - "columnName": "autoUpdate", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "update", - "columnName": "update", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "id" - ], - "autoGenerate": false - }, - "indices": [], - "foreignKeys": [] - } - ], - "views": [], - "setupQueries": [ - "CREATE TABLE IF NOT EXISTS room_master_table (id INTEGER PRIMARY KEY,identity_hash TEXT)", - "INSERT OR REPLACE INTO room_master_table (id,identity_hash) VALUES(42, '8cfa1fb6bb9a65c04bfe563680126a4f')" - ] - } -} \ No newline at end of file diff --git a/app/schemas/io.legado.app.data.AppDatabase/4.json b/app/schemas/io.legado.app.data.AppDatabase/4.json deleted file mode 100644 index aadc551fb..000000000 --- a/app/schemas/io.legado.app.data.AppDatabase/4.json +++ /dev/null @@ -1,1093 +0,0 @@ -{ - "formatVersion": 1, - "database": { - "version": 4, - "identityHash": "3b81b2e900be34b8ceb48aaacc6b1004", - "entities": [ - { - "tableName": "books", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`bookUrl` TEXT NOT NULL, `tocUrl` TEXT NOT NULL, `origin` TEXT NOT NULL, `originName` TEXT NOT NULL, `name` TEXT NOT NULL, `author` TEXT NOT NULL, `kind` TEXT, `customTag` TEXT, `coverUrl` TEXT, `customCoverUrl` TEXT, `intro` TEXT, `customIntro` TEXT, `charset` TEXT, `type` INTEGER NOT NULL, `group` INTEGER NOT NULL, `latestChapterTitle` TEXT, `latestChapterTime` INTEGER NOT NULL, `lastCheckTime` INTEGER NOT NULL, `lastCheckCount` INTEGER NOT NULL, `totalChapterNum` INTEGER NOT NULL, `durChapterTitle` TEXT, `durChapterIndex` INTEGER NOT NULL, `durChapterPos` INTEGER NOT NULL, `durChapterTime` INTEGER NOT NULL, `wordCount` TEXT, `canUpdate` INTEGER NOT NULL, `order` INTEGER NOT NULL, `originOrder` INTEGER NOT NULL, `useReplaceRule` INTEGER NOT NULL, `variable` TEXT, PRIMARY KEY(`bookUrl`))", - "fields": [ - { - "fieldPath": "bookUrl", - "columnName": "bookUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "tocUrl", - "columnName": "tocUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "origin", - "columnName": "origin", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "originName", - "columnName": "originName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "author", - "columnName": "author", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "kind", - "columnName": "kind", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "customTag", - "columnName": "customTag", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "coverUrl", - "columnName": "coverUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "customCoverUrl", - "columnName": "customCoverUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "intro", - "columnName": "intro", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "customIntro", - "columnName": "customIntro", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "charset", - "columnName": "charset", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "type", - "columnName": "type", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "group", - "columnName": "group", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "latestChapterTitle", - "columnName": "latestChapterTitle", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "latestChapterTime", - "columnName": "latestChapterTime", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "lastCheckTime", - "columnName": "lastCheckTime", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "lastCheckCount", - "columnName": "lastCheckCount", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "totalChapterNum", - "columnName": "totalChapterNum", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "durChapterTitle", - "columnName": "durChapterTitle", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "durChapterIndex", - "columnName": "durChapterIndex", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "durChapterPos", - "columnName": "durChapterPos", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "durChapterTime", - "columnName": "durChapterTime", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "wordCount", - "columnName": "wordCount", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "canUpdate", - "columnName": "canUpdate", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "order", - "columnName": "order", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "originOrder", - "columnName": "originOrder", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "useReplaceRule", - "columnName": "useReplaceRule", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "variable", - "columnName": "variable", - "affinity": "TEXT", - "notNull": false - } - ], - "primaryKey": { - "columnNames": [ - "bookUrl" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_books_bookUrl", - "unique": true, - "columnNames": [ - "bookUrl" - ], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_books_bookUrl` ON `${TABLE_NAME}` (`bookUrl`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "book_groups", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`groupId` INTEGER NOT NULL, `groupName` TEXT NOT NULL, `order` INTEGER NOT NULL, PRIMARY KEY(`groupId`))", - "fields": [ - { - "fieldPath": "groupId", - "columnName": "groupId", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "groupName", - "columnName": "groupName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "order", - "columnName": "order", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "groupId" - ], - "autoGenerate": false - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "book_sources", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`bookSourceName` TEXT NOT NULL, `bookSourceGroup` TEXT, `bookSourceUrl` TEXT NOT NULL, `bookSourceType` INTEGER NOT NULL, `bookUrlPattern` TEXT, `customOrder` INTEGER NOT NULL, `enabled` INTEGER NOT NULL, `enabledExplore` INTEGER NOT NULL, `header` TEXT, `loginUrl` TEXT, `lastUpdateTime` INTEGER NOT NULL, `weight` INTEGER NOT NULL, `exploreUrl` TEXT, `ruleExplore` TEXT, `searchUrl` TEXT, `ruleSearch` TEXT, `ruleBookInfo` TEXT, `ruleToc` TEXT, `ruleContent` TEXT, PRIMARY KEY(`bookSourceUrl`))", - "fields": [ - { - "fieldPath": "bookSourceName", - "columnName": "bookSourceName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookSourceGroup", - "columnName": "bookSourceGroup", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "bookSourceUrl", - "columnName": "bookSourceUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookSourceType", - "columnName": "bookSourceType", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "bookUrlPattern", - "columnName": "bookUrlPattern", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "customOrder", - "columnName": "customOrder", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "enabled", - "columnName": "enabled", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "enabledExplore", - "columnName": "enabledExplore", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "header", - "columnName": "header", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "loginUrl", - "columnName": "loginUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "lastUpdateTime", - "columnName": "lastUpdateTime", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "weight", - "columnName": "weight", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "exploreUrl", - "columnName": "exploreUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleExplore", - "columnName": "ruleExplore", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "searchUrl", - "columnName": "searchUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleSearch", - "columnName": "ruleSearch", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleBookInfo", - "columnName": "ruleBookInfo", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleToc", - "columnName": "ruleToc", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleContent", - "columnName": "ruleContent", - "affinity": "TEXT", - "notNull": false - } - ], - "primaryKey": { - "columnNames": [ - "bookSourceUrl" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_book_sources_bookSourceUrl", - "unique": false, - "columnNames": [ - "bookSourceUrl" - ], - "createSql": "CREATE INDEX IF NOT EXISTS `index_book_sources_bookSourceUrl` ON `${TABLE_NAME}` (`bookSourceUrl`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "chapters", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`url` TEXT NOT NULL, `title` TEXT NOT NULL, `bookUrl` TEXT NOT NULL, `index` INTEGER NOT NULL, `resourceUrl` TEXT, `tag` TEXT, `start` INTEGER, `end` INTEGER, `variable` TEXT, PRIMARY KEY(`url`, `bookUrl`), FOREIGN KEY(`bookUrl`) REFERENCES `books`(`bookUrl`) ON UPDATE NO ACTION ON DELETE CASCADE )", - "fields": [ - { - "fieldPath": "url", - "columnName": "url", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "title", - "columnName": "title", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookUrl", - "columnName": "bookUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "index", - "columnName": "index", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "resourceUrl", - "columnName": "resourceUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "tag", - "columnName": "tag", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "start", - "columnName": "start", - "affinity": "INTEGER", - "notNull": false - }, - { - "fieldPath": "end", - "columnName": "end", - "affinity": "INTEGER", - "notNull": false - }, - { - "fieldPath": "variable", - "columnName": "variable", - "affinity": "TEXT", - "notNull": false - } - ], - "primaryKey": { - "columnNames": [ - "url", - "bookUrl" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_chapters_bookUrl", - "unique": false, - "columnNames": [ - "bookUrl" - ], - "createSql": "CREATE INDEX IF NOT EXISTS `index_chapters_bookUrl` ON `${TABLE_NAME}` (`bookUrl`)" - }, - { - "name": "index_chapters_bookUrl_index", - "unique": true, - "columnNames": [ - "bookUrl", - "index" - ], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_chapters_bookUrl_index` ON `${TABLE_NAME}` (`bookUrl`, `index`)" - } - ], - "foreignKeys": [ - { - "table": "books", - "onDelete": "CASCADE", - "onUpdate": "NO ACTION", - "columns": [ - "bookUrl" - ], - "referencedColumns": [ - "bookUrl" - ] - } - ] - }, - { - "tableName": "replace_rules", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, `name` TEXT NOT NULL, `group` TEXT, `pattern` TEXT NOT NULL, `replacement` TEXT NOT NULL, `scope` TEXT, `isEnabled` INTEGER NOT NULL, `isRegex` INTEGER NOT NULL, `sortOrder` INTEGER NOT NULL)", - "fields": [ - { - "fieldPath": "id", - "columnName": "id", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "group", - "columnName": "group", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "pattern", - "columnName": "pattern", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "replacement", - "columnName": "replacement", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "scope", - "columnName": "scope", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "isEnabled", - "columnName": "isEnabled", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "isRegex", - "columnName": "isRegex", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "order", - "columnName": "sortOrder", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "id" - ], - "autoGenerate": true - }, - "indices": [ - { - "name": "index_replace_rules_id", - "unique": false, - "columnNames": [ - "id" - ], - "createSql": "CREATE INDEX IF NOT EXISTS `index_replace_rules_id` ON `${TABLE_NAME}` (`id`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "searchBooks", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`bookUrl` TEXT NOT NULL, `origin` TEXT NOT NULL, `originName` TEXT NOT NULL, `type` INTEGER NOT NULL, `name` TEXT NOT NULL, `author` TEXT NOT NULL, `kind` TEXT, `coverUrl` TEXT, `intro` TEXT, `wordCount` TEXT, `latestChapterTitle` TEXT, `tocUrl` TEXT NOT NULL, `time` INTEGER NOT NULL, `variable` TEXT, `originOrder` INTEGER NOT NULL, PRIMARY KEY(`bookUrl`), FOREIGN KEY(`origin`) REFERENCES `book_sources`(`bookSourceUrl`) ON UPDATE NO ACTION ON DELETE CASCADE )", - "fields": [ - { - "fieldPath": "bookUrl", - "columnName": "bookUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "origin", - "columnName": "origin", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "originName", - "columnName": "originName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "type", - "columnName": "type", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "author", - "columnName": "author", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "kind", - "columnName": "kind", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "coverUrl", - "columnName": "coverUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "intro", - "columnName": "intro", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "wordCount", - "columnName": "wordCount", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "latestChapterTitle", - "columnName": "latestChapterTitle", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "tocUrl", - "columnName": "tocUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "time", - "columnName": "time", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "variable", - "columnName": "variable", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "originOrder", - "columnName": "originOrder", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "bookUrl" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_searchBooks_bookUrl", - "unique": true, - "columnNames": [ - "bookUrl" - ], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_searchBooks_bookUrl` ON `${TABLE_NAME}` (`bookUrl`)" - }, - { - "name": "index_searchBooks_origin", - "unique": false, - "columnNames": [ - "origin" - ], - "createSql": "CREATE INDEX IF NOT EXISTS `index_searchBooks_origin` ON `${TABLE_NAME}` (`origin`)" - } - ], - "foreignKeys": [ - { - "table": "book_sources", - "onDelete": "CASCADE", - "onUpdate": "NO ACTION", - "columns": [ - "origin" - ], - "referencedColumns": [ - "bookSourceUrl" - ] - } - ] - }, - { - "tableName": "search_keywords", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`word` TEXT NOT NULL, `usage` INTEGER NOT NULL, `lastUseTime` INTEGER NOT NULL, PRIMARY KEY(`word`))", - "fields": [ - { - "fieldPath": "word", - "columnName": "word", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "usage", - "columnName": "usage", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "lastUseTime", - "columnName": "lastUseTime", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "word" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_search_keywords_word", - "unique": true, - "columnNames": [ - "word" - ], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_search_keywords_word` ON `${TABLE_NAME}` (`word`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "cookies", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`url` TEXT NOT NULL, `cookie` TEXT NOT NULL, PRIMARY KEY(`url`))", - "fields": [ - { - "fieldPath": "url", - "columnName": "url", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "cookie", - "columnName": "cookie", - "affinity": "TEXT", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "url" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_cookies_url", - "unique": true, - "columnNames": [ - "url" - ], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_cookies_url` ON `${TABLE_NAME}` (`url`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "rssSources", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`sourceUrl` TEXT NOT NULL, `sourceName` TEXT NOT NULL, `sourceIcon` TEXT NOT NULL, `sourceGroup` TEXT, `enabled` INTEGER NOT NULL, `ruleArticles` TEXT, `ruleNextPage` TEXT, `ruleTitle` TEXT, `rulePubDate` TEXT, `ruleDescription` TEXT, `ruleImage` TEXT, `ruleLink` TEXT, `ruleContent` TEXT, `header` TEXT, `enableJs` INTEGER NOT NULL, `loadWithBaseUrl` INTEGER NOT NULL, `customOrder` INTEGER NOT NULL, PRIMARY KEY(`sourceUrl`))", - "fields": [ - { - "fieldPath": "sourceUrl", - "columnName": "sourceUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "sourceName", - "columnName": "sourceName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "sourceIcon", - "columnName": "sourceIcon", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "sourceGroup", - "columnName": "sourceGroup", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "enabled", - "columnName": "enabled", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "ruleArticles", - "columnName": "ruleArticles", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleNextPage", - "columnName": "ruleNextPage", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleTitle", - "columnName": "ruleTitle", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "rulePubDate", - "columnName": "rulePubDate", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleDescription", - "columnName": "ruleDescription", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleImage", - "columnName": "ruleImage", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleLink", - "columnName": "ruleLink", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleContent", - "columnName": "ruleContent", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "header", - "columnName": "header", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "enableJs", - "columnName": "enableJs", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "loadWithBaseUrl", - "columnName": "loadWithBaseUrl", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "customOrder", - "columnName": "customOrder", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "sourceUrl" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_rssSources_sourceUrl", - "unique": false, - "columnNames": [ - "sourceUrl" - ], - "createSql": "CREATE INDEX IF NOT EXISTS `index_rssSources_sourceUrl` ON `${TABLE_NAME}` (`sourceUrl`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "bookmarks", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`time` INTEGER NOT NULL, `bookUrl` TEXT NOT NULL, `bookName` TEXT NOT NULL, `chapterName` TEXT NOT NULL, `chapterIndex` INTEGER NOT NULL, `pageIndex` INTEGER NOT NULL, `content` TEXT NOT NULL, PRIMARY KEY(`time`))", - "fields": [ - { - "fieldPath": "time", - "columnName": "time", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "bookUrl", - "columnName": "bookUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookName", - "columnName": "bookName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "chapterName", - "columnName": "chapterName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "chapterIndex", - "columnName": "chapterIndex", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "pageIndex", - "columnName": "pageIndex", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "content", - "columnName": "content", - "affinity": "TEXT", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "time" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_bookmarks_bookUrl", - "unique": true, - "columnNames": [ - "bookUrl" - ], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_bookmarks_bookUrl` ON `${TABLE_NAME}` (`bookUrl`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "rssArticles", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`origin` TEXT NOT NULL, `title` TEXT NOT NULL, `order` INTEGER NOT NULL, `link` TEXT NOT NULL, `pubDate` TEXT, `description` TEXT, `content` TEXT, `image` TEXT, `read` INTEGER NOT NULL, PRIMARY KEY(`origin`, `link`))", - "fields": [ - { - "fieldPath": "origin", - "columnName": "origin", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "title", - "columnName": "title", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "order", - "columnName": "order", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "link", - "columnName": "link", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "pubDate", - "columnName": "pubDate", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "description", - "columnName": "description", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "content", - "columnName": "content", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "image", - "columnName": "image", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "read", - "columnName": "read", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "origin", - "link" - ], - "autoGenerate": false - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "rssStars", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`origin` TEXT NOT NULL, `title` TEXT NOT NULL, `starTime` INTEGER NOT NULL, `link` TEXT NOT NULL, `pubDate` TEXT, `description` TEXT, `content` TEXT, `image` TEXT, PRIMARY KEY(`origin`, `link`))", - "fields": [ - { - "fieldPath": "origin", - "columnName": "origin", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "title", - "columnName": "title", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "starTime", - "columnName": "starTime", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "link", - "columnName": "link", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "pubDate", - "columnName": "pubDate", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "description", - "columnName": "description", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "content", - "columnName": "content", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "image", - "columnName": "image", - "affinity": "TEXT", - "notNull": false - } - ], - "primaryKey": { - "columnNames": [ - "origin", - "link" - ], - "autoGenerate": false - }, - "indices": [], - "foreignKeys": [] - } - ], - "views": [], - "setupQueries": [ - "CREATE TABLE IF NOT EXISTS room_master_table (id INTEGER PRIMARY KEY,identity_hash TEXT)", - "INSERT OR REPLACE INTO room_master_table (id,identity_hash) VALUES(42, '3b81b2e900be34b8ceb48aaacc6b1004')" - ] - } -} \ No newline at end of file diff --git a/app/schemas/io.legado.app.data.AppDatabase/40.json b/app/schemas/io.legado.app.data.AppDatabase/40.json deleted file mode 100644 index 0bbd935aa..000000000 --- a/app/schemas/io.legado.app.data.AppDatabase/40.json +++ /dev/null @@ -1,1483 +0,0 @@ -{ - "formatVersion": 1, - "database": { - "version": 40, - "identityHash": "09617e0520cd8ec1671d812a866b45a4", - "entities": [ - { - "tableName": "books", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`bookUrl` TEXT NOT NULL, `tocUrl` TEXT NOT NULL, `origin` TEXT NOT NULL, `originName` TEXT NOT NULL, `name` TEXT NOT NULL, `author` TEXT NOT NULL, `kind` TEXT, `customTag` TEXT, `coverUrl` TEXT, `customCoverUrl` TEXT, `intro` TEXT, `customIntro` TEXT, `charset` TEXT, `type` INTEGER NOT NULL, `group` INTEGER NOT NULL, `latestChapterTitle` TEXT, `latestChapterTime` INTEGER NOT NULL, `lastCheckTime` INTEGER NOT NULL, `lastCheckCount` INTEGER NOT NULL, `totalChapterNum` INTEGER NOT NULL, `durChapterTitle` TEXT, `durChapterIndex` INTEGER NOT NULL, `durChapterPos` INTEGER NOT NULL, `durChapterTime` INTEGER NOT NULL, `wordCount` TEXT, `canUpdate` INTEGER NOT NULL, `order` INTEGER NOT NULL, `originOrder` INTEGER NOT NULL, `variable` TEXT, `readConfig` TEXT, PRIMARY KEY(`bookUrl`))", - "fields": [ - { - "fieldPath": "bookUrl", - "columnName": "bookUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "tocUrl", - "columnName": "tocUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "origin", - "columnName": "origin", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "originName", - "columnName": "originName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "author", - "columnName": "author", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "kind", - "columnName": "kind", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "customTag", - "columnName": "customTag", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "coverUrl", - "columnName": "coverUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "customCoverUrl", - "columnName": "customCoverUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "intro", - "columnName": "intro", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "customIntro", - "columnName": "customIntro", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "charset", - "columnName": "charset", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "type", - "columnName": "type", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "group", - "columnName": "group", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "latestChapterTitle", - "columnName": "latestChapterTitle", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "latestChapterTime", - "columnName": "latestChapterTime", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "lastCheckTime", - "columnName": "lastCheckTime", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "lastCheckCount", - "columnName": "lastCheckCount", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "totalChapterNum", - "columnName": "totalChapterNum", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "durChapterTitle", - "columnName": "durChapterTitle", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "durChapterIndex", - "columnName": "durChapterIndex", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "durChapterPos", - "columnName": "durChapterPos", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "durChapterTime", - "columnName": "durChapterTime", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "wordCount", - "columnName": "wordCount", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "canUpdate", - "columnName": "canUpdate", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "order", - "columnName": "order", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "originOrder", - "columnName": "originOrder", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "variable", - "columnName": "variable", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "readConfig", - "columnName": "readConfig", - "affinity": "TEXT", - "notNull": false - } - ], - "primaryKey": { - "columnNames": [ - "bookUrl" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_books_name_author", - "unique": true, - "columnNames": [ - "name", - "author" - ], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_books_name_author` ON `${TABLE_NAME}` (`name`, `author`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "book_groups", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`groupId` INTEGER NOT NULL, `groupName` TEXT NOT NULL, `cover` TEXT, `order` INTEGER NOT NULL, `show` INTEGER NOT NULL, PRIMARY KEY(`groupId`))", - "fields": [ - { - "fieldPath": "groupId", - "columnName": "groupId", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "groupName", - "columnName": "groupName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "cover", - "columnName": "cover", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "order", - "columnName": "order", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "show", - "columnName": "show", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "groupId" - ], - "autoGenerate": false - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "book_sources", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`bookSourceName` TEXT NOT NULL, `bookSourceGroup` TEXT, `bookSourceUrl` TEXT NOT NULL, `bookSourceType` INTEGER NOT NULL, `bookUrlPattern` TEXT, `customOrder` INTEGER NOT NULL, `enabled` INTEGER NOT NULL, `enabledExplore` INTEGER NOT NULL, `concurrentRate` TEXT, `header` TEXT, `loginUrl` TEXT, `loginUi` TEXT, `loginCheckJs` TEXT, `bookSourceComment` TEXT, `lastUpdateTime` INTEGER NOT NULL, `respondTime` INTEGER NOT NULL, `weight` INTEGER NOT NULL, `exploreUrl` TEXT, `ruleExplore` TEXT, `searchUrl` TEXT, `ruleSearch` TEXT, `ruleBookInfo` TEXT, `ruleToc` TEXT, `ruleContent` TEXT, PRIMARY KEY(`bookSourceUrl`))", - "fields": [ - { - "fieldPath": "bookSourceName", - "columnName": "bookSourceName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookSourceGroup", - "columnName": "bookSourceGroup", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "bookSourceUrl", - "columnName": "bookSourceUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookSourceType", - "columnName": "bookSourceType", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "bookUrlPattern", - "columnName": "bookUrlPattern", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "customOrder", - "columnName": "customOrder", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "enabled", - "columnName": "enabled", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "enabledExplore", - "columnName": "enabledExplore", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "concurrentRate", - "columnName": "concurrentRate", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "header", - "columnName": "header", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "loginUrl", - "columnName": "loginUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "loginUi", - "columnName": "loginUi", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "loginCheckJs", - "columnName": "loginCheckJs", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "bookSourceComment", - "columnName": "bookSourceComment", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "lastUpdateTime", - "columnName": "lastUpdateTime", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "respondTime", - "columnName": "respondTime", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "weight", - "columnName": "weight", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "exploreUrl", - "columnName": "exploreUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleExplore", - "columnName": "ruleExplore", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "searchUrl", - "columnName": "searchUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleSearch", - "columnName": "ruleSearch", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleBookInfo", - "columnName": "ruleBookInfo", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleToc", - "columnName": "ruleToc", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleContent", - "columnName": "ruleContent", - "affinity": "TEXT", - "notNull": false - } - ], - "primaryKey": { - "columnNames": [ - "bookSourceUrl" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_book_sources_bookSourceUrl", - "unique": false, - "columnNames": [ - "bookSourceUrl" - ], - "createSql": "CREATE INDEX IF NOT EXISTS `index_book_sources_bookSourceUrl` ON `${TABLE_NAME}` (`bookSourceUrl`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "chapters", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`url` TEXT NOT NULL, `title` TEXT NOT NULL, `baseUrl` TEXT NOT NULL, `bookUrl` TEXT NOT NULL, `index` INTEGER NOT NULL, `isVip` INTEGER NOT NULL, `isPay` INTEGER NOT NULL, `resourceUrl` TEXT, `tag` TEXT, `start` INTEGER, `end` INTEGER, `startFragmentId` TEXT, `endFragmentId` TEXT, `variable` TEXT, PRIMARY KEY(`url`, `bookUrl`), FOREIGN KEY(`bookUrl`) REFERENCES `books`(`bookUrl`) ON UPDATE NO ACTION ON DELETE CASCADE )", - "fields": [ - { - "fieldPath": "url", - "columnName": "url", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "title", - "columnName": "title", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "baseUrl", - "columnName": "baseUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookUrl", - "columnName": "bookUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "index", - "columnName": "index", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "isVip", - "columnName": "isVip", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "isPay", - "columnName": "isPay", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "resourceUrl", - "columnName": "resourceUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "tag", - "columnName": "tag", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "start", - "columnName": "start", - "affinity": "INTEGER", - "notNull": false - }, - { - "fieldPath": "end", - "columnName": "end", - "affinity": "INTEGER", - "notNull": false - }, - { - "fieldPath": "startFragmentId", - "columnName": "startFragmentId", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "endFragmentId", - "columnName": "endFragmentId", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "variable", - "columnName": "variable", - "affinity": "TEXT", - "notNull": false - } - ], - "primaryKey": { - "columnNames": [ - "url", - "bookUrl" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_chapters_bookUrl", - "unique": false, - "columnNames": [ - "bookUrl" - ], - "createSql": "CREATE INDEX IF NOT EXISTS `index_chapters_bookUrl` ON `${TABLE_NAME}` (`bookUrl`)" - }, - { - "name": "index_chapters_bookUrl_index", - "unique": true, - "columnNames": [ - "bookUrl", - "index" - ], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_chapters_bookUrl_index` ON `${TABLE_NAME}` (`bookUrl`, `index`)" - } - ], - "foreignKeys": [ - { - "table": "books", - "onDelete": "CASCADE", - "onUpdate": "NO ACTION", - "columns": [ - "bookUrl" - ], - "referencedColumns": [ - "bookUrl" - ] - } - ] - }, - { - "tableName": "replace_rules", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, `name` TEXT NOT NULL, `group` TEXT, `pattern` TEXT NOT NULL, `replacement` TEXT NOT NULL, `scope` TEXT, `isEnabled` INTEGER NOT NULL, `isRegex` INTEGER NOT NULL, `sortOrder` INTEGER NOT NULL)", - "fields": [ - { - "fieldPath": "id", - "columnName": "id", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "group", - "columnName": "group", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "pattern", - "columnName": "pattern", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "replacement", - "columnName": "replacement", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "scope", - "columnName": "scope", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "isEnabled", - "columnName": "isEnabled", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "isRegex", - "columnName": "isRegex", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "order", - "columnName": "sortOrder", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "id" - ], - "autoGenerate": true - }, - "indices": [ - { - "name": "index_replace_rules_id", - "unique": false, - "columnNames": [ - "id" - ], - "createSql": "CREATE INDEX IF NOT EXISTS `index_replace_rules_id` ON `${TABLE_NAME}` (`id`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "searchBooks", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`bookUrl` TEXT NOT NULL, `origin` TEXT NOT NULL, `originName` TEXT NOT NULL, `type` INTEGER NOT NULL, `name` TEXT NOT NULL, `author` TEXT NOT NULL, `kind` TEXT, `coverUrl` TEXT, `intro` TEXT, `wordCount` TEXT, `latestChapterTitle` TEXT, `tocUrl` TEXT NOT NULL, `time` INTEGER NOT NULL, `variable` TEXT, `originOrder` INTEGER NOT NULL, PRIMARY KEY(`bookUrl`), FOREIGN KEY(`origin`) REFERENCES `book_sources`(`bookSourceUrl`) ON UPDATE NO ACTION ON DELETE CASCADE )", - "fields": [ - { - "fieldPath": "bookUrl", - "columnName": "bookUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "origin", - "columnName": "origin", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "originName", - "columnName": "originName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "type", - "columnName": "type", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "author", - "columnName": "author", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "kind", - "columnName": "kind", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "coverUrl", - "columnName": "coverUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "intro", - "columnName": "intro", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "wordCount", - "columnName": "wordCount", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "latestChapterTitle", - "columnName": "latestChapterTitle", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "tocUrl", - "columnName": "tocUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "time", - "columnName": "time", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "variable", - "columnName": "variable", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "originOrder", - "columnName": "originOrder", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "bookUrl" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_searchBooks_bookUrl", - "unique": true, - "columnNames": [ - "bookUrl" - ], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_searchBooks_bookUrl` ON `${TABLE_NAME}` (`bookUrl`)" - }, - { - "name": "index_searchBooks_origin", - "unique": false, - "columnNames": [ - "origin" - ], - "createSql": "CREATE INDEX IF NOT EXISTS `index_searchBooks_origin` ON `${TABLE_NAME}` (`origin`)" - } - ], - "foreignKeys": [ - { - "table": "book_sources", - "onDelete": "CASCADE", - "onUpdate": "NO ACTION", - "columns": [ - "origin" - ], - "referencedColumns": [ - "bookSourceUrl" - ] - } - ] - }, - { - "tableName": "search_keywords", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`word` TEXT NOT NULL, `usage` INTEGER NOT NULL, `lastUseTime` INTEGER NOT NULL, PRIMARY KEY(`word`))", - "fields": [ - { - "fieldPath": "word", - "columnName": "word", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "usage", - "columnName": "usage", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "lastUseTime", - "columnName": "lastUseTime", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "word" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_search_keywords_word", - "unique": true, - "columnNames": [ - "word" - ], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_search_keywords_word` ON `${TABLE_NAME}` (`word`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "cookies", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`url` TEXT NOT NULL, `cookie` TEXT NOT NULL, PRIMARY KEY(`url`))", - "fields": [ - { - "fieldPath": "url", - "columnName": "url", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "cookie", - "columnName": "cookie", - "affinity": "TEXT", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "url" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_cookies_url", - "unique": true, - "columnNames": [ - "url" - ], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_cookies_url` ON `${TABLE_NAME}` (`url`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "rssSources", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`sourceUrl` TEXT NOT NULL, `sourceName` TEXT NOT NULL, `sourceIcon` TEXT NOT NULL, `sourceGroup` TEXT, `sourceComment` TEXT, `enabled` INTEGER NOT NULL, `concurrentRate` TEXT, `header` TEXT, `loginUrl` TEXT, `loginUi` TEXT, `loginCheckJs` TEXT, `sortUrl` TEXT, `singleUrl` INTEGER NOT NULL, `articleStyle` INTEGER NOT NULL, `ruleArticles` TEXT, `ruleNextPage` TEXT, `ruleTitle` TEXT, `rulePubDate` TEXT, `ruleDescription` TEXT, `ruleImage` TEXT, `ruleLink` TEXT, `ruleContent` TEXT, `style` TEXT, `enableJs` INTEGER NOT NULL, `loadWithBaseUrl` INTEGER NOT NULL, `customOrder` INTEGER NOT NULL, PRIMARY KEY(`sourceUrl`))", - "fields": [ - { - "fieldPath": "sourceUrl", - "columnName": "sourceUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "sourceName", - "columnName": "sourceName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "sourceIcon", - "columnName": "sourceIcon", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "sourceGroup", - "columnName": "sourceGroup", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "sourceComment", - "columnName": "sourceComment", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "enabled", - "columnName": "enabled", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "concurrentRate", - "columnName": "concurrentRate", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "header", - "columnName": "header", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "loginUrl", - "columnName": "loginUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "loginUi", - "columnName": "loginUi", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "loginCheckJs", - "columnName": "loginCheckJs", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "sortUrl", - "columnName": "sortUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "singleUrl", - "columnName": "singleUrl", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "articleStyle", - "columnName": "articleStyle", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "ruleArticles", - "columnName": "ruleArticles", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleNextPage", - "columnName": "ruleNextPage", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleTitle", - "columnName": "ruleTitle", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "rulePubDate", - "columnName": "rulePubDate", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleDescription", - "columnName": "ruleDescription", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleImage", - "columnName": "ruleImage", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleLink", - "columnName": "ruleLink", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleContent", - "columnName": "ruleContent", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "style", - "columnName": "style", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "enableJs", - "columnName": "enableJs", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "loadWithBaseUrl", - "columnName": "loadWithBaseUrl", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "customOrder", - "columnName": "customOrder", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "sourceUrl" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_rssSources_sourceUrl", - "unique": false, - "columnNames": [ - "sourceUrl" - ], - "createSql": "CREATE INDEX IF NOT EXISTS `index_rssSources_sourceUrl` ON `${TABLE_NAME}` (`sourceUrl`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "bookmarks", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`time` INTEGER NOT NULL, `bookName` TEXT NOT NULL, `bookAuthor` TEXT NOT NULL, `chapterIndex` INTEGER NOT NULL, `chapterPos` INTEGER NOT NULL, `chapterName` TEXT NOT NULL, `bookText` TEXT NOT NULL, `content` TEXT NOT NULL, PRIMARY KEY(`time`))", - "fields": [ - { - "fieldPath": "time", - "columnName": "time", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "bookName", - "columnName": "bookName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookAuthor", - "columnName": "bookAuthor", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "chapterIndex", - "columnName": "chapterIndex", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "chapterPos", - "columnName": "chapterPos", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "chapterName", - "columnName": "chapterName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookText", - "columnName": "bookText", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "content", - "columnName": "content", - "affinity": "TEXT", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "time" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_bookmarks_bookName_bookAuthor", - "unique": false, - "columnNames": [ - "bookName", - "bookAuthor" - ], - "createSql": "CREATE INDEX IF NOT EXISTS `index_bookmarks_bookName_bookAuthor` ON `${TABLE_NAME}` (`bookName`, `bookAuthor`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "rssArticles", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`origin` TEXT NOT NULL, `sort` TEXT NOT NULL, `title` TEXT NOT NULL, `order` INTEGER NOT NULL, `link` TEXT NOT NULL, `pubDate` TEXT, `description` TEXT, `content` TEXT, `image` TEXT, `read` INTEGER NOT NULL, `variable` TEXT, PRIMARY KEY(`origin`, `link`))", - "fields": [ - { - "fieldPath": "origin", - "columnName": "origin", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "sort", - "columnName": "sort", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "title", - "columnName": "title", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "order", - "columnName": "order", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "link", - "columnName": "link", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "pubDate", - "columnName": "pubDate", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "description", - "columnName": "description", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "content", - "columnName": "content", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "image", - "columnName": "image", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "read", - "columnName": "read", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "variable", - "columnName": "variable", - "affinity": "TEXT", - "notNull": false - } - ], - "primaryKey": { - "columnNames": [ - "origin", - "link" - ], - "autoGenerate": false - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "rssReadRecords", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`record` TEXT NOT NULL, `read` INTEGER NOT NULL, PRIMARY KEY(`record`))", - "fields": [ - { - "fieldPath": "record", - "columnName": "record", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "read", - "columnName": "read", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "record" - ], - "autoGenerate": false - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "rssStars", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`origin` TEXT NOT NULL, `sort` TEXT NOT NULL, `title` TEXT NOT NULL, `starTime` INTEGER NOT NULL, `link` TEXT NOT NULL, `pubDate` TEXT, `description` TEXT, `content` TEXT, `image` TEXT, `variable` TEXT, PRIMARY KEY(`origin`, `link`))", - "fields": [ - { - "fieldPath": "origin", - "columnName": "origin", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "sort", - "columnName": "sort", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "title", - "columnName": "title", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "starTime", - "columnName": "starTime", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "link", - "columnName": "link", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "pubDate", - "columnName": "pubDate", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "description", - "columnName": "description", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "content", - "columnName": "content", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "image", - "columnName": "image", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "variable", - "columnName": "variable", - "affinity": "TEXT", - "notNull": false - } - ], - "primaryKey": { - "columnNames": [ - "origin", - "link" - ], - "autoGenerate": false - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "txtTocRules", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER NOT NULL, `name` TEXT NOT NULL, `rule` TEXT NOT NULL, `serialNumber` INTEGER NOT NULL, `enable` INTEGER NOT NULL, PRIMARY KEY(`id`))", - "fields": [ - { - "fieldPath": "id", - "columnName": "id", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "rule", - "columnName": "rule", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "serialNumber", - "columnName": "serialNumber", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "enable", - "columnName": "enable", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "id" - ], - "autoGenerate": false - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "readRecord", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`deviceId` TEXT NOT NULL, `bookName` TEXT NOT NULL, `readTime` INTEGER NOT NULL, PRIMARY KEY(`deviceId`, `bookName`))", - "fields": [ - { - "fieldPath": "deviceId", - "columnName": "deviceId", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookName", - "columnName": "bookName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "readTime", - "columnName": "readTime", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "deviceId", - "bookName" - ], - "autoGenerate": false - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "httpTTS", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER NOT NULL, `name` TEXT NOT NULL, `url` TEXT NOT NULL, PRIMARY KEY(`id`))", - "fields": [ - { - "fieldPath": "id", - "columnName": "id", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "url", - "columnName": "url", - "affinity": "TEXT", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "id" - ], - "autoGenerate": false - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "caches", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`key` TEXT NOT NULL, `value` TEXT, `deadline` INTEGER NOT NULL, PRIMARY KEY(`key`))", - "fields": [ - { - "fieldPath": "key", - "columnName": "key", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "value", - "columnName": "value", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "deadline", - "columnName": "deadline", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "key" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_caches_key", - "unique": true, - "columnNames": [ - "key" - ], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_caches_key` ON `${TABLE_NAME}` (`key`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "ruleSubs", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER NOT NULL, `name` TEXT NOT NULL, `url` TEXT NOT NULL, `type` INTEGER NOT NULL, `customOrder` INTEGER NOT NULL, `autoUpdate` INTEGER NOT NULL, `update` INTEGER NOT NULL, PRIMARY KEY(`id`))", - "fields": [ - { - "fieldPath": "id", - "columnName": "id", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "url", - "columnName": "url", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "type", - "columnName": "type", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "customOrder", - "columnName": "customOrder", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "autoUpdate", - "columnName": "autoUpdate", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "update", - "columnName": "update", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "id" - ], - "autoGenerate": false - }, - "indices": [], - "foreignKeys": [] - } - ], - "views": [], - "setupQueries": [ - "CREATE TABLE IF NOT EXISTS room_master_table (id INTEGER PRIMARY KEY,identity_hash TEXT)", - "INSERT OR REPLACE INTO room_master_table (id,identity_hash) VALUES(42, '09617e0520cd8ec1671d812a866b45a4')" - ] - } -} \ No newline at end of file diff --git a/app/schemas/io.legado.app.data.AppDatabase/41.json b/app/schemas/io.legado.app.data.AppDatabase/41.json deleted file mode 100644 index c04ce26a1..000000000 --- a/app/schemas/io.legado.app.data.AppDatabase/41.json +++ /dev/null @@ -1,1513 +0,0 @@ -{ - "formatVersion": 1, - "database": { - "version": 41, - "identityHash": "6fbd1d1b3918bcc6db113ad108e6b924", - "entities": [ - { - "tableName": "books", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`bookUrl` TEXT NOT NULL, `tocUrl` TEXT NOT NULL, `origin` TEXT NOT NULL, `originName` TEXT NOT NULL, `name` TEXT NOT NULL, `author` TEXT NOT NULL, `kind` TEXT, `customTag` TEXT, `coverUrl` TEXT, `customCoverUrl` TEXT, `intro` TEXT, `customIntro` TEXT, `charset` TEXT, `type` INTEGER NOT NULL, `group` INTEGER NOT NULL, `latestChapterTitle` TEXT, `latestChapterTime` INTEGER NOT NULL, `lastCheckTime` INTEGER NOT NULL, `lastCheckCount` INTEGER NOT NULL, `totalChapterNum` INTEGER NOT NULL, `durChapterTitle` TEXT, `durChapterIndex` INTEGER NOT NULL, `durChapterPos` INTEGER NOT NULL, `durChapterTime` INTEGER NOT NULL, `wordCount` TEXT, `canUpdate` INTEGER NOT NULL, `order` INTEGER NOT NULL, `originOrder` INTEGER NOT NULL, `variable` TEXT, `readConfig` TEXT, PRIMARY KEY(`bookUrl`))", - "fields": [ - { - "fieldPath": "bookUrl", - "columnName": "bookUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "tocUrl", - "columnName": "tocUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "origin", - "columnName": "origin", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "originName", - "columnName": "originName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "author", - "columnName": "author", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "kind", - "columnName": "kind", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "customTag", - "columnName": "customTag", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "coverUrl", - "columnName": "coverUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "customCoverUrl", - "columnName": "customCoverUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "intro", - "columnName": "intro", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "customIntro", - "columnName": "customIntro", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "charset", - "columnName": "charset", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "type", - "columnName": "type", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "group", - "columnName": "group", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "latestChapterTitle", - "columnName": "latestChapterTitle", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "latestChapterTime", - "columnName": "latestChapterTime", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "lastCheckTime", - "columnName": "lastCheckTime", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "lastCheckCount", - "columnName": "lastCheckCount", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "totalChapterNum", - "columnName": "totalChapterNum", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "durChapterTitle", - "columnName": "durChapterTitle", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "durChapterIndex", - "columnName": "durChapterIndex", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "durChapterPos", - "columnName": "durChapterPos", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "durChapterTime", - "columnName": "durChapterTime", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "wordCount", - "columnName": "wordCount", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "canUpdate", - "columnName": "canUpdate", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "order", - "columnName": "order", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "originOrder", - "columnName": "originOrder", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "variable", - "columnName": "variable", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "readConfig", - "columnName": "readConfig", - "affinity": "TEXT", - "notNull": false - } - ], - "primaryKey": { - "columnNames": [ - "bookUrl" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_books_name_author", - "unique": true, - "columnNames": [ - "name", - "author" - ], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_books_name_author` ON `${TABLE_NAME}` (`name`, `author`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "book_groups", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`groupId` INTEGER NOT NULL, `groupName` TEXT NOT NULL, `cover` TEXT, `order` INTEGER NOT NULL, `show` INTEGER NOT NULL, PRIMARY KEY(`groupId`))", - "fields": [ - { - "fieldPath": "groupId", - "columnName": "groupId", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "groupName", - "columnName": "groupName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "cover", - "columnName": "cover", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "order", - "columnName": "order", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "show", - "columnName": "show", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "groupId" - ], - "autoGenerate": false - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "book_sources", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`bookSourceName` TEXT NOT NULL, `bookSourceGroup` TEXT, `bookSourceUrl` TEXT NOT NULL, `bookSourceType` INTEGER NOT NULL, `bookUrlPattern` TEXT, `customOrder` INTEGER NOT NULL, `enabled` INTEGER NOT NULL, `enabledExplore` INTEGER NOT NULL, `concurrentRate` TEXT, `header` TEXT, `loginUrl` TEXT, `loginUi` TEXT, `loginCheckJs` TEXT, `bookSourceComment` TEXT, `lastUpdateTime` INTEGER NOT NULL, `respondTime` INTEGER NOT NULL, `weight` INTEGER NOT NULL, `exploreUrl` TEXT, `ruleExplore` TEXT, `searchUrl` TEXT, `ruleSearch` TEXT, `ruleBookInfo` TEXT, `ruleToc` TEXT, `ruleContent` TEXT, PRIMARY KEY(`bookSourceUrl`))", - "fields": [ - { - "fieldPath": "bookSourceName", - "columnName": "bookSourceName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookSourceGroup", - "columnName": "bookSourceGroup", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "bookSourceUrl", - "columnName": "bookSourceUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookSourceType", - "columnName": "bookSourceType", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "bookUrlPattern", - "columnName": "bookUrlPattern", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "customOrder", - "columnName": "customOrder", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "enabled", - "columnName": "enabled", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "enabledExplore", - "columnName": "enabledExplore", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "concurrentRate", - "columnName": "concurrentRate", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "header", - "columnName": "header", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "loginUrl", - "columnName": "loginUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "loginUi", - "columnName": "loginUi", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "loginCheckJs", - "columnName": "loginCheckJs", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "bookSourceComment", - "columnName": "bookSourceComment", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "lastUpdateTime", - "columnName": "lastUpdateTime", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "respondTime", - "columnName": "respondTime", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "weight", - "columnName": "weight", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "exploreUrl", - "columnName": "exploreUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleExplore", - "columnName": "ruleExplore", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "searchUrl", - "columnName": "searchUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleSearch", - "columnName": "ruleSearch", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleBookInfo", - "columnName": "ruleBookInfo", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleToc", - "columnName": "ruleToc", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleContent", - "columnName": "ruleContent", - "affinity": "TEXT", - "notNull": false - } - ], - "primaryKey": { - "columnNames": [ - "bookSourceUrl" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_book_sources_bookSourceUrl", - "unique": false, - "columnNames": [ - "bookSourceUrl" - ], - "createSql": "CREATE INDEX IF NOT EXISTS `index_book_sources_bookSourceUrl` ON `${TABLE_NAME}` (`bookSourceUrl`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "chapters", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`url` TEXT NOT NULL, `title` TEXT NOT NULL, `baseUrl` TEXT NOT NULL, `bookUrl` TEXT NOT NULL, `index` INTEGER NOT NULL, `isVip` INTEGER NOT NULL, `isPay` INTEGER NOT NULL, `resourceUrl` TEXT, `tag` TEXT, `start` INTEGER, `end` INTEGER, `startFragmentId` TEXT, `endFragmentId` TEXT, `variable` TEXT, PRIMARY KEY(`url`, `bookUrl`), FOREIGN KEY(`bookUrl`) REFERENCES `books`(`bookUrl`) ON UPDATE NO ACTION ON DELETE CASCADE )", - "fields": [ - { - "fieldPath": "url", - "columnName": "url", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "title", - "columnName": "title", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "baseUrl", - "columnName": "baseUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookUrl", - "columnName": "bookUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "index", - "columnName": "index", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "isVip", - "columnName": "isVip", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "isPay", - "columnName": "isPay", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "resourceUrl", - "columnName": "resourceUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "tag", - "columnName": "tag", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "start", - "columnName": "start", - "affinity": "INTEGER", - "notNull": false - }, - { - "fieldPath": "end", - "columnName": "end", - "affinity": "INTEGER", - "notNull": false - }, - { - "fieldPath": "startFragmentId", - "columnName": "startFragmentId", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "endFragmentId", - "columnName": "endFragmentId", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "variable", - "columnName": "variable", - "affinity": "TEXT", - "notNull": false - } - ], - "primaryKey": { - "columnNames": [ - "url", - "bookUrl" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_chapters_bookUrl", - "unique": false, - "columnNames": [ - "bookUrl" - ], - "createSql": "CREATE INDEX IF NOT EXISTS `index_chapters_bookUrl` ON `${TABLE_NAME}` (`bookUrl`)" - }, - { - "name": "index_chapters_bookUrl_index", - "unique": true, - "columnNames": [ - "bookUrl", - "index" - ], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_chapters_bookUrl_index` ON `${TABLE_NAME}` (`bookUrl`, `index`)" - } - ], - "foreignKeys": [ - { - "table": "books", - "onDelete": "CASCADE", - "onUpdate": "NO ACTION", - "columns": [ - "bookUrl" - ], - "referencedColumns": [ - "bookUrl" - ] - } - ] - }, - { - "tableName": "replace_rules", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, `name` TEXT NOT NULL, `group` TEXT, `pattern` TEXT NOT NULL, `replacement` TEXT NOT NULL, `scope` TEXT, `isEnabled` INTEGER NOT NULL, `isRegex` INTEGER NOT NULL, `sortOrder` INTEGER NOT NULL)", - "fields": [ - { - "fieldPath": "id", - "columnName": "id", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "group", - "columnName": "group", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "pattern", - "columnName": "pattern", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "replacement", - "columnName": "replacement", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "scope", - "columnName": "scope", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "isEnabled", - "columnName": "isEnabled", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "isRegex", - "columnName": "isRegex", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "order", - "columnName": "sortOrder", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "id" - ], - "autoGenerate": true - }, - "indices": [ - { - "name": "index_replace_rules_id", - "unique": false, - "columnNames": [ - "id" - ], - "createSql": "CREATE INDEX IF NOT EXISTS `index_replace_rules_id` ON `${TABLE_NAME}` (`id`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "searchBooks", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`bookUrl` TEXT NOT NULL, `origin` TEXT NOT NULL, `originName` TEXT NOT NULL, `type` INTEGER NOT NULL, `name` TEXT NOT NULL, `author` TEXT NOT NULL, `kind` TEXT, `coverUrl` TEXT, `intro` TEXT, `wordCount` TEXT, `latestChapterTitle` TEXT, `tocUrl` TEXT NOT NULL, `time` INTEGER NOT NULL, `variable` TEXT, `originOrder` INTEGER NOT NULL, PRIMARY KEY(`bookUrl`), FOREIGN KEY(`origin`) REFERENCES `book_sources`(`bookSourceUrl`) ON UPDATE NO ACTION ON DELETE CASCADE )", - "fields": [ - { - "fieldPath": "bookUrl", - "columnName": "bookUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "origin", - "columnName": "origin", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "originName", - "columnName": "originName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "type", - "columnName": "type", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "author", - "columnName": "author", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "kind", - "columnName": "kind", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "coverUrl", - "columnName": "coverUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "intro", - "columnName": "intro", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "wordCount", - "columnName": "wordCount", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "latestChapterTitle", - "columnName": "latestChapterTitle", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "tocUrl", - "columnName": "tocUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "time", - "columnName": "time", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "variable", - "columnName": "variable", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "originOrder", - "columnName": "originOrder", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "bookUrl" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_searchBooks_bookUrl", - "unique": true, - "columnNames": [ - "bookUrl" - ], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_searchBooks_bookUrl` ON `${TABLE_NAME}` (`bookUrl`)" - }, - { - "name": "index_searchBooks_origin", - "unique": false, - "columnNames": [ - "origin" - ], - "createSql": "CREATE INDEX IF NOT EXISTS `index_searchBooks_origin` ON `${TABLE_NAME}` (`origin`)" - } - ], - "foreignKeys": [ - { - "table": "book_sources", - "onDelete": "CASCADE", - "onUpdate": "NO ACTION", - "columns": [ - "origin" - ], - "referencedColumns": [ - "bookSourceUrl" - ] - } - ] - }, - { - "tableName": "search_keywords", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`word` TEXT NOT NULL, `usage` INTEGER NOT NULL, `lastUseTime` INTEGER NOT NULL, PRIMARY KEY(`word`))", - "fields": [ - { - "fieldPath": "word", - "columnName": "word", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "usage", - "columnName": "usage", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "lastUseTime", - "columnName": "lastUseTime", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "word" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_search_keywords_word", - "unique": true, - "columnNames": [ - "word" - ], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_search_keywords_word` ON `${TABLE_NAME}` (`word`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "cookies", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`url` TEXT NOT NULL, `cookie` TEXT NOT NULL, PRIMARY KEY(`url`))", - "fields": [ - { - "fieldPath": "url", - "columnName": "url", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "cookie", - "columnName": "cookie", - "affinity": "TEXT", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "url" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_cookies_url", - "unique": true, - "columnNames": [ - "url" - ], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_cookies_url` ON `${TABLE_NAME}` (`url`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "rssSources", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`sourceUrl` TEXT NOT NULL, `sourceName` TEXT NOT NULL, `sourceIcon` TEXT NOT NULL, `sourceGroup` TEXT, `sourceComment` TEXT, `enabled` INTEGER NOT NULL, `concurrentRate` TEXT, `header` TEXT, `loginUrl` TEXT, `loginUi` TEXT, `loginCheckJs` TEXT, `sortUrl` TEXT, `singleUrl` INTEGER NOT NULL, `articleStyle` INTEGER NOT NULL, `ruleArticles` TEXT, `ruleNextPage` TEXT, `ruleTitle` TEXT, `rulePubDate` TEXT, `ruleDescription` TEXT, `ruleImage` TEXT, `ruleLink` TEXT, `ruleContent` TEXT, `style` TEXT, `enableJs` INTEGER NOT NULL, `loadWithBaseUrl` INTEGER NOT NULL, `customOrder` INTEGER NOT NULL, PRIMARY KEY(`sourceUrl`))", - "fields": [ - { - "fieldPath": "sourceUrl", - "columnName": "sourceUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "sourceName", - "columnName": "sourceName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "sourceIcon", - "columnName": "sourceIcon", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "sourceGroup", - "columnName": "sourceGroup", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "sourceComment", - "columnName": "sourceComment", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "enabled", - "columnName": "enabled", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "concurrentRate", - "columnName": "concurrentRate", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "header", - "columnName": "header", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "loginUrl", - "columnName": "loginUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "loginUi", - "columnName": "loginUi", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "loginCheckJs", - "columnName": "loginCheckJs", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "sortUrl", - "columnName": "sortUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "singleUrl", - "columnName": "singleUrl", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "articleStyle", - "columnName": "articleStyle", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "ruleArticles", - "columnName": "ruleArticles", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleNextPage", - "columnName": "ruleNextPage", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleTitle", - "columnName": "ruleTitle", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "rulePubDate", - "columnName": "rulePubDate", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleDescription", - "columnName": "ruleDescription", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleImage", - "columnName": "ruleImage", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleLink", - "columnName": "ruleLink", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleContent", - "columnName": "ruleContent", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "style", - "columnName": "style", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "enableJs", - "columnName": "enableJs", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "loadWithBaseUrl", - "columnName": "loadWithBaseUrl", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "customOrder", - "columnName": "customOrder", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "sourceUrl" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_rssSources_sourceUrl", - "unique": false, - "columnNames": [ - "sourceUrl" - ], - "createSql": "CREATE INDEX IF NOT EXISTS `index_rssSources_sourceUrl` ON `${TABLE_NAME}` (`sourceUrl`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "bookmarks", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`time` INTEGER NOT NULL, `bookName` TEXT NOT NULL, `bookAuthor` TEXT NOT NULL, `chapterIndex` INTEGER NOT NULL, `chapterPos` INTEGER NOT NULL, `chapterName` TEXT NOT NULL, `bookText` TEXT NOT NULL, `content` TEXT NOT NULL, PRIMARY KEY(`time`))", - "fields": [ - { - "fieldPath": "time", - "columnName": "time", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "bookName", - "columnName": "bookName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookAuthor", - "columnName": "bookAuthor", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "chapterIndex", - "columnName": "chapterIndex", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "chapterPos", - "columnName": "chapterPos", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "chapterName", - "columnName": "chapterName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookText", - "columnName": "bookText", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "content", - "columnName": "content", - "affinity": "TEXT", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "time" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_bookmarks_bookName_bookAuthor", - "unique": false, - "columnNames": [ - "bookName", - "bookAuthor" - ], - "createSql": "CREATE INDEX IF NOT EXISTS `index_bookmarks_bookName_bookAuthor` ON `${TABLE_NAME}` (`bookName`, `bookAuthor`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "rssArticles", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`origin` TEXT NOT NULL, `sort` TEXT NOT NULL, `title` TEXT NOT NULL, `order` INTEGER NOT NULL, `link` TEXT NOT NULL, `pubDate` TEXT, `description` TEXT, `content` TEXT, `image` TEXT, `read` INTEGER NOT NULL, `variable` TEXT, PRIMARY KEY(`origin`, `link`))", - "fields": [ - { - "fieldPath": "origin", - "columnName": "origin", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "sort", - "columnName": "sort", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "title", - "columnName": "title", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "order", - "columnName": "order", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "link", - "columnName": "link", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "pubDate", - "columnName": "pubDate", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "description", - "columnName": "description", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "content", - "columnName": "content", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "image", - "columnName": "image", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "read", - "columnName": "read", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "variable", - "columnName": "variable", - "affinity": "TEXT", - "notNull": false - } - ], - "primaryKey": { - "columnNames": [ - "origin", - "link" - ], - "autoGenerate": false - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "rssReadRecords", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`record` TEXT NOT NULL, `read` INTEGER NOT NULL, PRIMARY KEY(`record`))", - "fields": [ - { - "fieldPath": "record", - "columnName": "record", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "read", - "columnName": "read", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "record" - ], - "autoGenerate": false - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "rssStars", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`origin` TEXT NOT NULL, `sort` TEXT NOT NULL, `title` TEXT NOT NULL, `starTime` INTEGER NOT NULL, `link` TEXT NOT NULL, `pubDate` TEXT, `description` TEXT, `content` TEXT, `image` TEXT, `variable` TEXT, PRIMARY KEY(`origin`, `link`))", - "fields": [ - { - "fieldPath": "origin", - "columnName": "origin", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "sort", - "columnName": "sort", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "title", - "columnName": "title", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "starTime", - "columnName": "starTime", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "link", - "columnName": "link", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "pubDate", - "columnName": "pubDate", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "description", - "columnName": "description", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "content", - "columnName": "content", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "image", - "columnName": "image", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "variable", - "columnName": "variable", - "affinity": "TEXT", - "notNull": false - } - ], - "primaryKey": { - "columnNames": [ - "origin", - "link" - ], - "autoGenerate": false - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "txtTocRules", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER NOT NULL, `name` TEXT NOT NULL, `rule` TEXT NOT NULL, `serialNumber` INTEGER NOT NULL, `enable` INTEGER NOT NULL, PRIMARY KEY(`id`))", - "fields": [ - { - "fieldPath": "id", - "columnName": "id", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "rule", - "columnName": "rule", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "serialNumber", - "columnName": "serialNumber", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "enable", - "columnName": "enable", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "id" - ], - "autoGenerate": false - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "readRecord", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`deviceId` TEXT NOT NULL, `bookName` TEXT NOT NULL, `readTime` INTEGER NOT NULL, PRIMARY KEY(`deviceId`, `bookName`))", - "fields": [ - { - "fieldPath": "deviceId", - "columnName": "deviceId", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookName", - "columnName": "bookName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "readTime", - "columnName": "readTime", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "deviceId", - "bookName" - ], - "autoGenerate": false - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "httpTTS", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER NOT NULL, `name` TEXT NOT NULL, `url` TEXT NOT NULL, `concurrentRate` TEXT, `loginUrl` TEXT, `loginUi` TEXT, `header` TEXT, `loginCheckJs` TEXT, PRIMARY KEY(`id`))", - "fields": [ - { - "fieldPath": "id", - "columnName": "id", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "url", - "columnName": "url", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "concurrentRate", - "columnName": "concurrentRate", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "loginUrl", - "columnName": "loginUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "loginUi", - "columnName": "loginUi", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "header", - "columnName": "header", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "loginCheckJs", - "columnName": "loginCheckJs", - "affinity": "TEXT", - "notNull": false - } - ], - "primaryKey": { - "columnNames": [ - "id" - ], - "autoGenerate": false - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "caches", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`key` TEXT NOT NULL, `value` TEXT, `deadline` INTEGER NOT NULL, PRIMARY KEY(`key`))", - "fields": [ - { - "fieldPath": "key", - "columnName": "key", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "value", - "columnName": "value", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "deadline", - "columnName": "deadline", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "key" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_caches_key", - "unique": true, - "columnNames": [ - "key" - ], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_caches_key` ON `${TABLE_NAME}` (`key`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "ruleSubs", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER NOT NULL, `name` TEXT NOT NULL, `url` TEXT NOT NULL, `type` INTEGER NOT NULL, `customOrder` INTEGER NOT NULL, `autoUpdate` INTEGER NOT NULL, `update` INTEGER NOT NULL, PRIMARY KEY(`id`))", - "fields": [ - { - "fieldPath": "id", - "columnName": "id", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "url", - "columnName": "url", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "type", - "columnName": "type", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "customOrder", - "columnName": "customOrder", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "autoUpdate", - "columnName": "autoUpdate", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "update", - "columnName": "update", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "id" - ], - "autoGenerate": false - }, - "indices": [], - "foreignKeys": [] - } - ], - "views": [], - "setupQueries": [ - "CREATE TABLE IF NOT EXISTS room_master_table (id INTEGER PRIMARY KEY,identity_hash TEXT)", - "INSERT OR REPLACE INTO room_master_table (id,identity_hash) VALUES(42, '6fbd1d1b3918bcc6db113ad108e6b924')" - ] - } -} \ No newline at end of file diff --git a/app/schemas/io.legado.app.data.AppDatabase/42.json b/app/schemas/io.legado.app.data.AppDatabase/42.json deleted file mode 100644 index b14284f09..000000000 --- a/app/schemas/io.legado.app.data.AppDatabase/42.json +++ /dev/null @@ -1,1519 +0,0 @@ -{ - "formatVersion": 1, - "database": { - "version": 42, - "identityHash": "5bef05ac6abeaa4b82c3ff6e9e6bd7b3", - "entities": [ - { - "tableName": "books", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`bookUrl` TEXT NOT NULL, `tocUrl` TEXT NOT NULL, `origin` TEXT NOT NULL, `originName` TEXT NOT NULL, `name` TEXT NOT NULL, `author` TEXT NOT NULL, `kind` TEXT, `customTag` TEXT, `coverUrl` TEXT, `customCoverUrl` TEXT, `intro` TEXT, `customIntro` TEXT, `charset` TEXT, `type` INTEGER NOT NULL, `group` INTEGER NOT NULL, `latestChapterTitle` TEXT, `latestChapterTime` INTEGER NOT NULL, `lastCheckTime` INTEGER NOT NULL, `lastCheckCount` INTEGER NOT NULL, `totalChapterNum` INTEGER NOT NULL, `durChapterTitle` TEXT, `durChapterIndex` INTEGER NOT NULL, `durChapterPos` INTEGER NOT NULL, `durChapterTime` INTEGER NOT NULL, `wordCount` TEXT, `canUpdate` INTEGER NOT NULL, `order` INTEGER NOT NULL, `originOrder` INTEGER NOT NULL, `variable` TEXT, `readConfig` TEXT, PRIMARY KEY(`bookUrl`))", - "fields": [ - { - "fieldPath": "bookUrl", - "columnName": "bookUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "tocUrl", - "columnName": "tocUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "origin", - "columnName": "origin", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "originName", - "columnName": "originName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "author", - "columnName": "author", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "kind", - "columnName": "kind", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "customTag", - "columnName": "customTag", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "coverUrl", - "columnName": "coverUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "customCoverUrl", - "columnName": "customCoverUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "intro", - "columnName": "intro", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "customIntro", - "columnName": "customIntro", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "charset", - "columnName": "charset", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "type", - "columnName": "type", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "group", - "columnName": "group", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "latestChapterTitle", - "columnName": "latestChapterTitle", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "latestChapterTime", - "columnName": "latestChapterTime", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "lastCheckTime", - "columnName": "lastCheckTime", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "lastCheckCount", - "columnName": "lastCheckCount", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "totalChapterNum", - "columnName": "totalChapterNum", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "durChapterTitle", - "columnName": "durChapterTitle", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "durChapterIndex", - "columnName": "durChapterIndex", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "durChapterPos", - "columnName": "durChapterPos", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "durChapterTime", - "columnName": "durChapterTime", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "wordCount", - "columnName": "wordCount", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "canUpdate", - "columnName": "canUpdate", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "order", - "columnName": "order", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "originOrder", - "columnName": "originOrder", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "variable", - "columnName": "variable", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "readConfig", - "columnName": "readConfig", - "affinity": "TEXT", - "notNull": false - } - ], - "primaryKey": { - "columnNames": [ - "bookUrl" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_books_name_author", - "unique": true, - "columnNames": [ - "name", - "author" - ], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_books_name_author` ON `${TABLE_NAME}` (`name`, `author`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "book_groups", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`groupId` INTEGER NOT NULL, `groupName` TEXT NOT NULL, `cover` TEXT, `order` INTEGER NOT NULL, `show` INTEGER NOT NULL, PRIMARY KEY(`groupId`))", - "fields": [ - { - "fieldPath": "groupId", - "columnName": "groupId", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "groupName", - "columnName": "groupName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "cover", - "columnName": "cover", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "order", - "columnName": "order", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "show", - "columnName": "show", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "groupId" - ], - "autoGenerate": false - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "book_sources", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`bookSourceName` TEXT NOT NULL, `bookSourceGroup` TEXT, `bookSourceUrl` TEXT NOT NULL, `bookSourceType` INTEGER NOT NULL, `bookUrlPattern` TEXT, `customOrder` INTEGER NOT NULL, `enabled` INTEGER NOT NULL, `enabledExplore` INTEGER NOT NULL, `concurrentRate` TEXT, `header` TEXT, `loginUrl` TEXT, `loginUi` TEXT, `loginCheckJs` TEXT, `bookSourceComment` TEXT, `lastUpdateTime` INTEGER NOT NULL, `respondTime` INTEGER NOT NULL, `weight` INTEGER NOT NULL, `exploreUrl` TEXT, `ruleExplore` TEXT, `searchUrl` TEXT, `ruleSearch` TEXT, `ruleBookInfo` TEXT, `ruleToc` TEXT, `ruleContent` TEXT, PRIMARY KEY(`bookSourceUrl`))", - "fields": [ - { - "fieldPath": "bookSourceName", - "columnName": "bookSourceName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookSourceGroup", - "columnName": "bookSourceGroup", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "bookSourceUrl", - "columnName": "bookSourceUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookSourceType", - "columnName": "bookSourceType", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "bookUrlPattern", - "columnName": "bookUrlPattern", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "customOrder", - "columnName": "customOrder", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "enabled", - "columnName": "enabled", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "enabledExplore", - "columnName": "enabledExplore", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "concurrentRate", - "columnName": "concurrentRate", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "header", - "columnName": "header", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "loginUrl", - "columnName": "loginUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "loginUi", - "columnName": "loginUi", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "loginCheckJs", - "columnName": "loginCheckJs", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "bookSourceComment", - "columnName": "bookSourceComment", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "lastUpdateTime", - "columnName": "lastUpdateTime", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "respondTime", - "columnName": "respondTime", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "weight", - "columnName": "weight", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "exploreUrl", - "columnName": "exploreUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleExplore", - "columnName": "ruleExplore", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "searchUrl", - "columnName": "searchUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleSearch", - "columnName": "ruleSearch", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleBookInfo", - "columnName": "ruleBookInfo", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleToc", - "columnName": "ruleToc", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleContent", - "columnName": "ruleContent", - "affinity": "TEXT", - "notNull": false - } - ], - "primaryKey": { - "columnNames": [ - "bookSourceUrl" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_book_sources_bookSourceUrl", - "unique": false, - "columnNames": [ - "bookSourceUrl" - ], - "createSql": "CREATE INDEX IF NOT EXISTS `index_book_sources_bookSourceUrl` ON `${TABLE_NAME}` (`bookSourceUrl`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "chapters", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`url` TEXT NOT NULL, `title` TEXT NOT NULL, `baseUrl` TEXT NOT NULL, `bookUrl` TEXT NOT NULL, `index` INTEGER NOT NULL, `isVip` INTEGER NOT NULL, `isPay` INTEGER NOT NULL, `resourceUrl` TEXT, `tag` TEXT, `start` INTEGER, `end` INTEGER, `startFragmentId` TEXT, `endFragmentId` TEXT, `variable` TEXT, PRIMARY KEY(`url`, `bookUrl`), FOREIGN KEY(`bookUrl`) REFERENCES `books`(`bookUrl`) ON UPDATE NO ACTION ON DELETE CASCADE )", - "fields": [ - { - "fieldPath": "url", - "columnName": "url", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "title", - "columnName": "title", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "baseUrl", - "columnName": "baseUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookUrl", - "columnName": "bookUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "index", - "columnName": "index", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "isVip", - "columnName": "isVip", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "isPay", - "columnName": "isPay", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "resourceUrl", - "columnName": "resourceUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "tag", - "columnName": "tag", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "start", - "columnName": "start", - "affinity": "INTEGER", - "notNull": false - }, - { - "fieldPath": "end", - "columnName": "end", - "affinity": "INTEGER", - "notNull": false - }, - { - "fieldPath": "startFragmentId", - "columnName": "startFragmentId", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "endFragmentId", - "columnName": "endFragmentId", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "variable", - "columnName": "variable", - "affinity": "TEXT", - "notNull": false - } - ], - "primaryKey": { - "columnNames": [ - "url", - "bookUrl" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_chapters_bookUrl", - "unique": false, - "columnNames": [ - "bookUrl" - ], - "createSql": "CREATE INDEX IF NOT EXISTS `index_chapters_bookUrl` ON `${TABLE_NAME}` (`bookUrl`)" - }, - { - "name": "index_chapters_bookUrl_index", - "unique": true, - "columnNames": [ - "bookUrl", - "index" - ], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_chapters_bookUrl_index` ON `${TABLE_NAME}` (`bookUrl`, `index`)" - } - ], - "foreignKeys": [ - { - "table": "books", - "onDelete": "CASCADE", - "onUpdate": "NO ACTION", - "columns": [ - "bookUrl" - ], - "referencedColumns": [ - "bookUrl" - ] - } - ] - }, - { - "tableName": "replace_rules", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, `name` TEXT NOT NULL, `group` TEXT, `pattern` TEXT NOT NULL, `replacement` TEXT NOT NULL, `scope` TEXT, `isEnabled` INTEGER NOT NULL, `isRegex` INTEGER NOT NULL, `sortOrder` INTEGER NOT NULL)", - "fields": [ - { - "fieldPath": "id", - "columnName": "id", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "group", - "columnName": "group", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "pattern", - "columnName": "pattern", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "replacement", - "columnName": "replacement", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "scope", - "columnName": "scope", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "isEnabled", - "columnName": "isEnabled", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "isRegex", - "columnName": "isRegex", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "order", - "columnName": "sortOrder", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "id" - ], - "autoGenerate": true - }, - "indices": [ - { - "name": "index_replace_rules_id", - "unique": false, - "columnNames": [ - "id" - ], - "createSql": "CREATE INDEX IF NOT EXISTS `index_replace_rules_id` ON `${TABLE_NAME}` (`id`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "searchBooks", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`bookUrl` TEXT NOT NULL, `origin` TEXT NOT NULL, `originName` TEXT NOT NULL, `type` INTEGER NOT NULL, `name` TEXT NOT NULL, `author` TEXT NOT NULL, `kind` TEXT, `coverUrl` TEXT, `intro` TEXT, `wordCount` TEXT, `latestChapterTitle` TEXT, `tocUrl` TEXT NOT NULL, `time` INTEGER NOT NULL, `variable` TEXT, `originOrder` INTEGER NOT NULL, PRIMARY KEY(`bookUrl`), FOREIGN KEY(`origin`) REFERENCES `book_sources`(`bookSourceUrl`) ON UPDATE NO ACTION ON DELETE CASCADE )", - "fields": [ - { - "fieldPath": "bookUrl", - "columnName": "bookUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "origin", - "columnName": "origin", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "originName", - "columnName": "originName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "type", - "columnName": "type", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "author", - "columnName": "author", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "kind", - "columnName": "kind", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "coverUrl", - "columnName": "coverUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "intro", - "columnName": "intro", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "wordCount", - "columnName": "wordCount", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "latestChapterTitle", - "columnName": "latestChapterTitle", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "tocUrl", - "columnName": "tocUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "time", - "columnName": "time", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "variable", - "columnName": "variable", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "originOrder", - "columnName": "originOrder", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "bookUrl" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_searchBooks_bookUrl", - "unique": true, - "columnNames": [ - "bookUrl" - ], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_searchBooks_bookUrl` ON `${TABLE_NAME}` (`bookUrl`)" - }, - { - "name": "index_searchBooks_origin", - "unique": false, - "columnNames": [ - "origin" - ], - "createSql": "CREATE INDEX IF NOT EXISTS `index_searchBooks_origin` ON `${TABLE_NAME}` (`origin`)" - } - ], - "foreignKeys": [ - { - "table": "book_sources", - "onDelete": "CASCADE", - "onUpdate": "NO ACTION", - "columns": [ - "origin" - ], - "referencedColumns": [ - "bookSourceUrl" - ] - } - ] - }, - { - "tableName": "search_keywords", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`word` TEXT NOT NULL, `usage` INTEGER NOT NULL, `lastUseTime` INTEGER NOT NULL, PRIMARY KEY(`word`))", - "fields": [ - { - "fieldPath": "word", - "columnName": "word", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "usage", - "columnName": "usage", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "lastUseTime", - "columnName": "lastUseTime", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "word" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_search_keywords_word", - "unique": true, - "columnNames": [ - "word" - ], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_search_keywords_word` ON `${TABLE_NAME}` (`word`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "cookies", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`url` TEXT NOT NULL, `cookie` TEXT NOT NULL, PRIMARY KEY(`url`))", - "fields": [ - { - "fieldPath": "url", - "columnName": "url", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "cookie", - "columnName": "cookie", - "affinity": "TEXT", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "url" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_cookies_url", - "unique": true, - "columnNames": [ - "url" - ], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_cookies_url` ON `${TABLE_NAME}` (`url`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "rssSources", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`sourceUrl` TEXT NOT NULL, `sourceName` TEXT NOT NULL, `sourceIcon` TEXT NOT NULL, `sourceGroup` TEXT, `sourceComment` TEXT, `enabled` INTEGER NOT NULL, `concurrentRate` TEXT, `header` TEXT, `loginUrl` TEXT, `loginUi` TEXT, `loginCheckJs` TEXT, `sortUrl` TEXT, `singleUrl` INTEGER NOT NULL, `articleStyle` INTEGER NOT NULL, `ruleArticles` TEXT, `ruleNextPage` TEXT, `ruleTitle` TEXT, `rulePubDate` TEXT, `ruleDescription` TEXT, `ruleImage` TEXT, `ruleLink` TEXT, `ruleContent` TEXT, `style` TEXT, `enableJs` INTEGER NOT NULL, `loadWithBaseUrl` INTEGER NOT NULL, `customOrder` INTEGER NOT NULL, PRIMARY KEY(`sourceUrl`))", - "fields": [ - { - "fieldPath": "sourceUrl", - "columnName": "sourceUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "sourceName", - "columnName": "sourceName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "sourceIcon", - "columnName": "sourceIcon", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "sourceGroup", - "columnName": "sourceGroup", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "sourceComment", - "columnName": "sourceComment", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "enabled", - "columnName": "enabled", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "concurrentRate", - "columnName": "concurrentRate", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "header", - "columnName": "header", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "loginUrl", - "columnName": "loginUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "loginUi", - "columnName": "loginUi", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "loginCheckJs", - "columnName": "loginCheckJs", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "sortUrl", - "columnName": "sortUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "singleUrl", - "columnName": "singleUrl", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "articleStyle", - "columnName": "articleStyle", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "ruleArticles", - "columnName": "ruleArticles", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleNextPage", - "columnName": "ruleNextPage", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleTitle", - "columnName": "ruleTitle", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "rulePubDate", - "columnName": "rulePubDate", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleDescription", - "columnName": "ruleDescription", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleImage", - "columnName": "ruleImage", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleLink", - "columnName": "ruleLink", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleContent", - "columnName": "ruleContent", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "style", - "columnName": "style", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "enableJs", - "columnName": "enableJs", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "loadWithBaseUrl", - "columnName": "loadWithBaseUrl", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "customOrder", - "columnName": "customOrder", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "sourceUrl" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_rssSources_sourceUrl", - "unique": false, - "columnNames": [ - "sourceUrl" - ], - "createSql": "CREATE INDEX IF NOT EXISTS `index_rssSources_sourceUrl` ON `${TABLE_NAME}` (`sourceUrl`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "bookmarks", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`time` INTEGER NOT NULL, `bookName` TEXT NOT NULL, `bookAuthor` TEXT NOT NULL, `chapterIndex` INTEGER NOT NULL, `chapterPos` INTEGER NOT NULL, `chapterName` TEXT NOT NULL, `bookText` TEXT NOT NULL, `content` TEXT NOT NULL, PRIMARY KEY(`time`))", - "fields": [ - { - "fieldPath": "time", - "columnName": "time", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "bookName", - "columnName": "bookName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookAuthor", - "columnName": "bookAuthor", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "chapterIndex", - "columnName": "chapterIndex", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "chapterPos", - "columnName": "chapterPos", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "chapterName", - "columnName": "chapterName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookText", - "columnName": "bookText", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "content", - "columnName": "content", - "affinity": "TEXT", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "time" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_bookmarks_bookName_bookAuthor", - "unique": false, - "columnNames": [ - "bookName", - "bookAuthor" - ], - "createSql": "CREATE INDEX IF NOT EXISTS `index_bookmarks_bookName_bookAuthor` ON `${TABLE_NAME}` (`bookName`, `bookAuthor`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "rssArticles", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`origin` TEXT NOT NULL, `sort` TEXT NOT NULL, `title` TEXT NOT NULL, `order` INTEGER NOT NULL, `link` TEXT NOT NULL, `pubDate` TEXT, `description` TEXT, `content` TEXT, `image` TEXT, `read` INTEGER NOT NULL, `variable` TEXT, PRIMARY KEY(`origin`, `link`))", - "fields": [ - { - "fieldPath": "origin", - "columnName": "origin", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "sort", - "columnName": "sort", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "title", - "columnName": "title", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "order", - "columnName": "order", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "link", - "columnName": "link", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "pubDate", - "columnName": "pubDate", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "description", - "columnName": "description", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "content", - "columnName": "content", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "image", - "columnName": "image", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "read", - "columnName": "read", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "variable", - "columnName": "variable", - "affinity": "TEXT", - "notNull": false - } - ], - "primaryKey": { - "columnNames": [ - "origin", - "link" - ], - "autoGenerate": false - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "rssReadRecords", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`record` TEXT NOT NULL, `read` INTEGER NOT NULL, PRIMARY KEY(`record`))", - "fields": [ - { - "fieldPath": "record", - "columnName": "record", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "read", - "columnName": "read", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "record" - ], - "autoGenerate": false - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "rssStars", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`origin` TEXT NOT NULL, `sort` TEXT NOT NULL, `title` TEXT NOT NULL, `starTime` INTEGER NOT NULL, `link` TEXT NOT NULL, `pubDate` TEXT, `description` TEXT, `content` TEXT, `image` TEXT, `variable` TEXT, PRIMARY KEY(`origin`, `link`))", - "fields": [ - { - "fieldPath": "origin", - "columnName": "origin", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "sort", - "columnName": "sort", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "title", - "columnName": "title", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "starTime", - "columnName": "starTime", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "link", - "columnName": "link", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "pubDate", - "columnName": "pubDate", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "description", - "columnName": "description", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "content", - "columnName": "content", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "image", - "columnName": "image", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "variable", - "columnName": "variable", - "affinity": "TEXT", - "notNull": false - } - ], - "primaryKey": { - "columnNames": [ - "origin", - "link" - ], - "autoGenerate": false - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "txtTocRules", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER NOT NULL, `name` TEXT NOT NULL, `rule` TEXT NOT NULL, `serialNumber` INTEGER NOT NULL, `enable` INTEGER NOT NULL, PRIMARY KEY(`id`))", - "fields": [ - { - "fieldPath": "id", - "columnName": "id", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "rule", - "columnName": "rule", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "serialNumber", - "columnName": "serialNumber", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "enable", - "columnName": "enable", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "id" - ], - "autoGenerate": false - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "readRecord", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`deviceId` TEXT NOT NULL, `bookName` TEXT NOT NULL, `readTime` INTEGER NOT NULL, PRIMARY KEY(`deviceId`, `bookName`))", - "fields": [ - { - "fieldPath": "deviceId", - "columnName": "deviceId", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookName", - "columnName": "bookName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "readTime", - "columnName": "readTime", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "deviceId", - "bookName" - ], - "autoGenerate": false - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "httpTTS", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER NOT NULL, `name` TEXT NOT NULL, `url` TEXT NOT NULL, `contentType` TEXT, `concurrentRate` TEXT, `loginUrl` TEXT, `loginUi` TEXT, `header` TEXT, `loginCheckJs` TEXT, PRIMARY KEY(`id`))", - "fields": [ - { - "fieldPath": "id", - "columnName": "id", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "url", - "columnName": "url", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "contentType", - "columnName": "contentType", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "concurrentRate", - "columnName": "concurrentRate", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "loginUrl", - "columnName": "loginUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "loginUi", - "columnName": "loginUi", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "header", - "columnName": "header", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "loginCheckJs", - "columnName": "loginCheckJs", - "affinity": "TEXT", - "notNull": false - } - ], - "primaryKey": { - "columnNames": [ - "id" - ], - "autoGenerate": false - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "caches", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`key` TEXT NOT NULL, `value` TEXT, `deadline` INTEGER NOT NULL, PRIMARY KEY(`key`))", - "fields": [ - { - "fieldPath": "key", - "columnName": "key", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "value", - "columnName": "value", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "deadline", - "columnName": "deadline", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "key" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_caches_key", - "unique": true, - "columnNames": [ - "key" - ], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_caches_key` ON `${TABLE_NAME}` (`key`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "ruleSubs", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER NOT NULL, `name` TEXT NOT NULL, `url` TEXT NOT NULL, `type` INTEGER NOT NULL, `customOrder` INTEGER NOT NULL, `autoUpdate` INTEGER NOT NULL, `update` INTEGER NOT NULL, PRIMARY KEY(`id`))", - "fields": [ - { - "fieldPath": "id", - "columnName": "id", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "url", - "columnName": "url", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "type", - "columnName": "type", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "customOrder", - "columnName": "customOrder", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "autoUpdate", - "columnName": "autoUpdate", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "update", - "columnName": "update", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "id" - ], - "autoGenerate": false - }, - "indices": [], - "foreignKeys": [] - } - ], - "views": [], - "setupQueries": [ - "CREATE TABLE IF NOT EXISTS room_master_table (id INTEGER PRIMARY KEY,identity_hash TEXT)", - "INSERT OR REPLACE INTO room_master_table (id,identity_hash) VALUES(42, '5bef05ac6abeaa4b82c3ff6e9e6bd7b3')" - ] - } -} \ No newline at end of file diff --git a/app/schemas/io.legado.app.data.AppDatabase/43.json b/app/schemas/io.legado.app.data.AppDatabase/43.json deleted file mode 100644 index f375a4729..000000000 --- a/app/schemas/io.legado.app.data.AppDatabase/43.json +++ /dev/null @@ -1,1537 +0,0 @@ -{ - "formatVersion": 1, - "database": { - "version": 43, - "identityHash": "b97eb5297faaacb44c2274233f52d250", - "entities": [ - { - "tableName": "books", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`bookUrl` TEXT NOT NULL, `tocUrl` TEXT NOT NULL, `origin` TEXT NOT NULL, `originName` TEXT NOT NULL, `name` TEXT NOT NULL, `author` TEXT NOT NULL, `kind` TEXT, `customTag` TEXT, `coverUrl` TEXT, `customCoverUrl` TEXT, `intro` TEXT, `customIntro` TEXT, `charset` TEXT, `type` INTEGER NOT NULL, `group` INTEGER NOT NULL, `latestChapterTitle` TEXT, `latestChapterTime` INTEGER NOT NULL, `lastCheckTime` INTEGER NOT NULL, `lastCheckCount` INTEGER NOT NULL, `totalChapterNum` INTEGER NOT NULL, `durChapterTitle` TEXT, `durChapterIndex` INTEGER NOT NULL, `durChapterPos` INTEGER NOT NULL, `durChapterTime` INTEGER NOT NULL, `wordCount` TEXT, `canUpdate` INTEGER NOT NULL, `order` INTEGER NOT NULL, `originOrder` INTEGER NOT NULL, `variable` TEXT, `readConfig` TEXT, PRIMARY KEY(`bookUrl`))", - "fields": [ - { - "fieldPath": "bookUrl", - "columnName": "bookUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "tocUrl", - "columnName": "tocUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "origin", - "columnName": "origin", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "originName", - "columnName": "originName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "author", - "columnName": "author", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "kind", - "columnName": "kind", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "customTag", - "columnName": "customTag", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "coverUrl", - "columnName": "coverUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "customCoverUrl", - "columnName": "customCoverUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "intro", - "columnName": "intro", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "customIntro", - "columnName": "customIntro", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "charset", - "columnName": "charset", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "type", - "columnName": "type", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "group", - "columnName": "group", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "latestChapterTitle", - "columnName": "latestChapterTitle", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "latestChapterTime", - "columnName": "latestChapterTime", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "lastCheckTime", - "columnName": "lastCheckTime", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "lastCheckCount", - "columnName": "lastCheckCount", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "totalChapterNum", - "columnName": "totalChapterNum", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "durChapterTitle", - "columnName": "durChapterTitle", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "durChapterIndex", - "columnName": "durChapterIndex", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "durChapterPos", - "columnName": "durChapterPos", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "durChapterTime", - "columnName": "durChapterTime", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "wordCount", - "columnName": "wordCount", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "canUpdate", - "columnName": "canUpdate", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "order", - "columnName": "order", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "originOrder", - "columnName": "originOrder", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "variable", - "columnName": "variable", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "readConfig", - "columnName": "readConfig", - "affinity": "TEXT", - "notNull": false - } - ], - "primaryKey": { - "columnNames": [ - "bookUrl" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_books_name_author", - "unique": true, - "columnNames": [ - "name", - "author" - ], - "orders": [], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_books_name_author` ON `${TABLE_NAME}` (`name`, `author`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "book_groups", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`groupId` INTEGER NOT NULL, `groupName` TEXT NOT NULL, `cover` TEXT, `order` INTEGER NOT NULL, `show` INTEGER NOT NULL, PRIMARY KEY(`groupId`))", - "fields": [ - { - "fieldPath": "groupId", - "columnName": "groupId", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "groupName", - "columnName": "groupName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "cover", - "columnName": "cover", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "order", - "columnName": "order", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "show", - "columnName": "show", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "groupId" - ], - "autoGenerate": false - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "book_sources", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`bookSourceUrl` TEXT NOT NULL, `bookSourceName` TEXT NOT NULL, `bookSourceGroup` TEXT, `bookSourceType` INTEGER NOT NULL, `bookUrlPattern` TEXT, `customOrder` INTEGER NOT NULL, `enabled` INTEGER NOT NULL, `enabledExplore` INTEGER NOT NULL, `concurrentRate` TEXT, `header` TEXT, `loginUrl` TEXT, `loginUi` TEXT, `loginCheckJs` TEXT, `bookSourceComment` TEXT, `lastUpdateTime` INTEGER NOT NULL, `respondTime` INTEGER NOT NULL, `weight` INTEGER NOT NULL, `exploreUrl` TEXT, `ruleExplore` TEXT, `searchUrl` TEXT, `ruleSearch` TEXT, `ruleBookInfo` TEXT, `ruleToc` TEXT, `ruleContent` TEXT, PRIMARY KEY(`bookSourceUrl`))", - "fields": [ - { - "fieldPath": "bookSourceUrl", - "columnName": "bookSourceUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookSourceName", - "columnName": "bookSourceName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookSourceGroup", - "columnName": "bookSourceGroup", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "bookSourceType", - "columnName": "bookSourceType", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "bookUrlPattern", - "columnName": "bookUrlPattern", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "customOrder", - "columnName": "customOrder", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "enabled", - "columnName": "enabled", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "enabledExplore", - "columnName": "enabledExplore", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "concurrentRate", - "columnName": "concurrentRate", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "header", - "columnName": "header", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "loginUrl", - "columnName": "loginUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "loginUi", - "columnName": "loginUi", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "loginCheckJs", - "columnName": "loginCheckJs", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "bookSourceComment", - "columnName": "bookSourceComment", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "lastUpdateTime", - "columnName": "lastUpdateTime", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "respondTime", - "columnName": "respondTime", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "weight", - "columnName": "weight", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "exploreUrl", - "columnName": "exploreUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleExplore", - "columnName": "ruleExplore", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "searchUrl", - "columnName": "searchUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleSearch", - "columnName": "ruleSearch", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleBookInfo", - "columnName": "ruleBookInfo", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleToc", - "columnName": "ruleToc", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleContent", - "columnName": "ruleContent", - "affinity": "TEXT", - "notNull": false - } - ], - "primaryKey": { - "columnNames": [ - "bookSourceUrl" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_book_sources_bookSourceUrl", - "unique": false, - "columnNames": [ - "bookSourceUrl" - ], - "orders": [], - "createSql": "CREATE INDEX IF NOT EXISTS `index_book_sources_bookSourceUrl` ON `${TABLE_NAME}` (`bookSourceUrl`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "chapters", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`url` TEXT NOT NULL, `title` TEXT NOT NULL, `isVolume` INTEGER NOT NULL, `baseUrl` TEXT NOT NULL, `bookUrl` TEXT NOT NULL, `index` INTEGER NOT NULL, `isVip` INTEGER NOT NULL, `isPay` INTEGER NOT NULL, `resourceUrl` TEXT, `tag` TEXT, `start` INTEGER, `end` INTEGER, `startFragmentId` TEXT, `endFragmentId` TEXT, `variable` TEXT, PRIMARY KEY(`url`, `bookUrl`), FOREIGN KEY(`bookUrl`) REFERENCES `books`(`bookUrl`) ON UPDATE NO ACTION ON DELETE CASCADE )", - "fields": [ - { - "fieldPath": "url", - "columnName": "url", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "title", - "columnName": "title", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "isVolume", - "columnName": "isVolume", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "baseUrl", - "columnName": "baseUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookUrl", - "columnName": "bookUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "index", - "columnName": "index", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "isVip", - "columnName": "isVip", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "isPay", - "columnName": "isPay", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "resourceUrl", - "columnName": "resourceUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "tag", - "columnName": "tag", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "start", - "columnName": "start", - "affinity": "INTEGER", - "notNull": false - }, - { - "fieldPath": "end", - "columnName": "end", - "affinity": "INTEGER", - "notNull": false - }, - { - "fieldPath": "startFragmentId", - "columnName": "startFragmentId", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "endFragmentId", - "columnName": "endFragmentId", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "variable", - "columnName": "variable", - "affinity": "TEXT", - "notNull": false - } - ], - "primaryKey": { - "columnNames": [ - "url", - "bookUrl" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_chapters_bookUrl", - "unique": false, - "columnNames": [ - "bookUrl" - ], - "orders": [], - "createSql": "CREATE INDEX IF NOT EXISTS `index_chapters_bookUrl` ON `${TABLE_NAME}` (`bookUrl`)" - }, - { - "name": "index_chapters_bookUrl_index", - "unique": true, - "columnNames": [ - "bookUrl", - "index" - ], - "orders": [], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_chapters_bookUrl_index` ON `${TABLE_NAME}` (`bookUrl`, `index`)" - } - ], - "foreignKeys": [ - { - "table": "books", - "onDelete": "CASCADE", - "onUpdate": "NO ACTION", - "columns": [ - "bookUrl" - ], - "referencedColumns": [ - "bookUrl" - ] - } - ] - }, - { - "tableName": "replace_rules", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, `name` TEXT NOT NULL, `group` TEXT, `pattern` TEXT NOT NULL, `replacement` TEXT NOT NULL, `scope` TEXT, `isEnabled` INTEGER NOT NULL, `isRegex` INTEGER NOT NULL, `sortOrder` INTEGER NOT NULL)", - "fields": [ - { - "fieldPath": "id", - "columnName": "id", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "group", - "columnName": "group", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "pattern", - "columnName": "pattern", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "replacement", - "columnName": "replacement", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "scope", - "columnName": "scope", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "isEnabled", - "columnName": "isEnabled", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "isRegex", - "columnName": "isRegex", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "order", - "columnName": "sortOrder", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "id" - ], - "autoGenerate": true - }, - "indices": [ - { - "name": "index_replace_rules_id", - "unique": false, - "columnNames": [ - "id" - ], - "orders": [], - "createSql": "CREATE INDEX IF NOT EXISTS `index_replace_rules_id` ON `${TABLE_NAME}` (`id`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "searchBooks", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`bookUrl` TEXT NOT NULL, `origin` TEXT NOT NULL, `originName` TEXT NOT NULL, `type` INTEGER NOT NULL, `name` TEXT NOT NULL, `author` TEXT NOT NULL, `kind` TEXT, `coverUrl` TEXT, `intro` TEXT, `wordCount` TEXT, `latestChapterTitle` TEXT, `tocUrl` TEXT NOT NULL, `time` INTEGER NOT NULL, `variable` TEXT, `originOrder` INTEGER NOT NULL, PRIMARY KEY(`bookUrl`), FOREIGN KEY(`origin`) REFERENCES `book_sources`(`bookSourceUrl`) ON UPDATE NO ACTION ON DELETE CASCADE )", - "fields": [ - { - "fieldPath": "bookUrl", - "columnName": "bookUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "origin", - "columnName": "origin", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "originName", - "columnName": "originName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "type", - "columnName": "type", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "author", - "columnName": "author", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "kind", - "columnName": "kind", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "coverUrl", - "columnName": "coverUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "intro", - "columnName": "intro", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "wordCount", - "columnName": "wordCount", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "latestChapterTitle", - "columnName": "latestChapterTitle", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "tocUrl", - "columnName": "tocUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "time", - "columnName": "time", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "variable", - "columnName": "variable", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "originOrder", - "columnName": "originOrder", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "bookUrl" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_searchBooks_bookUrl", - "unique": true, - "columnNames": [ - "bookUrl" - ], - "orders": [], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_searchBooks_bookUrl` ON `${TABLE_NAME}` (`bookUrl`)" - }, - { - "name": "index_searchBooks_origin", - "unique": false, - "columnNames": [ - "origin" - ], - "orders": [], - "createSql": "CREATE INDEX IF NOT EXISTS `index_searchBooks_origin` ON `${TABLE_NAME}` (`origin`)" - } - ], - "foreignKeys": [ - { - "table": "book_sources", - "onDelete": "CASCADE", - "onUpdate": "NO ACTION", - "columns": [ - "origin" - ], - "referencedColumns": [ - "bookSourceUrl" - ] - } - ] - }, - { - "tableName": "search_keywords", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`word` TEXT NOT NULL, `usage` INTEGER NOT NULL, `lastUseTime` INTEGER NOT NULL, PRIMARY KEY(`word`))", - "fields": [ - { - "fieldPath": "word", - "columnName": "word", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "usage", - "columnName": "usage", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "lastUseTime", - "columnName": "lastUseTime", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "word" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_search_keywords_word", - "unique": true, - "columnNames": [ - "word" - ], - "orders": [], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_search_keywords_word` ON `${TABLE_NAME}` (`word`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "cookies", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`url` TEXT NOT NULL, `cookie` TEXT NOT NULL, PRIMARY KEY(`url`))", - "fields": [ - { - "fieldPath": "url", - "columnName": "url", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "cookie", - "columnName": "cookie", - "affinity": "TEXT", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "url" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_cookies_url", - "unique": true, - "columnNames": [ - "url" - ], - "orders": [], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_cookies_url` ON `${TABLE_NAME}` (`url`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "rssSources", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`sourceUrl` TEXT NOT NULL, `sourceName` TEXT NOT NULL, `sourceIcon` TEXT NOT NULL, `sourceGroup` TEXT, `sourceComment` TEXT, `enabled` INTEGER NOT NULL, `concurrentRate` TEXT, `header` TEXT, `loginUrl` TEXT, `loginUi` TEXT, `loginCheckJs` TEXT, `sortUrl` TEXT, `singleUrl` INTEGER NOT NULL, `articleStyle` INTEGER NOT NULL, `ruleArticles` TEXT, `ruleNextPage` TEXT, `ruleTitle` TEXT, `rulePubDate` TEXT, `ruleDescription` TEXT, `ruleImage` TEXT, `ruleLink` TEXT, `ruleContent` TEXT, `style` TEXT, `enableJs` INTEGER NOT NULL, `loadWithBaseUrl` INTEGER NOT NULL, `customOrder` INTEGER NOT NULL, PRIMARY KEY(`sourceUrl`))", - "fields": [ - { - "fieldPath": "sourceUrl", - "columnName": "sourceUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "sourceName", - "columnName": "sourceName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "sourceIcon", - "columnName": "sourceIcon", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "sourceGroup", - "columnName": "sourceGroup", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "sourceComment", - "columnName": "sourceComment", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "enabled", - "columnName": "enabled", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "concurrentRate", - "columnName": "concurrentRate", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "header", - "columnName": "header", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "loginUrl", - "columnName": "loginUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "loginUi", - "columnName": "loginUi", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "loginCheckJs", - "columnName": "loginCheckJs", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "sortUrl", - "columnName": "sortUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "singleUrl", - "columnName": "singleUrl", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "articleStyle", - "columnName": "articleStyle", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "ruleArticles", - "columnName": "ruleArticles", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleNextPage", - "columnName": "ruleNextPage", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleTitle", - "columnName": "ruleTitle", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "rulePubDate", - "columnName": "rulePubDate", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleDescription", - "columnName": "ruleDescription", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleImage", - "columnName": "ruleImage", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleLink", - "columnName": "ruleLink", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleContent", - "columnName": "ruleContent", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "style", - "columnName": "style", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "enableJs", - "columnName": "enableJs", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "loadWithBaseUrl", - "columnName": "loadWithBaseUrl", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "customOrder", - "columnName": "customOrder", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "sourceUrl" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_rssSources_sourceUrl", - "unique": false, - "columnNames": [ - "sourceUrl" - ], - "orders": [], - "createSql": "CREATE INDEX IF NOT EXISTS `index_rssSources_sourceUrl` ON `${TABLE_NAME}` (`sourceUrl`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "bookmarks", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`time` INTEGER NOT NULL, `bookName` TEXT NOT NULL, `bookAuthor` TEXT NOT NULL, `chapterIndex` INTEGER NOT NULL, `chapterPos` INTEGER NOT NULL, `chapterName` TEXT NOT NULL, `bookText` TEXT NOT NULL, `content` TEXT NOT NULL, PRIMARY KEY(`time`))", - "fields": [ - { - "fieldPath": "time", - "columnName": "time", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "bookName", - "columnName": "bookName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookAuthor", - "columnName": "bookAuthor", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "chapterIndex", - "columnName": "chapterIndex", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "chapterPos", - "columnName": "chapterPos", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "chapterName", - "columnName": "chapterName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookText", - "columnName": "bookText", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "content", - "columnName": "content", - "affinity": "TEXT", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "time" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_bookmarks_bookName_bookAuthor", - "unique": false, - "columnNames": [ - "bookName", - "bookAuthor" - ], - "orders": [], - "createSql": "CREATE INDEX IF NOT EXISTS `index_bookmarks_bookName_bookAuthor` ON `${TABLE_NAME}` (`bookName`, `bookAuthor`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "rssArticles", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`origin` TEXT NOT NULL, `sort` TEXT NOT NULL, `title` TEXT NOT NULL, `order` INTEGER NOT NULL, `link` TEXT NOT NULL, `pubDate` TEXT, `description` TEXT, `content` TEXT, `image` TEXT, `read` INTEGER NOT NULL, `variable` TEXT, PRIMARY KEY(`origin`, `link`))", - "fields": [ - { - "fieldPath": "origin", - "columnName": "origin", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "sort", - "columnName": "sort", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "title", - "columnName": "title", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "order", - "columnName": "order", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "link", - "columnName": "link", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "pubDate", - "columnName": "pubDate", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "description", - "columnName": "description", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "content", - "columnName": "content", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "image", - "columnName": "image", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "read", - "columnName": "read", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "variable", - "columnName": "variable", - "affinity": "TEXT", - "notNull": false - } - ], - "primaryKey": { - "columnNames": [ - "origin", - "link" - ], - "autoGenerate": false - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "rssReadRecords", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`record` TEXT NOT NULL, `read` INTEGER NOT NULL, PRIMARY KEY(`record`))", - "fields": [ - { - "fieldPath": "record", - "columnName": "record", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "read", - "columnName": "read", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "record" - ], - "autoGenerate": false - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "rssStars", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`origin` TEXT NOT NULL, `sort` TEXT NOT NULL, `title` TEXT NOT NULL, `starTime` INTEGER NOT NULL, `link` TEXT NOT NULL, `pubDate` TEXT, `description` TEXT, `content` TEXT, `image` TEXT, `variable` TEXT, PRIMARY KEY(`origin`, `link`))", - "fields": [ - { - "fieldPath": "origin", - "columnName": "origin", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "sort", - "columnName": "sort", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "title", - "columnName": "title", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "starTime", - "columnName": "starTime", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "link", - "columnName": "link", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "pubDate", - "columnName": "pubDate", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "description", - "columnName": "description", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "content", - "columnName": "content", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "image", - "columnName": "image", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "variable", - "columnName": "variable", - "affinity": "TEXT", - "notNull": false - } - ], - "primaryKey": { - "columnNames": [ - "origin", - "link" - ], - "autoGenerate": false - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "txtTocRules", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER NOT NULL, `name` TEXT NOT NULL, `rule` TEXT NOT NULL, `serialNumber` INTEGER NOT NULL, `enable` INTEGER NOT NULL, PRIMARY KEY(`id`))", - "fields": [ - { - "fieldPath": "id", - "columnName": "id", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "rule", - "columnName": "rule", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "serialNumber", - "columnName": "serialNumber", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "enable", - "columnName": "enable", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "id" - ], - "autoGenerate": false - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "readRecord", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`deviceId` TEXT NOT NULL, `bookName` TEXT NOT NULL, `readTime` INTEGER NOT NULL, PRIMARY KEY(`deviceId`, `bookName`))", - "fields": [ - { - "fieldPath": "deviceId", - "columnName": "deviceId", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookName", - "columnName": "bookName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "readTime", - "columnName": "readTime", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "deviceId", - "bookName" - ], - "autoGenerate": false - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "httpTTS", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER NOT NULL, `name` TEXT NOT NULL, `url` TEXT NOT NULL, `contentType` TEXT, `concurrentRate` TEXT, `loginUrl` TEXT, `loginUi` TEXT, `header` TEXT, `loginCheckJs` TEXT, PRIMARY KEY(`id`))", - "fields": [ - { - "fieldPath": "id", - "columnName": "id", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "url", - "columnName": "url", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "contentType", - "columnName": "contentType", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "concurrentRate", - "columnName": "concurrentRate", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "loginUrl", - "columnName": "loginUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "loginUi", - "columnName": "loginUi", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "header", - "columnName": "header", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "loginCheckJs", - "columnName": "loginCheckJs", - "affinity": "TEXT", - "notNull": false - } - ], - "primaryKey": { - "columnNames": [ - "id" - ], - "autoGenerate": false - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "caches", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`key` TEXT NOT NULL, `value` TEXT, `deadline` INTEGER NOT NULL, PRIMARY KEY(`key`))", - "fields": [ - { - "fieldPath": "key", - "columnName": "key", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "value", - "columnName": "value", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "deadline", - "columnName": "deadline", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "key" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_caches_key", - "unique": true, - "columnNames": [ - "key" - ], - "orders": [], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_caches_key` ON `${TABLE_NAME}` (`key`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "ruleSubs", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER NOT NULL, `name` TEXT NOT NULL, `url` TEXT NOT NULL, `type` INTEGER NOT NULL, `customOrder` INTEGER NOT NULL, `autoUpdate` INTEGER NOT NULL, `update` INTEGER NOT NULL, PRIMARY KEY(`id`))", - "fields": [ - { - "fieldPath": "id", - "columnName": "id", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "url", - "columnName": "url", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "type", - "columnName": "type", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "customOrder", - "columnName": "customOrder", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "autoUpdate", - "columnName": "autoUpdate", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "update", - "columnName": "update", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "id" - ], - "autoGenerate": false - }, - "indices": [], - "foreignKeys": [] - } - ], - "views": [], - "setupQueries": [ - "CREATE TABLE IF NOT EXISTS room_master_table (id INTEGER PRIMARY KEY,identity_hash TEXT)", - "INSERT OR REPLACE INTO room_master_table (id,identity_hash) VALUES(42, 'b97eb5297faaacb44c2274233f52d250')" - ] - } -} \ No newline at end of file diff --git a/app/schemas/io.legado.app.data.AppDatabase/44.json b/app/schemas/io.legado.app.data.AppDatabase/44.json deleted file mode 100644 index 7062c8af6..000000000 --- a/app/schemas/io.legado.app.data.AppDatabase/44.json +++ /dev/null @@ -1,1557 +0,0 @@ -{ - "formatVersion": 1, - "database": { - "version": 44, - "identityHash": "fdfaa67979c13dd76db0a1b594bc5904", - "entities": [ - { - "tableName": "books", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`bookUrl` TEXT NOT NULL, `tocUrl` TEXT NOT NULL, `origin` TEXT NOT NULL, `originName` TEXT NOT NULL, `name` TEXT NOT NULL, `author` TEXT NOT NULL, `kind` TEXT, `customTag` TEXT, `coverUrl` TEXT, `customCoverUrl` TEXT, `intro` TEXT, `customIntro` TEXT, `charset` TEXT, `type` INTEGER NOT NULL, `group` INTEGER NOT NULL, `latestChapterTitle` TEXT, `latestChapterTime` INTEGER NOT NULL, `lastCheckTime` INTEGER NOT NULL, `lastCheckCount` INTEGER NOT NULL, `totalChapterNum` INTEGER NOT NULL, `durChapterTitle` TEXT, `durChapterIndex` INTEGER NOT NULL, `durChapterPos` INTEGER NOT NULL, `durChapterTime` INTEGER NOT NULL, `wordCount` TEXT, `canUpdate` INTEGER NOT NULL, `order` INTEGER NOT NULL, `originOrder` INTEGER NOT NULL, `variable` TEXT, `readConfig` TEXT, PRIMARY KEY(`bookUrl`))", - "fields": [ - { - "fieldPath": "bookUrl", - "columnName": "bookUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "tocUrl", - "columnName": "tocUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "origin", - "columnName": "origin", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "originName", - "columnName": "originName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "author", - "columnName": "author", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "kind", - "columnName": "kind", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "customTag", - "columnName": "customTag", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "coverUrl", - "columnName": "coverUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "customCoverUrl", - "columnName": "customCoverUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "intro", - "columnName": "intro", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "customIntro", - "columnName": "customIntro", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "charset", - "columnName": "charset", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "type", - "columnName": "type", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "group", - "columnName": "group", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "latestChapterTitle", - "columnName": "latestChapterTitle", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "latestChapterTime", - "columnName": "latestChapterTime", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "lastCheckTime", - "columnName": "lastCheckTime", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "lastCheckCount", - "columnName": "lastCheckCount", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "totalChapterNum", - "columnName": "totalChapterNum", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "durChapterTitle", - "columnName": "durChapterTitle", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "durChapterIndex", - "columnName": "durChapterIndex", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "durChapterPos", - "columnName": "durChapterPos", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "durChapterTime", - "columnName": "durChapterTime", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "wordCount", - "columnName": "wordCount", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "canUpdate", - "columnName": "canUpdate", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "order", - "columnName": "order", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "originOrder", - "columnName": "originOrder", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "variable", - "columnName": "variable", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "readConfig", - "columnName": "readConfig", - "affinity": "TEXT", - "notNull": false - } - ], - "primaryKey": { - "columnNames": [ - "bookUrl" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_books_name_author", - "unique": true, - "columnNames": [ - "name", - "author" - ], - "orders": [], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_books_name_author` ON `${TABLE_NAME}` (`name`, `author`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "book_groups", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`groupId` INTEGER NOT NULL, `groupName` TEXT NOT NULL, `cover` TEXT, `order` INTEGER NOT NULL, `show` INTEGER NOT NULL, PRIMARY KEY(`groupId`))", - "fields": [ - { - "fieldPath": "groupId", - "columnName": "groupId", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "groupName", - "columnName": "groupName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "cover", - "columnName": "cover", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "order", - "columnName": "order", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "show", - "columnName": "show", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "groupId" - ], - "autoGenerate": false - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "book_sources", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`bookSourceUrl` TEXT NOT NULL, `bookSourceName` TEXT NOT NULL, `bookSourceGroup` TEXT, `bookSourceType` INTEGER NOT NULL, `bookUrlPattern` TEXT, `customOrder` INTEGER NOT NULL, `enabled` INTEGER NOT NULL, `enabledExplore` INTEGER NOT NULL, `concurrentRate` TEXT, `header` TEXT, `loginUrl` TEXT, `loginUi` TEXT, `loginCheckJs` TEXT, `bookSourceComment` TEXT, `lastUpdateTime` INTEGER NOT NULL, `respondTime` INTEGER NOT NULL, `weight` INTEGER NOT NULL, `exploreUrl` TEXT, `ruleExplore` TEXT, `searchUrl` TEXT, `ruleSearch` TEXT, `ruleBookInfo` TEXT, `ruleToc` TEXT, `ruleContent` TEXT, PRIMARY KEY(`bookSourceUrl`))", - "fields": [ - { - "fieldPath": "bookSourceUrl", - "columnName": "bookSourceUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookSourceName", - "columnName": "bookSourceName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookSourceGroup", - "columnName": "bookSourceGroup", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "bookSourceType", - "columnName": "bookSourceType", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "bookUrlPattern", - "columnName": "bookUrlPattern", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "customOrder", - "columnName": "customOrder", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "enabled", - "columnName": "enabled", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "enabledExplore", - "columnName": "enabledExplore", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "concurrentRate", - "columnName": "concurrentRate", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "header", - "columnName": "header", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "loginUrl", - "columnName": "loginUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "loginUi", - "columnName": "loginUi", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "loginCheckJs", - "columnName": "loginCheckJs", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "bookSourceComment", - "columnName": "bookSourceComment", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "lastUpdateTime", - "columnName": "lastUpdateTime", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "respondTime", - "columnName": "respondTime", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "weight", - "columnName": "weight", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "exploreUrl", - "columnName": "exploreUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleExplore", - "columnName": "ruleExplore", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "searchUrl", - "columnName": "searchUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleSearch", - "columnName": "ruleSearch", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleBookInfo", - "columnName": "ruleBookInfo", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleToc", - "columnName": "ruleToc", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleContent", - "columnName": "ruleContent", - "affinity": "TEXT", - "notNull": false - } - ], - "primaryKey": { - "columnNames": [ - "bookSourceUrl" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_book_sources_bookSourceUrl", - "unique": false, - "columnNames": [ - "bookSourceUrl" - ], - "orders": [], - "createSql": "CREATE INDEX IF NOT EXISTS `index_book_sources_bookSourceUrl` ON `${TABLE_NAME}` (`bookSourceUrl`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "chapters", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`url` TEXT NOT NULL, `title` TEXT NOT NULL, `isVolume` INTEGER NOT NULL, `baseUrl` TEXT NOT NULL, `bookUrl` TEXT NOT NULL, `index` INTEGER NOT NULL, `isVip` INTEGER NOT NULL, `isPay` INTEGER NOT NULL, `resourceUrl` TEXT, `tag` TEXT, `start` INTEGER, `end` INTEGER, `startFragmentId` TEXT, `endFragmentId` TEXT, `variable` TEXT, PRIMARY KEY(`url`, `bookUrl`), FOREIGN KEY(`bookUrl`) REFERENCES `books`(`bookUrl`) ON UPDATE NO ACTION ON DELETE CASCADE )", - "fields": [ - { - "fieldPath": "url", - "columnName": "url", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "title", - "columnName": "title", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "isVolume", - "columnName": "isVolume", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "baseUrl", - "columnName": "baseUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookUrl", - "columnName": "bookUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "index", - "columnName": "index", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "isVip", - "columnName": "isVip", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "isPay", - "columnName": "isPay", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "resourceUrl", - "columnName": "resourceUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "tag", - "columnName": "tag", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "start", - "columnName": "start", - "affinity": "INTEGER", - "notNull": false - }, - { - "fieldPath": "end", - "columnName": "end", - "affinity": "INTEGER", - "notNull": false - }, - { - "fieldPath": "startFragmentId", - "columnName": "startFragmentId", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "endFragmentId", - "columnName": "endFragmentId", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "variable", - "columnName": "variable", - "affinity": "TEXT", - "notNull": false - } - ], - "primaryKey": { - "columnNames": [ - "url", - "bookUrl" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_chapters_bookUrl", - "unique": false, - "columnNames": [ - "bookUrl" - ], - "orders": [], - "createSql": "CREATE INDEX IF NOT EXISTS `index_chapters_bookUrl` ON `${TABLE_NAME}` (`bookUrl`)" - }, - { - "name": "index_chapters_bookUrl_index", - "unique": true, - "columnNames": [ - "bookUrl", - "index" - ], - "orders": [], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_chapters_bookUrl_index` ON `${TABLE_NAME}` (`bookUrl`, `index`)" - } - ], - "foreignKeys": [ - { - "table": "books", - "onDelete": "CASCADE", - "onUpdate": "NO ACTION", - "columns": [ - "bookUrl" - ], - "referencedColumns": [ - "bookUrl" - ] - } - ] - }, - { - "tableName": "replace_rules", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, `name` TEXT NOT NULL DEFAULT '', `group` TEXT, `pattern` TEXT NOT NULL DEFAULT '', `replacement` TEXT NOT NULL DEFAULT '', `scope` TEXT, `scopeTitle` INTEGER NOT NULL DEFAULT 0, `scopeContent` INTEGER NOT NULL DEFAULT 1, `isEnabled` INTEGER NOT NULL DEFAULT 1, `isRegex` INTEGER NOT NULL DEFAULT 1, `sortOrder` INTEGER NOT NULL DEFAULT 0)", - "fields": [ - { - "fieldPath": "id", - "columnName": "id", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true, - "defaultValue": "''" - }, - { - "fieldPath": "group", - "columnName": "group", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "pattern", - "columnName": "pattern", - "affinity": "TEXT", - "notNull": true, - "defaultValue": "''" - }, - { - "fieldPath": "replacement", - "columnName": "replacement", - "affinity": "TEXT", - "notNull": true, - "defaultValue": "''" - }, - { - "fieldPath": "scope", - "columnName": "scope", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "scopeTitle", - "columnName": "scopeTitle", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "scopeContent", - "columnName": "scopeContent", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "1" - }, - { - "fieldPath": "isEnabled", - "columnName": "isEnabled", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "1" - }, - { - "fieldPath": "isRegex", - "columnName": "isRegex", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "1" - }, - { - "fieldPath": "order", - "columnName": "sortOrder", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - } - ], - "primaryKey": { - "columnNames": [ - "id" - ], - "autoGenerate": true - }, - "indices": [ - { - "name": "index_replace_rules_id", - "unique": false, - "columnNames": [ - "id" - ], - "orders": [], - "createSql": "CREATE INDEX IF NOT EXISTS `index_replace_rules_id` ON `${TABLE_NAME}` (`id`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "searchBooks", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`bookUrl` TEXT NOT NULL, `origin` TEXT NOT NULL, `originName` TEXT NOT NULL, `type` INTEGER NOT NULL, `name` TEXT NOT NULL, `author` TEXT NOT NULL, `kind` TEXT, `coverUrl` TEXT, `intro` TEXT, `wordCount` TEXT, `latestChapterTitle` TEXT, `tocUrl` TEXT NOT NULL, `time` INTEGER NOT NULL, `variable` TEXT, `originOrder` INTEGER NOT NULL, PRIMARY KEY(`bookUrl`), FOREIGN KEY(`origin`) REFERENCES `book_sources`(`bookSourceUrl`) ON UPDATE NO ACTION ON DELETE CASCADE )", - "fields": [ - { - "fieldPath": "bookUrl", - "columnName": "bookUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "origin", - "columnName": "origin", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "originName", - "columnName": "originName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "type", - "columnName": "type", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "author", - "columnName": "author", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "kind", - "columnName": "kind", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "coverUrl", - "columnName": "coverUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "intro", - "columnName": "intro", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "wordCount", - "columnName": "wordCount", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "latestChapterTitle", - "columnName": "latestChapterTitle", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "tocUrl", - "columnName": "tocUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "time", - "columnName": "time", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "variable", - "columnName": "variable", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "originOrder", - "columnName": "originOrder", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "bookUrl" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_searchBooks_bookUrl", - "unique": true, - "columnNames": [ - "bookUrl" - ], - "orders": [], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_searchBooks_bookUrl` ON `${TABLE_NAME}` (`bookUrl`)" - }, - { - "name": "index_searchBooks_origin", - "unique": false, - "columnNames": [ - "origin" - ], - "orders": [], - "createSql": "CREATE INDEX IF NOT EXISTS `index_searchBooks_origin` ON `${TABLE_NAME}` (`origin`)" - } - ], - "foreignKeys": [ - { - "table": "book_sources", - "onDelete": "CASCADE", - "onUpdate": "NO ACTION", - "columns": [ - "origin" - ], - "referencedColumns": [ - "bookSourceUrl" - ] - } - ] - }, - { - "tableName": "search_keywords", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`word` TEXT NOT NULL, `usage` INTEGER NOT NULL, `lastUseTime` INTEGER NOT NULL, PRIMARY KEY(`word`))", - "fields": [ - { - "fieldPath": "word", - "columnName": "word", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "usage", - "columnName": "usage", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "lastUseTime", - "columnName": "lastUseTime", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "word" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_search_keywords_word", - "unique": true, - "columnNames": [ - "word" - ], - "orders": [], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_search_keywords_word` ON `${TABLE_NAME}` (`word`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "cookies", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`url` TEXT NOT NULL, `cookie` TEXT NOT NULL, PRIMARY KEY(`url`))", - "fields": [ - { - "fieldPath": "url", - "columnName": "url", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "cookie", - "columnName": "cookie", - "affinity": "TEXT", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "url" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_cookies_url", - "unique": true, - "columnNames": [ - "url" - ], - "orders": [], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_cookies_url` ON `${TABLE_NAME}` (`url`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "rssSources", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`sourceUrl` TEXT NOT NULL, `sourceName` TEXT NOT NULL, `sourceIcon` TEXT NOT NULL, `sourceGroup` TEXT, `sourceComment` TEXT, `enabled` INTEGER NOT NULL, `concurrentRate` TEXT, `header` TEXT, `loginUrl` TEXT, `loginUi` TEXT, `loginCheckJs` TEXT, `sortUrl` TEXT, `singleUrl` INTEGER NOT NULL, `articleStyle` INTEGER NOT NULL, `ruleArticles` TEXT, `ruleNextPage` TEXT, `ruleTitle` TEXT, `rulePubDate` TEXT, `ruleDescription` TEXT, `ruleImage` TEXT, `ruleLink` TEXT, `ruleContent` TEXT, `style` TEXT, `enableJs` INTEGER NOT NULL, `loadWithBaseUrl` INTEGER NOT NULL, `customOrder` INTEGER NOT NULL, PRIMARY KEY(`sourceUrl`))", - "fields": [ - { - "fieldPath": "sourceUrl", - "columnName": "sourceUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "sourceName", - "columnName": "sourceName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "sourceIcon", - "columnName": "sourceIcon", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "sourceGroup", - "columnName": "sourceGroup", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "sourceComment", - "columnName": "sourceComment", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "enabled", - "columnName": "enabled", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "concurrentRate", - "columnName": "concurrentRate", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "header", - "columnName": "header", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "loginUrl", - "columnName": "loginUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "loginUi", - "columnName": "loginUi", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "loginCheckJs", - "columnName": "loginCheckJs", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "sortUrl", - "columnName": "sortUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "singleUrl", - "columnName": "singleUrl", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "articleStyle", - "columnName": "articleStyle", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "ruleArticles", - "columnName": "ruleArticles", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleNextPage", - "columnName": "ruleNextPage", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleTitle", - "columnName": "ruleTitle", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "rulePubDate", - "columnName": "rulePubDate", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleDescription", - "columnName": "ruleDescription", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleImage", - "columnName": "ruleImage", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleLink", - "columnName": "ruleLink", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleContent", - "columnName": "ruleContent", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "style", - "columnName": "style", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "enableJs", - "columnName": "enableJs", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "loadWithBaseUrl", - "columnName": "loadWithBaseUrl", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "customOrder", - "columnName": "customOrder", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "sourceUrl" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_rssSources_sourceUrl", - "unique": false, - "columnNames": [ - "sourceUrl" - ], - "orders": [], - "createSql": "CREATE INDEX IF NOT EXISTS `index_rssSources_sourceUrl` ON `${TABLE_NAME}` (`sourceUrl`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "bookmarks", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`time` INTEGER NOT NULL, `bookName` TEXT NOT NULL, `bookAuthor` TEXT NOT NULL, `chapterIndex` INTEGER NOT NULL, `chapterPos` INTEGER NOT NULL, `chapterName` TEXT NOT NULL, `bookText` TEXT NOT NULL, `content` TEXT NOT NULL, PRIMARY KEY(`time`))", - "fields": [ - { - "fieldPath": "time", - "columnName": "time", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "bookName", - "columnName": "bookName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookAuthor", - "columnName": "bookAuthor", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "chapterIndex", - "columnName": "chapterIndex", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "chapterPos", - "columnName": "chapterPos", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "chapterName", - "columnName": "chapterName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookText", - "columnName": "bookText", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "content", - "columnName": "content", - "affinity": "TEXT", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "time" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_bookmarks_bookName_bookAuthor", - "unique": false, - "columnNames": [ - "bookName", - "bookAuthor" - ], - "orders": [], - "createSql": "CREATE INDEX IF NOT EXISTS `index_bookmarks_bookName_bookAuthor` ON `${TABLE_NAME}` (`bookName`, `bookAuthor`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "rssArticles", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`origin` TEXT NOT NULL, `sort` TEXT NOT NULL, `title` TEXT NOT NULL, `order` INTEGER NOT NULL, `link` TEXT NOT NULL, `pubDate` TEXT, `description` TEXT, `content` TEXT, `image` TEXT, `read` INTEGER NOT NULL, `variable` TEXT, PRIMARY KEY(`origin`, `link`))", - "fields": [ - { - "fieldPath": "origin", - "columnName": "origin", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "sort", - "columnName": "sort", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "title", - "columnName": "title", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "order", - "columnName": "order", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "link", - "columnName": "link", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "pubDate", - "columnName": "pubDate", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "description", - "columnName": "description", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "content", - "columnName": "content", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "image", - "columnName": "image", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "read", - "columnName": "read", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "variable", - "columnName": "variable", - "affinity": "TEXT", - "notNull": false - } - ], - "primaryKey": { - "columnNames": [ - "origin", - "link" - ], - "autoGenerate": false - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "rssReadRecords", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`record` TEXT NOT NULL, `read` INTEGER NOT NULL, PRIMARY KEY(`record`))", - "fields": [ - { - "fieldPath": "record", - "columnName": "record", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "read", - "columnName": "read", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "record" - ], - "autoGenerate": false - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "rssStars", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`origin` TEXT NOT NULL, `sort` TEXT NOT NULL, `title` TEXT NOT NULL, `starTime` INTEGER NOT NULL, `link` TEXT NOT NULL, `pubDate` TEXT, `description` TEXT, `content` TEXT, `image` TEXT, `variable` TEXT, PRIMARY KEY(`origin`, `link`))", - "fields": [ - { - "fieldPath": "origin", - "columnName": "origin", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "sort", - "columnName": "sort", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "title", - "columnName": "title", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "starTime", - "columnName": "starTime", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "link", - "columnName": "link", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "pubDate", - "columnName": "pubDate", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "description", - "columnName": "description", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "content", - "columnName": "content", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "image", - "columnName": "image", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "variable", - "columnName": "variable", - "affinity": "TEXT", - "notNull": false - } - ], - "primaryKey": { - "columnNames": [ - "origin", - "link" - ], - "autoGenerate": false - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "txtTocRules", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER NOT NULL, `name` TEXT NOT NULL, `rule` TEXT NOT NULL, `serialNumber` INTEGER NOT NULL, `enable` INTEGER NOT NULL, PRIMARY KEY(`id`))", - "fields": [ - { - "fieldPath": "id", - "columnName": "id", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "rule", - "columnName": "rule", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "serialNumber", - "columnName": "serialNumber", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "enable", - "columnName": "enable", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "id" - ], - "autoGenerate": false - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "readRecord", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`deviceId` TEXT NOT NULL, `bookName` TEXT NOT NULL, `readTime` INTEGER NOT NULL, PRIMARY KEY(`deviceId`, `bookName`))", - "fields": [ - { - "fieldPath": "deviceId", - "columnName": "deviceId", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookName", - "columnName": "bookName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "readTime", - "columnName": "readTime", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "deviceId", - "bookName" - ], - "autoGenerate": false - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "httpTTS", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER NOT NULL, `name` TEXT NOT NULL, `url` TEXT NOT NULL, `contentType` TEXT, `concurrentRate` TEXT, `loginUrl` TEXT, `loginUi` TEXT, `header` TEXT, `loginCheckJs` TEXT, PRIMARY KEY(`id`))", - "fields": [ - { - "fieldPath": "id", - "columnName": "id", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "url", - "columnName": "url", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "contentType", - "columnName": "contentType", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "concurrentRate", - "columnName": "concurrentRate", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "loginUrl", - "columnName": "loginUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "loginUi", - "columnName": "loginUi", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "header", - "columnName": "header", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "loginCheckJs", - "columnName": "loginCheckJs", - "affinity": "TEXT", - "notNull": false - } - ], - "primaryKey": { - "columnNames": [ - "id" - ], - "autoGenerate": false - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "caches", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`key` TEXT NOT NULL, `value` TEXT, `deadline` INTEGER NOT NULL, PRIMARY KEY(`key`))", - "fields": [ - { - "fieldPath": "key", - "columnName": "key", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "value", - "columnName": "value", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "deadline", - "columnName": "deadline", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "key" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_caches_key", - "unique": true, - "columnNames": [ - "key" - ], - "orders": [], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_caches_key` ON `${TABLE_NAME}` (`key`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "ruleSubs", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER NOT NULL, `name` TEXT NOT NULL, `url` TEXT NOT NULL, `type` INTEGER NOT NULL, `customOrder` INTEGER NOT NULL, `autoUpdate` INTEGER NOT NULL, `update` INTEGER NOT NULL, PRIMARY KEY(`id`))", - "fields": [ - { - "fieldPath": "id", - "columnName": "id", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "url", - "columnName": "url", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "type", - "columnName": "type", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "customOrder", - "columnName": "customOrder", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "autoUpdate", - "columnName": "autoUpdate", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "update", - "columnName": "update", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "id" - ], - "autoGenerate": false - }, - "indices": [], - "foreignKeys": [] - } - ], - "views": [], - "setupQueries": [ - "CREATE TABLE IF NOT EXISTS room_master_table (id INTEGER PRIMARY KEY,identity_hash TEXT)", - "INSERT OR REPLACE INTO room_master_table (id,identity_hash) VALUES(42, 'fdfaa67979c13dd76db0a1b594bc5904')" - ] - } -} \ No newline at end of file diff --git a/app/schemas/io.legado.app.data.AppDatabase/45.json b/app/schemas/io.legado.app.data.AppDatabase/45.json deleted file mode 100644 index 6c760036e..000000000 --- a/app/schemas/io.legado.app.data.AppDatabase/45.json +++ /dev/null @@ -1,1618 +0,0 @@ -{ - "formatVersion": 1, - "database": { - "version": 45, - "identityHash": "63272539e04e405abfd79e27ea55db75", - "entities": [ - { - "tableName": "books", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`bookUrl` TEXT NOT NULL DEFAULT '', `tocUrl` TEXT NOT NULL DEFAULT '', `origin` TEXT NOT NULL DEFAULT '', `originName` TEXT NOT NULL DEFAULT '', `name` TEXT NOT NULL DEFAULT '', `author` TEXT NOT NULL DEFAULT '', `kind` TEXT, `customTag` TEXT, `coverUrl` TEXT, `customCoverUrl` TEXT, `intro` TEXT, `customIntro` TEXT, `charset` TEXT, `type` INTEGER NOT NULL DEFAULT 0, `group` INTEGER NOT NULL DEFAULT 0, `latestChapterTitle` TEXT, `latestChapterTime` INTEGER NOT NULL DEFAULT 0, `lastCheckTime` INTEGER NOT NULL DEFAULT 0, `lastCheckCount` INTEGER NOT NULL DEFAULT 0, `totalChapterNum` INTEGER NOT NULL DEFAULT 0, `durChapterTitle` TEXT, `durChapterIndex` INTEGER NOT NULL DEFAULT 0, `durChapterPos` INTEGER NOT NULL DEFAULT 0, `durChapterTime` INTEGER NOT NULL DEFAULT 0, `wordCount` TEXT, `canUpdate` INTEGER NOT NULL DEFAULT 1, `order` INTEGER NOT NULL DEFAULT 0, `originOrder` INTEGER NOT NULL DEFAULT 0, `variable` TEXT, `readConfig` TEXT, PRIMARY KEY(`bookUrl`))", - "fields": [ - { - "fieldPath": "bookUrl", - "columnName": "bookUrl", - "affinity": "TEXT", - "notNull": true, - "defaultValue": "''" - }, - { - "fieldPath": "tocUrl", - "columnName": "tocUrl", - "affinity": "TEXT", - "notNull": true, - "defaultValue": "''" - }, - { - "fieldPath": "origin", - "columnName": "origin", - "affinity": "TEXT", - "notNull": true, - "defaultValue": "''" - }, - { - "fieldPath": "originName", - "columnName": "originName", - "affinity": "TEXT", - "notNull": true, - "defaultValue": "''" - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true, - "defaultValue": "''" - }, - { - "fieldPath": "author", - "columnName": "author", - "affinity": "TEXT", - "notNull": true, - "defaultValue": "''" - }, - { - "fieldPath": "kind", - "columnName": "kind", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "customTag", - "columnName": "customTag", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "coverUrl", - "columnName": "coverUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "customCoverUrl", - "columnName": "customCoverUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "intro", - "columnName": "intro", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "customIntro", - "columnName": "customIntro", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "charset", - "columnName": "charset", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "type", - "columnName": "type", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "group", - "columnName": "group", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "latestChapterTitle", - "columnName": "latestChapterTitle", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "latestChapterTime", - "columnName": "latestChapterTime", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "lastCheckTime", - "columnName": "lastCheckTime", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "lastCheckCount", - "columnName": "lastCheckCount", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "totalChapterNum", - "columnName": "totalChapterNum", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "durChapterTitle", - "columnName": "durChapterTitle", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "durChapterIndex", - "columnName": "durChapterIndex", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "durChapterPos", - "columnName": "durChapterPos", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "durChapterTime", - "columnName": "durChapterTime", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "wordCount", - "columnName": "wordCount", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "canUpdate", - "columnName": "canUpdate", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "1" - }, - { - "fieldPath": "order", - "columnName": "order", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "originOrder", - "columnName": "originOrder", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "variable", - "columnName": "variable", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "readConfig", - "columnName": "readConfig", - "affinity": "TEXT", - "notNull": false - } - ], - "primaryKey": { - "columnNames": [ - "bookUrl" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_books_name_author", - "unique": true, - "columnNames": [ - "name", - "author" - ], - "orders": [], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_books_name_author` ON `${TABLE_NAME}` (`name`, `author`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "book_groups", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`groupId` INTEGER NOT NULL, `groupName` TEXT NOT NULL, `cover` TEXT, `order` INTEGER NOT NULL, `show` INTEGER NOT NULL, PRIMARY KEY(`groupId`))", - "fields": [ - { - "fieldPath": "groupId", - "columnName": "groupId", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "groupName", - "columnName": "groupName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "cover", - "columnName": "cover", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "order", - "columnName": "order", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "show", - "columnName": "show", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "groupId" - ], - "autoGenerate": false - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "book_sources", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`bookSourceUrl` TEXT NOT NULL, `bookSourceName` TEXT NOT NULL, `bookSourceGroup` TEXT, `bookSourceType` INTEGER NOT NULL, `bookUrlPattern` TEXT, `customOrder` INTEGER NOT NULL, `enabled` INTEGER NOT NULL, `enabledExplore` INTEGER NOT NULL, `concurrentRate` TEXT, `header` TEXT, `loginUrl` TEXT, `loginUi` TEXT, `loginCheckJs` TEXT, `bookSourceComment` TEXT, `lastUpdateTime` INTEGER NOT NULL, `respondTime` INTEGER NOT NULL, `weight` INTEGER NOT NULL, `exploreUrl` TEXT, `ruleExplore` TEXT, `searchUrl` TEXT, `ruleSearch` TEXT, `ruleBookInfo` TEXT, `ruleToc` TEXT, `ruleContent` TEXT, PRIMARY KEY(`bookSourceUrl`))", - "fields": [ - { - "fieldPath": "bookSourceUrl", - "columnName": "bookSourceUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookSourceName", - "columnName": "bookSourceName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookSourceGroup", - "columnName": "bookSourceGroup", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "bookSourceType", - "columnName": "bookSourceType", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "bookUrlPattern", - "columnName": "bookUrlPattern", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "customOrder", - "columnName": "customOrder", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "enabled", - "columnName": "enabled", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "enabledExplore", - "columnName": "enabledExplore", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "concurrentRate", - "columnName": "concurrentRate", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "header", - "columnName": "header", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "loginUrl", - "columnName": "loginUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "loginUi", - "columnName": "loginUi", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "loginCheckJs", - "columnName": "loginCheckJs", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "bookSourceComment", - "columnName": "bookSourceComment", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "lastUpdateTime", - "columnName": "lastUpdateTime", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "respondTime", - "columnName": "respondTime", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "weight", - "columnName": "weight", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "exploreUrl", - "columnName": "exploreUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleExplore", - "columnName": "ruleExplore", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "searchUrl", - "columnName": "searchUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleSearch", - "columnName": "ruleSearch", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleBookInfo", - "columnName": "ruleBookInfo", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleToc", - "columnName": "ruleToc", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleContent", - "columnName": "ruleContent", - "affinity": "TEXT", - "notNull": false - } - ], - "primaryKey": { - "columnNames": [ - "bookSourceUrl" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_book_sources_bookSourceUrl", - "unique": false, - "columnNames": [ - "bookSourceUrl" - ], - "orders": [], - "createSql": "CREATE INDEX IF NOT EXISTS `index_book_sources_bookSourceUrl` ON `${TABLE_NAME}` (`bookSourceUrl`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "chapters", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`url` TEXT NOT NULL, `title` TEXT NOT NULL, `isVolume` INTEGER NOT NULL, `baseUrl` TEXT NOT NULL, `bookUrl` TEXT NOT NULL, `index` INTEGER NOT NULL, `isVip` INTEGER NOT NULL, `isPay` INTEGER NOT NULL, `resourceUrl` TEXT, `tag` TEXT, `start` INTEGER, `end` INTEGER, `startFragmentId` TEXT, `endFragmentId` TEXT, `variable` TEXT, PRIMARY KEY(`url`, `bookUrl`), FOREIGN KEY(`bookUrl`) REFERENCES `books`(`bookUrl`) ON UPDATE NO ACTION ON DELETE CASCADE )", - "fields": [ - { - "fieldPath": "url", - "columnName": "url", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "title", - "columnName": "title", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "isVolume", - "columnName": "isVolume", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "baseUrl", - "columnName": "baseUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookUrl", - "columnName": "bookUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "index", - "columnName": "index", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "isVip", - "columnName": "isVip", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "isPay", - "columnName": "isPay", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "resourceUrl", - "columnName": "resourceUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "tag", - "columnName": "tag", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "start", - "columnName": "start", - "affinity": "INTEGER", - "notNull": false - }, - { - "fieldPath": "end", - "columnName": "end", - "affinity": "INTEGER", - "notNull": false - }, - { - "fieldPath": "startFragmentId", - "columnName": "startFragmentId", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "endFragmentId", - "columnName": "endFragmentId", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "variable", - "columnName": "variable", - "affinity": "TEXT", - "notNull": false - } - ], - "primaryKey": { - "columnNames": [ - "url", - "bookUrl" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_chapters_bookUrl", - "unique": false, - "columnNames": [ - "bookUrl" - ], - "orders": [], - "createSql": "CREATE INDEX IF NOT EXISTS `index_chapters_bookUrl` ON `${TABLE_NAME}` (`bookUrl`)" - }, - { - "name": "index_chapters_bookUrl_index", - "unique": true, - "columnNames": [ - "bookUrl", - "index" - ], - "orders": [], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_chapters_bookUrl_index` ON `${TABLE_NAME}` (`bookUrl`, `index`)" - } - ], - "foreignKeys": [ - { - "table": "books", - "onDelete": "CASCADE", - "onUpdate": "NO ACTION", - "columns": [ - "bookUrl" - ], - "referencedColumns": [ - "bookUrl" - ] - } - ] - }, - { - "tableName": "replace_rules", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, `name` TEXT NOT NULL DEFAULT '', `group` TEXT, `pattern` TEXT NOT NULL DEFAULT '', `replacement` TEXT NOT NULL DEFAULT '', `scope` TEXT, `scopeTitle` INTEGER NOT NULL DEFAULT 0, `scopeContent` INTEGER NOT NULL DEFAULT 1, `isEnabled` INTEGER NOT NULL DEFAULT 1, `isRegex` INTEGER NOT NULL DEFAULT 1, `sortOrder` INTEGER NOT NULL DEFAULT 0)", - "fields": [ - { - "fieldPath": "id", - "columnName": "id", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true, - "defaultValue": "''" - }, - { - "fieldPath": "group", - "columnName": "group", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "pattern", - "columnName": "pattern", - "affinity": "TEXT", - "notNull": true, - "defaultValue": "''" - }, - { - "fieldPath": "replacement", - "columnName": "replacement", - "affinity": "TEXT", - "notNull": true, - "defaultValue": "''" - }, - { - "fieldPath": "scope", - "columnName": "scope", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "scopeTitle", - "columnName": "scopeTitle", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "scopeContent", - "columnName": "scopeContent", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "1" - }, - { - "fieldPath": "isEnabled", - "columnName": "isEnabled", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "1" - }, - { - "fieldPath": "isRegex", - "columnName": "isRegex", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "1" - }, - { - "fieldPath": "order", - "columnName": "sortOrder", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - } - ], - "primaryKey": { - "columnNames": [ - "id" - ], - "autoGenerate": true - }, - "indices": [ - { - "name": "index_replace_rules_id", - "unique": false, - "columnNames": [ - "id" - ], - "orders": [], - "createSql": "CREATE INDEX IF NOT EXISTS `index_replace_rules_id` ON `${TABLE_NAME}` (`id`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "searchBooks", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`bookUrl` TEXT NOT NULL, `origin` TEXT NOT NULL, `originName` TEXT NOT NULL, `type` INTEGER NOT NULL, `name` TEXT NOT NULL, `author` TEXT NOT NULL, `kind` TEXT, `coverUrl` TEXT, `intro` TEXT, `wordCount` TEXT, `latestChapterTitle` TEXT, `tocUrl` TEXT NOT NULL, `time` INTEGER NOT NULL, `variable` TEXT, `originOrder` INTEGER NOT NULL, PRIMARY KEY(`bookUrl`), FOREIGN KEY(`origin`) REFERENCES `book_sources`(`bookSourceUrl`) ON UPDATE NO ACTION ON DELETE CASCADE )", - "fields": [ - { - "fieldPath": "bookUrl", - "columnName": "bookUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "origin", - "columnName": "origin", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "originName", - "columnName": "originName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "type", - "columnName": "type", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "author", - "columnName": "author", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "kind", - "columnName": "kind", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "coverUrl", - "columnName": "coverUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "intro", - "columnName": "intro", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "wordCount", - "columnName": "wordCount", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "latestChapterTitle", - "columnName": "latestChapterTitle", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "tocUrl", - "columnName": "tocUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "time", - "columnName": "time", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "variable", - "columnName": "variable", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "originOrder", - "columnName": "originOrder", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "bookUrl" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_searchBooks_bookUrl", - "unique": true, - "columnNames": [ - "bookUrl" - ], - "orders": [], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_searchBooks_bookUrl` ON `${TABLE_NAME}` (`bookUrl`)" - }, - { - "name": "index_searchBooks_origin", - "unique": false, - "columnNames": [ - "origin" - ], - "orders": [], - "createSql": "CREATE INDEX IF NOT EXISTS `index_searchBooks_origin` ON `${TABLE_NAME}` (`origin`)" - } - ], - "foreignKeys": [ - { - "table": "book_sources", - "onDelete": "CASCADE", - "onUpdate": "NO ACTION", - "columns": [ - "origin" - ], - "referencedColumns": [ - "bookSourceUrl" - ] - } - ] - }, - { - "tableName": "search_keywords", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`word` TEXT NOT NULL, `usage` INTEGER NOT NULL, `lastUseTime` INTEGER NOT NULL, PRIMARY KEY(`word`))", - "fields": [ - { - "fieldPath": "word", - "columnName": "word", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "usage", - "columnName": "usage", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "lastUseTime", - "columnName": "lastUseTime", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "word" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_search_keywords_word", - "unique": true, - "columnNames": [ - "word" - ], - "orders": [], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_search_keywords_word` ON `${TABLE_NAME}` (`word`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "cookies", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`url` TEXT NOT NULL, `cookie` TEXT NOT NULL, PRIMARY KEY(`url`))", - "fields": [ - { - "fieldPath": "url", - "columnName": "url", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "cookie", - "columnName": "cookie", - "affinity": "TEXT", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "url" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_cookies_url", - "unique": true, - "columnNames": [ - "url" - ], - "orders": [], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_cookies_url` ON `${TABLE_NAME}` (`url`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "rssSources", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`sourceUrl` TEXT NOT NULL, `sourceName` TEXT NOT NULL, `sourceIcon` TEXT NOT NULL, `sourceGroup` TEXT, `sourceComment` TEXT, `enabled` INTEGER NOT NULL, `concurrentRate` TEXT, `header` TEXT, `loginUrl` TEXT, `loginUi` TEXT, `loginCheckJs` TEXT, `sortUrl` TEXT, `singleUrl` INTEGER NOT NULL, `articleStyle` INTEGER NOT NULL, `ruleArticles` TEXT, `ruleNextPage` TEXT, `ruleTitle` TEXT, `rulePubDate` TEXT, `ruleDescription` TEXT, `ruleImage` TEXT, `ruleLink` TEXT, `ruleContent` TEXT, `style` TEXT, `enableJs` INTEGER NOT NULL, `loadWithBaseUrl` INTEGER NOT NULL, `customOrder` INTEGER NOT NULL, PRIMARY KEY(`sourceUrl`))", - "fields": [ - { - "fieldPath": "sourceUrl", - "columnName": "sourceUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "sourceName", - "columnName": "sourceName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "sourceIcon", - "columnName": "sourceIcon", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "sourceGroup", - "columnName": "sourceGroup", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "sourceComment", - "columnName": "sourceComment", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "enabled", - "columnName": "enabled", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "concurrentRate", - "columnName": "concurrentRate", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "header", - "columnName": "header", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "loginUrl", - "columnName": "loginUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "loginUi", - "columnName": "loginUi", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "loginCheckJs", - "columnName": "loginCheckJs", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "sortUrl", - "columnName": "sortUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "singleUrl", - "columnName": "singleUrl", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "articleStyle", - "columnName": "articleStyle", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "ruleArticles", - "columnName": "ruleArticles", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleNextPage", - "columnName": "ruleNextPage", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleTitle", - "columnName": "ruleTitle", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "rulePubDate", - "columnName": "rulePubDate", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleDescription", - "columnName": "ruleDescription", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleImage", - "columnName": "ruleImage", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleLink", - "columnName": "ruleLink", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleContent", - "columnName": "ruleContent", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "style", - "columnName": "style", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "enableJs", - "columnName": "enableJs", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "loadWithBaseUrl", - "columnName": "loadWithBaseUrl", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "customOrder", - "columnName": "customOrder", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "sourceUrl" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_rssSources_sourceUrl", - "unique": false, - "columnNames": [ - "sourceUrl" - ], - "orders": [], - "createSql": "CREATE INDEX IF NOT EXISTS `index_rssSources_sourceUrl` ON `${TABLE_NAME}` (`sourceUrl`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "bookmarks", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`time` INTEGER NOT NULL, `bookName` TEXT NOT NULL, `bookAuthor` TEXT NOT NULL, `chapterIndex` INTEGER NOT NULL, `chapterPos` INTEGER NOT NULL, `chapterName` TEXT NOT NULL, `bookText` TEXT NOT NULL, `content` TEXT NOT NULL, PRIMARY KEY(`time`))", - "fields": [ - { - "fieldPath": "time", - "columnName": "time", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "bookName", - "columnName": "bookName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookAuthor", - "columnName": "bookAuthor", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "chapterIndex", - "columnName": "chapterIndex", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "chapterPos", - "columnName": "chapterPos", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "chapterName", - "columnName": "chapterName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookText", - "columnName": "bookText", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "content", - "columnName": "content", - "affinity": "TEXT", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "time" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_bookmarks_bookName_bookAuthor", - "unique": false, - "columnNames": [ - "bookName", - "bookAuthor" - ], - "orders": [], - "createSql": "CREATE INDEX IF NOT EXISTS `index_bookmarks_bookName_bookAuthor` ON `${TABLE_NAME}` (`bookName`, `bookAuthor`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "rssArticles", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`origin` TEXT NOT NULL, `sort` TEXT NOT NULL, `title` TEXT NOT NULL, `order` INTEGER NOT NULL, `link` TEXT NOT NULL, `pubDate` TEXT, `description` TEXT, `content` TEXT, `image` TEXT, `read` INTEGER NOT NULL, `variable` TEXT, PRIMARY KEY(`origin`, `link`))", - "fields": [ - { - "fieldPath": "origin", - "columnName": "origin", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "sort", - "columnName": "sort", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "title", - "columnName": "title", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "order", - "columnName": "order", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "link", - "columnName": "link", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "pubDate", - "columnName": "pubDate", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "description", - "columnName": "description", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "content", - "columnName": "content", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "image", - "columnName": "image", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "read", - "columnName": "read", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "variable", - "columnName": "variable", - "affinity": "TEXT", - "notNull": false - } - ], - "primaryKey": { - "columnNames": [ - "origin", - "link" - ], - "autoGenerate": false - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "rssReadRecords", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`record` TEXT NOT NULL, `read` INTEGER NOT NULL, PRIMARY KEY(`record`))", - "fields": [ - { - "fieldPath": "record", - "columnName": "record", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "read", - "columnName": "read", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "record" - ], - "autoGenerate": false - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "rssStars", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`origin` TEXT NOT NULL, `sort` TEXT NOT NULL, `title` TEXT NOT NULL, `starTime` INTEGER NOT NULL, `link` TEXT NOT NULL, `pubDate` TEXT, `description` TEXT, `content` TEXT, `image` TEXT, `variable` TEXT, PRIMARY KEY(`origin`, `link`))", - "fields": [ - { - "fieldPath": "origin", - "columnName": "origin", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "sort", - "columnName": "sort", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "title", - "columnName": "title", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "starTime", - "columnName": "starTime", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "link", - "columnName": "link", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "pubDate", - "columnName": "pubDate", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "description", - "columnName": "description", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "content", - "columnName": "content", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "image", - "columnName": "image", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "variable", - "columnName": "variable", - "affinity": "TEXT", - "notNull": false - } - ], - "primaryKey": { - "columnNames": [ - "origin", - "link" - ], - "autoGenerate": false - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "txtTocRules", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER NOT NULL, `name` TEXT NOT NULL, `rule` TEXT NOT NULL, `serialNumber` INTEGER NOT NULL, `enable` INTEGER NOT NULL, PRIMARY KEY(`id`))", - "fields": [ - { - "fieldPath": "id", - "columnName": "id", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "rule", - "columnName": "rule", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "serialNumber", - "columnName": "serialNumber", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "enable", - "columnName": "enable", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "id" - ], - "autoGenerate": false - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "readRecord", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`deviceId` TEXT NOT NULL, `bookName` TEXT NOT NULL, `readTime` INTEGER NOT NULL, PRIMARY KEY(`deviceId`, `bookName`))", - "fields": [ - { - "fieldPath": "deviceId", - "columnName": "deviceId", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookName", - "columnName": "bookName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "readTime", - "columnName": "readTime", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "deviceId", - "bookName" - ], - "autoGenerate": false - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "httpTTS", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER NOT NULL, `name` TEXT NOT NULL, `url` TEXT NOT NULL, `contentType` TEXT, `concurrentRate` TEXT, `loginUrl` TEXT, `loginUi` TEXT, `header` TEXT, `loginCheckJs` TEXT, PRIMARY KEY(`id`))", - "fields": [ - { - "fieldPath": "id", - "columnName": "id", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "url", - "columnName": "url", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "contentType", - "columnName": "contentType", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "concurrentRate", - "columnName": "concurrentRate", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "loginUrl", - "columnName": "loginUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "loginUi", - "columnName": "loginUi", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "header", - "columnName": "header", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "loginCheckJs", - "columnName": "loginCheckJs", - "affinity": "TEXT", - "notNull": false - } - ], - "primaryKey": { - "columnNames": [ - "id" - ], - "autoGenerate": false - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "caches", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`key` TEXT NOT NULL, `value` TEXT, `deadline` INTEGER NOT NULL, PRIMARY KEY(`key`))", - "fields": [ - { - "fieldPath": "key", - "columnName": "key", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "value", - "columnName": "value", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "deadline", - "columnName": "deadline", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "key" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_caches_key", - "unique": true, - "columnNames": [ - "key" - ], - "orders": [], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_caches_key` ON `${TABLE_NAME}` (`key`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "ruleSubs", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER NOT NULL, `name` TEXT NOT NULL, `url` TEXT NOT NULL, `type` INTEGER NOT NULL, `customOrder` INTEGER NOT NULL, `autoUpdate` INTEGER NOT NULL, `update` INTEGER NOT NULL, PRIMARY KEY(`id`))", - "fields": [ - { - "fieldPath": "id", - "columnName": "id", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "url", - "columnName": "url", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "type", - "columnName": "type", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "customOrder", - "columnName": "customOrder", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "autoUpdate", - "columnName": "autoUpdate", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "update", - "columnName": "update", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "id" - ], - "autoGenerate": false - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "keyboardAssists", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`type` INTEGER NOT NULL DEFAULT 0, `key` TEXT NOT NULL DEFAULT '', `value` TEXT NOT NULL DEFAULT '', `serialNo` INTEGER NOT NULL DEFAULT 0, PRIMARY KEY(`type`, `key`))", - "fields": [ - { - "fieldPath": "type", - "columnName": "type", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "key", - "columnName": "key", - "affinity": "TEXT", - "notNull": true, - "defaultValue": "''" - }, - { - "fieldPath": "value", - "columnName": "value", - "affinity": "TEXT", - "notNull": true, - "defaultValue": "''" - }, - { - "fieldPath": "serialNo", - "columnName": "serialNo", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - } - ], - "primaryKey": { - "columnNames": [ - "type", - "key" - ], - "autoGenerate": false - }, - "indices": [], - "foreignKeys": [] - } - ], - "views": [], - "setupQueries": [ - "CREATE TABLE IF NOT EXISTS room_master_table (id INTEGER PRIMARY KEY,identity_hash TEXT)", - "INSERT OR REPLACE INTO room_master_table (id,identity_hash) VALUES(42, '63272539e04e405abfd79e27ea55db75')" - ] - } -} \ No newline at end of file diff --git a/app/schemas/io.legado.app.data.AppDatabase/46.json b/app/schemas/io.legado.app.data.AppDatabase/46.json deleted file mode 100644 index 56b556d67..000000000 --- a/app/schemas/io.legado.app.data.AppDatabase/46.json +++ /dev/null @@ -1,1618 +0,0 @@ -{ - "formatVersion": 1, - "database": { - "version": 46, - "identityHash": "63272539e04e405abfd79e27ea55db75", - "entities": [ - { - "tableName": "books", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`bookUrl` TEXT NOT NULL DEFAULT '', `tocUrl` TEXT NOT NULL DEFAULT '', `origin` TEXT NOT NULL DEFAULT '', `originName` TEXT NOT NULL DEFAULT '', `name` TEXT NOT NULL DEFAULT '', `author` TEXT NOT NULL DEFAULT '', `kind` TEXT, `customTag` TEXT, `coverUrl` TEXT, `customCoverUrl` TEXT, `intro` TEXT, `customIntro` TEXT, `charset` TEXT, `type` INTEGER NOT NULL DEFAULT 0, `group` INTEGER NOT NULL DEFAULT 0, `latestChapterTitle` TEXT, `latestChapterTime` INTEGER NOT NULL DEFAULT 0, `lastCheckTime` INTEGER NOT NULL DEFAULT 0, `lastCheckCount` INTEGER NOT NULL DEFAULT 0, `totalChapterNum` INTEGER NOT NULL DEFAULT 0, `durChapterTitle` TEXT, `durChapterIndex` INTEGER NOT NULL DEFAULT 0, `durChapterPos` INTEGER NOT NULL DEFAULT 0, `durChapterTime` INTEGER NOT NULL DEFAULT 0, `wordCount` TEXT, `canUpdate` INTEGER NOT NULL DEFAULT 1, `order` INTEGER NOT NULL DEFAULT 0, `originOrder` INTEGER NOT NULL DEFAULT 0, `variable` TEXT, `readConfig` TEXT, PRIMARY KEY(`bookUrl`))", - "fields": [ - { - "fieldPath": "bookUrl", - "columnName": "bookUrl", - "affinity": "TEXT", - "notNull": true, - "defaultValue": "''" - }, - { - "fieldPath": "tocUrl", - "columnName": "tocUrl", - "affinity": "TEXT", - "notNull": true, - "defaultValue": "''" - }, - { - "fieldPath": "origin", - "columnName": "origin", - "affinity": "TEXT", - "notNull": true, - "defaultValue": "''" - }, - { - "fieldPath": "originName", - "columnName": "originName", - "affinity": "TEXT", - "notNull": true, - "defaultValue": "''" - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true, - "defaultValue": "''" - }, - { - "fieldPath": "author", - "columnName": "author", - "affinity": "TEXT", - "notNull": true, - "defaultValue": "''" - }, - { - "fieldPath": "kind", - "columnName": "kind", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "customTag", - "columnName": "customTag", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "coverUrl", - "columnName": "coverUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "customCoverUrl", - "columnName": "customCoverUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "intro", - "columnName": "intro", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "customIntro", - "columnName": "customIntro", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "charset", - "columnName": "charset", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "type", - "columnName": "type", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "group", - "columnName": "group", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "latestChapterTitle", - "columnName": "latestChapterTitle", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "latestChapterTime", - "columnName": "latestChapterTime", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "lastCheckTime", - "columnName": "lastCheckTime", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "lastCheckCount", - "columnName": "lastCheckCount", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "totalChapterNum", - "columnName": "totalChapterNum", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "durChapterTitle", - "columnName": "durChapterTitle", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "durChapterIndex", - "columnName": "durChapterIndex", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "durChapterPos", - "columnName": "durChapterPos", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "durChapterTime", - "columnName": "durChapterTime", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "wordCount", - "columnName": "wordCount", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "canUpdate", - "columnName": "canUpdate", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "1" - }, - { - "fieldPath": "order", - "columnName": "order", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "originOrder", - "columnName": "originOrder", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "variable", - "columnName": "variable", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "readConfig", - "columnName": "readConfig", - "affinity": "TEXT", - "notNull": false - } - ], - "primaryKey": { - "columnNames": [ - "bookUrl" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_books_name_author", - "unique": true, - "columnNames": [ - "name", - "author" - ], - "orders": [], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_books_name_author` ON `${TABLE_NAME}` (`name`, `author`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "book_groups", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`groupId` INTEGER NOT NULL, `groupName` TEXT NOT NULL, `cover` TEXT, `order` INTEGER NOT NULL, `show` INTEGER NOT NULL, PRIMARY KEY(`groupId`))", - "fields": [ - { - "fieldPath": "groupId", - "columnName": "groupId", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "groupName", - "columnName": "groupName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "cover", - "columnName": "cover", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "order", - "columnName": "order", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "show", - "columnName": "show", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "groupId" - ], - "autoGenerate": false - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "book_sources", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`bookSourceUrl` TEXT NOT NULL, `bookSourceName` TEXT NOT NULL, `bookSourceGroup` TEXT, `bookSourceType` INTEGER NOT NULL, `bookUrlPattern` TEXT, `customOrder` INTEGER NOT NULL, `enabled` INTEGER NOT NULL, `enabledExplore` INTEGER NOT NULL, `concurrentRate` TEXT, `header` TEXT, `loginUrl` TEXT, `loginUi` TEXT, `loginCheckJs` TEXT, `bookSourceComment` TEXT, `lastUpdateTime` INTEGER NOT NULL, `respondTime` INTEGER NOT NULL, `weight` INTEGER NOT NULL, `exploreUrl` TEXT, `ruleExplore` TEXT, `searchUrl` TEXT, `ruleSearch` TEXT, `ruleBookInfo` TEXT, `ruleToc` TEXT, `ruleContent` TEXT, PRIMARY KEY(`bookSourceUrl`))", - "fields": [ - { - "fieldPath": "bookSourceUrl", - "columnName": "bookSourceUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookSourceName", - "columnName": "bookSourceName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookSourceGroup", - "columnName": "bookSourceGroup", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "bookSourceType", - "columnName": "bookSourceType", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "bookUrlPattern", - "columnName": "bookUrlPattern", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "customOrder", - "columnName": "customOrder", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "enabled", - "columnName": "enabled", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "enabledExplore", - "columnName": "enabledExplore", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "concurrentRate", - "columnName": "concurrentRate", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "header", - "columnName": "header", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "loginUrl", - "columnName": "loginUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "loginUi", - "columnName": "loginUi", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "loginCheckJs", - "columnName": "loginCheckJs", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "bookSourceComment", - "columnName": "bookSourceComment", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "lastUpdateTime", - "columnName": "lastUpdateTime", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "respondTime", - "columnName": "respondTime", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "weight", - "columnName": "weight", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "exploreUrl", - "columnName": "exploreUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleExplore", - "columnName": "ruleExplore", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "searchUrl", - "columnName": "searchUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleSearch", - "columnName": "ruleSearch", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleBookInfo", - "columnName": "ruleBookInfo", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleToc", - "columnName": "ruleToc", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleContent", - "columnName": "ruleContent", - "affinity": "TEXT", - "notNull": false - } - ], - "primaryKey": { - "columnNames": [ - "bookSourceUrl" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_book_sources_bookSourceUrl", - "unique": false, - "columnNames": [ - "bookSourceUrl" - ], - "orders": [], - "createSql": "CREATE INDEX IF NOT EXISTS `index_book_sources_bookSourceUrl` ON `${TABLE_NAME}` (`bookSourceUrl`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "chapters", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`url` TEXT NOT NULL, `title` TEXT NOT NULL, `isVolume` INTEGER NOT NULL, `baseUrl` TEXT NOT NULL, `bookUrl` TEXT NOT NULL, `index` INTEGER NOT NULL, `isVip` INTEGER NOT NULL, `isPay` INTEGER NOT NULL, `resourceUrl` TEXT, `tag` TEXT, `start` INTEGER, `end` INTEGER, `startFragmentId` TEXT, `endFragmentId` TEXT, `variable` TEXT, PRIMARY KEY(`url`, `bookUrl`), FOREIGN KEY(`bookUrl`) REFERENCES `books`(`bookUrl`) ON UPDATE NO ACTION ON DELETE CASCADE )", - "fields": [ - { - "fieldPath": "url", - "columnName": "url", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "title", - "columnName": "title", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "isVolume", - "columnName": "isVolume", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "baseUrl", - "columnName": "baseUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookUrl", - "columnName": "bookUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "index", - "columnName": "index", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "isVip", - "columnName": "isVip", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "isPay", - "columnName": "isPay", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "resourceUrl", - "columnName": "resourceUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "tag", - "columnName": "tag", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "start", - "columnName": "start", - "affinity": "INTEGER", - "notNull": false - }, - { - "fieldPath": "end", - "columnName": "end", - "affinity": "INTEGER", - "notNull": false - }, - { - "fieldPath": "startFragmentId", - "columnName": "startFragmentId", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "endFragmentId", - "columnName": "endFragmentId", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "variable", - "columnName": "variable", - "affinity": "TEXT", - "notNull": false - } - ], - "primaryKey": { - "columnNames": [ - "url", - "bookUrl" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_chapters_bookUrl", - "unique": false, - "columnNames": [ - "bookUrl" - ], - "orders": [], - "createSql": "CREATE INDEX IF NOT EXISTS `index_chapters_bookUrl` ON `${TABLE_NAME}` (`bookUrl`)" - }, - { - "name": "index_chapters_bookUrl_index", - "unique": true, - "columnNames": [ - "bookUrl", - "index" - ], - "orders": [], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_chapters_bookUrl_index` ON `${TABLE_NAME}` (`bookUrl`, `index`)" - } - ], - "foreignKeys": [ - { - "table": "books", - "onDelete": "CASCADE", - "onUpdate": "NO ACTION", - "columns": [ - "bookUrl" - ], - "referencedColumns": [ - "bookUrl" - ] - } - ] - }, - { - "tableName": "replace_rules", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, `name` TEXT NOT NULL DEFAULT '', `group` TEXT, `pattern` TEXT NOT NULL DEFAULT '', `replacement` TEXT NOT NULL DEFAULT '', `scope` TEXT, `scopeTitle` INTEGER NOT NULL DEFAULT 0, `scopeContent` INTEGER NOT NULL DEFAULT 1, `isEnabled` INTEGER NOT NULL DEFAULT 1, `isRegex` INTEGER NOT NULL DEFAULT 1, `sortOrder` INTEGER NOT NULL DEFAULT 0)", - "fields": [ - { - "fieldPath": "id", - "columnName": "id", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true, - "defaultValue": "''" - }, - { - "fieldPath": "group", - "columnName": "group", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "pattern", - "columnName": "pattern", - "affinity": "TEXT", - "notNull": true, - "defaultValue": "''" - }, - { - "fieldPath": "replacement", - "columnName": "replacement", - "affinity": "TEXT", - "notNull": true, - "defaultValue": "''" - }, - { - "fieldPath": "scope", - "columnName": "scope", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "scopeTitle", - "columnName": "scopeTitle", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "scopeContent", - "columnName": "scopeContent", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "1" - }, - { - "fieldPath": "isEnabled", - "columnName": "isEnabled", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "1" - }, - { - "fieldPath": "isRegex", - "columnName": "isRegex", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "1" - }, - { - "fieldPath": "order", - "columnName": "sortOrder", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - } - ], - "primaryKey": { - "columnNames": [ - "id" - ], - "autoGenerate": true - }, - "indices": [ - { - "name": "index_replace_rules_id", - "unique": false, - "columnNames": [ - "id" - ], - "orders": [], - "createSql": "CREATE INDEX IF NOT EXISTS `index_replace_rules_id` ON `${TABLE_NAME}` (`id`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "searchBooks", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`bookUrl` TEXT NOT NULL, `origin` TEXT NOT NULL, `originName` TEXT NOT NULL, `type` INTEGER NOT NULL, `name` TEXT NOT NULL, `author` TEXT NOT NULL, `kind` TEXT, `coverUrl` TEXT, `intro` TEXT, `wordCount` TEXT, `latestChapterTitle` TEXT, `tocUrl` TEXT NOT NULL, `time` INTEGER NOT NULL, `variable` TEXT, `originOrder` INTEGER NOT NULL, PRIMARY KEY(`bookUrl`), FOREIGN KEY(`origin`) REFERENCES `book_sources`(`bookSourceUrl`) ON UPDATE NO ACTION ON DELETE CASCADE )", - "fields": [ - { - "fieldPath": "bookUrl", - "columnName": "bookUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "origin", - "columnName": "origin", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "originName", - "columnName": "originName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "type", - "columnName": "type", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "author", - "columnName": "author", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "kind", - "columnName": "kind", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "coverUrl", - "columnName": "coverUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "intro", - "columnName": "intro", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "wordCount", - "columnName": "wordCount", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "latestChapterTitle", - "columnName": "latestChapterTitle", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "tocUrl", - "columnName": "tocUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "time", - "columnName": "time", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "variable", - "columnName": "variable", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "originOrder", - "columnName": "originOrder", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "bookUrl" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_searchBooks_bookUrl", - "unique": true, - "columnNames": [ - "bookUrl" - ], - "orders": [], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_searchBooks_bookUrl` ON `${TABLE_NAME}` (`bookUrl`)" - }, - { - "name": "index_searchBooks_origin", - "unique": false, - "columnNames": [ - "origin" - ], - "orders": [], - "createSql": "CREATE INDEX IF NOT EXISTS `index_searchBooks_origin` ON `${TABLE_NAME}` (`origin`)" - } - ], - "foreignKeys": [ - { - "table": "book_sources", - "onDelete": "CASCADE", - "onUpdate": "NO ACTION", - "columns": [ - "origin" - ], - "referencedColumns": [ - "bookSourceUrl" - ] - } - ] - }, - { - "tableName": "search_keywords", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`word` TEXT NOT NULL, `usage` INTEGER NOT NULL, `lastUseTime` INTEGER NOT NULL, PRIMARY KEY(`word`))", - "fields": [ - { - "fieldPath": "word", - "columnName": "word", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "usage", - "columnName": "usage", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "lastUseTime", - "columnName": "lastUseTime", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "word" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_search_keywords_word", - "unique": true, - "columnNames": [ - "word" - ], - "orders": [], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_search_keywords_word` ON `${TABLE_NAME}` (`word`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "cookies", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`url` TEXT NOT NULL, `cookie` TEXT NOT NULL, PRIMARY KEY(`url`))", - "fields": [ - { - "fieldPath": "url", - "columnName": "url", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "cookie", - "columnName": "cookie", - "affinity": "TEXT", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "url" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_cookies_url", - "unique": true, - "columnNames": [ - "url" - ], - "orders": [], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_cookies_url` ON `${TABLE_NAME}` (`url`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "rssSources", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`sourceUrl` TEXT NOT NULL, `sourceName` TEXT NOT NULL, `sourceIcon` TEXT NOT NULL, `sourceGroup` TEXT, `sourceComment` TEXT, `enabled` INTEGER NOT NULL, `concurrentRate` TEXT, `header` TEXT, `loginUrl` TEXT, `loginUi` TEXT, `loginCheckJs` TEXT, `sortUrl` TEXT, `singleUrl` INTEGER NOT NULL, `articleStyle` INTEGER NOT NULL, `ruleArticles` TEXT, `ruleNextPage` TEXT, `ruleTitle` TEXT, `rulePubDate` TEXT, `ruleDescription` TEXT, `ruleImage` TEXT, `ruleLink` TEXT, `ruleContent` TEXT, `style` TEXT, `enableJs` INTEGER NOT NULL, `loadWithBaseUrl` INTEGER NOT NULL, `customOrder` INTEGER NOT NULL, PRIMARY KEY(`sourceUrl`))", - "fields": [ - { - "fieldPath": "sourceUrl", - "columnName": "sourceUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "sourceName", - "columnName": "sourceName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "sourceIcon", - "columnName": "sourceIcon", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "sourceGroup", - "columnName": "sourceGroup", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "sourceComment", - "columnName": "sourceComment", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "enabled", - "columnName": "enabled", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "concurrentRate", - "columnName": "concurrentRate", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "header", - "columnName": "header", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "loginUrl", - "columnName": "loginUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "loginUi", - "columnName": "loginUi", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "loginCheckJs", - "columnName": "loginCheckJs", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "sortUrl", - "columnName": "sortUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "singleUrl", - "columnName": "singleUrl", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "articleStyle", - "columnName": "articleStyle", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "ruleArticles", - "columnName": "ruleArticles", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleNextPage", - "columnName": "ruleNextPage", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleTitle", - "columnName": "ruleTitle", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "rulePubDate", - "columnName": "rulePubDate", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleDescription", - "columnName": "ruleDescription", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleImage", - "columnName": "ruleImage", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleLink", - "columnName": "ruleLink", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleContent", - "columnName": "ruleContent", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "style", - "columnName": "style", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "enableJs", - "columnName": "enableJs", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "loadWithBaseUrl", - "columnName": "loadWithBaseUrl", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "customOrder", - "columnName": "customOrder", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "sourceUrl" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_rssSources_sourceUrl", - "unique": false, - "columnNames": [ - "sourceUrl" - ], - "orders": [], - "createSql": "CREATE INDEX IF NOT EXISTS `index_rssSources_sourceUrl` ON `${TABLE_NAME}` (`sourceUrl`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "bookmarks", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`time` INTEGER NOT NULL, `bookName` TEXT NOT NULL, `bookAuthor` TEXT NOT NULL, `chapterIndex` INTEGER NOT NULL, `chapterPos` INTEGER NOT NULL, `chapterName` TEXT NOT NULL, `bookText` TEXT NOT NULL, `content` TEXT NOT NULL, PRIMARY KEY(`time`))", - "fields": [ - { - "fieldPath": "time", - "columnName": "time", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "bookName", - "columnName": "bookName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookAuthor", - "columnName": "bookAuthor", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "chapterIndex", - "columnName": "chapterIndex", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "chapterPos", - "columnName": "chapterPos", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "chapterName", - "columnName": "chapterName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookText", - "columnName": "bookText", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "content", - "columnName": "content", - "affinity": "TEXT", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "time" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_bookmarks_bookName_bookAuthor", - "unique": false, - "columnNames": [ - "bookName", - "bookAuthor" - ], - "orders": [], - "createSql": "CREATE INDEX IF NOT EXISTS `index_bookmarks_bookName_bookAuthor` ON `${TABLE_NAME}` (`bookName`, `bookAuthor`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "rssArticles", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`origin` TEXT NOT NULL, `sort` TEXT NOT NULL, `title` TEXT NOT NULL, `order` INTEGER NOT NULL, `link` TEXT NOT NULL, `pubDate` TEXT, `description` TEXT, `content` TEXT, `image` TEXT, `read` INTEGER NOT NULL, `variable` TEXT, PRIMARY KEY(`origin`, `link`))", - "fields": [ - { - "fieldPath": "origin", - "columnName": "origin", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "sort", - "columnName": "sort", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "title", - "columnName": "title", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "order", - "columnName": "order", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "link", - "columnName": "link", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "pubDate", - "columnName": "pubDate", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "description", - "columnName": "description", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "content", - "columnName": "content", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "image", - "columnName": "image", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "read", - "columnName": "read", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "variable", - "columnName": "variable", - "affinity": "TEXT", - "notNull": false - } - ], - "primaryKey": { - "columnNames": [ - "origin", - "link" - ], - "autoGenerate": false - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "rssReadRecords", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`record` TEXT NOT NULL, `read` INTEGER NOT NULL, PRIMARY KEY(`record`))", - "fields": [ - { - "fieldPath": "record", - "columnName": "record", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "read", - "columnName": "read", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "record" - ], - "autoGenerate": false - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "rssStars", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`origin` TEXT NOT NULL, `sort` TEXT NOT NULL, `title` TEXT NOT NULL, `starTime` INTEGER NOT NULL, `link` TEXT NOT NULL, `pubDate` TEXT, `description` TEXT, `content` TEXT, `image` TEXT, `variable` TEXT, PRIMARY KEY(`origin`, `link`))", - "fields": [ - { - "fieldPath": "origin", - "columnName": "origin", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "sort", - "columnName": "sort", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "title", - "columnName": "title", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "starTime", - "columnName": "starTime", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "link", - "columnName": "link", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "pubDate", - "columnName": "pubDate", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "description", - "columnName": "description", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "content", - "columnName": "content", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "image", - "columnName": "image", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "variable", - "columnName": "variable", - "affinity": "TEXT", - "notNull": false - } - ], - "primaryKey": { - "columnNames": [ - "origin", - "link" - ], - "autoGenerate": false - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "txtTocRules", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER NOT NULL, `name` TEXT NOT NULL, `rule` TEXT NOT NULL, `serialNumber` INTEGER NOT NULL, `enable` INTEGER NOT NULL, PRIMARY KEY(`id`))", - "fields": [ - { - "fieldPath": "id", - "columnName": "id", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "rule", - "columnName": "rule", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "serialNumber", - "columnName": "serialNumber", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "enable", - "columnName": "enable", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "id" - ], - "autoGenerate": false - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "readRecord", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`deviceId` TEXT NOT NULL, `bookName` TEXT NOT NULL, `readTime` INTEGER NOT NULL, PRIMARY KEY(`deviceId`, `bookName`))", - "fields": [ - { - "fieldPath": "deviceId", - "columnName": "deviceId", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookName", - "columnName": "bookName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "readTime", - "columnName": "readTime", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "deviceId", - "bookName" - ], - "autoGenerate": false - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "httpTTS", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER NOT NULL, `name` TEXT NOT NULL, `url` TEXT NOT NULL, `contentType` TEXT, `concurrentRate` TEXT, `loginUrl` TEXT, `loginUi` TEXT, `header` TEXT, `loginCheckJs` TEXT, PRIMARY KEY(`id`))", - "fields": [ - { - "fieldPath": "id", - "columnName": "id", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "url", - "columnName": "url", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "contentType", - "columnName": "contentType", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "concurrentRate", - "columnName": "concurrentRate", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "loginUrl", - "columnName": "loginUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "loginUi", - "columnName": "loginUi", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "header", - "columnName": "header", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "loginCheckJs", - "columnName": "loginCheckJs", - "affinity": "TEXT", - "notNull": false - } - ], - "primaryKey": { - "columnNames": [ - "id" - ], - "autoGenerate": false - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "caches", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`key` TEXT NOT NULL, `value` TEXT, `deadline` INTEGER NOT NULL, PRIMARY KEY(`key`))", - "fields": [ - { - "fieldPath": "key", - "columnName": "key", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "value", - "columnName": "value", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "deadline", - "columnName": "deadline", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "key" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_caches_key", - "unique": true, - "columnNames": [ - "key" - ], - "orders": [], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_caches_key` ON `${TABLE_NAME}` (`key`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "ruleSubs", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER NOT NULL, `name` TEXT NOT NULL, `url` TEXT NOT NULL, `type` INTEGER NOT NULL, `customOrder` INTEGER NOT NULL, `autoUpdate` INTEGER NOT NULL, `update` INTEGER NOT NULL, PRIMARY KEY(`id`))", - "fields": [ - { - "fieldPath": "id", - "columnName": "id", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "url", - "columnName": "url", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "type", - "columnName": "type", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "customOrder", - "columnName": "customOrder", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "autoUpdate", - "columnName": "autoUpdate", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "update", - "columnName": "update", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "id" - ], - "autoGenerate": false - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "keyboardAssists", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`type` INTEGER NOT NULL DEFAULT 0, `key` TEXT NOT NULL DEFAULT '', `value` TEXT NOT NULL DEFAULT '', `serialNo` INTEGER NOT NULL DEFAULT 0, PRIMARY KEY(`type`, `key`))", - "fields": [ - { - "fieldPath": "type", - "columnName": "type", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "key", - "columnName": "key", - "affinity": "TEXT", - "notNull": true, - "defaultValue": "''" - }, - { - "fieldPath": "value", - "columnName": "value", - "affinity": "TEXT", - "notNull": true, - "defaultValue": "''" - }, - { - "fieldPath": "serialNo", - "columnName": "serialNo", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - } - ], - "primaryKey": { - "columnNames": [ - "type", - "key" - ], - "autoGenerate": false - }, - "indices": [], - "foreignKeys": [] - } - ], - "views": [], - "setupQueries": [ - "CREATE TABLE IF NOT EXISTS room_master_table (id INTEGER PRIMARY KEY,identity_hash TEXT)", - "INSERT OR REPLACE INTO room_master_table (id,identity_hash) VALUES(42, '63272539e04e405abfd79e27ea55db75')" - ] - } -} \ No newline at end of file diff --git a/app/schemas/io.legado.app.data.AppDatabase/47.json b/app/schemas/io.legado.app.data.AppDatabase/47.json deleted file mode 100644 index bb6f79b2e..000000000 --- a/app/schemas/io.legado.app.data.AppDatabase/47.json +++ /dev/null @@ -1,1625 +0,0 @@ -{ - "formatVersion": 1, - "database": { - "version": 47, - "identityHash": "985b7a8fbf3f49e6eb444e4f4472bdee", - "entities": [ - { - "tableName": "books", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`bookUrl` TEXT NOT NULL DEFAULT '', `tocUrl` TEXT NOT NULL DEFAULT '', `origin` TEXT NOT NULL DEFAULT '', `originName` TEXT NOT NULL DEFAULT '', `name` TEXT NOT NULL DEFAULT '', `author` TEXT NOT NULL DEFAULT '', `kind` TEXT, `customTag` TEXT, `coverUrl` TEXT, `customCoverUrl` TEXT, `intro` TEXT, `customIntro` TEXT, `charset` TEXT, `type` INTEGER NOT NULL DEFAULT 0, `group` INTEGER NOT NULL DEFAULT 0, `latestChapterTitle` TEXT, `latestChapterTime` INTEGER NOT NULL DEFAULT 0, `lastCheckTime` INTEGER NOT NULL DEFAULT 0, `lastCheckCount` INTEGER NOT NULL DEFAULT 0, `totalChapterNum` INTEGER NOT NULL DEFAULT 0, `durChapterTitle` TEXT, `durChapterIndex` INTEGER NOT NULL DEFAULT 0, `durChapterPos` INTEGER NOT NULL DEFAULT 0, `durChapterTime` INTEGER NOT NULL DEFAULT 0, `wordCount` TEXT, `canUpdate` INTEGER NOT NULL DEFAULT 1, `order` INTEGER NOT NULL DEFAULT 0, `originOrder` INTEGER NOT NULL DEFAULT 0, `variable` TEXT, `readConfig` TEXT, PRIMARY KEY(`bookUrl`))", - "fields": [ - { - "fieldPath": "bookUrl", - "columnName": "bookUrl", - "affinity": "TEXT", - "notNull": true, - "defaultValue": "''" - }, - { - "fieldPath": "tocUrl", - "columnName": "tocUrl", - "affinity": "TEXT", - "notNull": true, - "defaultValue": "''" - }, - { - "fieldPath": "origin", - "columnName": "origin", - "affinity": "TEXT", - "notNull": true, - "defaultValue": "''" - }, - { - "fieldPath": "originName", - "columnName": "originName", - "affinity": "TEXT", - "notNull": true, - "defaultValue": "''" - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true, - "defaultValue": "''" - }, - { - "fieldPath": "author", - "columnName": "author", - "affinity": "TEXT", - "notNull": true, - "defaultValue": "''" - }, - { - "fieldPath": "kind", - "columnName": "kind", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "customTag", - "columnName": "customTag", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "coverUrl", - "columnName": "coverUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "customCoverUrl", - "columnName": "customCoverUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "intro", - "columnName": "intro", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "customIntro", - "columnName": "customIntro", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "charset", - "columnName": "charset", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "type", - "columnName": "type", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "group", - "columnName": "group", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "latestChapterTitle", - "columnName": "latestChapterTitle", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "latestChapterTime", - "columnName": "latestChapterTime", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "lastCheckTime", - "columnName": "lastCheckTime", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "lastCheckCount", - "columnName": "lastCheckCount", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "totalChapterNum", - "columnName": "totalChapterNum", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "durChapterTitle", - "columnName": "durChapterTitle", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "durChapterIndex", - "columnName": "durChapterIndex", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "durChapterPos", - "columnName": "durChapterPos", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "durChapterTime", - "columnName": "durChapterTime", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "wordCount", - "columnName": "wordCount", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "canUpdate", - "columnName": "canUpdate", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "1" - }, - { - "fieldPath": "order", - "columnName": "order", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "originOrder", - "columnName": "originOrder", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "variable", - "columnName": "variable", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "readConfig", - "columnName": "readConfig", - "affinity": "TEXT", - "notNull": false - } - ], - "primaryKey": { - "columnNames": [ - "bookUrl" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_books_name_author", - "unique": true, - "columnNames": [ - "name", - "author" - ], - "orders": [], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_books_name_author` ON `${TABLE_NAME}` (`name`, `author`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "book_groups", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`groupId` INTEGER NOT NULL, `groupName` TEXT NOT NULL, `cover` TEXT, `order` INTEGER NOT NULL, `show` INTEGER NOT NULL, PRIMARY KEY(`groupId`))", - "fields": [ - { - "fieldPath": "groupId", - "columnName": "groupId", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "groupName", - "columnName": "groupName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "cover", - "columnName": "cover", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "order", - "columnName": "order", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "show", - "columnName": "show", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "groupId" - ], - "autoGenerate": false - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "book_sources", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`bookSourceUrl` TEXT NOT NULL, `bookSourceName` TEXT NOT NULL, `bookSourceGroup` TEXT, `bookSourceType` INTEGER NOT NULL, `bookUrlPattern` TEXT, `customOrder` INTEGER NOT NULL, `enabled` INTEGER NOT NULL, `enabledExplore` INTEGER NOT NULL, `concurrentRate` TEXT, `header` TEXT, `loginUrl` TEXT, `loginUi` TEXT, `loginCheckJs` TEXT, `bookSourceComment` TEXT, `lastUpdateTime` INTEGER NOT NULL, `respondTime` INTEGER NOT NULL, `weight` INTEGER NOT NULL, `exploreUrl` TEXT, `ruleExplore` TEXT, `searchUrl` TEXT, `ruleSearch` TEXT, `ruleBookInfo` TEXT, `ruleToc` TEXT, `ruleContent` TEXT, PRIMARY KEY(`bookSourceUrl`))", - "fields": [ - { - "fieldPath": "bookSourceUrl", - "columnName": "bookSourceUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookSourceName", - "columnName": "bookSourceName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookSourceGroup", - "columnName": "bookSourceGroup", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "bookSourceType", - "columnName": "bookSourceType", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "bookUrlPattern", - "columnName": "bookUrlPattern", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "customOrder", - "columnName": "customOrder", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "enabled", - "columnName": "enabled", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "enabledExplore", - "columnName": "enabledExplore", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "concurrentRate", - "columnName": "concurrentRate", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "header", - "columnName": "header", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "loginUrl", - "columnName": "loginUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "loginUi", - "columnName": "loginUi", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "loginCheckJs", - "columnName": "loginCheckJs", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "bookSourceComment", - "columnName": "bookSourceComment", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "lastUpdateTime", - "columnName": "lastUpdateTime", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "respondTime", - "columnName": "respondTime", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "weight", - "columnName": "weight", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "exploreUrl", - "columnName": "exploreUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleExplore", - "columnName": "ruleExplore", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "searchUrl", - "columnName": "searchUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleSearch", - "columnName": "ruleSearch", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleBookInfo", - "columnName": "ruleBookInfo", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleToc", - "columnName": "ruleToc", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleContent", - "columnName": "ruleContent", - "affinity": "TEXT", - "notNull": false - } - ], - "primaryKey": { - "columnNames": [ - "bookSourceUrl" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_book_sources_bookSourceUrl", - "unique": false, - "columnNames": [ - "bookSourceUrl" - ], - "orders": [], - "createSql": "CREATE INDEX IF NOT EXISTS `index_book_sources_bookSourceUrl` ON `${TABLE_NAME}` (`bookSourceUrl`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "chapters", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`url` TEXT NOT NULL, `title` TEXT NOT NULL, `isVolume` INTEGER NOT NULL, `baseUrl` TEXT NOT NULL, `bookUrl` TEXT NOT NULL, `index` INTEGER NOT NULL, `isVip` INTEGER NOT NULL, `isPay` INTEGER NOT NULL, `resourceUrl` TEXT, `tag` TEXT, `start` INTEGER, `end` INTEGER, `startFragmentId` TEXT, `endFragmentId` TEXT, `variable` TEXT, PRIMARY KEY(`url`, `bookUrl`), FOREIGN KEY(`bookUrl`) REFERENCES `books`(`bookUrl`) ON UPDATE NO ACTION ON DELETE CASCADE )", - "fields": [ - { - "fieldPath": "url", - "columnName": "url", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "title", - "columnName": "title", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "isVolume", - "columnName": "isVolume", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "baseUrl", - "columnName": "baseUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookUrl", - "columnName": "bookUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "index", - "columnName": "index", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "isVip", - "columnName": "isVip", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "isPay", - "columnName": "isPay", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "resourceUrl", - "columnName": "resourceUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "tag", - "columnName": "tag", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "start", - "columnName": "start", - "affinity": "INTEGER", - "notNull": false - }, - { - "fieldPath": "end", - "columnName": "end", - "affinity": "INTEGER", - "notNull": false - }, - { - "fieldPath": "startFragmentId", - "columnName": "startFragmentId", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "endFragmentId", - "columnName": "endFragmentId", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "variable", - "columnName": "variable", - "affinity": "TEXT", - "notNull": false - } - ], - "primaryKey": { - "columnNames": [ - "url", - "bookUrl" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_chapters_bookUrl", - "unique": false, - "columnNames": [ - "bookUrl" - ], - "orders": [], - "createSql": "CREATE INDEX IF NOT EXISTS `index_chapters_bookUrl` ON `${TABLE_NAME}` (`bookUrl`)" - }, - { - "name": "index_chapters_bookUrl_index", - "unique": true, - "columnNames": [ - "bookUrl", - "index" - ], - "orders": [], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_chapters_bookUrl_index` ON `${TABLE_NAME}` (`bookUrl`, `index`)" - } - ], - "foreignKeys": [ - { - "table": "books", - "onDelete": "CASCADE", - "onUpdate": "NO ACTION", - "columns": [ - "bookUrl" - ], - "referencedColumns": [ - "bookUrl" - ] - } - ] - }, - { - "tableName": "replace_rules", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, `name` TEXT NOT NULL DEFAULT '', `group` TEXT, `pattern` TEXT NOT NULL DEFAULT '', `replacement` TEXT NOT NULL DEFAULT '', `scope` TEXT, `scopeTitle` INTEGER NOT NULL DEFAULT 0, `scopeContent` INTEGER NOT NULL DEFAULT 1, `isEnabled` INTEGER NOT NULL DEFAULT 1, `isRegex` INTEGER NOT NULL DEFAULT 1, `timeoutMillisecond` INTEGER NOT NULL DEFAULT 3000, `sortOrder` INTEGER NOT NULL DEFAULT 0)", - "fields": [ - { - "fieldPath": "id", - "columnName": "id", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true, - "defaultValue": "''" - }, - { - "fieldPath": "group", - "columnName": "group", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "pattern", - "columnName": "pattern", - "affinity": "TEXT", - "notNull": true, - "defaultValue": "''" - }, - { - "fieldPath": "replacement", - "columnName": "replacement", - "affinity": "TEXT", - "notNull": true, - "defaultValue": "''" - }, - { - "fieldPath": "scope", - "columnName": "scope", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "scopeTitle", - "columnName": "scopeTitle", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "scopeContent", - "columnName": "scopeContent", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "1" - }, - { - "fieldPath": "isEnabled", - "columnName": "isEnabled", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "1" - }, - { - "fieldPath": "isRegex", - "columnName": "isRegex", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "1" - }, - { - "fieldPath": "timeoutMillisecond", - "columnName": "timeoutMillisecond", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "3000" - }, - { - "fieldPath": "order", - "columnName": "sortOrder", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - } - ], - "primaryKey": { - "columnNames": [ - "id" - ], - "autoGenerate": true - }, - "indices": [ - { - "name": "index_replace_rules_id", - "unique": false, - "columnNames": [ - "id" - ], - "orders": [], - "createSql": "CREATE INDEX IF NOT EXISTS `index_replace_rules_id` ON `${TABLE_NAME}` (`id`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "searchBooks", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`bookUrl` TEXT NOT NULL, `origin` TEXT NOT NULL, `originName` TEXT NOT NULL, `type` INTEGER NOT NULL, `name` TEXT NOT NULL, `author` TEXT NOT NULL, `kind` TEXT, `coverUrl` TEXT, `intro` TEXT, `wordCount` TEXT, `latestChapterTitle` TEXT, `tocUrl` TEXT NOT NULL, `time` INTEGER NOT NULL, `variable` TEXT, `originOrder` INTEGER NOT NULL, PRIMARY KEY(`bookUrl`), FOREIGN KEY(`origin`) REFERENCES `book_sources`(`bookSourceUrl`) ON UPDATE NO ACTION ON DELETE CASCADE )", - "fields": [ - { - "fieldPath": "bookUrl", - "columnName": "bookUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "origin", - "columnName": "origin", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "originName", - "columnName": "originName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "type", - "columnName": "type", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "author", - "columnName": "author", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "kind", - "columnName": "kind", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "coverUrl", - "columnName": "coverUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "intro", - "columnName": "intro", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "wordCount", - "columnName": "wordCount", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "latestChapterTitle", - "columnName": "latestChapterTitle", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "tocUrl", - "columnName": "tocUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "time", - "columnName": "time", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "variable", - "columnName": "variable", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "originOrder", - "columnName": "originOrder", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "bookUrl" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_searchBooks_bookUrl", - "unique": true, - "columnNames": [ - "bookUrl" - ], - "orders": [], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_searchBooks_bookUrl` ON `${TABLE_NAME}` (`bookUrl`)" - }, - { - "name": "index_searchBooks_origin", - "unique": false, - "columnNames": [ - "origin" - ], - "orders": [], - "createSql": "CREATE INDEX IF NOT EXISTS `index_searchBooks_origin` ON `${TABLE_NAME}` (`origin`)" - } - ], - "foreignKeys": [ - { - "table": "book_sources", - "onDelete": "CASCADE", - "onUpdate": "NO ACTION", - "columns": [ - "origin" - ], - "referencedColumns": [ - "bookSourceUrl" - ] - } - ] - }, - { - "tableName": "search_keywords", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`word` TEXT NOT NULL, `usage` INTEGER NOT NULL, `lastUseTime` INTEGER NOT NULL, PRIMARY KEY(`word`))", - "fields": [ - { - "fieldPath": "word", - "columnName": "word", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "usage", - "columnName": "usage", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "lastUseTime", - "columnName": "lastUseTime", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "word" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_search_keywords_word", - "unique": true, - "columnNames": [ - "word" - ], - "orders": [], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_search_keywords_word` ON `${TABLE_NAME}` (`word`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "cookies", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`url` TEXT NOT NULL, `cookie` TEXT NOT NULL, PRIMARY KEY(`url`))", - "fields": [ - { - "fieldPath": "url", - "columnName": "url", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "cookie", - "columnName": "cookie", - "affinity": "TEXT", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "url" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_cookies_url", - "unique": true, - "columnNames": [ - "url" - ], - "orders": [], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_cookies_url` ON `${TABLE_NAME}` (`url`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "rssSources", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`sourceUrl` TEXT NOT NULL, `sourceName` TEXT NOT NULL, `sourceIcon` TEXT NOT NULL, `sourceGroup` TEXT, `sourceComment` TEXT, `enabled` INTEGER NOT NULL, `concurrentRate` TEXT, `header` TEXT, `loginUrl` TEXT, `loginUi` TEXT, `loginCheckJs` TEXT, `sortUrl` TEXT, `singleUrl` INTEGER NOT NULL, `articleStyle` INTEGER NOT NULL, `ruleArticles` TEXT, `ruleNextPage` TEXT, `ruleTitle` TEXT, `rulePubDate` TEXT, `ruleDescription` TEXT, `ruleImage` TEXT, `ruleLink` TEXT, `ruleContent` TEXT, `style` TEXT, `enableJs` INTEGER NOT NULL, `loadWithBaseUrl` INTEGER NOT NULL, `customOrder` INTEGER NOT NULL, PRIMARY KEY(`sourceUrl`))", - "fields": [ - { - "fieldPath": "sourceUrl", - "columnName": "sourceUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "sourceName", - "columnName": "sourceName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "sourceIcon", - "columnName": "sourceIcon", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "sourceGroup", - "columnName": "sourceGroup", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "sourceComment", - "columnName": "sourceComment", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "enabled", - "columnName": "enabled", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "concurrentRate", - "columnName": "concurrentRate", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "header", - "columnName": "header", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "loginUrl", - "columnName": "loginUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "loginUi", - "columnName": "loginUi", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "loginCheckJs", - "columnName": "loginCheckJs", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "sortUrl", - "columnName": "sortUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "singleUrl", - "columnName": "singleUrl", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "articleStyle", - "columnName": "articleStyle", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "ruleArticles", - "columnName": "ruleArticles", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleNextPage", - "columnName": "ruleNextPage", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleTitle", - "columnName": "ruleTitle", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "rulePubDate", - "columnName": "rulePubDate", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleDescription", - "columnName": "ruleDescription", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleImage", - "columnName": "ruleImage", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleLink", - "columnName": "ruleLink", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleContent", - "columnName": "ruleContent", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "style", - "columnName": "style", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "enableJs", - "columnName": "enableJs", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "loadWithBaseUrl", - "columnName": "loadWithBaseUrl", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "customOrder", - "columnName": "customOrder", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "sourceUrl" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_rssSources_sourceUrl", - "unique": false, - "columnNames": [ - "sourceUrl" - ], - "orders": [], - "createSql": "CREATE INDEX IF NOT EXISTS `index_rssSources_sourceUrl` ON `${TABLE_NAME}` (`sourceUrl`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "bookmarks", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`time` INTEGER NOT NULL, `bookName` TEXT NOT NULL, `bookAuthor` TEXT NOT NULL, `chapterIndex` INTEGER NOT NULL, `chapterPos` INTEGER NOT NULL, `chapterName` TEXT NOT NULL, `bookText` TEXT NOT NULL, `content` TEXT NOT NULL, PRIMARY KEY(`time`))", - "fields": [ - { - "fieldPath": "time", - "columnName": "time", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "bookName", - "columnName": "bookName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookAuthor", - "columnName": "bookAuthor", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "chapterIndex", - "columnName": "chapterIndex", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "chapterPos", - "columnName": "chapterPos", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "chapterName", - "columnName": "chapterName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookText", - "columnName": "bookText", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "content", - "columnName": "content", - "affinity": "TEXT", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "time" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_bookmarks_bookName_bookAuthor", - "unique": false, - "columnNames": [ - "bookName", - "bookAuthor" - ], - "orders": [], - "createSql": "CREATE INDEX IF NOT EXISTS `index_bookmarks_bookName_bookAuthor` ON `${TABLE_NAME}` (`bookName`, `bookAuthor`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "rssArticles", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`origin` TEXT NOT NULL, `sort` TEXT NOT NULL, `title` TEXT NOT NULL, `order` INTEGER NOT NULL, `link` TEXT NOT NULL, `pubDate` TEXT, `description` TEXT, `content` TEXT, `image` TEXT, `read` INTEGER NOT NULL, `variable` TEXT, PRIMARY KEY(`origin`, `link`))", - "fields": [ - { - "fieldPath": "origin", - "columnName": "origin", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "sort", - "columnName": "sort", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "title", - "columnName": "title", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "order", - "columnName": "order", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "link", - "columnName": "link", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "pubDate", - "columnName": "pubDate", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "description", - "columnName": "description", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "content", - "columnName": "content", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "image", - "columnName": "image", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "read", - "columnName": "read", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "variable", - "columnName": "variable", - "affinity": "TEXT", - "notNull": false - } - ], - "primaryKey": { - "columnNames": [ - "origin", - "link" - ], - "autoGenerate": false - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "rssReadRecords", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`record` TEXT NOT NULL, `read` INTEGER NOT NULL, PRIMARY KEY(`record`))", - "fields": [ - { - "fieldPath": "record", - "columnName": "record", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "read", - "columnName": "read", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "record" - ], - "autoGenerate": false - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "rssStars", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`origin` TEXT NOT NULL, `sort` TEXT NOT NULL, `title` TEXT NOT NULL, `starTime` INTEGER NOT NULL, `link` TEXT NOT NULL, `pubDate` TEXT, `description` TEXT, `content` TEXT, `image` TEXT, `variable` TEXT, PRIMARY KEY(`origin`, `link`))", - "fields": [ - { - "fieldPath": "origin", - "columnName": "origin", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "sort", - "columnName": "sort", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "title", - "columnName": "title", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "starTime", - "columnName": "starTime", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "link", - "columnName": "link", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "pubDate", - "columnName": "pubDate", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "description", - "columnName": "description", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "content", - "columnName": "content", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "image", - "columnName": "image", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "variable", - "columnName": "variable", - "affinity": "TEXT", - "notNull": false - } - ], - "primaryKey": { - "columnNames": [ - "origin", - "link" - ], - "autoGenerate": false - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "txtTocRules", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER NOT NULL, `name` TEXT NOT NULL, `rule` TEXT NOT NULL, `serialNumber` INTEGER NOT NULL, `enable` INTEGER NOT NULL, PRIMARY KEY(`id`))", - "fields": [ - { - "fieldPath": "id", - "columnName": "id", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "rule", - "columnName": "rule", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "serialNumber", - "columnName": "serialNumber", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "enable", - "columnName": "enable", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "id" - ], - "autoGenerate": false - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "readRecord", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`deviceId` TEXT NOT NULL, `bookName` TEXT NOT NULL, `readTime` INTEGER NOT NULL, PRIMARY KEY(`deviceId`, `bookName`))", - "fields": [ - { - "fieldPath": "deviceId", - "columnName": "deviceId", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookName", - "columnName": "bookName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "readTime", - "columnName": "readTime", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "deviceId", - "bookName" - ], - "autoGenerate": false - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "httpTTS", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER NOT NULL, `name` TEXT NOT NULL, `url` TEXT NOT NULL, `contentType` TEXT, `concurrentRate` TEXT, `loginUrl` TEXT, `loginUi` TEXT, `header` TEXT, `loginCheckJs` TEXT, PRIMARY KEY(`id`))", - "fields": [ - { - "fieldPath": "id", - "columnName": "id", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "url", - "columnName": "url", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "contentType", - "columnName": "contentType", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "concurrentRate", - "columnName": "concurrentRate", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "loginUrl", - "columnName": "loginUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "loginUi", - "columnName": "loginUi", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "header", - "columnName": "header", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "loginCheckJs", - "columnName": "loginCheckJs", - "affinity": "TEXT", - "notNull": false - } - ], - "primaryKey": { - "columnNames": [ - "id" - ], - "autoGenerate": false - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "caches", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`key` TEXT NOT NULL, `value` TEXT, `deadline` INTEGER NOT NULL, PRIMARY KEY(`key`))", - "fields": [ - { - "fieldPath": "key", - "columnName": "key", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "value", - "columnName": "value", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "deadline", - "columnName": "deadline", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "key" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_caches_key", - "unique": true, - "columnNames": [ - "key" - ], - "orders": [], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_caches_key` ON `${TABLE_NAME}` (`key`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "ruleSubs", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER NOT NULL, `name` TEXT NOT NULL, `url` TEXT NOT NULL, `type` INTEGER NOT NULL, `customOrder` INTEGER NOT NULL, `autoUpdate` INTEGER NOT NULL, `update` INTEGER NOT NULL, PRIMARY KEY(`id`))", - "fields": [ - { - "fieldPath": "id", - "columnName": "id", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "url", - "columnName": "url", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "type", - "columnName": "type", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "customOrder", - "columnName": "customOrder", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "autoUpdate", - "columnName": "autoUpdate", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "update", - "columnName": "update", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "id" - ], - "autoGenerate": false - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "keyboardAssists", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`type` INTEGER NOT NULL DEFAULT 0, `key` TEXT NOT NULL DEFAULT '', `value` TEXT NOT NULL DEFAULT '', `serialNo` INTEGER NOT NULL DEFAULT 0, PRIMARY KEY(`type`, `key`))", - "fields": [ - { - "fieldPath": "type", - "columnName": "type", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "key", - "columnName": "key", - "affinity": "TEXT", - "notNull": true, - "defaultValue": "''" - }, - { - "fieldPath": "value", - "columnName": "value", - "affinity": "TEXT", - "notNull": true, - "defaultValue": "''" - }, - { - "fieldPath": "serialNo", - "columnName": "serialNo", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - } - ], - "primaryKey": { - "columnNames": [ - "type", - "key" - ], - "autoGenerate": false - }, - "indices": [], - "foreignKeys": [] - } - ], - "views": [], - "setupQueries": [ - "CREATE TABLE IF NOT EXISTS room_master_table (id INTEGER PRIMARY KEY,identity_hash TEXT)", - "INSERT OR REPLACE INTO room_master_table (id,identity_hash) VALUES(42, '985b7a8fbf3f49e6eb444e4f4472bdee')" - ] - } -} \ No newline at end of file diff --git a/app/schemas/io.legado.app.data.AppDatabase/48.json b/app/schemas/io.legado.app.data.AppDatabase/48.json deleted file mode 100644 index cebc5ae18..000000000 --- a/app/schemas/io.legado.app.data.AppDatabase/48.json +++ /dev/null @@ -1,1633 +0,0 @@ -{ - "formatVersion": 1, - "database": { - "version": 48, - "identityHash": "6348b1307bb9fb4f5482fb94a723338a", - "entities": [ - { - "tableName": "books", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`bookUrl` TEXT NOT NULL DEFAULT '', `tocUrl` TEXT NOT NULL DEFAULT '', `origin` TEXT NOT NULL DEFAULT '', `originName` TEXT NOT NULL DEFAULT '', `name` TEXT NOT NULL DEFAULT '', `author` TEXT NOT NULL DEFAULT '', `kind` TEXT, `customTag` TEXT, `coverUrl` TEXT, `customCoverUrl` TEXT, `intro` TEXT, `customIntro` TEXT, `charset` TEXT, `type` INTEGER NOT NULL DEFAULT 0, `group` INTEGER NOT NULL DEFAULT 0, `latestChapterTitle` TEXT, `latestChapterTime` INTEGER NOT NULL DEFAULT 0, `lastCheckTime` INTEGER NOT NULL DEFAULT 0, `lastCheckCount` INTEGER NOT NULL DEFAULT 0, `totalChapterNum` INTEGER NOT NULL DEFAULT 0, `durChapterTitle` TEXT, `durChapterIndex` INTEGER NOT NULL DEFAULT 0, `durChapterPos` INTEGER NOT NULL DEFAULT 0, `durChapterTime` INTEGER NOT NULL DEFAULT 0, `wordCount` TEXT, `canUpdate` INTEGER NOT NULL DEFAULT 1, `order` INTEGER NOT NULL DEFAULT 0, `originOrder` INTEGER NOT NULL DEFAULT 0, `variable` TEXT, `readConfig` TEXT, PRIMARY KEY(`bookUrl`))", - "fields": [ - { - "fieldPath": "bookUrl", - "columnName": "bookUrl", - "affinity": "TEXT", - "notNull": true, - "defaultValue": "''" - }, - { - "fieldPath": "tocUrl", - "columnName": "tocUrl", - "affinity": "TEXT", - "notNull": true, - "defaultValue": "''" - }, - { - "fieldPath": "origin", - "columnName": "origin", - "affinity": "TEXT", - "notNull": true, - "defaultValue": "''" - }, - { - "fieldPath": "originName", - "columnName": "originName", - "affinity": "TEXT", - "notNull": true, - "defaultValue": "''" - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true, - "defaultValue": "''" - }, - { - "fieldPath": "author", - "columnName": "author", - "affinity": "TEXT", - "notNull": true, - "defaultValue": "''" - }, - { - "fieldPath": "kind", - "columnName": "kind", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "customTag", - "columnName": "customTag", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "coverUrl", - "columnName": "coverUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "customCoverUrl", - "columnName": "customCoverUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "intro", - "columnName": "intro", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "customIntro", - "columnName": "customIntro", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "charset", - "columnName": "charset", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "type", - "columnName": "type", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "group", - "columnName": "group", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "latestChapterTitle", - "columnName": "latestChapterTitle", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "latestChapterTime", - "columnName": "latestChapterTime", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "lastCheckTime", - "columnName": "lastCheckTime", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "lastCheckCount", - "columnName": "lastCheckCount", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "totalChapterNum", - "columnName": "totalChapterNum", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "durChapterTitle", - "columnName": "durChapterTitle", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "durChapterIndex", - "columnName": "durChapterIndex", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "durChapterPos", - "columnName": "durChapterPos", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "durChapterTime", - "columnName": "durChapterTime", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "wordCount", - "columnName": "wordCount", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "canUpdate", - "columnName": "canUpdate", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "1" - }, - { - "fieldPath": "order", - "columnName": "order", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "originOrder", - "columnName": "originOrder", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "variable", - "columnName": "variable", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "readConfig", - "columnName": "readConfig", - "affinity": "TEXT", - "notNull": false - } - ], - "primaryKey": { - "columnNames": [ - "bookUrl" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_books_name_author", - "unique": true, - "columnNames": [ - "name", - "author" - ], - "orders": [], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_books_name_author` ON `${TABLE_NAME}` (`name`, `author`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "book_groups", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`groupId` INTEGER NOT NULL, `groupName` TEXT NOT NULL, `cover` TEXT, `order` INTEGER NOT NULL, `show` INTEGER NOT NULL, PRIMARY KEY(`groupId`))", - "fields": [ - { - "fieldPath": "groupId", - "columnName": "groupId", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "groupName", - "columnName": "groupName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "cover", - "columnName": "cover", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "order", - "columnName": "order", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "show", - "columnName": "show", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "groupId" - ], - "autoGenerate": false - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "book_sources", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`bookSourceUrl` TEXT NOT NULL, `bookSourceName` TEXT NOT NULL, `bookSourceGroup` TEXT, `bookSourceType` INTEGER NOT NULL, `bookUrlPattern` TEXT, `customOrder` INTEGER NOT NULL, `enabled` INTEGER NOT NULL, `enabledExplore` INTEGER NOT NULL, `concurrentRate` TEXT, `header` TEXT, `loginUrl` TEXT, `loginUi` TEXT, `loginCheckJs` TEXT, `bookSourceComment` TEXT, `lastUpdateTime` INTEGER NOT NULL, `respondTime` INTEGER NOT NULL, `weight` INTEGER NOT NULL, `exploreUrl` TEXT, `ruleExplore` TEXT, `searchUrl` TEXT, `ruleSearch` TEXT, `ruleBookInfo` TEXT, `ruleToc` TEXT, `ruleContent` TEXT, PRIMARY KEY(`bookSourceUrl`))", - "fields": [ - { - "fieldPath": "bookSourceUrl", - "columnName": "bookSourceUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookSourceName", - "columnName": "bookSourceName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookSourceGroup", - "columnName": "bookSourceGroup", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "bookSourceType", - "columnName": "bookSourceType", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "bookUrlPattern", - "columnName": "bookUrlPattern", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "customOrder", - "columnName": "customOrder", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "enabled", - "columnName": "enabled", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "enabledExplore", - "columnName": "enabledExplore", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "concurrentRate", - "columnName": "concurrentRate", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "header", - "columnName": "header", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "loginUrl", - "columnName": "loginUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "loginUi", - "columnName": "loginUi", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "loginCheckJs", - "columnName": "loginCheckJs", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "bookSourceComment", - "columnName": "bookSourceComment", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "lastUpdateTime", - "columnName": "lastUpdateTime", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "respondTime", - "columnName": "respondTime", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "weight", - "columnName": "weight", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "exploreUrl", - "columnName": "exploreUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleExplore", - "columnName": "ruleExplore", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "searchUrl", - "columnName": "searchUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleSearch", - "columnName": "ruleSearch", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleBookInfo", - "columnName": "ruleBookInfo", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleToc", - "columnName": "ruleToc", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleContent", - "columnName": "ruleContent", - "affinity": "TEXT", - "notNull": false - } - ], - "primaryKey": { - "columnNames": [ - "bookSourceUrl" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_book_sources_bookSourceUrl", - "unique": false, - "columnNames": [ - "bookSourceUrl" - ], - "orders": [], - "createSql": "CREATE INDEX IF NOT EXISTS `index_book_sources_bookSourceUrl` ON `${TABLE_NAME}` (`bookSourceUrl`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "chapters", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`url` TEXT NOT NULL, `title` TEXT NOT NULL, `isVolume` INTEGER NOT NULL, `baseUrl` TEXT NOT NULL, `bookUrl` TEXT NOT NULL, `index` INTEGER NOT NULL, `isVip` INTEGER NOT NULL, `isPay` INTEGER NOT NULL, `resourceUrl` TEXT, `tag` TEXT, `start` INTEGER, `end` INTEGER, `startFragmentId` TEXT, `endFragmentId` TEXT, `variable` TEXT, PRIMARY KEY(`url`, `bookUrl`), FOREIGN KEY(`bookUrl`) REFERENCES `books`(`bookUrl`) ON UPDATE NO ACTION ON DELETE CASCADE )", - "fields": [ - { - "fieldPath": "url", - "columnName": "url", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "title", - "columnName": "title", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "isVolume", - "columnName": "isVolume", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "baseUrl", - "columnName": "baseUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookUrl", - "columnName": "bookUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "index", - "columnName": "index", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "isVip", - "columnName": "isVip", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "isPay", - "columnName": "isPay", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "resourceUrl", - "columnName": "resourceUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "tag", - "columnName": "tag", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "start", - "columnName": "start", - "affinity": "INTEGER", - "notNull": false - }, - { - "fieldPath": "end", - "columnName": "end", - "affinity": "INTEGER", - "notNull": false - }, - { - "fieldPath": "startFragmentId", - "columnName": "startFragmentId", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "endFragmentId", - "columnName": "endFragmentId", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "variable", - "columnName": "variable", - "affinity": "TEXT", - "notNull": false - } - ], - "primaryKey": { - "columnNames": [ - "url", - "bookUrl" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_chapters_bookUrl", - "unique": false, - "columnNames": [ - "bookUrl" - ], - "orders": [], - "createSql": "CREATE INDEX IF NOT EXISTS `index_chapters_bookUrl` ON `${TABLE_NAME}` (`bookUrl`)" - }, - { - "name": "index_chapters_bookUrl_index", - "unique": true, - "columnNames": [ - "bookUrl", - "index" - ], - "orders": [], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_chapters_bookUrl_index` ON `${TABLE_NAME}` (`bookUrl`, `index`)" - } - ], - "foreignKeys": [ - { - "table": "books", - "onDelete": "CASCADE", - "onUpdate": "NO ACTION", - "columns": [ - "bookUrl" - ], - "referencedColumns": [ - "bookUrl" - ] - } - ] - }, - { - "tableName": "replace_rules", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, `name` TEXT NOT NULL DEFAULT '', `group` TEXT, `pattern` TEXT NOT NULL DEFAULT '', `replacement` TEXT NOT NULL DEFAULT '', `scope` TEXT, `scopeTitle` INTEGER NOT NULL DEFAULT 0, `scopeContent` INTEGER NOT NULL DEFAULT 1, `isEnabled` INTEGER NOT NULL DEFAULT 1, `isRegex` INTEGER NOT NULL DEFAULT 1, `timeoutMillisecond` INTEGER NOT NULL DEFAULT 3000, `sortOrder` INTEGER NOT NULL DEFAULT 0)", - "fields": [ - { - "fieldPath": "id", - "columnName": "id", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true, - "defaultValue": "''" - }, - { - "fieldPath": "group", - "columnName": "group", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "pattern", - "columnName": "pattern", - "affinity": "TEXT", - "notNull": true, - "defaultValue": "''" - }, - { - "fieldPath": "replacement", - "columnName": "replacement", - "affinity": "TEXT", - "notNull": true, - "defaultValue": "''" - }, - { - "fieldPath": "scope", - "columnName": "scope", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "scopeTitle", - "columnName": "scopeTitle", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "scopeContent", - "columnName": "scopeContent", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "1" - }, - { - "fieldPath": "isEnabled", - "columnName": "isEnabled", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "1" - }, - { - "fieldPath": "isRegex", - "columnName": "isRegex", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "1" - }, - { - "fieldPath": "timeoutMillisecond", - "columnName": "timeoutMillisecond", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "3000" - }, - { - "fieldPath": "order", - "columnName": "sortOrder", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - } - ], - "primaryKey": { - "columnNames": [ - "id" - ], - "autoGenerate": true - }, - "indices": [ - { - "name": "index_replace_rules_id", - "unique": false, - "columnNames": [ - "id" - ], - "orders": [], - "createSql": "CREATE INDEX IF NOT EXISTS `index_replace_rules_id` ON `${TABLE_NAME}` (`id`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "searchBooks", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`bookUrl` TEXT NOT NULL, `origin` TEXT NOT NULL, `originName` TEXT NOT NULL, `type` INTEGER NOT NULL, `name` TEXT NOT NULL, `author` TEXT NOT NULL, `kind` TEXT, `coverUrl` TEXT, `intro` TEXT, `wordCount` TEXT, `latestChapterTitle` TEXT, `tocUrl` TEXT NOT NULL, `time` INTEGER NOT NULL, `variable` TEXT, `originOrder` INTEGER NOT NULL, PRIMARY KEY(`bookUrl`), FOREIGN KEY(`origin`) REFERENCES `book_sources`(`bookSourceUrl`) ON UPDATE NO ACTION ON DELETE CASCADE )", - "fields": [ - { - "fieldPath": "bookUrl", - "columnName": "bookUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "origin", - "columnName": "origin", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "originName", - "columnName": "originName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "type", - "columnName": "type", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "author", - "columnName": "author", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "kind", - "columnName": "kind", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "coverUrl", - "columnName": "coverUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "intro", - "columnName": "intro", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "wordCount", - "columnName": "wordCount", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "latestChapterTitle", - "columnName": "latestChapterTitle", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "tocUrl", - "columnName": "tocUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "time", - "columnName": "time", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "variable", - "columnName": "variable", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "originOrder", - "columnName": "originOrder", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "bookUrl" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_searchBooks_bookUrl", - "unique": true, - "columnNames": [ - "bookUrl" - ], - "orders": [], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_searchBooks_bookUrl` ON `${TABLE_NAME}` (`bookUrl`)" - }, - { - "name": "index_searchBooks_origin", - "unique": false, - "columnNames": [ - "origin" - ], - "orders": [], - "createSql": "CREATE INDEX IF NOT EXISTS `index_searchBooks_origin` ON `${TABLE_NAME}` (`origin`)" - } - ], - "foreignKeys": [ - { - "table": "book_sources", - "onDelete": "CASCADE", - "onUpdate": "NO ACTION", - "columns": [ - "origin" - ], - "referencedColumns": [ - "bookSourceUrl" - ] - } - ] - }, - { - "tableName": "search_keywords", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`word` TEXT NOT NULL, `usage` INTEGER NOT NULL, `lastUseTime` INTEGER NOT NULL, PRIMARY KEY(`word`))", - "fields": [ - { - "fieldPath": "word", - "columnName": "word", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "usage", - "columnName": "usage", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "lastUseTime", - "columnName": "lastUseTime", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "word" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_search_keywords_word", - "unique": true, - "columnNames": [ - "word" - ], - "orders": [], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_search_keywords_word` ON `${TABLE_NAME}` (`word`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "cookies", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`url` TEXT NOT NULL, `cookie` TEXT NOT NULL, PRIMARY KEY(`url`))", - "fields": [ - { - "fieldPath": "url", - "columnName": "url", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "cookie", - "columnName": "cookie", - "affinity": "TEXT", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "url" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_cookies_url", - "unique": true, - "columnNames": [ - "url" - ], - "orders": [], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_cookies_url` ON `${TABLE_NAME}` (`url`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "rssSources", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`sourceUrl` TEXT NOT NULL, `sourceName` TEXT NOT NULL, `sourceIcon` TEXT NOT NULL, `sourceGroup` TEXT, `sourceComment` TEXT, `enabled` INTEGER NOT NULL, `concurrentRate` TEXT, `header` TEXT, `loginUrl` TEXT, `loginUi` TEXT, `loginCheckJs` TEXT, `sortUrl` TEXT, `singleUrl` INTEGER NOT NULL, `articleStyle` INTEGER NOT NULL, `ruleArticles` TEXT, `ruleNextPage` TEXT, `ruleTitle` TEXT, `rulePubDate` TEXT, `ruleDescription` TEXT, `ruleImage` TEXT, `ruleLink` TEXT, `ruleContent` TEXT, `style` TEXT, `enableJs` INTEGER NOT NULL, `loadWithBaseUrl` INTEGER NOT NULL, `customOrder` INTEGER NOT NULL, PRIMARY KEY(`sourceUrl`))", - "fields": [ - { - "fieldPath": "sourceUrl", - "columnName": "sourceUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "sourceName", - "columnName": "sourceName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "sourceIcon", - "columnName": "sourceIcon", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "sourceGroup", - "columnName": "sourceGroup", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "sourceComment", - "columnName": "sourceComment", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "enabled", - "columnName": "enabled", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "concurrentRate", - "columnName": "concurrentRate", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "header", - "columnName": "header", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "loginUrl", - "columnName": "loginUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "loginUi", - "columnName": "loginUi", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "loginCheckJs", - "columnName": "loginCheckJs", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "sortUrl", - "columnName": "sortUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "singleUrl", - "columnName": "singleUrl", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "articleStyle", - "columnName": "articleStyle", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "ruleArticles", - "columnName": "ruleArticles", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleNextPage", - "columnName": "ruleNextPage", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleTitle", - "columnName": "ruleTitle", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "rulePubDate", - "columnName": "rulePubDate", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleDescription", - "columnName": "ruleDescription", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleImage", - "columnName": "ruleImage", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleLink", - "columnName": "ruleLink", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleContent", - "columnName": "ruleContent", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "style", - "columnName": "style", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "enableJs", - "columnName": "enableJs", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "loadWithBaseUrl", - "columnName": "loadWithBaseUrl", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "customOrder", - "columnName": "customOrder", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "sourceUrl" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_rssSources_sourceUrl", - "unique": false, - "columnNames": [ - "sourceUrl" - ], - "orders": [], - "createSql": "CREATE INDEX IF NOT EXISTS `index_rssSources_sourceUrl` ON `${TABLE_NAME}` (`sourceUrl`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "bookmarks", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`time` INTEGER NOT NULL, `bookName` TEXT NOT NULL, `bookAuthor` TEXT NOT NULL, `chapterIndex` INTEGER NOT NULL, `chapterPos` INTEGER NOT NULL, `chapterName` TEXT NOT NULL, `bookText` TEXT NOT NULL, `content` TEXT NOT NULL, PRIMARY KEY(`time`))", - "fields": [ - { - "fieldPath": "time", - "columnName": "time", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "bookName", - "columnName": "bookName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookAuthor", - "columnName": "bookAuthor", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "chapterIndex", - "columnName": "chapterIndex", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "chapterPos", - "columnName": "chapterPos", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "chapterName", - "columnName": "chapterName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookText", - "columnName": "bookText", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "content", - "columnName": "content", - "affinity": "TEXT", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "time" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_bookmarks_bookName_bookAuthor", - "unique": false, - "columnNames": [ - "bookName", - "bookAuthor" - ], - "orders": [], - "createSql": "CREATE INDEX IF NOT EXISTS `index_bookmarks_bookName_bookAuthor` ON `${TABLE_NAME}` (`bookName`, `bookAuthor`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "rssArticles", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`origin` TEXT NOT NULL, `sort` TEXT NOT NULL, `title` TEXT NOT NULL, `order` INTEGER NOT NULL, `link` TEXT NOT NULL, `pubDate` TEXT, `description` TEXT, `content` TEXT, `image` TEXT, `read` INTEGER NOT NULL, `variable` TEXT, PRIMARY KEY(`origin`, `link`))", - "fields": [ - { - "fieldPath": "origin", - "columnName": "origin", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "sort", - "columnName": "sort", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "title", - "columnName": "title", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "order", - "columnName": "order", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "link", - "columnName": "link", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "pubDate", - "columnName": "pubDate", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "description", - "columnName": "description", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "content", - "columnName": "content", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "image", - "columnName": "image", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "read", - "columnName": "read", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "variable", - "columnName": "variable", - "affinity": "TEXT", - "notNull": false - } - ], - "primaryKey": { - "columnNames": [ - "origin", - "link" - ], - "autoGenerate": false - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "rssReadRecords", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`record` TEXT NOT NULL, `read` INTEGER NOT NULL, PRIMARY KEY(`record`))", - "fields": [ - { - "fieldPath": "record", - "columnName": "record", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "read", - "columnName": "read", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "record" - ], - "autoGenerate": false - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "rssStars", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`origin` TEXT NOT NULL, `sort` TEXT NOT NULL, `title` TEXT NOT NULL, `starTime` INTEGER NOT NULL, `link` TEXT NOT NULL, `pubDate` TEXT, `description` TEXT, `content` TEXT, `image` TEXT, `variable` TEXT, PRIMARY KEY(`origin`, `link`))", - "fields": [ - { - "fieldPath": "origin", - "columnName": "origin", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "sort", - "columnName": "sort", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "title", - "columnName": "title", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "starTime", - "columnName": "starTime", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "link", - "columnName": "link", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "pubDate", - "columnName": "pubDate", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "description", - "columnName": "description", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "content", - "columnName": "content", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "image", - "columnName": "image", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "variable", - "columnName": "variable", - "affinity": "TEXT", - "notNull": false - } - ], - "primaryKey": { - "columnNames": [ - "origin", - "link" - ], - "autoGenerate": false - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "txtTocRules", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER NOT NULL, `name` TEXT NOT NULL, `rule` TEXT NOT NULL, `serialNumber` INTEGER NOT NULL, `enable` INTEGER NOT NULL, PRIMARY KEY(`id`))", - "fields": [ - { - "fieldPath": "id", - "columnName": "id", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "rule", - "columnName": "rule", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "serialNumber", - "columnName": "serialNumber", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "enable", - "columnName": "enable", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "id" - ], - "autoGenerate": false - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "readRecord", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`deviceId` TEXT NOT NULL, `bookName` TEXT NOT NULL, `readTime` INTEGER NOT NULL, PRIMARY KEY(`deviceId`, `bookName`))", - "fields": [ - { - "fieldPath": "deviceId", - "columnName": "deviceId", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookName", - "columnName": "bookName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "readTime", - "columnName": "readTime", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "deviceId", - "bookName" - ], - "autoGenerate": false - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "httpTTS", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER NOT NULL, `name` TEXT NOT NULL, `url` TEXT NOT NULL, `contentType` TEXT, `concurrentRate` TEXT DEFAULT '0', `loginUrl` TEXT, `loginUi` TEXT, `header` TEXT, `loginCheckJs` TEXT, `lastUpdateTime` INTEGER NOT NULL DEFAULT 0, PRIMARY KEY(`id`))", - "fields": [ - { - "fieldPath": "id", - "columnName": "id", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "url", - "columnName": "url", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "contentType", - "columnName": "contentType", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "concurrentRate", - "columnName": "concurrentRate", - "affinity": "TEXT", - "notNull": false, - "defaultValue": "'0'" - }, - { - "fieldPath": "loginUrl", - "columnName": "loginUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "loginUi", - "columnName": "loginUi", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "header", - "columnName": "header", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "loginCheckJs", - "columnName": "loginCheckJs", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "lastUpdateTime", - "columnName": "lastUpdateTime", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - } - ], - "primaryKey": { - "columnNames": [ - "id" - ], - "autoGenerate": false - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "caches", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`key` TEXT NOT NULL, `value` TEXT, `deadline` INTEGER NOT NULL, PRIMARY KEY(`key`))", - "fields": [ - { - "fieldPath": "key", - "columnName": "key", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "value", - "columnName": "value", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "deadline", - "columnName": "deadline", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "key" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_caches_key", - "unique": true, - "columnNames": [ - "key" - ], - "orders": [], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_caches_key` ON `${TABLE_NAME}` (`key`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "ruleSubs", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER NOT NULL, `name` TEXT NOT NULL, `url` TEXT NOT NULL, `type` INTEGER NOT NULL, `customOrder` INTEGER NOT NULL, `autoUpdate` INTEGER NOT NULL, `update` INTEGER NOT NULL, PRIMARY KEY(`id`))", - "fields": [ - { - "fieldPath": "id", - "columnName": "id", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "url", - "columnName": "url", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "type", - "columnName": "type", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "customOrder", - "columnName": "customOrder", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "autoUpdate", - "columnName": "autoUpdate", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "update", - "columnName": "update", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "id" - ], - "autoGenerate": false - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "keyboardAssists", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`type` INTEGER NOT NULL DEFAULT 0, `key` TEXT NOT NULL DEFAULT '', `value` TEXT NOT NULL DEFAULT '', `serialNo` INTEGER NOT NULL DEFAULT 0, PRIMARY KEY(`type`, `key`))", - "fields": [ - { - "fieldPath": "type", - "columnName": "type", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "key", - "columnName": "key", - "affinity": "TEXT", - "notNull": true, - "defaultValue": "''" - }, - { - "fieldPath": "value", - "columnName": "value", - "affinity": "TEXT", - "notNull": true, - "defaultValue": "''" - }, - { - "fieldPath": "serialNo", - "columnName": "serialNo", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - } - ], - "primaryKey": { - "columnNames": [ - "type", - "key" - ], - "autoGenerate": false - }, - "indices": [], - "foreignKeys": [] - } - ], - "views": [], - "setupQueries": [ - "CREATE TABLE IF NOT EXISTS room_master_table (id INTEGER PRIMARY KEY,identity_hash TEXT)", - "INSERT OR REPLACE INTO room_master_table (id,identity_hash) VALUES(42, '6348b1307bb9fb4f5482fb94a723338a')" - ] - } -} \ No newline at end of file diff --git a/app/schemas/io.legado.app.data.AppDatabase/49.json b/app/schemas/io.legado.app.data.AppDatabase/49.json deleted file mode 100644 index 60bf90828..000000000 --- a/app/schemas/io.legado.app.data.AppDatabase/49.json +++ /dev/null @@ -1,1654 +0,0 @@ -{ - "formatVersion": 1, - "database": { - "version": 49, - "identityHash": "2a6f5ee3d0ed9ac13f15183a04a4af45", - "entities": [ - { - "tableName": "books", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`bookUrl` TEXT NOT NULL DEFAULT '', `tocUrl` TEXT NOT NULL DEFAULT '', `origin` TEXT NOT NULL DEFAULT '', `originName` TEXT NOT NULL DEFAULT '', `name` TEXT NOT NULL DEFAULT '', `author` TEXT NOT NULL DEFAULT '', `kind` TEXT, `customTag` TEXT, `coverUrl` TEXT, `customCoverUrl` TEXT, `intro` TEXT, `customIntro` TEXT, `charset` TEXT, `type` INTEGER NOT NULL DEFAULT 0, `group` INTEGER NOT NULL DEFAULT 0, `latestChapterTitle` TEXT, `latestChapterTime` INTEGER NOT NULL DEFAULT 0, `lastCheckTime` INTEGER NOT NULL DEFAULT 0, `lastCheckCount` INTEGER NOT NULL DEFAULT 0, `totalChapterNum` INTEGER NOT NULL DEFAULT 0, `durChapterTitle` TEXT, `durChapterIndex` INTEGER NOT NULL DEFAULT 0, `durChapterPos` INTEGER NOT NULL DEFAULT 0, `durChapterTime` INTEGER NOT NULL DEFAULT 0, `wordCount` TEXT, `canUpdate` INTEGER NOT NULL DEFAULT 1, `order` INTEGER NOT NULL DEFAULT 0, `originOrder` INTEGER NOT NULL DEFAULT 0, `variable` TEXT, `readConfig` TEXT, PRIMARY KEY(`bookUrl`))", - "fields": [ - { - "fieldPath": "bookUrl", - "columnName": "bookUrl", - "affinity": "TEXT", - "notNull": true, - "defaultValue": "''" - }, - { - "fieldPath": "tocUrl", - "columnName": "tocUrl", - "affinity": "TEXT", - "notNull": true, - "defaultValue": "''" - }, - { - "fieldPath": "origin", - "columnName": "origin", - "affinity": "TEXT", - "notNull": true, - "defaultValue": "''" - }, - { - "fieldPath": "originName", - "columnName": "originName", - "affinity": "TEXT", - "notNull": true, - "defaultValue": "''" - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true, - "defaultValue": "''" - }, - { - "fieldPath": "author", - "columnName": "author", - "affinity": "TEXT", - "notNull": true, - "defaultValue": "''" - }, - { - "fieldPath": "kind", - "columnName": "kind", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "customTag", - "columnName": "customTag", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "coverUrl", - "columnName": "coverUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "customCoverUrl", - "columnName": "customCoverUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "intro", - "columnName": "intro", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "customIntro", - "columnName": "customIntro", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "charset", - "columnName": "charset", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "type", - "columnName": "type", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "group", - "columnName": "group", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "latestChapterTitle", - "columnName": "latestChapterTitle", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "latestChapterTime", - "columnName": "latestChapterTime", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "lastCheckTime", - "columnName": "lastCheckTime", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "lastCheckCount", - "columnName": "lastCheckCount", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "totalChapterNum", - "columnName": "totalChapterNum", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "durChapterTitle", - "columnName": "durChapterTitle", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "durChapterIndex", - "columnName": "durChapterIndex", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "durChapterPos", - "columnName": "durChapterPos", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "durChapterTime", - "columnName": "durChapterTime", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "wordCount", - "columnName": "wordCount", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "canUpdate", - "columnName": "canUpdate", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "1" - }, - { - "fieldPath": "order", - "columnName": "order", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "originOrder", - "columnName": "originOrder", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "variable", - "columnName": "variable", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "readConfig", - "columnName": "readConfig", - "affinity": "TEXT", - "notNull": false - } - ], - "primaryKey": { - "columnNames": [ - "bookUrl" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_books_name_author", - "unique": true, - "columnNames": [ - "name", - "author" - ], - "orders": [], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_books_name_author` ON `${TABLE_NAME}` (`name`, `author`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "book_groups", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`groupId` INTEGER NOT NULL, `groupName` TEXT NOT NULL, `cover` TEXT, `order` INTEGER NOT NULL, `show` INTEGER NOT NULL, PRIMARY KEY(`groupId`))", - "fields": [ - { - "fieldPath": "groupId", - "columnName": "groupId", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "groupName", - "columnName": "groupName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "cover", - "columnName": "cover", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "order", - "columnName": "order", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "show", - "columnName": "show", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "groupId" - ], - "autoGenerate": false - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "book_sources", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`bookSourceUrl` TEXT NOT NULL, `bookSourceName` TEXT NOT NULL, `bookSourceGroup` TEXT, `bookSourceType` INTEGER NOT NULL, `bookUrlPattern` TEXT, `customOrder` INTEGER NOT NULL, `enabled` INTEGER NOT NULL, `enabledExplore` INTEGER NOT NULL, `enabledCookieJar` INTEGER DEFAULT 0, `concurrentRate` TEXT, `header` TEXT, `loginUrl` TEXT, `loginUi` TEXT, `loginCheckJs` TEXT, `bookSourceComment` TEXT, `lastUpdateTime` INTEGER NOT NULL, `respondTime` INTEGER NOT NULL, `weight` INTEGER NOT NULL, `exploreUrl` TEXT, `ruleExplore` TEXT, `searchUrl` TEXT, `ruleSearch` TEXT, `ruleBookInfo` TEXT, `ruleToc` TEXT, `ruleContent` TEXT, PRIMARY KEY(`bookSourceUrl`))", - "fields": [ - { - "fieldPath": "bookSourceUrl", - "columnName": "bookSourceUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookSourceName", - "columnName": "bookSourceName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookSourceGroup", - "columnName": "bookSourceGroup", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "bookSourceType", - "columnName": "bookSourceType", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "bookUrlPattern", - "columnName": "bookUrlPattern", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "customOrder", - "columnName": "customOrder", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "enabled", - "columnName": "enabled", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "enabledExplore", - "columnName": "enabledExplore", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "enabledCookieJar", - "columnName": "enabledCookieJar", - "affinity": "INTEGER", - "notNull": false, - "defaultValue": "0" - }, - { - "fieldPath": "concurrentRate", - "columnName": "concurrentRate", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "header", - "columnName": "header", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "loginUrl", - "columnName": "loginUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "loginUi", - "columnName": "loginUi", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "loginCheckJs", - "columnName": "loginCheckJs", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "bookSourceComment", - "columnName": "bookSourceComment", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "lastUpdateTime", - "columnName": "lastUpdateTime", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "respondTime", - "columnName": "respondTime", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "weight", - "columnName": "weight", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "exploreUrl", - "columnName": "exploreUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleExplore", - "columnName": "ruleExplore", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "searchUrl", - "columnName": "searchUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleSearch", - "columnName": "ruleSearch", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleBookInfo", - "columnName": "ruleBookInfo", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleToc", - "columnName": "ruleToc", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleContent", - "columnName": "ruleContent", - "affinity": "TEXT", - "notNull": false - } - ], - "primaryKey": { - "columnNames": [ - "bookSourceUrl" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_book_sources_bookSourceUrl", - "unique": false, - "columnNames": [ - "bookSourceUrl" - ], - "orders": [], - "createSql": "CREATE INDEX IF NOT EXISTS `index_book_sources_bookSourceUrl` ON `${TABLE_NAME}` (`bookSourceUrl`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "chapters", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`url` TEXT NOT NULL, `title` TEXT NOT NULL, `isVolume` INTEGER NOT NULL, `baseUrl` TEXT NOT NULL, `bookUrl` TEXT NOT NULL, `index` INTEGER NOT NULL, `isVip` INTEGER NOT NULL, `isPay` INTEGER NOT NULL, `resourceUrl` TEXT, `tag` TEXT, `start` INTEGER, `end` INTEGER, `startFragmentId` TEXT, `endFragmentId` TEXT, `variable` TEXT, PRIMARY KEY(`url`, `bookUrl`), FOREIGN KEY(`bookUrl`) REFERENCES `books`(`bookUrl`) ON UPDATE NO ACTION ON DELETE CASCADE )", - "fields": [ - { - "fieldPath": "url", - "columnName": "url", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "title", - "columnName": "title", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "isVolume", - "columnName": "isVolume", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "baseUrl", - "columnName": "baseUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookUrl", - "columnName": "bookUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "index", - "columnName": "index", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "isVip", - "columnName": "isVip", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "isPay", - "columnName": "isPay", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "resourceUrl", - "columnName": "resourceUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "tag", - "columnName": "tag", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "start", - "columnName": "start", - "affinity": "INTEGER", - "notNull": false - }, - { - "fieldPath": "end", - "columnName": "end", - "affinity": "INTEGER", - "notNull": false - }, - { - "fieldPath": "startFragmentId", - "columnName": "startFragmentId", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "endFragmentId", - "columnName": "endFragmentId", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "variable", - "columnName": "variable", - "affinity": "TEXT", - "notNull": false - } - ], - "primaryKey": { - "columnNames": [ - "url", - "bookUrl" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_chapters_bookUrl", - "unique": false, - "columnNames": [ - "bookUrl" - ], - "orders": [], - "createSql": "CREATE INDEX IF NOT EXISTS `index_chapters_bookUrl` ON `${TABLE_NAME}` (`bookUrl`)" - }, - { - "name": "index_chapters_bookUrl_index", - "unique": true, - "columnNames": [ - "bookUrl", - "index" - ], - "orders": [], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_chapters_bookUrl_index` ON `${TABLE_NAME}` (`bookUrl`, `index`)" - } - ], - "foreignKeys": [ - { - "table": "books", - "onDelete": "CASCADE", - "onUpdate": "NO ACTION", - "columns": [ - "bookUrl" - ], - "referencedColumns": [ - "bookUrl" - ] - } - ] - }, - { - "tableName": "replace_rules", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, `name` TEXT NOT NULL DEFAULT '', `group` TEXT, `pattern` TEXT NOT NULL DEFAULT '', `replacement` TEXT NOT NULL DEFAULT '', `scope` TEXT, `scopeTitle` INTEGER NOT NULL DEFAULT 0, `scopeContent` INTEGER NOT NULL DEFAULT 1, `isEnabled` INTEGER NOT NULL DEFAULT 1, `isRegex` INTEGER NOT NULL DEFAULT 1, `timeoutMillisecond` INTEGER NOT NULL DEFAULT 3000, `sortOrder` INTEGER NOT NULL DEFAULT 0)", - "fields": [ - { - "fieldPath": "id", - "columnName": "id", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true, - "defaultValue": "''" - }, - { - "fieldPath": "group", - "columnName": "group", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "pattern", - "columnName": "pattern", - "affinity": "TEXT", - "notNull": true, - "defaultValue": "''" - }, - { - "fieldPath": "replacement", - "columnName": "replacement", - "affinity": "TEXT", - "notNull": true, - "defaultValue": "''" - }, - { - "fieldPath": "scope", - "columnName": "scope", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "scopeTitle", - "columnName": "scopeTitle", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "scopeContent", - "columnName": "scopeContent", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "1" - }, - { - "fieldPath": "isEnabled", - "columnName": "isEnabled", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "1" - }, - { - "fieldPath": "isRegex", - "columnName": "isRegex", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "1" - }, - { - "fieldPath": "timeoutMillisecond", - "columnName": "timeoutMillisecond", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "3000" - }, - { - "fieldPath": "order", - "columnName": "sortOrder", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - } - ], - "primaryKey": { - "columnNames": [ - "id" - ], - "autoGenerate": true - }, - "indices": [ - { - "name": "index_replace_rules_id", - "unique": false, - "columnNames": [ - "id" - ], - "orders": [], - "createSql": "CREATE INDEX IF NOT EXISTS `index_replace_rules_id` ON `${TABLE_NAME}` (`id`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "searchBooks", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`bookUrl` TEXT NOT NULL, `origin` TEXT NOT NULL, `originName` TEXT NOT NULL, `type` INTEGER NOT NULL, `name` TEXT NOT NULL, `author` TEXT NOT NULL, `kind` TEXT, `coverUrl` TEXT, `intro` TEXT, `wordCount` TEXT, `latestChapterTitle` TEXT, `tocUrl` TEXT NOT NULL, `time` INTEGER NOT NULL, `variable` TEXT, `originOrder` INTEGER NOT NULL, PRIMARY KEY(`bookUrl`), FOREIGN KEY(`origin`) REFERENCES `book_sources`(`bookSourceUrl`) ON UPDATE NO ACTION ON DELETE CASCADE )", - "fields": [ - { - "fieldPath": "bookUrl", - "columnName": "bookUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "origin", - "columnName": "origin", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "originName", - "columnName": "originName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "type", - "columnName": "type", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "author", - "columnName": "author", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "kind", - "columnName": "kind", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "coverUrl", - "columnName": "coverUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "intro", - "columnName": "intro", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "wordCount", - "columnName": "wordCount", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "latestChapterTitle", - "columnName": "latestChapterTitle", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "tocUrl", - "columnName": "tocUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "time", - "columnName": "time", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "variable", - "columnName": "variable", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "originOrder", - "columnName": "originOrder", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "bookUrl" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_searchBooks_bookUrl", - "unique": true, - "columnNames": [ - "bookUrl" - ], - "orders": [], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_searchBooks_bookUrl` ON `${TABLE_NAME}` (`bookUrl`)" - }, - { - "name": "index_searchBooks_origin", - "unique": false, - "columnNames": [ - "origin" - ], - "orders": [], - "createSql": "CREATE INDEX IF NOT EXISTS `index_searchBooks_origin` ON `${TABLE_NAME}` (`origin`)" - } - ], - "foreignKeys": [ - { - "table": "book_sources", - "onDelete": "CASCADE", - "onUpdate": "NO ACTION", - "columns": [ - "origin" - ], - "referencedColumns": [ - "bookSourceUrl" - ] - } - ] - }, - { - "tableName": "search_keywords", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`word` TEXT NOT NULL, `usage` INTEGER NOT NULL, `lastUseTime` INTEGER NOT NULL, PRIMARY KEY(`word`))", - "fields": [ - { - "fieldPath": "word", - "columnName": "word", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "usage", - "columnName": "usage", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "lastUseTime", - "columnName": "lastUseTime", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "word" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_search_keywords_word", - "unique": true, - "columnNames": [ - "word" - ], - "orders": [], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_search_keywords_word` ON `${TABLE_NAME}` (`word`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "cookies", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`url` TEXT NOT NULL, `cookie` TEXT NOT NULL, PRIMARY KEY(`url`))", - "fields": [ - { - "fieldPath": "url", - "columnName": "url", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "cookie", - "columnName": "cookie", - "affinity": "TEXT", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "url" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_cookies_url", - "unique": true, - "columnNames": [ - "url" - ], - "orders": [], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_cookies_url` ON `${TABLE_NAME}` (`url`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "rssSources", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`sourceUrl` TEXT NOT NULL, `sourceName` TEXT NOT NULL, `sourceIcon` TEXT NOT NULL, `sourceGroup` TEXT, `sourceComment` TEXT, `enabled` INTEGER NOT NULL, `enabledCookieJar` INTEGER DEFAULT 0, `concurrentRate` TEXT, `header` TEXT, `loginUrl` TEXT, `loginUi` TEXT, `loginCheckJs` TEXT, `sortUrl` TEXT, `singleUrl` INTEGER NOT NULL, `articleStyle` INTEGER NOT NULL, `ruleArticles` TEXT, `ruleNextPage` TEXT, `ruleTitle` TEXT, `rulePubDate` TEXT, `ruleDescription` TEXT, `ruleImage` TEXT, `ruleLink` TEXT, `ruleContent` TEXT, `style` TEXT, `enableJs` INTEGER NOT NULL, `loadWithBaseUrl` INTEGER NOT NULL, `customOrder` INTEGER NOT NULL, PRIMARY KEY(`sourceUrl`))", - "fields": [ - { - "fieldPath": "sourceUrl", - "columnName": "sourceUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "sourceName", - "columnName": "sourceName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "sourceIcon", - "columnName": "sourceIcon", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "sourceGroup", - "columnName": "sourceGroup", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "sourceComment", - "columnName": "sourceComment", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "enabled", - "columnName": "enabled", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "enabledCookieJar", - "columnName": "enabledCookieJar", - "affinity": "INTEGER", - "notNull": false, - "defaultValue": "0" - }, - { - "fieldPath": "concurrentRate", - "columnName": "concurrentRate", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "header", - "columnName": "header", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "loginUrl", - "columnName": "loginUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "loginUi", - "columnName": "loginUi", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "loginCheckJs", - "columnName": "loginCheckJs", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "sortUrl", - "columnName": "sortUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "singleUrl", - "columnName": "singleUrl", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "articleStyle", - "columnName": "articleStyle", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "ruleArticles", - "columnName": "ruleArticles", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleNextPage", - "columnName": "ruleNextPage", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleTitle", - "columnName": "ruleTitle", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "rulePubDate", - "columnName": "rulePubDate", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleDescription", - "columnName": "ruleDescription", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleImage", - "columnName": "ruleImage", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleLink", - "columnName": "ruleLink", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleContent", - "columnName": "ruleContent", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "style", - "columnName": "style", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "enableJs", - "columnName": "enableJs", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "loadWithBaseUrl", - "columnName": "loadWithBaseUrl", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "customOrder", - "columnName": "customOrder", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "sourceUrl" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_rssSources_sourceUrl", - "unique": false, - "columnNames": [ - "sourceUrl" - ], - "orders": [], - "createSql": "CREATE INDEX IF NOT EXISTS `index_rssSources_sourceUrl` ON `${TABLE_NAME}` (`sourceUrl`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "bookmarks", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`time` INTEGER NOT NULL, `bookName` TEXT NOT NULL, `bookAuthor` TEXT NOT NULL, `chapterIndex` INTEGER NOT NULL, `chapterPos` INTEGER NOT NULL, `chapterName` TEXT NOT NULL, `bookText` TEXT NOT NULL, `content` TEXT NOT NULL, PRIMARY KEY(`time`))", - "fields": [ - { - "fieldPath": "time", - "columnName": "time", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "bookName", - "columnName": "bookName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookAuthor", - "columnName": "bookAuthor", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "chapterIndex", - "columnName": "chapterIndex", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "chapterPos", - "columnName": "chapterPos", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "chapterName", - "columnName": "chapterName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookText", - "columnName": "bookText", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "content", - "columnName": "content", - "affinity": "TEXT", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "time" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_bookmarks_bookName_bookAuthor", - "unique": false, - "columnNames": [ - "bookName", - "bookAuthor" - ], - "orders": [], - "createSql": "CREATE INDEX IF NOT EXISTS `index_bookmarks_bookName_bookAuthor` ON `${TABLE_NAME}` (`bookName`, `bookAuthor`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "rssArticles", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`origin` TEXT NOT NULL, `sort` TEXT NOT NULL, `title` TEXT NOT NULL, `order` INTEGER NOT NULL, `link` TEXT NOT NULL, `pubDate` TEXT, `description` TEXT, `content` TEXT, `image` TEXT, `read` INTEGER NOT NULL, `variable` TEXT, PRIMARY KEY(`origin`, `link`))", - "fields": [ - { - "fieldPath": "origin", - "columnName": "origin", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "sort", - "columnName": "sort", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "title", - "columnName": "title", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "order", - "columnName": "order", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "link", - "columnName": "link", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "pubDate", - "columnName": "pubDate", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "description", - "columnName": "description", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "content", - "columnName": "content", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "image", - "columnName": "image", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "read", - "columnName": "read", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "variable", - "columnName": "variable", - "affinity": "TEXT", - "notNull": false - } - ], - "primaryKey": { - "columnNames": [ - "origin", - "link" - ], - "autoGenerate": false - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "rssReadRecords", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`record` TEXT NOT NULL, `read` INTEGER NOT NULL, PRIMARY KEY(`record`))", - "fields": [ - { - "fieldPath": "record", - "columnName": "record", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "read", - "columnName": "read", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "record" - ], - "autoGenerate": false - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "rssStars", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`origin` TEXT NOT NULL, `sort` TEXT NOT NULL, `title` TEXT NOT NULL, `starTime` INTEGER NOT NULL, `link` TEXT NOT NULL, `pubDate` TEXT, `description` TEXT, `content` TEXT, `image` TEXT, `variable` TEXT, PRIMARY KEY(`origin`, `link`))", - "fields": [ - { - "fieldPath": "origin", - "columnName": "origin", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "sort", - "columnName": "sort", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "title", - "columnName": "title", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "starTime", - "columnName": "starTime", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "link", - "columnName": "link", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "pubDate", - "columnName": "pubDate", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "description", - "columnName": "description", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "content", - "columnName": "content", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "image", - "columnName": "image", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "variable", - "columnName": "variable", - "affinity": "TEXT", - "notNull": false - } - ], - "primaryKey": { - "columnNames": [ - "origin", - "link" - ], - "autoGenerate": false - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "txtTocRules", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER NOT NULL, `name` TEXT NOT NULL, `rule` TEXT NOT NULL, `serialNumber` INTEGER NOT NULL, `enable` INTEGER NOT NULL, PRIMARY KEY(`id`))", - "fields": [ - { - "fieldPath": "id", - "columnName": "id", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "rule", - "columnName": "rule", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "serialNumber", - "columnName": "serialNumber", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "enable", - "columnName": "enable", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "id" - ], - "autoGenerate": false - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "readRecord", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`deviceId` TEXT NOT NULL, `bookName` TEXT NOT NULL, `readTime` INTEGER NOT NULL, PRIMARY KEY(`deviceId`, `bookName`))", - "fields": [ - { - "fieldPath": "deviceId", - "columnName": "deviceId", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookName", - "columnName": "bookName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "readTime", - "columnName": "readTime", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "deviceId", - "bookName" - ], - "autoGenerate": false - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "httpTTS", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER NOT NULL, `name` TEXT NOT NULL, `url` TEXT NOT NULL, `contentType` TEXT, `concurrentRate` TEXT DEFAULT '0', `loginUrl` TEXT, `loginUi` TEXT, `header` TEXT, `enabledCookieJar` INTEGER DEFAULT 0, `loginCheckJs` TEXT, `lastUpdateTime` INTEGER NOT NULL DEFAULT 0, PRIMARY KEY(`id`))", - "fields": [ - { - "fieldPath": "id", - "columnName": "id", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "url", - "columnName": "url", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "contentType", - "columnName": "contentType", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "concurrentRate", - "columnName": "concurrentRate", - "affinity": "TEXT", - "notNull": false, - "defaultValue": "'0'" - }, - { - "fieldPath": "loginUrl", - "columnName": "loginUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "loginUi", - "columnName": "loginUi", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "header", - "columnName": "header", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "enabledCookieJar", - "columnName": "enabledCookieJar", - "affinity": "INTEGER", - "notNull": false, - "defaultValue": "0" - }, - { - "fieldPath": "loginCheckJs", - "columnName": "loginCheckJs", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "lastUpdateTime", - "columnName": "lastUpdateTime", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - } - ], - "primaryKey": { - "columnNames": [ - "id" - ], - "autoGenerate": false - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "caches", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`key` TEXT NOT NULL, `value` TEXT, `deadline` INTEGER NOT NULL, PRIMARY KEY(`key`))", - "fields": [ - { - "fieldPath": "key", - "columnName": "key", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "value", - "columnName": "value", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "deadline", - "columnName": "deadline", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "key" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_caches_key", - "unique": true, - "columnNames": [ - "key" - ], - "orders": [], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_caches_key` ON `${TABLE_NAME}` (`key`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "ruleSubs", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER NOT NULL, `name` TEXT NOT NULL, `url` TEXT NOT NULL, `type` INTEGER NOT NULL, `customOrder` INTEGER NOT NULL, `autoUpdate` INTEGER NOT NULL, `update` INTEGER NOT NULL, PRIMARY KEY(`id`))", - "fields": [ - { - "fieldPath": "id", - "columnName": "id", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "url", - "columnName": "url", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "type", - "columnName": "type", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "customOrder", - "columnName": "customOrder", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "autoUpdate", - "columnName": "autoUpdate", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "update", - "columnName": "update", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "id" - ], - "autoGenerate": false - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "keyboardAssists", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`type` INTEGER NOT NULL DEFAULT 0, `key` TEXT NOT NULL DEFAULT '', `value` TEXT NOT NULL DEFAULT '', `serialNo` INTEGER NOT NULL DEFAULT 0, PRIMARY KEY(`type`, `key`))", - "fields": [ - { - "fieldPath": "type", - "columnName": "type", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "key", - "columnName": "key", - "affinity": "TEXT", - "notNull": true, - "defaultValue": "''" - }, - { - "fieldPath": "value", - "columnName": "value", - "affinity": "TEXT", - "notNull": true, - "defaultValue": "''" - }, - { - "fieldPath": "serialNo", - "columnName": "serialNo", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - } - ], - "primaryKey": { - "columnNames": [ - "type", - "key" - ], - "autoGenerate": false - }, - "indices": [], - "foreignKeys": [] - } - ], - "views": [], - "setupQueries": [ - "CREATE TABLE IF NOT EXISTS room_master_table (id INTEGER PRIMARY KEY,identity_hash TEXT)", - "INSERT OR REPLACE INTO room_master_table (id,identity_hash) VALUES(42, '2a6f5ee3d0ed9ac13f15183a04a4af45')" - ] - } -} \ No newline at end of file diff --git a/app/schemas/io.legado.app.data.AppDatabase/5.json b/app/schemas/io.legado.app.data.AppDatabase/5.json deleted file mode 100644 index 840c85b66..000000000 --- a/app/schemas/io.legado.app.data.AppDatabase/5.json +++ /dev/null @@ -1,1093 +0,0 @@ -{ - "formatVersion": 1, - "database": { - "version": 5, - "identityHash": "a355f8e02ebe0b13464573b1420a7b90", - "entities": [ - { - "tableName": "books", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`bookUrl` TEXT NOT NULL, `tocUrl` TEXT NOT NULL, `origin` TEXT NOT NULL, `originName` TEXT NOT NULL, `name` TEXT NOT NULL, `author` TEXT NOT NULL, `kind` TEXT, `customTag` TEXT, `coverUrl` TEXT, `customCoverUrl` TEXT, `intro` TEXT, `customIntro` TEXT, `charset` TEXT, `type` INTEGER NOT NULL, `group` INTEGER NOT NULL, `latestChapterTitle` TEXT, `latestChapterTime` INTEGER NOT NULL, `lastCheckTime` INTEGER NOT NULL, `lastCheckCount` INTEGER NOT NULL, `totalChapterNum` INTEGER NOT NULL, `durChapterTitle` TEXT, `durChapterIndex` INTEGER NOT NULL, `durChapterPos` INTEGER NOT NULL, `durChapterTime` INTEGER NOT NULL, `wordCount` TEXT, `canUpdate` INTEGER NOT NULL, `order` INTEGER NOT NULL, `originOrder` INTEGER NOT NULL, `useReplaceRule` INTEGER NOT NULL, `variable` TEXT, PRIMARY KEY(`bookUrl`))", - "fields": [ - { - "fieldPath": "bookUrl", - "columnName": "bookUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "tocUrl", - "columnName": "tocUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "origin", - "columnName": "origin", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "originName", - "columnName": "originName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "author", - "columnName": "author", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "kind", - "columnName": "kind", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "customTag", - "columnName": "customTag", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "coverUrl", - "columnName": "coverUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "customCoverUrl", - "columnName": "customCoverUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "intro", - "columnName": "intro", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "customIntro", - "columnName": "customIntro", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "charset", - "columnName": "charset", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "type", - "columnName": "type", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "group", - "columnName": "group", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "latestChapterTitle", - "columnName": "latestChapterTitle", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "latestChapterTime", - "columnName": "latestChapterTime", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "lastCheckTime", - "columnName": "lastCheckTime", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "lastCheckCount", - "columnName": "lastCheckCount", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "totalChapterNum", - "columnName": "totalChapterNum", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "durChapterTitle", - "columnName": "durChapterTitle", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "durChapterIndex", - "columnName": "durChapterIndex", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "durChapterPos", - "columnName": "durChapterPos", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "durChapterTime", - "columnName": "durChapterTime", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "wordCount", - "columnName": "wordCount", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "canUpdate", - "columnName": "canUpdate", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "order", - "columnName": "order", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "originOrder", - "columnName": "originOrder", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "useReplaceRule", - "columnName": "useReplaceRule", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "variable", - "columnName": "variable", - "affinity": "TEXT", - "notNull": false - } - ], - "primaryKey": { - "columnNames": [ - "bookUrl" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_books_bookUrl", - "unique": true, - "columnNames": [ - "bookUrl" - ], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_books_bookUrl` ON `${TABLE_NAME}` (`bookUrl`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "book_groups", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`groupId` INTEGER NOT NULL, `groupName` TEXT NOT NULL, `order` INTEGER NOT NULL, PRIMARY KEY(`groupId`))", - "fields": [ - { - "fieldPath": "groupId", - "columnName": "groupId", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "groupName", - "columnName": "groupName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "order", - "columnName": "order", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "groupId" - ], - "autoGenerate": false - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "book_sources", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`bookSourceName` TEXT NOT NULL, `bookSourceGroup` TEXT, `bookSourceUrl` TEXT NOT NULL, `bookSourceType` INTEGER NOT NULL, `bookUrlPattern` TEXT, `customOrder` INTEGER NOT NULL, `enabled` INTEGER NOT NULL, `enabledExplore` INTEGER NOT NULL, `header` TEXT, `loginUrl` TEXT, `lastUpdateTime` INTEGER NOT NULL, `weight` INTEGER NOT NULL, `exploreUrl` TEXT, `ruleExplore` TEXT, `searchUrl` TEXT, `ruleSearch` TEXT, `ruleBookInfo` TEXT, `ruleToc` TEXT, `ruleContent` TEXT, PRIMARY KEY(`bookSourceUrl`))", - "fields": [ - { - "fieldPath": "bookSourceName", - "columnName": "bookSourceName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookSourceGroup", - "columnName": "bookSourceGroup", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "bookSourceUrl", - "columnName": "bookSourceUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookSourceType", - "columnName": "bookSourceType", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "bookUrlPattern", - "columnName": "bookUrlPattern", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "customOrder", - "columnName": "customOrder", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "enabled", - "columnName": "enabled", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "enabledExplore", - "columnName": "enabledExplore", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "header", - "columnName": "header", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "loginUrl", - "columnName": "loginUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "lastUpdateTime", - "columnName": "lastUpdateTime", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "weight", - "columnName": "weight", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "exploreUrl", - "columnName": "exploreUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleExplore", - "columnName": "ruleExplore", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "searchUrl", - "columnName": "searchUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleSearch", - "columnName": "ruleSearch", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleBookInfo", - "columnName": "ruleBookInfo", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleToc", - "columnName": "ruleToc", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleContent", - "columnName": "ruleContent", - "affinity": "TEXT", - "notNull": false - } - ], - "primaryKey": { - "columnNames": [ - "bookSourceUrl" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_book_sources_bookSourceUrl", - "unique": false, - "columnNames": [ - "bookSourceUrl" - ], - "createSql": "CREATE INDEX IF NOT EXISTS `index_book_sources_bookSourceUrl` ON `${TABLE_NAME}` (`bookSourceUrl`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "chapters", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`url` TEXT NOT NULL, `title` TEXT NOT NULL, `bookUrl` TEXT NOT NULL, `index` INTEGER NOT NULL, `resourceUrl` TEXT, `tag` TEXT, `start` INTEGER, `end` INTEGER, `variable` TEXT, PRIMARY KEY(`url`, `bookUrl`), FOREIGN KEY(`bookUrl`) REFERENCES `books`(`bookUrl`) ON UPDATE NO ACTION ON DELETE CASCADE )", - "fields": [ - { - "fieldPath": "url", - "columnName": "url", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "title", - "columnName": "title", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookUrl", - "columnName": "bookUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "index", - "columnName": "index", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "resourceUrl", - "columnName": "resourceUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "tag", - "columnName": "tag", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "start", - "columnName": "start", - "affinity": "INTEGER", - "notNull": false - }, - { - "fieldPath": "end", - "columnName": "end", - "affinity": "INTEGER", - "notNull": false - }, - { - "fieldPath": "variable", - "columnName": "variable", - "affinity": "TEXT", - "notNull": false - } - ], - "primaryKey": { - "columnNames": [ - "url", - "bookUrl" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_chapters_bookUrl", - "unique": false, - "columnNames": [ - "bookUrl" - ], - "createSql": "CREATE INDEX IF NOT EXISTS `index_chapters_bookUrl` ON `${TABLE_NAME}` (`bookUrl`)" - }, - { - "name": "index_chapters_bookUrl_index", - "unique": true, - "columnNames": [ - "bookUrl", - "index" - ], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_chapters_bookUrl_index` ON `${TABLE_NAME}` (`bookUrl`, `index`)" - } - ], - "foreignKeys": [ - { - "table": "books", - "onDelete": "CASCADE", - "onUpdate": "NO ACTION", - "columns": [ - "bookUrl" - ], - "referencedColumns": [ - "bookUrl" - ] - } - ] - }, - { - "tableName": "replace_rules", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, `name` TEXT NOT NULL, `group` TEXT, `pattern` TEXT NOT NULL, `replacement` TEXT NOT NULL, `scope` TEXT, `isEnabled` INTEGER NOT NULL, `isRegex` INTEGER NOT NULL, `sortOrder` INTEGER NOT NULL)", - "fields": [ - { - "fieldPath": "id", - "columnName": "id", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "group", - "columnName": "group", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "pattern", - "columnName": "pattern", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "replacement", - "columnName": "replacement", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "scope", - "columnName": "scope", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "isEnabled", - "columnName": "isEnabled", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "isRegex", - "columnName": "isRegex", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "order", - "columnName": "sortOrder", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "id" - ], - "autoGenerate": true - }, - "indices": [ - { - "name": "index_replace_rules_id", - "unique": false, - "columnNames": [ - "id" - ], - "createSql": "CREATE INDEX IF NOT EXISTS `index_replace_rules_id` ON `${TABLE_NAME}` (`id`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "searchBooks", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`bookUrl` TEXT NOT NULL, `origin` TEXT NOT NULL, `originName` TEXT NOT NULL, `type` INTEGER NOT NULL, `name` TEXT NOT NULL, `author` TEXT NOT NULL, `kind` TEXT, `coverUrl` TEXT, `intro` TEXT, `wordCount` TEXT, `latestChapterTitle` TEXT, `tocUrl` TEXT NOT NULL, `time` INTEGER NOT NULL, `variable` TEXT, `originOrder` INTEGER NOT NULL, PRIMARY KEY(`bookUrl`), FOREIGN KEY(`origin`) REFERENCES `book_sources`(`bookSourceUrl`) ON UPDATE NO ACTION ON DELETE CASCADE )", - "fields": [ - { - "fieldPath": "bookUrl", - "columnName": "bookUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "origin", - "columnName": "origin", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "originName", - "columnName": "originName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "type", - "columnName": "type", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "author", - "columnName": "author", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "kind", - "columnName": "kind", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "coverUrl", - "columnName": "coverUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "intro", - "columnName": "intro", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "wordCount", - "columnName": "wordCount", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "latestChapterTitle", - "columnName": "latestChapterTitle", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "tocUrl", - "columnName": "tocUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "time", - "columnName": "time", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "variable", - "columnName": "variable", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "originOrder", - "columnName": "originOrder", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "bookUrl" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_searchBooks_bookUrl", - "unique": true, - "columnNames": [ - "bookUrl" - ], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_searchBooks_bookUrl` ON `${TABLE_NAME}` (`bookUrl`)" - }, - { - "name": "index_searchBooks_origin", - "unique": false, - "columnNames": [ - "origin" - ], - "createSql": "CREATE INDEX IF NOT EXISTS `index_searchBooks_origin` ON `${TABLE_NAME}` (`origin`)" - } - ], - "foreignKeys": [ - { - "table": "book_sources", - "onDelete": "CASCADE", - "onUpdate": "NO ACTION", - "columns": [ - "origin" - ], - "referencedColumns": [ - "bookSourceUrl" - ] - } - ] - }, - { - "tableName": "search_keywords", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`word` TEXT NOT NULL, `usage` INTEGER NOT NULL, `lastUseTime` INTEGER NOT NULL, PRIMARY KEY(`word`))", - "fields": [ - { - "fieldPath": "word", - "columnName": "word", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "usage", - "columnName": "usage", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "lastUseTime", - "columnName": "lastUseTime", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "word" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_search_keywords_word", - "unique": true, - "columnNames": [ - "word" - ], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_search_keywords_word` ON `${TABLE_NAME}` (`word`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "cookies", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`url` TEXT NOT NULL, `cookie` TEXT NOT NULL, PRIMARY KEY(`url`))", - "fields": [ - { - "fieldPath": "url", - "columnName": "url", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "cookie", - "columnName": "cookie", - "affinity": "TEXT", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "url" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_cookies_url", - "unique": true, - "columnNames": [ - "url" - ], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_cookies_url` ON `${TABLE_NAME}` (`url`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "rssSources", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`sourceUrl` TEXT NOT NULL, `sourceName` TEXT NOT NULL, `sourceIcon` TEXT NOT NULL, `sourceGroup` TEXT, `enabled` INTEGER NOT NULL, `ruleArticles` TEXT, `ruleNextPage` TEXT, `ruleTitle` TEXT, `rulePubDate` TEXT, `ruleDescription` TEXT, `ruleImage` TEXT, `ruleLink` TEXT, `ruleContent` TEXT, `header` TEXT, `enableJs` INTEGER NOT NULL, `loadWithBaseUrl` INTEGER NOT NULL, `customOrder` INTEGER NOT NULL, PRIMARY KEY(`sourceUrl`))", - "fields": [ - { - "fieldPath": "sourceUrl", - "columnName": "sourceUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "sourceName", - "columnName": "sourceName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "sourceIcon", - "columnName": "sourceIcon", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "sourceGroup", - "columnName": "sourceGroup", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "enabled", - "columnName": "enabled", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "ruleArticles", - "columnName": "ruleArticles", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleNextPage", - "columnName": "ruleNextPage", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleTitle", - "columnName": "ruleTitle", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "rulePubDate", - "columnName": "rulePubDate", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleDescription", - "columnName": "ruleDescription", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleImage", - "columnName": "ruleImage", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleLink", - "columnName": "ruleLink", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleContent", - "columnName": "ruleContent", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "header", - "columnName": "header", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "enableJs", - "columnName": "enableJs", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "loadWithBaseUrl", - "columnName": "loadWithBaseUrl", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "customOrder", - "columnName": "customOrder", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "sourceUrl" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_rssSources_sourceUrl", - "unique": false, - "columnNames": [ - "sourceUrl" - ], - "createSql": "CREATE INDEX IF NOT EXISTS `index_rssSources_sourceUrl` ON `${TABLE_NAME}` (`sourceUrl`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "bookmarks", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`time` INTEGER NOT NULL, `bookUrl` TEXT NOT NULL, `bookName` TEXT NOT NULL, `chapterIndex` INTEGER NOT NULL, `pageIndex` INTEGER NOT NULL, `chapterName` TEXT NOT NULL, `content` TEXT NOT NULL, PRIMARY KEY(`time`))", - "fields": [ - { - "fieldPath": "time", - "columnName": "time", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "bookUrl", - "columnName": "bookUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookName", - "columnName": "bookName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "chapterIndex", - "columnName": "chapterIndex", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "pageIndex", - "columnName": "pageIndex", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "chapterName", - "columnName": "chapterName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "content", - "columnName": "content", - "affinity": "TEXT", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "time" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_bookmarks_time", - "unique": true, - "columnNames": [ - "time" - ], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_bookmarks_time` ON `${TABLE_NAME}` (`time`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "rssArticles", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`origin` TEXT NOT NULL, `title` TEXT NOT NULL, `order` INTEGER NOT NULL, `link` TEXT NOT NULL, `pubDate` TEXT, `description` TEXT, `content` TEXT, `image` TEXT, `read` INTEGER NOT NULL, PRIMARY KEY(`origin`, `link`))", - "fields": [ - { - "fieldPath": "origin", - "columnName": "origin", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "title", - "columnName": "title", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "order", - "columnName": "order", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "link", - "columnName": "link", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "pubDate", - "columnName": "pubDate", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "description", - "columnName": "description", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "content", - "columnName": "content", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "image", - "columnName": "image", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "read", - "columnName": "read", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "origin", - "link" - ], - "autoGenerate": false - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "rssStars", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`origin` TEXT NOT NULL, `title` TEXT NOT NULL, `starTime` INTEGER NOT NULL, `link` TEXT NOT NULL, `pubDate` TEXT, `description` TEXT, `content` TEXT, `image` TEXT, PRIMARY KEY(`origin`, `link`))", - "fields": [ - { - "fieldPath": "origin", - "columnName": "origin", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "title", - "columnName": "title", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "starTime", - "columnName": "starTime", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "link", - "columnName": "link", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "pubDate", - "columnName": "pubDate", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "description", - "columnName": "description", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "content", - "columnName": "content", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "image", - "columnName": "image", - "affinity": "TEXT", - "notNull": false - } - ], - "primaryKey": { - "columnNames": [ - "origin", - "link" - ], - "autoGenerate": false - }, - "indices": [], - "foreignKeys": [] - } - ], - "views": [], - "setupQueries": [ - "CREATE TABLE IF NOT EXISTS room_master_table (id INTEGER PRIMARY KEY,identity_hash TEXT)", - "INSERT OR REPLACE INTO room_master_table (id,identity_hash) VALUES(42, 'a355f8e02ebe0b13464573b1420a7b90')" - ] - } -} \ No newline at end of file diff --git a/app/schemas/io.legado.app.data.AppDatabase/50.json b/app/schemas/io.legado.app.data.AppDatabase/50.json deleted file mode 100644 index 05ebf3e6f..000000000 --- a/app/schemas/io.legado.app.data.AppDatabase/50.json +++ /dev/null @@ -1,1666 +0,0 @@ -{ - "formatVersion": 1, - "database": { - "version": 50, - "identityHash": "524cf3564400bd897a49355afd984ac1", - "entities": [ - { - "tableName": "books", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`bookUrl` TEXT NOT NULL DEFAULT '', `tocUrl` TEXT NOT NULL DEFAULT '', `origin` TEXT NOT NULL DEFAULT '', `originName` TEXT NOT NULL DEFAULT '', `name` TEXT NOT NULL DEFAULT '', `author` TEXT NOT NULL DEFAULT '', `kind` TEXT, `customTag` TEXT, `coverUrl` TEXT, `customCoverUrl` TEXT, `intro` TEXT, `customIntro` TEXT, `charset` TEXT, `type` INTEGER NOT NULL DEFAULT 0, `group` INTEGER NOT NULL DEFAULT 0, `latestChapterTitle` TEXT, `latestChapterTime` INTEGER NOT NULL DEFAULT 0, `lastCheckTime` INTEGER NOT NULL DEFAULT 0, `lastCheckCount` INTEGER NOT NULL DEFAULT 0, `totalChapterNum` INTEGER NOT NULL DEFAULT 0, `durChapterTitle` TEXT, `durChapterIndex` INTEGER NOT NULL DEFAULT 0, `durChapterPos` INTEGER NOT NULL DEFAULT 0, `durChapterTime` INTEGER NOT NULL DEFAULT 0, `wordCount` TEXT, `canUpdate` INTEGER NOT NULL DEFAULT 1, `order` INTEGER NOT NULL DEFAULT 0, `originOrder` INTEGER NOT NULL DEFAULT 0, `variable` TEXT, `readConfig` TEXT, PRIMARY KEY(`bookUrl`))", - "fields": [ - { - "fieldPath": "bookUrl", - "columnName": "bookUrl", - "affinity": "TEXT", - "notNull": true, - "defaultValue": "''" - }, - { - "fieldPath": "tocUrl", - "columnName": "tocUrl", - "affinity": "TEXT", - "notNull": true, - "defaultValue": "''" - }, - { - "fieldPath": "origin", - "columnName": "origin", - "affinity": "TEXT", - "notNull": true, - "defaultValue": "''" - }, - { - "fieldPath": "originName", - "columnName": "originName", - "affinity": "TEXT", - "notNull": true, - "defaultValue": "''" - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true, - "defaultValue": "''" - }, - { - "fieldPath": "author", - "columnName": "author", - "affinity": "TEXT", - "notNull": true, - "defaultValue": "''" - }, - { - "fieldPath": "kind", - "columnName": "kind", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "customTag", - "columnName": "customTag", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "coverUrl", - "columnName": "coverUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "customCoverUrl", - "columnName": "customCoverUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "intro", - "columnName": "intro", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "customIntro", - "columnName": "customIntro", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "charset", - "columnName": "charset", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "type", - "columnName": "type", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "group", - "columnName": "group", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "latestChapterTitle", - "columnName": "latestChapterTitle", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "latestChapterTime", - "columnName": "latestChapterTime", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "lastCheckTime", - "columnName": "lastCheckTime", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "lastCheckCount", - "columnName": "lastCheckCount", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "totalChapterNum", - "columnName": "totalChapterNum", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "durChapterTitle", - "columnName": "durChapterTitle", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "durChapterIndex", - "columnName": "durChapterIndex", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "durChapterPos", - "columnName": "durChapterPos", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "durChapterTime", - "columnName": "durChapterTime", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "wordCount", - "columnName": "wordCount", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "canUpdate", - "columnName": "canUpdate", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "1" - }, - { - "fieldPath": "order", - "columnName": "order", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "originOrder", - "columnName": "originOrder", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "variable", - "columnName": "variable", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "readConfig", - "columnName": "readConfig", - "affinity": "TEXT", - "notNull": false - } - ], - "primaryKey": { - "columnNames": [ - "bookUrl" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_books_name_author", - "unique": true, - "columnNames": [ - "name", - "author" - ], - "orders": [], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_books_name_author` ON `${TABLE_NAME}` (`name`, `author`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "book_groups", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`groupId` INTEGER NOT NULL, `groupName` TEXT NOT NULL, `cover` TEXT, `order` INTEGER NOT NULL, `show` INTEGER NOT NULL, PRIMARY KEY(`groupId`))", - "fields": [ - { - "fieldPath": "groupId", - "columnName": "groupId", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "groupName", - "columnName": "groupName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "cover", - "columnName": "cover", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "order", - "columnName": "order", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "show", - "columnName": "show", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "groupId" - ], - "autoGenerate": false - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "book_sources", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`bookSourceUrl` TEXT NOT NULL, `bookSourceName` TEXT NOT NULL, `bookSourceGroup` TEXT, `bookSourceType` INTEGER NOT NULL, `bookUrlPattern` TEXT, `customOrder` INTEGER NOT NULL, `enabled` INTEGER NOT NULL, `enabledExplore` INTEGER NOT NULL, `enabledCookieJar` INTEGER DEFAULT 0, `concurrentRate` TEXT, `header` TEXT, `loginUrl` TEXT, `loginUi` TEXT, `loginCheckJs` TEXT, `bookSourceComment` TEXT, `variableComment` TEXT, `lastUpdateTime` INTEGER NOT NULL, `respondTime` INTEGER NOT NULL, `weight` INTEGER NOT NULL, `exploreUrl` TEXT, `ruleExplore` TEXT, `searchUrl` TEXT, `ruleSearch` TEXT, `ruleBookInfo` TEXT, `ruleToc` TEXT, `ruleContent` TEXT, PRIMARY KEY(`bookSourceUrl`))", - "fields": [ - { - "fieldPath": "bookSourceUrl", - "columnName": "bookSourceUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookSourceName", - "columnName": "bookSourceName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookSourceGroup", - "columnName": "bookSourceGroup", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "bookSourceType", - "columnName": "bookSourceType", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "bookUrlPattern", - "columnName": "bookUrlPattern", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "customOrder", - "columnName": "customOrder", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "enabled", - "columnName": "enabled", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "enabledExplore", - "columnName": "enabledExplore", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "enabledCookieJar", - "columnName": "enabledCookieJar", - "affinity": "INTEGER", - "notNull": false, - "defaultValue": "0" - }, - { - "fieldPath": "concurrentRate", - "columnName": "concurrentRate", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "header", - "columnName": "header", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "loginUrl", - "columnName": "loginUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "loginUi", - "columnName": "loginUi", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "loginCheckJs", - "columnName": "loginCheckJs", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "bookSourceComment", - "columnName": "bookSourceComment", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "variableComment", - "columnName": "variableComment", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "lastUpdateTime", - "columnName": "lastUpdateTime", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "respondTime", - "columnName": "respondTime", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "weight", - "columnName": "weight", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "exploreUrl", - "columnName": "exploreUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleExplore", - "columnName": "ruleExplore", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "searchUrl", - "columnName": "searchUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleSearch", - "columnName": "ruleSearch", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleBookInfo", - "columnName": "ruleBookInfo", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleToc", - "columnName": "ruleToc", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleContent", - "columnName": "ruleContent", - "affinity": "TEXT", - "notNull": false - } - ], - "primaryKey": { - "columnNames": [ - "bookSourceUrl" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_book_sources_bookSourceUrl", - "unique": false, - "columnNames": [ - "bookSourceUrl" - ], - "orders": [], - "createSql": "CREATE INDEX IF NOT EXISTS `index_book_sources_bookSourceUrl` ON `${TABLE_NAME}` (`bookSourceUrl`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "chapters", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`url` TEXT NOT NULL, `title` TEXT NOT NULL, `isVolume` INTEGER NOT NULL, `baseUrl` TEXT NOT NULL, `bookUrl` TEXT NOT NULL, `index` INTEGER NOT NULL, `isVip` INTEGER NOT NULL, `isPay` INTEGER NOT NULL, `resourceUrl` TEXT, `tag` TEXT, `start` INTEGER, `end` INTEGER, `startFragmentId` TEXT, `endFragmentId` TEXT, `variable` TEXT, PRIMARY KEY(`url`, `bookUrl`), FOREIGN KEY(`bookUrl`) REFERENCES `books`(`bookUrl`) ON UPDATE NO ACTION ON DELETE CASCADE )", - "fields": [ - { - "fieldPath": "url", - "columnName": "url", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "title", - "columnName": "title", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "isVolume", - "columnName": "isVolume", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "baseUrl", - "columnName": "baseUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookUrl", - "columnName": "bookUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "index", - "columnName": "index", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "isVip", - "columnName": "isVip", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "isPay", - "columnName": "isPay", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "resourceUrl", - "columnName": "resourceUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "tag", - "columnName": "tag", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "start", - "columnName": "start", - "affinity": "INTEGER", - "notNull": false - }, - { - "fieldPath": "end", - "columnName": "end", - "affinity": "INTEGER", - "notNull": false - }, - { - "fieldPath": "startFragmentId", - "columnName": "startFragmentId", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "endFragmentId", - "columnName": "endFragmentId", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "variable", - "columnName": "variable", - "affinity": "TEXT", - "notNull": false - } - ], - "primaryKey": { - "columnNames": [ - "url", - "bookUrl" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_chapters_bookUrl", - "unique": false, - "columnNames": [ - "bookUrl" - ], - "orders": [], - "createSql": "CREATE INDEX IF NOT EXISTS `index_chapters_bookUrl` ON `${TABLE_NAME}` (`bookUrl`)" - }, - { - "name": "index_chapters_bookUrl_index", - "unique": true, - "columnNames": [ - "bookUrl", - "index" - ], - "orders": [], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_chapters_bookUrl_index` ON `${TABLE_NAME}` (`bookUrl`, `index`)" - } - ], - "foreignKeys": [ - { - "table": "books", - "onDelete": "CASCADE", - "onUpdate": "NO ACTION", - "columns": [ - "bookUrl" - ], - "referencedColumns": [ - "bookUrl" - ] - } - ] - }, - { - "tableName": "replace_rules", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, `name` TEXT NOT NULL DEFAULT '', `group` TEXT, `pattern` TEXT NOT NULL DEFAULT '', `replacement` TEXT NOT NULL DEFAULT '', `scope` TEXT, `scopeTitle` INTEGER NOT NULL DEFAULT 0, `scopeContent` INTEGER NOT NULL DEFAULT 1, `isEnabled` INTEGER NOT NULL DEFAULT 1, `isRegex` INTEGER NOT NULL DEFAULT 1, `timeoutMillisecond` INTEGER NOT NULL DEFAULT 3000, `sortOrder` INTEGER NOT NULL DEFAULT 0)", - "fields": [ - { - "fieldPath": "id", - "columnName": "id", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true, - "defaultValue": "''" - }, - { - "fieldPath": "group", - "columnName": "group", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "pattern", - "columnName": "pattern", - "affinity": "TEXT", - "notNull": true, - "defaultValue": "''" - }, - { - "fieldPath": "replacement", - "columnName": "replacement", - "affinity": "TEXT", - "notNull": true, - "defaultValue": "''" - }, - { - "fieldPath": "scope", - "columnName": "scope", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "scopeTitle", - "columnName": "scopeTitle", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "scopeContent", - "columnName": "scopeContent", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "1" - }, - { - "fieldPath": "isEnabled", - "columnName": "isEnabled", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "1" - }, - { - "fieldPath": "isRegex", - "columnName": "isRegex", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "1" - }, - { - "fieldPath": "timeoutMillisecond", - "columnName": "timeoutMillisecond", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "3000" - }, - { - "fieldPath": "order", - "columnName": "sortOrder", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - } - ], - "primaryKey": { - "columnNames": [ - "id" - ], - "autoGenerate": true - }, - "indices": [ - { - "name": "index_replace_rules_id", - "unique": false, - "columnNames": [ - "id" - ], - "orders": [], - "createSql": "CREATE INDEX IF NOT EXISTS `index_replace_rules_id` ON `${TABLE_NAME}` (`id`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "searchBooks", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`bookUrl` TEXT NOT NULL, `origin` TEXT NOT NULL, `originName` TEXT NOT NULL, `type` INTEGER NOT NULL, `name` TEXT NOT NULL, `author` TEXT NOT NULL, `kind` TEXT, `coverUrl` TEXT, `intro` TEXT, `wordCount` TEXT, `latestChapterTitle` TEXT, `tocUrl` TEXT NOT NULL, `time` INTEGER NOT NULL, `variable` TEXT, `originOrder` INTEGER NOT NULL, PRIMARY KEY(`bookUrl`), FOREIGN KEY(`origin`) REFERENCES `book_sources`(`bookSourceUrl`) ON UPDATE NO ACTION ON DELETE CASCADE )", - "fields": [ - { - "fieldPath": "bookUrl", - "columnName": "bookUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "origin", - "columnName": "origin", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "originName", - "columnName": "originName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "type", - "columnName": "type", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "author", - "columnName": "author", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "kind", - "columnName": "kind", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "coverUrl", - "columnName": "coverUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "intro", - "columnName": "intro", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "wordCount", - "columnName": "wordCount", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "latestChapterTitle", - "columnName": "latestChapterTitle", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "tocUrl", - "columnName": "tocUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "time", - "columnName": "time", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "variable", - "columnName": "variable", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "originOrder", - "columnName": "originOrder", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "bookUrl" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_searchBooks_bookUrl", - "unique": true, - "columnNames": [ - "bookUrl" - ], - "orders": [], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_searchBooks_bookUrl` ON `${TABLE_NAME}` (`bookUrl`)" - }, - { - "name": "index_searchBooks_origin", - "unique": false, - "columnNames": [ - "origin" - ], - "orders": [], - "createSql": "CREATE INDEX IF NOT EXISTS `index_searchBooks_origin` ON `${TABLE_NAME}` (`origin`)" - } - ], - "foreignKeys": [ - { - "table": "book_sources", - "onDelete": "CASCADE", - "onUpdate": "NO ACTION", - "columns": [ - "origin" - ], - "referencedColumns": [ - "bookSourceUrl" - ] - } - ] - }, - { - "tableName": "search_keywords", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`word` TEXT NOT NULL, `usage` INTEGER NOT NULL, `lastUseTime` INTEGER NOT NULL, PRIMARY KEY(`word`))", - "fields": [ - { - "fieldPath": "word", - "columnName": "word", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "usage", - "columnName": "usage", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "lastUseTime", - "columnName": "lastUseTime", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "word" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_search_keywords_word", - "unique": true, - "columnNames": [ - "word" - ], - "orders": [], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_search_keywords_word` ON `${TABLE_NAME}` (`word`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "cookies", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`url` TEXT NOT NULL, `cookie` TEXT NOT NULL, PRIMARY KEY(`url`))", - "fields": [ - { - "fieldPath": "url", - "columnName": "url", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "cookie", - "columnName": "cookie", - "affinity": "TEXT", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "url" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_cookies_url", - "unique": true, - "columnNames": [ - "url" - ], - "orders": [], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_cookies_url` ON `${TABLE_NAME}` (`url`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "rssSources", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`sourceUrl` TEXT NOT NULL, `sourceName` TEXT NOT NULL, `sourceIcon` TEXT NOT NULL, `sourceGroup` TEXT, `sourceComment` TEXT, `enabled` INTEGER NOT NULL, `variableComment` TEXT, `enabledCookieJar` INTEGER DEFAULT 0, `concurrentRate` TEXT, `header` TEXT, `loginUrl` TEXT, `loginUi` TEXT, `loginCheckJs` TEXT, `sortUrl` TEXT, `singleUrl` INTEGER NOT NULL, `articleStyle` INTEGER NOT NULL, `ruleArticles` TEXT, `ruleNextPage` TEXT, `ruleTitle` TEXT, `rulePubDate` TEXT, `ruleDescription` TEXT, `ruleImage` TEXT, `ruleLink` TEXT, `ruleContent` TEXT, `style` TEXT, `enableJs` INTEGER NOT NULL, `loadWithBaseUrl` INTEGER NOT NULL, `customOrder` INTEGER NOT NULL, PRIMARY KEY(`sourceUrl`))", - "fields": [ - { - "fieldPath": "sourceUrl", - "columnName": "sourceUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "sourceName", - "columnName": "sourceName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "sourceIcon", - "columnName": "sourceIcon", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "sourceGroup", - "columnName": "sourceGroup", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "sourceComment", - "columnName": "sourceComment", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "enabled", - "columnName": "enabled", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "variableComment", - "columnName": "variableComment", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "enabledCookieJar", - "columnName": "enabledCookieJar", - "affinity": "INTEGER", - "notNull": false, - "defaultValue": "0" - }, - { - "fieldPath": "concurrentRate", - "columnName": "concurrentRate", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "header", - "columnName": "header", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "loginUrl", - "columnName": "loginUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "loginUi", - "columnName": "loginUi", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "loginCheckJs", - "columnName": "loginCheckJs", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "sortUrl", - "columnName": "sortUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "singleUrl", - "columnName": "singleUrl", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "articleStyle", - "columnName": "articleStyle", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "ruleArticles", - "columnName": "ruleArticles", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleNextPage", - "columnName": "ruleNextPage", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleTitle", - "columnName": "ruleTitle", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "rulePubDate", - "columnName": "rulePubDate", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleDescription", - "columnName": "ruleDescription", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleImage", - "columnName": "ruleImage", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleLink", - "columnName": "ruleLink", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleContent", - "columnName": "ruleContent", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "style", - "columnName": "style", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "enableJs", - "columnName": "enableJs", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "loadWithBaseUrl", - "columnName": "loadWithBaseUrl", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "customOrder", - "columnName": "customOrder", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "sourceUrl" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_rssSources_sourceUrl", - "unique": false, - "columnNames": [ - "sourceUrl" - ], - "orders": [], - "createSql": "CREATE INDEX IF NOT EXISTS `index_rssSources_sourceUrl` ON `${TABLE_NAME}` (`sourceUrl`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "bookmarks", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`time` INTEGER NOT NULL, `bookName` TEXT NOT NULL, `bookAuthor` TEXT NOT NULL, `chapterIndex` INTEGER NOT NULL, `chapterPos` INTEGER NOT NULL, `chapterName` TEXT NOT NULL, `bookText` TEXT NOT NULL, `content` TEXT NOT NULL, PRIMARY KEY(`time`))", - "fields": [ - { - "fieldPath": "time", - "columnName": "time", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "bookName", - "columnName": "bookName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookAuthor", - "columnName": "bookAuthor", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "chapterIndex", - "columnName": "chapterIndex", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "chapterPos", - "columnName": "chapterPos", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "chapterName", - "columnName": "chapterName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookText", - "columnName": "bookText", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "content", - "columnName": "content", - "affinity": "TEXT", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "time" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_bookmarks_bookName_bookAuthor", - "unique": false, - "columnNames": [ - "bookName", - "bookAuthor" - ], - "orders": [], - "createSql": "CREATE INDEX IF NOT EXISTS `index_bookmarks_bookName_bookAuthor` ON `${TABLE_NAME}` (`bookName`, `bookAuthor`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "rssArticles", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`origin` TEXT NOT NULL, `sort` TEXT NOT NULL, `title` TEXT NOT NULL, `order` INTEGER NOT NULL, `link` TEXT NOT NULL, `pubDate` TEXT, `description` TEXT, `content` TEXT, `image` TEXT, `read` INTEGER NOT NULL, `variable` TEXT, PRIMARY KEY(`origin`, `link`))", - "fields": [ - { - "fieldPath": "origin", - "columnName": "origin", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "sort", - "columnName": "sort", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "title", - "columnName": "title", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "order", - "columnName": "order", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "link", - "columnName": "link", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "pubDate", - "columnName": "pubDate", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "description", - "columnName": "description", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "content", - "columnName": "content", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "image", - "columnName": "image", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "read", - "columnName": "read", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "variable", - "columnName": "variable", - "affinity": "TEXT", - "notNull": false - } - ], - "primaryKey": { - "columnNames": [ - "origin", - "link" - ], - "autoGenerate": false - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "rssReadRecords", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`record` TEXT NOT NULL, `read` INTEGER NOT NULL, PRIMARY KEY(`record`))", - "fields": [ - { - "fieldPath": "record", - "columnName": "record", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "read", - "columnName": "read", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "record" - ], - "autoGenerate": false - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "rssStars", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`origin` TEXT NOT NULL, `sort` TEXT NOT NULL, `title` TEXT NOT NULL, `starTime` INTEGER NOT NULL, `link` TEXT NOT NULL, `pubDate` TEXT, `description` TEXT, `content` TEXT, `image` TEXT, `variable` TEXT, PRIMARY KEY(`origin`, `link`))", - "fields": [ - { - "fieldPath": "origin", - "columnName": "origin", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "sort", - "columnName": "sort", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "title", - "columnName": "title", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "starTime", - "columnName": "starTime", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "link", - "columnName": "link", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "pubDate", - "columnName": "pubDate", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "description", - "columnName": "description", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "content", - "columnName": "content", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "image", - "columnName": "image", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "variable", - "columnName": "variable", - "affinity": "TEXT", - "notNull": false - } - ], - "primaryKey": { - "columnNames": [ - "origin", - "link" - ], - "autoGenerate": false - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "txtTocRules", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER NOT NULL, `name` TEXT NOT NULL, `rule` TEXT NOT NULL, `serialNumber` INTEGER NOT NULL, `enable` INTEGER NOT NULL, PRIMARY KEY(`id`))", - "fields": [ - { - "fieldPath": "id", - "columnName": "id", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "rule", - "columnName": "rule", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "serialNumber", - "columnName": "serialNumber", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "enable", - "columnName": "enable", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "id" - ], - "autoGenerate": false - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "readRecord", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`deviceId` TEXT NOT NULL, `bookName` TEXT NOT NULL, `readTime` INTEGER NOT NULL, PRIMARY KEY(`deviceId`, `bookName`))", - "fields": [ - { - "fieldPath": "deviceId", - "columnName": "deviceId", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookName", - "columnName": "bookName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "readTime", - "columnName": "readTime", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "deviceId", - "bookName" - ], - "autoGenerate": false - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "httpTTS", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER NOT NULL, `name` TEXT NOT NULL, `url` TEXT NOT NULL, `contentType` TEXT, `concurrentRate` TEXT DEFAULT '0', `loginUrl` TEXT, `loginUi` TEXT, `header` TEXT, `enabledCookieJar` INTEGER DEFAULT 0, `loginCheckJs` TEXT, `lastUpdateTime` INTEGER NOT NULL DEFAULT 0, PRIMARY KEY(`id`))", - "fields": [ - { - "fieldPath": "id", - "columnName": "id", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "url", - "columnName": "url", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "contentType", - "columnName": "contentType", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "concurrentRate", - "columnName": "concurrentRate", - "affinity": "TEXT", - "notNull": false, - "defaultValue": "'0'" - }, - { - "fieldPath": "loginUrl", - "columnName": "loginUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "loginUi", - "columnName": "loginUi", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "header", - "columnName": "header", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "enabledCookieJar", - "columnName": "enabledCookieJar", - "affinity": "INTEGER", - "notNull": false, - "defaultValue": "0" - }, - { - "fieldPath": "loginCheckJs", - "columnName": "loginCheckJs", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "lastUpdateTime", - "columnName": "lastUpdateTime", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - } - ], - "primaryKey": { - "columnNames": [ - "id" - ], - "autoGenerate": false - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "caches", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`key` TEXT NOT NULL, `value` TEXT, `deadline` INTEGER NOT NULL, PRIMARY KEY(`key`))", - "fields": [ - { - "fieldPath": "key", - "columnName": "key", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "value", - "columnName": "value", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "deadline", - "columnName": "deadline", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "key" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_caches_key", - "unique": true, - "columnNames": [ - "key" - ], - "orders": [], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_caches_key` ON `${TABLE_NAME}` (`key`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "ruleSubs", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER NOT NULL, `name` TEXT NOT NULL, `url` TEXT NOT NULL, `type` INTEGER NOT NULL, `customOrder` INTEGER NOT NULL, `autoUpdate` INTEGER NOT NULL, `update` INTEGER NOT NULL, PRIMARY KEY(`id`))", - "fields": [ - { - "fieldPath": "id", - "columnName": "id", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "url", - "columnName": "url", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "type", - "columnName": "type", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "customOrder", - "columnName": "customOrder", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "autoUpdate", - "columnName": "autoUpdate", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "update", - "columnName": "update", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "id" - ], - "autoGenerate": false - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "keyboardAssists", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`type` INTEGER NOT NULL DEFAULT 0, `key` TEXT NOT NULL DEFAULT '', `value` TEXT NOT NULL DEFAULT '', `serialNo` INTEGER NOT NULL DEFAULT 0, PRIMARY KEY(`type`, `key`))", - "fields": [ - { - "fieldPath": "type", - "columnName": "type", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "key", - "columnName": "key", - "affinity": "TEXT", - "notNull": true, - "defaultValue": "''" - }, - { - "fieldPath": "value", - "columnName": "value", - "affinity": "TEXT", - "notNull": true, - "defaultValue": "''" - }, - { - "fieldPath": "serialNo", - "columnName": "serialNo", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - } - ], - "primaryKey": { - "columnNames": [ - "type", - "key" - ], - "autoGenerate": false - }, - "indices": [], - "foreignKeys": [] - } - ], - "views": [], - "setupQueries": [ - "CREATE TABLE IF NOT EXISTS room_master_table (id INTEGER PRIMARY KEY,identity_hash TEXT)", - "INSERT OR REPLACE INTO room_master_table (id,identity_hash) VALUES(42, '524cf3564400bd897a49355afd984ac1')" - ] - } -} \ No newline at end of file diff --git a/app/schemas/io.legado.app.data.AppDatabase/51.json b/app/schemas/io.legado.app.data.AppDatabase/51.json deleted file mode 100644 index e11ecf0e3..000000000 --- a/app/schemas/io.legado.app.data.AppDatabase/51.json +++ /dev/null @@ -1,1674 +0,0 @@ -{ - "formatVersion": 1, - "database": { - "version": 51, - "identityHash": "028c189be828501449b61b32ab47a36f", - "entities": [ - { - "tableName": "books", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`bookUrl` TEXT NOT NULL DEFAULT '', `tocUrl` TEXT NOT NULL DEFAULT '', `origin` TEXT NOT NULL DEFAULT '', `originName` TEXT NOT NULL DEFAULT '', `name` TEXT NOT NULL DEFAULT '', `author` TEXT NOT NULL DEFAULT '', `kind` TEXT, `customTag` TEXT, `coverUrl` TEXT, `customCoverUrl` TEXT, `intro` TEXT, `customIntro` TEXT, `charset` TEXT, `type` INTEGER NOT NULL DEFAULT 0, `group` INTEGER NOT NULL DEFAULT 0, `latestChapterTitle` TEXT, `latestChapterTime` INTEGER NOT NULL DEFAULT 0, `lastCheckTime` INTEGER NOT NULL DEFAULT 0, `lastCheckCount` INTEGER NOT NULL DEFAULT 0, `totalChapterNum` INTEGER NOT NULL DEFAULT 0, `durChapterTitle` TEXT, `durChapterIndex` INTEGER NOT NULL DEFAULT 0, `durChapterPos` INTEGER NOT NULL DEFAULT 0, `durChapterTime` INTEGER NOT NULL DEFAULT 0, `wordCount` TEXT, `canUpdate` INTEGER NOT NULL DEFAULT 1, `order` INTEGER NOT NULL DEFAULT 0, `originOrder` INTEGER NOT NULL DEFAULT 0, `variable` TEXT, `readConfig` TEXT, PRIMARY KEY(`bookUrl`))", - "fields": [ - { - "fieldPath": "bookUrl", - "columnName": "bookUrl", - "affinity": "TEXT", - "notNull": true, - "defaultValue": "''" - }, - { - "fieldPath": "tocUrl", - "columnName": "tocUrl", - "affinity": "TEXT", - "notNull": true, - "defaultValue": "''" - }, - { - "fieldPath": "origin", - "columnName": "origin", - "affinity": "TEXT", - "notNull": true, - "defaultValue": "''" - }, - { - "fieldPath": "originName", - "columnName": "originName", - "affinity": "TEXT", - "notNull": true, - "defaultValue": "''" - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true, - "defaultValue": "''" - }, - { - "fieldPath": "author", - "columnName": "author", - "affinity": "TEXT", - "notNull": true, - "defaultValue": "''" - }, - { - "fieldPath": "kind", - "columnName": "kind", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "customTag", - "columnName": "customTag", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "coverUrl", - "columnName": "coverUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "customCoverUrl", - "columnName": "customCoverUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "intro", - "columnName": "intro", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "customIntro", - "columnName": "customIntro", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "charset", - "columnName": "charset", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "type", - "columnName": "type", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "group", - "columnName": "group", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "latestChapterTitle", - "columnName": "latestChapterTitle", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "latestChapterTime", - "columnName": "latestChapterTime", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "lastCheckTime", - "columnName": "lastCheckTime", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "lastCheckCount", - "columnName": "lastCheckCount", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "totalChapterNum", - "columnName": "totalChapterNum", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "durChapterTitle", - "columnName": "durChapterTitle", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "durChapterIndex", - "columnName": "durChapterIndex", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "durChapterPos", - "columnName": "durChapterPos", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "durChapterTime", - "columnName": "durChapterTime", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "wordCount", - "columnName": "wordCount", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "canUpdate", - "columnName": "canUpdate", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "1" - }, - { - "fieldPath": "order", - "columnName": "order", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "originOrder", - "columnName": "originOrder", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "variable", - "columnName": "variable", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "readConfig", - "columnName": "readConfig", - "affinity": "TEXT", - "notNull": false - } - ], - "primaryKey": { - "autoGenerate": false, - "columnNames": [ - "bookUrl" - ] - }, - "indices": [ - { - "name": "index_books_name_author", - "unique": true, - "columnNames": [ - "name", - "author" - ], - "orders": [], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_books_name_author` ON `${TABLE_NAME}` (`name`, `author`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "book_groups", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`groupId` INTEGER NOT NULL, `groupName` TEXT NOT NULL, `cover` TEXT, `order` INTEGER NOT NULL, `show` INTEGER NOT NULL, PRIMARY KEY(`groupId`))", - "fields": [ - { - "fieldPath": "groupId", - "columnName": "groupId", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "groupName", - "columnName": "groupName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "cover", - "columnName": "cover", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "order", - "columnName": "order", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "show", - "columnName": "show", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "autoGenerate": false, - "columnNames": [ - "groupId" - ] - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "book_sources", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`bookSourceUrl` TEXT NOT NULL, `bookSourceName` TEXT NOT NULL, `bookSourceGroup` TEXT, `bookSourceType` INTEGER NOT NULL, `bookUrlPattern` TEXT, `customOrder` INTEGER NOT NULL, `enabled` INTEGER NOT NULL, `enabledExplore` INTEGER NOT NULL, `enabledCookieJar` INTEGER DEFAULT 0, `concurrentRate` TEXT, `header` TEXT, `loginUrl` TEXT, `loginUi` TEXT, `loginCheckJs` TEXT, `bookSourceComment` TEXT, `variableComment` TEXT, `lastUpdateTime` INTEGER NOT NULL, `respondTime` INTEGER NOT NULL, `weight` INTEGER NOT NULL, `exploreUrl` TEXT, `ruleExplore` TEXT, `searchUrl` TEXT, `ruleSearch` TEXT, `ruleBookInfo` TEXT, `ruleToc` TEXT, `ruleContent` TEXT, PRIMARY KEY(`bookSourceUrl`))", - "fields": [ - { - "fieldPath": "bookSourceUrl", - "columnName": "bookSourceUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookSourceName", - "columnName": "bookSourceName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookSourceGroup", - "columnName": "bookSourceGroup", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "bookSourceType", - "columnName": "bookSourceType", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "bookUrlPattern", - "columnName": "bookUrlPattern", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "customOrder", - "columnName": "customOrder", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "enabled", - "columnName": "enabled", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "enabledExplore", - "columnName": "enabledExplore", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "enabledCookieJar", - "columnName": "enabledCookieJar", - "affinity": "INTEGER", - "notNull": false, - "defaultValue": "0" - }, - { - "fieldPath": "concurrentRate", - "columnName": "concurrentRate", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "header", - "columnName": "header", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "loginUrl", - "columnName": "loginUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "loginUi", - "columnName": "loginUi", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "loginCheckJs", - "columnName": "loginCheckJs", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "bookSourceComment", - "columnName": "bookSourceComment", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "variableComment", - "columnName": "variableComment", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "lastUpdateTime", - "columnName": "lastUpdateTime", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "respondTime", - "columnName": "respondTime", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "weight", - "columnName": "weight", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "exploreUrl", - "columnName": "exploreUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleExplore", - "columnName": "ruleExplore", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "searchUrl", - "columnName": "searchUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleSearch", - "columnName": "ruleSearch", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleBookInfo", - "columnName": "ruleBookInfo", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleToc", - "columnName": "ruleToc", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleContent", - "columnName": "ruleContent", - "affinity": "TEXT", - "notNull": false - } - ], - "primaryKey": { - "autoGenerate": false, - "columnNames": [ - "bookSourceUrl" - ] - }, - "indices": [ - { - "name": "index_book_sources_bookSourceUrl", - "unique": false, - "columnNames": [ - "bookSourceUrl" - ], - "orders": [], - "createSql": "CREATE INDEX IF NOT EXISTS `index_book_sources_bookSourceUrl` ON `${TABLE_NAME}` (`bookSourceUrl`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "chapters", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`url` TEXT NOT NULL, `title` TEXT NOT NULL, `isVolume` INTEGER NOT NULL, `baseUrl` TEXT NOT NULL, `bookUrl` TEXT NOT NULL, `index` INTEGER NOT NULL, `isVip` INTEGER NOT NULL, `isPay` INTEGER NOT NULL, `resourceUrl` TEXT, `tag` TEXT, `start` INTEGER, `end` INTEGER, `startFragmentId` TEXT, `endFragmentId` TEXT, `variable` TEXT, PRIMARY KEY(`url`, `bookUrl`), FOREIGN KEY(`bookUrl`) REFERENCES `books`(`bookUrl`) ON UPDATE NO ACTION ON DELETE CASCADE )", - "fields": [ - { - "fieldPath": "url", - "columnName": "url", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "title", - "columnName": "title", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "isVolume", - "columnName": "isVolume", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "baseUrl", - "columnName": "baseUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookUrl", - "columnName": "bookUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "index", - "columnName": "index", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "isVip", - "columnName": "isVip", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "isPay", - "columnName": "isPay", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "resourceUrl", - "columnName": "resourceUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "tag", - "columnName": "tag", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "start", - "columnName": "start", - "affinity": "INTEGER", - "notNull": false - }, - { - "fieldPath": "end", - "columnName": "end", - "affinity": "INTEGER", - "notNull": false - }, - { - "fieldPath": "startFragmentId", - "columnName": "startFragmentId", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "endFragmentId", - "columnName": "endFragmentId", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "variable", - "columnName": "variable", - "affinity": "TEXT", - "notNull": false - } - ], - "primaryKey": { - "autoGenerate": false, - "columnNames": [ - "url", - "bookUrl" - ] - }, - "indices": [ - { - "name": "index_chapters_bookUrl", - "unique": false, - "columnNames": [ - "bookUrl" - ], - "orders": [], - "createSql": "CREATE INDEX IF NOT EXISTS `index_chapters_bookUrl` ON `${TABLE_NAME}` (`bookUrl`)" - }, - { - "name": "index_chapters_bookUrl_index", - "unique": true, - "columnNames": [ - "bookUrl", - "index" - ], - "orders": [], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_chapters_bookUrl_index` ON `${TABLE_NAME}` (`bookUrl`, `index`)" - } - ], - "foreignKeys": [ - { - "table": "books", - "onDelete": "CASCADE", - "onUpdate": "NO ACTION", - "columns": [ - "bookUrl" - ], - "referencedColumns": [ - "bookUrl" - ] - } - ] - }, - { - "tableName": "replace_rules", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, `name` TEXT NOT NULL DEFAULT '', `group` TEXT, `pattern` TEXT NOT NULL DEFAULT '', `replacement` TEXT NOT NULL DEFAULT '', `scope` TEXT, `scopeTitle` INTEGER NOT NULL DEFAULT 0, `scopeContent` INTEGER NOT NULL DEFAULT 1, `isEnabled` INTEGER NOT NULL DEFAULT 1, `isRegex` INTEGER NOT NULL DEFAULT 1, `timeoutMillisecond` INTEGER NOT NULL DEFAULT 3000, `sortOrder` INTEGER NOT NULL DEFAULT 0)", - "fields": [ - { - "fieldPath": "id", - "columnName": "id", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true, - "defaultValue": "''" - }, - { - "fieldPath": "group", - "columnName": "group", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "pattern", - "columnName": "pattern", - "affinity": "TEXT", - "notNull": true, - "defaultValue": "''" - }, - { - "fieldPath": "replacement", - "columnName": "replacement", - "affinity": "TEXT", - "notNull": true, - "defaultValue": "''" - }, - { - "fieldPath": "scope", - "columnName": "scope", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "scopeTitle", - "columnName": "scopeTitle", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "scopeContent", - "columnName": "scopeContent", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "1" - }, - { - "fieldPath": "isEnabled", - "columnName": "isEnabled", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "1" - }, - { - "fieldPath": "isRegex", - "columnName": "isRegex", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "1" - }, - { - "fieldPath": "timeoutMillisecond", - "columnName": "timeoutMillisecond", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "3000" - }, - { - "fieldPath": "order", - "columnName": "sortOrder", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - } - ], - "primaryKey": { - "autoGenerate": true, - "columnNames": [ - "id" - ] - }, - "indices": [ - { - "name": "index_replace_rules_id", - "unique": false, - "columnNames": [ - "id" - ], - "orders": [], - "createSql": "CREATE INDEX IF NOT EXISTS `index_replace_rules_id` ON `${TABLE_NAME}` (`id`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "searchBooks", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`bookUrl` TEXT NOT NULL, `origin` TEXT NOT NULL, `originName` TEXT NOT NULL, `type` INTEGER NOT NULL, `name` TEXT NOT NULL, `author` TEXT NOT NULL, `kind` TEXT, `coverUrl` TEXT, `intro` TEXT, `wordCount` TEXT, `latestChapterTitle` TEXT, `tocUrl` TEXT NOT NULL, `time` INTEGER NOT NULL, `variable` TEXT, `originOrder` INTEGER NOT NULL, PRIMARY KEY(`bookUrl`), FOREIGN KEY(`origin`) REFERENCES `book_sources`(`bookSourceUrl`) ON UPDATE NO ACTION ON DELETE CASCADE )", - "fields": [ - { - "fieldPath": "bookUrl", - "columnName": "bookUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "origin", - "columnName": "origin", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "originName", - "columnName": "originName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "type", - "columnName": "type", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "author", - "columnName": "author", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "kind", - "columnName": "kind", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "coverUrl", - "columnName": "coverUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "intro", - "columnName": "intro", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "wordCount", - "columnName": "wordCount", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "latestChapterTitle", - "columnName": "latestChapterTitle", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "tocUrl", - "columnName": "tocUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "time", - "columnName": "time", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "variable", - "columnName": "variable", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "originOrder", - "columnName": "originOrder", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "autoGenerate": false, - "columnNames": [ - "bookUrl" - ] - }, - "indices": [ - { - "name": "index_searchBooks_bookUrl", - "unique": true, - "columnNames": [ - "bookUrl" - ], - "orders": [], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_searchBooks_bookUrl` ON `${TABLE_NAME}` (`bookUrl`)" - }, - { - "name": "index_searchBooks_origin", - "unique": false, - "columnNames": [ - "origin" - ], - "orders": [], - "createSql": "CREATE INDEX IF NOT EXISTS `index_searchBooks_origin` ON `${TABLE_NAME}` (`origin`)" - } - ], - "foreignKeys": [ - { - "table": "book_sources", - "onDelete": "CASCADE", - "onUpdate": "NO ACTION", - "columns": [ - "origin" - ], - "referencedColumns": [ - "bookSourceUrl" - ] - } - ] - }, - { - "tableName": "search_keywords", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`word` TEXT NOT NULL, `usage` INTEGER NOT NULL, `lastUseTime` INTEGER NOT NULL, PRIMARY KEY(`word`))", - "fields": [ - { - "fieldPath": "word", - "columnName": "word", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "usage", - "columnName": "usage", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "lastUseTime", - "columnName": "lastUseTime", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "autoGenerate": false, - "columnNames": [ - "word" - ] - }, - "indices": [ - { - "name": "index_search_keywords_word", - "unique": true, - "columnNames": [ - "word" - ], - "orders": [], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_search_keywords_word` ON `${TABLE_NAME}` (`word`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "cookies", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`url` TEXT NOT NULL, `cookie` TEXT NOT NULL, PRIMARY KEY(`url`))", - "fields": [ - { - "fieldPath": "url", - "columnName": "url", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "cookie", - "columnName": "cookie", - "affinity": "TEXT", - "notNull": true - } - ], - "primaryKey": { - "autoGenerate": false, - "columnNames": [ - "url" - ] - }, - "indices": [ - { - "name": "index_cookies_url", - "unique": true, - "columnNames": [ - "url" - ], - "orders": [], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_cookies_url` ON `${TABLE_NAME}` (`url`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "rssSources", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`sourceUrl` TEXT NOT NULL, `sourceName` TEXT NOT NULL, `sourceIcon` TEXT NOT NULL, `sourceGroup` TEXT, `sourceComment` TEXT, `enabled` INTEGER NOT NULL, `variableComment` TEXT, `enabledCookieJar` INTEGER DEFAULT 0, `concurrentRate` TEXT, `header` TEXT, `loginUrl` TEXT, `loginUi` TEXT, `loginCheckJs` TEXT, `sortUrl` TEXT, `singleUrl` INTEGER NOT NULL, `articleStyle` INTEGER NOT NULL, `ruleArticles` TEXT, `ruleNextPage` TEXT, `ruleTitle` TEXT, `rulePubDate` TEXT, `ruleDescription` TEXT, `ruleImage` TEXT, `ruleLink` TEXT, `ruleContent` TEXT, `style` TEXT, `enableJs` INTEGER NOT NULL, `loadWithBaseUrl` INTEGER NOT NULL, `customOrder` INTEGER NOT NULL, PRIMARY KEY(`sourceUrl`))", - "fields": [ - { - "fieldPath": "sourceUrl", - "columnName": "sourceUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "sourceName", - "columnName": "sourceName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "sourceIcon", - "columnName": "sourceIcon", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "sourceGroup", - "columnName": "sourceGroup", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "sourceComment", - "columnName": "sourceComment", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "enabled", - "columnName": "enabled", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "variableComment", - "columnName": "variableComment", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "enabledCookieJar", - "columnName": "enabledCookieJar", - "affinity": "INTEGER", - "notNull": false, - "defaultValue": "0" - }, - { - "fieldPath": "concurrentRate", - "columnName": "concurrentRate", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "header", - "columnName": "header", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "loginUrl", - "columnName": "loginUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "loginUi", - "columnName": "loginUi", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "loginCheckJs", - "columnName": "loginCheckJs", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "sortUrl", - "columnName": "sortUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "singleUrl", - "columnName": "singleUrl", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "articleStyle", - "columnName": "articleStyle", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "ruleArticles", - "columnName": "ruleArticles", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleNextPage", - "columnName": "ruleNextPage", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleTitle", - "columnName": "ruleTitle", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "rulePubDate", - "columnName": "rulePubDate", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleDescription", - "columnName": "ruleDescription", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleImage", - "columnName": "ruleImage", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleLink", - "columnName": "ruleLink", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleContent", - "columnName": "ruleContent", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "style", - "columnName": "style", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "enableJs", - "columnName": "enableJs", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "loadWithBaseUrl", - "columnName": "loadWithBaseUrl", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "customOrder", - "columnName": "customOrder", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "autoGenerate": false, - "columnNames": [ - "sourceUrl" - ] - }, - "indices": [ - { - "name": "index_rssSources_sourceUrl", - "unique": false, - "columnNames": [ - "sourceUrl" - ], - "orders": [], - "createSql": "CREATE INDEX IF NOT EXISTS `index_rssSources_sourceUrl` ON `${TABLE_NAME}` (`sourceUrl`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "bookmarks", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`time` INTEGER NOT NULL, `bookName` TEXT NOT NULL, `bookAuthor` TEXT NOT NULL, `chapterIndex` INTEGER NOT NULL, `chapterPos` INTEGER NOT NULL, `chapterName` TEXT NOT NULL, `bookText` TEXT NOT NULL, `content` TEXT NOT NULL, PRIMARY KEY(`time`))", - "fields": [ - { - "fieldPath": "time", - "columnName": "time", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "bookName", - "columnName": "bookName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookAuthor", - "columnName": "bookAuthor", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "chapterIndex", - "columnName": "chapterIndex", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "chapterPos", - "columnName": "chapterPos", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "chapterName", - "columnName": "chapterName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookText", - "columnName": "bookText", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "content", - "columnName": "content", - "affinity": "TEXT", - "notNull": true - } - ], - "primaryKey": { - "autoGenerate": false, - "columnNames": [ - "time" - ] - }, - "indices": [ - { - "name": "index_bookmarks_bookName_bookAuthor", - "unique": false, - "columnNames": [ - "bookName", - "bookAuthor" - ], - "orders": [], - "createSql": "CREATE INDEX IF NOT EXISTS `index_bookmarks_bookName_bookAuthor` ON `${TABLE_NAME}` (`bookName`, `bookAuthor`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "rssArticles", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`origin` TEXT NOT NULL, `sort` TEXT NOT NULL, `title` TEXT NOT NULL, `order` INTEGER NOT NULL, `link` TEXT NOT NULL, `pubDate` TEXT, `description` TEXT, `content` TEXT, `image` TEXT, `read` INTEGER NOT NULL, `variable` TEXT, PRIMARY KEY(`origin`, `link`))", - "fields": [ - { - "fieldPath": "origin", - "columnName": "origin", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "sort", - "columnName": "sort", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "title", - "columnName": "title", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "order", - "columnName": "order", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "link", - "columnName": "link", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "pubDate", - "columnName": "pubDate", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "description", - "columnName": "description", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "content", - "columnName": "content", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "image", - "columnName": "image", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "read", - "columnName": "read", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "variable", - "columnName": "variable", - "affinity": "TEXT", - "notNull": false - } - ], - "primaryKey": { - "autoGenerate": false, - "columnNames": [ - "origin", - "link" - ] - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "rssReadRecords", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`record` TEXT NOT NULL, `read` INTEGER NOT NULL, PRIMARY KEY(`record`))", - "fields": [ - { - "fieldPath": "record", - "columnName": "record", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "read", - "columnName": "read", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "autoGenerate": false, - "columnNames": [ - "record" - ] - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "rssStars", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`origin` TEXT NOT NULL, `sort` TEXT NOT NULL, `title` TEXT NOT NULL, `starTime` INTEGER NOT NULL, `link` TEXT NOT NULL, `pubDate` TEXT, `description` TEXT, `content` TEXT, `image` TEXT, `variable` TEXT, PRIMARY KEY(`origin`, `link`))", - "fields": [ - { - "fieldPath": "origin", - "columnName": "origin", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "sort", - "columnName": "sort", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "title", - "columnName": "title", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "starTime", - "columnName": "starTime", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "link", - "columnName": "link", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "pubDate", - "columnName": "pubDate", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "description", - "columnName": "description", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "content", - "columnName": "content", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "image", - "columnName": "image", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "variable", - "columnName": "variable", - "affinity": "TEXT", - "notNull": false - } - ], - "primaryKey": { - "autoGenerate": false, - "columnNames": [ - "origin", - "link" - ] - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "txtTocRules", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER NOT NULL, `name` TEXT NOT NULL, `rule` TEXT NOT NULL, `serialNumber` INTEGER NOT NULL, `enable` INTEGER NOT NULL, PRIMARY KEY(`id`))", - "fields": [ - { - "fieldPath": "id", - "columnName": "id", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "rule", - "columnName": "rule", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "serialNumber", - "columnName": "serialNumber", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "enable", - "columnName": "enable", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "autoGenerate": false, - "columnNames": [ - "id" - ] - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "readRecord", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`deviceId` TEXT NOT NULL, `bookName` TEXT NOT NULL, `readTime` INTEGER NOT NULL DEFAULT 0, `lastRead` INTEGER NOT NULL DEFAULT 0, PRIMARY KEY(`deviceId`, `bookName`))", - "fields": [ - { - "fieldPath": "deviceId", - "columnName": "deviceId", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookName", - "columnName": "bookName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "readTime", - "columnName": "readTime", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "lastRead", - "columnName": "lastRead", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - } - ], - "primaryKey": { - "autoGenerate": false, - "columnNames": [ - "deviceId", - "bookName" - ] - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "httpTTS", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER NOT NULL, `name` TEXT NOT NULL, `url` TEXT NOT NULL, `contentType` TEXT, `concurrentRate` TEXT DEFAULT '0', `loginUrl` TEXT, `loginUi` TEXT, `header` TEXT, `enabledCookieJar` INTEGER DEFAULT 0, `loginCheckJs` TEXT, `lastUpdateTime` INTEGER NOT NULL DEFAULT 0, PRIMARY KEY(`id`))", - "fields": [ - { - "fieldPath": "id", - "columnName": "id", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "url", - "columnName": "url", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "contentType", - "columnName": "contentType", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "concurrentRate", - "columnName": "concurrentRate", - "affinity": "TEXT", - "notNull": false, - "defaultValue": "'0'" - }, - { - "fieldPath": "loginUrl", - "columnName": "loginUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "loginUi", - "columnName": "loginUi", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "header", - "columnName": "header", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "enabledCookieJar", - "columnName": "enabledCookieJar", - "affinity": "INTEGER", - "notNull": false, - "defaultValue": "0" - }, - { - "fieldPath": "loginCheckJs", - "columnName": "loginCheckJs", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "lastUpdateTime", - "columnName": "lastUpdateTime", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - } - ], - "primaryKey": { - "autoGenerate": false, - "columnNames": [ - "id" - ] - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "caches", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`key` TEXT NOT NULL, `value` TEXT, `deadline` INTEGER NOT NULL, PRIMARY KEY(`key`))", - "fields": [ - { - "fieldPath": "key", - "columnName": "key", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "value", - "columnName": "value", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "deadline", - "columnName": "deadline", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "autoGenerate": false, - "columnNames": [ - "key" - ] - }, - "indices": [ - { - "name": "index_caches_key", - "unique": true, - "columnNames": [ - "key" - ], - "orders": [], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_caches_key` ON `${TABLE_NAME}` (`key`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "ruleSubs", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER NOT NULL, `name` TEXT NOT NULL, `url` TEXT NOT NULL, `type` INTEGER NOT NULL, `customOrder` INTEGER NOT NULL, `autoUpdate` INTEGER NOT NULL, `update` INTEGER NOT NULL, PRIMARY KEY(`id`))", - "fields": [ - { - "fieldPath": "id", - "columnName": "id", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "url", - "columnName": "url", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "type", - "columnName": "type", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "customOrder", - "columnName": "customOrder", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "autoUpdate", - "columnName": "autoUpdate", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "update", - "columnName": "update", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "autoGenerate": false, - "columnNames": [ - "id" - ] - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "keyboardAssists", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`type` INTEGER NOT NULL DEFAULT 0, `key` TEXT NOT NULL DEFAULT '', `value` TEXT NOT NULL DEFAULT '', `serialNo` INTEGER NOT NULL DEFAULT 0, PRIMARY KEY(`type`, `key`))", - "fields": [ - { - "fieldPath": "type", - "columnName": "type", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "key", - "columnName": "key", - "affinity": "TEXT", - "notNull": true, - "defaultValue": "''" - }, - { - "fieldPath": "value", - "columnName": "value", - "affinity": "TEXT", - "notNull": true, - "defaultValue": "''" - }, - { - "fieldPath": "serialNo", - "columnName": "serialNo", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - } - ], - "primaryKey": { - "autoGenerate": false, - "columnNames": [ - "type", - "key" - ] - }, - "indices": [], - "foreignKeys": [] - } - ], - "views": [], - "setupQueries": [ - "CREATE TABLE IF NOT EXISTS room_master_table (id INTEGER PRIMARY KEY,identity_hash TEXT)", - "INSERT OR REPLACE INTO room_master_table (id,identity_hash) VALUES(42, '028c189be828501449b61b32ab47a36f')" - ] - } -} \ No newline at end of file diff --git a/app/schemas/io.legado.app.data.AppDatabase/52.json b/app/schemas/io.legado.app.data.AppDatabase/52.json deleted file mode 100644 index 4f3ee4e9a..000000000 --- a/app/schemas/io.legado.app.data.AppDatabase/52.json +++ /dev/null @@ -1,1680 +0,0 @@ -{ - "formatVersion": 1, - "database": { - "version": 52, - "identityHash": "0221c385ed7393f47afe9579d3106541", - "entities": [ - { - "tableName": "books", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`bookUrl` TEXT NOT NULL DEFAULT '', `tocUrl` TEXT NOT NULL DEFAULT '', `origin` TEXT NOT NULL DEFAULT '', `originName` TEXT NOT NULL DEFAULT '', `name` TEXT NOT NULL DEFAULT '', `author` TEXT NOT NULL DEFAULT '', `kind` TEXT, `customTag` TEXT, `coverUrl` TEXT, `customCoverUrl` TEXT, `intro` TEXT, `customIntro` TEXT, `charset` TEXT, `type` INTEGER NOT NULL DEFAULT 0, `group` INTEGER NOT NULL DEFAULT 0, `latestChapterTitle` TEXT, `latestChapterTime` INTEGER NOT NULL DEFAULT 0, `lastCheckTime` INTEGER NOT NULL DEFAULT 0, `lastCheckCount` INTEGER NOT NULL DEFAULT 0, `totalChapterNum` INTEGER NOT NULL DEFAULT 0, `durChapterTitle` TEXT, `durChapterIndex` INTEGER NOT NULL DEFAULT 0, `durChapterPos` INTEGER NOT NULL DEFAULT 0, `durChapterTime` INTEGER NOT NULL DEFAULT 0, `wordCount` TEXT, `canUpdate` INTEGER NOT NULL DEFAULT 1, `order` INTEGER NOT NULL DEFAULT 0, `originOrder` INTEGER NOT NULL DEFAULT 0, `variable` TEXT, `readConfig` TEXT, PRIMARY KEY(`bookUrl`))", - "fields": [ - { - "fieldPath": "bookUrl", - "columnName": "bookUrl", - "affinity": "TEXT", - "notNull": true, - "defaultValue": "''" - }, - { - "fieldPath": "tocUrl", - "columnName": "tocUrl", - "affinity": "TEXT", - "notNull": true, - "defaultValue": "''" - }, - { - "fieldPath": "origin", - "columnName": "origin", - "affinity": "TEXT", - "notNull": true, - "defaultValue": "''" - }, - { - "fieldPath": "originName", - "columnName": "originName", - "affinity": "TEXT", - "notNull": true, - "defaultValue": "''" - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true, - "defaultValue": "''" - }, - { - "fieldPath": "author", - "columnName": "author", - "affinity": "TEXT", - "notNull": true, - "defaultValue": "''" - }, - { - "fieldPath": "kind", - "columnName": "kind", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "customTag", - "columnName": "customTag", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "coverUrl", - "columnName": "coverUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "customCoverUrl", - "columnName": "customCoverUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "intro", - "columnName": "intro", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "customIntro", - "columnName": "customIntro", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "charset", - "columnName": "charset", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "type", - "columnName": "type", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "group", - "columnName": "group", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "latestChapterTitle", - "columnName": "latestChapterTitle", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "latestChapterTime", - "columnName": "latestChapterTime", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "lastCheckTime", - "columnName": "lastCheckTime", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "lastCheckCount", - "columnName": "lastCheckCount", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "totalChapterNum", - "columnName": "totalChapterNum", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "durChapterTitle", - "columnName": "durChapterTitle", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "durChapterIndex", - "columnName": "durChapterIndex", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "durChapterPos", - "columnName": "durChapterPos", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "durChapterTime", - "columnName": "durChapterTime", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "wordCount", - "columnName": "wordCount", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "canUpdate", - "columnName": "canUpdate", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "1" - }, - { - "fieldPath": "order", - "columnName": "order", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "originOrder", - "columnName": "originOrder", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "variable", - "columnName": "variable", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "readConfig", - "columnName": "readConfig", - "affinity": "TEXT", - "notNull": false - } - ], - "primaryKey": { - "autoGenerate": false, - "columnNames": [ - "bookUrl" - ] - }, - "indices": [ - { - "name": "index_books_name_author", - "unique": true, - "columnNames": [ - "name", - "author" - ], - "orders": [], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_books_name_author` ON `${TABLE_NAME}` (`name`, `author`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "book_groups", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`groupId` INTEGER NOT NULL, `groupName` TEXT NOT NULL, `cover` TEXT, `order` INTEGER NOT NULL, `show` INTEGER NOT NULL, PRIMARY KEY(`groupId`))", - "fields": [ - { - "fieldPath": "groupId", - "columnName": "groupId", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "groupName", - "columnName": "groupName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "cover", - "columnName": "cover", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "order", - "columnName": "order", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "show", - "columnName": "show", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "autoGenerate": false, - "columnNames": [ - "groupId" - ] - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "book_sources", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`bookSourceUrl` TEXT NOT NULL, `bookSourceName` TEXT NOT NULL, `bookSourceGroup` TEXT, `bookSourceType` INTEGER NOT NULL, `bookUrlPattern` TEXT, `customOrder` INTEGER NOT NULL, `enabled` INTEGER NOT NULL, `enabledExplore` INTEGER NOT NULL, `enabledCookieJar` INTEGER DEFAULT 0, `concurrentRate` TEXT, `header` TEXT, `loginUrl` TEXT, `loginUi` TEXT, `loginCheckJs` TEXT, `bookSourceComment` TEXT, `variableComment` TEXT, `lastUpdateTime` INTEGER NOT NULL, `respondTime` INTEGER NOT NULL, `weight` INTEGER NOT NULL, `exploreUrl` TEXT, `ruleExplore` TEXT, `searchUrl` TEXT, `ruleSearch` TEXT, `ruleBookInfo` TEXT, `ruleToc` TEXT, `ruleContent` TEXT, PRIMARY KEY(`bookSourceUrl`))", - "fields": [ - { - "fieldPath": "bookSourceUrl", - "columnName": "bookSourceUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookSourceName", - "columnName": "bookSourceName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookSourceGroup", - "columnName": "bookSourceGroup", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "bookSourceType", - "columnName": "bookSourceType", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "bookUrlPattern", - "columnName": "bookUrlPattern", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "customOrder", - "columnName": "customOrder", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "enabled", - "columnName": "enabled", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "enabledExplore", - "columnName": "enabledExplore", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "enabledCookieJar", - "columnName": "enabledCookieJar", - "affinity": "INTEGER", - "notNull": false, - "defaultValue": "0" - }, - { - "fieldPath": "concurrentRate", - "columnName": "concurrentRate", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "header", - "columnName": "header", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "loginUrl", - "columnName": "loginUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "loginUi", - "columnName": "loginUi", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "loginCheckJs", - "columnName": "loginCheckJs", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "bookSourceComment", - "columnName": "bookSourceComment", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "variableComment", - "columnName": "variableComment", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "lastUpdateTime", - "columnName": "lastUpdateTime", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "respondTime", - "columnName": "respondTime", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "weight", - "columnName": "weight", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "exploreUrl", - "columnName": "exploreUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleExplore", - "columnName": "ruleExplore", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "searchUrl", - "columnName": "searchUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleSearch", - "columnName": "ruleSearch", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleBookInfo", - "columnName": "ruleBookInfo", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleToc", - "columnName": "ruleToc", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleContent", - "columnName": "ruleContent", - "affinity": "TEXT", - "notNull": false - } - ], - "primaryKey": { - "autoGenerate": false, - "columnNames": [ - "bookSourceUrl" - ] - }, - "indices": [ - { - "name": "index_book_sources_bookSourceUrl", - "unique": false, - "columnNames": [ - "bookSourceUrl" - ], - "orders": [], - "createSql": "CREATE INDEX IF NOT EXISTS `index_book_sources_bookSourceUrl` ON `${TABLE_NAME}` (`bookSourceUrl`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "chapters", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`url` TEXT NOT NULL, `title` TEXT NOT NULL, `isVolume` INTEGER NOT NULL, `baseUrl` TEXT NOT NULL, `bookUrl` TEXT NOT NULL, `index` INTEGER NOT NULL, `isVip` INTEGER NOT NULL, `isPay` INTEGER NOT NULL, `resourceUrl` TEXT, `tag` TEXT, `start` INTEGER, `end` INTEGER, `startFragmentId` TEXT, `endFragmentId` TEXT, `variable` TEXT, PRIMARY KEY(`url`, `bookUrl`), FOREIGN KEY(`bookUrl`) REFERENCES `books`(`bookUrl`) ON UPDATE NO ACTION ON DELETE CASCADE )", - "fields": [ - { - "fieldPath": "url", - "columnName": "url", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "title", - "columnName": "title", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "isVolume", - "columnName": "isVolume", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "baseUrl", - "columnName": "baseUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookUrl", - "columnName": "bookUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "index", - "columnName": "index", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "isVip", - "columnName": "isVip", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "isPay", - "columnName": "isPay", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "resourceUrl", - "columnName": "resourceUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "tag", - "columnName": "tag", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "start", - "columnName": "start", - "affinity": "INTEGER", - "notNull": false - }, - { - "fieldPath": "end", - "columnName": "end", - "affinity": "INTEGER", - "notNull": false - }, - { - "fieldPath": "startFragmentId", - "columnName": "startFragmentId", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "endFragmentId", - "columnName": "endFragmentId", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "variable", - "columnName": "variable", - "affinity": "TEXT", - "notNull": false - } - ], - "primaryKey": { - "autoGenerate": false, - "columnNames": [ - "url", - "bookUrl" - ] - }, - "indices": [ - { - "name": "index_chapters_bookUrl", - "unique": false, - "columnNames": [ - "bookUrl" - ], - "orders": [], - "createSql": "CREATE INDEX IF NOT EXISTS `index_chapters_bookUrl` ON `${TABLE_NAME}` (`bookUrl`)" - }, - { - "name": "index_chapters_bookUrl_index", - "unique": true, - "columnNames": [ - "bookUrl", - "index" - ], - "orders": [], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_chapters_bookUrl_index` ON `${TABLE_NAME}` (`bookUrl`, `index`)" - } - ], - "foreignKeys": [ - { - "table": "books", - "onDelete": "CASCADE", - "onUpdate": "NO ACTION", - "columns": [ - "bookUrl" - ], - "referencedColumns": [ - "bookUrl" - ] - } - ] - }, - { - "tableName": "replace_rules", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, `name` TEXT NOT NULL DEFAULT '', `group` TEXT, `pattern` TEXT NOT NULL DEFAULT '', `replacement` TEXT NOT NULL DEFAULT '', `scope` TEXT, `scopeTitle` INTEGER NOT NULL DEFAULT 0, `scopeContent` INTEGER NOT NULL DEFAULT 1, `isEnabled` INTEGER NOT NULL DEFAULT 1, `isRegex` INTEGER NOT NULL DEFAULT 1, `timeoutMillisecond` INTEGER NOT NULL DEFAULT 3000, `sortOrder` INTEGER NOT NULL DEFAULT 0)", - "fields": [ - { - "fieldPath": "id", - "columnName": "id", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true, - "defaultValue": "''" - }, - { - "fieldPath": "group", - "columnName": "group", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "pattern", - "columnName": "pattern", - "affinity": "TEXT", - "notNull": true, - "defaultValue": "''" - }, - { - "fieldPath": "replacement", - "columnName": "replacement", - "affinity": "TEXT", - "notNull": true, - "defaultValue": "''" - }, - { - "fieldPath": "scope", - "columnName": "scope", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "scopeTitle", - "columnName": "scopeTitle", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "scopeContent", - "columnName": "scopeContent", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "1" - }, - { - "fieldPath": "isEnabled", - "columnName": "isEnabled", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "1" - }, - { - "fieldPath": "isRegex", - "columnName": "isRegex", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "1" - }, - { - "fieldPath": "timeoutMillisecond", - "columnName": "timeoutMillisecond", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "3000" - }, - { - "fieldPath": "order", - "columnName": "sortOrder", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - } - ], - "primaryKey": { - "autoGenerate": true, - "columnNames": [ - "id" - ] - }, - "indices": [ - { - "name": "index_replace_rules_id", - "unique": false, - "columnNames": [ - "id" - ], - "orders": [], - "createSql": "CREATE INDEX IF NOT EXISTS `index_replace_rules_id` ON `${TABLE_NAME}` (`id`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "searchBooks", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`bookUrl` TEXT NOT NULL, `origin` TEXT NOT NULL, `originName` TEXT NOT NULL, `type` INTEGER NOT NULL, `name` TEXT NOT NULL, `author` TEXT NOT NULL, `kind` TEXT, `coverUrl` TEXT, `intro` TEXT, `wordCount` TEXT, `latestChapterTitle` TEXT, `tocUrl` TEXT NOT NULL, `time` INTEGER NOT NULL, `variable` TEXT, `originOrder` INTEGER NOT NULL, PRIMARY KEY(`bookUrl`), FOREIGN KEY(`origin`) REFERENCES `book_sources`(`bookSourceUrl`) ON UPDATE NO ACTION ON DELETE CASCADE )", - "fields": [ - { - "fieldPath": "bookUrl", - "columnName": "bookUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "origin", - "columnName": "origin", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "originName", - "columnName": "originName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "type", - "columnName": "type", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "author", - "columnName": "author", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "kind", - "columnName": "kind", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "coverUrl", - "columnName": "coverUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "intro", - "columnName": "intro", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "wordCount", - "columnName": "wordCount", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "latestChapterTitle", - "columnName": "latestChapterTitle", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "tocUrl", - "columnName": "tocUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "time", - "columnName": "time", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "variable", - "columnName": "variable", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "originOrder", - "columnName": "originOrder", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "autoGenerate": false, - "columnNames": [ - "bookUrl" - ] - }, - "indices": [ - { - "name": "index_searchBooks_bookUrl", - "unique": true, - "columnNames": [ - "bookUrl" - ], - "orders": [], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_searchBooks_bookUrl` ON `${TABLE_NAME}` (`bookUrl`)" - }, - { - "name": "index_searchBooks_origin", - "unique": false, - "columnNames": [ - "origin" - ], - "orders": [], - "createSql": "CREATE INDEX IF NOT EXISTS `index_searchBooks_origin` ON `${TABLE_NAME}` (`origin`)" - } - ], - "foreignKeys": [ - { - "table": "book_sources", - "onDelete": "CASCADE", - "onUpdate": "NO ACTION", - "columns": [ - "origin" - ], - "referencedColumns": [ - "bookSourceUrl" - ] - } - ] - }, - { - "tableName": "search_keywords", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`word` TEXT NOT NULL, `usage` INTEGER NOT NULL, `lastUseTime` INTEGER NOT NULL, PRIMARY KEY(`word`))", - "fields": [ - { - "fieldPath": "word", - "columnName": "word", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "usage", - "columnName": "usage", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "lastUseTime", - "columnName": "lastUseTime", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "autoGenerate": false, - "columnNames": [ - "word" - ] - }, - "indices": [ - { - "name": "index_search_keywords_word", - "unique": true, - "columnNames": [ - "word" - ], - "orders": [], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_search_keywords_word` ON `${TABLE_NAME}` (`word`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "cookies", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`url` TEXT NOT NULL, `cookie` TEXT NOT NULL, PRIMARY KEY(`url`))", - "fields": [ - { - "fieldPath": "url", - "columnName": "url", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "cookie", - "columnName": "cookie", - "affinity": "TEXT", - "notNull": true - } - ], - "primaryKey": { - "autoGenerate": false, - "columnNames": [ - "url" - ] - }, - "indices": [ - { - "name": "index_cookies_url", - "unique": true, - "columnNames": [ - "url" - ], - "orders": [], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_cookies_url` ON `${TABLE_NAME}` (`url`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "rssSources", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`sourceUrl` TEXT NOT NULL, `sourceName` TEXT NOT NULL, `sourceIcon` TEXT NOT NULL, `sourceGroup` TEXT, `sourceComment` TEXT, `enabled` INTEGER NOT NULL, `variableComment` TEXT, `enabledCookieJar` INTEGER DEFAULT 0, `concurrentRate` TEXT, `header` TEXT, `loginUrl` TEXT, `loginUi` TEXT, `loginCheckJs` TEXT, `sortUrl` TEXT, `singleUrl` INTEGER NOT NULL, `articleStyle` INTEGER NOT NULL, `ruleArticles` TEXT, `ruleNextPage` TEXT, `ruleTitle` TEXT, `rulePubDate` TEXT, `ruleDescription` TEXT, `ruleImage` TEXT, `ruleLink` TEXT, `ruleContent` TEXT, `style` TEXT, `enableJs` INTEGER NOT NULL, `loadWithBaseUrl` INTEGER NOT NULL, `customOrder` INTEGER NOT NULL, PRIMARY KEY(`sourceUrl`))", - "fields": [ - { - "fieldPath": "sourceUrl", - "columnName": "sourceUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "sourceName", - "columnName": "sourceName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "sourceIcon", - "columnName": "sourceIcon", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "sourceGroup", - "columnName": "sourceGroup", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "sourceComment", - "columnName": "sourceComment", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "enabled", - "columnName": "enabled", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "variableComment", - "columnName": "variableComment", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "enabledCookieJar", - "columnName": "enabledCookieJar", - "affinity": "INTEGER", - "notNull": false, - "defaultValue": "0" - }, - { - "fieldPath": "concurrentRate", - "columnName": "concurrentRate", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "header", - "columnName": "header", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "loginUrl", - "columnName": "loginUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "loginUi", - "columnName": "loginUi", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "loginCheckJs", - "columnName": "loginCheckJs", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "sortUrl", - "columnName": "sortUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "singleUrl", - "columnName": "singleUrl", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "articleStyle", - "columnName": "articleStyle", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "ruleArticles", - "columnName": "ruleArticles", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleNextPage", - "columnName": "ruleNextPage", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleTitle", - "columnName": "ruleTitle", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "rulePubDate", - "columnName": "rulePubDate", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleDescription", - "columnName": "ruleDescription", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleImage", - "columnName": "ruleImage", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleLink", - "columnName": "ruleLink", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleContent", - "columnName": "ruleContent", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "style", - "columnName": "style", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "enableJs", - "columnName": "enableJs", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "loadWithBaseUrl", - "columnName": "loadWithBaseUrl", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "customOrder", - "columnName": "customOrder", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "autoGenerate": false, - "columnNames": [ - "sourceUrl" - ] - }, - "indices": [ - { - "name": "index_rssSources_sourceUrl", - "unique": false, - "columnNames": [ - "sourceUrl" - ], - "orders": [], - "createSql": "CREATE INDEX IF NOT EXISTS `index_rssSources_sourceUrl` ON `${TABLE_NAME}` (`sourceUrl`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "bookmarks", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`time` INTEGER NOT NULL, `bookName` TEXT NOT NULL, `bookAuthor` TEXT NOT NULL, `chapterIndex` INTEGER NOT NULL, `chapterPos` INTEGER NOT NULL, `chapterName` TEXT NOT NULL, `bookText` TEXT NOT NULL, `content` TEXT NOT NULL, PRIMARY KEY(`time`))", - "fields": [ - { - "fieldPath": "time", - "columnName": "time", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "bookName", - "columnName": "bookName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookAuthor", - "columnName": "bookAuthor", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "chapterIndex", - "columnName": "chapterIndex", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "chapterPos", - "columnName": "chapterPos", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "chapterName", - "columnName": "chapterName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookText", - "columnName": "bookText", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "content", - "columnName": "content", - "affinity": "TEXT", - "notNull": true - } - ], - "primaryKey": { - "autoGenerate": false, - "columnNames": [ - "time" - ] - }, - "indices": [ - { - "name": "index_bookmarks_bookName_bookAuthor", - "unique": false, - "columnNames": [ - "bookName", - "bookAuthor" - ], - "orders": [], - "createSql": "CREATE INDEX IF NOT EXISTS `index_bookmarks_bookName_bookAuthor` ON `${TABLE_NAME}` (`bookName`, `bookAuthor`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "rssArticles", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`origin` TEXT NOT NULL, `sort` TEXT NOT NULL, `title` TEXT NOT NULL, `order` INTEGER NOT NULL, `link` TEXT NOT NULL, `pubDate` TEXT, `description` TEXT, `content` TEXT, `image` TEXT, `read` INTEGER NOT NULL, `variable` TEXT, PRIMARY KEY(`origin`, `link`))", - "fields": [ - { - "fieldPath": "origin", - "columnName": "origin", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "sort", - "columnName": "sort", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "title", - "columnName": "title", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "order", - "columnName": "order", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "link", - "columnName": "link", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "pubDate", - "columnName": "pubDate", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "description", - "columnName": "description", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "content", - "columnName": "content", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "image", - "columnName": "image", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "read", - "columnName": "read", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "variable", - "columnName": "variable", - "affinity": "TEXT", - "notNull": false - } - ], - "primaryKey": { - "autoGenerate": false, - "columnNames": [ - "origin", - "link" - ] - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "rssReadRecords", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`record` TEXT NOT NULL, `read` INTEGER NOT NULL, PRIMARY KEY(`record`))", - "fields": [ - { - "fieldPath": "record", - "columnName": "record", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "read", - "columnName": "read", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "autoGenerate": false, - "columnNames": [ - "record" - ] - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "rssStars", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`origin` TEXT NOT NULL, `sort` TEXT NOT NULL, `title` TEXT NOT NULL, `starTime` INTEGER NOT NULL, `link` TEXT NOT NULL, `pubDate` TEXT, `description` TEXT, `content` TEXT, `image` TEXT, `variable` TEXT, PRIMARY KEY(`origin`, `link`))", - "fields": [ - { - "fieldPath": "origin", - "columnName": "origin", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "sort", - "columnName": "sort", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "title", - "columnName": "title", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "starTime", - "columnName": "starTime", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "link", - "columnName": "link", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "pubDate", - "columnName": "pubDate", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "description", - "columnName": "description", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "content", - "columnName": "content", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "image", - "columnName": "image", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "variable", - "columnName": "variable", - "affinity": "TEXT", - "notNull": false - } - ], - "primaryKey": { - "autoGenerate": false, - "columnNames": [ - "origin", - "link" - ] - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "txtTocRules", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER NOT NULL, `name` TEXT NOT NULL, `rule` TEXT NOT NULL, `example` TEXT, `serialNumber` INTEGER NOT NULL, `enable` INTEGER NOT NULL, PRIMARY KEY(`id`))", - "fields": [ - { - "fieldPath": "id", - "columnName": "id", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "rule", - "columnName": "rule", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "example", - "columnName": "example", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "serialNumber", - "columnName": "serialNumber", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "enable", - "columnName": "enable", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "autoGenerate": false, - "columnNames": [ - "id" - ] - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "readRecord", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`deviceId` TEXT NOT NULL, `bookName` TEXT NOT NULL, `readTime` INTEGER NOT NULL DEFAULT 0, `lastRead` INTEGER NOT NULL DEFAULT 0, PRIMARY KEY(`deviceId`, `bookName`))", - "fields": [ - { - "fieldPath": "deviceId", - "columnName": "deviceId", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookName", - "columnName": "bookName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "readTime", - "columnName": "readTime", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "lastRead", - "columnName": "lastRead", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - } - ], - "primaryKey": { - "autoGenerate": false, - "columnNames": [ - "deviceId", - "bookName" - ] - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "httpTTS", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER NOT NULL, `name` TEXT NOT NULL, `url` TEXT NOT NULL, `contentType` TEXT, `concurrentRate` TEXT DEFAULT '0', `loginUrl` TEXT, `loginUi` TEXT, `header` TEXT, `enabledCookieJar` INTEGER DEFAULT 0, `loginCheckJs` TEXT, `lastUpdateTime` INTEGER NOT NULL DEFAULT 0, PRIMARY KEY(`id`))", - "fields": [ - { - "fieldPath": "id", - "columnName": "id", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "url", - "columnName": "url", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "contentType", - "columnName": "contentType", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "concurrentRate", - "columnName": "concurrentRate", - "affinity": "TEXT", - "notNull": false, - "defaultValue": "'0'" - }, - { - "fieldPath": "loginUrl", - "columnName": "loginUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "loginUi", - "columnName": "loginUi", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "header", - "columnName": "header", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "enabledCookieJar", - "columnName": "enabledCookieJar", - "affinity": "INTEGER", - "notNull": false, - "defaultValue": "0" - }, - { - "fieldPath": "loginCheckJs", - "columnName": "loginCheckJs", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "lastUpdateTime", - "columnName": "lastUpdateTime", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - } - ], - "primaryKey": { - "autoGenerate": false, - "columnNames": [ - "id" - ] - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "caches", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`key` TEXT NOT NULL, `value` TEXT, `deadline` INTEGER NOT NULL, PRIMARY KEY(`key`))", - "fields": [ - { - "fieldPath": "key", - "columnName": "key", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "value", - "columnName": "value", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "deadline", - "columnName": "deadline", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "autoGenerate": false, - "columnNames": [ - "key" - ] - }, - "indices": [ - { - "name": "index_caches_key", - "unique": true, - "columnNames": [ - "key" - ], - "orders": [], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_caches_key` ON `${TABLE_NAME}` (`key`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "ruleSubs", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER NOT NULL, `name` TEXT NOT NULL, `url` TEXT NOT NULL, `type` INTEGER NOT NULL, `customOrder` INTEGER NOT NULL, `autoUpdate` INTEGER NOT NULL, `update` INTEGER NOT NULL, PRIMARY KEY(`id`))", - "fields": [ - { - "fieldPath": "id", - "columnName": "id", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "url", - "columnName": "url", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "type", - "columnName": "type", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "customOrder", - "columnName": "customOrder", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "autoUpdate", - "columnName": "autoUpdate", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "update", - "columnName": "update", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "autoGenerate": false, - "columnNames": [ - "id" - ] - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "keyboardAssists", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`type` INTEGER NOT NULL DEFAULT 0, `key` TEXT NOT NULL DEFAULT '', `value` TEXT NOT NULL DEFAULT '', `serialNo` INTEGER NOT NULL DEFAULT 0, PRIMARY KEY(`type`, `key`))", - "fields": [ - { - "fieldPath": "type", - "columnName": "type", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "key", - "columnName": "key", - "affinity": "TEXT", - "notNull": true, - "defaultValue": "''" - }, - { - "fieldPath": "value", - "columnName": "value", - "affinity": "TEXT", - "notNull": true, - "defaultValue": "''" - }, - { - "fieldPath": "serialNo", - "columnName": "serialNo", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - } - ], - "primaryKey": { - "autoGenerate": false, - "columnNames": [ - "type", - "key" - ] - }, - "indices": [], - "foreignKeys": [] - } - ], - "views": [], - "setupQueries": [ - "CREATE TABLE IF NOT EXISTS room_master_table (id INTEGER PRIMARY KEY,identity_hash TEXT)", - "INSERT OR REPLACE INTO room_master_table (id,identity_hash) VALUES(42, '0221c385ed7393f47afe9579d3106541')" - ] - } -} \ No newline at end of file diff --git a/app/schemas/io.legado.app.data.AppDatabase/53.json b/app/schemas/io.legado.app.data.AppDatabase/53.json deleted file mode 100644 index 518a1bfb7..000000000 --- a/app/schemas/io.legado.app.data.AppDatabase/53.json +++ /dev/null @@ -1,1692 +0,0 @@ -{ - "formatVersion": 1, - "database": { - "version": 53, - "identityHash": "c55dac79aa9cc3dcdb72e91da4282005", - "entities": [ - { - "tableName": "books", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`bookUrl` TEXT NOT NULL DEFAULT '', `tocUrl` TEXT NOT NULL DEFAULT '', `origin` TEXT NOT NULL DEFAULT '', `originName` TEXT NOT NULL DEFAULT '', `name` TEXT NOT NULL DEFAULT '', `author` TEXT NOT NULL DEFAULT '', `kind` TEXT, `customTag` TEXT, `coverUrl` TEXT, `customCoverUrl` TEXT, `intro` TEXT, `customIntro` TEXT, `charset` TEXT, `type` INTEGER NOT NULL DEFAULT 0, `group` INTEGER NOT NULL DEFAULT 0, `latestChapterTitle` TEXT, `latestChapterTime` INTEGER NOT NULL DEFAULT 0, `lastCheckTime` INTEGER NOT NULL DEFAULT 0, `lastCheckCount` INTEGER NOT NULL DEFAULT 0, `totalChapterNum` INTEGER NOT NULL DEFAULT 0, `durChapterTitle` TEXT, `durChapterIndex` INTEGER NOT NULL DEFAULT 0, `durChapterPos` INTEGER NOT NULL DEFAULT 0, `durChapterTime` INTEGER NOT NULL DEFAULT 0, `wordCount` TEXT, `canUpdate` INTEGER NOT NULL DEFAULT 1, `order` INTEGER NOT NULL DEFAULT 0, `originOrder` INTEGER NOT NULL DEFAULT 0, `variable` TEXT, `readConfig` TEXT, PRIMARY KEY(`bookUrl`))", - "fields": [ - { - "fieldPath": "bookUrl", - "columnName": "bookUrl", - "affinity": "TEXT", - "notNull": true, - "defaultValue": "''" - }, - { - "fieldPath": "tocUrl", - "columnName": "tocUrl", - "affinity": "TEXT", - "notNull": true, - "defaultValue": "''" - }, - { - "fieldPath": "origin", - "columnName": "origin", - "affinity": "TEXT", - "notNull": true, - "defaultValue": "''" - }, - { - "fieldPath": "originName", - "columnName": "originName", - "affinity": "TEXT", - "notNull": true, - "defaultValue": "''" - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true, - "defaultValue": "''" - }, - { - "fieldPath": "author", - "columnName": "author", - "affinity": "TEXT", - "notNull": true, - "defaultValue": "''" - }, - { - "fieldPath": "kind", - "columnName": "kind", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "customTag", - "columnName": "customTag", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "coverUrl", - "columnName": "coverUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "customCoverUrl", - "columnName": "customCoverUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "intro", - "columnName": "intro", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "customIntro", - "columnName": "customIntro", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "charset", - "columnName": "charset", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "type", - "columnName": "type", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "group", - "columnName": "group", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "latestChapterTitle", - "columnName": "latestChapterTitle", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "latestChapterTime", - "columnName": "latestChapterTime", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "lastCheckTime", - "columnName": "lastCheckTime", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "lastCheckCount", - "columnName": "lastCheckCount", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "totalChapterNum", - "columnName": "totalChapterNum", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "durChapterTitle", - "columnName": "durChapterTitle", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "durChapterIndex", - "columnName": "durChapterIndex", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "durChapterPos", - "columnName": "durChapterPos", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "durChapterTime", - "columnName": "durChapterTime", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "wordCount", - "columnName": "wordCount", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "canUpdate", - "columnName": "canUpdate", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "1" - }, - { - "fieldPath": "order", - "columnName": "order", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "originOrder", - "columnName": "originOrder", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "variable", - "columnName": "variable", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "readConfig", - "columnName": "readConfig", - "affinity": "TEXT", - "notNull": false - } - ], - "primaryKey": { - "columnNames": [ - "bookUrl" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_books_name_author", - "unique": true, - "columnNames": [ - "name", - "author" - ], - "orders": [], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_books_name_author` ON `${TABLE_NAME}` (`name`, `author`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "book_groups", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`groupId` INTEGER NOT NULL, `groupName` TEXT NOT NULL, `cover` TEXT, `order` INTEGER NOT NULL, `show` INTEGER NOT NULL, PRIMARY KEY(`groupId`))", - "fields": [ - { - "fieldPath": "groupId", - "columnName": "groupId", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "groupName", - "columnName": "groupName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "cover", - "columnName": "cover", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "order", - "columnName": "order", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "show", - "columnName": "show", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "groupId" - ], - "autoGenerate": false - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "book_sources", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`bookSourceUrl` TEXT NOT NULL, `bookSourceName` TEXT NOT NULL, `bookSourceGroup` TEXT, `bookSourceType` INTEGER NOT NULL, `bookUrlPattern` TEXT, `customOrder` INTEGER NOT NULL, `enabled` INTEGER NOT NULL, `enabledExplore` INTEGER NOT NULL, `enabledReview` INTEGER, `enabledCookieJar` INTEGER DEFAULT 0, `concurrentRate` TEXT, `header` TEXT, `loginUrl` TEXT, `loginUi` TEXT, `loginCheckJs` TEXT, `bookSourceComment` TEXT, `variableComment` TEXT, `lastUpdateTime` INTEGER NOT NULL, `respondTime` INTEGER NOT NULL, `weight` INTEGER NOT NULL, `exploreUrl` TEXT, `ruleExplore` TEXT, `searchUrl` TEXT, `ruleSearch` TEXT, `ruleBookInfo` TEXT, `ruleToc` TEXT, `ruleContent` TEXT, `ruleReview` TEXT, PRIMARY KEY(`bookSourceUrl`))", - "fields": [ - { - "fieldPath": "bookSourceUrl", - "columnName": "bookSourceUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookSourceName", - "columnName": "bookSourceName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookSourceGroup", - "columnName": "bookSourceGroup", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "bookSourceType", - "columnName": "bookSourceType", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "bookUrlPattern", - "columnName": "bookUrlPattern", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "customOrder", - "columnName": "customOrder", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "enabled", - "columnName": "enabled", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "enabledExplore", - "columnName": "enabledExplore", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "enabledReview", - "columnName": "enabledReview", - "affinity": "INTEGER", - "notNull": false - }, - { - "fieldPath": "enabledCookieJar", - "columnName": "enabledCookieJar", - "affinity": "INTEGER", - "notNull": false, - "defaultValue": "0" - }, - { - "fieldPath": "concurrentRate", - "columnName": "concurrentRate", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "header", - "columnName": "header", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "loginUrl", - "columnName": "loginUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "loginUi", - "columnName": "loginUi", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "loginCheckJs", - "columnName": "loginCheckJs", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "bookSourceComment", - "columnName": "bookSourceComment", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "variableComment", - "columnName": "variableComment", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "lastUpdateTime", - "columnName": "lastUpdateTime", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "respondTime", - "columnName": "respondTime", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "weight", - "columnName": "weight", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "exploreUrl", - "columnName": "exploreUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleExplore", - "columnName": "ruleExplore", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "searchUrl", - "columnName": "searchUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleSearch", - "columnName": "ruleSearch", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleBookInfo", - "columnName": "ruleBookInfo", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleToc", - "columnName": "ruleToc", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleContent", - "columnName": "ruleContent", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleReview", - "columnName": "ruleReview", - "affinity": "TEXT", - "notNull": false - } - ], - "primaryKey": { - "columnNames": [ - "bookSourceUrl" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_book_sources_bookSourceUrl", - "unique": false, - "columnNames": [ - "bookSourceUrl" - ], - "orders": [], - "createSql": "CREATE INDEX IF NOT EXISTS `index_book_sources_bookSourceUrl` ON `${TABLE_NAME}` (`bookSourceUrl`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "chapters", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`url` TEXT NOT NULL, `title` TEXT NOT NULL, `isVolume` INTEGER NOT NULL, `baseUrl` TEXT NOT NULL, `bookUrl` TEXT NOT NULL, `index` INTEGER NOT NULL, `isVip` INTEGER NOT NULL, `isPay` INTEGER NOT NULL, `resourceUrl` TEXT, `tag` TEXT, `start` INTEGER, `end` INTEGER, `startFragmentId` TEXT, `endFragmentId` TEXT, `variable` TEXT, PRIMARY KEY(`url`, `bookUrl`), FOREIGN KEY(`bookUrl`) REFERENCES `books`(`bookUrl`) ON UPDATE NO ACTION ON DELETE CASCADE )", - "fields": [ - { - "fieldPath": "url", - "columnName": "url", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "title", - "columnName": "title", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "isVolume", - "columnName": "isVolume", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "baseUrl", - "columnName": "baseUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookUrl", - "columnName": "bookUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "index", - "columnName": "index", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "isVip", - "columnName": "isVip", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "isPay", - "columnName": "isPay", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "resourceUrl", - "columnName": "resourceUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "tag", - "columnName": "tag", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "start", - "columnName": "start", - "affinity": "INTEGER", - "notNull": false - }, - { - "fieldPath": "end", - "columnName": "end", - "affinity": "INTEGER", - "notNull": false - }, - { - "fieldPath": "startFragmentId", - "columnName": "startFragmentId", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "endFragmentId", - "columnName": "endFragmentId", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "variable", - "columnName": "variable", - "affinity": "TEXT", - "notNull": false - } - ], - "primaryKey": { - "columnNames": [ - "url", - "bookUrl" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_chapters_bookUrl", - "unique": false, - "columnNames": [ - "bookUrl" - ], - "orders": [], - "createSql": "CREATE INDEX IF NOT EXISTS `index_chapters_bookUrl` ON `${TABLE_NAME}` (`bookUrl`)" - }, - { - "name": "index_chapters_bookUrl_index", - "unique": true, - "columnNames": [ - "bookUrl", - "index" - ], - "orders": [], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_chapters_bookUrl_index` ON `${TABLE_NAME}` (`bookUrl`, `index`)" - } - ], - "foreignKeys": [ - { - "table": "books", - "onDelete": "CASCADE", - "onUpdate": "NO ACTION", - "columns": [ - "bookUrl" - ], - "referencedColumns": [ - "bookUrl" - ] - } - ] - }, - { - "tableName": "replace_rules", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, `name` TEXT NOT NULL DEFAULT '', `group` TEXT, `pattern` TEXT NOT NULL DEFAULT '', `replacement` TEXT NOT NULL DEFAULT '', `scope` TEXT, `scopeTitle` INTEGER NOT NULL DEFAULT 0, `scopeContent` INTEGER NOT NULL DEFAULT 1, `isEnabled` INTEGER NOT NULL DEFAULT 1, `isRegex` INTEGER NOT NULL DEFAULT 1, `timeoutMillisecond` INTEGER NOT NULL DEFAULT 3000, `sortOrder` INTEGER NOT NULL DEFAULT 0)", - "fields": [ - { - "fieldPath": "id", - "columnName": "id", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true, - "defaultValue": "''" - }, - { - "fieldPath": "group", - "columnName": "group", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "pattern", - "columnName": "pattern", - "affinity": "TEXT", - "notNull": true, - "defaultValue": "''" - }, - { - "fieldPath": "replacement", - "columnName": "replacement", - "affinity": "TEXT", - "notNull": true, - "defaultValue": "''" - }, - { - "fieldPath": "scope", - "columnName": "scope", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "scopeTitle", - "columnName": "scopeTitle", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "scopeContent", - "columnName": "scopeContent", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "1" - }, - { - "fieldPath": "isEnabled", - "columnName": "isEnabled", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "1" - }, - { - "fieldPath": "isRegex", - "columnName": "isRegex", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "1" - }, - { - "fieldPath": "timeoutMillisecond", - "columnName": "timeoutMillisecond", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "3000" - }, - { - "fieldPath": "order", - "columnName": "sortOrder", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - } - ], - "primaryKey": { - "columnNames": [ - "id" - ], - "autoGenerate": true - }, - "indices": [ - { - "name": "index_replace_rules_id", - "unique": false, - "columnNames": [ - "id" - ], - "orders": [], - "createSql": "CREATE INDEX IF NOT EXISTS `index_replace_rules_id` ON `${TABLE_NAME}` (`id`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "searchBooks", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`bookUrl` TEXT NOT NULL, `origin` TEXT NOT NULL, `originName` TEXT NOT NULL, `type` INTEGER NOT NULL, `name` TEXT NOT NULL, `author` TEXT NOT NULL, `kind` TEXT, `coverUrl` TEXT, `intro` TEXT, `wordCount` TEXT, `latestChapterTitle` TEXT, `tocUrl` TEXT NOT NULL, `time` INTEGER NOT NULL, `variable` TEXT, `originOrder` INTEGER NOT NULL, PRIMARY KEY(`bookUrl`), FOREIGN KEY(`origin`) REFERENCES `book_sources`(`bookSourceUrl`) ON UPDATE NO ACTION ON DELETE CASCADE )", - "fields": [ - { - "fieldPath": "bookUrl", - "columnName": "bookUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "origin", - "columnName": "origin", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "originName", - "columnName": "originName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "type", - "columnName": "type", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "author", - "columnName": "author", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "kind", - "columnName": "kind", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "coverUrl", - "columnName": "coverUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "intro", - "columnName": "intro", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "wordCount", - "columnName": "wordCount", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "latestChapterTitle", - "columnName": "latestChapterTitle", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "tocUrl", - "columnName": "tocUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "time", - "columnName": "time", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "variable", - "columnName": "variable", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "originOrder", - "columnName": "originOrder", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "bookUrl" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_searchBooks_bookUrl", - "unique": true, - "columnNames": [ - "bookUrl" - ], - "orders": [], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_searchBooks_bookUrl` ON `${TABLE_NAME}` (`bookUrl`)" - }, - { - "name": "index_searchBooks_origin", - "unique": false, - "columnNames": [ - "origin" - ], - "orders": [], - "createSql": "CREATE INDEX IF NOT EXISTS `index_searchBooks_origin` ON `${TABLE_NAME}` (`origin`)" - } - ], - "foreignKeys": [ - { - "table": "book_sources", - "onDelete": "CASCADE", - "onUpdate": "NO ACTION", - "columns": [ - "origin" - ], - "referencedColumns": [ - "bookSourceUrl" - ] - } - ] - }, - { - "tableName": "search_keywords", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`word` TEXT NOT NULL, `usage` INTEGER NOT NULL, `lastUseTime` INTEGER NOT NULL, PRIMARY KEY(`word`))", - "fields": [ - { - "fieldPath": "word", - "columnName": "word", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "usage", - "columnName": "usage", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "lastUseTime", - "columnName": "lastUseTime", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "word" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_search_keywords_word", - "unique": true, - "columnNames": [ - "word" - ], - "orders": [], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_search_keywords_word` ON `${TABLE_NAME}` (`word`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "cookies", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`url` TEXT NOT NULL, `cookie` TEXT NOT NULL, PRIMARY KEY(`url`))", - "fields": [ - { - "fieldPath": "url", - "columnName": "url", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "cookie", - "columnName": "cookie", - "affinity": "TEXT", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "url" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_cookies_url", - "unique": true, - "columnNames": [ - "url" - ], - "orders": [], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_cookies_url` ON `${TABLE_NAME}` (`url`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "rssSources", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`sourceUrl` TEXT NOT NULL, `sourceName` TEXT NOT NULL, `sourceIcon` TEXT NOT NULL, `sourceGroup` TEXT, `sourceComment` TEXT, `enabled` INTEGER NOT NULL, `variableComment` TEXT, `enabledCookieJar` INTEGER DEFAULT 0, `concurrentRate` TEXT, `header` TEXT, `loginUrl` TEXT, `loginUi` TEXT, `loginCheckJs` TEXT, `sortUrl` TEXT, `singleUrl` INTEGER NOT NULL, `articleStyle` INTEGER NOT NULL, `ruleArticles` TEXT, `ruleNextPage` TEXT, `ruleTitle` TEXT, `rulePubDate` TEXT, `ruleDescription` TEXT, `ruleImage` TEXT, `ruleLink` TEXT, `ruleContent` TEXT, `style` TEXT, `enableJs` INTEGER NOT NULL, `loadWithBaseUrl` INTEGER NOT NULL, `customOrder` INTEGER NOT NULL, PRIMARY KEY(`sourceUrl`))", - "fields": [ - { - "fieldPath": "sourceUrl", - "columnName": "sourceUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "sourceName", - "columnName": "sourceName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "sourceIcon", - "columnName": "sourceIcon", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "sourceGroup", - "columnName": "sourceGroup", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "sourceComment", - "columnName": "sourceComment", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "enabled", - "columnName": "enabled", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "variableComment", - "columnName": "variableComment", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "enabledCookieJar", - "columnName": "enabledCookieJar", - "affinity": "INTEGER", - "notNull": false, - "defaultValue": "0" - }, - { - "fieldPath": "concurrentRate", - "columnName": "concurrentRate", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "header", - "columnName": "header", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "loginUrl", - "columnName": "loginUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "loginUi", - "columnName": "loginUi", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "loginCheckJs", - "columnName": "loginCheckJs", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "sortUrl", - "columnName": "sortUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "singleUrl", - "columnName": "singleUrl", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "articleStyle", - "columnName": "articleStyle", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "ruleArticles", - "columnName": "ruleArticles", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleNextPage", - "columnName": "ruleNextPage", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleTitle", - "columnName": "ruleTitle", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "rulePubDate", - "columnName": "rulePubDate", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleDescription", - "columnName": "ruleDescription", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleImage", - "columnName": "ruleImage", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleLink", - "columnName": "ruleLink", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleContent", - "columnName": "ruleContent", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "style", - "columnName": "style", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "enableJs", - "columnName": "enableJs", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "loadWithBaseUrl", - "columnName": "loadWithBaseUrl", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "customOrder", - "columnName": "customOrder", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "sourceUrl" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_rssSources_sourceUrl", - "unique": false, - "columnNames": [ - "sourceUrl" - ], - "orders": [], - "createSql": "CREATE INDEX IF NOT EXISTS `index_rssSources_sourceUrl` ON `${TABLE_NAME}` (`sourceUrl`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "bookmarks", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`time` INTEGER NOT NULL, `bookName` TEXT NOT NULL, `bookAuthor` TEXT NOT NULL, `chapterIndex` INTEGER NOT NULL, `chapterPos` INTEGER NOT NULL, `chapterName` TEXT NOT NULL, `bookText` TEXT NOT NULL, `content` TEXT NOT NULL, PRIMARY KEY(`time`))", - "fields": [ - { - "fieldPath": "time", - "columnName": "time", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "bookName", - "columnName": "bookName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookAuthor", - "columnName": "bookAuthor", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "chapterIndex", - "columnName": "chapterIndex", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "chapterPos", - "columnName": "chapterPos", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "chapterName", - "columnName": "chapterName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookText", - "columnName": "bookText", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "content", - "columnName": "content", - "affinity": "TEXT", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "time" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_bookmarks_bookName_bookAuthor", - "unique": false, - "columnNames": [ - "bookName", - "bookAuthor" - ], - "orders": [], - "createSql": "CREATE INDEX IF NOT EXISTS `index_bookmarks_bookName_bookAuthor` ON `${TABLE_NAME}` (`bookName`, `bookAuthor`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "rssArticles", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`origin` TEXT NOT NULL, `sort` TEXT NOT NULL, `title` TEXT NOT NULL, `order` INTEGER NOT NULL, `link` TEXT NOT NULL, `pubDate` TEXT, `description` TEXT, `content` TEXT, `image` TEXT, `read` INTEGER NOT NULL, `variable` TEXT, PRIMARY KEY(`origin`, `link`))", - "fields": [ - { - "fieldPath": "origin", - "columnName": "origin", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "sort", - "columnName": "sort", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "title", - "columnName": "title", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "order", - "columnName": "order", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "link", - "columnName": "link", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "pubDate", - "columnName": "pubDate", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "description", - "columnName": "description", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "content", - "columnName": "content", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "image", - "columnName": "image", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "read", - "columnName": "read", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "variable", - "columnName": "variable", - "affinity": "TEXT", - "notNull": false - } - ], - "primaryKey": { - "columnNames": [ - "origin", - "link" - ], - "autoGenerate": false - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "rssReadRecords", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`record` TEXT NOT NULL, `read` INTEGER NOT NULL, PRIMARY KEY(`record`))", - "fields": [ - { - "fieldPath": "record", - "columnName": "record", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "read", - "columnName": "read", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "record" - ], - "autoGenerate": false - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "rssStars", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`origin` TEXT NOT NULL, `sort` TEXT NOT NULL, `title` TEXT NOT NULL, `starTime` INTEGER NOT NULL, `link` TEXT NOT NULL, `pubDate` TEXT, `description` TEXT, `content` TEXT, `image` TEXT, `variable` TEXT, PRIMARY KEY(`origin`, `link`))", - "fields": [ - { - "fieldPath": "origin", - "columnName": "origin", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "sort", - "columnName": "sort", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "title", - "columnName": "title", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "starTime", - "columnName": "starTime", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "link", - "columnName": "link", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "pubDate", - "columnName": "pubDate", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "description", - "columnName": "description", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "content", - "columnName": "content", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "image", - "columnName": "image", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "variable", - "columnName": "variable", - "affinity": "TEXT", - "notNull": false - } - ], - "primaryKey": { - "columnNames": [ - "origin", - "link" - ], - "autoGenerate": false - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "txtTocRules", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER NOT NULL, `name` TEXT NOT NULL, `rule` TEXT NOT NULL, `example` TEXT, `serialNumber` INTEGER NOT NULL, `enable` INTEGER NOT NULL, PRIMARY KEY(`id`))", - "fields": [ - { - "fieldPath": "id", - "columnName": "id", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "rule", - "columnName": "rule", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "example", - "columnName": "example", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "serialNumber", - "columnName": "serialNumber", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "enable", - "columnName": "enable", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "id" - ], - "autoGenerate": false - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "readRecord", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`deviceId` TEXT NOT NULL, `bookName` TEXT NOT NULL, `readTime` INTEGER NOT NULL DEFAULT 0, `lastRead` INTEGER NOT NULL DEFAULT 0, PRIMARY KEY(`deviceId`, `bookName`))", - "fields": [ - { - "fieldPath": "deviceId", - "columnName": "deviceId", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookName", - "columnName": "bookName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "readTime", - "columnName": "readTime", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "lastRead", - "columnName": "lastRead", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - } - ], - "primaryKey": { - "columnNames": [ - "deviceId", - "bookName" - ], - "autoGenerate": false - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "httpTTS", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER NOT NULL, `name` TEXT NOT NULL, `url` TEXT NOT NULL, `contentType` TEXT, `concurrentRate` TEXT DEFAULT '0', `loginUrl` TEXT, `loginUi` TEXT, `header` TEXT, `enabledCookieJar` INTEGER DEFAULT 0, `loginCheckJs` TEXT, `lastUpdateTime` INTEGER NOT NULL DEFAULT 0, PRIMARY KEY(`id`))", - "fields": [ - { - "fieldPath": "id", - "columnName": "id", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "url", - "columnName": "url", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "contentType", - "columnName": "contentType", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "concurrentRate", - "columnName": "concurrentRate", - "affinity": "TEXT", - "notNull": false, - "defaultValue": "'0'" - }, - { - "fieldPath": "loginUrl", - "columnName": "loginUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "loginUi", - "columnName": "loginUi", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "header", - "columnName": "header", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "enabledCookieJar", - "columnName": "enabledCookieJar", - "affinity": "INTEGER", - "notNull": false, - "defaultValue": "0" - }, - { - "fieldPath": "loginCheckJs", - "columnName": "loginCheckJs", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "lastUpdateTime", - "columnName": "lastUpdateTime", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - } - ], - "primaryKey": { - "columnNames": [ - "id" - ], - "autoGenerate": false - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "caches", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`key` TEXT NOT NULL, `value` TEXT, `deadline` INTEGER NOT NULL, PRIMARY KEY(`key`))", - "fields": [ - { - "fieldPath": "key", - "columnName": "key", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "value", - "columnName": "value", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "deadline", - "columnName": "deadline", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "key" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_caches_key", - "unique": true, - "columnNames": [ - "key" - ], - "orders": [], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_caches_key` ON `${TABLE_NAME}` (`key`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "ruleSubs", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER NOT NULL, `name` TEXT NOT NULL, `url` TEXT NOT NULL, `type` INTEGER NOT NULL, `customOrder` INTEGER NOT NULL, `autoUpdate` INTEGER NOT NULL, `update` INTEGER NOT NULL, PRIMARY KEY(`id`))", - "fields": [ - { - "fieldPath": "id", - "columnName": "id", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "url", - "columnName": "url", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "type", - "columnName": "type", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "customOrder", - "columnName": "customOrder", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "autoUpdate", - "columnName": "autoUpdate", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "update", - "columnName": "update", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "id" - ], - "autoGenerate": false - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "keyboardAssists", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`type` INTEGER NOT NULL DEFAULT 0, `key` TEXT NOT NULL DEFAULT '', `value` TEXT NOT NULL DEFAULT '', `serialNo` INTEGER NOT NULL DEFAULT 0, PRIMARY KEY(`type`, `key`))", - "fields": [ - { - "fieldPath": "type", - "columnName": "type", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "key", - "columnName": "key", - "affinity": "TEXT", - "notNull": true, - "defaultValue": "''" - }, - { - "fieldPath": "value", - "columnName": "value", - "affinity": "TEXT", - "notNull": true, - "defaultValue": "''" - }, - { - "fieldPath": "serialNo", - "columnName": "serialNo", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - } - ], - "primaryKey": { - "columnNames": [ - "type", - "key" - ], - "autoGenerate": false - }, - "indices": [], - "foreignKeys": [] - } - ], - "views": [], - "setupQueries": [ - "CREATE TABLE IF NOT EXISTS room_master_table (id INTEGER PRIMARY KEY,identity_hash TEXT)", - "INSERT OR REPLACE INTO room_master_table (id,identity_hash) VALUES(42, 'c55dac79aa9cc3dcdb72e91da4282005')" - ] - } -} \ No newline at end of file diff --git a/app/schemas/io.legado.app.data.AppDatabase/54.json b/app/schemas/io.legado.app.data.AppDatabase/54.json deleted file mode 100644 index 897fb0f7e..000000000 --- a/app/schemas/io.legado.app.data.AppDatabase/54.json +++ /dev/null @@ -1,1711 +0,0 @@ -{ - "formatVersion": 1, - "database": { - "version": 54, - "identityHash": "2b32177325d903e84445cc80ad7cbce8", - "entities": [ - { - "tableName": "books", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`bookUrl` TEXT NOT NULL DEFAULT '', `tocUrl` TEXT NOT NULL DEFAULT '', `origin` TEXT NOT NULL DEFAULT '', `originName` TEXT NOT NULL DEFAULT '', `name` TEXT NOT NULL DEFAULT '', `author` TEXT NOT NULL DEFAULT '', `kind` TEXT, `customTag` TEXT, `coverUrl` TEXT, `customCoverUrl` TEXT, `intro` TEXT, `customIntro` TEXT, `charset` TEXT, `type` INTEGER NOT NULL DEFAULT 1, `group` INTEGER NOT NULL DEFAULT 0, `latestChapterTitle` TEXT, `latestChapterTime` INTEGER NOT NULL DEFAULT 0, `lastCheckTime` INTEGER NOT NULL DEFAULT 0, `lastCheckCount` INTEGER NOT NULL DEFAULT 0, `totalChapterNum` INTEGER NOT NULL DEFAULT 0, `durChapterTitle` TEXT, `durChapterIndex` INTEGER NOT NULL DEFAULT 0, `durChapterPos` INTEGER NOT NULL DEFAULT 0, `durChapterTime` INTEGER NOT NULL DEFAULT 0, `wordCount` TEXT, `canUpdate` INTEGER NOT NULL DEFAULT 1, `order` INTEGER NOT NULL DEFAULT 0, `originOrder` INTEGER NOT NULL DEFAULT 0, `variable` TEXT, `readConfig` TEXT, PRIMARY KEY(`bookUrl`))", - "fields": [ - { - "fieldPath": "bookUrl", - "columnName": "bookUrl", - "affinity": "TEXT", - "notNull": true, - "defaultValue": "''" - }, - { - "fieldPath": "tocUrl", - "columnName": "tocUrl", - "affinity": "TEXT", - "notNull": true, - "defaultValue": "''" - }, - { - "fieldPath": "origin", - "columnName": "origin", - "affinity": "TEXT", - "notNull": true, - "defaultValue": "''" - }, - { - "fieldPath": "originName", - "columnName": "originName", - "affinity": "TEXT", - "notNull": true, - "defaultValue": "''" - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true, - "defaultValue": "''" - }, - { - "fieldPath": "author", - "columnName": "author", - "affinity": "TEXT", - "notNull": true, - "defaultValue": "''" - }, - { - "fieldPath": "kind", - "columnName": "kind", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "customTag", - "columnName": "customTag", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "coverUrl", - "columnName": "coverUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "customCoverUrl", - "columnName": "customCoverUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "intro", - "columnName": "intro", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "customIntro", - "columnName": "customIntro", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "charset", - "columnName": "charset", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "type", - "columnName": "type", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "1" - }, - { - "fieldPath": "group", - "columnName": "group", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "latestChapterTitle", - "columnName": "latestChapterTitle", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "latestChapterTime", - "columnName": "latestChapterTime", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "lastCheckTime", - "columnName": "lastCheckTime", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "lastCheckCount", - "columnName": "lastCheckCount", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "totalChapterNum", - "columnName": "totalChapterNum", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "durChapterTitle", - "columnName": "durChapterTitle", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "durChapterIndex", - "columnName": "durChapterIndex", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "durChapterPos", - "columnName": "durChapterPos", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "durChapterTime", - "columnName": "durChapterTime", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "wordCount", - "columnName": "wordCount", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "canUpdate", - "columnName": "canUpdate", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "1" - }, - { - "fieldPath": "order", - "columnName": "order", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "originOrder", - "columnName": "originOrder", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "variable", - "columnName": "variable", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "readConfig", - "columnName": "readConfig", - "affinity": "TEXT", - "notNull": false - } - ], - "primaryKey": { - "columnNames": [ - "bookUrl" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_books_name_author", - "unique": true, - "columnNames": [ - "name", - "author" - ], - "orders": [], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_books_name_author` ON `${TABLE_NAME}` (`name`, `author`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "book_groups", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`groupId` INTEGER NOT NULL, `groupName` TEXT NOT NULL, `cover` TEXT, `order` INTEGER NOT NULL, `show` INTEGER NOT NULL, PRIMARY KEY(`groupId`))", - "fields": [ - { - "fieldPath": "groupId", - "columnName": "groupId", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "groupName", - "columnName": "groupName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "cover", - "columnName": "cover", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "order", - "columnName": "order", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "show", - "columnName": "show", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "groupId" - ], - "autoGenerate": false - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "book_sources", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`bookSourceUrl` TEXT NOT NULL, `bookSourceName` TEXT NOT NULL, `bookSourceGroup` TEXT, `bookSourceType` INTEGER NOT NULL, `bookUrlPattern` TEXT, `customOrder` INTEGER NOT NULL, `enabled` INTEGER NOT NULL, `enabledExplore` INTEGER NOT NULL, `enabledReview` INTEGER, `enabledCookieJar` INTEGER DEFAULT 0, `concurrentRate` TEXT, `header` TEXT, `loginUrl` TEXT, `loginUi` TEXT, `loginCheckJs` TEXT, `coverDecodeJs` TEXT, `bookSourceComment` TEXT, `variableComment` TEXT, `lastUpdateTime` INTEGER NOT NULL, `respondTime` INTEGER NOT NULL, `weight` INTEGER NOT NULL, `exploreUrl` TEXT, `ruleExplore` TEXT, `searchUrl` TEXT, `ruleSearch` TEXT, `ruleBookInfo` TEXT, `ruleToc` TEXT, `ruleContent` TEXT, `ruleReview` TEXT, PRIMARY KEY(`bookSourceUrl`))", - "fields": [ - { - "fieldPath": "bookSourceUrl", - "columnName": "bookSourceUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookSourceName", - "columnName": "bookSourceName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookSourceGroup", - "columnName": "bookSourceGroup", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "bookSourceType", - "columnName": "bookSourceType", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "bookUrlPattern", - "columnName": "bookUrlPattern", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "customOrder", - "columnName": "customOrder", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "enabled", - "columnName": "enabled", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "enabledExplore", - "columnName": "enabledExplore", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "enabledReview", - "columnName": "enabledReview", - "affinity": "INTEGER", - "notNull": false - }, - { - "fieldPath": "enabledCookieJar", - "columnName": "enabledCookieJar", - "affinity": "INTEGER", - "notNull": false, - "defaultValue": "0" - }, - { - "fieldPath": "concurrentRate", - "columnName": "concurrentRate", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "header", - "columnName": "header", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "loginUrl", - "columnName": "loginUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "loginUi", - "columnName": "loginUi", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "loginCheckJs", - "columnName": "loginCheckJs", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "coverDecodeJs", - "columnName": "coverDecodeJs", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "bookSourceComment", - "columnName": "bookSourceComment", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "variableComment", - "columnName": "variableComment", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "lastUpdateTime", - "columnName": "lastUpdateTime", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "respondTime", - "columnName": "respondTime", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "weight", - "columnName": "weight", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "exploreUrl", - "columnName": "exploreUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleExplore", - "columnName": "ruleExplore", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "searchUrl", - "columnName": "searchUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleSearch", - "columnName": "ruleSearch", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleBookInfo", - "columnName": "ruleBookInfo", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleToc", - "columnName": "ruleToc", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleContent", - "columnName": "ruleContent", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleReview", - "columnName": "ruleReview", - "affinity": "TEXT", - "notNull": false - } - ], - "primaryKey": { - "columnNames": [ - "bookSourceUrl" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_book_sources_bookSourceUrl", - "unique": false, - "columnNames": [ - "bookSourceUrl" - ], - "orders": [], - "createSql": "CREATE INDEX IF NOT EXISTS `index_book_sources_bookSourceUrl` ON `${TABLE_NAME}` (`bookSourceUrl`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "chapters", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`url` TEXT NOT NULL, `title` TEXT NOT NULL, `isVolume` INTEGER NOT NULL, `baseUrl` TEXT NOT NULL, `bookUrl` TEXT NOT NULL, `index` INTEGER NOT NULL, `isVip` INTEGER NOT NULL, `isPay` INTEGER NOT NULL, `resourceUrl` TEXT, `tag` TEXT, `start` INTEGER, `end` INTEGER, `startFragmentId` TEXT, `endFragmentId` TEXT, `variable` TEXT, PRIMARY KEY(`url`, `bookUrl`), FOREIGN KEY(`bookUrl`) REFERENCES `books`(`bookUrl`) ON UPDATE NO ACTION ON DELETE CASCADE )", - "fields": [ - { - "fieldPath": "url", - "columnName": "url", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "title", - "columnName": "title", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "isVolume", - "columnName": "isVolume", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "baseUrl", - "columnName": "baseUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookUrl", - "columnName": "bookUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "index", - "columnName": "index", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "isVip", - "columnName": "isVip", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "isPay", - "columnName": "isPay", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "resourceUrl", - "columnName": "resourceUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "tag", - "columnName": "tag", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "start", - "columnName": "start", - "affinity": "INTEGER", - "notNull": false - }, - { - "fieldPath": "end", - "columnName": "end", - "affinity": "INTEGER", - "notNull": false - }, - { - "fieldPath": "startFragmentId", - "columnName": "startFragmentId", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "endFragmentId", - "columnName": "endFragmentId", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "variable", - "columnName": "variable", - "affinity": "TEXT", - "notNull": false - } - ], - "primaryKey": { - "columnNames": [ - "url", - "bookUrl" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_chapters_bookUrl", - "unique": false, - "columnNames": [ - "bookUrl" - ], - "orders": [], - "createSql": "CREATE INDEX IF NOT EXISTS `index_chapters_bookUrl` ON `${TABLE_NAME}` (`bookUrl`)" - }, - { - "name": "index_chapters_bookUrl_index", - "unique": true, - "columnNames": [ - "bookUrl", - "index" - ], - "orders": [], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_chapters_bookUrl_index` ON `${TABLE_NAME}` (`bookUrl`, `index`)" - } - ], - "foreignKeys": [ - { - "table": "books", - "onDelete": "CASCADE", - "onUpdate": "NO ACTION", - "columns": [ - "bookUrl" - ], - "referencedColumns": [ - "bookUrl" - ] - } - ] - }, - { - "tableName": "replace_rules", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, `name` TEXT NOT NULL DEFAULT '', `group` TEXT, `pattern` TEXT NOT NULL DEFAULT '', `replacement` TEXT NOT NULL DEFAULT '', `scope` TEXT, `scopeTitle` INTEGER NOT NULL DEFAULT 0, `scopeContent` INTEGER NOT NULL DEFAULT 1, `isEnabled` INTEGER NOT NULL DEFAULT 1, `isRegex` INTEGER NOT NULL DEFAULT 1, `timeoutMillisecond` INTEGER NOT NULL DEFAULT 3000, `sortOrder` INTEGER NOT NULL DEFAULT 0)", - "fields": [ - { - "fieldPath": "id", - "columnName": "id", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true, - "defaultValue": "''" - }, - { - "fieldPath": "group", - "columnName": "group", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "pattern", - "columnName": "pattern", - "affinity": "TEXT", - "notNull": true, - "defaultValue": "''" - }, - { - "fieldPath": "replacement", - "columnName": "replacement", - "affinity": "TEXT", - "notNull": true, - "defaultValue": "''" - }, - { - "fieldPath": "scope", - "columnName": "scope", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "scopeTitle", - "columnName": "scopeTitle", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "scopeContent", - "columnName": "scopeContent", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "1" - }, - { - "fieldPath": "isEnabled", - "columnName": "isEnabled", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "1" - }, - { - "fieldPath": "isRegex", - "columnName": "isRegex", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "1" - }, - { - "fieldPath": "timeoutMillisecond", - "columnName": "timeoutMillisecond", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "3000" - }, - { - "fieldPath": "order", - "columnName": "sortOrder", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - } - ], - "primaryKey": { - "columnNames": [ - "id" - ], - "autoGenerate": true - }, - "indices": [ - { - "name": "index_replace_rules_id", - "unique": false, - "columnNames": [ - "id" - ], - "orders": [], - "createSql": "CREATE INDEX IF NOT EXISTS `index_replace_rules_id` ON `${TABLE_NAME}` (`id`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "searchBooks", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`bookUrl` TEXT NOT NULL, `origin` TEXT NOT NULL, `originName` TEXT NOT NULL, `type` INTEGER NOT NULL, `name` TEXT NOT NULL, `author` TEXT NOT NULL, `kind` TEXT, `coverUrl` TEXT, `intro` TEXT, `wordCount` TEXT, `latestChapterTitle` TEXT, `tocUrl` TEXT NOT NULL, `time` INTEGER NOT NULL, `variable` TEXT, `originOrder` INTEGER NOT NULL, PRIMARY KEY(`bookUrl`), FOREIGN KEY(`origin`) REFERENCES `book_sources`(`bookSourceUrl`) ON UPDATE NO ACTION ON DELETE CASCADE )", - "fields": [ - { - "fieldPath": "bookUrl", - "columnName": "bookUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "origin", - "columnName": "origin", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "originName", - "columnName": "originName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "type", - "columnName": "type", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "author", - "columnName": "author", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "kind", - "columnName": "kind", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "coverUrl", - "columnName": "coverUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "intro", - "columnName": "intro", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "wordCount", - "columnName": "wordCount", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "latestChapterTitle", - "columnName": "latestChapterTitle", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "tocUrl", - "columnName": "tocUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "time", - "columnName": "time", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "variable", - "columnName": "variable", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "originOrder", - "columnName": "originOrder", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "bookUrl" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_searchBooks_bookUrl", - "unique": true, - "columnNames": [ - "bookUrl" - ], - "orders": [], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_searchBooks_bookUrl` ON `${TABLE_NAME}` (`bookUrl`)" - }, - { - "name": "index_searchBooks_origin", - "unique": false, - "columnNames": [ - "origin" - ], - "orders": [], - "createSql": "CREATE INDEX IF NOT EXISTS `index_searchBooks_origin` ON `${TABLE_NAME}` (`origin`)" - } - ], - "foreignKeys": [ - { - "table": "book_sources", - "onDelete": "CASCADE", - "onUpdate": "NO ACTION", - "columns": [ - "origin" - ], - "referencedColumns": [ - "bookSourceUrl" - ] - } - ] - }, - { - "tableName": "search_keywords", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`word` TEXT NOT NULL, `usage` INTEGER NOT NULL, `lastUseTime` INTEGER NOT NULL, PRIMARY KEY(`word`))", - "fields": [ - { - "fieldPath": "word", - "columnName": "word", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "usage", - "columnName": "usage", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "lastUseTime", - "columnName": "lastUseTime", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "word" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_search_keywords_word", - "unique": true, - "columnNames": [ - "word" - ], - "orders": [], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_search_keywords_word` ON `${TABLE_NAME}` (`word`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "cookies", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`url` TEXT NOT NULL, `cookie` TEXT NOT NULL, PRIMARY KEY(`url`))", - "fields": [ - { - "fieldPath": "url", - "columnName": "url", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "cookie", - "columnName": "cookie", - "affinity": "TEXT", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "url" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_cookies_url", - "unique": true, - "columnNames": [ - "url" - ], - "orders": [], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_cookies_url` ON `${TABLE_NAME}` (`url`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "rssSources", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`sourceUrl` TEXT NOT NULL, `sourceName` TEXT NOT NULL, `sourceIcon` TEXT NOT NULL, `sourceGroup` TEXT, `sourceComment` TEXT, `enabled` INTEGER NOT NULL, `variableComment` TEXT, `enabledCookieJar` INTEGER DEFAULT 0, `concurrentRate` TEXT, `header` TEXT, `loginUrl` TEXT, `loginUi` TEXT, `loginCheckJs` TEXT, `coverDecodeJs` TEXT, `sortUrl` TEXT, `singleUrl` INTEGER NOT NULL, `articleStyle` INTEGER NOT NULL, `ruleArticles` TEXT, `ruleNextPage` TEXT, `ruleTitle` TEXT, `rulePubDate` TEXT, `ruleDescription` TEXT, `ruleImage` TEXT, `ruleLink` TEXT, `ruleContent` TEXT, `style` TEXT, `enableJs` INTEGER NOT NULL, `loadWithBaseUrl` INTEGER NOT NULL, `lastUpdateTime` INTEGER NOT NULL DEFAULT 0, `customOrder` INTEGER NOT NULL, PRIMARY KEY(`sourceUrl`))", - "fields": [ - { - "fieldPath": "sourceUrl", - "columnName": "sourceUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "sourceName", - "columnName": "sourceName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "sourceIcon", - "columnName": "sourceIcon", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "sourceGroup", - "columnName": "sourceGroup", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "sourceComment", - "columnName": "sourceComment", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "enabled", - "columnName": "enabled", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "variableComment", - "columnName": "variableComment", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "enabledCookieJar", - "columnName": "enabledCookieJar", - "affinity": "INTEGER", - "notNull": false, - "defaultValue": "0" - }, - { - "fieldPath": "concurrentRate", - "columnName": "concurrentRate", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "header", - "columnName": "header", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "loginUrl", - "columnName": "loginUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "loginUi", - "columnName": "loginUi", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "loginCheckJs", - "columnName": "loginCheckJs", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "coverDecodeJs", - "columnName": "coverDecodeJs", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "sortUrl", - "columnName": "sortUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "singleUrl", - "columnName": "singleUrl", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "articleStyle", - "columnName": "articleStyle", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "ruleArticles", - "columnName": "ruleArticles", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleNextPage", - "columnName": "ruleNextPage", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleTitle", - "columnName": "ruleTitle", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "rulePubDate", - "columnName": "rulePubDate", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleDescription", - "columnName": "ruleDescription", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleImage", - "columnName": "ruleImage", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleLink", - "columnName": "ruleLink", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleContent", - "columnName": "ruleContent", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "style", - "columnName": "style", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "enableJs", - "columnName": "enableJs", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "loadWithBaseUrl", - "columnName": "loadWithBaseUrl", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "lastUpdateTime", - "columnName": "lastUpdateTime", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "customOrder", - "columnName": "customOrder", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "sourceUrl" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_rssSources_sourceUrl", - "unique": false, - "columnNames": [ - "sourceUrl" - ], - "orders": [], - "createSql": "CREATE INDEX IF NOT EXISTS `index_rssSources_sourceUrl` ON `${TABLE_NAME}` (`sourceUrl`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "bookmarks", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`time` INTEGER NOT NULL, `bookName` TEXT NOT NULL, `bookAuthor` TEXT NOT NULL, `chapterIndex` INTEGER NOT NULL, `chapterPos` INTEGER NOT NULL, `chapterName` TEXT NOT NULL, `bookText` TEXT NOT NULL, `content` TEXT NOT NULL, PRIMARY KEY(`time`))", - "fields": [ - { - "fieldPath": "time", - "columnName": "time", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "bookName", - "columnName": "bookName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookAuthor", - "columnName": "bookAuthor", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "chapterIndex", - "columnName": "chapterIndex", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "chapterPos", - "columnName": "chapterPos", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "chapterName", - "columnName": "chapterName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookText", - "columnName": "bookText", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "content", - "columnName": "content", - "affinity": "TEXT", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "time" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_bookmarks_bookName_bookAuthor", - "unique": false, - "columnNames": [ - "bookName", - "bookAuthor" - ], - "orders": [], - "createSql": "CREATE INDEX IF NOT EXISTS `index_bookmarks_bookName_bookAuthor` ON `${TABLE_NAME}` (`bookName`, `bookAuthor`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "rssArticles", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`origin` TEXT NOT NULL, `sort` TEXT NOT NULL, `title` TEXT NOT NULL, `order` INTEGER NOT NULL, `link` TEXT NOT NULL, `pubDate` TEXT, `description` TEXT, `content` TEXT, `image` TEXT, `read` INTEGER NOT NULL, `variable` TEXT, PRIMARY KEY(`origin`, `link`))", - "fields": [ - { - "fieldPath": "origin", - "columnName": "origin", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "sort", - "columnName": "sort", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "title", - "columnName": "title", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "order", - "columnName": "order", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "link", - "columnName": "link", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "pubDate", - "columnName": "pubDate", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "description", - "columnName": "description", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "content", - "columnName": "content", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "image", - "columnName": "image", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "read", - "columnName": "read", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "variable", - "columnName": "variable", - "affinity": "TEXT", - "notNull": false - } - ], - "primaryKey": { - "columnNames": [ - "origin", - "link" - ], - "autoGenerate": false - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "rssReadRecords", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`record` TEXT NOT NULL, `read` INTEGER NOT NULL, PRIMARY KEY(`record`))", - "fields": [ - { - "fieldPath": "record", - "columnName": "record", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "read", - "columnName": "read", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "record" - ], - "autoGenerate": false - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "rssStars", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`origin` TEXT NOT NULL, `sort` TEXT NOT NULL, `title` TEXT NOT NULL, `starTime` INTEGER NOT NULL, `link` TEXT NOT NULL, `pubDate` TEXT, `description` TEXT, `content` TEXT, `image` TEXT, `variable` TEXT, PRIMARY KEY(`origin`, `link`))", - "fields": [ - { - "fieldPath": "origin", - "columnName": "origin", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "sort", - "columnName": "sort", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "title", - "columnName": "title", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "starTime", - "columnName": "starTime", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "link", - "columnName": "link", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "pubDate", - "columnName": "pubDate", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "description", - "columnName": "description", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "content", - "columnName": "content", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "image", - "columnName": "image", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "variable", - "columnName": "variable", - "affinity": "TEXT", - "notNull": false - } - ], - "primaryKey": { - "columnNames": [ - "origin", - "link" - ], - "autoGenerate": false - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "txtTocRules", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER NOT NULL, `name` TEXT NOT NULL, `rule` TEXT NOT NULL, `example` TEXT, `serialNumber` INTEGER NOT NULL, `enable` INTEGER NOT NULL, PRIMARY KEY(`id`))", - "fields": [ - { - "fieldPath": "id", - "columnName": "id", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "rule", - "columnName": "rule", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "example", - "columnName": "example", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "serialNumber", - "columnName": "serialNumber", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "enable", - "columnName": "enable", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "id" - ], - "autoGenerate": false - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "readRecord", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`deviceId` TEXT NOT NULL, `bookName` TEXT NOT NULL, `readTime` INTEGER NOT NULL DEFAULT 0, `lastRead` INTEGER NOT NULL DEFAULT 0, PRIMARY KEY(`deviceId`, `bookName`))", - "fields": [ - { - "fieldPath": "deviceId", - "columnName": "deviceId", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookName", - "columnName": "bookName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "readTime", - "columnName": "readTime", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "lastRead", - "columnName": "lastRead", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - } - ], - "primaryKey": { - "columnNames": [ - "deviceId", - "bookName" - ], - "autoGenerate": false - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "httpTTS", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER NOT NULL, `name` TEXT NOT NULL, `url` TEXT NOT NULL, `contentType` TEXT, `concurrentRate` TEXT DEFAULT '0', `loginUrl` TEXT, `loginUi` TEXT, `header` TEXT, `enabledCookieJar` INTEGER DEFAULT 0, `loginCheckJs` TEXT, `lastUpdateTime` INTEGER NOT NULL DEFAULT 0, PRIMARY KEY(`id`))", - "fields": [ - { - "fieldPath": "id", - "columnName": "id", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "url", - "columnName": "url", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "contentType", - "columnName": "contentType", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "concurrentRate", - "columnName": "concurrentRate", - "affinity": "TEXT", - "notNull": false, - "defaultValue": "'0'" - }, - { - "fieldPath": "loginUrl", - "columnName": "loginUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "loginUi", - "columnName": "loginUi", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "header", - "columnName": "header", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "enabledCookieJar", - "columnName": "enabledCookieJar", - "affinity": "INTEGER", - "notNull": false, - "defaultValue": "0" - }, - { - "fieldPath": "loginCheckJs", - "columnName": "loginCheckJs", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "lastUpdateTime", - "columnName": "lastUpdateTime", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - } - ], - "primaryKey": { - "columnNames": [ - "id" - ], - "autoGenerate": false - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "caches", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`key` TEXT NOT NULL, `value` TEXT, `deadline` INTEGER NOT NULL, PRIMARY KEY(`key`))", - "fields": [ - { - "fieldPath": "key", - "columnName": "key", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "value", - "columnName": "value", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "deadline", - "columnName": "deadline", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "key" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_caches_key", - "unique": true, - "columnNames": [ - "key" - ], - "orders": [], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_caches_key` ON `${TABLE_NAME}` (`key`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "ruleSubs", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER NOT NULL, `name` TEXT NOT NULL, `url` TEXT NOT NULL, `type` INTEGER NOT NULL, `customOrder` INTEGER NOT NULL, `autoUpdate` INTEGER NOT NULL, `update` INTEGER NOT NULL, PRIMARY KEY(`id`))", - "fields": [ - { - "fieldPath": "id", - "columnName": "id", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "url", - "columnName": "url", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "type", - "columnName": "type", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "customOrder", - "columnName": "customOrder", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "autoUpdate", - "columnName": "autoUpdate", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "update", - "columnName": "update", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "id" - ], - "autoGenerate": false - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "keyboardAssists", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`type` INTEGER NOT NULL DEFAULT 0, `key` TEXT NOT NULL DEFAULT '', `value` TEXT NOT NULL DEFAULT '', `serialNo` INTEGER NOT NULL DEFAULT 0, PRIMARY KEY(`type`, `key`))", - "fields": [ - { - "fieldPath": "type", - "columnName": "type", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "key", - "columnName": "key", - "affinity": "TEXT", - "notNull": true, - "defaultValue": "''" - }, - { - "fieldPath": "value", - "columnName": "value", - "affinity": "TEXT", - "notNull": true, - "defaultValue": "''" - }, - { - "fieldPath": "serialNo", - "columnName": "serialNo", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - } - ], - "primaryKey": { - "columnNames": [ - "type", - "key" - ], - "autoGenerate": false - }, - "indices": [], - "foreignKeys": [] - } - ], - "views": [], - "setupQueries": [ - "CREATE TABLE IF NOT EXISTS room_master_table (id INTEGER PRIMARY KEY,identity_hash TEXT)", - "INSERT OR REPLACE INTO room_master_table (id,identity_hash) VALUES(42, '2b32177325d903e84445cc80ad7cbce8')" - ] - } -} \ No newline at end of file diff --git a/app/schemas/io.legado.app.data.AppDatabase/55.json b/app/schemas/io.legado.app.data.AppDatabase/55.json deleted file mode 100644 index c4d25304c..000000000 --- a/app/schemas/io.legado.app.data.AppDatabase/55.json +++ /dev/null @@ -1,1711 +0,0 @@ -{ - "formatVersion": 1, - "database": { - "version": 55, - "identityHash": "7dc698b0bf395df06befb13d41df87b9", - "entities": [ - { - "tableName": "books", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`bookUrl` TEXT NOT NULL DEFAULT '', `tocUrl` TEXT NOT NULL DEFAULT '', `origin` TEXT NOT NULL DEFAULT 'loc_book', `originName` TEXT NOT NULL DEFAULT '', `name` TEXT NOT NULL DEFAULT '', `author` TEXT NOT NULL DEFAULT '', `kind` TEXT, `customTag` TEXT, `coverUrl` TEXT, `customCoverUrl` TEXT, `intro` TEXT, `customIntro` TEXT, `charset` TEXT, `type` INTEGER NOT NULL DEFAULT 0, `group` INTEGER NOT NULL DEFAULT 0, `latestChapterTitle` TEXT, `latestChapterTime` INTEGER NOT NULL DEFAULT 0, `lastCheckTime` INTEGER NOT NULL DEFAULT 0, `lastCheckCount` INTEGER NOT NULL DEFAULT 0, `totalChapterNum` INTEGER NOT NULL DEFAULT 0, `durChapterTitle` TEXT, `durChapterIndex` INTEGER NOT NULL DEFAULT 0, `durChapterPos` INTEGER NOT NULL DEFAULT 0, `durChapterTime` INTEGER NOT NULL DEFAULT 0, `wordCount` TEXT, `canUpdate` INTEGER NOT NULL DEFAULT 1, `order` INTEGER NOT NULL DEFAULT 0, `originOrder` INTEGER NOT NULL DEFAULT 0, `variable` TEXT, `readConfig` TEXT, PRIMARY KEY(`bookUrl`))", - "fields": [ - { - "fieldPath": "bookUrl", - "columnName": "bookUrl", - "affinity": "TEXT", - "notNull": true, - "defaultValue": "''" - }, - { - "fieldPath": "tocUrl", - "columnName": "tocUrl", - "affinity": "TEXT", - "notNull": true, - "defaultValue": "''" - }, - { - "fieldPath": "origin", - "columnName": "origin", - "affinity": "TEXT", - "notNull": true, - "defaultValue": "'loc_book'" - }, - { - "fieldPath": "originName", - "columnName": "originName", - "affinity": "TEXT", - "notNull": true, - "defaultValue": "''" - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true, - "defaultValue": "''" - }, - { - "fieldPath": "author", - "columnName": "author", - "affinity": "TEXT", - "notNull": true, - "defaultValue": "''" - }, - { - "fieldPath": "kind", - "columnName": "kind", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "customTag", - "columnName": "customTag", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "coverUrl", - "columnName": "coverUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "customCoverUrl", - "columnName": "customCoverUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "intro", - "columnName": "intro", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "customIntro", - "columnName": "customIntro", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "charset", - "columnName": "charset", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "type", - "columnName": "type", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "group", - "columnName": "group", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "latestChapterTitle", - "columnName": "latestChapterTitle", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "latestChapterTime", - "columnName": "latestChapterTime", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "lastCheckTime", - "columnName": "lastCheckTime", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "lastCheckCount", - "columnName": "lastCheckCount", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "totalChapterNum", - "columnName": "totalChapterNum", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "durChapterTitle", - "columnName": "durChapterTitle", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "durChapterIndex", - "columnName": "durChapterIndex", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "durChapterPos", - "columnName": "durChapterPos", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "durChapterTime", - "columnName": "durChapterTime", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "wordCount", - "columnName": "wordCount", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "canUpdate", - "columnName": "canUpdate", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "1" - }, - { - "fieldPath": "order", - "columnName": "order", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "originOrder", - "columnName": "originOrder", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "variable", - "columnName": "variable", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "readConfig", - "columnName": "readConfig", - "affinity": "TEXT", - "notNull": false - } - ], - "primaryKey": { - "columnNames": [ - "bookUrl" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_books_name_author", - "unique": true, - "columnNames": [ - "name", - "author" - ], - "orders": [], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_books_name_author` ON `${TABLE_NAME}` (`name`, `author`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "book_groups", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`groupId` INTEGER NOT NULL, `groupName` TEXT NOT NULL, `cover` TEXT, `order` INTEGER NOT NULL, `show` INTEGER NOT NULL, PRIMARY KEY(`groupId`))", - "fields": [ - { - "fieldPath": "groupId", - "columnName": "groupId", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "groupName", - "columnName": "groupName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "cover", - "columnName": "cover", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "order", - "columnName": "order", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "show", - "columnName": "show", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "groupId" - ], - "autoGenerate": false - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "book_sources", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`bookSourceUrl` TEXT NOT NULL, `bookSourceName` TEXT NOT NULL, `bookSourceGroup` TEXT, `bookSourceType` INTEGER NOT NULL, `bookUrlPattern` TEXT, `customOrder` INTEGER NOT NULL, `enabled` INTEGER NOT NULL, `enabledExplore` INTEGER NOT NULL, `enabledReview` INTEGER, `enabledCookieJar` INTEGER DEFAULT 0, `concurrentRate` TEXT, `header` TEXT, `loginUrl` TEXT, `loginUi` TEXT, `loginCheckJs` TEXT, `coverDecodeJs` TEXT, `bookSourceComment` TEXT, `variableComment` TEXT, `lastUpdateTime` INTEGER NOT NULL, `respondTime` INTEGER NOT NULL, `weight` INTEGER NOT NULL, `exploreUrl` TEXT, `ruleExplore` TEXT, `searchUrl` TEXT, `ruleSearch` TEXT, `ruleBookInfo` TEXT, `ruleToc` TEXT, `ruleContent` TEXT, `ruleReview` TEXT, PRIMARY KEY(`bookSourceUrl`))", - "fields": [ - { - "fieldPath": "bookSourceUrl", - "columnName": "bookSourceUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookSourceName", - "columnName": "bookSourceName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookSourceGroup", - "columnName": "bookSourceGroup", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "bookSourceType", - "columnName": "bookSourceType", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "bookUrlPattern", - "columnName": "bookUrlPattern", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "customOrder", - "columnName": "customOrder", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "enabled", - "columnName": "enabled", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "enabledExplore", - "columnName": "enabledExplore", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "enabledReview", - "columnName": "enabledReview", - "affinity": "INTEGER", - "notNull": false - }, - { - "fieldPath": "enabledCookieJar", - "columnName": "enabledCookieJar", - "affinity": "INTEGER", - "notNull": false, - "defaultValue": "0" - }, - { - "fieldPath": "concurrentRate", - "columnName": "concurrentRate", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "header", - "columnName": "header", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "loginUrl", - "columnName": "loginUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "loginUi", - "columnName": "loginUi", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "loginCheckJs", - "columnName": "loginCheckJs", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "coverDecodeJs", - "columnName": "coverDecodeJs", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "bookSourceComment", - "columnName": "bookSourceComment", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "variableComment", - "columnName": "variableComment", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "lastUpdateTime", - "columnName": "lastUpdateTime", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "respondTime", - "columnName": "respondTime", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "weight", - "columnName": "weight", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "exploreUrl", - "columnName": "exploreUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleExplore", - "columnName": "ruleExplore", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "searchUrl", - "columnName": "searchUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleSearch", - "columnName": "ruleSearch", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleBookInfo", - "columnName": "ruleBookInfo", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleToc", - "columnName": "ruleToc", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleContent", - "columnName": "ruleContent", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleReview", - "columnName": "ruleReview", - "affinity": "TEXT", - "notNull": false - } - ], - "primaryKey": { - "columnNames": [ - "bookSourceUrl" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_book_sources_bookSourceUrl", - "unique": false, - "columnNames": [ - "bookSourceUrl" - ], - "orders": [], - "createSql": "CREATE INDEX IF NOT EXISTS `index_book_sources_bookSourceUrl` ON `${TABLE_NAME}` (`bookSourceUrl`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "chapters", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`url` TEXT NOT NULL, `title` TEXT NOT NULL, `isVolume` INTEGER NOT NULL, `baseUrl` TEXT NOT NULL, `bookUrl` TEXT NOT NULL, `index` INTEGER NOT NULL, `isVip` INTEGER NOT NULL, `isPay` INTEGER NOT NULL, `resourceUrl` TEXT, `tag` TEXT, `start` INTEGER, `end` INTEGER, `startFragmentId` TEXT, `endFragmentId` TEXT, `variable` TEXT, PRIMARY KEY(`url`, `bookUrl`), FOREIGN KEY(`bookUrl`) REFERENCES `books`(`bookUrl`) ON UPDATE NO ACTION ON DELETE CASCADE )", - "fields": [ - { - "fieldPath": "url", - "columnName": "url", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "title", - "columnName": "title", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "isVolume", - "columnName": "isVolume", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "baseUrl", - "columnName": "baseUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookUrl", - "columnName": "bookUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "index", - "columnName": "index", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "isVip", - "columnName": "isVip", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "isPay", - "columnName": "isPay", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "resourceUrl", - "columnName": "resourceUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "tag", - "columnName": "tag", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "start", - "columnName": "start", - "affinity": "INTEGER", - "notNull": false - }, - { - "fieldPath": "end", - "columnName": "end", - "affinity": "INTEGER", - "notNull": false - }, - { - "fieldPath": "startFragmentId", - "columnName": "startFragmentId", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "endFragmentId", - "columnName": "endFragmentId", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "variable", - "columnName": "variable", - "affinity": "TEXT", - "notNull": false - } - ], - "primaryKey": { - "columnNames": [ - "url", - "bookUrl" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_chapters_bookUrl", - "unique": false, - "columnNames": [ - "bookUrl" - ], - "orders": [], - "createSql": "CREATE INDEX IF NOT EXISTS `index_chapters_bookUrl` ON `${TABLE_NAME}` (`bookUrl`)" - }, - { - "name": "index_chapters_bookUrl_index", - "unique": true, - "columnNames": [ - "bookUrl", - "index" - ], - "orders": [], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_chapters_bookUrl_index` ON `${TABLE_NAME}` (`bookUrl`, `index`)" - } - ], - "foreignKeys": [ - { - "table": "books", - "onDelete": "CASCADE", - "onUpdate": "NO ACTION", - "columns": [ - "bookUrl" - ], - "referencedColumns": [ - "bookUrl" - ] - } - ] - }, - { - "tableName": "replace_rules", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, `name` TEXT NOT NULL DEFAULT '', `group` TEXT, `pattern` TEXT NOT NULL DEFAULT '', `replacement` TEXT NOT NULL DEFAULT '', `scope` TEXT, `scopeTitle` INTEGER NOT NULL DEFAULT 0, `scopeContent` INTEGER NOT NULL DEFAULT 1, `isEnabled` INTEGER NOT NULL DEFAULT 1, `isRegex` INTEGER NOT NULL DEFAULT 1, `timeoutMillisecond` INTEGER NOT NULL DEFAULT 3000, `sortOrder` INTEGER NOT NULL DEFAULT 0)", - "fields": [ - { - "fieldPath": "id", - "columnName": "id", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true, - "defaultValue": "''" - }, - { - "fieldPath": "group", - "columnName": "group", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "pattern", - "columnName": "pattern", - "affinity": "TEXT", - "notNull": true, - "defaultValue": "''" - }, - { - "fieldPath": "replacement", - "columnName": "replacement", - "affinity": "TEXT", - "notNull": true, - "defaultValue": "''" - }, - { - "fieldPath": "scope", - "columnName": "scope", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "scopeTitle", - "columnName": "scopeTitle", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "scopeContent", - "columnName": "scopeContent", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "1" - }, - { - "fieldPath": "isEnabled", - "columnName": "isEnabled", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "1" - }, - { - "fieldPath": "isRegex", - "columnName": "isRegex", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "1" - }, - { - "fieldPath": "timeoutMillisecond", - "columnName": "timeoutMillisecond", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "3000" - }, - { - "fieldPath": "order", - "columnName": "sortOrder", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - } - ], - "primaryKey": { - "columnNames": [ - "id" - ], - "autoGenerate": true - }, - "indices": [ - { - "name": "index_replace_rules_id", - "unique": false, - "columnNames": [ - "id" - ], - "orders": [], - "createSql": "CREATE INDEX IF NOT EXISTS `index_replace_rules_id` ON `${TABLE_NAME}` (`id`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "searchBooks", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`bookUrl` TEXT NOT NULL, `origin` TEXT NOT NULL, `originName` TEXT NOT NULL, `type` INTEGER NOT NULL, `name` TEXT NOT NULL, `author` TEXT NOT NULL, `kind` TEXT, `coverUrl` TEXT, `intro` TEXT, `wordCount` TEXT, `latestChapterTitle` TEXT, `tocUrl` TEXT NOT NULL, `time` INTEGER NOT NULL, `variable` TEXT, `originOrder` INTEGER NOT NULL, PRIMARY KEY(`bookUrl`), FOREIGN KEY(`origin`) REFERENCES `book_sources`(`bookSourceUrl`) ON UPDATE NO ACTION ON DELETE CASCADE )", - "fields": [ - { - "fieldPath": "bookUrl", - "columnName": "bookUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "origin", - "columnName": "origin", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "originName", - "columnName": "originName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "type", - "columnName": "type", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "author", - "columnName": "author", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "kind", - "columnName": "kind", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "coverUrl", - "columnName": "coverUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "intro", - "columnName": "intro", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "wordCount", - "columnName": "wordCount", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "latestChapterTitle", - "columnName": "latestChapterTitle", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "tocUrl", - "columnName": "tocUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "time", - "columnName": "time", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "variable", - "columnName": "variable", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "originOrder", - "columnName": "originOrder", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "bookUrl" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_searchBooks_bookUrl", - "unique": true, - "columnNames": [ - "bookUrl" - ], - "orders": [], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_searchBooks_bookUrl` ON `${TABLE_NAME}` (`bookUrl`)" - }, - { - "name": "index_searchBooks_origin", - "unique": false, - "columnNames": [ - "origin" - ], - "orders": [], - "createSql": "CREATE INDEX IF NOT EXISTS `index_searchBooks_origin` ON `${TABLE_NAME}` (`origin`)" - } - ], - "foreignKeys": [ - { - "table": "book_sources", - "onDelete": "CASCADE", - "onUpdate": "NO ACTION", - "columns": [ - "origin" - ], - "referencedColumns": [ - "bookSourceUrl" - ] - } - ] - }, - { - "tableName": "search_keywords", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`word` TEXT NOT NULL, `usage` INTEGER NOT NULL, `lastUseTime` INTEGER NOT NULL, PRIMARY KEY(`word`))", - "fields": [ - { - "fieldPath": "word", - "columnName": "word", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "usage", - "columnName": "usage", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "lastUseTime", - "columnName": "lastUseTime", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "word" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_search_keywords_word", - "unique": true, - "columnNames": [ - "word" - ], - "orders": [], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_search_keywords_word` ON `${TABLE_NAME}` (`word`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "cookies", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`url` TEXT NOT NULL, `cookie` TEXT NOT NULL, PRIMARY KEY(`url`))", - "fields": [ - { - "fieldPath": "url", - "columnName": "url", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "cookie", - "columnName": "cookie", - "affinity": "TEXT", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "url" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_cookies_url", - "unique": true, - "columnNames": [ - "url" - ], - "orders": [], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_cookies_url` ON `${TABLE_NAME}` (`url`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "rssSources", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`sourceUrl` TEXT NOT NULL, `sourceName` TEXT NOT NULL, `sourceIcon` TEXT NOT NULL, `sourceGroup` TEXT, `sourceComment` TEXT, `enabled` INTEGER NOT NULL, `variableComment` TEXT, `enabledCookieJar` INTEGER DEFAULT 0, `concurrentRate` TEXT, `header` TEXT, `loginUrl` TEXT, `loginUi` TEXT, `loginCheckJs` TEXT, `coverDecodeJs` TEXT, `sortUrl` TEXT, `singleUrl` INTEGER NOT NULL, `articleStyle` INTEGER NOT NULL, `ruleArticles` TEXT, `ruleNextPage` TEXT, `ruleTitle` TEXT, `rulePubDate` TEXT, `ruleDescription` TEXT, `ruleImage` TEXT, `ruleLink` TEXT, `ruleContent` TEXT, `style` TEXT, `enableJs` INTEGER NOT NULL, `loadWithBaseUrl` INTEGER NOT NULL, `lastUpdateTime` INTEGER NOT NULL DEFAULT 0, `customOrder` INTEGER NOT NULL, PRIMARY KEY(`sourceUrl`))", - "fields": [ - { - "fieldPath": "sourceUrl", - "columnName": "sourceUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "sourceName", - "columnName": "sourceName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "sourceIcon", - "columnName": "sourceIcon", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "sourceGroup", - "columnName": "sourceGroup", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "sourceComment", - "columnName": "sourceComment", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "enabled", - "columnName": "enabled", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "variableComment", - "columnName": "variableComment", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "enabledCookieJar", - "columnName": "enabledCookieJar", - "affinity": "INTEGER", - "notNull": false, - "defaultValue": "0" - }, - { - "fieldPath": "concurrentRate", - "columnName": "concurrentRate", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "header", - "columnName": "header", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "loginUrl", - "columnName": "loginUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "loginUi", - "columnName": "loginUi", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "loginCheckJs", - "columnName": "loginCheckJs", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "coverDecodeJs", - "columnName": "coverDecodeJs", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "sortUrl", - "columnName": "sortUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "singleUrl", - "columnName": "singleUrl", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "articleStyle", - "columnName": "articleStyle", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "ruleArticles", - "columnName": "ruleArticles", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleNextPage", - "columnName": "ruleNextPage", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleTitle", - "columnName": "ruleTitle", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "rulePubDate", - "columnName": "rulePubDate", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleDescription", - "columnName": "ruleDescription", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleImage", - "columnName": "ruleImage", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleLink", - "columnName": "ruleLink", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleContent", - "columnName": "ruleContent", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "style", - "columnName": "style", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "enableJs", - "columnName": "enableJs", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "loadWithBaseUrl", - "columnName": "loadWithBaseUrl", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "lastUpdateTime", - "columnName": "lastUpdateTime", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "customOrder", - "columnName": "customOrder", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "sourceUrl" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_rssSources_sourceUrl", - "unique": false, - "columnNames": [ - "sourceUrl" - ], - "orders": [], - "createSql": "CREATE INDEX IF NOT EXISTS `index_rssSources_sourceUrl` ON `${TABLE_NAME}` (`sourceUrl`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "bookmarks", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`time` INTEGER NOT NULL, `bookName` TEXT NOT NULL, `bookAuthor` TEXT NOT NULL, `chapterIndex` INTEGER NOT NULL, `chapterPos` INTEGER NOT NULL, `chapterName` TEXT NOT NULL, `bookText` TEXT NOT NULL, `content` TEXT NOT NULL, PRIMARY KEY(`time`))", - "fields": [ - { - "fieldPath": "time", - "columnName": "time", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "bookName", - "columnName": "bookName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookAuthor", - "columnName": "bookAuthor", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "chapterIndex", - "columnName": "chapterIndex", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "chapterPos", - "columnName": "chapterPos", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "chapterName", - "columnName": "chapterName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookText", - "columnName": "bookText", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "content", - "columnName": "content", - "affinity": "TEXT", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "time" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_bookmarks_bookName_bookAuthor", - "unique": false, - "columnNames": [ - "bookName", - "bookAuthor" - ], - "orders": [], - "createSql": "CREATE INDEX IF NOT EXISTS `index_bookmarks_bookName_bookAuthor` ON `${TABLE_NAME}` (`bookName`, `bookAuthor`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "rssArticles", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`origin` TEXT NOT NULL, `sort` TEXT NOT NULL, `title` TEXT NOT NULL, `order` INTEGER NOT NULL, `link` TEXT NOT NULL, `pubDate` TEXT, `description` TEXT, `content` TEXT, `image` TEXT, `read` INTEGER NOT NULL, `variable` TEXT, PRIMARY KEY(`origin`, `link`))", - "fields": [ - { - "fieldPath": "origin", - "columnName": "origin", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "sort", - "columnName": "sort", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "title", - "columnName": "title", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "order", - "columnName": "order", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "link", - "columnName": "link", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "pubDate", - "columnName": "pubDate", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "description", - "columnName": "description", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "content", - "columnName": "content", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "image", - "columnName": "image", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "read", - "columnName": "read", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "variable", - "columnName": "variable", - "affinity": "TEXT", - "notNull": false - } - ], - "primaryKey": { - "columnNames": [ - "origin", - "link" - ], - "autoGenerate": false - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "rssReadRecords", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`record` TEXT NOT NULL, `read` INTEGER NOT NULL, PRIMARY KEY(`record`))", - "fields": [ - { - "fieldPath": "record", - "columnName": "record", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "read", - "columnName": "read", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "record" - ], - "autoGenerate": false - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "rssStars", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`origin` TEXT NOT NULL, `sort` TEXT NOT NULL, `title` TEXT NOT NULL, `starTime` INTEGER NOT NULL, `link` TEXT NOT NULL, `pubDate` TEXT, `description` TEXT, `content` TEXT, `image` TEXT, `variable` TEXT, PRIMARY KEY(`origin`, `link`))", - "fields": [ - { - "fieldPath": "origin", - "columnName": "origin", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "sort", - "columnName": "sort", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "title", - "columnName": "title", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "starTime", - "columnName": "starTime", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "link", - "columnName": "link", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "pubDate", - "columnName": "pubDate", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "description", - "columnName": "description", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "content", - "columnName": "content", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "image", - "columnName": "image", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "variable", - "columnName": "variable", - "affinity": "TEXT", - "notNull": false - } - ], - "primaryKey": { - "columnNames": [ - "origin", - "link" - ], - "autoGenerate": false - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "txtTocRules", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER NOT NULL, `name` TEXT NOT NULL, `rule` TEXT NOT NULL, `example` TEXT, `serialNumber` INTEGER NOT NULL, `enable` INTEGER NOT NULL, PRIMARY KEY(`id`))", - "fields": [ - { - "fieldPath": "id", - "columnName": "id", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "rule", - "columnName": "rule", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "example", - "columnName": "example", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "serialNumber", - "columnName": "serialNumber", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "enable", - "columnName": "enable", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "id" - ], - "autoGenerate": false - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "readRecord", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`deviceId` TEXT NOT NULL, `bookName` TEXT NOT NULL, `readTime` INTEGER NOT NULL DEFAULT 0, `lastRead` INTEGER NOT NULL DEFAULT 0, PRIMARY KEY(`deviceId`, `bookName`))", - "fields": [ - { - "fieldPath": "deviceId", - "columnName": "deviceId", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookName", - "columnName": "bookName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "readTime", - "columnName": "readTime", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "lastRead", - "columnName": "lastRead", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - } - ], - "primaryKey": { - "columnNames": [ - "deviceId", - "bookName" - ], - "autoGenerate": false - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "httpTTS", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER NOT NULL, `name` TEXT NOT NULL, `url` TEXT NOT NULL, `contentType` TEXT, `concurrentRate` TEXT DEFAULT '0', `loginUrl` TEXT, `loginUi` TEXT, `header` TEXT, `enabledCookieJar` INTEGER DEFAULT 0, `loginCheckJs` TEXT, `lastUpdateTime` INTEGER NOT NULL DEFAULT 0, PRIMARY KEY(`id`))", - "fields": [ - { - "fieldPath": "id", - "columnName": "id", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "url", - "columnName": "url", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "contentType", - "columnName": "contentType", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "concurrentRate", - "columnName": "concurrentRate", - "affinity": "TEXT", - "notNull": false, - "defaultValue": "'0'" - }, - { - "fieldPath": "loginUrl", - "columnName": "loginUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "loginUi", - "columnName": "loginUi", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "header", - "columnName": "header", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "enabledCookieJar", - "columnName": "enabledCookieJar", - "affinity": "INTEGER", - "notNull": false, - "defaultValue": "0" - }, - { - "fieldPath": "loginCheckJs", - "columnName": "loginCheckJs", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "lastUpdateTime", - "columnName": "lastUpdateTime", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - } - ], - "primaryKey": { - "columnNames": [ - "id" - ], - "autoGenerate": false - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "caches", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`key` TEXT NOT NULL, `value` TEXT, `deadline` INTEGER NOT NULL, PRIMARY KEY(`key`))", - "fields": [ - { - "fieldPath": "key", - "columnName": "key", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "value", - "columnName": "value", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "deadline", - "columnName": "deadline", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "key" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_caches_key", - "unique": true, - "columnNames": [ - "key" - ], - "orders": [], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_caches_key` ON `${TABLE_NAME}` (`key`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "ruleSubs", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER NOT NULL, `name` TEXT NOT NULL, `url` TEXT NOT NULL, `type` INTEGER NOT NULL, `customOrder` INTEGER NOT NULL, `autoUpdate` INTEGER NOT NULL, `update` INTEGER NOT NULL, PRIMARY KEY(`id`))", - "fields": [ - { - "fieldPath": "id", - "columnName": "id", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "url", - "columnName": "url", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "type", - "columnName": "type", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "customOrder", - "columnName": "customOrder", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "autoUpdate", - "columnName": "autoUpdate", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "update", - "columnName": "update", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "id" - ], - "autoGenerate": false - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "keyboardAssists", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`type` INTEGER NOT NULL DEFAULT 0, `key` TEXT NOT NULL DEFAULT '', `value` TEXT NOT NULL DEFAULT '', `serialNo` INTEGER NOT NULL DEFAULT 0, PRIMARY KEY(`type`, `key`))", - "fields": [ - { - "fieldPath": "type", - "columnName": "type", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "key", - "columnName": "key", - "affinity": "TEXT", - "notNull": true, - "defaultValue": "''" - }, - { - "fieldPath": "value", - "columnName": "value", - "affinity": "TEXT", - "notNull": true, - "defaultValue": "''" - }, - { - "fieldPath": "serialNo", - "columnName": "serialNo", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - } - ], - "primaryKey": { - "columnNames": [ - "type", - "key" - ], - "autoGenerate": false - }, - "indices": [], - "foreignKeys": [] - } - ], - "views": [], - "setupQueries": [ - "CREATE TABLE IF NOT EXISTS room_master_table (id INTEGER PRIMARY KEY,identity_hash TEXT)", - "INSERT OR REPLACE INTO room_master_table (id,identity_hash) VALUES(42, '7dc698b0bf395df06befb13d41df87b9')" - ] - } -} \ No newline at end of file diff --git a/app/schemas/io.legado.app.data.AppDatabase/56.json b/app/schemas/io.legado.app.data.AppDatabase/56.json deleted file mode 100644 index c4959f96f..000000000 --- a/app/schemas/io.legado.app.data.AppDatabase/56.json +++ /dev/null @@ -1,1711 +0,0 @@ -{ - "formatVersion": 1, - "database": { - "version": 56, - "identityHash": "7dc698b0bf395df06befb13d41df87b9", - "entities": [ - { - "tableName": "books", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`bookUrl` TEXT NOT NULL DEFAULT '', `tocUrl` TEXT NOT NULL DEFAULT '', `origin` TEXT NOT NULL DEFAULT 'loc_book', `originName` TEXT NOT NULL DEFAULT '', `name` TEXT NOT NULL DEFAULT '', `author` TEXT NOT NULL DEFAULT '', `kind` TEXT, `customTag` TEXT, `coverUrl` TEXT, `customCoverUrl` TEXT, `intro` TEXT, `customIntro` TEXT, `charset` TEXT, `type` INTEGER NOT NULL DEFAULT 0, `group` INTEGER NOT NULL DEFAULT 0, `latestChapterTitle` TEXT, `latestChapterTime` INTEGER NOT NULL DEFAULT 0, `lastCheckTime` INTEGER NOT NULL DEFAULT 0, `lastCheckCount` INTEGER NOT NULL DEFAULT 0, `totalChapterNum` INTEGER NOT NULL DEFAULT 0, `durChapterTitle` TEXT, `durChapterIndex` INTEGER NOT NULL DEFAULT 0, `durChapterPos` INTEGER NOT NULL DEFAULT 0, `durChapterTime` INTEGER NOT NULL DEFAULT 0, `wordCount` TEXT, `canUpdate` INTEGER NOT NULL DEFAULT 1, `order` INTEGER NOT NULL DEFAULT 0, `originOrder` INTEGER NOT NULL DEFAULT 0, `variable` TEXT, `readConfig` TEXT, PRIMARY KEY(`bookUrl`))", - "fields": [ - { - "fieldPath": "bookUrl", - "columnName": "bookUrl", - "affinity": "TEXT", - "notNull": true, - "defaultValue": "''" - }, - { - "fieldPath": "tocUrl", - "columnName": "tocUrl", - "affinity": "TEXT", - "notNull": true, - "defaultValue": "''" - }, - { - "fieldPath": "origin", - "columnName": "origin", - "affinity": "TEXT", - "notNull": true, - "defaultValue": "'loc_book'" - }, - { - "fieldPath": "originName", - "columnName": "originName", - "affinity": "TEXT", - "notNull": true, - "defaultValue": "''" - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true, - "defaultValue": "''" - }, - { - "fieldPath": "author", - "columnName": "author", - "affinity": "TEXT", - "notNull": true, - "defaultValue": "''" - }, - { - "fieldPath": "kind", - "columnName": "kind", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "customTag", - "columnName": "customTag", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "coverUrl", - "columnName": "coverUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "customCoverUrl", - "columnName": "customCoverUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "intro", - "columnName": "intro", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "customIntro", - "columnName": "customIntro", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "charset", - "columnName": "charset", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "type", - "columnName": "type", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "group", - "columnName": "group", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "latestChapterTitle", - "columnName": "latestChapterTitle", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "latestChapterTime", - "columnName": "latestChapterTime", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "lastCheckTime", - "columnName": "lastCheckTime", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "lastCheckCount", - "columnName": "lastCheckCount", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "totalChapterNum", - "columnName": "totalChapterNum", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "durChapterTitle", - "columnName": "durChapterTitle", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "durChapterIndex", - "columnName": "durChapterIndex", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "durChapterPos", - "columnName": "durChapterPos", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "durChapterTime", - "columnName": "durChapterTime", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "wordCount", - "columnName": "wordCount", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "canUpdate", - "columnName": "canUpdate", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "1" - }, - { - "fieldPath": "order", - "columnName": "order", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "originOrder", - "columnName": "originOrder", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "variable", - "columnName": "variable", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "readConfig", - "columnName": "readConfig", - "affinity": "TEXT", - "notNull": false - } - ], - "primaryKey": { - "columnNames": [ - "bookUrl" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_books_name_author", - "unique": true, - "columnNames": [ - "name", - "author" - ], - "orders": [], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_books_name_author` ON `${TABLE_NAME}` (`name`, `author`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "book_groups", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`groupId` INTEGER NOT NULL, `groupName` TEXT NOT NULL, `cover` TEXT, `order` INTEGER NOT NULL, `show` INTEGER NOT NULL, PRIMARY KEY(`groupId`))", - "fields": [ - { - "fieldPath": "groupId", - "columnName": "groupId", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "groupName", - "columnName": "groupName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "cover", - "columnName": "cover", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "order", - "columnName": "order", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "show", - "columnName": "show", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "groupId" - ], - "autoGenerate": false - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "book_sources", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`bookSourceUrl` TEXT NOT NULL, `bookSourceName` TEXT NOT NULL, `bookSourceGroup` TEXT, `bookSourceType` INTEGER NOT NULL, `bookUrlPattern` TEXT, `customOrder` INTEGER NOT NULL, `enabled` INTEGER NOT NULL, `enabledExplore` INTEGER NOT NULL, `enabledReview` INTEGER, `enabledCookieJar` INTEGER DEFAULT 0, `concurrentRate` TEXT, `header` TEXT, `loginUrl` TEXT, `loginUi` TEXT, `loginCheckJs` TEXT, `coverDecodeJs` TEXT, `bookSourceComment` TEXT, `variableComment` TEXT, `lastUpdateTime` INTEGER NOT NULL, `respondTime` INTEGER NOT NULL, `weight` INTEGER NOT NULL, `exploreUrl` TEXT, `ruleExplore` TEXT, `searchUrl` TEXT, `ruleSearch` TEXT, `ruleBookInfo` TEXT, `ruleToc` TEXT, `ruleContent` TEXT, `ruleReview` TEXT, PRIMARY KEY(`bookSourceUrl`))", - "fields": [ - { - "fieldPath": "bookSourceUrl", - "columnName": "bookSourceUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookSourceName", - "columnName": "bookSourceName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookSourceGroup", - "columnName": "bookSourceGroup", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "bookSourceType", - "columnName": "bookSourceType", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "bookUrlPattern", - "columnName": "bookUrlPattern", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "customOrder", - "columnName": "customOrder", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "enabled", - "columnName": "enabled", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "enabledExplore", - "columnName": "enabledExplore", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "enabledReview", - "columnName": "enabledReview", - "affinity": "INTEGER", - "notNull": false - }, - { - "fieldPath": "enabledCookieJar", - "columnName": "enabledCookieJar", - "affinity": "INTEGER", - "notNull": false, - "defaultValue": "0" - }, - { - "fieldPath": "concurrentRate", - "columnName": "concurrentRate", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "header", - "columnName": "header", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "loginUrl", - "columnName": "loginUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "loginUi", - "columnName": "loginUi", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "loginCheckJs", - "columnName": "loginCheckJs", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "coverDecodeJs", - "columnName": "coverDecodeJs", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "bookSourceComment", - "columnName": "bookSourceComment", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "variableComment", - "columnName": "variableComment", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "lastUpdateTime", - "columnName": "lastUpdateTime", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "respondTime", - "columnName": "respondTime", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "weight", - "columnName": "weight", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "exploreUrl", - "columnName": "exploreUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleExplore", - "columnName": "ruleExplore", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "searchUrl", - "columnName": "searchUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleSearch", - "columnName": "ruleSearch", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleBookInfo", - "columnName": "ruleBookInfo", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleToc", - "columnName": "ruleToc", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleContent", - "columnName": "ruleContent", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleReview", - "columnName": "ruleReview", - "affinity": "TEXT", - "notNull": false - } - ], - "primaryKey": { - "columnNames": [ - "bookSourceUrl" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_book_sources_bookSourceUrl", - "unique": false, - "columnNames": [ - "bookSourceUrl" - ], - "orders": [], - "createSql": "CREATE INDEX IF NOT EXISTS `index_book_sources_bookSourceUrl` ON `${TABLE_NAME}` (`bookSourceUrl`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "chapters", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`url` TEXT NOT NULL, `title` TEXT NOT NULL, `isVolume` INTEGER NOT NULL, `baseUrl` TEXT NOT NULL, `bookUrl` TEXT NOT NULL, `index` INTEGER NOT NULL, `isVip` INTEGER NOT NULL, `isPay` INTEGER NOT NULL, `resourceUrl` TEXT, `tag` TEXT, `start` INTEGER, `end` INTEGER, `startFragmentId` TEXT, `endFragmentId` TEXT, `variable` TEXT, PRIMARY KEY(`url`, `bookUrl`), FOREIGN KEY(`bookUrl`) REFERENCES `books`(`bookUrl`) ON UPDATE NO ACTION ON DELETE CASCADE )", - "fields": [ - { - "fieldPath": "url", - "columnName": "url", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "title", - "columnName": "title", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "isVolume", - "columnName": "isVolume", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "baseUrl", - "columnName": "baseUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookUrl", - "columnName": "bookUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "index", - "columnName": "index", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "isVip", - "columnName": "isVip", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "isPay", - "columnName": "isPay", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "resourceUrl", - "columnName": "resourceUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "tag", - "columnName": "tag", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "start", - "columnName": "start", - "affinity": "INTEGER", - "notNull": false - }, - { - "fieldPath": "end", - "columnName": "end", - "affinity": "INTEGER", - "notNull": false - }, - { - "fieldPath": "startFragmentId", - "columnName": "startFragmentId", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "endFragmentId", - "columnName": "endFragmentId", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "variable", - "columnName": "variable", - "affinity": "TEXT", - "notNull": false - } - ], - "primaryKey": { - "columnNames": [ - "url", - "bookUrl" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_chapters_bookUrl", - "unique": false, - "columnNames": [ - "bookUrl" - ], - "orders": [], - "createSql": "CREATE INDEX IF NOT EXISTS `index_chapters_bookUrl` ON `${TABLE_NAME}` (`bookUrl`)" - }, - { - "name": "index_chapters_bookUrl_index", - "unique": true, - "columnNames": [ - "bookUrl", - "index" - ], - "orders": [], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_chapters_bookUrl_index` ON `${TABLE_NAME}` (`bookUrl`, `index`)" - } - ], - "foreignKeys": [ - { - "table": "books", - "onDelete": "CASCADE", - "onUpdate": "NO ACTION", - "columns": [ - "bookUrl" - ], - "referencedColumns": [ - "bookUrl" - ] - } - ] - }, - { - "tableName": "replace_rules", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, `name` TEXT NOT NULL DEFAULT '', `group` TEXT, `pattern` TEXT NOT NULL DEFAULT '', `replacement` TEXT NOT NULL DEFAULT '', `scope` TEXT, `scopeTitle` INTEGER NOT NULL DEFAULT 0, `scopeContent` INTEGER NOT NULL DEFAULT 1, `isEnabled` INTEGER NOT NULL DEFAULT 1, `isRegex` INTEGER NOT NULL DEFAULT 1, `timeoutMillisecond` INTEGER NOT NULL DEFAULT 3000, `sortOrder` INTEGER NOT NULL DEFAULT 0)", - "fields": [ - { - "fieldPath": "id", - "columnName": "id", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true, - "defaultValue": "''" - }, - { - "fieldPath": "group", - "columnName": "group", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "pattern", - "columnName": "pattern", - "affinity": "TEXT", - "notNull": true, - "defaultValue": "''" - }, - { - "fieldPath": "replacement", - "columnName": "replacement", - "affinity": "TEXT", - "notNull": true, - "defaultValue": "''" - }, - { - "fieldPath": "scope", - "columnName": "scope", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "scopeTitle", - "columnName": "scopeTitle", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "scopeContent", - "columnName": "scopeContent", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "1" - }, - { - "fieldPath": "isEnabled", - "columnName": "isEnabled", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "1" - }, - { - "fieldPath": "isRegex", - "columnName": "isRegex", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "1" - }, - { - "fieldPath": "timeoutMillisecond", - "columnName": "timeoutMillisecond", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "3000" - }, - { - "fieldPath": "order", - "columnName": "sortOrder", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - } - ], - "primaryKey": { - "columnNames": [ - "id" - ], - "autoGenerate": true - }, - "indices": [ - { - "name": "index_replace_rules_id", - "unique": false, - "columnNames": [ - "id" - ], - "orders": [], - "createSql": "CREATE INDEX IF NOT EXISTS `index_replace_rules_id` ON `${TABLE_NAME}` (`id`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "searchBooks", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`bookUrl` TEXT NOT NULL, `origin` TEXT NOT NULL, `originName` TEXT NOT NULL, `type` INTEGER NOT NULL, `name` TEXT NOT NULL, `author` TEXT NOT NULL, `kind` TEXT, `coverUrl` TEXT, `intro` TEXT, `wordCount` TEXT, `latestChapterTitle` TEXT, `tocUrl` TEXT NOT NULL, `time` INTEGER NOT NULL, `variable` TEXT, `originOrder` INTEGER NOT NULL, PRIMARY KEY(`bookUrl`), FOREIGN KEY(`origin`) REFERENCES `book_sources`(`bookSourceUrl`) ON UPDATE NO ACTION ON DELETE CASCADE )", - "fields": [ - { - "fieldPath": "bookUrl", - "columnName": "bookUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "origin", - "columnName": "origin", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "originName", - "columnName": "originName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "type", - "columnName": "type", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "author", - "columnName": "author", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "kind", - "columnName": "kind", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "coverUrl", - "columnName": "coverUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "intro", - "columnName": "intro", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "wordCount", - "columnName": "wordCount", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "latestChapterTitle", - "columnName": "latestChapterTitle", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "tocUrl", - "columnName": "tocUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "time", - "columnName": "time", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "variable", - "columnName": "variable", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "originOrder", - "columnName": "originOrder", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "bookUrl" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_searchBooks_bookUrl", - "unique": true, - "columnNames": [ - "bookUrl" - ], - "orders": [], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_searchBooks_bookUrl` ON `${TABLE_NAME}` (`bookUrl`)" - }, - { - "name": "index_searchBooks_origin", - "unique": false, - "columnNames": [ - "origin" - ], - "orders": [], - "createSql": "CREATE INDEX IF NOT EXISTS `index_searchBooks_origin` ON `${TABLE_NAME}` (`origin`)" - } - ], - "foreignKeys": [ - { - "table": "book_sources", - "onDelete": "CASCADE", - "onUpdate": "NO ACTION", - "columns": [ - "origin" - ], - "referencedColumns": [ - "bookSourceUrl" - ] - } - ] - }, - { - "tableName": "search_keywords", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`word` TEXT NOT NULL, `usage` INTEGER NOT NULL, `lastUseTime` INTEGER NOT NULL, PRIMARY KEY(`word`))", - "fields": [ - { - "fieldPath": "word", - "columnName": "word", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "usage", - "columnName": "usage", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "lastUseTime", - "columnName": "lastUseTime", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "word" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_search_keywords_word", - "unique": true, - "columnNames": [ - "word" - ], - "orders": [], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_search_keywords_word` ON `${TABLE_NAME}` (`word`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "cookies", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`url` TEXT NOT NULL, `cookie` TEXT NOT NULL, PRIMARY KEY(`url`))", - "fields": [ - { - "fieldPath": "url", - "columnName": "url", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "cookie", - "columnName": "cookie", - "affinity": "TEXT", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "url" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_cookies_url", - "unique": true, - "columnNames": [ - "url" - ], - "orders": [], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_cookies_url` ON `${TABLE_NAME}` (`url`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "rssSources", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`sourceUrl` TEXT NOT NULL, `sourceName` TEXT NOT NULL, `sourceIcon` TEXT NOT NULL, `sourceGroup` TEXT, `sourceComment` TEXT, `enabled` INTEGER NOT NULL, `variableComment` TEXT, `enabledCookieJar` INTEGER DEFAULT 0, `concurrentRate` TEXT, `header` TEXT, `loginUrl` TEXT, `loginUi` TEXT, `loginCheckJs` TEXT, `coverDecodeJs` TEXT, `sortUrl` TEXT, `singleUrl` INTEGER NOT NULL, `articleStyle` INTEGER NOT NULL, `ruleArticles` TEXT, `ruleNextPage` TEXT, `ruleTitle` TEXT, `rulePubDate` TEXT, `ruleDescription` TEXT, `ruleImage` TEXT, `ruleLink` TEXT, `ruleContent` TEXT, `style` TEXT, `enableJs` INTEGER NOT NULL, `loadWithBaseUrl` INTEGER NOT NULL, `lastUpdateTime` INTEGER NOT NULL DEFAULT 0, `customOrder` INTEGER NOT NULL, PRIMARY KEY(`sourceUrl`))", - "fields": [ - { - "fieldPath": "sourceUrl", - "columnName": "sourceUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "sourceName", - "columnName": "sourceName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "sourceIcon", - "columnName": "sourceIcon", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "sourceGroup", - "columnName": "sourceGroup", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "sourceComment", - "columnName": "sourceComment", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "enabled", - "columnName": "enabled", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "variableComment", - "columnName": "variableComment", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "enabledCookieJar", - "columnName": "enabledCookieJar", - "affinity": "INTEGER", - "notNull": false, - "defaultValue": "0" - }, - { - "fieldPath": "concurrentRate", - "columnName": "concurrentRate", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "header", - "columnName": "header", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "loginUrl", - "columnName": "loginUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "loginUi", - "columnName": "loginUi", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "loginCheckJs", - "columnName": "loginCheckJs", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "coverDecodeJs", - "columnName": "coverDecodeJs", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "sortUrl", - "columnName": "sortUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "singleUrl", - "columnName": "singleUrl", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "articleStyle", - "columnName": "articleStyle", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "ruleArticles", - "columnName": "ruleArticles", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleNextPage", - "columnName": "ruleNextPage", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleTitle", - "columnName": "ruleTitle", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "rulePubDate", - "columnName": "rulePubDate", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleDescription", - "columnName": "ruleDescription", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleImage", - "columnName": "ruleImage", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleLink", - "columnName": "ruleLink", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleContent", - "columnName": "ruleContent", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "style", - "columnName": "style", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "enableJs", - "columnName": "enableJs", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "loadWithBaseUrl", - "columnName": "loadWithBaseUrl", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "lastUpdateTime", - "columnName": "lastUpdateTime", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "customOrder", - "columnName": "customOrder", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "sourceUrl" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_rssSources_sourceUrl", - "unique": false, - "columnNames": [ - "sourceUrl" - ], - "orders": [], - "createSql": "CREATE INDEX IF NOT EXISTS `index_rssSources_sourceUrl` ON `${TABLE_NAME}` (`sourceUrl`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "bookmarks", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`time` INTEGER NOT NULL, `bookName` TEXT NOT NULL, `bookAuthor` TEXT NOT NULL, `chapterIndex` INTEGER NOT NULL, `chapterPos` INTEGER NOT NULL, `chapterName` TEXT NOT NULL, `bookText` TEXT NOT NULL, `content` TEXT NOT NULL, PRIMARY KEY(`time`))", - "fields": [ - { - "fieldPath": "time", - "columnName": "time", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "bookName", - "columnName": "bookName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookAuthor", - "columnName": "bookAuthor", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "chapterIndex", - "columnName": "chapterIndex", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "chapterPos", - "columnName": "chapterPos", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "chapterName", - "columnName": "chapterName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookText", - "columnName": "bookText", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "content", - "columnName": "content", - "affinity": "TEXT", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "time" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_bookmarks_bookName_bookAuthor", - "unique": false, - "columnNames": [ - "bookName", - "bookAuthor" - ], - "orders": [], - "createSql": "CREATE INDEX IF NOT EXISTS `index_bookmarks_bookName_bookAuthor` ON `${TABLE_NAME}` (`bookName`, `bookAuthor`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "rssArticles", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`origin` TEXT NOT NULL, `sort` TEXT NOT NULL, `title` TEXT NOT NULL, `order` INTEGER NOT NULL, `link` TEXT NOT NULL, `pubDate` TEXT, `description` TEXT, `content` TEXT, `image` TEXT, `read` INTEGER NOT NULL, `variable` TEXT, PRIMARY KEY(`origin`, `link`))", - "fields": [ - { - "fieldPath": "origin", - "columnName": "origin", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "sort", - "columnName": "sort", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "title", - "columnName": "title", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "order", - "columnName": "order", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "link", - "columnName": "link", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "pubDate", - "columnName": "pubDate", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "description", - "columnName": "description", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "content", - "columnName": "content", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "image", - "columnName": "image", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "read", - "columnName": "read", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "variable", - "columnName": "variable", - "affinity": "TEXT", - "notNull": false - } - ], - "primaryKey": { - "columnNames": [ - "origin", - "link" - ], - "autoGenerate": false - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "rssReadRecords", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`record` TEXT NOT NULL, `read` INTEGER NOT NULL, PRIMARY KEY(`record`))", - "fields": [ - { - "fieldPath": "record", - "columnName": "record", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "read", - "columnName": "read", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "record" - ], - "autoGenerate": false - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "rssStars", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`origin` TEXT NOT NULL, `sort` TEXT NOT NULL, `title` TEXT NOT NULL, `starTime` INTEGER NOT NULL, `link` TEXT NOT NULL, `pubDate` TEXT, `description` TEXT, `content` TEXT, `image` TEXT, `variable` TEXT, PRIMARY KEY(`origin`, `link`))", - "fields": [ - { - "fieldPath": "origin", - "columnName": "origin", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "sort", - "columnName": "sort", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "title", - "columnName": "title", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "starTime", - "columnName": "starTime", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "link", - "columnName": "link", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "pubDate", - "columnName": "pubDate", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "description", - "columnName": "description", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "content", - "columnName": "content", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "image", - "columnName": "image", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "variable", - "columnName": "variable", - "affinity": "TEXT", - "notNull": false - } - ], - "primaryKey": { - "columnNames": [ - "origin", - "link" - ], - "autoGenerate": false - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "txtTocRules", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER NOT NULL, `name` TEXT NOT NULL, `rule` TEXT NOT NULL, `example` TEXT, `serialNumber` INTEGER NOT NULL, `enable` INTEGER NOT NULL, PRIMARY KEY(`id`))", - "fields": [ - { - "fieldPath": "id", - "columnName": "id", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "rule", - "columnName": "rule", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "example", - "columnName": "example", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "serialNumber", - "columnName": "serialNumber", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "enable", - "columnName": "enable", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "id" - ], - "autoGenerate": false - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "readRecord", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`deviceId` TEXT NOT NULL, `bookName` TEXT NOT NULL, `readTime` INTEGER NOT NULL DEFAULT 0, `lastRead` INTEGER NOT NULL DEFAULT 0, PRIMARY KEY(`deviceId`, `bookName`))", - "fields": [ - { - "fieldPath": "deviceId", - "columnName": "deviceId", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookName", - "columnName": "bookName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "readTime", - "columnName": "readTime", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "lastRead", - "columnName": "lastRead", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - } - ], - "primaryKey": { - "columnNames": [ - "deviceId", - "bookName" - ], - "autoGenerate": false - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "httpTTS", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER NOT NULL, `name` TEXT NOT NULL, `url` TEXT NOT NULL, `contentType` TEXT, `concurrentRate` TEXT DEFAULT '0', `loginUrl` TEXT, `loginUi` TEXT, `header` TEXT, `enabledCookieJar` INTEGER DEFAULT 0, `loginCheckJs` TEXT, `lastUpdateTime` INTEGER NOT NULL DEFAULT 0, PRIMARY KEY(`id`))", - "fields": [ - { - "fieldPath": "id", - "columnName": "id", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "url", - "columnName": "url", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "contentType", - "columnName": "contentType", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "concurrentRate", - "columnName": "concurrentRate", - "affinity": "TEXT", - "notNull": false, - "defaultValue": "'0'" - }, - { - "fieldPath": "loginUrl", - "columnName": "loginUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "loginUi", - "columnName": "loginUi", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "header", - "columnName": "header", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "enabledCookieJar", - "columnName": "enabledCookieJar", - "affinity": "INTEGER", - "notNull": false, - "defaultValue": "0" - }, - { - "fieldPath": "loginCheckJs", - "columnName": "loginCheckJs", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "lastUpdateTime", - "columnName": "lastUpdateTime", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - } - ], - "primaryKey": { - "columnNames": [ - "id" - ], - "autoGenerate": false - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "caches", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`key` TEXT NOT NULL, `value` TEXT, `deadline` INTEGER NOT NULL, PRIMARY KEY(`key`))", - "fields": [ - { - "fieldPath": "key", - "columnName": "key", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "value", - "columnName": "value", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "deadline", - "columnName": "deadline", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "key" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_caches_key", - "unique": true, - "columnNames": [ - "key" - ], - "orders": [], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_caches_key` ON `${TABLE_NAME}` (`key`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "ruleSubs", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER NOT NULL, `name` TEXT NOT NULL, `url` TEXT NOT NULL, `type` INTEGER NOT NULL, `customOrder` INTEGER NOT NULL, `autoUpdate` INTEGER NOT NULL, `update` INTEGER NOT NULL, PRIMARY KEY(`id`))", - "fields": [ - { - "fieldPath": "id", - "columnName": "id", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "url", - "columnName": "url", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "type", - "columnName": "type", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "customOrder", - "columnName": "customOrder", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "autoUpdate", - "columnName": "autoUpdate", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "update", - "columnName": "update", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "id" - ], - "autoGenerate": false - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "keyboardAssists", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`type` INTEGER NOT NULL DEFAULT 0, `key` TEXT NOT NULL DEFAULT '', `value` TEXT NOT NULL DEFAULT '', `serialNo` INTEGER NOT NULL DEFAULT 0, PRIMARY KEY(`type`, `key`))", - "fields": [ - { - "fieldPath": "type", - "columnName": "type", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "key", - "columnName": "key", - "affinity": "TEXT", - "notNull": true, - "defaultValue": "''" - }, - { - "fieldPath": "value", - "columnName": "value", - "affinity": "TEXT", - "notNull": true, - "defaultValue": "''" - }, - { - "fieldPath": "serialNo", - "columnName": "serialNo", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - } - ], - "primaryKey": { - "columnNames": [ - "type", - "key" - ], - "autoGenerate": false - }, - "indices": [], - "foreignKeys": [] - } - ], - "views": [], - "setupQueries": [ - "CREATE TABLE IF NOT EXISTS room_master_table (id INTEGER PRIMARY KEY,identity_hash TEXT)", - "INSERT OR REPLACE INTO room_master_table (id,identity_hash) VALUES(42, '7dc698b0bf395df06befb13d41df87b9')" - ] - } -} \ No newline at end of file diff --git a/app/schemas/io.legado.app.data.AppDatabase/57.json b/app/schemas/io.legado.app.data.AppDatabase/57.json deleted file mode 100644 index 9c61e1832..000000000 --- a/app/schemas/io.legado.app.data.AppDatabase/57.json +++ /dev/null @@ -1,1717 +0,0 @@ -{ - "formatVersion": 1, - "database": { - "version": 57, - "identityHash": "ae968e35603fe39a0141d0983d993de1", - "entities": [ - { - "tableName": "books", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`bookUrl` TEXT NOT NULL DEFAULT '', `tocUrl` TEXT NOT NULL DEFAULT '', `origin` TEXT NOT NULL DEFAULT 'loc_book', `originName` TEXT NOT NULL DEFAULT '', `name` TEXT NOT NULL DEFAULT '', `author` TEXT NOT NULL DEFAULT '', `kind` TEXT, `customTag` TEXT, `coverUrl` TEXT, `customCoverUrl` TEXT, `intro` TEXT, `customIntro` TEXT, `charset` TEXT, `type` INTEGER NOT NULL DEFAULT 0, `group` INTEGER NOT NULL DEFAULT 0, `latestChapterTitle` TEXT, `latestChapterTime` INTEGER NOT NULL DEFAULT 0, `lastCheckTime` INTEGER NOT NULL DEFAULT 0, `lastCheckCount` INTEGER NOT NULL DEFAULT 0, `totalChapterNum` INTEGER NOT NULL DEFAULT 0, `durChapterTitle` TEXT, `durChapterIndex` INTEGER NOT NULL DEFAULT 0, `durChapterPos` INTEGER NOT NULL DEFAULT 0, `durChapterTime` INTEGER NOT NULL DEFAULT 0, `wordCount` TEXT, `canUpdate` INTEGER NOT NULL DEFAULT 1, `order` INTEGER NOT NULL DEFAULT 0, `originOrder` INTEGER NOT NULL DEFAULT 0, `variable` TEXT, `readConfig` TEXT, PRIMARY KEY(`bookUrl`))", - "fields": [ - { - "fieldPath": "bookUrl", - "columnName": "bookUrl", - "affinity": "TEXT", - "notNull": true, - "defaultValue": "''" - }, - { - "fieldPath": "tocUrl", - "columnName": "tocUrl", - "affinity": "TEXT", - "notNull": true, - "defaultValue": "''" - }, - { - "fieldPath": "origin", - "columnName": "origin", - "affinity": "TEXT", - "notNull": true, - "defaultValue": "'loc_book'" - }, - { - "fieldPath": "originName", - "columnName": "originName", - "affinity": "TEXT", - "notNull": true, - "defaultValue": "''" - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true, - "defaultValue": "''" - }, - { - "fieldPath": "author", - "columnName": "author", - "affinity": "TEXT", - "notNull": true, - "defaultValue": "''" - }, - { - "fieldPath": "kind", - "columnName": "kind", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "customTag", - "columnName": "customTag", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "coverUrl", - "columnName": "coverUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "customCoverUrl", - "columnName": "customCoverUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "intro", - "columnName": "intro", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "customIntro", - "columnName": "customIntro", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "charset", - "columnName": "charset", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "type", - "columnName": "type", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "group", - "columnName": "group", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "latestChapterTitle", - "columnName": "latestChapterTitle", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "latestChapterTime", - "columnName": "latestChapterTime", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "lastCheckTime", - "columnName": "lastCheckTime", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "lastCheckCount", - "columnName": "lastCheckCount", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "totalChapterNum", - "columnName": "totalChapterNum", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "durChapterTitle", - "columnName": "durChapterTitle", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "durChapterIndex", - "columnName": "durChapterIndex", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "durChapterPos", - "columnName": "durChapterPos", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "durChapterTime", - "columnName": "durChapterTime", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "wordCount", - "columnName": "wordCount", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "canUpdate", - "columnName": "canUpdate", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "1" - }, - { - "fieldPath": "order", - "columnName": "order", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "originOrder", - "columnName": "originOrder", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "variable", - "columnName": "variable", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "readConfig", - "columnName": "readConfig", - "affinity": "TEXT", - "notNull": false - } - ], - "primaryKey": { - "columnNames": [ - "bookUrl" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_books_name_author", - "unique": true, - "columnNames": [ - "name", - "author" - ], - "orders": [], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_books_name_author` ON `${TABLE_NAME}` (`name`, `author`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "book_groups", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`groupId` INTEGER NOT NULL, `groupName` TEXT NOT NULL, `cover` TEXT, `order` INTEGER NOT NULL, `show` INTEGER NOT NULL, PRIMARY KEY(`groupId`))", - "fields": [ - { - "fieldPath": "groupId", - "columnName": "groupId", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "groupName", - "columnName": "groupName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "cover", - "columnName": "cover", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "order", - "columnName": "order", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "show", - "columnName": "show", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "groupId" - ], - "autoGenerate": false - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "book_sources", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`bookSourceUrl` TEXT NOT NULL, `bookSourceName` TEXT NOT NULL, `bookSourceGroup` TEXT, `bookSourceType` INTEGER NOT NULL, `bookUrlPattern` TEXT, `customOrder` INTEGER NOT NULL, `enabled` INTEGER NOT NULL, `enabledExplore` INTEGER NOT NULL, `enabledReview` INTEGER, `enabledCookieJar` INTEGER DEFAULT 0, `concurrentRate` TEXT, `header` TEXT, `loginUrl` TEXT, `loginUi` TEXT, `loginCheckJs` TEXT, `coverDecodeJs` TEXT, `bookSourceComment` TEXT, `variableComment` TEXT, `lastUpdateTime` INTEGER NOT NULL, `respondTime` INTEGER NOT NULL, `weight` INTEGER NOT NULL, `exploreUrl` TEXT, `ruleExplore` TEXT, `searchUrl` TEXT, `ruleSearch` TEXT, `ruleBookInfo` TEXT, `ruleToc` TEXT, `ruleContent` TEXT, `ruleReview` TEXT, PRIMARY KEY(`bookSourceUrl`))", - "fields": [ - { - "fieldPath": "bookSourceUrl", - "columnName": "bookSourceUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookSourceName", - "columnName": "bookSourceName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookSourceGroup", - "columnName": "bookSourceGroup", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "bookSourceType", - "columnName": "bookSourceType", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "bookUrlPattern", - "columnName": "bookUrlPattern", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "customOrder", - "columnName": "customOrder", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "enabled", - "columnName": "enabled", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "enabledExplore", - "columnName": "enabledExplore", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "enabledReview", - "columnName": "enabledReview", - "affinity": "INTEGER", - "notNull": false - }, - { - "fieldPath": "enabledCookieJar", - "columnName": "enabledCookieJar", - "affinity": "INTEGER", - "notNull": false, - "defaultValue": "0" - }, - { - "fieldPath": "concurrentRate", - "columnName": "concurrentRate", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "header", - "columnName": "header", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "loginUrl", - "columnName": "loginUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "loginUi", - "columnName": "loginUi", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "loginCheckJs", - "columnName": "loginCheckJs", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "coverDecodeJs", - "columnName": "coverDecodeJs", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "bookSourceComment", - "columnName": "bookSourceComment", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "variableComment", - "columnName": "variableComment", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "lastUpdateTime", - "columnName": "lastUpdateTime", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "respondTime", - "columnName": "respondTime", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "weight", - "columnName": "weight", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "exploreUrl", - "columnName": "exploreUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleExplore", - "columnName": "ruleExplore", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "searchUrl", - "columnName": "searchUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleSearch", - "columnName": "ruleSearch", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleBookInfo", - "columnName": "ruleBookInfo", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleToc", - "columnName": "ruleToc", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleContent", - "columnName": "ruleContent", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleReview", - "columnName": "ruleReview", - "affinity": "TEXT", - "notNull": false - } - ], - "primaryKey": { - "columnNames": [ - "bookSourceUrl" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_book_sources_bookSourceUrl", - "unique": false, - "columnNames": [ - "bookSourceUrl" - ], - "orders": [], - "createSql": "CREATE INDEX IF NOT EXISTS `index_book_sources_bookSourceUrl` ON `${TABLE_NAME}` (`bookSourceUrl`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "chapters", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`url` TEXT NOT NULL, `title` TEXT NOT NULL, `isVolume` INTEGER NOT NULL, `baseUrl` TEXT NOT NULL, `bookUrl` TEXT NOT NULL, `index` INTEGER NOT NULL, `isVip` INTEGER NOT NULL, `isPay` INTEGER NOT NULL, `resourceUrl` TEXT, `tag` TEXT, `start` INTEGER, `end` INTEGER, `startFragmentId` TEXT, `endFragmentId` TEXT, `variable` TEXT, PRIMARY KEY(`url`, `bookUrl`), FOREIGN KEY(`bookUrl`) REFERENCES `books`(`bookUrl`) ON UPDATE NO ACTION ON DELETE CASCADE )", - "fields": [ - { - "fieldPath": "url", - "columnName": "url", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "title", - "columnName": "title", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "isVolume", - "columnName": "isVolume", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "baseUrl", - "columnName": "baseUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookUrl", - "columnName": "bookUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "index", - "columnName": "index", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "isVip", - "columnName": "isVip", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "isPay", - "columnName": "isPay", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "resourceUrl", - "columnName": "resourceUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "tag", - "columnName": "tag", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "start", - "columnName": "start", - "affinity": "INTEGER", - "notNull": false - }, - { - "fieldPath": "end", - "columnName": "end", - "affinity": "INTEGER", - "notNull": false - }, - { - "fieldPath": "startFragmentId", - "columnName": "startFragmentId", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "endFragmentId", - "columnName": "endFragmentId", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "variable", - "columnName": "variable", - "affinity": "TEXT", - "notNull": false - } - ], - "primaryKey": { - "columnNames": [ - "url", - "bookUrl" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_chapters_bookUrl", - "unique": false, - "columnNames": [ - "bookUrl" - ], - "orders": [], - "createSql": "CREATE INDEX IF NOT EXISTS `index_chapters_bookUrl` ON `${TABLE_NAME}` (`bookUrl`)" - }, - { - "name": "index_chapters_bookUrl_index", - "unique": true, - "columnNames": [ - "bookUrl", - "index" - ], - "orders": [], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_chapters_bookUrl_index` ON `${TABLE_NAME}` (`bookUrl`, `index`)" - } - ], - "foreignKeys": [ - { - "table": "books", - "onDelete": "CASCADE", - "onUpdate": "NO ACTION", - "columns": [ - "bookUrl" - ], - "referencedColumns": [ - "bookUrl" - ] - } - ] - }, - { - "tableName": "replace_rules", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, `name` TEXT NOT NULL DEFAULT '', `group` TEXT, `pattern` TEXT NOT NULL DEFAULT '', `replacement` TEXT NOT NULL DEFAULT '', `scope` TEXT, `scopeTitle` INTEGER NOT NULL DEFAULT 0, `scopeContent` INTEGER NOT NULL DEFAULT 1, `isEnabled` INTEGER NOT NULL DEFAULT 1, `isRegex` INTEGER NOT NULL DEFAULT 1, `timeoutMillisecond` INTEGER NOT NULL DEFAULT 3000, `sortOrder` INTEGER NOT NULL DEFAULT 0)", - "fields": [ - { - "fieldPath": "id", - "columnName": "id", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true, - "defaultValue": "''" - }, - { - "fieldPath": "group", - "columnName": "group", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "pattern", - "columnName": "pattern", - "affinity": "TEXT", - "notNull": true, - "defaultValue": "''" - }, - { - "fieldPath": "replacement", - "columnName": "replacement", - "affinity": "TEXT", - "notNull": true, - "defaultValue": "''" - }, - { - "fieldPath": "scope", - "columnName": "scope", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "scopeTitle", - "columnName": "scopeTitle", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "scopeContent", - "columnName": "scopeContent", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "1" - }, - { - "fieldPath": "isEnabled", - "columnName": "isEnabled", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "1" - }, - { - "fieldPath": "isRegex", - "columnName": "isRegex", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "1" - }, - { - "fieldPath": "timeoutMillisecond", - "columnName": "timeoutMillisecond", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "3000" - }, - { - "fieldPath": "order", - "columnName": "sortOrder", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - } - ], - "primaryKey": { - "columnNames": [ - "id" - ], - "autoGenerate": true - }, - "indices": [ - { - "name": "index_replace_rules_id", - "unique": false, - "columnNames": [ - "id" - ], - "orders": [], - "createSql": "CREATE INDEX IF NOT EXISTS `index_replace_rules_id` ON `${TABLE_NAME}` (`id`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "searchBooks", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`bookUrl` TEXT NOT NULL, `origin` TEXT NOT NULL, `originName` TEXT NOT NULL, `type` INTEGER NOT NULL, `name` TEXT NOT NULL, `author` TEXT NOT NULL, `kind` TEXT, `coverUrl` TEXT, `intro` TEXT, `wordCount` TEXT, `latestChapterTitle` TEXT, `tocUrl` TEXT NOT NULL, `time` INTEGER NOT NULL, `variable` TEXT, `originOrder` INTEGER NOT NULL, PRIMARY KEY(`bookUrl`), FOREIGN KEY(`origin`) REFERENCES `book_sources`(`bookSourceUrl`) ON UPDATE NO ACTION ON DELETE CASCADE )", - "fields": [ - { - "fieldPath": "bookUrl", - "columnName": "bookUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "origin", - "columnName": "origin", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "originName", - "columnName": "originName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "type", - "columnName": "type", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "author", - "columnName": "author", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "kind", - "columnName": "kind", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "coverUrl", - "columnName": "coverUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "intro", - "columnName": "intro", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "wordCount", - "columnName": "wordCount", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "latestChapterTitle", - "columnName": "latestChapterTitle", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "tocUrl", - "columnName": "tocUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "time", - "columnName": "time", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "variable", - "columnName": "variable", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "originOrder", - "columnName": "originOrder", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "bookUrl" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_searchBooks_bookUrl", - "unique": true, - "columnNames": [ - "bookUrl" - ], - "orders": [], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_searchBooks_bookUrl` ON `${TABLE_NAME}` (`bookUrl`)" - }, - { - "name": "index_searchBooks_origin", - "unique": false, - "columnNames": [ - "origin" - ], - "orders": [], - "createSql": "CREATE INDEX IF NOT EXISTS `index_searchBooks_origin` ON `${TABLE_NAME}` (`origin`)" - } - ], - "foreignKeys": [ - { - "table": "book_sources", - "onDelete": "CASCADE", - "onUpdate": "NO ACTION", - "columns": [ - "origin" - ], - "referencedColumns": [ - "bookSourceUrl" - ] - } - ] - }, - { - "tableName": "search_keywords", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`word` TEXT NOT NULL, `usage` INTEGER NOT NULL, `lastUseTime` INTEGER NOT NULL, PRIMARY KEY(`word`))", - "fields": [ - { - "fieldPath": "word", - "columnName": "word", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "usage", - "columnName": "usage", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "lastUseTime", - "columnName": "lastUseTime", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "word" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_search_keywords_word", - "unique": true, - "columnNames": [ - "word" - ], - "orders": [], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_search_keywords_word` ON `${TABLE_NAME}` (`word`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "cookies", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`url` TEXT NOT NULL, `cookie` TEXT NOT NULL, PRIMARY KEY(`url`))", - "fields": [ - { - "fieldPath": "url", - "columnName": "url", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "cookie", - "columnName": "cookie", - "affinity": "TEXT", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "url" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_cookies_url", - "unique": true, - "columnNames": [ - "url" - ], - "orders": [], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_cookies_url` ON `${TABLE_NAME}` (`url`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "rssSources", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`sourceUrl` TEXT NOT NULL, `sourceName` TEXT NOT NULL, `sourceIcon` TEXT NOT NULL, `sourceGroup` TEXT, `sourceComment` TEXT, `enabled` INTEGER NOT NULL, `variableComment` TEXT, `enabledCookieJar` INTEGER DEFAULT 0, `concurrentRate` TEXT, `header` TEXT, `loginUrl` TEXT, `loginUi` TEXT, `loginCheckJs` TEXT, `coverDecodeJs` TEXT, `sortUrl` TEXT, `singleUrl` INTEGER NOT NULL, `articleStyle` INTEGER NOT NULL, `ruleArticles` TEXT, `ruleNextPage` TEXT, `ruleTitle` TEXT, `rulePubDate` TEXT, `ruleDescription` TEXT, `ruleImage` TEXT, `ruleLink` TEXT, `ruleContent` TEXT, `style` TEXT, `enableJs` INTEGER NOT NULL, `loadWithBaseUrl` INTEGER NOT NULL, `injectJs` TEXT, `lastUpdateTime` INTEGER NOT NULL DEFAULT 0, `customOrder` INTEGER NOT NULL, PRIMARY KEY(`sourceUrl`))", - "fields": [ - { - "fieldPath": "sourceUrl", - "columnName": "sourceUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "sourceName", - "columnName": "sourceName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "sourceIcon", - "columnName": "sourceIcon", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "sourceGroup", - "columnName": "sourceGroup", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "sourceComment", - "columnName": "sourceComment", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "enabled", - "columnName": "enabled", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "variableComment", - "columnName": "variableComment", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "enabledCookieJar", - "columnName": "enabledCookieJar", - "affinity": "INTEGER", - "notNull": false, - "defaultValue": "0" - }, - { - "fieldPath": "concurrentRate", - "columnName": "concurrentRate", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "header", - "columnName": "header", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "loginUrl", - "columnName": "loginUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "loginUi", - "columnName": "loginUi", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "loginCheckJs", - "columnName": "loginCheckJs", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "coverDecodeJs", - "columnName": "coverDecodeJs", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "sortUrl", - "columnName": "sortUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "singleUrl", - "columnName": "singleUrl", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "articleStyle", - "columnName": "articleStyle", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "ruleArticles", - "columnName": "ruleArticles", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleNextPage", - "columnName": "ruleNextPage", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleTitle", - "columnName": "ruleTitle", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "rulePubDate", - "columnName": "rulePubDate", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleDescription", - "columnName": "ruleDescription", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleImage", - "columnName": "ruleImage", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleLink", - "columnName": "ruleLink", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleContent", - "columnName": "ruleContent", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "style", - "columnName": "style", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "enableJs", - "columnName": "enableJs", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "loadWithBaseUrl", - "columnName": "loadWithBaseUrl", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "injectJs", - "columnName": "injectJs", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "lastUpdateTime", - "columnName": "lastUpdateTime", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "customOrder", - "columnName": "customOrder", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "sourceUrl" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_rssSources_sourceUrl", - "unique": false, - "columnNames": [ - "sourceUrl" - ], - "orders": [], - "createSql": "CREATE INDEX IF NOT EXISTS `index_rssSources_sourceUrl` ON `${TABLE_NAME}` (`sourceUrl`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "bookmarks", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`time` INTEGER NOT NULL, `bookName` TEXT NOT NULL, `bookAuthor` TEXT NOT NULL, `chapterIndex` INTEGER NOT NULL, `chapterPos` INTEGER NOT NULL, `chapterName` TEXT NOT NULL, `bookText` TEXT NOT NULL, `content` TEXT NOT NULL, PRIMARY KEY(`time`))", - "fields": [ - { - "fieldPath": "time", - "columnName": "time", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "bookName", - "columnName": "bookName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookAuthor", - "columnName": "bookAuthor", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "chapterIndex", - "columnName": "chapterIndex", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "chapterPos", - "columnName": "chapterPos", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "chapterName", - "columnName": "chapterName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookText", - "columnName": "bookText", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "content", - "columnName": "content", - "affinity": "TEXT", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "time" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_bookmarks_bookName_bookAuthor", - "unique": false, - "columnNames": [ - "bookName", - "bookAuthor" - ], - "orders": [], - "createSql": "CREATE INDEX IF NOT EXISTS `index_bookmarks_bookName_bookAuthor` ON `${TABLE_NAME}` (`bookName`, `bookAuthor`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "rssArticles", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`origin` TEXT NOT NULL, `sort` TEXT NOT NULL, `title` TEXT NOT NULL, `order` INTEGER NOT NULL, `link` TEXT NOT NULL, `pubDate` TEXT, `description` TEXT, `content` TEXT, `image` TEXT, `read` INTEGER NOT NULL, `variable` TEXT, PRIMARY KEY(`origin`, `link`))", - "fields": [ - { - "fieldPath": "origin", - "columnName": "origin", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "sort", - "columnName": "sort", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "title", - "columnName": "title", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "order", - "columnName": "order", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "link", - "columnName": "link", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "pubDate", - "columnName": "pubDate", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "description", - "columnName": "description", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "content", - "columnName": "content", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "image", - "columnName": "image", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "read", - "columnName": "read", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "variable", - "columnName": "variable", - "affinity": "TEXT", - "notNull": false - } - ], - "primaryKey": { - "columnNames": [ - "origin", - "link" - ], - "autoGenerate": false - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "rssReadRecords", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`record` TEXT NOT NULL, `read` INTEGER NOT NULL, PRIMARY KEY(`record`))", - "fields": [ - { - "fieldPath": "record", - "columnName": "record", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "read", - "columnName": "read", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "record" - ], - "autoGenerate": false - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "rssStars", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`origin` TEXT NOT NULL, `sort` TEXT NOT NULL, `title` TEXT NOT NULL, `starTime` INTEGER NOT NULL, `link` TEXT NOT NULL, `pubDate` TEXT, `description` TEXT, `content` TEXT, `image` TEXT, `variable` TEXT, PRIMARY KEY(`origin`, `link`))", - "fields": [ - { - "fieldPath": "origin", - "columnName": "origin", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "sort", - "columnName": "sort", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "title", - "columnName": "title", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "starTime", - "columnName": "starTime", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "link", - "columnName": "link", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "pubDate", - "columnName": "pubDate", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "description", - "columnName": "description", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "content", - "columnName": "content", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "image", - "columnName": "image", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "variable", - "columnName": "variable", - "affinity": "TEXT", - "notNull": false - } - ], - "primaryKey": { - "columnNames": [ - "origin", - "link" - ], - "autoGenerate": false - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "txtTocRules", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER NOT NULL, `name` TEXT NOT NULL, `rule` TEXT NOT NULL, `example` TEXT, `serialNumber` INTEGER NOT NULL, `enable` INTEGER NOT NULL, PRIMARY KEY(`id`))", - "fields": [ - { - "fieldPath": "id", - "columnName": "id", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "rule", - "columnName": "rule", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "example", - "columnName": "example", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "serialNumber", - "columnName": "serialNumber", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "enable", - "columnName": "enable", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "id" - ], - "autoGenerate": false - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "readRecord", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`deviceId` TEXT NOT NULL, `bookName` TEXT NOT NULL, `readTime` INTEGER NOT NULL DEFAULT 0, `lastRead` INTEGER NOT NULL DEFAULT 0, PRIMARY KEY(`deviceId`, `bookName`))", - "fields": [ - { - "fieldPath": "deviceId", - "columnName": "deviceId", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookName", - "columnName": "bookName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "readTime", - "columnName": "readTime", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "lastRead", - "columnName": "lastRead", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - } - ], - "primaryKey": { - "columnNames": [ - "deviceId", - "bookName" - ], - "autoGenerate": false - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "httpTTS", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER NOT NULL, `name` TEXT NOT NULL, `url` TEXT NOT NULL, `contentType` TEXT, `concurrentRate` TEXT DEFAULT '0', `loginUrl` TEXT, `loginUi` TEXT, `header` TEXT, `enabledCookieJar` INTEGER DEFAULT 0, `loginCheckJs` TEXT, `lastUpdateTime` INTEGER NOT NULL DEFAULT 0, PRIMARY KEY(`id`))", - "fields": [ - { - "fieldPath": "id", - "columnName": "id", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "url", - "columnName": "url", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "contentType", - "columnName": "contentType", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "concurrentRate", - "columnName": "concurrentRate", - "affinity": "TEXT", - "notNull": false, - "defaultValue": "'0'" - }, - { - "fieldPath": "loginUrl", - "columnName": "loginUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "loginUi", - "columnName": "loginUi", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "header", - "columnName": "header", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "enabledCookieJar", - "columnName": "enabledCookieJar", - "affinity": "INTEGER", - "notNull": false, - "defaultValue": "0" - }, - { - "fieldPath": "loginCheckJs", - "columnName": "loginCheckJs", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "lastUpdateTime", - "columnName": "lastUpdateTime", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - } - ], - "primaryKey": { - "columnNames": [ - "id" - ], - "autoGenerate": false - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "caches", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`key` TEXT NOT NULL, `value` TEXT, `deadline` INTEGER NOT NULL, PRIMARY KEY(`key`))", - "fields": [ - { - "fieldPath": "key", - "columnName": "key", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "value", - "columnName": "value", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "deadline", - "columnName": "deadline", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "key" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_caches_key", - "unique": true, - "columnNames": [ - "key" - ], - "orders": [], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_caches_key` ON `${TABLE_NAME}` (`key`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "ruleSubs", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER NOT NULL, `name` TEXT NOT NULL, `url` TEXT NOT NULL, `type` INTEGER NOT NULL, `customOrder` INTEGER NOT NULL, `autoUpdate` INTEGER NOT NULL, `update` INTEGER NOT NULL, PRIMARY KEY(`id`))", - "fields": [ - { - "fieldPath": "id", - "columnName": "id", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "url", - "columnName": "url", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "type", - "columnName": "type", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "customOrder", - "columnName": "customOrder", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "autoUpdate", - "columnName": "autoUpdate", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "update", - "columnName": "update", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "id" - ], - "autoGenerate": false - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "keyboardAssists", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`type` INTEGER NOT NULL DEFAULT 0, `key` TEXT NOT NULL DEFAULT '', `value` TEXT NOT NULL DEFAULT '', `serialNo` INTEGER NOT NULL DEFAULT 0, PRIMARY KEY(`type`, `key`))", - "fields": [ - { - "fieldPath": "type", - "columnName": "type", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "key", - "columnName": "key", - "affinity": "TEXT", - "notNull": true, - "defaultValue": "''" - }, - { - "fieldPath": "value", - "columnName": "value", - "affinity": "TEXT", - "notNull": true, - "defaultValue": "''" - }, - { - "fieldPath": "serialNo", - "columnName": "serialNo", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - } - ], - "primaryKey": { - "columnNames": [ - "type", - "key" - ], - "autoGenerate": false - }, - "indices": [], - "foreignKeys": [] - } - ], - "views": [], - "setupQueries": [ - "CREATE TABLE IF NOT EXISTS room_master_table (id INTEGER PRIMARY KEY,identity_hash TEXT)", - "INSERT OR REPLACE INTO room_master_table (id,identity_hash) VALUES(42, 'ae968e35603fe39a0141d0983d993de1')" - ] - } -} \ No newline at end of file diff --git a/app/schemas/io.legado.app.data.AppDatabase/58.json b/app/schemas/io.legado.app.data.AppDatabase/58.json deleted file mode 100644 index e4e6bdcf4..000000000 --- a/app/schemas/io.legado.app.data.AppDatabase/58.json +++ /dev/null @@ -1,1724 +0,0 @@ -{ - "formatVersion": 1, - "database": { - "version": 58, - "identityHash": "dce5917572677d2b19bbc43809efb40c", - "entities": [ - { - "tableName": "books", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`bookUrl` TEXT NOT NULL DEFAULT '', `tocUrl` TEXT NOT NULL DEFAULT '', `origin` TEXT NOT NULL DEFAULT 'loc_book', `originName` TEXT NOT NULL DEFAULT '', `name` TEXT NOT NULL DEFAULT '', `author` TEXT NOT NULL DEFAULT '', `kind` TEXT, `customTag` TEXT, `coverUrl` TEXT, `customCoverUrl` TEXT, `intro` TEXT, `customIntro` TEXT, `charset` TEXT, `type` INTEGER NOT NULL DEFAULT 0, `group` INTEGER NOT NULL DEFAULT 0, `latestChapterTitle` TEXT, `latestChapterTime` INTEGER NOT NULL DEFAULT 0, `lastCheckTime` INTEGER NOT NULL DEFAULT 0, `lastCheckCount` INTEGER NOT NULL DEFAULT 0, `totalChapterNum` INTEGER NOT NULL DEFAULT 0, `durChapterTitle` TEXT, `durChapterIndex` INTEGER NOT NULL DEFAULT 0, `durChapterPos` INTEGER NOT NULL DEFAULT 0, `durChapterTime` INTEGER NOT NULL DEFAULT 0, `wordCount` TEXT, `canUpdate` INTEGER NOT NULL DEFAULT 1, `order` INTEGER NOT NULL DEFAULT 0, `originOrder` INTEGER NOT NULL DEFAULT 0, `variable` TEXT, `readConfig` TEXT, PRIMARY KEY(`bookUrl`))", - "fields": [ - { - "fieldPath": "bookUrl", - "columnName": "bookUrl", - "affinity": "TEXT", - "notNull": true, - "defaultValue": "''" - }, - { - "fieldPath": "tocUrl", - "columnName": "tocUrl", - "affinity": "TEXT", - "notNull": true, - "defaultValue": "''" - }, - { - "fieldPath": "origin", - "columnName": "origin", - "affinity": "TEXT", - "notNull": true, - "defaultValue": "'loc_book'" - }, - { - "fieldPath": "originName", - "columnName": "originName", - "affinity": "TEXT", - "notNull": true, - "defaultValue": "''" - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true, - "defaultValue": "''" - }, - { - "fieldPath": "author", - "columnName": "author", - "affinity": "TEXT", - "notNull": true, - "defaultValue": "''" - }, - { - "fieldPath": "kind", - "columnName": "kind", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "customTag", - "columnName": "customTag", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "coverUrl", - "columnName": "coverUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "customCoverUrl", - "columnName": "customCoverUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "intro", - "columnName": "intro", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "customIntro", - "columnName": "customIntro", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "charset", - "columnName": "charset", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "type", - "columnName": "type", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "group", - "columnName": "group", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "latestChapterTitle", - "columnName": "latestChapterTitle", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "latestChapterTime", - "columnName": "latestChapterTime", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "lastCheckTime", - "columnName": "lastCheckTime", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "lastCheckCount", - "columnName": "lastCheckCount", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "totalChapterNum", - "columnName": "totalChapterNum", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "durChapterTitle", - "columnName": "durChapterTitle", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "durChapterIndex", - "columnName": "durChapterIndex", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "durChapterPos", - "columnName": "durChapterPos", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "durChapterTime", - "columnName": "durChapterTime", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "wordCount", - "columnName": "wordCount", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "canUpdate", - "columnName": "canUpdate", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "1" - }, - { - "fieldPath": "order", - "columnName": "order", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "originOrder", - "columnName": "originOrder", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "variable", - "columnName": "variable", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "readConfig", - "columnName": "readConfig", - "affinity": "TEXT", - "notNull": false - } - ], - "primaryKey": { - "columnNames": [ - "bookUrl" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_books_name_author", - "unique": true, - "columnNames": [ - "name", - "author" - ], - "orders": [], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_books_name_author` ON `${TABLE_NAME}` (`name`, `author`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "book_groups", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`groupId` INTEGER NOT NULL, `groupName` TEXT NOT NULL, `cover` TEXT, `order` INTEGER NOT NULL, `show` INTEGER NOT NULL, `bookSort` INTEGER NOT NULL DEFAULT -1, PRIMARY KEY(`groupId`))", - "fields": [ - { - "fieldPath": "groupId", - "columnName": "groupId", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "groupName", - "columnName": "groupName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "cover", - "columnName": "cover", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "order", - "columnName": "order", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "show", - "columnName": "show", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "bookSort", - "columnName": "bookSort", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "-1" - } - ], - "primaryKey": { - "columnNames": [ - "groupId" - ], - "autoGenerate": false - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "book_sources", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`bookSourceUrl` TEXT NOT NULL, `bookSourceName` TEXT NOT NULL, `bookSourceGroup` TEXT, `bookSourceType` INTEGER NOT NULL, `bookUrlPattern` TEXT, `customOrder` INTEGER NOT NULL, `enabled` INTEGER NOT NULL, `enabledExplore` INTEGER NOT NULL, `enabledReview` INTEGER, `enabledCookieJar` INTEGER DEFAULT 0, `concurrentRate` TEXT, `header` TEXT, `loginUrl` TEXT, `loginUi` TEXT, `loginCheckJs` TEXT, `coverDecodeJs` TEXT, `bookSourceComment` TEXT, `variableComment` TEXT, `lastUpdateTime` INTEGER NOT NULL, `respondTime` INTEGER NOT NULL, `weight` INTEGER NOT NULL, `exploreUrl` TEXT, `ruleExplore` TEXT, `searchUrl` TEXT, `ruleSearch` TEXT, `ruleBookInfo` TEXT, `ruleToc` TEXT, `ruleContent` TEXT, `ruleReview` TEXT, PRIMARY KEY(`bookSourceUrl`))", - "fields": [ - { - "fieldPath": "bookSourceUrl", - "columnName": "bookSourceUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookSourceName", - "columnName": "bookSourceName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookSourceGroup", - "columnName": "bookSourceGroup", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "bookSourceType", - "columnName": "bookSourceType", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "bookUrlPattern", - "columnName": "bookUrlPattern", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "customOrder", - "columnName": "customOrder", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "enabled", - "columnName": "enabled", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "enabledExplore", - "columnName": "enabledExplore", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "enabledReview", - "columnName": "enabledReview", - "affinity": "INTEGER", - "notNull": false - }, - { - "fieldPath": "enabledCookieJar", - "columnName": "enabledCookieJar", - "affinity": "INTEGER", - "notNull": false, - "defaultValue": "0" - }, - { - "fieldPath": "concurrentRate", - "columnName": "concurrentRate", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "header", - "columnName": "header", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "loginUrl", - "columnName": "loginUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "loginUi", - "columnName": "loginUi", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "loginCheckJs", - "columnName": "loginCheckJs", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "coverDecodeJs", - "columnName": "coverDecodeJs", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "bookSourceComment", - "columnName": "bookSourceComment", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "variableComment", - "columnName": "variableComment", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "lastUpdateTime", - "columnName": "lastUpdateTime", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "respondTime", - "columnName": "respondTime", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "weight", - "columnName": "weight", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "exploreUrl", - "columnName": "exploreUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleExplore", - "columnName": "ruleExplore", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "searchUrl", - "columnName": "searchUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleSearch", - "columnName": "ruleSearch", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleBookInfo", - "columnName": "ruleBookInfo", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleToc", - "columnName": "ruleToc", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleContent", - "columnName": "ruleContent", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleReview", - "columnName": "ruleReview", - "affinity": "TEXT", - "notNull": false - } - ], - "primaryKey": { - "columnNames": [ - "bookSourceUrl" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_book_sources_bookSourceUrl", - "unique": false, - "columnNames": [ - "bookSourceUrl" - ], - "orders": [], - "createSql": "CREATE INDEX IF NOT EXISTS `index_book_sources_bookSourceUrl` ON `${TABLE_NAME}` (`bookSourceUrl`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "chapters", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`url` TEXT NOT NULL, `title` TEXT NOT NULL, `isVolume` INTEGER NOT NULL, `baseUrl` TEXT NOT NULL, `bookUrl` TEXT NOT NULL, `index` INTEGER NOT NULL, `isVip` INTEGER NOT NULL, `isPay` INTEGER NOT NULL, `resourceUrl` TEXT, `tag` TEXT, `start` INTEGER, `end` INTEGER, `startFragmentId` TEXT, `endFragmentId` TEXT, `variable` TEXT, PRIMARY KEY(`url`, `bookUrl`), FOREIGN KEY(`bookUrl`) REFERENCES `books`(`bookUrl`) ON UPDATE NO ACTION ON DELETE CASCADE )", - "fields": [ - { - "fieldPath": "url", - "columnName": "url", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "title", - "columnName": "title", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "isVolume", - "columnName": "isVolume", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "baseUrl", - "columnName": "baseUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookUrl", - "columnName": "bookUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "index", - "columnName": "index", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "isVip", - "columnName": "isVip", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "isPay", - "columnName": "isPay", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "resourceUrl", - "columnName": "resourceUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "tag", - "columnName": "tag", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "start", - "columnName": "start", - "affinity": "INTEGER", - "notNull": false - }, - { - "fieldPath": "end", - "columnName": "end", - "affinity": "INTEGER", - "notNull": false - }, - { - "fieldPath": "startFragmentId", - "columnName": "startFragmentId", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "endFragmentId", - "columnName": "endFragmentId", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "variable", - "columnName": "variable", - "affinity": "TEXT", - "notNull": false - } - ], - "primaryKey": { - "columnNames": [ - "url", - "bookUrl" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_chapters_bookUrl", - "unique": false, - "columnNames": [ - "bookUrl" - ], - "orders": [], - "createSql": "CREATE INDEX IF NOT EXISTS `index_chapters_bookUrl` ON `${TABLE_NAME}` (`bookUrl`)" - }, - { - "name": "index_chapters_bookUrl_index", - "unique": true, - "columnNames": [ - "bookUrl", - "index" - ], - "orders": [], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_chapters_bookUrl_index` ON `${TABLE_NAME}` (`bookUrl`, `index`)" - } - ], - "foreignKeys": [ - { - "table": "books", - "onDelete": "CASCADE", - "onUpdate": "NO ACTION", - "columns": [ - "bookUrl" - ], - "referencedColumns": [ - "bookUrl" - ] - } - ] - }, - { - "tableName": "replace_rules", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, `name` TEXT NOT NULL DEFAULT '', `group` TEXT, `pattern` TEXT NOT NULL DEFAULT '', `replacement` TEXT NOT NULL DEFAULT '', `scope` TEXT, `scopeTitle` INTEGER NOT NULL DEFAULT 0, `scopeContent` INTEGER NOT NULL DEFAULT 1, `isEnabled` INTEGER NOT NULL DEFAULT 1, `isRegex` INTEGER NOT NULL DEFAULT 1, `timeoutMillisecond` INTEGER NOT NULL DEFAULT 3000, `sortOrder` INTEGER NOT NULL DEFAULT 0)", - "fields": [ - { - "fieldPath": "id", - "columnName": "id", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true, - "defaultValue": "''" - }, - { - "fieldPath": "group", - "columnName": "group", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "pattern", - "columnName": "pattern", - "affinity": "TEXT", - "notNull": true, - "defaultValue": "''" - }, - { - "fieldPath": "replacement", - "columnName": "replacement", - "affinity": "TEXT", - "notNull": true, - "defaultValue": "''" - }, - { - "fieldPath": "scope", - "columnName": "scope", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "scopeTitle", - "columnName": "scopeTitle", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "scopeContent", - "columnName": "scopeContent", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "1" - }, - { - "fieldPath": "isEnabled", - "columnName": "isEnabled", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "1" - }, - { - "fieldPath": "isRegex", - "columnName": "isRegex", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "1" - }, - { - "fieldPath": "timeoutMillisecond", - "columnName": "timeoutMillisecond", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "3000" - }, - { - "fieldPath": "order", - "columnName": "sortOrder", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - } - ], - "primaryKey": { - "columnNames": [ - "id" - ], - "autoGenerate": true - }, - "indices": [ - { - "name": "index_replace_rules_id", - "unique": false, - "columnNames": [ - "id" - ], - "orders": [], - "createSql": "CREATE INDEX IF NOT EXISTS `index_replace_rules_id` ON `${TABLE_NAME}` (`id`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "searchBooks", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`bookUrl` TEXT NOT NULL, `origin` TEXT NOT NULL, `originName` TEXT NOT NULL, `type` INTEGER NOT NULL, `name` TEXT NOT NULL, `author` TEXT NOT NULL, `kind` TEXT, `coverUrl` TEXT, `intro` TEXT, `wordCount` TEXT, `latestChapterTitle` TEXT, `tocUrl` TEXT NOT NULL, `time` INTEGER NOT NULL, `variable` TEXT, `originOrder` INTEGER NOT NULL, PRIMARY KEY(`bookUrl`), FOREIGN KEY(`origin`) REFERENCES `book_sources`(`bookSourceUrl`) ON UPDATE NO ACTION ON DELETE CASCADE )", - "fields": [ - { - "fieldPath": "bookUrl", - "columnName": "bookUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "origin", - "columnName": "origin", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "originName", - "columnName": "originName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "type", - "columnName": "type", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "author", - "columnName": "author", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "kind", - "columnName": "kind", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "coverUrl", - "columnName": "coverUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "intro", - "columnName": "intro", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "wordCount", - "columnName": "wordCount", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "latestChapterTitle", - "columnName": "latestChapterTitle", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "tocUrl", - "columnName": "tocUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "time", - "columnName": "time", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "variable", - "columnName": "variable", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "originOrder", - "columnName": "originOrder", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "bookUrl" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_searchBooks_bookUrl", - "unique": true, - "columnNames": [ - "bookUrl" - ], - "orders": [], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_searchBooks_bookUrl` ON `${TABLE_NAME}` (`bookUrl`)" - }, - { - "name": "index_searchBooks_origin", - "unique": false, - "columnNames": [ - "origin" - ], - "orders": [], - "createSql": "CREATE INDEX IF NOT EXISTS `index_searchBooks_origin` ON `${TABLE_NAME}` (`origin`)" - } - ], - "foreignKeys": [ - { - "table": "book_sources", - "onDelete": "CASCADE", - "onUpdate": "NO ACTION", - "columns": [ - "origin" - ], - "referencedColumns": [ - "bookSourceUrl" - ] - } - ] - }, - { - "tableName": "search_keywords", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`word` TEXT NOT NULL, `usage` INTEGER NOT NULL, `lastUseTime` INTEGER NOT NULL, PRIMARY KEY(`word`))", - "fields": [ - { - "fieldPath": "word", - "columnName": "word", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "usage", - "columnName": "usage", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "lastUseTime", - "columnName": "lastUseTime", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "word" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_search_keywords_word", - "unique": true, - "columnNames": [ - "word" - ], - "orders": [], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_search_keywords_word` ON `${TABLE_NAME}` (`word`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "cookies", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`url` TEXT NOT NULL, `cookie` TEXT NOT NULL, PRIMARY KEY(`url`))", - "fields": [ - { - "fieldPath": "url", - "columnName": "url", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "cookie", - "columnName": "cookie", - "affinity": "TEXT", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "url" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_cookies_url", - "unique": true, - "columnNames": [ - "url" - ], - "orders": [], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_cookies_url` ON `${TABLE_NAME}` (`url`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "rssSources", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`sourceUrl` TEXT NOT NULL, `sourceName` TEXT NOT NULL, `sourceIcon` TEXT NOT NULL, `sourceGroup` TEXT, `sourceComment` TEXT, `enabled` INTEGER NOT NULL, `variableComment` TEXT, `enabledCookieJar` INTEGER DEFAULT 0, `concurrentRate` TEXT, `header` TEXT, `loginUrl` TEXT, `loginUi` TEXT, `loginCheckJs` TEXT, `coverDecodeJs` TEXT, `sortUrl` TEXT, `singleUrl` INTEGER NOT NULL, `articleStyle` INTEGER NOT NULL, `ruleArticles` TEXT, `ruleNextPage` TEXT, `ruleTitle` TEXT, `rulePubDate` TEXT, `ruleDescription` TEXT, `ruleImage` TEXT, `ruleLink` TEXT, `ruleContent` TEXT, `style` TEXT, `enableJs` INTEGER NOT NULL, `loadWithBaseUrl` INTEGER NOT NULL, `injectJs` TEXT, `lastUpdateTime` INTEGER NOT NULL DEFAULT 0, `customOrder` INTEGER NOT NULL, PRIMARY KEY(`sourceUrl`))", - "fields": [ - { - "fieldPath": "sourceUrl", - "columnName": "sourceUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "sourceName", - "columnName": "sourceName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "sourceIcon", - "columnName": "sourceIcon", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "sourceGroup", - "columnName": "sourceGroup", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "sourceComment", - "columnName": "sourceComment", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "enabled", - "columnName": "enabled", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "variableComment", - "columnName": "variableComment", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "enabledCookieJar", - "columnName": "enabledCookieJar", - "affinity": "INTEGER", - "notNull": false, - "defaultValue": "0" - }, - { - "fieldPath": "concurrentRate", - "columnName": "concurrentRate", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "header", - "columnName": "header", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "loginUrl", - "columnName": "loginUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "loginUi", - "columnName": "loginUi", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "loginCheckJs", - "columnName": "loginCheckJs", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "coverDecodeJs", - "columnName": "coverDecodeJs", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "sortUrl", - "columnName": "sortUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "singleUrl", - "columnName": "singleUrl", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "articleStyle", - "columnName": "articleStyle", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "ruleArticles", - "columnName": "ruleArticles", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleNextPage", - "columnName": "ruleNextPage", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleTitle", - "columnName": "ruleTitle", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "rulePubDate", - "columnName": "rulePubDate", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleDescription", - "columnName": "ruleDescription", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleImage", - "columnName": "ruleImage", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleLink", - "columnName": "ruleLink", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleContent", - "columnName": "ruleContent", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "style", - "columnName": "style", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "enableJs", - "columnName": "enableJs", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "loadWithBaseUrl", - "columnName": "loadWithBaseUrl", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "injectJs", - "columnName": "injectJs", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "lastUpdateTime", - "columnName": "lastUpdateTime", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "customOrder", - "columnName": "customOrder", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "sourceUrl" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_rssSources_sourceUrl", - "unique": false, - "columnNames": [ - "sourceUrl" - ], - "orders": [], - "createSql": "CREATE INDEX IF NOT EXISTS `index_rssSources_sourceUrl` ON `${TABLE_NAME}` (`sourceUrl`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "bookmarks", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`time` INTEGER NOT NULL, `bookName` TEXT NOT NULL, `bookAuthor` TEXT NOT NULL, `chapterIndex` INTEGER NOT NULL, `chapterPos` INTEGER NOT NULL, `chapterName` TEXT NOT NULL, `bookText` TEXT NOT NULL, `content` TEXT NOT NULL, PRIMARY KEY(`time`))", - "fields": [ - { - "fieldPath": "time", - "columnName": "time", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "bookName", - "columnName": "bookName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookAuthor", - "columnName": "bookAuthor", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "chapterIndex", - "columnName": "chapterIndex", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "chapterPos", - "columnName": "chapterPos", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "chapterName", - "columnName": "chapterName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookText", - "columnName": "bookText", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "content", - "columnName": "content", - "affinity": "TEXT", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "time" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_bookmarks_bookName_bookAuthor", - "unique": false, - "columnNames": [ - "bookName", - "bookAuthor" - ], - "orders": [], - "createSql": "CREATE INDEX IF NOT EXISTS `index_bookmarks_bookName_bookAuthor` ON `${TABLE_NAME}` (`bookName`, `bookAuthor`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "rssArticles", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`origin` TEXT NOT NULL, `sort` TEXT NOT NULL, `title` TEXT NOT NULL, `order` INTEGER NOT NULL, `link` TEXT NOT NULL, `pubDate` TEXT, `description` TEXT, `content` TEXT, `image` TEXT, `read` INTEGER NOT NULL, `variable` TEXT, PRIMARY KEY(`origin`, `link`))", - "fields": [ - { - "fieldPath": "origin", - "columnName": "origin", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "sort", - "columnName": "sort", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "title", - "columnName": "title", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "order", - "columnName": "order", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "link", - "columnName": "link", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "pubDate", - "columnName": "pubDate", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "description", - "columnName": "description", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "content", - "columnName": "content", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "image", - "columnName": "image", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "read", - "columnName": "read", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "variable", - "columnName": "variable", - "affinity": "TEXT", - "notNull": false - } - ], - "primaryKey": { - "columnNames": [ - "origin", - "link" - ], - "autoGenerate": false - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "rssReadRecords", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`record` TEXT NOT NULL, `read` INTEGER NOT NULL, PRIMARY KEY(`record`))", - "fields": [ - { - "fieldPath": "record", - "columnName": "record", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "read", - "columnName": "read", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "record" - ], - "autoGenerate": false - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "rssStars", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`origin` TEXT NOT NULL, `sort` TEXT NOT NULL, `title` TEXT NOT NULL, `starTime` INTEGER NOT NULL, `link` TEXT NOT NULL, `pubDate` TEXT, `description` TEXT, `content` TEXT, `image` TEXT, `variable` TEXT, PRIMARY KEY(`origin`, `link`))", - "fields": [ - { - "fieldPath": "origin", - "columnName": "origin", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "sort", - "columnName": "sort", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "title", - "columnName": "title", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "starTime", - "columnName": "starTime", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "link", - "columnName": "link", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "pubDate", - "columnName": "pubDate", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "description", - "columnName": "description", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "content", - "columnName": "content", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "image", - "columnName": "image", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "variable", - "columnName": "variable", - "affinity": "TEXT", - "notNull": false - } - ], - "primaryKey": { - "columnNames": [ - "origin", - "link" - ], - "autoGenerate": false - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "txtTocRules", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER NOT NULL, `name` TEXT NOT NULL, `rule` TEXT NOT NULL, `example` TEXT, `serialNumber` INTEGER NOT NULL, `enable` INTEGER NOT NULL, PRIMARY KEY(`id`))", - "fields": [ - { - "fieldPath": "id", - "columnName": "id", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "rule", - "columnName": "rule", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "example", - "columnName": "example", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "serialNumber", - "columnName": "serialNumber", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "enable", - "columnName": "enable", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "id" - ], - "autoGenerate": false - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "readRecord", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`deviceId` TEXT NOT NULL, `bookName` TEXT NOT NULL, `readTime` INTEGER NOT NULL DEFAULT 0, `lastRead` INTEGER NOT NULL DEFAULT 0, PRIMARY KEY(`deviceId`, `bookName`))", - "fields": [ - { - "fieldPath": "deviceId", - "columnName": "deviceId", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookName", - "columnName": "bookName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "readTime", - "columnName": "readTime", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "lastRead", - "columnName": "lastRead", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - } - ], - "primaryKey": { - "columnNames": [ - "deviceId", - "bookName" - ], - "autoGenerate": false - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "httpTTS", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER NOT NULL, `name` TEXT NOT NULL, `url` TEXT NOT NULL, `contentType` TEXT, `concurrentRate` TEXT DEFAULT '0', `loginUrl` TEXT, `loginUi` TEXT, `header` TEXT, `enabledCookieJar` INTEGER DEFAULT 0, `loginCheckJs` TEXT, `lastUpdateTime` INTEGER NOT NULL DEFAULT 0, PRIMARY KEY(`id`))", - "fields": [ - { - "fieldPath": "id", - "columnName": "id", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "url", - "columnName": "url", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "contentType", - "columnName": "contentType", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "concurrentRate", - "columnName": "concurrentRate", - "affinity": "TEXT", - "notNull": false, - "defaultValue": "'0'" - }, - { - "fieldPath": "loginUrl", - "columnName": "loginUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "loginUi", - "columnName": "loginUi", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "header", - "columnName": "header", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "enabledCookieJar", - "columnName": "enabledCookieJar", - "affinity": "INTEGER", - "notNull": false, - "defaultValue": "0" - }, - { - "fieldPath": "loginCheckJs", - "columnName": "loginCheckJs", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "lastUpdateTime", - "columnName": "lastUpdateTime", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - } - ], - "primaryKey": { - "columnNames": [ - "id" - ], - "autoGenerate": false - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "caches", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`key` TEXT NOT NULL, `value` TEXT, `deadline` INTEGER NOT NULL, PRIMARY KEY(`key`))", - "fields": [ - { - "fieldPath": "key", - "columnName": "key", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "value", - "columnName": "value", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "deadline", - "columnName": "deadline", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "key" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_caches_key", - "unique": true, - "columnNames": [ - "key" - ], - "orders": [], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_caches_key` ON `${TABLE_NAME}` (`key`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "ruleSubs", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER NOT NULL, `name` TEXT NOT NULL, `url` TEXT NOT NULL, `type` INTEGER NOT NULL, `customOrder` INTEGER NOT NULL, `autoUpdate` INTEGER NOT NULL, `update` INTEGER NOT NULL, PRIMARY KEY(`id`))", - "fields": [ - { - "fieldPath": "id", - "columnName": "id", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "url", - "columnName": "url", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "type", - "columnName": "type", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "customOrder", - "columnName": "customOrder", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "autoUpdate", - "columnName": "autoUpdate", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "update", - "columnName": "update", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "id" - ], - "autoGenerate": false - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "keyboardAssists", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`type` INTEGER NOT NULL DEFAULT 0, `key` TEXT NOT NULL DEFAULT '', `value` TEXT NOT NULL DEFAULT '', `serialNo` INTEGER NOT NULL DEFAULT 0, PRIMARY KEY(`type`, `key`))", - "fields": [ - { - "fieldPath": "type", - "columnName": "type", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "key", - "columnName": "key", - "affinity": "TEXT", - "notNull": true, - "defaultValue": "''" - }, - { - "fieldPath": "value", - "columnName": "value", - "affinity": "TEXT", - "notNull": true, - "defaultValue": "''" - }, - { - "fieldPath": "serialNo", - "columnName": "serialNo", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - } - ], - "primaryKey": { - "columnNames": [ - "type", - "key" - ], - "autoGenerate": false - }, - "indices": [], - "foreignKeys": [] - } - ], - "views": [], - "setupQueries": [ - "CREATE TABLE IF NOT EXISTS room_master_table (id INTEGER PRIMARY KEY,identity_hash TEXT)", - "INSERT OR REPLACE INTO room_master_table (id,identity_hash) VALUES(42, 'dce5917572677d2b19bbc43809efb40c')" - ] - } -} \ No newline at end of file diff --git a/app/schemas/io.legado.app.data.AppDatabase/59.json b/app/schemas/io.legado.app.data.AppDatabase/59.json deleted file mode 100644 index 189a372bc..000000000 --- a/app/schemas/io.legado.app.data.AppDatabase/59.json +++ /dev/null @@ -1,1740 +0,0 @@ -{ - "formatVersion": 1, - "database": { - "version": 59, - "identityHash": "ddae0fd3a6b7ec874a028754a8cdd528", - "entities": [ - { - "tableName": "books", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`bookUrl` TEXT NOT NULL DEFAULT '', `tocUrl` TEXT NOT NULL DEFAULT '', `origin` TEXT NOT NULL DEFAULT 'loc_book', `originName` TEXT NOT NULL DEFAULT '', `name` TEXT NOT NULL DEFAULT '', `author` TEXT NOT NULL DEFAULT '', `kind` TEXT, `customTag` TEXT, `coverUrl` TEXT, `customCoverUrl` TEXT, `intro` TEXT, `customIntro` TEXT, `charset` TEXT, `type` INTEGER NOT NULL DEFAULT 0, `group` INTEGER NOT NULL DEFAULT 0, `latestChapterTitle` TEXT, `latestChapterTime` INTEGER NOT NULL DEFAULT 0, `lastCheckTime` INTEGER NOT NULL DEFAULT 0, `lastCheckCount` INTEGER NOT NULL DEFAULT 0, `totalChapterNum` INTEGER NOT NULL DEFAULT 0, `durChapterTitle` TEXT, `durChapterIndex` INTEGER NOT NULL DEFAULT 0, `durChapterPos` INTEGER NOT NULL DEFAULT 0, `durChapterTime` INTEGER NOT NULL DEFAULT 0, `wordCount` TEXT, `canUpdate` INTEGER NOT NULL DEFAULT 1, `order` INTEGER NOT NULL DEFAULT 0, `originOrder` INTEGER NOT NULL DEFAULT 0, `variable` TEXT, `readConfig` TEXT, PRIMARY KEY(`bookUrl`))", - "fields": [ - { - "fieldPath": "bookUrl", - "columnName": "bookUrl", - "affinity": "TEXT", - "notNull": true, - "defaultValue": "''" - }, - { - "fieldPath": "tocUrl", - "columnName": "tocUrl", - "affinity": "TEXT", - "notNull": true, - "defaultValue": "''" - }, - { - "fieldPath": "origin", - "columnName": "origin", - "affinity": "TEXT", - "notNull": true, - "defaultValue": "'loc_book'" - }, - { - "fieldPath": "originName", - "columnName": "originName", - "affinity": "TEXT", - "notNull": true, - "defaultValue": "''" - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true, - "defaultValue": "''" - }, - { - "fieldPath": "author", - "columnName": "author", - "affinity": "TEXT", - "notNull": true, - "defaultValue": "''" - }, - { - "fieldPath": "kind", - "columnName": "kind", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "customTag", - "columnName": "customTag", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "coverUrl", - "columnName": "coverUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "customCoverUrl", - "columnName": "customCoverUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "intro", - "columnName": "intro", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "customIntro", - "columnName": "customIntro", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "charset", - "columnName": "charset", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "type", - "columnName": "type", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "group", - "columnName": "group", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "latestChapterTitle", - "columnName": "latestChapterTitle", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "latestChapterTime", - "columnName": "latestChapterTime", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "lastCheckTime", - "columnName": "lastCheckTime", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "lastCheckCount", - "columnName": "lastCheckCount", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "totalChapterNum", - "columnName": "totalChapterNum", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "durChapterTitle", - "columnName": "durChapterTitle", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "durChapterIndex", - "columnName": "durChapterIndex", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "durChapterPos", - "columnName": "durChapterPos", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "durChapterTime", - "columnName": "durChapterTime", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "wordCount", - "columnName": "wordCount", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "canUpdate", - "columnName": "canUpdate", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "1" - }, - { - "fieldPath": "order", - "columnName": "order", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "originOrder", - "columnName": "originOrder", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "variable", - "columnName": "variable", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "readConfig", - "columnName": "readConfig", - "affinity": "TEXT", - "notNull": false - } - ], - "primaryKey": { - "autoGenerate": false, - "columnNames": [ - "bookUrl" - ] - }, - "indices": [ - { - "name": "index_books_name_author", - "unique": true, - "columnNames": [ - "name", - "author" - ], - "orders": [], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_books_name_author` ON `${TABLE_NAME}` (`name`, `author`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "book_groups", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`groupId` INTEGER NOT NULL, `groupName` TEXT NOT NULL, `cover` TEXT, `order` INTEGER NOT NULL, `show` INTEGER NOT NULL, `bookSort` INTEGER NOT NULL DEFAULT -1, PRIMARY KEY(`groupId`))", - "fields": [ - { - "fieldPath": "groupId", - "columnName": "groupId", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "groupName", - "columnName": "groupName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "cover", - "columnName": "cover", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "order", - "columnName": "order", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "show", - "columnName": "show", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "bookSort", - "columnName": "bookSort", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "-1" - } - ], - "primaryKey": { - "autoGenerate": false, - "columnNames": [ - "groupId" - ] - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "book_sources", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`bookSourceUrl` TEXT NOT NULL, `bookSourceName` TEXT NOT NULL, `bookSourceGroup` TEXT, `bookSourceType` INTEGER NOT NULL, `bookUrlPattern` TEXT, `customOrder` INTEGER NOT NULL, `enabled` INTEGER NOT NULL, `enabledExplore` INTEGER NOT NULL, `enabledReview` INTEGER, `enabledCookieJar` INTEGER DEFAULT 0, `concurrentRate` TEXT, `header` TEXT, `loginUrl` TEXT, `loginUi` TEXT, `loginCheckJs` TEXT, `coverDecodeJs` TEXT, `bookSourceComment` TEXT, `variableComment` TEXT, `lastUpdateTime` INTEGER NOT NULL, `respondTime` INTEGER NOT NULL, `weight` INTEGER NOT NULL, `exploreUrl` TEXT, `ruleExplore` TEXT, `searchUrl` TEXT, `ruleSearch` TEXT, `ruleBookInfo` TEXT, `ruleToc` TEXT, `ruleContent` TEXT, `ruleReview` TEXT, PRIMARY KEY(`bookSourceUrl`))", - "fields": [ - { - "fieldPath": "bookSourceUrl", - "columnName": "bookSourceUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookSourceName", - "columnName": "bookSourceName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookSourceGroup", - "columnName": "bookSourceGroup", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "bookSourceType", - "columnName": "bookSourceType", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "bookUrlPattern", - "columnName": "bookUrlPattern", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "customOrder", - "columnName": "customOrder", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "enabled", - "columnName": "enabled", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "enabledExplore", - "columnName": "enabledExplore", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "enabledReview", - "columnName": "enabledReview", - "affinity": "INTEGER", - "notNull": false - }, - { - "fieldPath": "enabledCookieJar", - "columnName": "enabledCookieJar", - "affinity": "INTEGER", - "notNull": false, - "defaultValue": "0" - }, - { - "fieldPath": "concurrentRate", - "columnName": "concurrentRate", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "header", - "columnName": "header", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "loginUrl", - "columnName": "loginUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "loginUi", - "columnName": "loginUi", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "loginCheckJs", - "columnName": "loginCheckJs", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "coverDecodeJs", - "columnName": "coverDecodeJs", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "bookSourceComment", - "columnName": "bookSourceComment", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "variableComment", - "columnName": "variableComment", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "lastUpdateTime", - "columnName": "lastUpdateTime", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "respondTime", - "columnName": "respondTime", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "weight", - "columnName": "weight", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "exploreUrl", - "columnName": "exploreUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleExplore", - "columnName": "ruleExplore", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "searchUrl", - "columnName": "searchUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleSearch", - "columnName": "ruleSearch", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleBookInfo", - "columnName": "ruleBookInfo", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleToc", - "columnName": "ruleToc", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleContent", - "columnName": "ruleContent", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleReview", - "columnName": "ruleReview", - "affinity": "TEXT", - "notNull": false - } - ], - "primaryKey": { - "autoGenerate": false, - "columnNames": [ - "bookSourceUrl" - ] - }, - "indices": [ - { - "name": "index_book_sources_bookSourceUrl", - "unique": false, - "columnNames": [ - "bookSourceUrl" - ], - "orders": [], - "createSql": "CREATE INDEX IF NOT EXISTS `index_book_sources_bookSourceUrl` ON `${TABLE_NAME}` (`bookSourceUrl`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "chapters", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`url` TEXT NOT NULL, `title` TEXT NOT NULL, `isVolume` INTEGER NOT NULL, `baseUrl` TEXT NOT NULL, `bookUrl` TEXT NOT NULL, `index` INTEGER NOT NULL, `isVip` INTEGER NOT NULL, `isPay` INTEGER NOT NULL, `resourceUrl` TEXT, `tag` TEXT, `start` INTEGER, `end` INTEGER, `startFragmentId` TEXT, `endFragmentId` TEXT, `variable` TEXT, PRIMARY KEY(`url`, `bookUrl`), FOREIGN KEY(`bookUrl`) REFERENCES `books`(`bookUrl`) ON UPDATE NO ACTION ON DELETE CASCADE )", - "fields": [ - { - "fieldPath": "url", - "columnName": "url", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "title", - "columnName": "title", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "isVolume", - "columnName": "isVolume", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "baseUrl", - "columnName": "baseUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookUrl", - "columnName": "bookUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "index", - "columnName": "index", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "isVip", - "columnName": "isVip", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "isPay", - "columnName": "isPay", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "resourceUrl", - "columnName": "resourceUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "tag", - "columnName": "tag", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "start", - "columnName": "start", - "affinity": "INTEGER", - "notNull": false - }, - { - "fieldPath": "end", - "columnName": "end", - "affinity": "INTEGER", - "notNull": false - }, - { - "fieldPath": "startFragmentId", - "columnName": "startFragmentId", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "endFragmentId", - "columnName": "endFragmentId", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "variable", - "columnName": "variable", - "affinity": "TEXT", - "notNull": false - } - ], - "primaryKey": { - "autoGenerate": false, - "columnNames": [ - "url", - "bookUrl" - ] - }, - "indices": [ - { - "name": "index_chapters_bookUrl", - "unique": false, - "columnNames": [ - "bookUrl" - ], - "orders": [], - "createSql": "CREATE INDEX IF NOT EXISTS `index_chapters_bookUrl` ON `${TABLE_NAME}` (`bookUrl`)" - }, - { - "name": "index_chapters_bookUrl_index", - "unique": true, - "columnNames": [ - "bookUrl", - "index" - ], - "orders": [], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_chapters_bookUrl_index` ON `${TABLE_NAME}` (`bookUrl`, `index`)" - } - ], - "foreignKeys": [ - { - "table": "books", - "onDelete": "CASCADE", - "onUpdate": "NO ACTION", - "columns": [ - "bookUrl" - ], - "referencedColumns": [ - "bookUrl" - ] - } - ] - }, - { - "tableName": "replace_rules", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, `name` TEXT NOT NULL DEFAULT '', `group` TEXT, `pattern` TEXT NOT NULL DEFAULT '', `replacement` TEXT NOT NULL DEFAULT '', `scope` TEXT, `scopeTitle` INTEGER NOT NULL DEFAULT 0, `scopeContent` INTEGER NOT NULL DEFAULT 1, `isEnabled` INTEGER NOT NULL DEFAULT 1, `isRegex` INTEGER NOT NULL DEFAULT 1, `timeoutMillisecond` INTEGER NOT NULL DEFAULT 3000, `sortOrder` INTEGER NOT NULL DEFAULT 0)", - "fields": [ - { - "fieldPath": "id", - "columnName": "id", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true, - "defaultValue": "''" - }, - { - "fieldPath": "group", - "columnName": "group", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "pattern", - "columnName": "pattern", - "affinity": "TEXT", - "notNull": true, - "defaultValue": "''" - }, - { - "fieldPath": "replacement", - "columnName": "replacement", - "affinity": "TEXT", - "notNull": true, - "defaultValue": "''" - }, - { - "fieldPath": "scope", - "columnName": "scope", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "scopeTitle", - "columnName": "scopeTitle", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "scopeContent", - "columnName": "scopeContent", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "1" - }, - { - "fieldPath": "isEnabled", - "columnName": "isEnabled", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "1" - }, - { - "fieldPath": "isRegex", - "columnName": "isRegex", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "1" - }, - { - "fieldPath": "timeoutMillisecond", - "columnName": "timeoutMillisecond", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "3000" - }, - { - "fieldPath": "order", - "columnName": "sortOrder", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - } - ], - "primaryKey": { - "autoGenerate": true, - "columnNames": [ - "id" - ] - }, - "indices": [ - { - "name": "index_replace_rules_id", - "unique": false, - "columnNames": [ - "id" - ], - "orders": [], - "createSql": "CREATE INDEX IF NOT EXISTS `index_replace_rules_id` ON `${TABLE_NAME}` (`id`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "searchBooks", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`bookUrl` TEXT NOT NULL, `origin` TEXT NOT NULL, `originName` TEXT NOT NULL, `type` INTEGER NOT NULL, `name` TEXT NOT NULL, `author` TEXT NOT NULL, `kind` TEXT, `coverUrl` TEXT, `intro` TEXT, `wordCount` TEXT, `latestChapterTitle` TEXT, `tocUrl` TEXT NOT NULL, `time` INTEGER NOT NULL, `variable` TEXT, `originOrder` INTEGER NOT NULL, PRIMARY KEY(`bookUrl`), FOREIGN KEY(`origin`) REFERENCES `book_sources`(`bookSourceUrl`) ON UPDATE NO ACTION ON DELETE CASCADE )", - "fields": [ - { - "fieldPath": "bookUrl", - "columnName": "bookUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "origin", - "columnName": "origin", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "originName", - "columnName": "originName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "type", - "columnName": "type", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "author", - "columnName": "author", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "kind", - "columnName": "kind", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "coverUrl", - "columnName": "coverUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "intro", - "columnName": "intro", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "wordCount", - "columnName": "wordCount", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "latestChapterTitle", - "columnName": "latestChapterTitle", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "tocUrl", - "columnName": "tocUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "time", - "columnName": "time", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "variable", - "columnName": "variable", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "originOrder", - "columnName": "originOrder", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "autoGenerate": false, - "columnNames": [ - "bookUrl" - ] - }, - "indices": [ - { - "name": "index_searchBooks_bookUrl", - "unique": true, - "columnNames": [ - "bookUrl" - ], - "orders": [], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_searchBooks_bookUrl` ON `${TABLE_NAME}` (`bookUrl`)" - }, - { - "name": "index_searchBooks_origin", - "unique": false, - "columnNames": [ - "origin" - ], - "orders": [], - "createSql": "CREATE INDEX IF NOT EXISTS `index_searchBooks_origin` ON `${TABLE_NAME}` (`origin`)" - } - ], - "foreignKeys": [ - { - "table": "book_sources", - "onDelete": "CASCADE", - "onUpdate": "NO ACTION", - "columns": [ - "origin" - ], - "referencedColumns": [ - "bookSourceUrl" - ] - } - ] - }, - { - "tableName": "search_keywords", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`word` TEXT NOT NULL, `usage` INTEGER NOT NULL, `lastUseTime` INTEGER NOT NULL, PRIMARY KEY(`word`))", - "fields": [ - { - "fieldPath": "word", - "columnName": "word", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "usage", - "columnName": "usage", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "lastUseTime", - "columnName": "lastUseTime", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "autoGenerate": false, - "columnNames": [ - "word" - ] - }, - "indices": [ - { - "name": "index_search_keywords_word", - "unique": true, - "columnNames": [ - "word" - ], - "orders": [], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_search_keywords_word` ON `${TABLE_NAME}` (`word`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "cookies", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`url` TEXT NOT NULL, `cookie` TEXT NOT NULL, PRIMARY KEY(`url`))", - "fields": [ - { - "fieldPath": "url", - "columnName": "url", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "cookie", - "columnName": "cookie", - "affinity": "TEXT", - "notNull": true - } - ], - "primaryKey": { - "autoGenerate": false, - "columnNames": [ - "url" - ] - }, - "indices": [ - { - "name": "index_cookies_url", - "unique": true, - "columnNames": [ - "url" - ], - "orders": [], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_cookies_url` ON `${TABLE_NAME}` (`url`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "rssSources", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`sourceUrl` TEXT NOT NULL, `sourceName` TEXT NOT NULL, `sourceIcon` TEXT NOT NULL, `sourceGroup` TEXT, `sourceComment` TEXT, `enabled` INTEGER NOT NULL, `variableComment` TEXT, `enabledCookieJar` INTEGER DEFAULT 0, `concurrentRate` TEXT, `header` TEXT, `loginUrl` TEXT, `loginUi` TEXT, `loginCheckJs` TEXT, `coverDecodeJs` TEXT, `sortUrl` TEXT, `singleUrl` INTEGER NOT NULL, `articleStyle` INTEGER NOT NULL DEFAULT 0, `ruleArticles` TEXT, `ruleNextPage` TEXT, `ruleTitle` TEXT, `rulePubDate` TEXT, `ruleDescription` TEXT, `ruleImage` TEXT, `ruleLink` TEXT, `ruleContent` TEXT, `contentWhitelist` TEXT, `contentBlacklist` TEXT, `style` TEXT, `enableJs` INTEGER NOT NULL DEFAULT 1, `loadWithBaseUrl` INTEGER NOT NULL DEFAULT 1, `injectJs` TEXT, `lastUpdateTime` INTEGER NOT NULL DEFAULT 0, `customOrder` INTEGER NOT NULL DEFAULT 0, PRIMARY KEY(`sourceUrl`))", - "fields": [ - { - "fieldPath": "sourceUrl", - "columnName": "sourceUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "sourceName", - "columnName": "sourceName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "sourceIcon", - "columnName": "sourceIcon", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "sourceGroup", - "columnName": "sourceGroup", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "sourceComment", - "columnName": "sourceComment", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "enabled", - "columnName": "enabled", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "variableComment", - "columnName": "variableComment", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "enabledCookieJar", - "columnName": "enabledCookieJar", - "affinity": "INTEGER", - "notNull": false, - "defaultValue": "0" - }, - { - "fieldPath": "concurrentRate", - "columnName": "concurrentRate", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "header", - "columnName": "header", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "loginUrl", - "columnName": "loginUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "loginUi", - "columnName": "loginUi", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "loginCheckJs", - "columnName": "loginCheckJs", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "coverDecodeJs", - "columnName": "coverDecodeJs", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "sortUrl", - "columnName": "sortUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "singleUrl", - "columnName": "singleUrl", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "articleStyle", - "columnName": "articleStyle", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "ruleArticles", - "columnName": "ruleArticles", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleNextPage", - "columnName": "ruleNextPage", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleTitle", - "columnName": "ruleTitle", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "rulePubDate", - "columnName": "rulePubDate", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleDescription", - "columnName": "ruleDescription", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleImage", - "columnName": "ruleImage", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleLink", - "columnName": "ruleLink", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleContent", - "columnName": "ruleContent", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "contentWhitelist", - "columnName": "contentWhitelist", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "contentBlacklist", - "columnName": "contentBlacklist", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "style", - "columnName": "style", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "enableJs", - "columnName": "enableJs", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "1" - }, - { - "fieldPath": "loadWithBaseUrl", - "columnName": "loadWithBaseUrl", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "1" - }, - { - "fieldPath": "injectJs", - "columnName": "injectJs", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "lastUpdateTime", - "columnName": "lastUpdateTime", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "customOrder", - "columnName": "customOrder", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - } - ], - "primaryKey": { - "autoGenerate": false, - "columnNames": [ - "sourceUrl" - ] - }, - "indices": [ - { - "name": "index_rssSources_sourceUrl", - "unique": false, - "columnNames": [ - "sourceUrl" - ], - "orders": [], - "createSql": "CREATE INDEX IF NOT EXISTS `index_rssSources_sourceUrl` ON `${TABLE_NAME}` (`sourceUrl`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "bookmarks", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`time` INTEGER NOT NULL, `bookName` TEXT NOT NULL, `bookAuthor` TEXT NOT NULL, `chapterIndex` INTEGER NOT NULL, `chapterPos` INTEGER NOT NULL, `chapterName` TEXT NOT NULL, `bookText` TEXT NOT NULL, `content` TEXT NOT NULL, PRIMARY KEY(`time`))", - "fields": [ - { - "fieldPath": "time", - "columnName": "time", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "bookName", - "columnName": "bookName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookAuthor", - "columnName": "bookAuthor", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "chapterIndex", - "columnName": "chapterIndex", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "chapterPos", - "columnName": "chapterPos", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "chapterName", - "columnName": "chapterName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookText", - "columnName": "bookText", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "content", - "columnName": "content", - "affinity": "TEXT", - "notNull": true - } - ], - "primaryKey": { - "autoGenerate": false, - "columnNames": [ - "time" - ] - }, - "indices": [ - { - "name": "index_bookmarks_bookName_bookAuthor", - "unique": false, - "columnNames": [ - "bookName", - "bookAuthor" - ], - "orders": [], - "createSql": "CREATE INDEX IF NOT EXISTS `index_bookmarks_bookName_bookAuthor` ON `${TABLE_NAME}` (`bookName`, `bookAuthor`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "rssArticles", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`origin` TEXT NOT NULL, `sort` TEXT NOT NULL, `title` TEXT NOT NULL, `order` INTEGER NOT NULL, `link` TEXT NOT NULL, `pubDate` TEXT, `description` TEXT, `content` TEXT, `image` TEXT, `read` INTEGER NOT NULL, `variable` TEXT, PRIMARY KEY(`origin`, `link`))", - "fields": [ - { - "fieldPath": "origin", - "columnName": "origin", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "sort", - "columnName": "sort", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "title", - "columnName": "title", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "order", - "columnName": "order", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "link", - "columnName": "link", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "pubDate", - "columnName": "pubDate", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "description", - "columnName": "description", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "content", - "columnName": "content", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "image", - "columnName": "image", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "read", - "columnName": "read", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "variable", - "columnName": "variable", - "affinity": "TEXT", - "notNull": false - } - ], - "primaryKey": { - "autoGenerate": false, - "columnNames": [ - "origin", - "link" - ] - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "rssReadRecords", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`record` TEXT NOT NULL, `read` INTEGER NOT NULL, PRIMARY KEY(`record`))", - "fields": [ - { - "fieldPath": "record", - "columnName": "record", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "read", - "columnName": "read", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "autoGenerate": false, - "columnNames": [ - "record" - ] - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "rssStars", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`origin` TEXT NOT NULL, `sort` TEXT NOT NULL, `title` TEXT NOT NULL, `starTime` INTEGER NOT NULL, `link` TEXT NOT NULL, `pubDate` TEXT, `description` TEXT, `content` TEXT, `image` TEXT, `variable` TEXT, PRIMARY KEY(`origin`, `link`))", - "fields": [ - { - "fieldPath": "origin", - "columnName": "origin", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "sort", - "columnName": "sort", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "title", - "columnName": "title", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "starTime", - "columnName": "starTime", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "link", - "columnName": "link", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "pubDate", - "columnName": "pubDate", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "description", - "columnName": "description", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "content", - "columnName": "content", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "image", - "columnName": "image", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "variable", - "columnName": "variable", - "affinity": "TEXT", - "notNull": false - } - ], - "primaryKey": { - "autoGenerate": false, - "columnNames": [ - "origin", - "link" - ] - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "txtTocRules", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER NOT NULL, `name` TEXT NOT NULL, `rule` TEXT NOT NULL, `example` TEXT, `serialNumber` INTEGER NOT NULL, `enable` INTEGER NOT NULL, PRIMARY KEY(`id`))", - "fields": [ - { - "fieldPath": "id", - "columnName": "id", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "rule", - "columnName": "rule", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "example", - "columnName": "example", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "serialNumber", - "columnName": "serialNumber", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "enable", - "columnName": "enable", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "autoGenerate": false, - "columnNames": [ - "id" - ] - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "readRecord", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`deviceId` TEXT NOT NULL, `bookName` TEXT NOT NULL, `readTime` INTEGER NOT NULL DEFAULT 0, `lastRead` INTEGER NOT NULL DEFAULT 0, PRIMARY KEY(`deviceId`, `bookName`))", - "fields": [ - { - "fieldPath": "deviceId", - "columnName": "deviceId", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookName", - "columnName": "bookName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "readTime", - "columnName": "readTime", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "lastRead", - "columnName": "lastRead", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - } - ], - "primaryKey": { - "autoGenerate": false, - "columnNames": [ - "deviceId", - "bookName" - ] - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "httpTTS", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER NOT NULL, `name` TEXT NOT NULL, `url` TEXT NOT NULL, `contentType` TEXT, `concurrentRate` TEXT DEFAULT '0', `loginUrl` TEXT, `loginUi` TEXT, `header` TEXT, `enabledCookieJar` INTEGER DEFAULT 0, `loginCheckJs` TEXT, `lastUpdateTime` INTEGER NOT NULL DEFAULT 0, PRIMARY KEY(`id`))", - "fields": [ - { - "fieldPath": "id", - "columnName": "id", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "url", - "columnName": "url", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "contentType", - "columnName": "contentType", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "concurrentRate", - "columnName": "concurrentRate", - "affinity": "TEXT", - "notNull": false, - "defaultValue": "'0'" - }, - { - "fieldPath": "loginUrl", - "columnName": "loginUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "loginUi", - "columnName": "loginUi", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "header", - "columnName": "header", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "enabledCookieJar", - "columnName": "enabledCookieJar", - "affinity": "INTEGER", - "notNull": false, - "defaultValue": "0" - }, - { - "fieldPath": "loginCheckJs", - "columnName": "loginCheckJs", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "lastUpdateTime", - "columnName": "lastUpdateTime", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - } - ], - "primaryKey": { - "autoGenerate": false, - "columnNames": [ - "id" - ] - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "caches", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`key` TEXT NOT NULL, `value` TEXT, `deadline` INTEGER NOT NULL, PRIMARY KEY(`key`))", - "fields": [ - { - "fieldPath": "key", - "columnName": "key", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "value", - "columnName": "value", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "deadline", - "columnName": "deadline", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "autoGenerate": false, - "columnNames": [ - "key" - ] - }, - "indices": [ - { - "name": "index_caches_key", - "unique": true, - "columnNames": [ - "key" - ], - "orders": [], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_caches_key` ON `${TABLE_NAME}` (`key`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "ruleSubs", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER NOT NULL, `name` TEXT NOT NULL, `url` TEXT NOT NULL, `type` INTEGER NOT NULL, `customOrder` INTEGER NOT NULL, `autoUpdate` INTEGER NOT NULL, `update` INTEGER NOT NULL, PRIMARY KEY(`id`))", - "fields": [ - { - "fieldPath": "id", - "columnName": "id", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "url", - "columnName": "url", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "type", - "columnName": "type", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "customOrder", - "columnName": "customOrder", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "autoUpdate", - "columnName": "autoUpdate", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "update", - "columnName": "update", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "autoGenerate": false, - "columnNames": [ - "id" - ] - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "keyboardAssists", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`type` INTEGER NOT NULL DEFAULT 0, `key` TEXT NOT NULL DEFAULT '', `value` TEXT NOT NULL DEFAULT '', `serialNo` INTEGER NOT NULL DEFAULT 0, PRIMARY KEY(`type`, `key`))", - "fields": [ - { - "fieldPath": "type", - "columnName": "type", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "key", - "columnName": "key", - "affinity": "TEXT", - "notNull": true, - "defaultValue": "''" - }, - { - "fieldPath": "value", - "columnName": "value", - "affinity": "TEXT", - "notNull": true, - "defaultValue": "''" - }, - { - "fieldPath": "serialNo", - "columnName": "serialNo", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - } - ], - "primaryKey": { - "autoGenerate": false, - "columnNames": [ - "type", - "key" - ] - }, - "indices": [], - "foreignKeys": [] - } - ], - "views": [], - "setupQueries": [ - "CREATE TABLE IF NOT EXISTS room_master_table (id INTEGER PRIMARY KEY,identity_hash TEXT)", - "INSERT OR REPLACE INTO room_master_table (id,identity_hash) VALUES(42, 'ddae0fd3a6b7ec874a028754a8cdd528')" - ] - } -} \ No newline at end of file diff --git a/app/schemas/io.legado.app.data.AppDatabase/6.json b/app/schemas/io.legado.app.data.AppDatabase/6.json deleted file mode 100644 index 2e61f6107..000000000 --- a/app/schemas/io.legado.app.data.AppDatabase/6.json +++ /dev/null @@ -1,1131 +0,0 @@ -{ - "formatVersion": 1, - "database": { - "version": 6, - "identityHash": "af70ea583587e17c968d29f41bb3c0d6", - "entities": [ - { - "tableName": "books", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`bookUrl` TEXT NOT NULL, `tocUrl` TEXT NOT NULL, `origin` TEXT NOT NULL, `originName` TEXT NOT NULL, `name` TEXT NOT NULL, `author` TEXT NOT NULL, `kind` TEXT, `customTag` TEXT, `coverUrl` TEXT, `customCoverUrl` TEXT, `intro` TEXT, `customIntro` TEXT, `charset` TEXT, `type` INTEGER NOT NULL, `group` INTEGER NOT NULL, `latestChapterTitle` TEXT, `latestChapterTime` INTEGER NOT NULL, `lastCheckTime` INTEGER NOT NULL, `lastCheckCount` INTEGER NOT NULL, `totalChapterNum` INTEGER NOT NULL, `durChapterTitle` TEXT, `durChapterIndex` INTEGER NOT NULL, `durChapterPos` INTEGER NOT NULL, `durChapterTime` INTEGER NOT NULL, `wordCount` TEXT, `canUpdate` INTEGER NOT NULL, `order` INTEGER NOT NULL, `originOrder` INTEGER NOT NULL, `useReplaceRule` INTEGER NOT NULL, `variable` TEXT, PRIMARY KEY(`bookUrl`))", - "fields": [ - { - "fieldPath": "bookUrl", - "columnName": "bookUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "tocUrl", - "columnName": "tocUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "origin", - "columnName": "origin", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "originName", - "columnName": "originName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "author", - "columnName": "author", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "kind", - "columnName": "kind", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "customTag", - "columnName": "customTag", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "coverUrl", - "columnName": "coverUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "customCoverUrl", - "columnName": "customCoverUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "intro", - "columnName": "intro", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "customIntro", - "columnName": "customIntro", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "charset", - "columnName": "charset", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "type", - "columnName": "type", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "group", - "columnName": "group", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "latestChapterTitle", - "columnName": "latestChapterTitle", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "latestChapterTime", - "columnName": "latestChapterTime", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "lastCheckTime", - "columnName": "lastCheckTime", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "lastCheckCount", - "columnName": "lastCheckCount", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "totalChapterNum", - "columnName": "totalChapterNum", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "durChapterTitle", - "columnName": "durChapterTitle", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "durChapterIndex", - "columnName": "durChapterIndex", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "durChapterPos", - "columnName": "durChapterPos", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "durChapterTime", - "columnName": "durChapterTime", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "wordCount", - "columnName": "wordCount", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "canUpdate", - "columnName": "canUpdate", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "order", - "columnName": "order", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "originOrder", - "columnName": "originOrder", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "useReplaceRule", - "columnName": "useReplaceRule", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "variable", - "columnName": "variable", - "affinity": "TEXT", - "notNull": false - } - ], - "primaryKey": { - "columnNames": [ - "bookUrl" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_books_bookUrl", - "unique": true, - "columnNames": [ - "bookUrl" - ], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_books_bookUrl` ON `${TABLE_NAME}` (`bookUrl`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "book_groups", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`groupId` INTEGER NOT NULL, `groupName` TEXT NOT NULL, `order` INTEGER NOT NULL, PRIMARY KEY(`groupId`))", - "fields": [ - { - "fieldPath": "groupId", - "columnName": "groupId", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "groupName", - "columnName": "groupName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "order", - "columnName": "order", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "groupId" - ], - "autoGenerate": false - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "book_sources", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`bookSourceName` TEXT NOT NULL, `bookSourceGroup` TEXT, `bookSourceUrl` TEXT NOT NULL, `bookSourceType` INTEGER NOT NULL, `bookUrlPattern` TEXT, `customOrder` INTEGER NOT NULL, `enabled` INTEGER NOT NULL, `enabledExplore` INTEGER NOT NULL, `header` TEXT, `loginUrl` TEXT, `lastUpdateTime` INTEGER NOT NULL, `weight` INTEGER NOT NULL, `exploreUrl` TEXT, `ruleExplore` TEXT, `searchUrl` TEXT, `ruleSearch` TEXT, `ruleBookInfo` TEXT, `ruleToc` TEXT, `ruleContent` TEXT, PRIMARY KEY(`bookSourceUrl`))", - "fields": [ - { - "fieldPath": "bookSourceName", - "columnName": "bookSourceName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookSourceGroup", - "columnName": "bookSourceGroup", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "bookSourceUrl", - "columnName": "bookSourceUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookSourceType", - "columnName": "bookSourceType", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "bookUrlPattern", - "columnName": "bookUrlPattern", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "customOrder", - "columnName": "customOrder", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "enabled", - "columnName": "enabled", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "enabledExplore", - "columnName": "enabledExplore", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "header", - "columnName": "header", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "loginUrl", - "columnName": "loginUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "lastUpdateTime", - "columnName": "lastUpdateTime", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "weight", - "columnName": "weight", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "exploreUrl", - "columnName": "exploreUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleExplore", - "columnName": "ruleExplore", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "searchUrl", - "columnName": "searchUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleSearch", - "columnName": "ruleSearch", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleBookInfo", - "columnName": "ruleBookInfo", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleToc", - "columnName": "ruleToc", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleContent", - "columnName": "ruleContent", - "affinity": "TEXT", - "notNull": false - } - ], - "primaryKey": { - "columnNames": [ - "bookSourceUrl" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_book_sources_bookSourceUrl", - "unique": false, - "columnNames": [ - "bookSourceUrl" - ], - "createSql": "CREATE INDEX IF NOT EXISTS `index_book_sources_bookSourceUrl` ON `${TABLE_NAME}` (`bookSourceUrl`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "chapters", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`url` TEXT NOT NULL, `title` TEXT NOT NULL, `bookUrl` TEXT NOT NULL, `index` INTEGER NOT NULL, `resourceUrl` TEXT, `tag` TEXT, `start` INTEGER, `end` INTEGER, `variable` TEXT, PRIMARY KEY(`url`, `bookUrl`), FOREIGN KEY(`bookUrl`) REFERENCES `books`(`bookUrl`) ON UPDATE NO ACTION ON DELETE CASCADE )", - "fields": [ - { - "fieldPath": "url", - "columnName": "url", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "title", - "columnName": "title", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookUrl", - "columnName": "bookUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "index", - "columnName": "index", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "resourceUrl", - "columnName": "resourceUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "tag", - "columnName": "tag", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "start", - "columnName": "start", - "affinity": "INTEGER", - "notNull": false - }, - { - "fieldPath": "end", - "columnName": "end", - "affinity": "INTEGER", - "notNull": false - }, - { - "fieldPath": "variable", - "columnName": "variable", - "affinity": "TEXT", - "notNull": false - } - ], - "primaryKey": { - "columnNames": [ - "url", - "bookUrl" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_chapters_bookUrl", - "unique": false, - "columnNames": [ - "bookUrl" - ], - "createSql": "CREATE INDEX IF NOT EXISTS `index_chapters_bookUrl` ON `${TABLE_NAME}` (`bookUrl`)" - }, - { - "name": "index_chapters_bookUrl_index", - "unique": true, - "columnNames": [ - "bookUrl", - "index" - ], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_chapters_bookUrl_index` ON `${TABLE_NAME}` (`bookUrl`, `index`)" - } - ], - "foreignKeys": [ - { - "table": "books", - "onDelete": "CASCADE", - "onUpdate": "NO ACTION", - "columns": [ - "bookUrl" - ], - "referencedColumns": [ - "bookUrl" - ] - } - ] - }, - { - "tableName": "replace_rules", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, `name` TEXT NOT NULL, `group` TEXT, `pattern` TEXT NOT NULL, `replacement` TEXT NOT NULL, `scope` TEXT, `isEnabled` INTEGER NOT NULL, `isRegex` INTEGER NOT NULL, `sortOrder` INTEGER NOT NULL)", - "fields": [ - { - "fieldPath": "id", - "columnName": "id", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "group", - "columnName": "group", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "pattern", - "columnName": "pattern", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "replacement", - "columnName": "replacement", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "scope", - "columnName": "scope", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "isEnabled", - "columnName": "isEnabled", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "isRegex", - "columnName": "isRegex", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "order", - "columnName": "sortOrder", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "id" - ], - "autoGenerate": true - }, - "indices": [ - { - "name": "index_replace_rules_id", - "unique": false, - "columnNames": [ - "id" - ], - "createSql": "CREATE INDEX IF NOT EXISTS `index_replace_rules_id` ON `${TABLE_NAME}` (`id`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "searchBooks", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`bookUrl` TEXT NOT NULL, `origin` TEXT NOT NULL, `originName` TEXT NOT NULL, `type` INTEGER NOT NULL, `name` TEXT NOT NULL, `author` TEXT NOT NULL, `kind` TEXT, `coverUrl` TEXT, `intro` TEXT, `wordCount` TEXT, `latestChapterTitle` TEXT, `tocUrl` TEXT NOT NULL, `time` INTEGER NOT NULL, `variable` TEXT, `originOrder` INTEGER NOT NULL, PRIMARY KEY(`bookUrl`), FOREIGN KEY(`origin`) REFERENCES `book_sources`(`bookSourceUrl`) ON UPDATE NO ACTION ON DELETE CASCADE )", - "fields": [ - { - "fieldPath": "bookUrl", - "columnName": "bookUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "origin", - "columnName": "origin", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "originName", - "columnName": "originName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "type", - "columnName": "type", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "author", - "columnName": "author", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "kind", - "columnName": "kind", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "coverUrl", - "columnName": "coverUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "intro", - "columnName": "intro", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "wordCount", - "columnName": "wordCount", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "latestChapterTitle", - "columnName": "latestChapterTitle", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "tocUrl", - "columnName": "tocUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "time", - "columnName": "time", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "variable", - "columnName": "variable", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "originOrder", - "columnName": "originOrder", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "bookUrl" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_searchBooks_bookUrl", - "unique": true, - "columnNames": [ - "bookUrl" - ], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_searchBooks_bookUrl` ON `${TABLE_NAME}` (`bookUrl`)" - }, - { - "name": "index_searchBooks_origin", - "unique": false, - "columnNames": [ - "origin" - ], - "createSql": "CREATE INDEX IF NOT EXISTS `index_searchBooks_origin` ON `${TABLE_NAME}` (`origin`)" - } - ], - "foreignKeys": [ - { - "table": "book_sources", - "onDelete": "CASCADE", - "onUpdate": "NO ACTION", - "columns": [ - "origin" - ], - "referencedColumns": [ - "bookSourceUrl" - ] - } - ] - }, - { - "tableName": "search_keywords", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`word` TEXT NOT NULL, `usage` INTEGER NOT NULL, `lastUseTime` INTEGER NOT NULL, PRIMARY KEY(`word`))", - "fields": [ - { - "fieldPath": "word", - "columnName": "word", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "usage", - "columnName": "usage", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "lastUseTime", - "columnName": "lastUseTime", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "word" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_search_keywords_word", - "unique": true, - "columnNames": [ - "word" - ], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_search_keywords_word` ON `${TABLE_NAME}` (`word`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "cookies", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`url` TEXT NOT NULL, `cookie` TEXT NOT NULL, PRIMARY KEY(`url`))", - "fields": [ - { - "fieldPath": "url", - "columnName": "url", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "cookie", - "columnName": "cookie", - "affinity": "TEXT", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "url" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_cookies_url", - "unique": true, - "columnNames": [ - "url" - ], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_cookies_url` ON `${TABLE_NAME}` (`url`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "rssSources", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`sourceUrl` TEXT NOT NULL, `sourceName` TEXT NOT NULL, `sourceIcon` TEXT NOT NULL, `sourceGroup` TEXT, `enabled` INTEGER NOT NULL, `ruleArticles` TEXT, `ruleNextPage` TEXT, `ruleTitle` TEXT, `rulePubDate` TEXT, `ruleDescription` TEXT, `ruleImage` TEXT, `ruleLink` TEXT, `ruleContent` TEXT, `header` TEXT, `enableJs` INTEGER NOT NULL, `loadWithBaseUrl` INTEGER NOT NULL, `customOrder` INTEGER NOT NULL, PRIMARY KEY(`sourceUrl`))", - "fields": [ - { - "fieldPath": "sourceUrl", - "columnName": "sourceUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "sourceName", - "columnName": "sourceName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "sourceIcon", - "columnName": "sourceIcon", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "sourceGroup", - "columnName": "sourceGroup", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "enabled", - "columnName": "enabled", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "ruleArticles", - "columnName": "ruleArticles", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleNextPage", - "columnName": "ruleNextPage", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleTitle", - "columnName": "ruleTitle", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "rulePubDate", - "columnName": "rulePubDate", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleDescription", - "columnName": "ruleDescription", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleImage", - "columnName": "ruleImage", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleLink", - "columnName": "ruleLink", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleContent", - "columnName": "ruleContent", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "header", - "columnName": "header", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "enableJs", - "columnName": "enableJs", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "loadWithBaseUrl", - "columnName": "loadWithBaseUrl", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "customOrder", - "columnName": "customOrder", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "sourceUrl" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_rssSources_sourceUrl", - "unique": false, - "columnNames": [ - "sourceUrl" - ], - "createSql": "CREATE INDEX IF NOT EXISTS `index_rssSources_sourceUrl` ON `${TABLE_NAME}` (`sourceUrl`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "bookmarks", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`time` INTEGER NOT NULL, `bookUrl` TEXT NOT NULL, `bookName` TEXT NOT NULL, `chapterIndex` INTEGER NOT NULL, `pageIndex` INTEGER NOT NULL, `chapterName` TEXT NOT NULL, `content` TEXT NOT NULL, PRIMARY KEY(`time`))", - "fields": [ - { - "fieldPath": "time", - "columnName": "time", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "bookUrl", - "columnName": "bookUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookName", - "columnName": "bookName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "chapterIndex", - "columnName": "chapterIndex", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "pageIndex", - "columnName": "pageIndex", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "chapterName", - "columnName": "chapterName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "content", - "columnName": "content", - "affinity": "TEXT", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "time" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_bookmarks_time", - "unique": true, - "columnNames": [ - "time" - ], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_bookmarks_time` ON `${TABLE_NAME}` (`time`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "rssArticles", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`origin` TEXT NOT NULL, `title` TEXT NOT NULL, `order` INTEGER NOT NULL, `link` TEXT NOT NULL, `pubDate` TEXT, `description` TEXT, `content` TEXT, `image` TEXT, `read` INTEGER NOT NULL, PRIMARY KEY(`origin`, `link`))", - "fields": [ - { - "fieldPath": "origin", - "columnName": "origin", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "title", - "columnName": "title", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "order", - "columnName": "order", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "link", - "columnName": "link", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "pubDate", - "columnName": "pubDate", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "description", - "columnName": "description", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "content", - "columnName": "content", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "image", - "columnName": "image", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "read", - "columnName": "read", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "origin", - "link" - ], - "autoGenerate": false - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "rssStars", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`origin` TEXT NOT NULL, `title` TEXT NOT NULL, `starTime` INTEGER NOT NULL, `link` TEXT NOT NULL, `pubDate` TEXT, `description` TEXT, `content` TEXT, `image` TEXT, PRIMARY KEY(`origin`, `link`))", - "fields": [ - { - "fieldPath": "origin", - "columnName": "origin", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "title", - "columnName": "title", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "starTime", - "columnName": "starTime", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "link", - "columnName": "link", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "pubDate", - "columnName": "pubDate", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "description", - "columnName": "description", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "content", - "columnName": "content", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "image", - "columnName": "image", - "affinity": "TEXT", - "notNull": false - } - ], - "primaryKey": { - "columnNames": [ - "origin", - "link" - ], - "autoGenerate": false - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "txtTocRules", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`name` TEXT NOT NULL, `rule` TEXT NOT NULL, `serialNumber` INTEGER NOT NULL, `enable` INTEGER NOT NULL, PRIMARY KEY(`name`))", - "fields": [ - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "rule", - "columnName": "rule", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "serialNumber", - "columnName": "serialNumber", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "enable", - "columnName": "enable", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "name" - ], - "autoGenerate": false - }, - "indices": [], - "foreignKeys": [] - } - ], - "views": [], - "setupQueries": [ - "CREATE TABLE IF NOT EXISTS room_master_table (id INTEGER PRIMARY KEY,identity_hash TEXT)", - "INSERT OR REPLACE INTO room_master_table (id,identity_hash) VALUES(42, 'af70ea583587e17c968d29f41bb3c0d6')" - ] - } -} \ No newline at end of file diff --git a/app/schemas/io.legado.app.data.AppDatabase/60.json b/app/schemas/io.legado.app.data.AppDatabase/60.json deleted file mode 100644 index 0c0cab95f..000000000 --- a/app/schemas/io.legado.app.data.AppDatabase/60.json +++ /dev/null @@ -1,1778 +0,0 @@ -{ - "formatVersion": 1, - "database": { - "version": 60, - "identityHash": "19e1f66252eb41afc0990f202fe4527a", - "entities": [ - { - "tableName": "books", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`bookUrl` TEXT NOT NULL DEFAULT '', `tocUrl` TEXT NOT NULL DEFAULT '', `origin` TEXT NOT NULL DEFAULT 'loc_book', `originName` TEXT NOT NULL DEFAULT '', `name` TEXT NOT NULL DEFAULT '', `author` TEXT NOT NULL DEFAULT '', `kind` TEXT, `customTag` TEXT, `coverUrl` TEXT, `customCoverUrl` TEXT, `intro` TEXT, `customIntro` TEXT, `charset` TEXT, `type` INTEGER NOT NULL DEFAULT 0, `group` INTEGER NOT NULL DEFAULT 0, `latestChapterTitle` TEXT, `latestChapterTime` INTEGER NOT NULL DEFAULT 0, `lastCheckTime` INTEGER NOT NULL DEFAULT 0, `lastCheckCount` INTEGER NOT NULL DEFAULT 0, `totalChapterNum` INTEGER NOT NULL DEFAULT 0, `durChapterTitle` TEXT, `durChapterIndex` INTEGER NOT NULL DEFAULT 0, `durChapterPos` INTEGER NOT NULL DEFAULT 0, `durChapterTime` INTEGER NOT NULL DEFAULT 0, `wordCount` TEXT, `canUpdate` INTEGER NOT NULL DEFAULT 1, `order` INTEGER NOT NULL DEFAULT 0, `originOrder` INTEGER NOT NULL DEFAULT 0, `variable` TEXT, `readConfig` TEXT, PRIMARY KEY(`bookUrl`))", - "fields": [ - { - "fieldPath": "bookUrl", - "columnName": "bookUrl", - "affinity": "TEXT", - "notNull": true, - "defaultValue": "''" - }, - { - "fieldPath": "tocUrl", - "columnName": "tocUrl", - "affinity": "TEXT", - "notNull": true, - "defaultValue": "''" - }, - { - "fieldPath": "origin", - "columnName": "origin", - "affinity": "TEXT", - "notNull": true, - "defaultValue": "'loc_book'" - }, - { - "fieldPath": "originName", - "columnName": "originName", - "affinity": "TEXT", - "notNull": true, - "defaultValue": "''" - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true, - "defaultValue": "''" - }, - { - "fieldPath": "author", - "columnName": "author", - "affinity": "TEXT", - "notNull": true, - "defaultValue": "''" - }, - { - "fieldPath": "kind", - "columnName": "kind", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "customTag", - "columnName": "customTag", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "coverUrl", - "columnName": "coverUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "customCoverUrl", - "columnName": "customCoverUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "intro", - "columnName": "intro", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "customIntro", - "columnName": "customIntro", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "charset", - "columnName": "charset", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "type", - "columnName": "type", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "group", - "columnName": "group", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "latestChapterTitle", - "columnName": "latestChapterTitle", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "latestChapterTime", - "columnName": "latestChapterTime", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "lastCheckTime", - "columnName": "lastCheckTime", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "lastCheckCount", - "columnName": "lastCheckCount", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "totalChapterNum", - "columnName": "totalChapterNum", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "durChapterTitle", - "columnName": "durChapterTitle", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "durChapterIndex", - "columnName": "durChapterIndex", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "durChapterPos", - "columnName": "durChapterPos", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "durChapterTime", - "columnName": "durChapterTime", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "wordCount", - "columnName": "wordCount", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "canUpdate", - "columnName": "canUpdate", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "1" - }, - { - "fieldPath": "order", - "columnName": "order", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "originOrder", - "columnName": "originOrder", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "variable", - "columnName": "variable", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "readConfig", - "columnName": "readConfig", - "affinity": "TEXT", - "notNull": false - } - ], - "primaryKey": { - "autoGenerate": false, - "columnNames": [ - "bookUrl" - ] - }, - "indices": [ - { - "name": "index_books_name_author", - "unique": true, - "columnNames": [ - "name", - "author" - ], - "orders": [], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_books_name_author` ON `${TABLE_NAME}` (`name`, `author`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "book_groups", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`groupId` INTEGER NOT NULL, `groupName` TEXT NOT NULL, `cover` TEXT, `order` INTEGER NOT NULL, `show` INTEGER NOT NULL, `bookSort` INTEGER NOT NULL DEFAULT -1, PRIMARY KEY(`groupId`))", - "fields": [ - { - "fieldPath": "groupId", - "columnName": "groupId", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "groupName", - "columnName": "groupName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "cover", - "columnName": "cover", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "order", - "columnName": "order", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "show", - "columnName": "show", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "bookSort", - "columnName": "bookSort", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "-1" - } - ], - "primaryKey": { - "autoGenerate": false, - "columnNames": [ - "groupId" - ] - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "book_sources", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`bookSourceUrl` TEXT NOT NULL, `bookSourceName` TEXT NOT NULL, `bookSourceGroup` TEXT, `bookSourceType` INTEGER NOT NULL, `bookUrlPattern` TEXT, `customOrder` INTEGER NOT NULL, `enabled` INTEGER NOT NULL, `enabledExplore` INTEGER NOT NULL, `enabledReview` INTEGER, `enabledCookieJar` INTEGER DEFAULT 0, `concurrentRate` TEXT, `header` TEXT, `loginUrl` TEXT, `loginUi` TEXT, `loginCheckJs` TEXT, `coverDecodeJs` TEXT, `bookSourceComment` TEXT, `variableComment` TEXT, `lastUpdateTime` INTEGER NOT NULL, `respondTime` INTEGER NOT NULL, `weight` INTEGER NOT NULL, `exploreUrl` TEXT, `ruleExplore` TEXT, `searchUrl` TEXT, `ruleSearch` TEXT, `ruleBookInfo` TEXT, `ruleToc` TEXT, `ruleContent` TEXT, `ruleReview` TEXT, PRIMARY KEY(`bookSourceUrl`))", - "fields": [ - { - "fieldPath": "bookSourceUrl", - "columnName": "bookSourceUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookSourceName", - "columnName": "bookSourceName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookSourceGroup", - "columnName": "bookSourceGroup", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "bookSourceType", - "columnName": "bookSourceType", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "bookUrlPattern", - "columnName": "bookUrlPattern", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "customOrder", - "columnName": "customOrder", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "enabled", - "columnName": "enabled", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "enabledExplore", - "columnName": "enabledExplore", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "enabledReview", - "columnName": "enabledReview", - "affinity": "INTEGER", - "notNull": false - }, - { - "fieldPath": "enabledCookieJar", - "columnName": "enabledCookieJar", - "affinity": "INTEGER", - "notNull": false, - "defaultValue": "0" - }, - { - "fieldPath": "concurrentRate", - "columnName": "concurrentRate", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "header", - "columnName": "header", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "loginUrl", - "columnName": "loginUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "loginUi", - "columnName": "loginUi", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "loginCheckJs", - "columnName": "loginCheckJs", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "coverDecodeJs", - "columnName": "coverDecodeJs", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "bookSourceComment", - "columnName": "bookSourceComment", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "variableComment", - "columnName": "variableComment", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "lastUpdateTime", - "columnName": "lastUpdateTime", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "respondTime", - "columnName": "respondTime", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "weight", - "columnName": "weight", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "exploreUrl", - "columnName": "exploreUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleExplore", - "columnName": "ruleExplore", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "searchUrl", - "columnName": "searchUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleSearch", - "columnName": "ruleSearch", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleBookInfo", - "columnName": "ruleBookInfo", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleToc", - "columnName": "ruleToc", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleContent", - "columnName": "ruleContent", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleReview", - "columnName": "ruleReview", - "affinity": "TEXT", - "notNull": false - } - ], - "primaryKey": { - "autoGenerate": false, - "columnNames": [ - "bookSourceUrl" - ] - }, - "indices": [ - { - "name": "index_book_sources_bookSourceUrl", - "unique": false, - "columnNames": [ - "bookSourceUrl" - ], - "orders": [], - "createSql": "CREATE INDEX IF NOT EXISTS `index_book_sources_bookSourceUrl` ON `${TABLE_NAME}` (`bookSourceUrl`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "chapters", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`url` TEXT NOT NULL, `title` TEXT NOT NULL, `isVolume` INTEGER NOT NULL, `baseUrl` TEXT NOT NULL, `bookUrl` TEXT NOT NULL, `index` INTEGER NOT NULL, `isVip` INTEGER NOT NULL, `isPay` INTEGER NOT NULL, `resourceUrl` TEXT, `tag` TEXT, `start` INTEGER, `end` INTEGER, `startFragmentId` TEXT, `endFragmentId` TEXT, `variable` TEXT, PRIMARY KEY(`url`, `bookUrl`), FOREIGN KEY(`bookUrl`) REFERENCES `books`(`bookUrl`) ON UPDATE NO ACTION ON DELETE CASCADE )", - "fields": [ - { - "fieldPath": "url", - "columnName": "url", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "title", - "columnName": "title", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "isVolume", - "columnName": "isVolume", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "baseUrl", - "columnName": "baseUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookUrl", - "columnName": "bookUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "index", - "columnName": "index", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "isVip", - "columnName": "isVip", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "isPay", - "columnName": "isPay", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "resourceUrl", - "columnName": "resourceUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "tag", - "columnName": "tag", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "start", - "columnName": "start", - "affinity": "INTEGER", - "notNull": false - }, - { - "fieldPath": "end", - "columnName": "end", - "affinity": "INTEGER", - "notNull": false - }, - { - "fieldPath": "startFragmentId", - "columnName": "startFragmentId", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "endFragmentId", - "columnName": "endFragmentId", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "variable", - "columnName": "variable", - "affinity": "TEXT", - "notNull": false - } - ], - "primaryKey": { - "autoGenerate": false, - "columnNames": [ - "url", - "bookUrl" - ] - }, - "indices": [ - { - "name": "index_chapters_bookUrl", - "unique": false, - "columnNames": [ - "bookUrl" - ], - "orders": [], - "createSql": "CREATE INDEX IF NOT EXISTS `index_chapters_bookUrl` ON `${TABLE_NAME}` (`bookUrl`)" - }, - { - "name": "index_chapters_bookUrl_index", - "unique": true, - "columnNames": [ - "bookUrl", - "index" - ], - "orders": [], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_chapters_bookUrl_index` ON `${TABLE_NAME}` (`bookUrl`, `index`)" - } - ], - "foreignKeys": [ - { - "table": "books", - "onDelete": "CASCADE", - "onUpdate": "NO ACTION", - "columns": [ - "bookUrl" - ], - "referencedColumns": [ - "bookUrl" - ] - } - ] - }, - { - "tableName": "replace_rules", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, `name` TEXT NOT NULL DEFAULT '', `group` TEXT, `pattern` TEXT NOT NULL DEFAULT '', `replacement` TEXT NOT NULL DEFAULT '', `scope` TEXT, `scopeTitle` INTEGER NOT NULL DEFAULT 0, `scopeContent` INTEGER NOT NULL DEFAULT 1, `isEnabled` INTEGER NOT NULL DEFAULT 1, `isRegex` INTEGER NOT NULL DEFAULT 1, `timeoutMillisecond` INTEGER NOT NULL DEFAULT 3000, `sortOrder` INTEGER NOT NULL DEFAULT 0)", - "fields": [ - { - "fieldPath": "id", - "columnName": "id", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true, - "defaultValue": "''" - }, - { - "fieldPath": "group", - "columnName": "group", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "pattern", - "columnName": "pattern", - "affinity": "TEXT", - "notNull": true, - "defaultValue": "''" - }, - { - "fieldPath": "replacement", - "columnName": "replacement", - "affinity": "TEXT", - "notNull": true, - "defaultValue": "''" - }, - { - "fieldPath": "scope", - "columnName": "scope", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "scopeTitle", - "columnName": "scopeTitle", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "scopeContent", - "columnName": "scopeContent", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "1" - }, - { - "fieldPath": "isEnabled", - "columnName": "isEnabled", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "1" - }, - { - "fieldPath": "isRegex", - "columnName": "isRegex", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "1" - }, - { - "fieldPath": "timeoutMillisecond", - "columnName": "timeoutMillisecond", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "3000" - }, - { - "fieldPath": "order", - "columnName": "sortOrder", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - } - ], - "primaryKey": { - "autoGenerate": true, - "columnNames": [ - "id" - ] - }, - "indices": [ - { - "name": "index_replace_rules_id", - "unique": false, - "columnNames": [ - "id" - ], - "orders": [], - "createSql": "CREATE INDEX IF NOT EXISTS `index_replace_rules_id` ON `${TABLE_NAME}` (`id`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "searchBooks", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`bookUrl` TEXT NOT NULL, `origin` TEXT NOT NULL, `originName` TEXT NOT NULL, `type` INTEGER NOT NULL, `name` TEXT NOT NULL, `author` TEXT NOT NULL, `kind` TEXT, `coverUrl` TEXT, `intro` TEXT, `wordCount` TEXT, `latestChapterTitle` TEXT, `tocUrl` TEXT NOT NULL, `time` INTEGER NOT NULL, `variable` TEXT, `originOrder` INTEGER NOT NULL, PRIMARY KEY(`bookUrl`), FOREIGN KEY(`origin`) REFERENCES `book_sources`(`bookSourceUrl`) ON UPDATE NO ACTION ON DELETE CASCADE )", - "fields": [ - { - "fieldPath": "bookUrl", - "columnName": "bookUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "origin", - "columnName": "origin", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "originName", - "columnName": "originName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "type", - "columnName": "type", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "author", - "columnName": "author", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "kind", - "columnName": "kind", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "coverUrl", - "columnName": "coverUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "intro", - "columnName": "intro", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "wordCount", - "columnName": "wordCount", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "latestChapterTitle", - "columnName": "latestChapterTitle", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "tocUrl", - "columnName": "tocUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "time", - "columnName": "time", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "variable", - "columnName": "variable", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "originOrder", - "columnName": "originOrder", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "autoGenerate": false, - "columnNames": [ - "bookUrl" - ] - }, - "indices": [ - { - "name": "index_searchBooks_bookUrl", - "unique": true, - "columnNames": [ - "bookUrl" - ], - "orders": [], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_searchBooks_bookUrl` ON `${TABLE_NAME}` (`bookUrl`)" - }, - { - "name": "index_searchBooks_origin", - "unique": false, - "columnNames": [ - "origin" - ], - "orders": [], - "createSql": "CREATE INDEX IF NOT EXISTS `index_searchBooks_origin` ON `${TABLE_NAME}` (`origin`)" - } - ], - "foreignKeys": [ - { - "table": "book_sources", - "onDelete": "CASCADE", - "onUpdate": "NO ACTION", - "columns": [ - "origin" - ], - "referencedColumns": [ - "bookSourceUrl" - ] - } - ] - }, - { - "tableName": "search_keywords", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`word` TEXT NOT NULL, `usage` INTEGER NOT NULL, `lastUseTime` INTEGER NOT NULL, PRIMARY KEY(`word`))", - "fields": [ - { - "fieldPath": "word", - "columnName": "word", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "usage", - "columnName": "usage", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "lastUseTime", - "columnName": "lastUseTime", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "autoGenerate": false, - "columnNames": [ - "word" - ] - }, - "indices": [ - { - "name": "index_search_keywords_word", - "unique": true, - "columnNames": [ - "word" - ], - "orders": [], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_search_keywords_word` ON `${TABLE_NAME}` (`word`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "cookies", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`url` TEXT NOT NULL, `cookie` TEXT NOT NULL, PRIMARY KEY(`url`))", - "fields": [ - { - "fieldPath": "url", - "columnName": "url", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "cookie", - "columnName": "cookie", - "affinity": "TEXT", - "notNull": true - } - ], - "primaryKey": { - "autoGenerate": false, - "columnNames": [ - "url" - ] - }, - "indices": [ - { - "name": "index_cookies_url", - "unique": true, - "columnNames": [ - "url" - ], - "orders": [], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_cookies_url` ON `${TABLE_NAME}` (`url`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "rssSources", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`sourceUrl` TEXT NOT NULL, `sourceName` TEXT NOT NULL, `sourceIcon` TEXT NOT NULL, `sourceGroup` TEXT, `sourceComment` TEXT, `enabled` INTEGER NOT NULL, `variableComment` TEXT, `enabledCookieJar` INTEGER DEFAULT 0, `concurrentRate` TEXT, `header` TEXT, `loginUrl` TEXT, `loginUi` TEXT, `loginCheckJs` TEXT, `coverDecodeJs` TEXT, `sortUrl` TEXT, `singleUrl` INTEGER NOT NULL, `articleStyle` INTEGER NOT NULL DEFAULT 0, `ruleArticles` TEXT, `ruleNextPage` TEXT, `ruleTitle` TEXT, `rulePubDate` TEXT, `ruleDescription` TEXT, `ruleImage` TEXT, `ruleLink` TEXT, `ruleContent` TEXT, `contentWhitelist` TEXT, `contentBlacklist` TEXT, `style` TEXT, `enableJs` INTEGER NOT NULL DEFAULT 1, `loadWithBaseUrl` INTEGER NOT NULL DEFAULT 1, `injectJs` TEXT, `lastUpdateTime` INTEGER NOT NULL DEFAULT 0, `customOrder` INTEGER NOT NULL DEFAULT 0, PRIMARY KEY(`sourceUrl`))", - "fields": [ - { - "fieldPath": "sourceUrl", - "columnName": "sourceUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "sourceName", - "columnName": "sourceName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "sourceIcon", - "columnName": "sourceIcon", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "sourceGroup", - "columnName": "sourceGroup", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "sourceComment", - "columnName": "sourceComment", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "enabled", - "columnName": "enabled", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "variableComment", - "columnName": "variableComment", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "enabledCookieJar", - "columnName": "enabledCookieJar", - "affinity": "INTEGER", - "notNull": false, - "defaultValue": "0" - }, - { - "fieldPath": "concurrentRate", - "columnName": "concurrentRate", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "header", - "columnName": "header", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "loginUrl", - "columnName": "loginUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "loginUi", - "columnName": "loginUi", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "loginCheckJs", - "columnName": "loginCheckJs", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "coverDecodeJs", - "columnName": "coverDecodeJs", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "sortUrl", - "columnName": "sortUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "singleUrl", - "columnName": "singleUrl", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "articleStyle", - "columnName": "articleStyle", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "ruleArticles", - "columnName": "ruleArticles", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleNextPage", - "columnName": "ruleNextPage", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleTitle", - "columnName": "ruleTitle", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "rulePubDate", - "columnName": "rulePubDate", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleDescription", - "columnName": "ruleDescription", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleImage", - "columnName": "ruleImage", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleLink", - "columnName": "ruleLink", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleContent", - "columnName": "ruleContent", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "contentWhitelist", - "columnName": "contentWhitelist", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "contentBlacklist", - "columnName": "contentBlacklist", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "style", - "columnName": "style", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "enableJs", - "columnName": "enableJs", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "1" - }, - { - "fieldPath": "loadWithBaseUrl", - "columnName": "loadWithBaseUrl", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "1" - }, - { - "fieldPath": "injectJs", - "columnName": "injectJs", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "lastUpdateTime", - "columnName": "lastUpdateTime", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "customOrder", - "columnName": "customOrder", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - } - ], - "primaryKey": { - "autoGenerate": false, - "columnNames": [ - "sourceUrl" - ] - }, - "indices": [ - { - "name": "index_rssSources_sourceUrl", - "unique": false, - "columnNames": [ - "sourceUrl" - ], - "orders": [], - "createSql": "CREATE INDEX IF NOT EXISTS `index_rssSources_sourceUrl` ON `${TABLE_NAME}` (`sourceUrl`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "bookmarks", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`time` INTEGER NOT NULL, `bookName` TEXT NOT NULL, `bookAuthor` TEXT NOT NULL, `chapterIndex` INTEGER NOT NULL, `chapterPos` INTEGER NOT NULL, `chapterName` TEXT NOT NULL, `bookText` TEXT NOT NULL, `content` TEXT NOT NULL, PRIMARY KEY(`time`))", - "fields": [ - { - "fieldPath": "time", - "columnName": "time", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "bookName", - "columnName": "bookName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookAuthor", - "columnName": "bookAuthor", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "chapterIndex", - "columnName": "chapterIndex", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "chapterPos", - "columnName": "chapterPos", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "chapterName", - "columnName": "chapterName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookText", - "columnName": "bookText", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "content", - "columnName": "content", - "affinity": "TEXT", - "notNull": true - } - ], - "primaryKey": { - "autoGenerate": false, - "columnNames": [ - "time" - ] - }, - "indices": [ - { - "name": "index_bookmarks_bookName_bookAuthor", - "unique": false, - "columnNames": [ - "bookName", - "bookAuthor" - ], - "orders": [], - "createSql": "CREATE INDEX IF NOT EXISTS `index_bookmarks_bookName_bookAuthor` ON `${TABLE_NAME}` (`bookName`, `bookAuthor`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "rssArticles", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`origin` TEXT NOT NULL, `sort` TEXT NOT NULL, `title` TEXT NOT NULL, `order` INTEGER NOT NULL, `link` TEXT NOT NULL, `pubDate` TEXT, `description` TEXT, `content` TEXT, `image` TEXT, `read` INTEGER NOT NULL, `variable` TEXT, PRIMARY KEY(`origin`, `link`))", - "fields": [ - { - "fieldPath": "origin", - "columnName": "origin", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "sort", - "columnName": "sort", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "title", - "columnName": "title", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "order", - "columnName": "order", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "link", - "columnName": "link", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "pubDate", - "columnName": "pubDate", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "description", - "columnName": "description", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "content", - "columnName": "content", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "image", - "columnName": "image", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "read", - "columnName": "read", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "variable", - "columnName": "variable", - "affinity": "TEXT", - "notNull": false - } - ], - "primaryKey": { - "autoGenerate": false, - "columnNames": [ - "origin", - "link" - ] - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "rssReadRecords", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`record` TEXT NOT NULL, `read` INTEGER NOT NULL, PRIMARY KEY(`record`))", - "fields": [ - { - "fieldPath": "record", - "columnName": "record", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "read", - "columnName": "read", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "autoGenerate": false, - "columnNames": [ - "record" - ] - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "rssStars", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`origin` TEXT NOT NULL, `sort` TEXT NOT NULL, `title` TEXT NOT NULL, `starTime` INTEGER NOT NULL, `link` TEXT NOT NULL, `pubDate` TEXT, `description` TEXT, `content` TEXT, `image` TEXT, `variable` TEXT, PRIMARY KEY(`origin`, `link`))", - "fields": [ - { - "fieldPath": "origin", - "columnName": "origin", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "sort", - "columnName": "sort", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "title", - "columnName": "title", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "starTime", - "columnName": "starTime", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "link", - "columnName": "link", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "pubDate", - "columnName": "pubDate", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "description", - "columnName": "description", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "content", - "columnName": "content", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "image", - "columnName": "image", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "variable", - "columnName": "variable", - "affinity": "TEXT", - "notNull": false - } - ], - "primaryKey": { - "autoGenerate": false, - "columnNames": [ - "origin", - "link" - ] - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "txtTocRules", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER NOT NULL, `name` TEXT NOT NULL, `rule` TEXT NOT NULL, `example` TEXT, `serialNumber` INTEGER NOT NULL, `enable` INTEGER NOT NULL, PRIMARY KEY(`id`))", - "fields": [ - { - "fieldPath": "id", - "columnName": "id", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "rule", - "columnName": "rule", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "example", - "columnName": "example", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "serialNumber", - "columnName": "serialNumber", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "enable", - "columnName": "enable", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "autoGenerate": false, - "columnNames": [ - "id" - ] - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "readRecord", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`deviceId` TEXT NOT NULL, `bookName` TEXT NOT NULL, `readTime` INTEGER NOT NULL DEFAULT 0, `lastRead` INTEGER NOT NULL DEFAULT 0, PRIMARY KEY(`deviceId`, `bookName`))", - "fields": [ - { - "fieldPath": "deviceId", - "columnName": "deviceId", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookName", - "columnName": "bookName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "readTime", - "columnName": "readTime", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "lastRead", - "columnName": "lastRead", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - } - ], - "primaryKey": { - "autoGenerate": false, - "columnNames": [ - "deviceId", - "bookName" - ] - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "httpTTS", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER NOT NULL, `name` TEXT NOT NULL, `url` TEXT NOT NULL, `contentType` TEXT, `concurrentRate` TEXT DEFAULT '0', `loginUrl` TEXT, `loginUi` TEXT, `header` TEXT, `enabledCookieJar` INTEGER DEFAULT 0, `loginCheckJs` TEXT, `lastUpdateTime` INTEGER NOT NULL DEFAULT 0, PRIMARY KEY(`id`))", - "fields": [ - { - "fieldPath": "id", - "columnName": "id", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "url", - "columnName": "url", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "contentType", - "columnName": "contentType", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "concurrentRate", - "columnName": "concurrentRate", - "affinity": "TEXT", - "notNull": false, - "defaultValue": "'0'" - }, - { - "fieldPath": "loginUrl", - "columnName": "loginUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "loginUi", - "columnName": "loginUi", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "header", - "columnName": "header", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "enabledCookieJar", - "columnName": "enabledCookieJar", - "affinity": "INTEGER", - "notNull": false, - "defaultValue": "0" - }, - { - "fieldPath": "loginCheckJs", - "columnName": "loginCheckJs", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "lastUpdateTime", - "columnName": "lastUpdateTime", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - } - ], - "primaryKey": { - "autoGenerate": false, - "columnNames": [ - "id" - ] - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "caches", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`key` TEXT NOT NULL, `value` TEXT, `deadline` INTEGER NOT NULL, PRIMARY KEY(`key`))", - "fields": [ - { - "fieldPath": "key", - "columnName": "key", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "value", - "columnName": "value", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "deadline", - "columnName": "deadline", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "autoGenerate": false, - "columnNames": [ - "key" - ] - }, - "indices": [ - { - "name": "index_caches_key", - "unique": true, - "columnNames": [ - "key" - ], - "orders": [], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_caches_key` ON `${TABLE_NAME}` (`key`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "ruleSubs", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER NOT NULL, `name` TEXT NOT NULL, `url` TEXT NOT NULL, `type` INTEGER NOT NULL, `customOrder` INTEGER NOT NULL, `autoUpdate` INTEGER NOT NULL, `update` INTEGER NOT NULL, PRIMARY KEY(`id`))", - "fields": [ - { - "fieldPath": "id", - "columnName": "id", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "url", - "columnName": "url", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "type", - "columnName": "type", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "customOrder", - "columnName": "customOrder", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "autoUpdate", - "columnName": "autoUpdate", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "update", - "columnName": "update", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "autoGenerate": false, - "columnNames": [ - "id" - ] - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "dictRules", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`name` TEXT NOT NULL, `urlRule` TEXT NOT NULL, `showRule` TEXT NOT NULL, `enabled` INTEGER NOT NULL, PRIMARY KEY(`name`))", - "fields": [ - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "urlRule", - "columnName": "urlRule", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "showRule", - "columnName": "showRule", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "enabled", - "columnName": "enabled", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "autoGenerate": false, - "columnNames": [ - "name" - ] - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "keyboardAssists", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`type` INTEGER NOT NULL DEFAULT 0, `key` TEXT NOT NULL DEFAULT '', `value` TEXT NOT NULL DEFAULT '', `serialNo` INTEGER NOT NULL DEFAULT 0, PRIMARY KEY(`type`, `key`))", - "fields": [ - { - "fieldPath": "type", - "columnName": "type", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "key", - "columnName": "key", - "affinity": "TEXT", - "notNull": true, - "defaultValue": "''" - }, - { - "fieldPath": "value", - "columnName": "value", - "affinity": "TEXT", - "notNull": true, - "defaultValue": "''" - }, - { - "fieldPath": "serialNo", - "columnName": "serialNo", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - } - ], - "primaryKey": { - "autoGenerate": false, - "columnNames": [ - "type", - "key" - ] - }, - "indices": [], - "foreignKeys": [] - } - ], - "views": [], - "setupQueries": [ - "CREATE TABLE IF NOT EXISTS room_master_table (id INTEGER PRIMARY KEY,identity_hash TEXT)", - "INSERT OR REPLACE INTO room_master_table (id,identity_hash) VALUES(42, '19e1f66252eb41afc0990f202fe4527a')" - ] - } -} \ No newline at end of file diff --git a/app/schemas/io.legado.app.data.AppDatabase/61.json b/app/schemas/io.legado.app.data.AppDatabase/61.json deleted file mode 100644 index cbf656053..000000000 --- a/app/schemas/io.legado.app.data.AppDatabase/61.json +++ /dev/null @@ -1,1786 +0,0 @@ -{ - "formatVersion": 1, - "database": { - "version": 61, - "identityHash": "9e424026dc2c4dba847b0d9a5f3f788e", - "entities": [ - { - "tableName": "books", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`bookUrl` TEXT NOT NULL DEFAULT '', `tocUrl` TEXT NOT NULL DEFAULT '', `origin` TEXT NOT NULL DEFAULT 'loc_book', `originName` TEXT NOT NULL DEFAULT '', `name` TEXT NOT NULL DEFAULT '', `author` TEXT NOT NULL DEFAULT '', `kind` TEXT, `customTag` TEXT, `coverUrl` TEXT, `customCoverUrl` TEXT, `intro` TEXT, `customIntro` TEXT, `charset` TEXT, `type` INTEGER NOT NULL DEFAULT 0, `group` INTEGER NOT NULL DEFAULT 0, `latestChapterTitle` TEXT, `latestChapterTime` INTEGER NOT NULL DEFAULT 0, `lastCheckTime` INTEGER NOT NULL DEFAULT 0, `lastCheckCount` INTEGER NOT NULL DEFAULT 0, `totalChapterNum` INTEGER NOT NULL DEFAULT 0, `durChapterTitle` TEXT, `durChapterIndex` INTEGER NOT NULL DEFAULT 0, `durChapterPos` INTEGER NOT NULL DEFAULT 0, `durChapterTime` INTEGER NOT NULL DEFAULT 0, `wordCount` TEXT, `canUpdate` INTEGER NOT NULL DEFAULT 1, `order` INTEGER NOT NULL DEFAULT 0, `originOrder` INTEGER NOT NULL DEFAULT 0, `variable` TEXT, `readConfig` TEXT, PRIMARY KEY(`bookUrl`))", - "fields": [ - { - "fieldPath": "bookUrl", - "columnName": "bookUrl", - "affinity": "TEXT", - "notNull": true, - "defaultValue": "''" - }, - { - "fieldPath": "tocUrl", - "columnName": "tocUrl", - "affinity": "TEXT", - "notNull": true, - "defaultValue": "''" - }, - { - "fieldPath": "origin", - "columnName": "origin", - "affinity": "TEXT", - "notNull": true, - "defaultValue": "'loc_book'" - }, - { - "fieldPath": "originName", - "columnName": "originName", - "affinity": "TEXT", - "notNull": true, - "defaultValue": "''" - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true, - "defaultValue": "''" - }, - { - "fieldPath": "author", - "columnName": "author", - "affinity": "TEXT", - "notNull": true, - "defaultValue": "''" - }, - { - "fieldPath": "kind", - "columnName": "kind", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "customTag", - "columnName": "customTag", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "coverUrl", - "columnName": "coverUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "customCoverUrl", - "columnName": "customCoverUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "intro", - "columnName": "intro", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "customIntro", - "columnName": "customIntro", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "charset", - "columnName": "charset", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "type", - "columnName": "type", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "group", - "columnName": "group", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "latestChapterTitle", - "columnName": "latestChapterTitle", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "latestChapterTime", - "columnName": "latestChapterTime", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "lastCheckTime", - "columnName": "lastCheckTime", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "lastCheckCount", - "columnName": "lastCheckCount", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "totalChapterNum", - "columnName": "totalChapterNum", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "durChapterTitle", - "columnName": "durChapterTitle", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "durChapterIndex", - "columnName": "durChapterIndex", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "durChapterPos", - "columnName": "durChapterPos", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "durChapterTime", - "columnName": "durChapterTime", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "wordCount", - "columnName": "wordCount", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "canUpdate", - "columnName": "canUpdate", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "1" - }, - { - "fieldPath": "order", - "columnName": "order", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "originOrder", - "columnName": "originOrder", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "variable", - "columnName": "variable", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "readConfig", - "columnName": "readConfig", - "affinity": "TEXT", - "notNull": false - } - ], - "primaryKey": { - "autoGenerate": false, - "columnNames": [ - "bookUrl" - ] - }, - "indices": [ - { - "name": "index_books_name_author", - "unique": true, - "columnNames": [ - "name", - "author" - ], - "orders": [], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_books_name_author` ON `${TABLE_NAME}` (`name`, `author`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "book_groups", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`groupId` INTEGER NOT NULL, `groupName` TEXT NOT NULL, `cover` TEXT, `order` INTEGER NOT NULL, `show` INTEGER NOT NULL, `bookSort` INTEGER NOT NULL DEFAULT -1, PRIMARY KEY(`groupId`))", - "fields": [ - { - "fieldPath": "groupId", - "columnName": "groupId", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "groupName", - "columnName": "groupName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "cover", - "columnName": "cover", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "order", - "columnName": "order", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "show", - "columnName": "show", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "bookSort", - "columnName": "bookSort", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "-1" - } - ], - "primaryKey": { - "autoGenerate": false, - "columnNames": [ - "groupId" - ] - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "book_sources", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`bookSourceUrl` TEXT NOT NULL, `bookSourceName` TEXT NOT NULL, `bookSourceGroup` TEXT, `bookSourceType` INTEGER NOT NULL, `bookUrlPattern` TEXT, `customOrder` INTEGER NOT NULL, `enabled` INTEGER NOT NULL, `enabledExplore` INTEGER NOT NULL, `enabledReview` INTEGER, `enabledCookieJar` INTEGER DEFAULT 0, `concurrentRate` TEXT, `header` TEXT, `loginUrl` TEXT, `loginUi` TEXT, `loginCheckJs` TEXT, `coverDecodeJs` TEXT, `bookSourceComment` TEXT, `variableComment` TEXT, `lastUpdateTime` INTEGER NOT NULL, `respondTime` INTEGER NOT NULL, `weight` INTEGER NOT NULL, `exploreUrl` TEXT, `ruleExplore` TEXT, `searchUrl` TEXT, `ruleSearch` TEXT, `ruleBookInfo` TEXT, `ruleToc` TEXT, `ruleContent` TEXT, `ruleReview` TEXT, PRIMARY KEY(`bookSourceUrl`))", - "fields": [ - { - "fieldPath": "bookSourceUrl", - "columnName": "bookSourceUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookSourceName", - "columnName": "bookSourceName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookSourceGroup", - "columnName": "bookSourceGroup", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "bookSourceType", - "columnName": "bookSourceType", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "bookUrlPattern", - "columnName": "bookUrlPattern", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "customOrder", - "columnName": "customOrder", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "enabled", - "columnName": "enabled", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "enabledExplore", - "columnName": "enabledExplore", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "enabledReview", - "columnName": "enabledReview", - "affinity": "INTEGER", - "notNull": false - }, - { - "fieldPath": "enabledCookieJar", - "columnName": "enabledCookieJar", - "affinity": "INTEGER", - "notNull": false, - "defaultValue": "0" - }, - { - "fieldPath": "concurrentRate", - "columnName": "concurrentRate", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "header", - "columnName": "header", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "loginUrl", - "columnName": "loginUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "loginUi", - "columnName": "loginUi", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "loginCheckJs", - "columnName": "loginCheckJs", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "coverDecodeJs", - "columnName": "coverDecodeJs", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "bookSourceComment", - "columnName": "bookSourceComment", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "variableComment", - "columnName": "variableComment", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "lastUpdateTime", - "columnName": "lastUpdateTime", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "respondTime", - "columnName": "respondTime", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "weight", - "columnName": "weight", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "exploreUrl", - "columnName": "exploreUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleExplore", - "columnName": "ruleExplore", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "searchUrl", - "columnName": "searchUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleSearch", - "columnName": "ruleSearch", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleBookInfo", - "columnName": "ruleBookInfo", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleToc", - "columnName": "ruleToc", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleContent", - "columnName": "ruleContent", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleReview", - "columnName": "ruleReview", - "affinity": "TEXT", - "notNull": false - } - ], - "primaryKey": { - "autoGenerate": false, - "columnNames": [ - "bookSourceUrl" - ] - }, - "indices": [ - { - "name": "index_book_sources_bookSourceUrl", - "unique": false, - "columnNames": [ - "bookSourceUrl" - ], - "orders": [], - "createSql": "CREATE INDEX IF NOT EXISTS `index_book_sources_bookSourceUrl` ON `${TABLE_NAME}` (`bookSourceUrl`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "chapters", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`url` TEXT NOT NULL, `title` TEXT NOT NULL, `isVolume` INTEGER NOT NULL, `baseUrl` TEXT NOT NULL, `bookUrl` TEXT NOT NULL, `index` INTEGER NOT NULL, `isVip` INTEGER NOT NULL, `isPay` INTEGER NOT NULL, `resourceUrl` TEXT, `tag` TEXT, `start` INTEGER, `end` INTEGER, `startFragmentId` TEXT, `endFragmentId` TEXT, `variable` TEXT, PRIMARY KEY(`url`, `bookUrl`), FOREIGN KEY(`bookUrl`) REFERENCES `books`(`bookUrl`) ON UPDATE NO ACTION ON DELETE CASCADE )", - "fields": [ - { - "fieldPath": "url", - "columnName": "url", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "title", - "columnName": "title", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "isVolume", - "columnName": "isVolume", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "baseUrl", - "columnName": "baseUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookUrl", - "columnName": "bookUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "index", - "columnName": "index", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "isVip", - "columnName": "isVip", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "isPay", - "columnName": "isPay", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "resourceUrl", - "columnName": "resourceUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "tag", - "columnName": "tag", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "start", - "columnName": "start", - "affinity": "INTEGER", - "notNull": false - }, - { - "fieldPath": "end", - "columnName": "end", - "affinity": "INTEGER", - "notNull": false - }, - { - "fieldPath": "startFragmentId", - "columnName": "startFragmentId", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "endFragmentId", - "columnName": "endFragmentId", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "variable", - "columnName": "variable", - "affinity": "TEXT", - "notNull": false - } - ], - "primaryKey": { - "autoGenerate": false, - "columnNames": [ - "url", - "bookUrl" - ] - }, - "indices": [ - { - "name": "index_chapters_bookUrl", - "unique": false, - "columnNames": [ - "bookUrl" - ], - "orders": [], - "createSql": "CREATE INDEX IF NOT EXISTS `index_chapters_bookUrl` ON `${TABLE_NAME}` (`bookUrl`)" - }, - { - "name": "index_chapters_bookUrl_index", - "unique": true, - "columnNames": [ - "bookUrl", - "index" - ], - "orders": [], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_chapters_bookUrl_index` ON `${TABLE_NAME}` (`bookUrl`, `index`)" - } - ], - "foreignKeys": [ - { - "table": "books", - "onDelete": "CASCADE", - "onUpdate": "NO ACTION", - "columns": [ - "bookUrl" - ], - "referencedColumns": [ - "bookUrl" - ] - } - ] - }, - { - "tableName": "replace_rules", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, `name` TEXT NOT NULL DEFAULT '', `group` TEXT, `pattern` TEXT NOT NULL DEFAULT '', `replacement` TEXT NOT NULL DEFAULT '', `scope` TEXT, `scopeTitle` INTEGER NOT NULL DEFAULT 0, `scopeContent` INTEGER NOT NULL DEFAULT 1, `isEnabled` INTEGER NOT NULL DEFAULT 1, `isRegex` INTEGER NOT NULL DEFAULT 1, `timeoutMillisecond` INTEGER NOT NULL DEFAULT 3000, `sortOrder` INTEGER NOT NULL DEFAULT 0)", - "fields": [ - { - "fieldPath": "id", - "columnName": "id", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true, - "defaultValue": "''" - }, - { - "fieldPath": "group", - "columnName": "group", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "pattern", - "columnName": "pattern", - "affinity": "TEXT", - "notNull": true, - "defaultValue": "''" - }, - { - "fieldPath": "replacement", - "columnName": "replacement", - "affinity": "TEXT", - "notNull": true, - "defaultValue": "''" - }, - { - "fieldPath": "scope", - "columnName": "scope", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "scopeTitle", - "columnName": "scopeTitle", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "scopeContent", - "columnName": "scopeContent", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "1" - }, - { - "fieldPath": "isEnabled", - "columnName": "isEnabled", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "1" - }, - { - "fieldPath": "isRegex", - "columnName": "isRegex", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "1" - }, - { - "fieldPath": "timeoutMillisecond", - "columnName": "timeoutMillisecond", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "3000" - }, - { - "fieldPath": "order", - "columnName": "sortOrder", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - } - ], - "primaryKey": { - "autoGenerate": true, - "columnNames": [ - "id" - ] - }, - "indices": [ - { - "name": "index_replace_rules_id", - "unique": false, - "columnNames": [ - "id" - ], - "orders": [], - "createSql": "CREATE INDEX IF NOT EXISTS `index_replace_rules_id` ON `${TABLE_NAME}` (`id`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "searchBooks", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`bookUrl` TEXT NOT NULL, `origin` TEXT NOT NULL, `originName` TEXT NOT NULL, `type` INTEGER NOT NULL, `name` TEXT NOT NULL, `author` TEXT NOT NULL, `kind` TEXT, `coverUrl` TEXT, `intro` TEXT, `wordCount` TEXT, `latestChapterTitle` TEXT, `tocUrl` TEXT NOT NULL, `time` INTEGER NOT NULL, `variable` TEXT, `originOrder` INTEGER NOT NULL, PRIMARY KEY(`bookUrl`), FOREIGN KEY(`origin`) REFERENCES `book_sources`(`bookSourceUrl`) ON UPDATE NO ACTION ON DELETE CASCADE )", - "fields": [ - { - "fieldPath": "bookUrl", - "columnName": "bookUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "origin", - "columnName": "origin", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "originName", - "columnName": "originName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "type", - "columnName": "type", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "author", - "columnName": "author", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "kind", - "columnName": "kind", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "coverUrl", - "columnName": "coverUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "intro", - "columnName": "intro", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "wordCount", - "columnName": "wordCount", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "latestChapterTitle", - "columnName": "latestChapterTitle", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "tocUrl", - "columnName": "tocUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "time", - "columnName": "time", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "variable", - "columnName": "variable", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "originOrder", - "columnName": "originOrder", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "autoGenerate": false, - "columnNames": [ - "bookUrl" - ] - }, - "indices": [ - { - "name": "index_searchBooks_bookUrl", - "unique": true, - "columnNames": [ - "bookUrl" - ], - "orders": [], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_searchBooks_bookUrl` ON `${TABLE_NAME}` (`bookUrl`)" - }, - { - "name": "index_searchBooks_origin", - "unique": false, - "columnNames": [ - "origin" - ], - "orders": [], - "createSql": "CREATE INDEX IF NOT EXISTS `index_searchBooks_origin` ON `${TABLE_NAME}` (`origin`)" - } - ], - "foreignKeys": [ - { - "table": "book_sources", - "onDelete": "CASCADE", - "onUpdate": "NO ACTION", - "columns": [ - "origin" - ], - "referencedColumns": [ - "bookSourceUrl" - ] - } - ] - }, - { - "tableName": "search_keywords", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`word` TEXT NOT NULL, `usage` INTEGER NOT NULL, `lastUseTime` INTEGER NOT NULL, PRIMARY KEY(`word`))", - "fields": [ - { - "fieldPath": "word", - "columnName": "word", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "usage", - "columnName": "usage", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "lastUseTime", - "columnName": "lastUseTime", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "autoGenerate": false, - "columnNames": [ - "word" - ] - }, - "indices": [ - { - "name": "index_search_keywords_word", - "unique": true, - "columnNames": [ - "word" - ], - "orders": [], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_search_keywords_word` ON `${TABLE_NAME}` (`word`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "cookies", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`url` TEXT NOT NULL, `cookie` TEXT NOT NULL, PRIMARY KEY(`url`))", - "fields": [ - { - "fieldPath": "url", - "columnName": "url", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "cookie", - "columnName": "cookie", - "affinity": "TEXT", - "notNull": true - } - ], - "primaryKey": { - "autoGenerate": false, - "columnNames": [ - "url" - ] - }, - "indices": [ - { - "name": "index_cookies_url", - "unique": true, - "columnNames": [ - "url" - ], - "orders": [], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_cookies_url` ON `${TABLE_NAME}` (`url`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "rssSources", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`sourceUrl` TEXT NOT NULL, `sourceName` TEXT NOT NULL, `sourceIcon` TEXT NOT NULL, `sourceGroup` TEXT, `sourceComment` TEXT, `enabled` INTEGER NOT NULL, `variableComment` TEXT, `enabledCookieJar` INTEGER DEFAULT 0, `concurrentRate` TEXT, `header` TEXT, `loginUrl` TEXT, `loginUi` TEXT, `loginCheckJs` TEXT, `coverDecodeJs` TEXT, `sortUrl` TEXT, `singleUrl` INTEGER NOT NULL, `articleStyle` INTEGER NOT NULL DEFAULT 0, `ruleArticles` TEXT, `ruleNextPage` TEXT, `ruleTitle` TEXT, `rulePubDate` TEXT, `ruleDescription` TEXT, `ruleImage` TEXT, `ruleLink` TEXT, `ruleContent` TEXT, `contentWhitelist` TEXT, `contentBlacklist` TEXT, `style` TEXT, `enableJs` INTEGER NOT NULL DEFAULT 1, `loadWithBaseUrl` INTEGER NOT NULL DEFAULT 1, `injectJs` TEXT, `lastUpdateTime` INTEGER NOT NULL DEFAULT 0, `customOrder` INTEGER NOT NULL DEFAULT 0, PRIMARY KEY(`sourceUrl`))", - "fields": [ - { - "fieldPath": "sourceUrl", - "columnName": "sourceUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "sourceName", - "columnName": "sourceName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "sourceIcon", - "columnName": "sourceIcon", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "sourceGroup", - "columnName": "sourceGroup", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "sourceComment", - "columnName": "sourceComment", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "enabled", - "columnName": "enabled", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "variableComment", - "columnName": "variableComment", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "enabledCookieJar", - "columnName": "enabledCookieJar", - "affinity": "INTEGER", - "notNull": false, - "defaultValue": "0" - }, - { - "fieldPath": "concurrentRate", - "columnName": "concurrentRate", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "header", - "columnName": "header", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "loginUrl", - "columnName": "loginUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "loginUi", - "columnName": "loginUi", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "loginCheckJs", - "columnName": "loginCheckJs", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "coverDecodeJs", - "columnName": "coverDecodeJs", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "sortUrl", - "columnName": "sortUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "singleUrl", - "columnName": "singleUrl", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "articleStyle", - "columnName": "articleStyle", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "ruleArticles", - "columnName": "ruleArticles", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleNextPage", - "columnName": "ruleNextPage", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleTitle", - "columnName": "ruleTitle", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "rulePubDate", - "columnName": "rulePubDate", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleDescription", - "columnName": "ruleDescription", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleImage", - "columnName": "ruleImage", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleLink", - "columnName": "ruleLink", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleContent", - "columnName": "ruleContent", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "contentWhitelist", - "columnName": "contentWhitelist", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "contentBlacklist", - "columnName": "contentBlacklist", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "style", - "columnName": "style", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "enableJs", - "columnName": "enableJs", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "1" - }, - { - "fieldPath": "loadWithBaseUrl", - "columnName": "loadWithBaseUrl", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "1" - }, - { - "fieldPath": "injectJs", - "columnName": "injectJs", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "lastUpdateTime", - "columnName": "lastUpdateTime", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "customOrder", - "columnName": "customOrder", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - } - ], - "primaryKey": { - "autoGenerate": false, - "columnNames": [ - "sourceUrl" - ] - }, - "indices": [ - { - "name": "index_rssSources_sourceUrl", - "unique": false, - "columnNames": [ - "sourceUrl" - ], - "orders": [], - "createSql": "CREATE INDEX IF NOT EXISTS `index_rssSources_sourceUrl` ON `${TABLE_NAME}` (`sourceUrl`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "bookmarks", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`time` INTEGER NOT NULL, `bookName` TEXT NOT NULL, `bookAuthor` TEXT NOT NULL, `chapterIndex` INTEGER NOT NULL, `chapterPos` INTEGER NOT NULL, `chapterName` TEXT NOT NULL, `bookText` TEXT NOT NULL, `content` TEXT NOT NULL, PRIMARY KEY(`time`))", - "fields": [ - { - "fieldPath": "time", - "columnName": "time", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "bookName", - "columnName": "bookName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookAuthor", - "columnName": "bookAuthor", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "chapterIndex", - "columnName": "chapterIndex", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "chapterPos", - "columnName": "chapterPos", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "chapterName", - "columnName": "chapterName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookText", - "columnName": "bookText", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "content", - "columnName": "content", - "affinity": "TEXT", - "notNull": true - } - ], - "primaryKey": { - "autoGenerate": false, - "columnNames": [ - "time" - ] - }, - "indices": [ - { - "name": "index_bookmarks_bookName_bookAuthor", - "unique": false, - "columnNames": [ - "bookName", - "bookAuthor" - ], - "orders": [], - "createSql": "CREATE INDEX IF NOT EXISTS `index_bookmarks_bookName_bookAuthor` ON `${TABLE_NAME}` (`bookName`, `bookAuthor`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "rssArticles", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`origin` TEXT NOT NULL, `sort` TEXT NOT NULL, `title` TEXT NOT NULL, `order` INTEGER NOT NULL, `link` TEXT NOT NULL, `pubDate` TEXT, `description` TEXT, `content` TEXT, `image` TEXT, `read` INTEGER NOT NULL, `variable` TEXT, PRIMARY KEY(`origin`, `link`))", - "fields": [ - { - "fieldPath": "origin", - "columnName": "origin", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "sort", - "columnName": "sort", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "title", - "columnName": "title", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "order", - "columnName": "order", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "link", - "columnName": "link", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "pubDate", - "columnName": "pubDate", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "description", - "columnName": "description", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "content", - "columnName": "content", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "image", - "columnName": "image", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "read", - "columnName": "read", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "variable", - "columnName": "variable", - "affinity": "TEXT", - "notNull": false - } - ], - "primaryKey": { - "autoGenerate": false, - "columnNames": [ - "origin", - "link" - ] - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "rssReadRecords", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`record` TEXT NOT NULL, `read` INTEGER NOT NULL, PRIMARY KEY(`record`))", - "fields": [ - { - "fieldPath": "record", - "columnName": "record", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "read", - "columnName": "read", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "autoGenerate": false, - "columnNames": [ - "record" - ] - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "rssStars", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`origin` TEXT NOT NULL, `sort` TEXT NOT NULL, `title` TEXT NOT NULL, `starTime` INTEGER NOT NULL, `link` TEXT NOT NULL, `pubDate` TEXT, `description` TEXT, `content` TEXT, `image` TEXT, `variable` TEXT, PRIMARY KEY(`origin`, `link`))", - "fields": [ - { - "fieldPath": "origin", - "columnName": "origin", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "sort", - "columnName": "sort", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "title", - "columnName": "title", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "starTime", - "columnName": "starTime", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "link", - "columnName": "link", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "pubDate", - "columnName": "pubDate", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "description", - "columnName": "description", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "content", - "columnName": "content", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "image", - "columnName": "image", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "variable", - "columnName": "variable", - "affinity": "TEXT", - "notNull": false - } - ], - "primaryKey": { - "autoGenerate": false, - "columnNames": [ - "origin", - "link" - ] - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "txtTocRules", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER NOT NULL, `name` TEXT NOT NULL, `rule` TEXT NOT NULL, `example` TEXT, `serialNumber` INTEGER NOT NULL, `enable` INTEGER NOT NULL, PRIMARY KEY(`id`))", - "fields": [ - { - "fieldPath": "id", - "columnName": "id", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "rule", - "columnName": "rule", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "example", - "columnName": "example", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "serialNumber", - "columnName": "serialNumber", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "enable", - "columnName": "enable", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "autoGenerate": false, - "columnNames": [ - "id" - ] - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "readRecord", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`deviceId` TEXT NOT NULL, `bookName` TEXT NOT NULL, `readTime` INTEGER NOT NULL DEFAULT 0, `lastRead` INTEGER NOT NULL DEFAULT 0, PRIMARY KEY(`deviceId`, `bookName`))", - "fields": [ - { - "fieldPath": "deviceId", - "columnName": "deviceId", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookName", - "columnName": "bookName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "readTime", - "columnName": "readTime", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "lastRead", - "columnName": "lastRead", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - } - ], - "primaryKey": { - "autoGenerate": false, - "columnNames": [ - "deviceId", - "bookName" - ] - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "httpTTS", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER NOT NULL, `name` TEXT NOT NULL, `url` TEXT NOT NULL, `contentType` TEXT, `concurrentRate` TEXT DEFAULT '0', `loginUrl` TEXT, `loginUi` TEXT, `header` TEXT, `enabledCookieJar` INTEGER DEFAULT 0, `loginCheckJs` TEXT, `lastUpdateTime` INTEGER NOT NULL DEFAULT 0, PRIMARY KEY(`id`))", - "fields": [ - { - "fieldPath": "id", - "columnName": "id", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "url", - "columnName": "url", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "contentType", - "columnName": "contentType", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "concurrentRate", - "columnName": "concurrentRate", - "affinity": "TEXT", - "notNull": false, - "defaultValue": "'0'" - }, - { - "fieldPath": "loginUrl", - "columnName": "loginUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "loginUi", - "columnName": "loginUi", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "header", - "columnName": "header", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "enabledCookieJar", - "columnName": "enabledCookieJar", - "affinity": "INTEGER", - "notNull": false, - "defaultValue": "0" - }, - { - "fieldPath": "loginCheckJs", - "columnName": "loginCheckJs", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "lastUpdateTime", - "columnName": "lastUpdateTime", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - } - ], - "primaryKey": { - "autoGenerate": false, - "columnNames": [ - "id" - ] - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "caches", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`key` TEXT NOT NULL, `value` TEXT, `deadline` INTEGER NOT NULL, PRIMARY KEY(`key`))", - "fields": [ - { - "fieldPath": "key", - "columnName": "key", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "value", - "columnName": "value", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "deadline", - "columnName": "deadline", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "autoGenerate": false, - "columnNames": [ - "key" - ] - }, - "indices": [ - { - "name": "index_caches_key", - "unique": true, - "columnNames": [ - "key" - ], - "orders": [], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_caches_key` ON `${TABLE_NAME}` (`key`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "ruleSubs", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER NOT NULL, `name` TEXT NOT NULL, `url` TEXT NOT NULL, `type` INTEGER NOT NULL, `customOrder` INTEGER NOT NULL, `autoUpdate` INTEGER NOT NULL, `update` INTEGER NOT NULL, PRIMARY KEY(`id`))", - "fields": [ - { - "fieldPath": "id", - "columnName": "id", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "url", - "columnName": "url", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "type", - "columnName": "type", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "customOrder", - "columnName": "customOrder", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "autoUpdate", - "columnName": "autoUpdate", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "update", - "columnName": "update", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "autoGenerate": false, - "columnNames": [ - "id" - ] - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "dictRules", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`name` TEXT NOT NULL, `urlRule` TEXT NOT NULL, `showRule` TEXT NOT NULL, `enabled` INTEGER NOT NULL DEFAULT 1, `sortNumber` INTEGER NOT NULL DEFAULT 0, PRIMARY KEY(`name`))", - "fields": [ - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "urlRule", - "columnName": "urlRule", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "showRule", - "columnName": "showRule", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "enabled", - "columnName": "enabled", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "1" - }, - { - "fieldPath": "sortNumber", - "columnName": "sortNumber", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - } - ], - "primaryKey": { - "autoGenerate": false, - "columnNames": [ - "name" - ] - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "keyboardAssists", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`type` INTEGER NOT NULL DEFAULT 0, `key` TEXT NOT NULL DEFAULT '', `value` TEXT NOT NULL DEFAULT '', `serialNo` INTEGER NOT NULL DEFAULT 0, PRIMARY KEY(`type`, `key`))", - "fields": [ - { - "fieldPath": "type", - "columnName": "type", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "key", - "columnName": "key", - "affinity": "TEXT", - "notNull": true, - "defaultValue": "''" - }, - { - "fieldPath": "value", - "columnName": "value", - "affinity": "TEXT", - "notNull": true, - "defaultValue": "''" - }, - { - "fieldPath": "serialNo", - "columnName": "serialNo", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - } - ], - "primaryKey": { - "autoGenerate": false, - "columnNames": [ - "type", - "key" - ] - }, - "indices": [], - "foreignKeys": [] - } - ], - "views": [], - "setupQueries": [ - "CREATE TABLE IF NOT EXISTS room_master_table (id INTEGER PRIMARY KEY,identity_hash TEXT)", - "INSERT OR REPLACE INTO room_master_table (id,identity_hash) VALUES(42, '9e424026dc2c4dba847b0d9a5f3f788e')" - ] - } -} \ No newline at end of file diff --git a/app/schemas/io.legado.app.data.AppDatabase/62.json b/app/schemas/io.legado.app.data.AppDatabase/62.json deleted file mode 100644 index 4982bca81..000000000 --- a/app/schemas/io.legado.app.data.AppDatabase/62.json +++ /dev/null @@ -1,1830 +0,0 @@ -{ - "formatVersion": 1, - "database": { - "version": 62, - "identityHash": "965c5f1d4c60d25b4b46efb17c575c85", - "entities": [ - { - "tableName": "books", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`bookUrl` TEXT NOT NULL DEFAULT '', `tocUrl` TEXT NOT NULL DEFAULT '', `origin` TEXT NOT NULL DEFAULT 'loc_book', `originName` TEXT NOT NULL DEFAULT '', `name` TEXT NOT NULL DEFAULT '', `author` TEXT NOT NULL DEFAULT '', `kind` TEXT, `customTag` TEXT, `coverUrl` TEXT, `customCoverUrl` TEXT, `intro` TEXT, `customIntro` TEXT, `charset` TEXT, `type` INTEGER NOT NULL DEFAULT 0, `group` INTEGER NOT NULL DEFAULT 0, `latestChapterTitle` TEXT, `latestChapterTime` INTEGER NOT NULL DEFAULT 0, `lastCheckTime` INTEGER NOT NULL DEFAULT 0, `lastCheckCount` INTEGER NOT NULL DEFAULT 0, `totalChapterNum` INTEGER NOT NULL DEFAULT 0, `durChapterTitle` TEXT, `durChapterIndex` INTEGER NOT NULL DEFAULT 0, `durChapterPos` INTEGER NOT NULL DEFAULT 0, `durChapterTime` INTEGER NOT NULL DEFAULT 0, `wordCount` TEXT, `canUpdate` INTEGER NOT NULL DEFAULT 1, `order` INTEGER NOT NULL DEFAULT 0, `originOrder` INTEGER NOT NULL DEFAULT 0, `variable` TEXT, `readConfig` TEXT, PRIMARY KEY(`bookUrl`))", - "fields": [ - { - "fieldPath": "bookUrl", - "columnName": "bookUrl", - "affinity": "TEXT", - "notNull": true, - "defaultValue": "''" - }, - { - "fieldPath": "tocUrl", - "columnName": "tocUrl", - "affinity": "TEXT", - "notNull": true, - "defaultValue": "''" - }, - { - "fieldPath": "origin", - "columnName": "origin", - "affinity": "TEXT", - "notNull": true, - "defaultValue": "'loc_book'" - }, - { - "fieldPath": "originName", - "columnName": "originName", - "affinity": "TEXT", - "notNull": true, - "defaultValue": "''" - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true, - "defaultValue": "''" - }, - { - "fieldPath": "author", - "columnName": "author", - "affinity": "TEXT", - "notNull": true, - "defaultValue": "''" - }, - { - "fieldPath": "kind", - "columnName": "kind", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "customTag", - "columnName": "customTag", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "coverUrl", - "columnName": "coverUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "customCoverUrl", - "columnName": "customCoverUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "intro", - "columnName": "intro", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "customIntro", - "columnName": "customIntro", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "charset", - "columnName": "charset", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "type", - "columnName": "type", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "group", - "columnName": "group", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "latestChapterTitle", - "columnName": "latestChapterTitle", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "latestChapterTime", - "columnName": "latestChapterTime", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "lastCheckTime", - "columnName": "lastCheckTime", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "lastCheckCount", - "columnName": "lastCheckCount", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "totalChapterNum", - "columnName": "totalChapterNum", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "durChapterTitle", - "columnName": "durChapterTitle", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "durChapterIndex", - "columnName": "durChapterIndex", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "durChapterPos", - "columnName": "durChapterPos", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "durChapterTime", - "columnName": "durChapterTime", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "wordCount", - "columnName": "wordCount", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "canUpdate", - "columnName": "canUpdate", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "1" - }, - { - "fieldPath": "order", - "columnName": "order", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "originOrder", - "columnName": "originOrder", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "variable", - "columnName": "variable", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "readConfig", - "columnName": "readConfig", - "affinity": "TEXT", - "notNull": false - } - ], - "primaryKey": { - "autoGenerate": false, - "columnNames": [ - "bookUrl" - ] - }, - "indices": [ - { - "name": "index_books_name_author", - "unique": true, - "columnNames": [ - "name", - "author" - ], - "orders": [], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_books_name_author` ON `${TABLE_NAME}` (`name`, `author`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "book_groups", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`groupId` INTEGER NOT NULL, `groupName` TEXT NOT NULL, `cover` TEXT, `order` INTEGER NOT NULL, `show` INTEGER NOT NULL, `bookSort` INTEGER NOT NULL DEFAULT -1, PRIMARY KEY(`groupId`))", - "fields": [ - { - "fieldPath": "groupId", - "columnName": "groupId", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "groupName", - "columnName": "groupName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "cover", - "columnName": "cover", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "order", - "columnName": "order", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "show", - "columnName": "show", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "bookSort", - "columnName": "bookSort", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "-1" - } - ], - "primaryKey": { - "autoGenerate": false, - "columnNames": [ - "groupId" - ] - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "book_sources", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`bookSourceUrl` TEXT NOT NULL, `bookSourceName` TEXT NOT NULL, `bookSourceGroup` TEXT, `bookSourceType` INTEGER NOT NULL, `bookUrlPattern` TEXT, `customOrder` INTEGER NOT NULL, `enabled` INTEGER NOT NULL, `enabledExplore` INTEGER NOT NULL, `enabledReview` INTEGER, `enabledCookieJar` INTEGER DEFAULT 0, `concurrentRate` TEXT, `header` TEXT, `loginUrl` TEXT, `loginUi` TEXT, `loginCheckJs` TEXT, `coverDecodeJs` TEXT, `bookSourceComment` TEXT, `variableComment` TEXT, `lastUpdateTime` INTEGER NOT NULL, `respondTime` INTEGER NOT NULL, `weight` INTEGER NOT NULL, `exploreUrl` TEXT, `ruleExplore` TEXT, `searchUrl` TEXT, `ruleSearch` TEXT, `ruleBookInfo` TEXT, `ruleToc` TEXT, `ruleContent` TEXT, `ruleReview` TEXT, PRIMARY KEY(`bookSourceUrl`))", - "fields": [ - { - "fieldPath": "bookSourceUrl", - "columnName": "bookSourceUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookSourceName", - "columnName": "bookSourceName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookSourceGroup", - "columnName": "bookSourceGroup", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "bookSourceType", - "columnName": "bookSourceType", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "bookUrlPattern", - "columnName": "bookUrlPattern", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "customOrder", - "columnName": "customOrder", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "enabled", - "columnName": "enabled", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "enabledExplore", - "columnName": "enabledExplore", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "enabledReview", - "columnName": "enabledReview", - "affinity": "INTEGER", - "notNull": false - }, - { - "fieldPath": "enabledCookieJar", - "columnName": "enabledCookieJar", - "affinity": "INTEGER", - "notNull": false, - "defaultValue": "0" - }, - { - "fieldPath": "concurrentRate", - "columnName": "concurrentRate", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "header", - "columnName": "header", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "loginUrl", - "columnName": "loginUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "loginUi", - "columnName": "loginUi", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "loginCheckJs", - "columnName": "loginCheckJs", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "coverDecodeJs", - "columnName": "coverDecodeJs", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "bookSourceComment", - "columnName": "bookSourceComment", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "variableComment", - "columnName": "variableComment", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "lastUpdateTime", - "columnName": "lastUpdateTime", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "respondTime", - "columnName": "respondTime", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "weight", - "columnName": "weight", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "exploreUrl", - "columnName": "exploreUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleExplore", - "columnName": "ruleExplore", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "searchUrl", - "columnName": "searchUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleSearch", - "columnName": "ruleSearch", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleBookInfo", - "columnName": "ruleBookInfo", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleToc", - "columnName": "ruleToc", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleContent", - "columnName": "ruleContent", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleReview", - "columnName": "ruleReview", - "affinity": "TEXT", - "notNull": false - } - ], - "primaryKey": { - "autoGenerate": false, - "columnNames": [ - "bookSourceUrl" - ] - }, - "indices": [ - { - "name": "index_book_sources_bookSourceUrl", - "unique": false, - "columnNames": [ - "bookSourceUrl" - ], - "orders": [], - "createSql": "CREATE INDEX IF NOT EXISTS `index_book_sources_bookSourceUrl` ON `${TABLE_NAME}` (`bookSourceUrl`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "chapters", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`url` TEXT NOT NULL, `title` TEXT NOT NULL, `isVolume` INTEGER NOT NULL, `baseUrl` TEXT NOT NULL, `bookUrl` TEXT NOT NULL, `index` INTEGER NOT NULL, `isVip` INTEGER NOT NULL, `isPay` INTEGER NOT NULL, `resourceUrl` TEXT, `tag` TEXT, `start` INTEGER, `end` INTEGER, `startFragmentId` TEXT, `endFragmentId` TEXT, `variable` TEXT, PRIMARY KEY(`url`, `bookUrl`), FOREIGN KEY(`bookUrl`) REFERENCES `books`(`bookUrl`) ON UPDATE NO ACTION ON DELETE CASCADE )", - "fields": [ - { - "fieldPath": "url", - "columnName": "url", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "title", - "columnName": "title", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "isVolume", - "columnName": "isVolume", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "baseUrl", - "columnName": "baseUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookUrl", - "columnName": "bookUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "index", - "columnName": "index", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "isVip", - "columnName": "isVip", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "isPay", - "columnName": "isPay", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "resourceUrl", - "columnName": "resourceUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "tag", - "columnName": "tag", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "start", - "columnName": "start", - "affinity": "INTEGER", - "notNull": false - }, - { - "fieldPath": "end", - "columnName": "end", - "affinity": "INTEGER", - "notNull": false - }, - { - "fieldPath": "startFragmentId", - "columnName": "startFragmentId", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "endFragmentId", - "columnName": "endFragmentId", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "variable", - "columnName": "variable", - "affinity": "TEXT", - "notNull": false - } - ], - "primaryKey": { - "autoGenerate": false, - "columnNames": [ - "url", - "bookUrl" - ] - }, - "indices": [ - { - "name": "index_chapters_bookUrl", - "unique": false, - "columnNames": [ - "bookUrl" - ], - "orders": [], - "createSql": "CREATE INDEX IF NOT EXISTS `index_chapters_bookUrl` ON `${TABLE_NAME}` (`bookUrl`)" - }, - { - "name": "index_chapters_bookUrl_index", - "unique": true, - "columnNames": [ - "bookUrl", - "index" - ], - "orders": [], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_chapters_bookUrl_index` ON `${TABLE_NAME}` (`bookUrl`, `index`)" - } - ], - "foreignKeys": [ - { - "table": "books", - "onDelete": "CASCADE", - "onUpdate": "NO ACTION", - "columns": [ - "bookUrl" - ], - "referencedColumns": [ - "bookUrl" - ] - } - ] - }, - { - "tableName": "replace_rules", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, `name` TEXT NOT NULL DEFAULT '', `group` TEXT, `pattern` TEXT NOT NULL DEFAULT '', `replacement` TEXT NOT NULL DEFAULT '', `scope` TEXT, `scopeTitle` INTEGER NOT NULL DEFAULT 0, `scopeContent` INTEGER NOT NULL DEFAULT 1, `isEnabled` INTEGER NOT NULL DEFAULT 1, `isRegex` INTEGER NOT NULL DEFAULT 1, `timeoutMillisecond` INTEGER NOT NULL DEFAULT 3000, `sortOrder` INTEGER NOT NULL DEFAULT 0)", - "fields": [ - { - "fieldPath": "id", - "columnName": "id", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true, - "defaultValue": "''" - }, - { - "fieldPath": "group", - "columnName": "group", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "pattern", - "columnName": "pattern", - "affinity": "TEXT", - "notNull": true, - "defaultValue": "''" - }, - { - "fieldPath": "replacement", - "columnName": "replacement", - "affinity": "TEXT", - "notNull": true, - "defaultValue": "''" - }, - { - "fieldPath": "scope", - "columnName": "scope", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "scopeTitle", - "columnName": "scopeTitle", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "scopeContent", - "columnName": "scopeContent", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "1" - }, - { - "fieldPath": "isEnabled", - "columnName": "isEnabled", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "1" - }, - { - "fieldPath": "isRegex", - "columnName": "isRegex", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "1" - }, - { - "fieldPath": "timeoutMillisecond", - "columnName": "timeoutMillisecond", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "3000" - }, - { - "fieldPath": "order", - "columnName": "sortOrder", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - } - ], - "primaryKey": { - "autoGenerate": true, - "columnNames": [ - "id" - ] - }, - "indices": [ - { - "name": "index_replace_rules_id", - "unique": false, - "columnNames": [ - "id" - ], - "orders": [], - "createSql": "CREATE INDEX IF NOT EXISTS `index_replace_rules_id` ON `${TABLE_NAME}` (`id`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "searchBooks", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`bookUrl` TEXT NOT NULL, `origin` TEXT NOT NULL, `originName` TEXT NOT NULL, `type` INTEGER NOT NULL, `name` TEXT NOT NULL, `author` TEXT NOT NULL, `kind` TEXT, `coverUrl` TEXT, `intro` TEXT, `wordCount` TEXT, `latestChapterTitle` TEXT, `tocUrl` TEXT NOT NULL, `time` INTEGER NOT NULL, `variable` TEXT, `originOrder` INTEGER NOT NULL, PRIMARY KEY(`bookUrl`), FOREIGN KEY(`origin`) REFERENCES `book_sources`(`bookSourceUrl`) ON UPDATE NO ACTION ON DELETE CASCADE )", - "fields": [ - { - "fieldPath": "bookUrl", - "columnName": "bookUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "origin", - "columnName": "origin", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "originName", - "columnName": "originName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "type", - "columnName": "type", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "author", - "columnName": "author", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "kind", - "columnName": "kind", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "coverUrl", - "columnName": "coverUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "intro", - "columnName": "intro", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "wordCount", - "columnName": "wordCount", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "latestChapterTitle", - "columnName": "latestChapterTitle", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "tocUrl", - "columnName": "tocUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "time", - "columnName": "time", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "variable", - "columnName": "variable", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "originOrder", - "columnName": "originOrder", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "autoGenerate": false, - "columnNames": [ - "bookUrl" - ] - }, - "indices": [ - { - "name": "index_searchBooks_bookUrl", - "unique": true, - "columnNames": [ - "bookUrl" - ], - "orders": [], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_searchBooks_bookUrl` ON `${TABLE_NAME}` (`bookUrl`)" - }, - { - "name": "index_searchBooks_origin", - "unique": false, - "columnNames": [ - "origin" - ], - "orders": [], - "createSql": "CREATE INDEX IF NOT EXISTS `index_searchBooks_origin` ON `${TABLE_NAME}` (`origin`)" - } - ], - "foreignKeys": [ - { - "table": "book_sources", - "onDelete": "CASCADE", - "onUpdate": "NO ACTION", - "columns": [ - "origin" - ], - "referencedColumns": [ - "bookSourceUrl" - ] - } - ] - }, - { - "tableName": "search_keywords", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`word` TEXT NOT NULL, `usage` INTEGER NOT NULL, `lastUseTime` INTEGER NOT NULL, PRIMARY KEY(`word`))", - "fields": [ - { - "fieldPath": "word", - "columnName": "word", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "usage", - "columnName": "usage", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "lastUseTime", - "columnName": "lastUseTime", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "autoGenerate": false, - "columnNames": [ - "word" - ] - }, - "indices": [ - { - "name": "index_search_keywords_word", - "unique": true, - "columnNames": [ - "word" - ], - "orders": [], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_search_keywords_word` ON `${TABLE_NAME}` (`word`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "cookies", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`url` TEXT NOT NULL, `cookie` TEXT NOT NULL, PRIMARY KEY(`url`))", - "fields": [ - { - "fieldPath": "url", - "columnName": "url", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "cookie", - "columnName": "cookie", - "affinity": "TEXT", - "notNull": true - } - ], - "primaryKey": { - "autoGenerate": false, - "columnNames": [ - "url" - ] - }, - "indices": [ - { - "name": "index_cookies_url", - "unique": true, - "columnNames": [ - "url" - ], - "orders": [], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_cookies_url` ON `${TABLE_NAME}` (`url`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "rssSources", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`sourceUrl` TEXT NOT NULL, `sourceName` TEXT NOT NULL, `sourceIcon` TEXT NOT NULL, `sourceGroup` TEXT, `sourceComment` TEXT, `enabled` INTEGER NOT NULL, `variableComment` TEXT, `enabledCookieJar` INTEGER DEFAULT 0, `concurrentRate` TEXT, `header` TEXT, `loginUrl` TEXT, `loginUi` TEXT, `loginCheckJs` TEXT, `coverDecodeJs` TEXT, `sortUrl` TEXT, `singleUrl` INTEGER NOT NULL, `articleStyle` INTEGER NOT NULL DEFAULT 0, `ruleArticles` TEXT, `ruleNextPage` TEXT, `ruleTitle` TEXT, `rulePubDate` TEXT, `ruleDescription` TEXT, `ruleImage` TEXT, `ruleLink` TEXT, `ruleContent` TEXT, `contentWhitelist` TEXT, `contentBlacklist` TEXT, `style` TEXT, `enableJs` INTEGER NOT NULL DEFAULT 1, `loadWithBaseUrl` INTEGER NOT NULL DEFAULT 1, `injectJs` TEXT, `lastUpdateTime` INTEGER NOT NULL DEFAULT 0, `customOrder` INTEGER NOT NULL DEFAULT 0, PRIMARY KEY(`sourceUrl`))", - "fields": [ - { - "fieldPath": "sourceUrl", - "columnName": "sourceUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "sourceName", - "columnName": "sourceName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "sourceIcon", - "columnName": "sourceIcon", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "sourceGroup", - "columnName": "sourceGroup", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "sourceComment", - "columnName": "sourceComment", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "enabled", - "columnName": "enabled", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "variableComment", - "columnName": "variableComment", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "enabledCookieJar", - "columnName": "enabledCookieJar", - "affinity": "INTEGER", - "notNull": false, - "defaultValue": "0" - }, - { - "fieldPath": "concurrentRate", - "columnName": "concurrentRate", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "header", - "columnName": "header", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "loginUrl", - "columnName": "loginUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "loginUi", - "columnName": "loginUi", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "loginCheckJs", - "columnName": "loginCheckJs", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "coverDecodeJs", - "columnName": "coverDecodeJs", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "sortUrl", - "columnName": "sortUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "singleUrl", - "columnName": "singleUrl", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "articleStyle", - "columnName": "articleStyle", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "ruleArticles", - "columnName": "ruleArticles", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleNextPage", - "columnName": "ruleNextPage", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleTitle", - "columnName": "ruleTitle", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "rulePubDate", - "columnName": "rulePubDate", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleDescription", - "columnName": "ruleDescription", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleImage", - "columnName": "ruleImage", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleLink", - "columnName": "ruleLink", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleContent", - "columnName": "ruleContent", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "contentWhitelist", - "columnName": "contentWhitelist", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "contentBlacklist", - "columnName": "contentBlacklist", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "style", - "columnName": "style", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "enableJs", - "columnName": "enableJs", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "1" - }, - { - "fieldPath": "loadWithBaseUrl", - "columnName": "loadWithBaseUrl", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "1" - }, - { - "fieldPath": "injectJs", - "columnName": "injectJs", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "lastUpdateTime", - "columnName": "lastUpdateTime", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "customOrder", - "columnName": "customOrder", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - } - ], - "primaryKey": { - "autoGenerate": false, - "columnNames": [ - "sourceUrl" - ] - }, - "indices": [ - { - "name": "index_rssSources_sourceUrl", - "unique": false, - "columnNames": [ - "sourceUrl" - ], - "orders": [], - "createSql": "CREATE INDEX IF NOT EXISTS `index_rssSources_sourceUrl` ON `${TABLE_NAME}` (`sourceUrl`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "bookmarks", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`time` INTEGER NOT NULL, `bookName` TEXT NOT NULL, `bookAuthor` TEXT NOT NULL, `chapterIndex` INTEGER NOT NULL, `chapterPos` INTEGER NOT NULL, `chapterName` TEXT NOT NULL, `bookText` TEXT NOT NULL, `content` TEXT NOT NULL, PRIMARY KEY(`time`))", - "fields": [ - { - "fieldPath": "time", - "columnName": "time", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "bookName", - "columnName": "bookName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookAuthor", - "columnName": "bookAuthor", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "chapterIndex", - "columnName": "chapterIndex", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "chapterPos", - "columnName": "chapterPos", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "chapterName", - "columnName": "chapterName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookText", - "columnName": "bookText", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "content", - "columnName": "content", - "affinity": "TEXT", - "notNull": true - } - ], - "primaryKey": { - "autoGenerate": false, - "columnNames": [ - "time" - ] - }, - "indices": [ - { - "name": "index_bookmarks_bookName_bookAuthor", - "unique": false, - "columnNames": [ - "bookName", - "bookAuthor" - ], - "orders": [], - "createSql": "CREATE INDEX IF NOT EXISTS `index_bookmarks_bookName_bookAuthor` ON `${TABLE_NAME}` (`bookName`, `bookAuthor`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "rssArticles", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`origin` TEXT NOT NULL, `sort` TEXT NOT NULL, `title` TEXT NOT NULL, `order` INTEGER NOT NULL, `link` TEXT NOT NULL, `pubDate` TEXT, `description` TEXT, `content` TEXT, `image` TEXT, `read` INTEGER NOT NULL, `variable` TEXT, PRIMARY KEY(`origin`, `link`))", - "fields": [ - { - "fieldPath": "origin", - "columnName": "origin", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "sort", - "columnName": "sort", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "title", - "columnName": "title", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "order", - "columnName": "order", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "link", - "columnName": "link", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "pubDate", - "columnName": "pubDate", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "description", - "columnName": "description", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "content", - "columnName": "content", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "image", - "columnName": "image", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "read", - "columnName": "read", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "variable", - "columnName": "variable", - "affinity": "TEXT", - "notNull": false - } - ], - "primaryKey": { - "autoGenerate": false, - "columnNames": [ - "origin", - "link" - ] - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "rssReadRecords", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`record` TEXT NOT NULL, `read` INTEGER NOT NULL, PRIMARY KEY(`record`))", - "fields": [ - { - "fieldPath": "record", - "columnName": "record", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "read", - "columnName": "read", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "autoGenerate": false, - "columnNames": [ - "record" - ] - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "rssStars", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`origin` TEXT NOT NULL, `sort` TEXT NOT NULL, `title` TEXT NOT NULL, `starTime` INTEGER NOT NULL, `link` TEXT NOT NULL, `pubDate` TEXT, `description` TEXT, `content` TEXT, `image` TEXT, `variable` TEXT, PRIMARY KEY(`origin`, `link`))", - "fields": [ - { - "fieldPath": "origin", - "columnName": "origin", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "sort", - "columnName": "sort", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "title", - "columnName": "title", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "starTime", - "columnName": "starTime", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "link", - "columnName": "link", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "pubDate", - "columnName": "pubDate", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "description", - "columnName": "description", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "content", - "columnName": "content", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "image", - "columnName": "image", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "variable", - "columnName": "variable", - "affinity": "TEXT", - "notNull": false - } - ], - "primaryKey": { - "autoGenerate": false, - "columnNames": [ - "origin", - "link" - ] - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "txtTocRules", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER NOT NULL, `name` TEXT NOT NULL, `rule` TEXT NOT NULL, `example` TEXT, `serialNumber` INTEGER NOT NULL, `enable` INTEGER NOT NULL, PRIMARY KEY(`id`))", - "fields": [ - { - "fieldPath": "id", - "columnName": "id", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "rule", - "columnName": "rule", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "example", - "columnName": "example", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "serialNumber", - "columnName": "serialNumber", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "enable", - "columnName": "enable", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "autoGenerate": false, - "columnNames": [ - "id" - ] - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "readRecord", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`deviceId` TEXT NOT NULL, `bookName` TEXT NOT NULL, `readTime` INTEGER NOT NULL DEFAULT 0, `lastRead` INTEGER NOT NULL DEFAULT 0, PRIMARY KEY(`deviceId`, `bookName`))", - "fields": [ - { - "fieldPath": "deviceId", - "columnName": "deviceId", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookName", - "columnName": "bookName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "readTime", - "columnName": "readTime", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "lastRead", - "columnName": "lastRead", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - } - ], - "primaryKey": { - "autoGenerate": false, - "columnNames": [ - "deviceId", - "bookName" - ] - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "httpTTS", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER NOT NULL, `name` TEXT NOT NULL, `url` TEXT NOT NULL, `contentType` TEXT, `concurrentRate` TEXT DEFAULT '0', `loginUrl` TEXT, `loginUi` TEXT, `header` TEXT, `enabledCookieJar` INTEGER DEFAULT 0, `loginCheckJs` TEXT, `lastUpdateTime` INTEGER NOT NULL DEFAULT 0, PRIMARY KEY(`id`))", - "fields": [ - { - "fieldPath": "id", - "columnName": "id", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "url", - "columnName": "url", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "contentType", - "columnName": "contentType", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "concurrentRate", - "columnName": "concurrentRate", - "affinity": "TEXT", - "notNull": false, - "defaultValue": "'0'" - }, - { - "fieldPath": "loginUrl", - "columnName": "loginUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "loginUi", - "columnName": "loginUi", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "header", - "columnName": "header", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "enabledCookieJar", - "columnName": "enabledCookieJar", - "affinity": "INTEGER", - "notNull": false, - "defaultValue": "0" - }, - { - "fieldPath": "loginCheckJs", - "columnName": "loginCheckJs", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "lastUpdateTime", - "columnName": "lastUpdateTime", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - } - ], - "primaryKey": { - "autoGenerate": false, - "columnNames": [ - "id" - ] - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "caches", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`key` TEXT NOT NULL, `value` TEXT, `deadline` INTEGER NOT NULL, PRIMARY KEY(`key`))", - "fields": [ - { - "fieldPath": "key", - "columnName": "key", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "value", - "columnName": "value", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "deadline", - "columnName": "deadline", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "autoGenerate": false, - "columnNames": [ - "key" - ] - }, - "indices": [ - { - "name": "index_caches_key", - "unique": true, - "columnNames": [ - "key" - ], - "orders": [], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_caches_key` ON `${TABLE_NAME}` (`key`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "ruleSubs", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER NOT NULL, `name` TEXT NOT NULL, `url` TEXT NOT NULL, `type` INTEGER NOT NULL, `customOrder` INTEGER NOT NULL, `autoUpdate` INTEGER NOT NULL, `update` INTEGER NOT NULL, PRIMARY KEY(`id`))", - "fields": [ - { - "fieldPath": "id", - "columnName": "id", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "url", - "columnName": "url", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "type", - "columnName": "type", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "customOrder", - "columnName": "customOrder", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "autoUpdate", - "columnName": "autoUpdate", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "update", - "columnName": "update", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "autoGenerate": false, - "columnNames": [ - "id" - ] - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "dictRules", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`name` TEXT NOT NULL, `urlRule` TEXT NOT NULL, `showRule` TEXT NOT NULL, `enabled` INTEGER NOT NULL DEFAULT 1, `sortNumber` INTEGER NOT NULL DEFAULT 0, PRIMARY KEY(`name`))", - "fields": [ - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "urlRule", - "columnName": "urlRule", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "showRule", - "columnName": "showRule", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "enabled", - "columnName": "enabled", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "1" - }, - { - "fieldPath": "sortNumber", - "columnName": "sortNumber", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - } - ], - "primaryKey": { - "autoGenerate": false, - "columnNames": [ - "name" - ] - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "keyboardAssists", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`type` INTEGER NOT NULL DEFAULT 0, `key` TEXT NOT NULL DEFAULT '', `value` TEXT NOT NULL DEFAULT '', `serialNo` INTEGER NOT NULL DEFAULT 0, PRIMARY KEY(`type`, `key`))", - "fields": [ - { - "fieldPath": "type", - "columnName": "type", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "key", - "columnName": "key", - "affinity": "TEXT", - "notNull": true, - "defaultValue": "''" - }, - { - "fieldPath": "value", - "columnName": "value", - "affinity": "TEXT", - "notNull": true, - "defaultValue": "''" - }, - { - "fieldPath": "serialNo", - "columnName": "serialNo", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - } - ], - "primaryKey": { - "autoGenerate": false, - "columnNames": [ - "type", - "key" - ] - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "servers", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER NOT NULL, `name` TEXT NOT NULL, `type` TEXT NOT NULL, `config` TEXT, `sortNumber` INTEGER NOT NULL, PRIMARY KEY(`id`))", - "fields": [ - { - "fieldPath": "id", - "columnName": "id", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "type", - "columnName": "type", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "config", - "columnName": "config", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "sortNumber", - "columnName": "sortNumber", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "autoGenerate": false, - "columnNames": [ - "id" - ] - }, - "indices": [], - "foreignKeys": [] - } - ], - "views": [], - "setupQueries": [ - "CREATE TABLE IF NOT EXISTS room_master_table (id INTEGER PRIMARY KEY,identity_hash TEXT)", - "INSERT OR REPLACE INTO room_master_table (id,identity_hash) VALUES(42, '965c5f1d4c60d25b4b46efb17c575c85')" - ] - } -} \ No newline at end of file diff --git a/app/schemas/io.legado.app.data.AppDatabase/63.json b/app/schemas/io.legado.app.data.AppDatabase/63.json deleted file mode 100644 index af2d68a4a..000000000 --- a/app/schemas/io.legado.app.data.AppDatabase/63.json +++ /dev/null @@ -1,1838 +0,0 @@ -{ - "formatVersion": 1, - "database": { - "version": 63, - "identityHash": "5763792a4d08dc4cd7ebec9fb3215458", - "entities": [ - { - "tableName": "books", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`bookUrl` TEXT NOT NULL DEFAULT '', `tocUrl` TEXT NOT NULL DEFAULT '', `origin` TEXT NOT NULL DEFAULT 'loc_book', `originName` TEXT NOT NULL DEFAULT '', `name` TEXT NOT NULL DEFAULT '', `author` TEXT NOT NULL DEFAULT '', `kind` TEXT, `customTag` TEXT, `coverUrl` TEXT, `customCoverUrl` TEXT, `intro` TEXT, `customIntro` TEXT, `charset` TEXT, `type` INTEGER NOT NULL DEFAULT 0, `group` INTEGER NOT NULL DEFAULT 0, `latestChapterTitle` TEXT, `latestChapterTime` INTEGER NOT NULL DEFAULT 0, `lastCheckTime` INTEGER NOT NULL DEFAULT 0, `lastCheckCount` INTEGER NOT NULL DEFAULT 0, `totalChapterNum` INTEGER NOT NULL DEFAULT 0, `durChapterTitle` TEXT, `durChapterIndex` INTEGER NOT NULL DEFAULT 0, `durChapterPos` INTEGER NOT NULL DEFAULT 0, `durChapterTime` INTEGER NOT NULL DEFAULT 0, `wordCount` TEXT, `canUpdate` INTEGER NOT NULL DEFAULT 1, `order` INTEGER NOT NULL DEFAULT 0, `originOrder` INTEGER NOT NULL DEFAULT 0, `variable` TEXT, `readConfig` TEXT, PRIMARY KEY(`bookUrl`))", - "fields": [ - { - "fieldPath": "bookUrl", - "columnName": "bookUrl", - "affinity": "TEXT", - "notNull": true, - "defaultValue": "''" - }, - { - "fieldPath": "tocUrl", - "columnName": "tocUrl", - "affinity": "TEXT", - "notNull": true, - "defaultValue": "''" - }, - { - "fieldPath": "origin", - "columnName": "origin", - "affinity": "TEXT", - "notNull": true, - "defaultValue": "'loc_book'" - }, - { - "fieldPath": "originName", - "columnName": "originName", - "affinity": "TEXT", - "notNull": true, - "defaultValue": "''" - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true, - "defaultValue": "''" - }, - { - "fieldPath": "author", - "columnName": "author", - "affinity": "TEXT", - "notNull": true, - "defaultValue": "''" - }, - { - "fieldPath": "kind", - "columnName": "kind", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "customTag", - "columnName": "customTag", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "coverUrl", - "columnName": "coverUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "customCoverUrl", - "columnName": "customCoverUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "intro", - "columnName": "intro", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "customIntro", - "columnName": "customIntro", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "charset", - "columnName": "charset", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "type", - "columnName": "type", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "group", - "columnName": "group", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "latestChapterTitle", - "columnName": "latestChapterTitle", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "latestChapterTime", - "columnName": "latestChapterTime", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "lastCheckTime", - "columnName": "lastCheckTime", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "lastCheckCount", - "columnName": "lastCheckCount", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "totalChapterNum", - "columnName": "totalChapterNum", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "durChapterTitle", - "columnName": "durChapterTitle", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "durChapterIndex", - "columnName": "durChapterIndex", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "durChapterPos", - "columnName": "durChapterPos", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "durChapterTime", - "columnName": "durChapterTime", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "wordCount", - "columnName": "wordCount", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "canUpdate", - "columnName": "canUpdate", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "1" - }, - { - "fieldPath": "order", - "columnName": "order", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "originOrder", - "columnName": "originOrder", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "variable", - "columnName": "variable", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "readConfig", - "columnName": "readConfig", - "affinity": "TEXT", - "notNull": false - } - ], - "primaryKey": { - "autoGenerate": false, - "columnNames": [ - "bookUrl" - ] - }, - "indices": [ - { - "name": "index_books_name_author", - "unique": true, - "columnNames": [ - "name", - "author" - ], - "orders": [], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_books_name_author` ON `${TABLE_NAME}` (`name`, `author`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "book_groups", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`groupId` INTEGER NOT NULL, `groupName` TEXT NOT NULL, `cover` TEXT, `order` INTEGER NOT NULL, `enableRefresh` INTEGER NOT NULL DEFAULT 1, `show` INTEGER NOT NULL DEFAULT 1, `bookSort` INTEGER NOT NULL DEFAULT -1, PRIMARY KEY(`groupId`))", - "fields": [ - { - "fieldPath": "groupId", - "columnName": "groupId", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "groupName", - "columnName": "groupName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "cover", - "columnName": "cover", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "order", - "columnName": "order", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "enableRefresh", - "columnName": "enableRefresh", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "1" - }, - { - "fieldPath": "show", - "columnName": "show", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "1" - }, - { - "fieldPath": "bookSort", - "columnName": "bookSort", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "-1" - } - ], - "primaryKey": { - "autoGenerate": false, - "columnNames": [ - "groupId" - ] - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "book_sources", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`bookSourceUrl` TEXT NOT NULL, `bookSourceName` TEXT NOT NULL, `bookSourceGroup` TEXT, `bookSourceType` INTEGER NOT NULL, `bookUrlPattern` TEXT, `customOrder` INTEGER NOT NULL, `enabled` INTEGER NOT NULL, `enabledExplore` INTEGER NOT NULL, `enabledReview` INTEGER, `enabledCookieJar` INTEGER DEFAULT 0, `concurrentRate` TEXT, `header` TEXT, `loginUrl` TEXT, `loginUi` TEXT, `loginCheckJs` TEXT, `coverDecodeJs` TEXT, `bookSourceComment` TEXT, `variableComment` TEXT, `lastUpdateTime` INTEGER NOT NULL, `respondTime` INTEGER NOT NULL, `weight` INTEGER NOT NULL, `exploreUrl` TEXT, `ruleExplore` TEXT, `searchUrl` TEXT, `ruleSearch` TEXT, `ruleBookInfo` TEXT, `ruleToc` TEXT, `ruleContent` TEXT, `ruleReview` TEXT, PRIMARY KEY(`bookSourceUrl`))", - "fields": [ - { - "fieldPath": "bookSourceUrl", - "columnName": "bookSourceUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookSourceName", - "columnName": "bookSourceName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookSourceGroup", - "columnName": "bookSourceGroup", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "bookSourceType", - "columnName": "bookSourceType", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "bookUrlPattern", - "columnName": "bookUrlPattern", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "customOrder", - "columnName": "customOrder", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "enabled", - "columnName": "enabled", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "enabledExplore", - "columnName": "enabledExplore", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "enabledReview", - "columnName": "enabledReview", - "affinity": "INTEGER", - "notNull": false - }, - { - "fieldPath": "enabledCookieJar", - "columnName": "enabledCookieJar", - "affinity": "INTEGER", - "notNull": false, - "defaultValue": "0" - }, - { - "fieldPath": "concurrentRate", - "columnName": "concurrentRate", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "header", - "columnName": "header", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "loginUrl", - "columnName": "loginUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "loginUi", - "columnName": "loginUi", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "loginCheckJs", - "columnName": "loginCheckJs", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "coverDecodeJs", - "columnName": "coverDecodeJs", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "bookSourceComment", - "columnName": "bookSourceComment", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "variableComment", - "columnName": "variableComment", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "lastUpdateTime", - "columnName": "lastUpdateTime", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "respondTime", - "columnName": "respondTime", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "weight", - "columnName": "weight", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "exploreUrl", - "columnName": "exploreUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleExplore", - "columnName": "ruleExplore", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "searchUrl", - "columnName": "searchUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleSearch", - "columnName": "ruleSearch", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleBookInfo", - "columnName": "ruleBookInfo", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleToc", - "columnName": "ruleToc", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleContent", - "columnName": "ruleContent", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleReview", - "columnName": "ruleReview", - "affinity": "TEXT", - "notNull": false - } - ], - "primaryKey": { - "autoGenerate": false, - "columnNames": [ - "bookSourceUrl" - ] - }, - "indices": [ - { - "name": "index_book_sources_bookSourceUrl", - "unique": false, - "columnNames": [ - "bookSourceUrl" - ], - "orders": [], - "createSql": "CREATE INDEX IF NOT EXISTS `index_book_sources_bookSourceUrl` ON `${TABLE_NAME}` (`bookSourceUrl`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "chapters", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`url` TEXT NOT NULL, `title` TEXT NOT NULL, `isVolume` INTEGER NOT NULL, `baseUrl` TEXT NOT NULL, `bookUrl` TEXT NOT NULL, `index` INTEGER NOT NULL, `isVip` INTEGER NOT NULL, `isPay` INTEGER NOT NULL, `resourceUrl` TEXT, `tag` TEXT, `start` INTEGER, `end` INTEGER, `startFragmentId` TEXT, `endFragmentId` TEXT, `variable` TEXT, PRIMARY KEY(`url`, `bookUrl`), FOREIGN KEY(`bookUrl`) REFERENCES `books`(`bookUrl`) ON UPDATE NO ACTION ON DELETE CASCADE )", - "fields": [ - { - "fieldPath": "url", - "columnName": "url", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "title", - "columnName": "title", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "isVolume", - "columnName": "isVolume", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "baseUrl", - "columnName": "baseUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookUrl", - "columnName": "bookUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "index", - "columnName": "index", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "isVip", - "columnName": "isVip", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "isPay", - "columnName": "isPay", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "resourceUrl", - "columnName": "resourceUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "tag", - "columnName": "tag", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "start", - "columnName": "start", - "affinity": "INTEGER", - "notNull": false - }, - { - "fieldPath": "end", - "columnName": "end", - "affinity": "INTEGER", - "notNull": false - }, - { - "fieldPath": "startFragmentId", - "columnName": "startFragmentId", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "endFragmentId", - "columnName": "endFragmentId", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "variable", - "columnName": "variable", - "affinity": "TEXT", - "notNull": false - } - ], - "primaryKey": { - "autoGenerate": false, - "columnNames": [ - "url", - "bookUrl" - ] - }, - "indices": [ - { - "name": "index_chapters_bookUrl", - "unique": false, - "columnNames": [ - "bookUrl" - ], - "orders": [], - "createSql": "CREATE INDEX IF NOT EXISTS `index_chapters_bookUrl` ON `${TABLE_NAME}` (`bookUrl`)" - }, - { - "name": "index_chapters_bookUrl_index", - "unique": true, - "columnNames": [ - "bookUrl", - "index" - ], - "orders": [], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_chapters_bookUrl_index` ON `${TABLE_NAME}` (`bookUrl`, `index`)" - } - ], - "foreignKeys": [ - { - "table": "books", - "onDelete": "CASCADE", - "onUpdate": "NO ACTION", - "columns": [ - "bookUrl" - ], - "referencedColumns": [ - "bookUrl" - ] - } - ] - }, - { - "tableName": "replace_rules", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, `name` TEXT NOT NULL DEFAULT '', `group` TEXT, `pattern` TEXT NOT NULL DEFAULT '', `replacement` TEXT NOT NULL DEFAULT '', `scope` TEXT, `scopeTitle` INTEGER NOT NULL DEFAULT 0, `scopeContent` INTEGER NOT NULL DEFAULT 1, `isEnabled` INTEGER NOT NULL DEFAULT 1, `isRegex` INTEGER NOT NULL DEFAULT 1, `timeoutMillisecond` INTEGER NOT NULL DEFAULT 3000, `sortOrder` INTEGER NOT NULL DEFAULT 0)", - "fields": [ - { - "fieldPath": "id", - "columnName": "id", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true, - "defaultValue": "''" - }, - { - "fieldPath": "group", - "columnName": "group", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "pattern", - "columnName": "pattern", - "affinity": "TEXT", - "notNull": true, - "defaultValue": "''" - }, - { - "fieldPath": "replacement", - "columnName": "replacement", - "affinity": "TEXT", - "notNull": true, - "defaultValue": "''" - }, - { - "fieldPath": "scope", - "columnName": "scope", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "scopeTitle", - "columnName": "scopeTitle", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "scopeContent", - "columnName": "scopeContent", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "1" - }, - { - "fieldPath": "isEnabled", - "columnName": "isEnabled", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "1" - }, - { - "fieldPath": "isRegex", - "columnName": "isRegex", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "1" - }, - { - "fieldPath": "timeoutMillisecond", - "columnName": "timeoutMillisecond", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "3000" - }, - { - "fieldPath": "order", - "columnName": "sortOrder", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - } - ], - "primaryKey": { - "autoGenerate": true, - "columnNames": [ - "id" - ] - }, - "indices": [ - { - "name": "index_replace_rules_id", - "unique": false, - "columnNames": [ - "id" - ], - "orders": [], - "createSql": "CREATE INDEX IF NOT EXISTS `index_replace_rules_id` ON `${TABLE_NAME}` (`id`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "searchBooks", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`bookUrl` TEXT NOT NULL, `origin` TEXT NOT NULL, `originName` TEXT NOT NULL, `type` INTEGER NOT NULL, `name` TEXT NOT NULL, `author` TEXT NOT NULL, `kind` TEXT, `coverUrl` TEXT, `intro` TEXT, `wordCount` TEXT, `latestChapterTitle` TEXT, `tocUrl` TEXT NOT NULL, `time` INTEGER NOT NULL, `variable` TEXT, `originOrder` INTEGER NOT NULL, PRIMARY KEY(`bookUrl`), FOREIGN KEY(`origin`) REFERENCES `book_sources`(`bookSourceUrl`) ON UPDATE NO ACTION ON DELETE CASCADE )", - "fields": [ - { - "fieldPath": "bookUrl", - "columnName": "bookUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "origin", - "columnName": "origin", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "originName", - "columnName": "originName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "type", - "columnName": "type", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "author", - "columnName": "author", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "kind", - "columnName": "kind", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "coverUrl", - "columnName": "coverUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "intro", - "columnName": "intro", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "wordCount", - "columnName": "wordCount", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "latestChapterTitle", - "columnName": "latestChapterTitle", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "tocUrl", - "columnName": "tocUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "time", - "columnName": "time", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "variable", - "columnName": "variable", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "originOrder", - "columnName": "originOrder", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "autoGenerate": false, - "columnNames": [ - "bookUrl" - ] - }, - "indices": [ - { - "name": "index_searchBooks_bookUrl", - "unique": true, - "columnNames": [ - "bookUrl" - ], - "orders": [], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_searchBooks_bookUrl` ON `${TABLE_NAME}` (`bookUrl`)" - }, - { - "name": "index_searchBooks_origin", - "unique": false, - "columnNames": [ - "origin" - ], - "orders": [], - "createSql": "CREATE INDEX IF NOT EXISTS `index_searchBooks_origin` ON `${TABLE_NAME}` (`origin`)" - } - ], - "foreignKeys": [ - { - "table": "book_sources", - "onDelete": "CASCADE", - "onUpdate": "NO ACTION", - "columns": [ - "origin" - ], - "referencedColumns": [ - "bookSourceUrl" - ] - } - ] - }, - { - "tableName": "search_keywords", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`word` TEXT NOT NULL, `usage` INTEGER NOT NULL, `lastUseTime` INTEGER NOT NULL, PRIMARY KEY(`word`))", - "fields": [ - { - "fieldPath": "word", - "columnName": "word", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "usage", - "columnName": "usage", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "lastUseTime", - "columnName": "lastUseTime", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "autoGenerate": false, - "columnNames": [ - "word" - ] - }, - "indices": [ - { - "name": "index_search_keywords_word", - "unique": true, - "columnNames": [ - "word" - ], - "orders": [], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_search_keywords_word` ON `${TABLE_NAME}` (`word`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "cookies", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`url` TEXT NOT NULL, `cookie` TEXT NOT NULL, PRIMARY KEY(`url`))", - "fields": [ - { - "fieldPath": "url", - "columnName": "url", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "cookie", - "columnName": "cookie", - "affinity": "TEXT", - "notNull": true - } - ], - "primaryKey": { - "autoGenerate": false, - "columnNames": [ - "url" - ] - }, - "indices": [ - { - "name": "index_cookies_url", - "unique": true, - "columnNames": [ - "url" - ], - "orders": [], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_cookies_url` ON `${TABLE_NAME}` (`url`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "rssSources", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`sourceUrl` TEXT NOT NULL, `sourceName` TEXT NOT NULL, `sourceIcon` TEXT NOT NULL, `sourceGroup` TEXT, `sourceComment` TEXT, `enabled` INTEGER NOT NULL, `variableComment` TEXT, `enabledCookieJar` INTEGER DEFAULT 0, `concurrentRate` TEXT, `header` TEXT, `loginUrl` TEXT, `loginUi` TEXT, `loginCheckJs` TEXT, `coverDecodeJs` TEXT, `sortUrl` TEXT, `singleUrl` INTEGER NOT NULL, `articleStyle` INTEGER NOT NULL DEFAULT 0, `ruleArticles` TEXT, `ruleNextPage` TEXT, `ruleTitle` TEXT, `rulePubDate` TEXT, `ruleDescription` TEXT, `ruleImage` TEXT, `ruleLink` TEXT, `ruleContent` TEXT, `contentWhitelist` TEXT, `contentBlacklist` TEXT, `style` TEXT, `enableJs` INTEGER NOT NULL DEFAULT 1, `loadWithBaseUrl` INTEGER NOT NULL DEFAULT 1, `injectJs` TEXT, `lastUpdateTime` INTEGER NOT NULL DEFAULT 0, `customOrder` INTEGER NOT NULL DEFAULT 0, PRIMARY KEY(`sourceUrl`))", - "fields": [ - { - "fieldPath": "sourceUrl", - "columnName": "sourceUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "sourceName", - "columnName": "sourceName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "sourceIcon", - "columnName": "sourceIcon", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "sourceGroup", - "columnName": "sourceGroup", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "sourceComment", - "columnName": "sourceComment", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "enabled", - "columnName": "enabled", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "variableComment", - "columnName": "variableComment", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "enabledCookieJar", - "columnName": "enabledCookieJar", - "affinity": "INTEGER", - "notNull": false, - "defaultValue": "0" - }, - { - "fieldPath": "concurrentRate", - "columnName": "concurrentRate", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "header", - "columnName": "header", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "loginUrl", - "columnName": "loginUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "loginUi", - "columnName": "loginUi", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "loginCheckJs", - "columnName": "loginCheckJs", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "coverDecodeJs", - "columnName": "coverDecodeJs", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "sortUrl", - "columnName": "sortUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "singleUrl", - "columnName": "singleUrl", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "articleStyle", - "columnName": "articleStyle", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "ruleArticles", - "columnName": "ruleArticles", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleNextPage", - "columnName": "ruleNextPage", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleTitle", - "columnName": "ruleTitle", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "rulePubDate", - "columnName": "rulePubDate", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleDescription", - "columnName": "ruleDescription", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleImage", - "columnName": "ruleImage", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleLink", - "columnName": "ruleLink", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleContent", - "columnName": "ruleContent", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "contentWhitelist", - "columnName": "contentWhitelist", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "contentBlacklist", - "columnName": "contentBlacklist", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "style", - "columnName": "style", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "enableJs", - "columnName": "enableJs", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "1" - }, - { - "fieldPath": "loadWithBaseUrl", - "columnName": "loadWithBaseUrl", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "1" - }, - { - "fieldPath": "injectJs", - "columnName": "injectJs", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "lastUpdateTime", - "columnName": "lastUpdateTime", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "customOrder", - "columnName": "customOrder", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - } - ], - "primaryKey": { - "autoGenerate": false, - "columnNames": [ - "sourceUrl" - ] - }, - "indices": [ - { - "name": "index_rssSources_sourceUrl", - "unique": false, - "columnNames": [ - "sourceUrl" - ], - "orders": [], - "createSql": "CREATE INDEX IF NOT EXISTS `index_rssSources_sourceUrl` ON `${TABLE_NAME}` (`sourceUrl`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "bookmarks", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`time` INTEGER NOT NULL, `bookName` TEXT NOT NULL, `bookAuthor` TEXT NOT NULL, `chapterIndex` INTEGER NOT NULL, `chapterPos` INTEGER NOT NULL, `chapterName` TEXT NOT NULL, `bookText` TEXT NOT NULL, `content` TEXT NOT NULL, PRIMARY KEY(`time`))", - "fields": [ - { - "fieldPath": "time", - "columnName": "time", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "bookName", - "columnName": "bookName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookAuthor", - "columnName": "bookAuthor", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "chapterIndex", - "columnName": "chapterIndex", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "chapterPos", - "columnName": "chapterPos", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "chapterName", - "columnName": "chapterName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookText", - "columnName": "bookText", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "content", - "columnName": "content", - "affinity": "TEXT", - "notNull": true - } - ], - "primaryKey": { - "autoGenerate": false, - "columnNames": [ - "time" - ] - }, - "indices": [ - { - "name": "index_bookmarks_bookName_bookAuthor", - "unique": false, - "columnNames": [ - "bookName", - "bookAuthor" - ], - "orders": [], - "createSql": "CREATE INDEX IF NOT EXISTS `index_bookmarks_bookName_bookAuthor` ON `${TABLE_NAME}` (`bookName`, `bookAuthor`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "rssArticles", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`origin` TEXT NOT NULL, `sort` TEXT NOT NULL, `title` TEXT NOT NULL, `order` INTEGER NOT NULL, `link` TEXT NOT NULL, `pubDate` TEXT, `description` TEXT, `content` TEXT, `image` TEXT, `read` INTEGER NOT NULL, `variable` TEXT, PRIMARY KEY(`origin`, `link`))", - "fields": [ - { - "fieldPath": "origin", - "columnName": "origin", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "sort", - "columnName": "sort", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "title", - "columnName": "title", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "order", - "columnName": "order", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "link", - "columnName": "link", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "pubDate", - "columnName": "pubDate", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "description", - "columnName": "description", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "content", - "columnName": "content", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "image", - "columnName": "image", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "read", - "columnName": "read", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "variable", - "columnName": "variable", - "affinity": "TEXT", - "notNull": false - } - ], - "primaryKey": { - "autoGenerate": false, - "columnNames": [ - "origin", - "link" - ] - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "rssReadRecords", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`record` TEXT NOT NULL, `read` INTEGER NOT NULL, PRIMARY KEY(`record`))", - "fields": [ - { - "fieldPath": "record", - "columnName": "record", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "read", - "columnName": "read", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "autoGenerate": false, - "columnNames": [ - "record" - ] - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "rssStars", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`origin` TEXT NOT NULL, `sort` TEXT NOT NULL, `title` TEXT NOT NULL, `starTime` INTEGER NOT NULL, `link` TEXT NOT NULL, `pubDate` TEXT, `description` TEXT, `content` TEXT, `image` TEXT, `variable` TEXT, PRIMARY KEY(`origin`, `link`))", - "fields": [ - { - "fieldPath": "origin", - "columnName": "origin", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "sort", - "columnName": "sort", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "title", - "columnName": "title", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "starTime", - "columnName": "starTime", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "link", - "columnName": "link", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "pubDate", - "columnName": "pubDate", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "description", - "columnName": "description", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "content", - "columnName": "content", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "image", - "columnName": "image", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "variable", - "columnName": "variable", - "affinity": "TEXT", - "notNull": false - } - ], - "primaryKey": { - "autoGenerate": false, - "columnNames": [ - "origin", - "link" - ] - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "txtTocRules", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER NOT NULL, `name` TEXT NOT NULL, `rule` TEXT NOT NULL, `example` TEXT, `serialNumber` INTEGER NOT NULL, `enable` INTEGER NOT NULL, PRIMARY KEY(`id`))", - "fields": [ - { - "fieldPath": "id", - "columnName": "id", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "rule", - "columnName": "rule", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "example", - "columnName": "example", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "serialNumber", - "columnName": "serialNumber", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "enable", - "columnName": "enable", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "autoGenerate": false, - "columnNames": [ - "id" - ] - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "readRecord", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`deviceId` TEXT NOT NULL, `bookName` TEXT NOT NULL, `readTime` INTEGER NOT NULL DEFAULT 0, `lastRead` INTEGER NOT NULL DEFAULT 0, PRIMARY KEY(`deviceId`, `bookName`))", - "fields": [ - { - "fieldPath": "deviceId", - "columnName": "deviceId", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookName", - "columnName": "bookName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "readTime", - "columnName": "readTime", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "lastRead", - "columnName": "lastRead", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - } - ], - "primaryKey": { - "autoGenerate": false, - "columnNames": [ - "deviceId", - "bookName" - ] - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "httpTTS", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER NOT NULL, `name` TEXT NOT NULL, `url` TEXT NOT NULL, `contentType` TEXT, `concurrentRate` TEXT DEFAULT '0', `loginUrl` TEXT, `loginUi` TEXT, `header` TEXT, `enabledCookieJar` INTEGER DEFAULT 0, `loginCheckJs` TEXT, `lastUpdateTime` INTEGER NOT NULL DEFAULT 0, PRIMARY KEY(`id`))", - "fields": [ - { - "fieldPath": "id", - "columnName": "id", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "url", - "columnName": "url", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "contentType", - "columnName": "contentType", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "concurrentRate", - "columnName": "concurrentRate", - "affinity": "TEXT", - "notNull": false, - "defaultValue": "'0'" - }, - { - "fieldPath": "loginUrl", - "columnName": "loginUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "loginUi", - "columnName": "loginUi", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "header", - "columnName": "header", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "enabledCookieJar", - "columnName": "enabledCookieJar", - "affinity": "INTEGER", - "notNull": false, - "defaultValue": "0" - }, - { - "fieldPath": "loginCheckJs", - "columnName": "loginCheckJs", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "lastUpdateTime", - "columnName": "lastUpdateTime", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - } - ], - "primaryKey": { - "autoGenerate": false, - "columnNames": [ - "id" - ] - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "caches", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`key` TEXT NOT NULL, `value` TEXT, `deadline` INTEGER NOT NULL, PRIMARY KEY(`key`))", - "fields": [ - { - "fieldPath": "key", - "columnName": "key", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "value", - "columnName": "value", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "deadline", - "columnName": "deadline", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "autoGenerate": false, - "columnNames": [ - "key" - ] - }, - "indices": [ - { - "name": "index_caches_key", - "unique": true, - "columnNames": [ - "key" - ], - "orders": [], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_caches_key` ON `${TABLE_NAME}` (`key`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "ruleSubs", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER NOT NULL, `name` TEXT NOT NULL, `url` TEXT NOT NULL, `type` INTEGER NOT NULL, `customOrder` INTEGER NOT NULL, `autoUpdate` INTEGER NOT NULL, `update` INTEGER NOT NULL, PRIMARY KEY(`id`))", - "fields": [ - { - "fieldPath": "id", - "columnName": "id", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "url", - "columnName": "url", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "type", - "columnName": "type", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "customOrder", - "columnName": "customOrder", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "autoUpdate", - "columnName": "autoUpdate", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "update", - "columnName": "update", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "autoGenerate": false, - "columnNames": [ - "id" - ] - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "dictRules", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`name` TEXT NOT NULL, `urlRule` TEXT NOT NULL, `showRule` TEXT NOT NULL, `enabled` INTEGER NOT NULL DEFAULT 1, `sortNumber` INTEGER NOT NULL DEFAULT 0, PRIMARY KEY(`name`))", - "fields": [ - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "urlRule", - "columnName": "urlRule", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "showRule", - "columnName": "showRule", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "enabled", - "columnName": "enabled", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "1" - }, - { - "fieldPath": "sortNumber", - "columnName": "sortNumber", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - } - ], - "primaryKey": { - "autoGenerate": false, - "columnNames": [ - "name" - ] - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "keyboardAssists", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`type` INTEGER NOT NULL DEFAULT 0, `key` TEXT NOT NULL DEFAULT '', `value` TEXT NOT NULL DEFAULT '', `serialNo` INTEGER NOT NULL DEFAULT 0, PRIMARY KEY(`type`, `key`))", - "fields": [ - { - "fieldPath": "type", - "columnName": "type", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "key", - "columnName": "key", - "affinity": "TEXT", - "notNull": true, - "defaultValue": "''" - }, - { - "fieldPath": "value", - "columnName": "value", - "affinity": "TEXT", - "notNull": true, - "defaultValue": "''" - }, - { - "fieldPath": "serialNo", - "columnName": "serialNo", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - } - ], - "primaryKey": { - "autoGenerate": false, - "columnNames": [ - "type", - "key" - ] - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "servers", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER NOT NULL, `name` TEXT NOT NULL, `type` TEXT NOT NULL, `config` TEXT, `sortNumber` INTEGER NOT NULL, PRIMARY KEY(`id`))", - "fields": [ - { - "fieldPath": "id", - "columnName": "id", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "type", - "columnName": "type", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "config", - "columnName": "config", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "sortNumber", - "columnName": "sortNumber", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "autoGenerate": false, - "columnNames": [ - "id" - ] - }, - "indices": [], - "foreignKeys": [] - } - ], - "views": [], - "setupQueries": [ - "CREATE TABLE IF NOT EXISTS room_master_table (id INTEGER PRIMARY KEY,identity_hash TEXT)", - "INSERT OR REPLACE INTO room_master_table (id,identity_hash) VALUES(42, '5763792a4d08dc4cd7ebec9fb3215458')" - ] - } -} \ No newline at end of file diff --git a/app/schemas/io.legado.app.data.AppDatabase/64.json b/app/schemas/io.legado.app.data.AppDatabase/64.json deleted file mode 100644 index c2c729758..000000000 --- a/app/schemas/io.legado.app.data.AppDatabase/64.json +++ /dev/null @@ -1,1847 +0,0 @@ -{ - "formatVersion": 1, - "database": { - "version": 64, - "identityHash": "c9b9979578e5ae84c1b424b1aa590efa", - "entities": [ - { - "tableName": "books", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`bookUrl` TEXT NOT NULL DEFAULT '', `tocUrl` TEXT NOT NULL DEFAULT '', `origin` TEXT NOT NULL DEFAULT 'loc_book', `originName` TEXT NOT NULL DEFAULT '', `name` TEXT NOT NULL DEFAULT '', `author` TEXT NOT NULL DEFAULT '', `kind` TEXT, `customTag` TEXT, `coverUrl` TEXT, `customCoverUrl` TEXT, `intro` TEXT, `customIntro` TEXT, `charset` TEXT, `type` INTEGER NOT NULL DEFAULT 0, `group` INTEGER NOT NULL DEFAULT 0, `latestChapterTitle` TEXT, `latestChapterTime` INTEGER NOT NULL DEFAULT 0, `lastCheckTime` INTEGER NOT NULL DEFAULT 0, `lastCheckCount` INTEGER NOT NULL DEFAULT 0, `totalChapterNum` INTEGER NOT NULL DEFAULT 0, `durChapterTitle` TEXT, `durChapterIndex` INTEGER NOT NULL DEFAULT 0, `durChapterPos` INTEGER NOT NULL DEFAULT 0, `durChapterTime` INTEGER NOT NULL DEFAULT 0, `wordCount` TEXT, `canUpdate` INTEGER NOT NULL DEFAULT 1, `order` INTEGER NOT NULL DEFAULT 0, `originOrder` INTEGER NOT NULL DEFAULT 0, `variable` TEXT, `readConfig` TEXT, PRIMARY KEY(`bookUrl`))", - "fields": [ - { - "fieldPath": "bookUrl", - "columnName": "bookUrl", - "affinity": "TEXT", - "notNull": true, - "defaultValue": "''" - }, - { - "fieldPath": "tocUrl", - "columnName": "tocUrl", - "affinity": "TEXT", - "notNull": true, - "defaultValue": "''" - }, - { - "fieldPath": "origin", - "columnName": "origin", - "affinity": "TEXT", - "notNull": true, - "defaultValue": "'loc_book'" - }, - { - "fieldPath": "originName", - "columnName": "originName", - "affinity": "TEXT", - "notNull": true, - "defaultValue": "''" - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true, - "defaultValue": "''" - }, - { - "fieldPath": "author", - "columnName": "author", - "affinity": "TEXT", - "notNull": true, - "defaultValue": "''" - }, - { - "fieldPath": "kind", - "columnName": "kind", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "customTag", - "columnName": "customTag", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "coverUrl", - "columnName": "coverUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "customCoverUrl", - "columnName": "customCoverUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "intro", - "columnName": "intro", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "customIntro", - "columnName": "customIntro", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "charset", - "columnName": "charset", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "type", - "columnName": "type", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "group", - "columnName": "group", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "latestChapterTitle", - "columnName": "latestChapterTitle", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "latestChapterTime", - "columnName": "latestChapterTime", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "lastCheckTime", - "columnName": "lastCheckTime", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "lastCheckCount", - "columnName": "lastCheckCount", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "totalChapterNum", - "columnName": "totalChapterNum", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "durChapterTitle", - "columnName": "durChapterTitle", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "durChapterIndex", - "columnName": "durChapterIndex", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "durChapterPos", - "columnName": "durChapterPos", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "durChapterTime", - "columnName": "durChapterTime", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "wordCount", - "columnName": "wordCount", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "canUpdate", - "columnName": "canUpdate", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "1" - }, - { - "fieldPath": "order", - "columnName": "order", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "originOrder", - "columnName": "originOrder", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "variable", - "columnName": "variable", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "readConfig", - "columnName": "readConfig", - "affinity": "TEXT", - "notNull": false - } - ], - "primaryKey": { - "autoGenerate": false, - "columnNames": [ - "bookUrl" - ] - }, - "indices": [ - { - "name": "index_books_name_author", - "unique": true, - "columnNames": [ - "name", - "author" - ], - "orders": [], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_books_name_author` ON `${TABLE_NAME}` (`name`, `author`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "book_groups", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`groupId` INTEGER NOT NULL, `groupName` TEXT NOT NULL, `cover` TEXT, `order` INTEGER NOT NULL, `enableRefresh` INTEGER NOT NULL DEFAULT 1, `show` INTEGER NOT NULL DEFAULT 1, `bookSort` INTEGER NOT NULL DEFAULT -1, PRIMARY KEY(`groupId`))", - "fields": [ - { - "fieldPath": "groupId", - "columnName": "groupId", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "groupName", - "columnName": "groupName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "cover", - "columnName": "cover", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "order", - "columnName": "order", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "enableRefresh", - "columnName": "enableRefresh", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "1" - }, - { - "fieldPath": "show", - "columnName": "show", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "1" - }, - { - "fieldPath": "bookSort", - "columnName": "bookSort", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "-1" - } - ], - "primaryKey": { - "autoGenerate": false, - "columnNames": [ - "groupId" - ] - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "book_sources", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`bookSourceUrl` TEXT NOT NULL, `bookSourceName` TEXT NOT NULL, `bookSourceGroup` TEXT, `bookSourceType` INTEGER NOT NULL, `bookUrlPattern` TEXT, `customOrder` INTEGER NOT NULL DEFAULT 0, `enabled` INTEGER NOT NULL DEFAULT 1, `enabledExplore` INTEGER NOT NULL DEFAULT 1, `enabledReview` INTEGER, `enabledCookieJar` INTEGER DEFAULT 0, `concurrentRate` TEXT, `header` TEXT, `loginUrl` TEXT, `loginUi` TEXT, `loginCheckJs` TEXT, `coverDecodeJs` TEXT, `bookSourceComment` TEXT, `variableComment` TEXT, `lastUpdateTime` INTEGER NOT NULL, `respondTime` INTEGER NOT NULL, `weight` INTEGER NOT NULL, `exploreUrl` TEXT, `exploreScreen` TEXT, `ruleExplore` TEXT, `searchUrl` TEXT, `ruleSearch` TEXT, `ruleBookInfo` TEXT, `ruleToc` TEXT, `ruleContent` TEXT, `ruleReview` TEXT, PRIMARY KEY(`bookSourceUrl`))", - "fields": [ - { - "fieldPath": "bookSourceUrl", - "columnName": "bookSourceUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookSourceName", - "columnName": "bookSourceName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookSourceGroup", - "columnName": "bookSourceGroup", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "bookSourceType", - "columnName": "bookSourceType", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "bookUrlPattern", - "columnName": "bookUrlPattern", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "customOrder", - "columnName": "customOrder", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "enabled", - "columnName": "enabled", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "1" - }, - { - "fieldPath": "enabledExplore", - "columnName": "enabledExplore", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "1" - }, - { - "fieldPath": "enabledReview", - "columnName": "enabledReview", - "affinity": "INTEGER", - "notNull": false - }, - { - "fieldPath": "enabledCookieJar", - "columnName": "enabledCookieJar", - "affinity": "INTEGER", - "notNull": false, - "defaultValue": "0" - }, - { - "fieldPath": "concurrentRate", - "columnName": "concurrentRate", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "header", - "columnName": "header", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "loginUrl", - "columnName": "loginUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "loginUi", - "columnName": "loginUi", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "loginCheckJs", - "columnName": "loginCheckJs", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "coverDecodeJs", - "columnName": "coverDecodeJs", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "bookSourceComment", - "columnName": "bookSourceComment", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "variableComment", - "columnName": "variableComment", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "lastUpdateTime", - "columnName": "lastUpdateTime", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "respondTime", - "columnName": "respondTime", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "weight", - "columnName": "weight", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "exploreUrl", - "columnName": "exploreUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "exploreScreen", - "columnName": "exploreScreen", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleExplore", - "columnName": "ruleExplore", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "searchUrl", - "columnName": "searchUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleSearch", - "columnName": "ruleSearch", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleBookInfo", - "columnName": "ruleBookInfo", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleToc", - "columnName": "ruleToc", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleContent", - "columnName": "ruleContent", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleReview", - "columnName": "ruleReview", - "affinity": "TEXT", - "notNull": false - } - ], - "primaryKey": { - "autoGenerate": false, - "columnNames": [ - "bookSourceUrl" - ] - }, - "indices": [ - { - "name": "index_book_sources_bookSourceUrl", - "unique": false, - "columnNames": [ - "bookSourceUrl" - ], - "orders": [], - "createSql": "CREATE INDEX IF NOT EXISTS `index_book_sources_bookSourceUrl` ON `${TABLE_NAME}` (`bookSourceUrl`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "chapters", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`url` TEXT NOT NULL, `title` TEXT NOT NULL, `isVolume` INTEGER NOT NULL, `baseUrl` TEXT NOT NULL, `bookUrl` TEXT NOT NULL, `index` INTEGER NOT NULL, `isVip` INTEGER NOT NULL, `isPay` INTEGER NOT NULL, `resourceUrl` TEXT, `tag` TEXT, `start` INTEGER, `end` INTEGER, `startFragmentId` TEXT, `endFragmentId` TEXT, `variable` TEXT, PRIMARY KEY(`url`, `bookUrl`), FOREIGN KEY(`bookUrl`) REFERENCES `books`(`bookUrl`) ON UPDATE NO ACTION ON DELETE CASCADE )", - "fields": [ - { - "fieldPath": "url", - "columnName": "url", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "title", - "columnName": "title", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "isVolume", - "columnName": "isVolume", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "baseUrl", - "columnName": "baseUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookUrl", - "columnName": "bookUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "index", - "columnName": "index", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "isVip", - "columnName": "isVip", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "isPay", - "columnName": "isPay", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "resourceUrl", - "columnName": "resourceUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "tag", - "columnName": "tag", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "start", - "columnName": "start", - "affinity": "INTEGER", - "notNull": false - }, - { - "fieldPath": "end", - "columnName": "end", - "affinity": "INTEGER", - "notNull": false - }, - { - "fieldPath": "startFragmentId", - "columnName": "startFragmentId", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "endFragmentId", - "columnName": "endFragmentId", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "variable", - "columnName": "variable", - "affinity": "TEXT", - "notNull": false - } - ], - "primaryKey": { - "autoGenerate": false, - "columnNames": [ - "url", - "bookUrl" - ] - }, - "indices": [ - { - "name": "index_chapters_bookUrl", - "unique": false, - "columnNames": [ - "bookUrl" - ], - "orders": [], - "createSql": "CREATE INDEX IF NOT EXISTS `index_chapters_bookUrl` ON `${TABLE_NAME}` (`bookUrl`)" - }, - { - "name": "index_chapters_bookUrl_index", - "unique": true, - "columnNames": [ - "bookUrl", - "index" - ], - "orders": [], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_chapters_bookUrl_index` ON `${TABLE_NAME}` (`bookUrl`, `index`)" - } - ], - "foreignKeys": [ - { - "table": "books", - "onDelete": "CASCADE", - "onUpdate": "NO ACTION", - "columns": [ - "bookUrl" - ], - "referencedColumns": [ - "bookUrl" - ] - } - ] - }, - { - "tableName": "replace_rules", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, `name` TEXT NOT NULL DEFAULT '', `group` TEXT, `pattern` TEXT NOT NULL DEFAULT '', `replacement` TEXT NOT NULL DEFAULT '', `scope` TEXT, `scopeTitle` INTEGER NOT NULL DEFAULT 0, `scopeContent` INTEGER NOT NULL DEFAULT 1, `isEnabled` INTEGER NOT NULL DEFAULT 1, `isRegex` INTEGER NOT NULL DEFAULT 1, `timeoutMillisecond` INTEGER NOT NULL DEFAULT 3000, `sortOrder` INTEGER NOT NULL DEFAULT 0)", - "fields": [ - { - "fieldPath": "id", - "columnName": "id", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true, - "defaultValue": "''" - }, - { - "fieldPath": "group", - "columnName": "group", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "pattern", - "columnName": "pattern", - "affinity": "TEXT", - "notNull": true, - "defaultValue": "''" - }, - { - "fieldPath": "replacement", - "columnName": "replacement", - "affinity": "TEXT", - "notNull": true, - "defaultValue": "''" - }, - { - "fieldPath": "scope", - "columnName": "scope", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "scopeTitle", - "columnName": "scopeTitle", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "scopeContent", - "columnName": "scopeContent", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "1" - }, - { - "fieldPath": "isEnabled", - "columnName": "isEnabled", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "1" - }, - { - "fieldPath": "isRegex", - "columnName": "isRegex", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "1" - }, - { - "fieldPath": "timeoutMillisecond", - "columnName": "timeoutMillisecond", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "3000" - }, - { - "fieldPath": "order", - "columnName": "sortOrder", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - } - ], - "primaryKey": { - "autoGenerate": true, - "columnNames": [ - "id" - ] - }, - "indices": [ - { - "name": "index_replace_rules_id", - "unique": false, - "columnNames": [ - "id" - ], - "orders": [], - "createSql": "CREATE INDEX IF NOT EXISTS `index_replace_rules_id` ON `${TABLE_NAME}` (`id`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "searchBooks", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`bookUrl` TEXT NOT NULL, `origin` TEXT NOT NULL, `originName` TEXT NOT NULL, `type` INTEGER NOT NULL, `name` TEXT NOT NULL, `author` TEXT NOT NULL, `kind` TEXT, `coverUrl` TEXT, `intro` TEXT, `wordCount` TEXT, `latestChapterTitle` TEXT, `tocUrl` TEXT NOT NULL, `time` INTEGER NOT NULL, `variable` TEXT, `originOrder` INTEGER NOT NULL, PRIMARY KEY(`bookUrl`), FOREIGN KEY(`origin`) REFERENCES `book_sources`(`bookSourceUrl`) ON UPDATE NO ACTION ON DELETE CASCADE )", - "fields": [ - { - "fieldPath": "bookUrl", - "columnName": "bookUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "origin", - "columnName": "origin", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "originName", - "columnName": "originName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "type", - "columnName": "type", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "author", - "columnName": "author", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "kind", - "columnName": "kind", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "coverUrl", - "columnName": "coverUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "intro", - "columnName": "intro", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "wordCount", - "columnName": "wordCount", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "latestChapterTitle", - "columnName": "latestChapterTitle", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "tocUrl", - "columnName": "tocUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "time", - "columnName": "time", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "variable", - "columnName": "variable", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "originOrder", - "columnName": "originOrder", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "autoGenerate": false, - "columnNames": [ - "bookUrl" - ] - }, - "indices": [ - { - "name": "index_searchBooks_bookUrl", - "unique": true, - "columnNames": [ - "bookUrl" - ], - "orders": [], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_searchBooks_bookUrl` ON `${TABLE_NAME}` (`bookUrl`)" - }, - { - "name": "index_searchBooks_origin", - "unique": false, - "columnNames": [ - "origin" - ], - "orders": [], - "createSql": "CREATE INDEX IF NOT EXISTS `index_searchBooks_origin` ON `${TABLE_NAME}` (`origin`)" - } - ], - "foreignKeys": [ - { - "table": "book_sources", - "onDelete": "CASCADE", - "onUpdate": "NO ACTION", - "columns": [ - "origin" - ], - "referencedColumns": [ - "bookSourceUrl" - ] - } - ] - }, - { - "tableName": "search_keywords", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`word` TEXT NOT NULL, `usage` INTEGER NOT NULL, `lastUseTime` INTEGER NOT NULL, PRIMARY KEY(`word`))", - "fields": [ - { - "fieldPath": "word", - "columnName": "word", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "usage", - "columnName": "usage", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "lastUseTime", - "columnName": "lastUseTime", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "autoGenerate": false, - "columnNames": [ - "word" - ] - }, - "indices": [ - { - "name": "index_search_keywords_word", - "unique": true, - "columnNames": [ - "word" - ], - "orders": [], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_search_keywords_word` ON `${TABLE_NAME}` (`word`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "cookies", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`url` TEXT NOT NULL, `cookie` TEXT NOT NULL, PRIMARY KEY(`url`))", - "fields": [ - { - "fieldPath": "url", - "columnName": "url", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "cookie", - "columnName": "cookie", - "affinity": "TEXT", - "notNull": true - } - ], - "primaryKey": { - "autoGenerate": false, - "columnNames": [ - "url" - ] - }, - "indices": [ - { - "name": "index_cookies_url", - "unique": true, - "columnNames": [ - "url" - ], - "orders": [], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_cookies_url` ON `${TABLE_NAME}` (`url`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "rssSources", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`sourceUrl` TEXT NOT NULL, `sourceName` TEXT NOT NULL, `sourceIcon` TEXT NOT NULL, `sourceGroup` TEXT, `sourceComment` TEXT, `enabled` INTEGER NOT NULL, `variableComment` TEXT, `enabledCookieJar` INTEGER DEFAULT 0, `concurrentRate` TEXT, `header` TEXT, `loginUrl` TEXT, `loginUi` TEXT, `loginCheckJs` TEXT, `coverDecodeJs` TEXT, `sortUrl` TEXT, `singleUrl` INTEGER NOT NULL, `articleStyle` INTEGER NOT NULL DEFAULT 0, `ruleArticles` TEXT, `ruleNextPage` TEXT, `ruleTitle` TEXT, `rulePubDate` TEXT, `ruleDescription` TEXT, `ruleImage` TEXT, `ruleLink` TEXT, `ruleContent` TEXT, `contentWhitelist` TEXT, `contentBlacklist` TEXT, `style` TEXT, `enableJs` INTEGER NOT NULL DEFAULT 1, `loadWithBaseUrl` INTEGER NOT NULL DEFAULT 1, `injectJs` TEXT, `lastUpdateTime` INTEGER NOT NULL DEFAULT 0, `customOrder` INTEGER NOT NULL DEFAULT 0, PRIMARY KEY(`sourceUrl`))", - "fields": [ - { - "fieldPath": "sourceUrl", - "columnName": "sourceUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "sourceName", - "columnName": "sourceName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "sourceIcon", - "columnName": "sourceIcon", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "sourceGroup", - "columnName": "sourceGroup", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "sourceComment", - "columnName": "sourceComment", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "enabled", - "columnName": "enabled", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "variableComment", - "columnName": "variableComment", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "enabledCookieJar", - "columnName": "enabledCookieJar", - "affinity": "INTEGER", - "notNull": false, - "defaultValue": "0" - }, - { - "fieldPath": "concurrentRate", - "columnName": "concurrentRate", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "header", - "columnName": "header", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "loginUrl", - "columnName": "loginUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "loginUi", - "columnName": "loginUi", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "loginCheckJs", - "columnName": "loginCheckJs", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "coverDecodeJs", - "columnName": "coverDecodeJs", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "sortUrl", - "columnName": "sortUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "singleUrl", - "columnName": "singleUrl", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "articleStyle", - "columnName": "articleStyle", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "ruleArticles", - "columnName": "ruleArticles", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleNextPage", - "columnName": "ruleNextPage", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleTitle", - "columnName": "ruleTitle", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "rulePubDate", - "columnName": "rulePubDate", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleDescription", - "columnName": "ruleDescription", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleImage", - "columnName": "ruleImage", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleLink", - "columnName": "ruleLink", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleContent", - "columnName": "ruleContent", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "contentWhitelist", - "columnName": "contentWhitelist", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "contentBlacklist", - "columnName": "contentBlacklist", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "style", - "columnName": "style", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "enableJs", - "columnName": "enableJs", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "1" - }, - { - "fieldPath": "loadWithBaseUrl", - "columnName": "loadWithBaseUrl", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "1" - }, - { - "fieldPath": "injectJs", - "columnName": "injectJs", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "lastUpdateTime", - "columnName": "lastUpdateTime", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "customOrder", - "columnName": "customOrder", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - } - ], - "primaryKey": { - "autoGenerate": false, - "columnNames": [ - "sourceUrl" - ] - }, - "indices": [ - { - "name": "index_rssSources_sourceUrl", - "unique": false, - "columnNames": [ - "sourceUrl" - ], - "orders": [], - "createSql": "CREATE INDEX IF NOT EXISTS `index_rssSources_sourceUrl` ON `${TABLE_NAME}` (`sourceUrl`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "bookmarks", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`time` INTEGER NOT NULL, `bookName` TEXT NOT NULL, `bookAuthor` TEXT NOT NULL, `chapterIndex` INTEGER NOT NULL, `chapterPos` INTEGER NOT NULL, `chapterName` TEXT NOT NULL, `bookText` TEXT NOT NULL, `content` TEXT NOT NULL, PRIMARY KEY(`time`))", - "fields": [ - { - "fieldPath": "time", - "columnName": "time", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "bookName", - "columnName": "bookName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookAuthor", - "columnName": "bookAuthor", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "chapterIndex", - "columnName": "chapterIndex", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "chapterPos", - "columnName": "chapterPos", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "chapterName", - "columnName": "chapterName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookText", - "columnName": "bookText", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "content", - "columnName": "content", - "affinity": "TEXT", - "notNull": true - } - ], - "primaryKey": { - "autoGenerate": false, - "columnNames": [ - "time" - ] - }, - "indices": [ - { - "name": "index_bookmarks_bookName_bookAuthor", - "unique": false, - "columnNames": [ - "bookName", - "bookAuthor" - ], - "orders": [], - "createSql": "CREATE INDEX IF NOT EXISTS `index_bookmarks_bookName_bookAuthor` ON `${TABLE_NAME}` (`bookName`, `bookAuthor`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "rssArticles", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`origin` TEXT NOT NULL, `sort` TEXT NOT NULL, `title` TEXT NOT NULL, `order` INTEGER NOT NULL, `link` TEXT NOT NULL, `pubDate` TEXT, `description` TEXT, `content` TEXT, `image` TEXT, `read` INTEGER NOT NULL, `variable` TEXT, PRIMARY KEY(`origin`, `link`))", - "fields": [ - { - "fieldPath": "origin", - "columnName": "origin", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "sort", - "columnName": "sort", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "title", - "columnName": "title", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "order", - "columnName": "order", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "link", - "columnName": "link", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "pubDate", - "columnName": "pubDate", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "description", - "columnName": "description", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "content", - "columnName": "content", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "image", - "columnName": "image", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "read", - "columnName": "read", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "variable", - "columnName": "variable", - "affinity": "TEXT", - "notNull": false - } - ], - "primaryKey": { - "autoGenerate": false, - "columnNames": [ - "origin", - "link" - ] - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "rssReadRecords", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`record` TEXT NOT NULL, `read` INTEGER NOT NULL, PRIMARY KEY(`record`))", - "fields": [ - { - "fieldPath": "record", - "columnName": "record", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "read", - "columnName": "read", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "autoGenerate": false, - "columnNames": [ - "record" - ] - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "rssStars", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`origin` TEXT NOT NULL, `sort` TEXT NOT NULL, `title` TEXT NOT NULL, `starTime` INTEGER NOT NULL, `link` TEXT NOT NULL, `pubDate` TEXT, `description` TEXT, `content` TEXT, `image` TEXT, `variable` TEXT, PRIMARY KEY(`origin`, `link`))", - "fields": [ - { - "fieldPath": "origin", - "columnName": "origin", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "sort", - "columnName": "sort", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "title", - "columnName": "title", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "starTime", - "columnName": "starTime", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "link", - "columnName": "link", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "pubDate", - "columnName": "pubDate", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "description", - "columnName": "description", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "content", - "columnName": "content", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "image", - "columnName": "image", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "variable", - "columnName": "variable", - "affinity": "TEXT", - "notNull": false - } - ], - "primaryKey": { - "autoGenerate": false, - "columnNames": [ - "origin", - "link" - ] - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "txtTocRules", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER NOT NULL, `name` TEXT NOT NULL, `rule` TEXT NOT NULL, `example` TEXT, `serialNumber` INTEGER NOT NULL, `enable` INTEGER NOT NULL, PRIMARY KEY(`id`))", - "fields": [ - { - "fieldPath": "id", - "columnName": "id", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "rule", - "columnName": "rule", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "example", - "columnName": "example", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "serialNumber", - "columnName": "serialNumber", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "enable", - "columnName": "enable", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "autoGenerate": false, - "columnNames": [ - "id" - ] - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "readRecord", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`deviceId` TEXT NOT NULL, `bookName` TEXT NOT NULL, `readTime` INTEGER NOT NULL DEFAULT 0, `lastRead` INTEGER NOT NULL DEFAULT 0, PRIMARY KEY(`deviceId`, `bookName`))", - "fields": [ - { - "fieldPath": "deviceId", - "columnName": "deviceId", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookName", - "columnName": "bookName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "readTime", - "columnName": "readTime", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "lastRead", - "columnName": "lastRead", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - } - ], - "primaryKey": { - "autoGenerate": false, - "columnNames": [ - "deviceId", - "bookName" - ] - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "httpTTS", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER NOT NULL, `name` TEXT NOT NULL, `url` TEXT NOT NULL, `contentType` TEXT, `concurrentRate` TEXT DEFAULT '0', `loginUrl` TEXT, `loginUi` TEXT, `header` TEXT, `enabledCookieJar` INTEGER DEFAULT 0, `loginCheckJs` TEXT, `lastUpdateTime` INTEGER NOT NULL DEFAULT 0, PRIMARY KEY(`id`))", - "fields": [ - { - "fieldPath": "id", - "columnName": "id", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "url", - "columnName": "url", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "contentType", - "columnName": "contentType", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "concurrentRate", - "columnName": "concurrentRate", - "affinity": "TEXT", - "notNull": false, - "defaultValue": "'0'" - }, - { - "fieldPath": "loginUrl", - "columnName": "loginUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "loginUi", - "columnName": "loginUi", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "header", - "columnName": "header", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "enabledCookieJar", - "columnName": "enabledCookieJar", - "affinity": "INTEGER", - "notNull": false, - "defaultValue": "0" - }, - { - "fieldPath": "loginCheckJs", - "columnName": "loginCheckJs", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "lastUpdateTime", - "columnName": "lastUpdateTime", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - } - ], - "primaryKey": { - "autoGenerate": false, - "columnNames": [ - "id" - ] - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "caches", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`key` TEXT NOT NULL, `value` TEXT, `deadline` INTEGER NOT NULL, PRIMARY KEY(`key`))", - "fields": [ - { - "fieldPath": "key", - "columnName": "key", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "value", - "columnName": "value", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "deadline", - "columnName": "deadline", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "autoGenerate": false, - "columnNames": [ - "key" - ] - }, - "indices": [ - { - "name": "index_caches_key", - "unique": true, - "columnNames": [ - "key" - ], - "orders": [], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_caches_key` ON `${TABLE_NAME}` (`key`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "ruleSubs", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER NOT NULL, `name` TEXT NOT NULL, `url` TEXT NOT NULL, `type` INTEGER NOT NULL, `customOrder` INTEGER NOT NULL, `autoUpdate` INTEGER NOT NULL, `update` INTEGER NOT NULL, PRIMARY KEY(`id`))", - "fields": [ - { - "fieldPath": "id", - "columnName": "id", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "url", - "columnName": "url", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "type", - "columnName": "type", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "customOrder", - "columnName": "customOrder", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "autoUpdate", - "columnName": "autoUpdate", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "update", - "columnName": "update", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "autoGenerate": false, - "columnNames": [ - "id" - ] - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "dictRules", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`name` TEXT NOT NULL, `urlRule` TEXT NOT NULL, `showRule` TEXT NOT NULL, `enabled` INTEGER NOT NULL DEFAULT 1, `sortNumber` INTEGER NOT NULL DEFAULT 0, PRIMARY KEY(`name`))", - "fields": [ - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "urlRule", - "columnName": "urlRule", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "showRule", - "columnName": "showRule", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "enabled", - "columnName": "enabled", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "1" - }, - { - "fieldPath": "sortNumber", - "columnName": "sortNumber", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - } - ], - "primaryKey": { - "autoGenerate": false, - "columnNames": [ - "name" - ] - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "keyboardAssists", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`type` INTEGER NOT NULL DEFAULT 0, `key` TEXT NOT NULL DEFAULT '', `value` TEXT NOT NULL DEFAULT '', `serialNo` INTEGER NOT NULL DEFAULT 0, PRIMARY KEY(`type`, `key`))", - "fields": [ - { - "fieldPath": "type", - "columnName": "type", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "key", - "columnName": "key", - "affinity": "TEXT", - "notNull": true, - "defaultValue": "''" - }, - { - "fieldPath": "value", - "columnName": "value", - "affinity": "TEXT", - "notNull": true, - "defaultValue": "''" - }, - { - "fieldPath": "serialNo", - "columnName": "serialNo", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - } - ], - "primaryKey": { - "autoGenerate": false, - "columnNames": [ - "type", - "key" - ] - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "servers", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER NOT NULL, `name` TEXT NOT NULL, `type` TEXT NOT NULL, `config` TEXT, `sortNumber` INTEGER NOT NULL, PRIMARY KEY(`id`))", - "fields": [ - { - "fieldPath": "id", - "columnName": "id", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "type", - "columnName": "type", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "config", - "columnName": "config", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "sortNumber", - "columnName": "sortNumber", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "autoGenerate": false, - "columnNames": [ - "id" - ] - }, - "indices": [], - "foreignKeys": [] - } - ], - "views": [], - "setupQueries": [ - "CREATE TABLE IF NOT EXISTS room_master_table (id INTEGER PRIMARY KEY,identity_hash TEXT)", - "INSERT OR REPLACE INTO room_master_table (id,identity_hash) VALUES(42, 'c9b9979578e5ae84c1b424b1aa590efa')" - ] - } -} \ No newline at end of file diff --git a/app/schemas/io.legado.app.data.AppDatabase/65.json b/app/schemas/io.legado.app.data.AppDatabase/65.json deleted file mode 100644 index 6a2126ad6..000000000 --- a/app/schemas/io.legado.app.data.AppDatabase/65.json +++ /dev/null @@ -1,1853 +0,0 @@ -{ - "formatVersion": 1, - "database": { - "version": 65, - "identityHash": "ccfe4ad59c8caef014b1c754b69e6d05", - "entities": [ - { - "tableName": "books", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`bookUrl` TEXT NOT NULL DEFAULT '', `tocUrl` TEXT NOT NULL DEFAULT '', `origin` TEXT NOT NULL DEFAULT 'loc_book', `originName` TEXT NOT NULL DEFAULT '', `name` TEXT NOT NULL DEFAULT '', `author` TEXT NOT NULL DEFAULT '', `kind` TEXT, `customTag` TEXT, `coverUrl` TEXT, `customCoverUrl` TEXT, `intro` TEXT, `customIntro` TEXT, `charset` TEXT, `type` INTEGER NOT NULL DEFAULT 0, `group` INTEGER NOT NULL DEFAULT 0, `latestChapterTitle` TEXT, `latestChapterTime` INTEGER NOT NULL DEFAULT 0, `lastCheckTime` INTEGER NOT NULL DEFAULT 0, `lastCheckCount` INTEGER NOT NULL DEFAULT 0, `totalChapterNum` INTEGER NOT NULL DEFAULT 0, `durChapterTitle` TEXT, `durChapterIndex` INTEGER NOT NULL DEFAULT 0, `durChapterPos` INTEGER NOT NULL DEFAULT 0, `durChapterTime` INTEGER NOT NULL DEFAULT 0, `wordCount` TEXT, `canUpdate` INTEGER NOT NULL DEFAULT 1, `order` INTEGER NOT NULL DEFAULT 0, `originOrder` INTEGER NOT NULL DEFAULT 0, `variable` TEXT, `readConfig` TEXT, PRIMARY KEY(`bookUrl`))", - "fields": [ - { - "fieldPath": "bookUrl", - "columnName": "bookUrl", - "affinity": "TEXT", - "notNull": true, - "defaultValue": "''" - }, - { - "fieldPath": "tocUrl", - "columnName": "tocUrl", - "affinity": "TEXT", - "notNull": true, - "defaultValue": "''" - }, - { - "fieldPath": "origin", - "columnName": "origin", - "affinity": "TEXT", - "notNull": true, - "defaultValue": "'loc_book'" - }, - { - "fieldPath": "originName", - "columnName": "originName", - "affinity": "TEXT", - "notNull": true, - "defaultValue": "''" - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true, - "defaultValue": "''" - }, - { - "fieldPath": "author", - "columnName": "author", - "affinity": "TEXT", - "notNull": true, - "defaultValue": "''" - }, - { - "fieldPath": "kind", - "columnName": "kind", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "customTag", - "columnName": "customTag", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "coverUrl", - "columnName": "coverUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "customCoverUrl", - "columnName": "customCoverUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "intro", - "columnName": "intro", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "customIntro", - "columnName": "customIntro", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "charset", - "columnName": "charset", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "type", - "columnName": "type", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "group", - "columnName": "group", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "latestChapterTitle", - "columnName": "latestChapterTitle", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "latestChapterTime", - "columnName": "latestChapterTime", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "lastCheckTime", - "columnName": "lastCheckTime", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "lastCheckCount", - "columnName": "lastCheckCount", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "totalChapterNum", - "columnName": "totalChapterNum", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "durChapterTitle", - "columnName": "durChapterTitle", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "durChapterIndex", - "columnName": "durChapterIndex", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "durChapterPos", - "columnName": "durChapterPos", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "durChapterTime", - "columnName": "durChapterTime", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "wordCount", - "columnName": "wordCount", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "canUpdate", - "columnName": "canUpdate", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "1" - }, - { - "fieldPath": "order", - "columnName": "order", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "originOrder", - "columnName": "originOrder", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "variable", - "columnName": "variable", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "readConfig", - "columnName": "readConfig", - "affinity": "TEXT", - "notNull": false - } - ], - "primaryKey": { - "autoGenerate": false, - "columnNames": [ - "bookUrl" - ] - }, - "indices": [ - { - "name": "index_books_name_author", - "unique": true, - "columnNames": [ - "name", - "author" - ], - "orders": [], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_books_name_author` ON `${TABLE_NAME}` (`name`, `author`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "book_groups", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`groupId` INTEGER NOT NULL, `groupName` TEXT NOT NULL, `cover` TEXT, `order` INTEGER NOT NULL, `enableRefresh` INTEGER NOT NULL DEFAULT 1, `show` INTEGER NOT NULL DEFAULT 1, `bookSort` INTEGER NOT NULL DEFAULT -1, PRIMARY KEY(`groupId`))", - "fields": [ - { - "fieldPath": "groupId", - "columnName": "groupId", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "groupName", - "columnName": "groupName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "cover", - "columnName": "cover", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "order", - "columnName": "order", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "enableRefresh", - "columnName": "enableRefresh", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "1" - }, - { - "fieldPath": "show", - "columnName": "show", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "1" - }, - { - "fieldPath": "bookSort", - "columnName": "bookSort", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "-1" - } - ], - "primaryKey": { - "autoGenerate": false, - "columnNames": [ - "groupId" - ] - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "book_sources", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`bookSourceUrl` TEXT NOT NULL, `bookSourceName` TEXT NOT NULL, `bookSourceGroup` TEXT, `bookSourceType` INTEGER NOT NULL, `bookUrlPattern` TEXT, `customOrder` INTEGER NOT NULL DEFAULT 0, `enabled` INTEGER NOT NULL DEFAULT 1, `enabledExplore` INTEGER NOT NULL DEFAULT 1, `jsLib` TEXT, `enabledCookieJar` INTEGER DEFAULT 0, `concurrentRate` TEXT, `header` TEXT, `loginUrl` TEXT, `loginUi` TEXT, `loginCheckJs` TEXT, `coverDecodeJs` TEXT, `bookSourceComment` TEXT, `variableComment` TEXT, `lastUpdateTime` INTEGER NOT NULL, `respondTime` INTEGER NOT NULL, `weight` INTEGER NOT NULL, `exploreUrl` TEXT, `exploreScreen` TEXT, `ruleExplore` TEXT, `searchUrl` TEXT, `ruleSearch` TEXT, `ruleBookInfo` TEXT, `ruleToc` TEXT, `ruleContent` TEXT, `ruleReview` TEXT, PRIMARY KEY(`bookSourceUrl`))", - "fields": [ - { - "fieldPath": "bookSourceUrl", - "columnName": "bookSourceUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookSourceName", - "columnName": "bookSourceName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookSourceGroup", - "columnName": "bookSourceGroup", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "bookSourceType", - "columnName": "bookSourceType", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "bookUrlPattern", - "columnName": "bookUrlPattern", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "customOrder", - "columnName": "customOrder", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "enabled", - "columnName": "enabled", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "1" - }, - { - "fieldPath": "enabledExplore", - "columnName": "enabledExplore", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "1" - }, - { - "fieldPath": "jsLib", - "columnName": "jsLib", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "enabledCookieJar", - "columnName": "enabledCookieJar", - "affinity": "INTEGER", - "notNull": false, - "defaultValue": "0" - }, - { - "fieldPath": "concurrentRate", - "columnName": "concurrentRate", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "header", - "columnName": "header", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "loginUrl", - "columnName": "loginUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "loginUi", - "columnName": "loginUi", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "loginCheckJs", - "columnName": "loginCheckJs", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "coverDecodeJs", - "columnName": "coverDecodeJs", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "bookSourceComment", - "columnName": "bookSourceComment", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "variableComment", - "columnName": "variableComment", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "lastUpdateTime", - "columnName": "lastUpdateTime", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "respondTime", - "columnName": "respondTime", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "weight", - "columnName": "weight", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "exploreUrl", - "columnName": "exploreUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "exploreScreen", - "columnName": "exploreScreen", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleExplore", - "columnName": "ruleExplore", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "searchUrl", - "columnName": "searchUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleSearch", - "columnName": "ruleSearch", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleBookInfo", - "columnName": "ruleBookInfo", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleToc", - "columnName": "ruleToc", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleContent", - "columnName": "ruleContent", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleReview", - "columnName": "ruleReview", - "affinity": "TEXT", - "notNull": false - } - ], - "primaryKey": { - "autoGenerate": false, - "columnNames": [ - "bookSourceUrl" - ] - }, - "indices": [ - { - "name": "index_book_sources_bookSourceUrl", - "unique": false, - "columnNames": [ - "bookSourceUrl" - ], - "orders": [], - "createSql": "CREATE INDEX IF NOT EXISTS `index_book_sources_bookSourceUrl` ON `${TABLE_NAME}` (`bookSourceUrl`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "chapters", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`url` TEXT NOT NULL, `title` TEXT NOT NULL, `isVolume` INTEGER NOT NULL, `baseUrl` TEXT NOT NULL, `bookUrl` TEXT NOT NULL, `index` INTEGER NOT NULL, `isVip` INTEGER NOT NULL, `isPay` INTEGER NOT NULL, `resourceUrl` TEXT, `tag` TEXT, `start` INTEGER, `end` INTEGER, `startFragmentId` TEXT, `endFragmentId` TEXT, `variable` TEXT, PRIMARY KEY(`url`, `bookUrl`), FOREIGN KEY(`bookUrl`) REFERENCES `books`(`bookUrl`) ON UPDATE NO ACTION ON DELETE CASCADE )", - "fields": [ - { - "fieldPath": "url", - "columnName": "url", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "title", - "columnName": "title", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "isVolume", - "columnName": "isVolume", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "baseUrl", - "columnName": "baseUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookUrl", - "columnName": "bookUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "index", - "columnName": "index", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "isVip", - "columnName": "isVip", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "isPay", - "columnName": "isPay", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "resourceUrl", - "columnName": "resourceUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "tag", - "columnName": "tag", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "start", - "columnName": "start", - "affinity": "INTEGER", - "notNull": false - }, - { - "fieldPath": "end", - "columnName": "end", - "affinity": "INTEGER", - "notNull": false - }, - { - "fieldPath": "startFragmentId", - "columnName": "startFragmentId", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "endFragmentId", - "columnName": "endFragmentId", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "variable", - "columnName": "variable", - "affinity": "TEXT", - "notNull": false - } - ], - "primaryKey": { - "autoGenerate": false, - "columnNames": [ - "url", - "bookUrl" - ] - }, - "indices": [ - { - "name": "index_chapters_bookUrl", - "unique": false, - "columnNames": [ - "bookUrl" - ], - "orders": [], - "createSql": "CREATE INDEX IF NOT EXISTS `index_chapters_bookUrl` ON `${TABLE_NAME}` (`bookUrl`)" - }, - { - "name": "index_chapters_bookUrl_index", - "unique": true, - "columnNames": [ - "bookUrl", - "index" - ], - "orders": [], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_chapters_bookUrl_index` ON `${TABLE_NAME}` (`bookUrl`, `index`)" - } - ], - "foreignKeys": [ - { - "table": "books", - "onDelete": "CASCADE", - "onUpdate": "NO ACTION", - "columns": [ - "bookUrl" - ], - "referencedColumns": [ - "bookUrl" - ] - } - ] - }, - { - "tableName": "replace_rules", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, `name` TEXT NOT NULL DEFAULT '', `group` TEXT, `pattern` TEXT NOT NULL DEFAULT '', `replacement` TEXT NOT NULL DEFAULT '', `scope` TEXT, `scopeTitle` INTEGER NOT NULL DEFAULT 0, `scopeContent` INTEGER NOT NULL DEFAULT 1, `isEnabled` INTEGER NOT NULL DEFAULT 1, `isRegex` INTEGER NOT NULL DEFAULT 1, `timeoutMillisecond` INTEGER NOT NULL DEFAULT 3000, `sortOrder` INTEGER NOT NULL DEFAULT 0)", - "fields": [ - { - "fieldPath": "id", - "columnName": "id", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true, - "defaultValue": "''" - }, - { - "fieldPath": "group", - "columnName": "group", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "pattern", - "columnName": "pattern", - "affinity": "TEXT", - "notNull": true, - "defaultValue": "''" - }, - { - "fieldPath": "replacement", - "columnName": "replacement", - "affinity": "TEXT", - "notNull": true, - "defaultValue": "''" - }, - { - "fieldPath": "scope", - "columnName": "scope", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "scopeTitle", - "columnName": "scopeTitle", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "scopeContent", - "columnName": "scopeContent", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "1" - }, - { - "fieldPath": "isEnabled", - "columnName": "isEnabled", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "1" - }, - { - "fieldPath": "isRegex", - "columnName": "isRegex", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "1" - }, - { - "fieldPath": "timeoutMillisecond", - "columnName": "timeoutMillisecond", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "3000" - }, - { - "fieldPath": "order", - "columnName": "sortOrder", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - } - ], - "primaryKey": { - "autoGenerate": true, - "columnNames": [ - "id" - ] - }, - "indices": [ - { - "name": "index_replace_rules_id", - "unique": false, - "columnNames": [ - "id" - ], - "orders": [], - "createSql": "CREATE INDEX IF NOT EXISTS `index_replace_rules_id` ON `${TABLE_NAME}` (`id`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "searchBooks", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`bookUrl` TEXT NOT NULL, `origin` TEXT NOT NULL, `originName` TEXT NOT NULL, `type` INTEGER NOT NULL, `name` TEXT NOT NULL, `author` TEXT NOT NULL, `kind` TEXT, `coverUrl` TEXT, `intro` TEXT, `wordCount` TEXT, `latestChapterTitle` TEXT, `tocUrl` TEXT NOT NULL, `time` INTEGER NOT NULL, `variable` TEXT, `originOrder` INTEGER NOT NULL, PRIMARY KEY(`bookUrl`), FOREIGN KEY(`origin`) REFERENCES `book_sources`(`bookSourceUrl`) ON UPDATE NO ACTION ON DELETE CASCADE )", - "fields": [ - { - "fieldPath": "bookUrl", - "columnName": "bookUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "origin", - "columnName": "origin", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "originName", - "columnName": "originName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "type", - "columnName": "type", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "author", - "columnName": "author", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "kind", - "columnName": "kind", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "coverUrl", - "columnName": "coverUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "intro", - "columnName": "intro", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "wordCount", - "columnName": "wordCount", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "latestChapterTitle", - "columnName": "latestChapterTitle", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "tocUrl", - "columnName": "tocUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "time", - "columnName": "time", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "variable", - "columnName": "variable", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "originOrder", - "columnName": "originOrder", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "autoGenerate": false, - "columnNames": [ - "bookUrl" - ] - }, - "indices": [ - { - "name": "index_searchBooks_bookUrl", - "unique": true, - "columnNames": [ - "bookUrl" - ], - "orders": [], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_searchBooks_bookUrl` ON `${TABLE_NAME}` (`bookUrl`)" - }, - { - "name": "index_searchBooks_origin", - "unique": false, - "columnNames": [ - "origin" - ], - "orders": [], - "createSql": "CREATE INDEX IF NOT EXISTS `index_searchBooks_origin` ON `${TABLE_NAME}` (`origin`)" - } - ], - "foreignKeys": [ - { - "table": "book_sources", - "onDelete": "CASCADE", - "onUpdate": "NO ACTION", - "columns": [ - "origin" - ], - "referencedColumns": [ - "bookSourceUrl" - ] - } - ] - }, - { - "tableName": "search_keywords", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`word` TEXT NOT NULL, `usage` INTEGER NOT NULL, `lastUseTime` INTEGER NOT NULL, PRIMARY KEY(`word`))", - "fields": [ - { - "fieldPath": "word", - "columnName": "word", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "usage", - "columnName": "usage", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "lastUseTime", - "columnName": "lastUseTime", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "autoGenerate": false, - "columnNames": [ - "word" - ] - }, - "indices": [ - { - "name": "index_search_keywords_word", - "unique": true, - "columnNames": [ - "word" - ], - "orders": [], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_search_keywords_word` ON `${TABLE_NAME}` (`word`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "cookies", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`url` TEXT NOT NULL, `cookie` TEXT NOT NULL, PRIMARY KEY(`url`))", - "fields": [ - { - "fieldPath": "url", - "columnName": "url", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "cookie", - "columnName": "cookie", - "affinity": "TEXT", - "notNull": true - } - ], - "primaryKey": { - "autoGenerate": false, - "columnNames": [ - "url" - ] - }, - "indices": [ - { - "name": "index_cookies_url", - "unique": true, - "columnNames": [ - "url" - ], - "orders": [], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_cookies_url` ON `${TABLE_NAME}` (`url`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "rssSources", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`sourceUrl` TEXT NOT NULL, `sourceName` TEXT NOT NULL, `sourceIcon` TEXT NOT NULL, `sourceGroup` TEXT, `sourceComment` TEXT, `enabled` INTEGER NOT NULL, `variableComment` TEXT, `jsLib` TEXT, `enabledCookieJar` INTEGER DEFAULT 0, `concurrentRate` TEXT, `header` TEXT, `loginUrl` TEXT, `loginUi` TEXT, `loginCheckJs` TEXT, `coverDecodeJs` TEXT, `sortUrl` TEXT, `singleUrl` INTEGER NOT NULL, `articleStyle` INTEGER NOT NULL DEFAULT 0, `ruleArticles` TEXT, `ruleNextPage` TEXT, `ruleTitle` TEXT, `rulePubDate` TEXT, `ruleDescription` TEXT, `ruleImage` TEXT, `ruleLink` TEXT, `ruleContent` TEXT, `contentWhitelist` TEXT, `contentBlacklist` TEXT, `style` TEXT, `enableJs` INTEGER NOT NULL DEFAULT 1, `loadWithBaseUrl` INTEGER NOT NULL DEFAULT 1, `injectJs` TEXT, `lastUpdateTime` INTEGER NOT NULL DEFAULT 0, `customOrder` INTEGER NOT NULL DEFAULT 0, PRIMARY KEY(`sourceUrl`))", - "fields": [ - { - "fieldPath": "sourceUrl", - "columnName": "sourceUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "sourceName", - "columnName": "sourceName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "sourceIcon", - "columnName": "sourceIcon", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "sourceGroup", - "columnName": "sourceGroup", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "sourceComment", - "columnName": "sourceComment", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "enabled", - "columnName": "enabled", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "variableComment", - "columnName": "variableComment", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "jsLib", - "columnName": "jsLib", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "enabledCookieJar", - "columnName": "enabledCookieJar", - "affinity": "INTEGER", - "notNull": false, - "defaultValue": "0" - }, - { - "fieldPath": "concurrentRate", - "columnName": "concurrentRate", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "header", - "columnName": "header", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "loginUrl", - "columnName": "loginUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "loginUi", - "columnName": "loginUi", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "loginCheckJs", - "columnName": "loginCheckJs", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "coverDecodeJs", - "columnName": "coverDecodeJs", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "sortUrl", - "columnName": "sortUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "singleUrl", - "columnName": "singleUrl", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "articleStyle", - "columnName": "articleStyle", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "ruleArticles", - "columnName": "ruleArticles", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleNextPage", - "columnName": "ruleNextPage", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleTitle", - "columnName": "ruleTitle", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "rulePubDate", - "columnName": "rulePubDate", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleDescription", - "columnName": "ruleDescription", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleImage", - "columnName": "ruleImage", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleLink", - "columnName": "ruleLink", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleContent", - "columnName": "ruleContent", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "contentWhitelist", - "columnName": "contentWhitelist", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "contentBlacklist", - "columnName": "contentBlacklist", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "style", - "columnName": "style", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "enableJs", - "columnName": "enableJs", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "1" - }, - { - "fieldPath": "loadWithBaseUrl", - "columnName": "loadWithBaseUrl", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "1" - }, - { - "fieldPath": "injectJs", - "columnName": "injectJs", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "lastUpdateTime", - "columnName": "lastUpdateTime", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "customOrder", - "columnName": "customOrder", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - } - ], - "primaryKey": { - "autoGenerate": false, - "columnNames": [ - "sourceUrl" - ] - }, - "indices": [ - { - "name": "index_rssSources_sourceUrl", - "unique": false, - "columnNames": [ - "sourceUrl" - ], - "orders": [], - "createSql": "CREATE INDEX IF NOT EXISTS `index_rssSources_sourceUrl` ON `${TABLE_NAME}` (`sourceUrl`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "bookmarks", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`time` INTEGER NOT NULL, `bookName` TEXT NOT NULL, `bookAuthor` TEXT NOT NULL, `chapterIndex` INTEGER NOT NULL, `chapterPos` INTEGER NOT NULL, `chapterName` TEXT NOT NULL, `bookText` TEXT NOT NULL, `content` TEXT NOT NULL, PRIMARY KEY(`time`))", - "fields": [ - { - "fieldPath": "time", - "columnName": "time", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "bookName", - "columnName": "bookName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookAuthor", - "columnName": "bookAuthor", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "chapterIndex", - "columnName": "chapterIndex", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "chapterPos", - "columnName": "chapterPos", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "chapterName", - "columnName": "chapterName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookText", - "columnName": "bookText", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "content", - "columnName": "content", - "affinity": "TEXT", - "notNull": true - } - ], - "primaryKey": { - "autoGenerate": false, - "columnNames": [ - "time" - ] - }, - "indices": [ - { - "name": "index_bookmarks_bookName_bookAuthor", - "unique": false, - "columnNames": [ - "bookName", - "bookAuthor" - ], - "orders": [], - "createSql": "CREATE INDEX IF NOT EXISTS `index_bookmarks_bookName_bookAuthor` ON `${TABLE_NAME}` (`bookName`, `bookAuthor`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "rssArticles", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`origin` TEXT NOT NULL, `sort` TEXT NOT NULL, `title` TEXT NOT NULL, `order` INTEGER NOT NULL, `link` TEXT NOT NULL, `pubDate` TEXT, `description` TEXT, `content` TEXT, `image` TEXT, `read` INTEGER NOT NULL, `variable` TEXT, PRIMARY KEY(`origin`, `link`))", - "fields": [ - { - "fieldPath": "origin", - "columnName": "origin", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "sort", - "columnName": "sort", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "title", - "columnName": "title", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "order", - "columnName": "order", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "link", - "columnName": "link", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "pubDate", - "columnName": "pubDate", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "description", - "columnName": "description", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "content", - "columnName": "content", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "image", - "columnName": "image", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "read", - "columnName": "read", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "variable", - "columnName": "variable", - "affinity": "TEXT", - "notNull": false - } - ], - "primaryKey": { - "autoGenerate": false, - "columnNames": [ - "origin", - "link" - ] - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "rssReadRecords", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`record` TEXT NOT NULL, `read` INTEGER NOT NULL, PRIMARY KEY(`record`))", - "fields": [ - { - "fieldPath": "record", - "columnName": "record", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "read", - "columnName": "read", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "autoGenerate": false, - "columnNames": [ - "record" - ] - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "rssStars", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`origin` TEXT NOT NULL, `sort` TEXT NOT NULL, `title` TEXT NOT NULL, `starTime` INTEGER NOT NULL, `link` TEXT NOT NULL, `pubDate` TEXT, `description` TEXT, `content` TEXT, `image` TEXT, `variable` TEXT, PRIMARY KEY(`origin`, `link`))", - "fields": [ - { - "fieldPath": "origin", - "columnName": "origin", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "sort", - "columnName": "sort", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "title", - "columnName": "title", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "starTime", - "columnName": "starTime", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "link", - "columnName": "link", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "pubDate", - "columnName": "pubDate", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "description", - "columnName": "description", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "content", - "columnName": "content", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "image", - "columnName": "image", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "variable", - "columnName": "variable", - "affinity": "TEXT", - "notNull": false - } - ], - "primaryKey": { - "autoGenerate": false, - "columnNames": [ - "origin", - "link" - ] - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "txtTocRules", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER NOT NULL, `name` TEXT NOT NULL, `rule` TEXT NOT NULL, `example` TEXT, `serialNumber` INTEGER NOT NULL, `enable` INTEGER NOT NULL, PRIMARY KEY(`id`))", - "fields": [ - { - "fieldPath": "id", - "columnName": "id", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "rule", - "columnName": "rule", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "example", - "columnName": "example", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "serialNumber", - "columnName": "serialNumber", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "enable", - "columnName": "enable", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "autoGenerate": false, - "columnNames": [ - "id" - ] - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "readRecord", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`deviceId` TEXT NOT NULL, `bookName` TEXT NOT NULL, `readTime` INTEGER NOT NULL DEFAULT 0, `lastRead` INTEGER NOT NULL DEFAULT 0, PRIMARY KEY(`deviceId`, `bookName`))", - "fields": [ - { - "fieldPath": "deviceId", - "columnName": "deviceId", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookName", - "columnName": "bookName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "readTime", - "columnName": "readTime", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "lastRead", - "columnName": "lastRead", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - } - ], - "primaryKey": { - "autoGenerate": false, - "columnNames": [ - "deviceId", - "bookName" - ] - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "httpTTS", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER NOT NULL, `name` TEXT NOT NULL, `url` TEXT NOT NULL, `contentType` TEXT, `concurrentRate` TEXT DEFAULT '0', `loginUrl` TEXT, `loginUi` TEXT, `header` TEXT, `enabledCookieJar` INTEGER DEFAULT 0, `loginCheckJs` TEXT, `lastUpdateTime` INTEGER NOT NULL DEFAULT 0, PRIMARY KEY(`id`))", - "fields": [ - { - "fieldPath": "id", - "columnName": "id", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "url", - "columnName": "url", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "contentType", - "columnName": "contentType", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "concurrentRate", - "columnName": "concurrentRate", - "affinity": "TEXT", - "notNull": false, - "defaultValue": "'0'" - }, - { - "fieldPath": "loginUrl", - "columnName": "loginUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "loginUi", - "columnName": "loginUi", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "header", - "columnName": "header", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "enabledCookieJar", - "columnName": "enabledCookieJar", - "affinity": "INTEGER", - "notNull": false, - "defaultValue": "0" - }, - { - "fieldPath": "loginCheckJs", - "columnName": "loginCheckJs", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "lastUpdateTime", - "columnName": "lastUpdateTime", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - } - ], - "primaryKey": { - "autoGenerate": false, - "columnNames": [ - "id" - ] - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "caches", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`key` TEXT NOT NULL, `value` TEXT, `deadline` INTEGER NOT NULL, PRIMARY KEY(`key`))", - "fields": [ - { - "fieldPath": "key", - "columnName": "key", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "value", - "columnName": "value", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "deadline", - "columnName": "deadline", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "autoGenerate": false, - "columnNames": [ - "key" - ] - }, - "indices": [ - { - "name": "index_caches_key", - "unique": true, - "columnNames": [ - "key" - ], - "orders": [], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_caches_key` ON `${TABLE_NAME}` (`key`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "ruleSubs", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER NOT NULL, `name` TEXT NOT NULL, `url` TEXT NOT NULL, `type` INTEGER NOT NULL, `customOrder` INTEGER NOT NULL, `autoUpdate` INTEGER NOT NULL, `update` INTEGER NOT NULL, PRIMARY KEY(`id`))", - "fields": [ - { - "fieldPath": "id", - "columnName": "id", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "url", - "columnName": "url", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "type", - "columnName": "type", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "customOrder", - "columnName": "customOrder", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "autoUpdate", - "columnName": "autoUpdate", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "update", - "columnName": "update", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "autoGenerate": false, - "columnNames": [ - "id" - ] - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "dictRules", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`name` TEXT NOT NULL, `urlRule` TEXT NOT NULL, `showRule` TEXT NOT NULL, `enabled` INTEGER NOT NULL DEFAULT 1, `sortNumber` INTEGER NOT NULL DEFAULT 0, PRIMARY KEY(`name`))", - "fields": [ - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "urlRule", - "columnName": "urlRule", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "showRule", - "columnName": "showRule", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "enabled", - "columnName": "enabled", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "1" - }, - { - "fieldPath": "sortNumber", - "columnName": "sortNumber", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - } - ], - "primaryKey": { - "autoGenerate": false, - "columnNames": [ - "name" - ] - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "keyboardAssists", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`type` INTEGER NOT NULL DEFAULT 0, `key` TEXT NOT NULL DEFAULT '', `value` TEXT NOT NULL DEFAULT '', `serialNo` INTEGER NOT NULL DEFAULT 0, PRIMARY KEY(`type`, `key`))", - "fields": [ - { - "fieldPath": "type", - "columnName": "type", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "key", - "columnName": "key", - "affinity": "TEXT", - "notNull": true, - "defaultValue": "''" - }, - { - "fieldPath": "value", - "columnName": "value", - "affinity": "TEXT", - "notNull": true, - "defaultValue": "''" - }, - { - "fieldPath": "serialNo", - "columnName": "serialNo", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - } - ], - "primaryKey": { - "autoGenerate": false, - "columnNames": [ - "type", - "key" - ] - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "servers", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER NOT NULL, `name` TEXT NOT NULL, `type` TEXT NOT NULL, `config` TEXT, `sortNumber` INTEGER NOT NULL, PRIMARY KEY(`id`))", - "fields": [ - { - "fieldPath": "id", - "columnName": "id", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "type", - "columnName": "type", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "config", - "columnName": "config", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "sortNumber", - "columnName": "sortNumber", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "autoGenerate": false, - "columnNames": [ - "id" - ] - }, - "indices": [], - "foreignKeys": [] - } - ], - "views": [], - "setupQueries": [ - "CREATE TABLE IF NOT EXISTS room_master_table (id INTEGER PRIMARY KEY,identity_hash TEXT)", - "INSERT OR REPLACE INTO room_master_table (id,identity_hash) VALUES(42, 'ccfe4ad59c8caef014b1c754b69e6d05')" - ] - } -} \ No newline at end of file diff --git a/app/schemas/io.legado.app.data.AppDatabase/66.json b/app/schemas/io.legado.app.data.AppDatabase/66.json deleted file mode 100644 index ea7d6e9dc..000000000 --- a/app/schemas/io.legado.app.data.AppDatabase/66.json +++ /dev/null @@ -1,1859 +0,0 @@ -{ - "formatVersion": 1, - "database": { - "version": 66, - "identityHash": "ef55cf538ab8076ccaf821cbc7f6582f", - "entities": [ - { - "tableName": "books", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`bookUrl` TEXT NOT NULL DEFAULT '', `tocUrl` TEXT NOT NULL DEFAULT '', `origin` TEXT NOT NULL DEFAULT 'loc_book', `originName` TEXT NOT NULL DEFAULT '', `name` TEXT NOT NULL DEFAULT '', `author` TEXT NOT NULL DEFAULT '', `kind` TEXT, `customTag` TEXT, `coverUrl` TEXT, `customCoverUrl` TEXT, `intro` TEXT, `customIntro` TEXT, `charset` TEXT, `type` INTEGER NOT NULL DEFAULT 0, `group` INTEGER NOT NULL DEFAULT 0, `latestChapterTitle` TEXT, `latestChapterTime` INTEGER NOT NULL DEFAULT 0, `lastCheckTime` INTEGER NOT NULL DEFAULT 0, `lastCheckCount` INTEGER NOT NULL DEFAULT 0, `totalChapterNum` INTEGER NOT NULL DEFAULT 0, `durChapterTitle` TEXT, `durChapterIndex` INTEGER NOT NULL DEFAULT 0, `durChapterPos` INTEGER NOT NULL DEFAULT 0, `durChapterTime` INTEGER NOT NULL DEFAULT 0, `wordCount` TEXT, `canUpdate` INTEGER NOT NULL DEFAULT 1, `order` INTEGER NOT NULL DEFAULT 0, `originOrder` INTEGER NOT NULL DEFAULT 0, `variable` TEXT, `readConfig` TEXT, PRIMARY KEY(`bookUrl`))", - "fields": [ - { - "fieldPath": "bookUrl", - "columnName": "bookUrl", - "affinity": "TEXT", - "notNull": true, - "defaultValue": "''" - }, - { - "fieldPath": "tocUrl", - "columnName": "tocUrl", - "affinity": "TEXT", - "notNull": true, - "defaultValue": "''" - }, - { - "fieldPath": "origin", - "columnName": "origin", - "affinity": "TEXT", - "notNull": true, - "defaultValue": "'loc_book'" - }, - { - "fieldPath": "originName", - "columnName": "originName", - "affinity": "TEXT", - "notNull": true, - "defaultValue": "''" - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true, - "defaultValue": "''" - }, - { - "fieldPath": "author", - "columnName": "author", - "affinity": "TEXT", - "notNull": true, - "defaultValue": "''" - }, - { - "fieldPath": "kind", - "columnName": "kind", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "customTag", - "columnName": "customTag", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "coverUrl", - "columnName": "coverUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "customCoverUrl", - "columnName": "customCoverUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "intro", - "columnName": "intro", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "customIntro", - "columnName": "customIntro", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "charset", - "columnName": "charset", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "type", - "columnName": "type", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "group", - "columnName": "group", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "latestChapterTitle", - "columnName": "latestChapterTitle", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "latestChapterTime", - "columnName": "latestChapterTime", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "lastCheckTime", - "columnName": "lastCheckTime", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "lastCheckCount", - "columnName": "lastCheckCount", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "totalChapterNum", - "columnName": "totalChapterNum", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "durChapterTitle", - "columnName": "durChapterTitle", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "durChapterIndex", - "columnName": "durChapterIndex", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "durChapterPos", - "columnName": "durChapterPos", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "durChapterTime", - "columnName": "durChapterTime", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "wordCount", - "columnName": "wordCount", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "canUpdate", - "columnName": "canUpdate", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "1" - }, - { - "fieldPath": "order", - "columnName": "order", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "originOrder", - "columnName": "originOrder", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "variable", - "columnName": "variable", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "readConfig", - "columnName": "readConfig", - "affinity": "TEXT", - "notNull": false - } - ], - "primaryKey": { - "autoGenerate": false, - "columnNames": [ - "bookUrl" - ] - }, - "indices": [ - { - "name": "index_books_name_author", - "unique": true, - "columnNames": [ - "name", - "author" - ], - "orders": [], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_books_name_author` ON `${TABLE_NAME}` (`name`, `author`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "book_groups", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`groupId` INTEGER NOT NULL, `groupName` TEXT NOT NULL, `cover` TEXT, `order` INTEGER NOT NULL, `enableRefresh` INTEGER NOT NULL DEFAULT 1, `show` INTEGER NOT NULL DEFAULT 1, `bookSort` INTEGER NOT NULL DEFAULT -1, PRIMARY KEY(`groupId`))", - "fields": [ - { - "fieldPath": "groupId", - "columnName": "groupId", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "groupName", - "columnName": "groupName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "cover", - "columnName": "cover", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "order", - "columnName": "order", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "enableRefresh", - "columnName": "enableRefresh", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "1" - }, - { - "fieldPath": "show", - "columnName": "show", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "1" - }, - { - "fieldPath": "bookSort", - "columnName": "bookSort", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "-1" - } - ], - "primaryKey": { - "autoGenerate": false, - "columnNames": [ - "groupId" - ] - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "book_sources", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`bookSourceUrl` TEXT NOT NULL, `bookSourceName` TEXT NOT NULL, `bookSourceGroup` TEXT, `bookSourceType` INTEGER NOT NULL, `bookUrlPattern` TEXT, `customOrder` INTEGER NOT NULL DEFAULT 0, `enabled` INTEGER NOT NULL DEFAULT 1, `enabledExplore` INTEGER NOT NULL DEFAULT 1, `jsLib` TEXT, `enabledCookieJar` INTEGER DEFAULT 0, `concurrentRate` TEXT, `header` TEXT, `loginUrl` TEXT, `loginUi` TEXT, `loginCheckJs` TEXT, `coverDecodeJs` TEXT, `bookSourceComment` TEXT, `variableComment` TEXT, `lastUpdateTime` INTEGER NOT NULL, `respondTime` INTEGER NOT NULL, `weight` INTEGER NOT NULL, `exploreUrl` TEXT, `exploreScreen` TEXT, `ruleExplore` TEXT, `searchUrl` TEXT, `ruleSearch` TEXT, `ruleBookInfo` TEXT, `ruleToc` TEXT, `ruleContent` TEXT, `ruleReview` TEXT, PRIMARY KEY(`bookSourceUrl`))", - "fields": [ - { - "fieldPath": "bookSourceUrl", - "columnName": "bookSourceUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookSourceName", - "columnName": "bookSourceName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookSourceGroup", - "columnName": "bookSourceGroup", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "bookSourceType", - "columnName": "bookSourceType", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "bookUrlPattern", - "columnName": "bookUrlPattern", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "customOrder", - "columnName": "customOrder", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "enabled", - "columnName": "enabled", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "1" - }, - { - "fieldPath": "enabledExplore", - "columnName": "enabledExplore", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "1" - }, - { - "fieldPath": "jsLib", - "columnName": "jsLib", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "enabledCookieJar", - "columnName": "enabledCookieJar", - "affinity": "INTEGER", - "notNull": false, - "defaultValue": "0" - }, - { - "fieldPath": "concurrentRate", - "columnName": "concurrentRate", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "header", - "columnName": "header", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "loginUrl", - "columnName": "loginUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "loginUi", - "columnName": "loginUi", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "loginCheckJs", - "columnName": "loginCheckJs", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "coverDecodeJs", - "columnName": "coverDecodeJs", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "bookSourceComment", - "columnName": "bookSourceComment", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "variableComment", - "columnName": "variableComment", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "lastUpdateTime", - "columnName": "lastUpdateTime", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "respondTime", - "columnName": "respondTime", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "weight", - "columnName": "weight", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "exploreUrl", - "columnName": "exploreUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "exploreScreen", - "columnName": "exploreScreen", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleExplore", - "columnName": "ruleExplore", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "searchUrl", - "columnName": "searchUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleSearch", - "columnName": "ruleSearch", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleBookInfo", - "columnName": "ruleBookInfo", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleToc", - "columnName": "ruleToc", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleContent", - "columnName": "ruleContent", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleReview", - "columnName": "ruleReview", - "affinity": "TEXT", - "notNull": false - } - ], - "primaryKey": { - "autoGenerate": false, - "columnNames": [ - "bookSourceUrl" - ] - }, - "indices": [ - { - "name": "index_book_sources_bookSourceUrl", - "unique": false, - "columnNames": [ - "bookSourceUrl" - ], - "orders": [], - "createSql": "CREATE INDEX IF NOT EXISTS `index_book_sources_bookSourceUrl` ON `${TABLE_NAME}` (`bookSourceUrl`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "chapters", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`url` TEXT NOT NULL, `title` TEXT NOT NULL, `isVolume` INTEGER NOT NULL, `baseUrl` TEXT NOT NULL, `bookUrl` TEXT NOT NULL, `index` INTEGER NOT NULL, `isVip` INTEGER NOT NULL, `isPay` INTEGER NOT NULL, `resourceUrl` TEXT, `tag` TEXT, `start` INTEGER, `end` INTEGER, `startFragmentId` TEXT, `endFragmentId` TEXT, `variable` TEXT, PRIMARY KEY(`url`, `bookUrl`), FOREIGN KEY(`bookUrl`) REFERENCES `books`(`bookUrl`) ON UPDATE NO ACTION ON DELETE CASCADE )", - "fields": [ - { - "fieldPath": "url", - "columnName": "url", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "title", - "columnName": "title", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "isVolume", - "columnName": "isVolume", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "baseUrl", - "columnName": "baseUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookUrl", - "columnName": "bookUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "index", - "columnName": "index", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "isVip", - "columnName": "isVip", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "isPay", - "columnName": "isPay", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "resourceUrl", - "columnName": "resourceUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "tag", - "columnName": "tag", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "start", - "columnName": "start", - "affinity": "INTEGER", - "notNull": false - }, - { - "fieldPath": "end", - "columnName": "end", - "affinity": "INTEGER", - "notNull": false - }, - { - "fieldPath": "startFragmentId", - "columnName": "startFragmentId", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "endFragmentId", - "columnName": "endFragmentId", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "variable", - "columnName": "variable", - "affinity": "TEXT", - "notNull": false - } - ], - "primaryKey": { - "autoGenerate": false, - "columnNames": [ - "url", - "bookUrl" - ] - }, - "indices": [ - { - "name": "index_chapters_bookUrl", - "unique": false, - "columnNames": [ - "bookUrl" - ], - "orders": [], - "createSql": "CREATE INDEX IF NOT EXISTS `index_chapters_bookUrl` ON `${TABLE_NAME}` (`bookUrl`)" - }, - { - "name": "index_chapters_bookUrl_index", - "unique": true, - "columnNames": [ - "bookUrl", - "index" - ], - "orders": [], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_chapters_bookUrl_index` ON `${TABLE_NAME}` (`bookUrl`, `index`)" - } - ], - "foreignKeys": [ - { - "table": "books", - "onDelete": "CASCADE", - "onUpdate": "NO ACTION", - "columns": [ - "bookUrl" - ], - "referencedColumns": [ - "bookUrl" - ] - } - ] - }, - { - "tableName": "replace_rules", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, `name` TEXT NOT NULL DEFAULT '', `group` TEXT, `pattern` TEXT NOT NULL DEFAULT '', `replacement` TEXT NOT NULL DEFAULT '', `scope` TEXT, `scopeTitle` INTEGER NOT NULL DEFAULT 0, `scopeContent` INTEGER NOT NULL DEFAULT 1, `isEnabled` INTEGER NOT NULL DEFAULT 1, `isRegex` INTEGER NOT NULL DEFAULT 1, `timeoutMillisecond` INTEGER NOT NULL DEFAULT 3000, `sortOrder` INTEGER NOT NULL DEFAULT 0)", - "fields": [ - { - "fieldPath": "id", - "columnName": "id", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true, - "defaultValue": "''" - }, - { - "fieldPath": "group", - "columnName": "group", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "pattern", - "columnName": "pattern", - "affinity": "TEXT", - "notNull": true, - "defaultValue": "''" - }, - { - "fieldPath": "replacement", - "columnName": "replacement", - "affinity": "TEXT", - "notNull": true, - "defaultValue": "''" - }, - { - "fieldPath": "scope", - "columnName": "scope", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "scopeTitle", - "columnName": "scopeTitle", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "scopeContent", - "columnName": "scopeContent", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "1" - }, - { - "fieldPath": "isEnabled", - "columnName": "isEnabled", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "1" - }, - { - "fieldPath": "isRegex", - "columnName": "isRegex", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "1" - }, - { - "fieldPath": "timeoutMillisecond", - "columnName": "timeoutMillisecond", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "3000" - }, - { - "fieldPath": "order", - "columnName": "sortOrder", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - } - ], - "primaryKey": { - "autoGenerate": true, - "columnNames": [ - "id" - ] - }, - "indices": [ - { - "name": "index_replace_rules_id", - "unique": false, - "columnNames": [ - "id" - ], - "orders": [], - "createSql": "CREATE INDEX IF NOT EXISTS `index_replace_rules_id` ON `${TABLE_NAME}` (`id`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "searchBooks", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`bookUrl` TEXT NOT NULL, `origin` TEXT NOT NULL, `originName` TEXT NOT NULL, `type` INTEGER NOT NULL, `name` TEXT NOT NULL, `author` TEXT NOT NULL, `kind` TEXT, `coverUrl` TEXT, `intro` TEXT, `wordCount` TEXT, `latestChapterTitle` TEXT, `tocUrl` TEXT NOT NULL, `time` INTEGER NOT NULL, `variable` TEXT, `originOrder` INTEGER NOT NULL, PRIMARY KEY(`bookUrl`), FOREIGN KEY(`origin`) REFERENCES `book_sources`(`bookSourceUrl`) ON UPDATE NO ACTION ON DELETE CASCADE )", - "fields": [ - { - "fieldPath": "bookUrl", - "columnName": "bookUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "origin", - "columnName": "origin", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "originName", - "columnName": "originName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "type", - "columnName": "type", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "author", - "columnName": "author", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "kind", - "columnName": "kind", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "coverUrl", - "columnName": "coverUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "intro", - "columnName": "intro", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "wordCount", - "columnName": "wordCount", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "latestChapterTitle", - "columnName": "latestChapterTitle", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "tocUrl", - "columnName": "tocUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "time", - "columnName": "time", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "variable", - "columnName": "variable", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "originOrder", - "columnName": "originOrder", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "autoGenerate": false, - "columnNames": [ - "bookUrl" - ] - }, - "indices": [ - { - "name": "index_searchBooks_bookUrl", - "unique": true, - "columnNames": [ - "bookUrl" - ], - "orders": [], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_searchBooks_bookUrl` ON `${TABLE_NAME}` (`bookUrl`)" - }, - { - "name": "index_searchBooks_origin", - "unique": false, - "columnNames": [ - "origin" - ], - "orders": [], - "createSql": "CREATE INDEX IF NOT EXISTS `index_searchBooks_origin` ON `${TABLE_NAME}` (`origin`)" - } - ], - "foreignKeys": [ - { - "table": "book_sources", - "onDelete": "CASCADE", - "onUpdate": "NO ACTION", - "columns": [ - "origin" - ], - "referencedColumns": [ - "bookSourceUrl" - ] - } - ] - }, - { - "tableName": "search_keywords", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`word` TEXT NOT NULL, `usage` INTEGER NOT NULL, `lastUseTime` INTEGER NOT NULL, PRIMARY KEY(`word`))", - "fields": [ - { - "fieldPath": "word", - "columnName": "word", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "usage", - "columnName": "usage", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "lastUseTime", - "columnName": "lastUseTime", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "autoGenerate": false, - "columnNames": [ - "word" - ] - }, - "indices": [ - { - "name": "index_search_keywords_word", - "unique": true, - "columnNames": [ - "word" - ], - "orders": [], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_search_keywords_word` ON `${TABLE_NAME}` (`word`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "cookies", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`url` TEXT NOT NULL, `cookie` TEXT NOT NULL, PRIMARY KEY(`url`))", - "fields": [ - { - "fieldPath": "url", - "columnName": "url", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "cookie", - "columnName": "cookie", - "affinity": "TEXT", - "notNull": true - } - ], - "primaryKey": { - "autoGenerate": false, - "columnNames": [ - "url" - ] - }, - "indices": [ - { - "name": "index_cookies_url", - "unique": true, - "columnNames": [ - "url" - ], - "orders": [], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_cookies_url` ON `${TABLE_NAME}` (`url`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "rssSources", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`sourceUrl` TEXT NOT NULL, `sourceName` TEXT NOT NULL, `sourceIcon` TEXT NOT NULL, `sourceGroup` TEXT, `sourceComment` TEXT, `enabled` INTEGER NOT NULL, `variableComment` TEXT, `jsLib` TEXT, `enabledCookieJar` INTEGER DEFAULT 0, `concurrentRate` TEXT, `header` TEXT, `loginUrl` TEXT, `loginUi` TEXT, `loginCheckJs` TEXT, `coverDecodeJs` TEXT, `sortUrl` TEXT, `singleUrl` INTEGER NOT NULL, `articleStyle` INTEGER NOT NULL DEFAULT 0, `ruleArticles` TEXT, `ruleNextPage` TEXT, `ruleTitle` TEXT, `rulePubDate` TEXT, `ruleDescription` TEXT, `ruleImage` TEXT, `ruleLink` TEXT, `ruleContent` TEXT, `contentWhitelist` TEXT, `contentBlacklist` TEXT, `style` TEXT, `enableJs` INTEGER NOT NULL DEFAULT 1, `loadWithBaseUrl` INTEGER NOT NULL DEFAULT 1, `injectJs` TEXT, `lastUpdateTime` INTEGER NOT NULL DEFAULT 0, `customOrder` INTEGER NOT NULL DEFAULT 0, PRIMARY KEY(`sourceUrl`))", - "fields": [ - { - "fieldPath": "sourceUrl", - "columnName": "sourceUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "sourceName", - "columnName": "sourceName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "sourceIcon", - "columnName": "sourceIcon", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "sourceGroup", - "columnName": "sourceGroup", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "sourceComment", - "columnName": "sourceComment", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "enabled", - "columnName": "enabled", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "variableComment", - "columnName": "variableComment", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "jsLib", - "columnName": "jsLib", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "enabledCookieJar", - "columnName": "enabledCookieJar", - "affinity": "INTEGER", - "notNull": false, - "defaultValue": "0" - }, - { - "fieldPath": "concurrentRate", - "columnName": "concurrentRate", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "header", - "columnName": "header", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "loginUrl", - "columnName": "loginUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "loginUi", - "columnName": "loginUi", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "loginCheckJs", - "columnName": "loginCheckJs", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "coverDecodeJs", - "columnName": "coverDecodeJs", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "sortUrl", - "columnName": "sortUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "singleUrl", - "columnName": "singleUrl", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "articleStyle", - "columnName": "articleStyle", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "ruleArticles", - "columnName": "ruleArticles", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleNextPage", - "columnName": "ruleNextPage", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleTitle", - "columnName": "ruleTitle", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "rulePubDate", - "columnName": "rulePubDate", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleDescription", - "columnName": "ruleDescription", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleImage", - "columnName": "ruleImage", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleLink", - "columnName": "ruleLink", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleContent", - "columnName": "ruleContent", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "contentWhitelist", - "columnName": "contentWhitelist", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "contentBlacklist", - "columnName": "contentBlacklist", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "style", - "columnName": "style", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "enableJs", - "columnName": "enableJs", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "1" - }, - { - "fieldPath": "loadWithBaseUrl", - "columnName": "loadWithBaseUrl", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "1" - }, - { - "fieldPath": "injectJs", - "columnName": "injectJs", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "lastUpdateTime", - "columnName": "lastUpdateTime", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "customOrder", - "columnName": "customOrder", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - } - ], - "primaryKey": { - "autoGenerate": false, - "columnNames": [ - "sourceUrl" - ] - }, - "indices": [ - { - "name": "index_rssSources_sourceUrl", - "unique": false, - "columnNames": [ - "sourceUrl" - ], - "orders": [], - "createSql": "CREATE INDEX IF NOT EXISTS `index_rssSources_sourceUrl` ON `${TABLE_NAME}` (`sourceUrl`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "bookmarks", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`time` INTEGER NOT NULL, `bookName` TEXT NOT NULL, `bookAuthor` TEXT NOT NULL, `chapterIndex` INTEGER NOT NULL, `chapterPos` INTEGER NOT NULL, `chapterName` TEXT NOT NULL, `bookText` TEXT NOT NULL, `content` TEXT NOT NULL, PRIMARY KEY(`time`))", - "fields": [ - { - "fieldPath": "time", - "columnName": "time", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "bookName", - "columnName": "bookName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookAuthor", - "columnName": "bookAuthor", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "chapterIndex", - "columnName": "chapterIndex", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "chapterPos", - "columnName": "chapterPos", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "chapterName", - "columnName": "chapterName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookText", - "columnName": "bookText", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "content", - "columnName": "content", - "affinity": "TEXT", - "notNull": true - } - ], - "primaryKey": { - "autoGenerate": false, - "columnNames": [ - "time" - ] - }, - "indices": [ - { - "name": "index_bookmarks_bookName_bookAuthor", - "unique": false, - "columnNames": [ - "bookName", - "bookAuthor" - ], - "orders": [], - "createSql": "CREATE INDEX IF NOT EXISTS `index_bookmarks_bookName_bookAuthor` ON `${TABLE_NAME}` (`bookName`, `bookAuthor`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "rssArticles", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`origin` TEXT NOT NULL, `sort` TEXT NOT NULL, `title` TEXT NOT NULL, `order` INTEGER NOT NULL, `link` TEXT NOT NULL, `pubDate` TEXT, `description` TEXT, `content` TEXT, `image` TEXT, `read` INTEGER NOT NULL, `variable` TEXT, PRIMARY KEY(`origin`, `link`))", - "fields": [ - { - "fieldPath": "origin", - "columnName": "origin", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "sort", - "columnName": "sort", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "title", - "columnName": "title", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "order", - "columnName": "order", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "link", - "columnName": "link", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "pubDate", - "columnName": "pubDate", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "description", - "columnName": "description", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "content", - "columnName": "content", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "image", - "columnName": "image", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "read", - "columnName": "read", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "variable", - "columnName": "variable", - "affinity": "TEXT", - "notNull": false - } - ], - "primaryKey": { - "autoGenerate": false, - "columnNames": [ - "origin", - "link" - ] - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "rssReadRecords", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`record` TEXT NOT NULL, `read` INTEGER NOT NULL, PRIMARY KEY(`record`))", - "fields": [ - { - "fieldPath": "record", - "columnName": "record", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "read", - "columnName": "read", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "autoGenerate": false, - "columnNames": [ - "record" - ] - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "rssStars", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`origin` TEXT NOT NULL, `sort` TEXT NOT NULL, `title` TEXT NOT NULL, `starTime` INTEGER NOT NULL, `link` TEXT NOT NULL, `pubDate` TEXT, `description` TEXT, `content` TEXT, `image` TEXT, `variable` TEXT, PRIMARY KEY(`origin`, `link`))", - "fields": [ - { - "fieldPath": "origin", - "columnName": "origin", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "sort", - "columnName": "sort", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "title", - "columnName": "title", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "starTime", - "columnName": "starTime", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "link", - "columnName": "link", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "pubDate", - "columnName": "pubDate", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "description", - "columnName": "description", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "content", - "columnName": "content", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "image", - "columnName": "image", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "variable", - "columnName": "variable", - "affinity": "TEXT", - "notNull": false - } - ], - "primaryKey": { - "autoGenerate": false, - "columnNames": [ - "origin", - "link" - ] - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "txtTocRules", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER NOT NULL, `name` TEXT NOT NULL, `rule` TEXT NOT NULL, `example` TEXT, `serialNumber` INTEGER NOT NULL, `enable` INTEGER NOT NULL, PRIMARY KEY(`id`))", - "fields": [ - { - "fieldPath": "id", - "columnName": "id", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "rule", - "columnName": "rule", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "example", - "columnName": "example", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "serialNumber", - "columnName": "serialNumber", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "enable", - "columnName": "enable", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "autoGenerate": false, - "columnNames": [ - "id" - ] - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "readRecord", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`deviceId` TEXT NOT NULL, `bookName` TEXT NOT NULL, `readTime` INTEGER NOT NULL DEFAULT 0, `lastRead` INTEGER NOT NULL DEFAULT 0, PRIMARY KEY(`deviceId`, `bookName`))", - "fields": [ - { - "fieldPath": "deviceId", - "columnName": "deviceId", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookName", - "columnName": "bookName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "readTime", - "columnName": "readTime", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "lastRead", - "columnName": "lastRead", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - } - ], - "primaryKey": { - "autoGenerate": false, - "columnNames": [ - "deviceId", - "bookName" - ] - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "httpTTS", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER NOT NULL, `name` TEXT NOT NULL, `url` TEXT NOT NULL, `contentType` TEXT, `concurrentRate` TEXT DEFAULT '0', `loginUrl` TEXT, `loginUi` TEXT, `header` TEXT, `jsLib` TEXT, `enabledCookieJar` INTEGER DEFAULT 0, `loginCheckJs` TEXT, `lastUpdateTime` INTEGER NOT NULL DEFAULT 0, PRIMARY KEY(`id`))", - "fields": [ - { - "fieldPath": "id", - "columnName": "id", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "url", - "columnName": "url", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "contentType", - "columnName": "contentType", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "concurrentRate", - "columnName": "concurrentRate", - "affinity": "TEXT", - "notNull": false, - "defaultValue": "'0'" - }, - { - "fieldPath": "loginUrl", - "columnName": "loginUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "loginUi", - "columnName": "loginUi", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "header", - "columnName": "header", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "jsLib", - "columnName": "jsLib", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "enabledCookieJar", - "columnName": "enabledCookieJar", - "affinity": "INTEGER", - "notNull": false, - "defaultValue": "0" - }, - { - "fieldPath": "loginCheckJs", - "columnName": "loginCheckJs", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "lastUpdateTime", - "columnName": "lastUpdateTime", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - } - ], - "primaryKey": { - "autoGenerate": false, - "columnNames": [ - "id" - ] - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "caches", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`key` TEXT NOT NULL, `value` TEXT, `deadline` INTEGER NOT NULL, PRIMARY KEY(`key`))", - "fields": [ - { - "fieldPath": "key", - "columnName": "key", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "value", - "columnName": "value", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "deadline", - "columnName": "deadline", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "autoGenerate": false, - "columnNames": [ - "key" - ] - }, - "indices": [ - { - "name": "index_caches_key", - "unique": true, - "columnNames": [ - "key" - ], - "orders": [], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_caches_key` ON `${TABLE_NAME}` (`key`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "ruleSubs", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER NOT NULL, `name` TEXT NOT NULL, `url` TEXT NOT NULL, `type` INTEGER NOT NULL, `customOrder` INTEGER NOT NULL, `autoUpdate` INTEGER NOT NULL, `update` INTEGER NOT NULL, PRIMARY KEY(`id`))", - "fields": [ - { - "fieldPath": "id", - "columnName": "id", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "url", - "columnName": "url", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "type", - "columnName": "type", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "customOrder", - "columnName": "customOrder", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "autoUpdate", - "columnName": "autoUpdate", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "update", - "columnName": "update", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "autoGenerate": false, - "columnNames": [ - "id" - ] - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "dictRules", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`name` TEXT NOT NULL, `urlRule` TEXT NOT NULL, `showRule` TEXT NOT NULL, `enabled` INTEGER NOT NULL DEFAULT 1, `sortNumber` INTEGER NOT NULL DEFAULT 0, PRIMARY KEY(`name`))", - "fields": [ - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "urlRule", - "columnName": "urlRule", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "showRule", - "columnName": "showRule", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "enabled", - "columnName": "enabled", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "1" - }, - { - "fieldPath": "sortNumber", - "columnName": "sortNumber", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - } - ], - "primaryKey": { - "autoGenerate": false, - "columnNames": [ - "name" - ] - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "keyboardAssists", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`type` INTEGER NOT NULL DEFAULT 0, `key` TEXT NOT NULL DEFAULT '', `value` TEXT NOT NULL DEFAULT '', `serialNo` INTEGER NOT NULL DEFAULT 0, PRIMARY KEY(`type`, `key`))", - "fields": [ - { - "fieldPath": "type", - "columnName": "type", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "key", - "columnName": "key", - "affinity": "TEXT", - "notNull": true, - "defaultValue": "''" - }, - { - "fieldPath": "value", - "columnName": "value", - "affinity": "TEXT", - "notNull": true, - "defaultValue": "''" - }, - { - "fieldPath": "serialNo", - "columnName": "serialNo", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - } - ], - "primaryKey": { - "autoGenerate": false, - "columnNames": [ - "type", - "key" - ] - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "servers", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER NOT NULL, `name` TEXT NOT NULL, `type` TEXT NOT NULL, `config` TEXT, `sortNumber` INTEGER NOT NULL, PRIMARY KEY(`id`))", - "fields": [ - { - "fieldPath": "id", - "columnName": "id", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "type", - "columnName": "type", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "config", - "columnName": "config", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "sortNumber", - "columnName": "sortNumber", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "autoGenerate": false, - "columnNames": [ - "id" - ] - }, - "indices": [], - "foreignKeys": [] - } - ], - "views": [], - "setupQueries": [ - "CREATE TABLE IF NOT EXISTS room_master_table (id INTEGER PRIMARY KEY,identity_hash TEXT)", - "INSERT OR REPLACE INTO room_master_table (id,identity_hash) VALUES(42, 'ef55cf538ab8076ccaf821cbc7f6582f')" - ] - } -} \ No newline at end of file diff --git a/app/schemas/io.legado.app.data.AppDatabase/67.json b/app/schemas/io.legado.app.data.AppDatabase/67.json deleted file mode 100644 index 5da3ea902..000000000 --- a/app/schemas/io.legado.app.data.AppDatabase/67.json +++ /dev/null @@ -1,1879 +0,0 @@ -{ - "formatVersion": 1, - "database": { - "version": 67, - "identityHash": "48855e5272b008e4c6b202a41654b575", - "entities": [ - { - "tableName": "books", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`bookUrl` TEXT NOT NULL DEFAULT '', `tocUrl` TEXT NOT NULL DEFAULT '', `origin` TEXT NOT NULL DEFAULT 'loc_book', `originName` TEXT NOT NULL DEFAULT '', `name` TEXT NOT NULL DEFAULT '', `author` TEXT NOT NULL DEFAULT '', `kind` TEXT, `customTag` TEXT, `coverUrl` TEXT, `customCoverUrl` TEXT, `intro` TEXT, `customIntro` TEXT, `charset` TEXT, `type` INTEGER NOT NULL DEFAULT 0, `group` INTEGER NOT NULL DEFAULT 0, `latestChapterTitle` TEXT, `latestChapterTime` INTEGER NOT NULL DEFAULT 0, `lastCheckTime` INTEGER NOT NULL DEFAULT 0, `lastCheckCount` INTEGER NOT NULL DEFAULT 0, `totalChapterNum` INTEGER NOT NULL DEFAULT 0, `durChapterTitle` TEXT, `durChapterIndex` INTEGER NOT NULL DEFAULT 0, `durChapterPos` INTEGER NOT NULL DEFAULT 0, `durChapterTime` INTEGER NOT NULL DEFAULT 0, `wordCount` TEXT, `canUpdate` INTEGER NOT NULL DEFAULT 1, `order` INTEGER NOT NULL DEFAULT 0, `originOrder` INTEGER NOT NULL DEFAULT 0, `variable` TEXT, `readConfig` TEXT, PRIMARY KEY(`bookUrl`))", - "fields": [ - { - "fieldPath": "bookUrl", - "columnName": "bookUrl", - "affinity": "TEXT", - "notNull": true, - "defaultValue": "''" - }, - { - "fieldPath": "tocUrl", - "columnName": "tocUrl", - "affinity": "TEXT", - "notNull": true, - "defaultValue": "''" - }, - { - "fieldPath": "origin", - "columnName": "origin", - "affinity": "TEXT", - "notNull": true, - "defaultValue": "'loc_book'" - }, - { - "fieldPath": "originName", - "columnName": "originName", - "affinity": "TEXT", - "notNull": true, - "defaultValue": "''" - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true, - "defaultValue": "''" - }, - { - "fieldPath": "author", - "columnName": "author", - "affinity": "TEXT", - "notNull": true, - "defaultValue": "''" - }, - { - "fieldPath": "kind", - "columnName": "kind", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "customTag", - "columnName": "customTag", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "coverUrl", - "columnName": "coverUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "customCoverUrl", - "columnName": "customCoverUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "intro", - "columnName": "intro", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "customIntro", - "columnName": "customIntro", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "charset", - "columnName": "charset", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "type", - "columnName": "type", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "group", - "columnName": "group", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "latestChapterTitle", - "columnName": "latestChapterTitle", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "latestChapterTime", - "columnName": "latestChapterTime", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "lastCheckTime", - "columnName": "lastCheckTime", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "lastCheckCount", - "columnName": "lastCheckCount", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "totalChapterNum", - "columnName": "totalChapterNum", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "durChapterTitle", - "columnName": "durChapterTitle", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "durChapterIndex", - "columnName": "durChapterIndex", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "durChapterPos", - "columnName": "durChapterPos", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "durChapterTime", - "columnName": "durChapterTime", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "wordCount", - "columnName": "wordCount", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "canUpdate", - "columnName": "canUpdate", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "1" - }, - { - "fieldPath": "order", - "columnName": "order", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "originOrder", - "columnName": "originOrder", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "variable", - "columnName": "variable", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "readConfig", - "columnName": "readConfig", - "affinity": "TEXT", - "notNull": false - } - ], - "primaryKey": { - "autoGenerate": false, - "columnNames": [ - "bookUrl" - ] - }, - "indices": [ - { - "name": "index_books_name_author", - "unique": true, - "columnNames": [ - "name", - "author" - ], - "orders": [], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_books_name_author` ON `${TABLE_NAME}` (`name`, `author`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "book_groups", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`groupId` INTEGER NOT NULL, `groupName` TEXT NOT NULL, `cover` TEXT, `order` INTEGER NOT NULL, `enableRefresh` INTEGER NOT NULL DEFAULT 1, `show` INTEGER NOT NULL DEFAULT 1, `bookSort` INTEGER NOT NULL DEFAULT -1, PRIMARY KEY(`groupId`))", - "fields": [ - { - "fieldPath": "groupId", - "columnName": "groupId", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "groupName", - "columnName": "groupName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "cover", - "columnName": "cover", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "order", - "columnName": "order", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "enableRefresh", - "columnName": "enableRefresh", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "1" - }, - { - "fieldPath": "show", - "columnName": "show", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "1" - }, - { - "fieldPath": "bookSort", - "columnName": "bookSort", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "-1" - } - ], - "primaryKey": { - "autoGenerate": false, - "columnNames": [ - "groupId" - ] - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "book_sources", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`bookSourceUrl` TEXT NOT NULL, `bookSourceName` TEXT NOT NULL, `bookSourceGroup` TEXT, `bookSourceType` INTEGER NOT NULL, `bookUrlPattern` TEXT, `customOrder` INTEGER NOT NULL DEFAULT 0, `enabled` INTEGER NOT NULL DEFAULT 1, `enabledExplore` INTEGER NOT NULL DEFAULT 1, `jsLib` TEXT, `enabledCookieJar` INTEGER DEFAULT 0, `concurrentRate` TEXT, `header` TEXT, `loginUrl` TEXT, `loginUi` TEXT, `loginCheckJs` TEXT, `coverDecodeJs` TEXT, `bookSourceComment` TEXT, `variableComment` TEXT, `lastUpdateTime` INTEGER NOT NULL, `respondTime` INTEGER NOT NULL, `weight` INTEGER NOT NULL, `exploreUrl` TEXT, `exploreScreen` TEXT, `ruleExplore` TEXT, `searchUrl` TEXT, `ruleSearch` TEXT, `ruleBookInfo` TEXT, `ruleToc` TEXT, `ruleContent` TEXT, `ruleReview` TEXT, PRIMARY KEY(`bookSourceUrl`))", - "fields": [ - { - "fieldPath": "bookSourceUrl", - "columnName": "bookSourceUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookSourceName", - "columnName": "bookSourceName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookSourceGroup", - "columnName": "bookSourceGroup", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "bookSourceType", - "columnName": "bookSourceType", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "bookUrlPattern", - "columnName": "bookUrlPattern", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "customOrder", - "columnName": "customOrder", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "enabled", - "columnName": "enabled", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "1" - }, - { - "fieldPath": "enabledExplore", - "columnName": "enabledExplore", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "1" - }, - { - "fieldPath": "jsLib", - "columnName": "jsLib", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "enabledCookieJar", - "columnName": "enabledCookieJar", - "affinity": "INTEGER", - "notNull": false, - "defaultValue": "0" - }, - { - "fieldPath": "concurrentRate", - "columnName": "concurrentRate", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "header", - "columnName": "header", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "loginUrl", - "columnName": "loginUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "loginUi", - "columnName": "loginUi", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "loginCheckJs", - "columnName": "loginCheckJs", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "coverDecodeJs", - "columnName": "coverDecodeJs", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "bookSourceComment", - "columnName": "bookSourceComment", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "variableComment", - "columnName": "variableComment", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "lastUpdateTime", - "columnName": "lastUpdateTime", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "respondTime", - "columnName": "respondTime", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "weight", - "columnName": "weight", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "exploreUrl", - "columnName": "exploreUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "exploreScreen", - "columnName": "exploreScreen", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleExplore", - "columnName": "ruleExplore", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "searchUrl", - "columnName": "searchUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleSearch", - "columnName": "ruleSearch", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleBookInfo", - "columnName": "ruleBookInfo", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleToc", - "columnName": "ruleToc", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleContent", - "columnName": "ruleContent", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleReview", - "columnName": "ruleReview", - "affinity": "TEXT", - "notNull": false - } - ], - "primaryKey": { - "autoGenerate": false, - "columnNames": [ - "bookSourceUrl" - ] - }, - "indices": [ - { - "name": "index_book_sources_bookSourceUrl", - "unique": false, - "columnNames": [ - "bookSourceUrl" - ], - "orders": [], - "createSql": "CREATE INDEX IF NOT EXISTS `index_book_sources_bookSourceUrl` ON `${TABLE_NAME}` (`bookSourceUrl`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "chapters", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`url` TEXT NOT NULL, `title` TEXT NOT NULL, `isVolume` INTEGER NOT NULL, `baseUrl` TEXT NOT NULL, `bookUrl` TEXT NOT NULL, `index` INTEGER NOT NULL, `isVip` INTEGER NOT NULL, `isPay` INTEGER NOT NULL, `resourceUrl` TEXT, `tag` TEXT, `start` INTEGER, `end` INTEGER, `startFragmentId` TEXT, `endFragmentId` TEXT, `variable` TEXT, PRIMARY KEY(`url`, `bookUrl`), FOREIGN KEY(`bookUrl`) REFERENCES `books`(`bookUrl`) ON UPDATE NO ACTION ON DELETE CASCADE )", - "fields": [ - { - "fieldPath": "url", - "columnName": "url", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "title", - "columnName": "title", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "isVolume", - "columnName": "isVolume", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "baseUrl", - "columnName": "baseUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookUrl", - "columnName": "bookUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "index", - "columnName": "index", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "isVip", - "columnName": "isVip", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "isPay", - "columnName": "isPay", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "resourceUrl", - "columnName": "resourceUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "tag", - "columnName": "tag", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "start", - "columnName": "start", - "affinity": "INTEGER", - "notNull": false - }, - { - "fieldPath": "end", - "columnName": "end", - "affinity": "INTEGER", - "notNull": false - }, - { - "fieldPath": "startFragmentId", - "columnName": "startFragmentId", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "endFragmentId", - "columnName": "endFragmentId", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "variable", - "columnName": "variable", - "affinity": "TEXT", - "notNull": false - } - ], - "primaryKey": { - "autoGenerate": false, - "columnNames": [ - "url", - "bookUrl" - ] - }, - "indices": [ - { - "name": "index_chapters_bookUrl", - "unique": false, - "columnNames": [ - "bookUrl" - ], - "orders": [], - "createSql": "CREATE INDEX IF NOT EXISTS `index_chapters_bookUrl` ON `${TABLE_NAME}` (`bookUrl`)" - }, - { - "name": "index_chapters_bookUrl_index", - "unique": true, - "columnNames": [ - "bookUrl", - "index" - ], - "orders": [], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_chapters_bookUrl_index` ON `${TABLE_NAME}` (`bookUrl`, `index`)" - } - ], - "foreignKeys": [ - { - "table": "books", - "onDelete": "CASCADE", - "onUpdate": "NO ACTION", - "columns": [ - "bookUrl" - ], - "referencedColumns": [ - "bookUrl" - ] - } - ] - }, - { - "tableName": "replace_rules", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, `name` TEXT NOT NULL DEFAULT '', `group` TEXT, `pattern` TEXT NOT NULL DEFAULT '', `replacement` TEXT NOT NULL DEFAULT '', `scope` TEXT, `scopeTitle` INTEGER NOT NULL DEFAULT 0, `scopeContent` INTEGER NOT NULL DEFAULT 1, `isEnabled` INTEGER NOT NULL DEFAULT 1, `isRegex` INTEGER NOT NULL DEFAULT 1, `timeoutMillisecond` INTEGER NOT NULL DEFAULT 3000, `sortOrder` INTEGER NOT NULL DEFAULT 0)", - "fields": [ - { - "fieldPath": "id", - "columnName": "id", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true, - "defaultValue": "''" - }, - { - "fieldPath": "group", - "columnName": "group", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "pattern", - "columnName": "pattern", - "affinity": "TEXT", - "notNull": true, - "defaultValue": "''" - }, - { - "fieldPath": "replacement", - "columnName": "replacement", - "affinity": "TEXT", - "notNull": true, - "defaultValue": "''" - }, - { - "fieldPath": "scope", - "columnName": "scope", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "scopeTitle", - "columnName": "scopeTitle", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "scopeContent", - "columnName": "scopeContent", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "1" - }, - { - "fieldPath": "isEnabled", - "columnName": "isEnabled", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "1" - }, - { - "fieldPath": "isRegex", - "columnName": "isRegex", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "1" - }, - { - "fieldPath": "timeoutMillisecond", - "columnName": "timeoutMillisecond", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "3000" - }, - { - "fieldPath": "order", - "columnName": "sortOrder", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - } - ], - "primaryKey": { - "autoGenerate": true, - "columnNames": [ - "id" - ] - }, - "indices": [ - { - "name": "index_replace_rules_id", - "unique": false, - "columnNames": [ - "id" - ], - "orders": [], - "createSql": "CREATE INDEX IF NOT EXISTS `index_replace_rules_id` ON `${TABLE_NAME}` (`id`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "searchBooks", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`bookUrl` TEXT NOT NULL, `origin` TEXT NOT NULL, `originName` TEXT NOT NULL, `type` INTEGER NOT NULL, `name` TEXT NOT NULL, `author` TEXT NOT NULL, `kind` TEXT, `coverUrl` TEXT, `intro` TEXT, `wordCount` TEXT, `latestChapterTitle` TEXT, `tocUrl` TEXT NOT NULL, `time` INTEGER NOT NULL, `variable` TEXT, `originOrder` INTEGER NOT NULL, `chapterWordCountText` TEXT, `chapterWordCount` INTEGER NOT NULL DEFAULT -1, `respondTime` INTEGER NOT NULL DEFAULT -1, PRIMARY KEY(`bookUrl`), FOREIGN KEY(`origin`) REFERENCES `book_sources`(`bookSourceUrl`) ON UPDATE NO ACTION ON DELETE CASCADE )", - "fields": [ - { - "fieldPath": "bookUrl", - "columnName": "bookUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "origin", - "columnName": "origin", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "originName", - "columnName": "originName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "type", - "columnName": "type", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "author", - "columnName": "author", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "kind", - "columnName": "kind", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "coverUrl", - "columnName": "coverUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "intro", - "columnName": "intro", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "wordCount", - "columnName": "wordCount", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "latestChapterTitle", - "columnName": "latestChapterTitle", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "tocUrl", - "columnName": "tocUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "time", - "columnName": "time", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "variable", - "columnName": "variable", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "originOrder", - "columnName": "originOrder", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "chapterWordCountText", - "columnName": "chapterWordCountText", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "chapterWordCount", - "columnName": "chapterWordCount", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "-1" - }, - { - "fieldPath": "respondTime", - "columnName": "respondTime", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "-1" - } - ], - "primaryKey": { - "autoGenerate": false, - "columnNames": [ - "bookUrl" - ] - }, - "indices": [ - { - "name": "index_searchBooks_bookUrl", - "unique": true, - "columnNames": [ - "bookUrl" - ], - "orders": [], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_searchBooks_bookUrl` ON `${TABLE_NAME}` (`bookUrl`)" - }, - { - "name": "index_searchBooks_origin", - "unique": false, - "columnNames": [ - "origin" - ], - "orders": [], - "createSql": "CREATE INDEX IF NOT EXISTS `index_searchBooks_origin` ON `${TABLE_NAME}` (`origin`)" - } - ], - "foreignKeys": [ - { - "table": "book_sources", - "onDelete": "CASCADE", - "onUpdate": "NO ACTION", - "columns": [ - "origin" - ], - "referencedColumns": [ - "bookSourceUrl" - ] - } - ] - }, - { - "tableName": "search_keywords", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`word` TEXT NOT NULL, `usage` INTEGER NOT NULL, `lastUseTime` INTEGER NOT NULL, PRIMARY KEY(`word`))", - "fields": [ - { - "fieldPath": "word", - "columnName": "word", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "usage", - "columnName": "usage", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "lastUseTime", - "columnName": "lastUseTime", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "autoGenerate": false, - "columnNames": [ - "word" - ] - }, - "indices": [ - { - "name": "index_search_keywords_word", - "unique": true, - "columnNames": [ - "word" - ], - "orders": [], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_search_keywords_word` ON `${TABLE_NAME}` (`word`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "cookies", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`url` TEXT NOT NULL, `cookie` TEXT NOT NULL, PRIMARY KEY(`url`))", - "fields": [ - { - "fieldPath": "url", - "columnName": "url", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "cookie", - "columnName": "cookie", - "affinity": "TEXT", - "notNull": true - } - ], - "primaryKey": { - "autoGenerate": false, - "columnNames": [ - "url" - ] - }, - "indices": [ - { - "name": "index_cookies_url", - "unique": true, - "columnNames": [ - "url" - ], - "orders": [], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_cookies_url` ON `${TABLE_NAME}` (`url`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "rssSources", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`sourceUrl` TEXT NOT NULL, `sourceName` TEXT NOT NULL, `sourceIcon` TEXT NOT NULL, `sourceGroup` TEXT, `sourceComment` TEXT, `enabled` INTEGER NOT NULL, `variableComment` TEXT, `jsLib` TEXT, `enabledCookieJar` INTEGER DEFAULT 0, `concurrentRate` TEXT, `header` TEXT, `loginUrl` TEXT, `loginUi` TEXT, `loginCheckJs` TEXT, `coverDecodeJs` TEXT, `sortUrl` TEXT, `singleUrl` INTEGER NOT NULL, `articleStyle` INTEGER NOT NULL DEFAULT 0, `ruleArticles` TEXT, `ruleNextPage` TEXT, `ruleTitle` TEXT, `rulePubDate` TEXT, `ruleDescription` TEXT, `ruleImage` TEXT, `ruleLink` TEXT, `ruleContent` TEXT, `contentWhitelist` TEXT, `contentBlacklist` TEXT, `style` TEXT, `enableJs` INTEGER NOT NULL DEFAULT 1, `loadWithBaseUrl` INTEGER NOT NULL DEFAULT 1, `injectJs` TEXT, `lastUpdateTime` INTEGER NOT NULL DEFAULT 0, `customOrder` INTEGER NOT NULL DEFAULT 0, PRIMARY KEY(`sourceUrl`))", - "fields": [ - { - "fieldPath": "sourceUrl", - "columnName": "sourceUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "sourceName", - "columnName": "sourceName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "sourceIcon", - "columnName": "sourceIcon", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "sourceGroup", - "columnName": "sourceGroup", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "sourceComment", - "columnName": "sourceComment", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "enabled", - "columnName": "enabled", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "variableComment", - "columnName": "variableComment", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "jsLib", - "columnName": "jsLib", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "enabledCookieJar", - "columnName": "enabledCookieJar", - "affinity": "INTEGER", - "notNull": false, - "defaultValue": "0" - }, - { - "fieldPath": "concurrentRate", - "columnName": "concurrentRate", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "header", - "columnName": "header", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "loginUrl", - "columnName": "loginUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "loginUi", - "columnName": "loginUi", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "loginCheckJs", - "columnName": "loginCheckJs", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "coverDecodeJs", - "columnName": "coverDecodeJs", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "sortUrl", - "columnName": "sortUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "singleUrl", - "columnName": "singleUrl", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "articleStyle", - "columnName": "articleStyle", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "ruleArticles", - "columnName": "ruleArticles", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleNextPage", - "columnName": "ruleNextPage", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleTitle", - "columnName": "ruleTitle", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "rulePubDate", - "columnName": "rulePubDate", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleDescription", - "columnName": "ruleDescription", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleImage", - "columnName": "ruleImage", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleLink", - "columnName": "ruleLink", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleContent", - "columnName": "ruleContent", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "contentWhitelist", - "columnName": "contentWhitelist", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "contentBlacklist", - "columnName": "contentBlacklist", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "style", - "columnName": "style", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "enableJs", - "columnName": "enableJs", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "1" - }, - { - "fieldPath": "loadWithBaseUrl", - "columnName": "loadWithBaseUrl", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "1" - }, - { - "fieldPath": "injectJs", - "columnName": "injectJs", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "lastUpdateTime", - "columnName": "lastUpdateTime", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "customOrder", - "columnName": "customOrder", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - } - ], - "primaryKey": { - "autoGenerate": false, - "columnNames": [ - "sourceUrl" - ] - }, - "indices": [ - { - "name": "index_rssSources_sourceUrl", - "unique": false, - "columnNames": [ - "sourceUrl" - ], - "orders": [], - "createSql": "CREATE INDEX IF NOT EXISTS `index_rssSources_sourceUrl` ON `${TABLE_NAME}` (`sourceUrl`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "bookmarks", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`time` INTEGER NOT NULL, `bookName` TEXT NOT NULL, `bookAuthor` TEXT NOT NULL, `chapterIndex` INTEGER NOT NULL, `chapterPos` INTEGER NOT NULL, `chapterName` TEXT NOT NULL, `bookText` TEXT NOT NULL, `content` TEXT NOT NULL, PRIMARY KEY(`time`))", - "fields": [ - { - "fieldPath": "time", - "columnName": "time", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "bookName", - "columnName": "bookName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookAuthor", - "columnName": "bookAuthor", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "chapterIndex", - "columnName": "chapterIndex", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "chapterPos", - "columnName": "chapterPos", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "chapterName", - "columnName": "chapterName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookText", - "columnName": "bookText", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "content", - "columnName": "content", - "affinity": "TEXT", - "notNull": true - } - ], - "primaryKey": { - "autoGenerate": false, - "columnNames": [ - "time" - ] - }, - "indices": [ - { - "name": "index_bookmarks_bookName_bookAuthor", - "unique": false, - "columnNames": [ - "bookName", - "bookAuthor" - ], - "orders": [], - "createSql": "CREATE INDEX IF NOT EXISTS `index_bookmarks_bookName_bookAuthor` ON `${TABLE_NAME}` (`bookName`, `bookAuthor`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "rssArticles", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`origin` TEXT NOT NULL, `sort` TEXT NOT NULL, `title` TEXT NOT NULL, `order` INTEGER NOT NULL, `link` TEXT NOT NULL, `pubDate` TEXT, `description` TEXT, `content` TEXT, `image` TEXT, `read` INTEGER NOT NULL, `variable` TEXT, PRIMARY KEY(`origin`, `link`))", - "fields": [ - { - "fieldPath": "origin", - "columnName": "origin", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "sort", - "columnName": "sort", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "title", - "columnName": "title", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "order", - "columnName": "order", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "link", - "columnName": "link", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "pubDate", - "columnName": "pubDate", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "description", - "columnName": "description", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "content", - "columnName": "content", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "image", - "columnName": "image", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "read", - "columnName": "read", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "variable", - "columnName": "variable", - "affinity": "TEXT", - "notNull": false - } - ], - "primaryKey": { - "autoGenerate": false, - "columnNames": [ - "origin", - "link" - ] - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "rssReadRecords", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`record` TEXT NOT NULL, `read` INTEGER NOT NULL, PRIMARY KEY(`record`))", - "fields": [ - { - "fieldPath": "record", - "columnName": "record", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "read", - "columnName": "read", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "autoGenerate": false, - "columnNames": [ - "record" - ] - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "rssStars", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`origin` TEXT NOT NULL, `sort` TEXT NOT NULL, `title` TEXT NOT NULL, `starTime` INTEGER NOT NULL, `link` TEXT NOT NULL, `pubDate` TEXT, `description` TEXT, `content` TEXT, `image` TEXT, `variable` TEXT, PRIMARY KEY(`origin`, `link`))", - "fields": [ - { - "fieldPath": "origin", - "columnName": "origin", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "sort", - "columnName": "sort", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "title", - "columnName": "title", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "starTime", - "columnName": "starTime", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "link", - "columnName": "link", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "pubDate", - "columnName": "pubDate", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "description", - "columnName": "description", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "content", - "columnName": "content", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "image", - "columnName": "image", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "variable", - "columnName": "variable", - "affinity": "TEXT", - "notNull": false - } - ], - "primaryKey": { - "autoGenerate": false, - "columnNames": [ - "origin", - "link" - ] - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "txtTocRules", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER NOT NULL, `name` TEXT NOT NULL, `rule` TEXT NOT NULL, `example` TEXT, `serialNumber` INTEGER NOT NULL, `enable` INTEGER NOT NULL, PRIMARY KEY(`id`))", - "fields": [ - { - "fieldPath": "id", - "columnName": "id", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "rule", - "columnName": "rule", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "example", - "columnName": "example", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "serialNumber", - "columnName": "serialNumber", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "enable", - "columnName": "enable", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "autoGenerate": false, - "columnNames": [ - "id" - ] - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "readRecord", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`deviceId` TEXT NOT NULL, `bookName` TEXT NOT NULL, `readTime` INTEGER NOT NULL DEFAULT 0, `lastRead` INTEGER NOT NULL DEFAULT 0, PRIMARY KEY(`deviceId`, `bookName`))", - "fields": [ - { - "fieldPath": "deviceId", - "columnName": "deviceId", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookName", - "columnName": "bookName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "readTime", - "columnName": "readTime", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "lastRead", - "columnName": "lastRead", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - } - ], - "primaryKey": { - "autoGenerate": false, - "columnNames": [ - "deviceId", - "bookName" - ] - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "httpTTS", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER NOT NULL, `name` TEXT NOT NULL, `url` TEXT NOT NULL, `contentType` TEXT, `concurrentRate` TEXT DEFAULT '0', `loginUrl` TEXT, `loginUi` TEXT, `header` TEXT, `jsLib` TEXT, `enabledCookieJar` INTEGER DEFAULT 0, `loginCheckJs` TEXT, `lastUpdateTime` INTEGER NOT NULL DEFAULT 0, PRIMARY KEY(`id`))", - "fields": [ - { - "fieldPath": "id", - "columnName": "id", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "url", - "columnName": "url", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "contentType", - "columnName": "contentType", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "concurrentRate", - "columnName": "concurrentRate", - "affinity": "TEXT", - "notNull": false, - "defaultValue": "'0'" - }, - { - "fieldPath": "loginUrl", - "columnName": "loginUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "loginUi", - "columnName": "loginUi", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "header", - "columnName": "header", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "jsLib", - "columnName": "jsLib", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "enabledCookieJar", - "columnName": "enabledCookieJar", - "affinity": "INTEGER", - "notNull": false, - "defaultValue": "0" - }, - { - "fieldPath": "loginCheckJs", - "columnName": "loginCheckJs", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "lastUpdateTime", - "columnName": "lastUpdateTime", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - } - ], - "primaryKey": { - "autoGenerate": false, - "columnNames": [ - "id" - ] - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "caches", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`key` TEXT NOT NULL, `value` TEXT, `deadline` INTEGER NOT NULL, PRIMARY KEY(`key`))", - "fields": [ - { - "fieldPath": "key", - "columnName": "key", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "value", - "columnName": "value", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "deadline", - "columnName": "deadline", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "autoGenerate": false, - "columnNames": [ - "key" - ] - }, - "indices": [ - { - "name": "index_caches_key", - "unique": true, - "columnNames": [ - "key" - ], - "orders": [], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_caches_key` ON `${TABLE_NAME}` (`key`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "ruleSubs", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER NOT NULL, `name` TEXT NOT NULL, `url` TEXT NOT NULL, `type` INTEGER NOT NULL, `customOrder` INTEGER NOT NULL, `autoUpdate` INTEGER NOT NULL, `update` INTEGER NOT NULL, PRIMARY KEY(`id`))", - "fields": [ - { - "fieldPath": "id", - "columnName": "id", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "url", - "columnName": "url", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "type", - "columnName": "type", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "customOrder", - "columnName": "customOrder", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "autoUpdate", - "columnName": "autoUpdate", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "update", - "columnName": "update", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "autoGenerate": false, - "columnNames": [ - "id" - ] - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "dictRules", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`name` TEXT NOT NULL, `urlRule` TEXT NOT NULL, `showRule` TEXT NOT NULL, `enabled` INTEGER NOT NULL DEFAULT 1, `sortNumber` INTEGER NOT NULL DEFAULT 0, PRIMARY KEY(`name`))", - "fields": [ - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "urlRule", - "columnName": "urlRule", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "showRule", - "columnName": "showRule", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "enabled", - "columnName": "enabled", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "1" - }, - { - "fieldPath": "sortNumber", - "columnName": "sortNumber", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - } - ], - "primaryKey": { - "autoGenerate": false, - "columnNames": [ - "name" - ] - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "keyboardAssists", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`type` INTEGER NOT NULL DEFAULT 0, `key` TEXT NOT NULL DEFAULT '', `value` TEXT NOT NULL DEFAULT '', `serialNo` INTEGER NOT NULL DEFAULT 0, PRIMARY KEY(`type`, `key`))", - "fields": [ - { - "fieldPath": "type", - "columnName": "type", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "key", - "columnName": "key", - "affinity": "TEXT", - "notNull": true, - "defaultValue": "''" - }, - { - "fieldPath": "value", - "columnName": "value", - "affinity": "TEXT", - "notNull": true, - "defaultValue": "''" - }, - { - "fieldPath": "serialNo", - "columnName": "serialNo", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - } - ], - "primaryKey": { - "autoGenerate": false, - "columnNames": [ - "type", - "key" - ] - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "servers", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER NOT NULL, `name` TEXT NOT NULL, `type` TEXT NOT NULL, `config` TEXT, `sortNumber` INTEGER NOT NULL, PRIMARY KEY(`id`))", - "fields": [ - { - "fieldPath": "id", - "columnName": "id", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "type", - "columnName": "type", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "config", - "columnName": "config", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "sortNumber", - "columnName": "sortNumber", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "autoGenerate": false, - "columnNames": [ - "id" - ] - }, - "indices": [], - "foreignKeys": [] - } - ], - "views": [], - "setupQueries": [ - "CREATE TABLE IF NOT EXISTS room_master_table (id INTEGER PRIMARY KEY,identity_hash TEXT)", - "INSERT OR REPLACE INTO room_master_table (id,identity_hash) VALUES(42, '48855e5272b008e4c6b202a41654b575')" - ] - } -} \ No newline at end of file diff --git a/app/schemas/io.legado.app.data.AppDatabase/68.json b/app/schemas/io.legado.app.data.AppDatabase/68.json deleted file mode 100644 index b3c1d9a86..000000000 --- a/app/schemas/io.legado.app.data.AppDatabase/68.json +++ /dev/null @@ -1,1885 +0,0 @@ -{ - "formatVersion": 1, - "database": { - "version": 68, - "identityHash": "9b6070f339f55e90e4cceaeb89b4a698", - "entities": [ - { - "tableName": "books", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`bookUrl` TEXT NOT NULL DEFAULT '', `tocUrl` TEXT NOT NULL DEFAULT '', `origin` TEXT NOT NULL DEFAULT 'loc_book', `originName` TEXT NOT NULL DEFAULT '', `name` TEXT NOT NULL DEFAULT '', `author` TEXT NOT NULL DEFAULT '', `kind` TEXT, `customTag` TEXT, `coverUrl` TEXT, `customCoverUrl` TEXT, `intro` TEXT, `customIntro` TEXT, `charset` TEXT, `type` INTEGER NOT NULL DEFAULT 0, `group` INTEGER NOT NULL DEFAULT 0, `latestChapterTitle` TEXT, `latestChapterTime` INTEGER NOT NULL DEFAULT 0, `lastCheckTime` INTEGER NOT NULL DEFAULT 0, `lastCheckCount` INTEGER NOT NULL DEFAULT 0, `totalChapterNum` INTEGER NOT NULL DEFAULT 0, `durChapterTitle` TEXT, `durChapterIndex` INTEGER NOT NULL DEFAULT 0, `durChapterPos` INTEGER NOT NULL DEFAULT 0, `durChapterTime` INTEGER NOT NULL DEFAULT 0, `wordCount` TEXT, `canUpdate` INTEGER NOT NULL DEFAULT 1, `order` INTEGER NOT NULL DEFAULT 0, `originOrder` INTEGER NOT NULL DEFAULT 0, `variable` TEXT, `readConfig` TEXT, PRIMARY KEY(`bookUrl`))", - "fields": [ - { - "fieldPath": "bookUrl", - "columnName": "bookUrl", - "affinity": "TEXT", - "notNull": true, - "defaultValue": "''" - }, - { - "fieldPath": "tocUrl", - "columnName": "tocUrl", - "affinity": "TEXT", - "notNull": true, - "defaultValue": "''" - }, - { - "fieldPath": "origin", - "columnName": "origin", - "affinity": "TEXT", - "notNull": true, - "defaultValue": "'loc_book'" - }, - { - "fieldPath": "originName", - "columnName": "originName", - "affinity": "TEXT", - "notNull": true, - "defaultValue": "''" - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true, - "defaultValue": "''" - }, - { - "fieldPath": "author", - "columnName": "author", - "affinity": "TEXT", - "notNull": true, - "defaultValue": "''" - }, - { - "fieldPath": "kind", - "columnName": "kind", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "customTag", - "columnName": "customTag", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "coverUrl", - "columnName": "coverUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "customCoverUrl", - "columnName": "customCoverUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "intro", - "columnName": "intro", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "customIntro", - "columnName": "customIntro", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "charset", - "columnName": "charset", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "type", - "columnName": "type", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "group", - "columnName": "group", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "latestChapterTitle", - "columnName": "latestChapterTitle", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "latestChapterTime", - "columnName": "latestChapterTime", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "lastCheckTime", - "columnName": "lastCheckTime", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "lastCheckCount", - "columnName": "lastCheckCount", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "totalChapterNum", - "columnName": "totalChapterNum", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "durChapterTitle", - "columnName": "durChapterTitle", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "durChapterIndex", - "columnName": "durChapterIndex", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "durChapterPos", - "columnName": "durChapterPos", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "durChapterTime", - "columnName": "durChapterTime", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "wordCount", - "columnName": "wordCount", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "canUpdate", - "columnName": "canUpdate", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "1" - }, - { - "fieldPath": "order", - "columnName": "order", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "originOrder", - "columnName": "originOrder", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "variable", - "columnName": "variable", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "readConfig", - "columnName": "readConfig", - "affinity": "TEXT", - "notNull": false - } - ], - "primaryKey": { - "autoGenerate": false, - "columnNames": [ - "bookUrl" - ] - }, - "indices": [ - { - "name": "index_books_name_author", - "unique": true, - "columnNames": [ - "name", - "author" - ], - "orders": [], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_books_name_author` ON `${TABLE_NAME}` (`name`, `author`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "book_groups", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`groupId` INTEGER NOT NULL, `groupName` TEXT NOT NULL, `cover` TEXT, `order` INTEGER NOT NULL, `enableRefresh` INTEGER NOT NULL DEFAULT 1, `show` INTEGER NOT NULL DEFAULT 1, `bookSort` INTEGER NOT NULL DEFAULT -1, PRIMARY KEY(`groupId`))", - "fields": [ - { - "fieldPath": "groupId", - "columnName": "groupId", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "groupName", - "columnName": "groupName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "cover", - "columnName": "cover", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "order", - "columnName": "order", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "enableRefresh", - "columnName": "enableRefresh", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "1" - }, - { - "fieldPath": "show", - "columnName": "show", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "1" - }, - { - "fieldPath": "bookSort", - "columnName": "bookSort", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "-1" - } - ], - "primaryKey": { - "autoGenerate": false, - "columnNames": [ - "groupId" - ] - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "book_sources", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`bookSourceUrl` TEXT NOT NULL, `bookSourceName` TEXT NOT NULL, `bookSourceGroup` TEXT, `bookSourceType` INTEGER NOT NULL, `bookUrlPattern` TEXT, `customOrder` INTEGER NOT NULL DEFAULT 0, `enabled` INTEGER NOT NULL DEFAULT 1, `enabledExplore` INTEGER NOT NULL DEFAULT 1, `jsLib` TEXT, `enabledCookieJar` INTEGER DEFAULT 0, `concurrentRate` TEXT, `header` TEXT, `loginUrl` TEXT, `loginUi` TEXT, `loginCheckJs` TEXT, `coverDecodeJs` TEXT, `bookSourceComment` TEXT, `variableComment` TEXT, `lastUpdateTime` INTEGER NOT NULL, `respondTime` INTEGER NOT NULL, `weight` INTEGER NOT NULL, `exploreUrl` TEXT, `exploreScreen` TEXT, `ruleExplore` TEXT, `searchUrl` TEXT, `ruleSearch` TEXT, `ruleBookInfo` TEXT, `ruleToc` TEXT, `ruleContent` TEXT, `ruleReview` TEXT, PRIMARY KEY(`bookSourceUrl`))", - "fields": [ - { - "fieldPath": "bookSourceUrl", - "columnName": "bookSourceUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookSourceName", - "columnName": "bookSourceName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookSourceGroup", - "columnName": "bookSourceGroup", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "bookSourceType", - "columnName": "bookSourceType", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "bookUrlPattern", - "columnName": "bookUrlPattern", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "customOrder", - "columnName": "customOrder", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "enabled", - "columnName": "enabled", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "1" - }, - { - "fieldPath": "enabledExplore", - "columnName": "enabledExplore", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "1" - }, - { - "fieldPath": "jsLib", - "columnName": "jsLib", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "enabledCookieJar", - "columnName": "enabledCookieJar", - "affinity": "INTEGER", - "notNull": false, - "defaultValue": "0" - }, - { - "fieldPath": "concurrentRate", - "columnName": "concurrentRate", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "header", - "columnName": "header", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "loginUrl", - "columnName": "loginUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "loginUi", - "columnName": "loginUi", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "loginCheckJs", - "columnName": "loginCheckJs", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "coverDecodeJs", - "columnName": "coverDecodeJs", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "bookSourceComment", - "columnName": "bookSourceComment", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "variableComment", - "columnName": "variableComment", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "lastUpdateTime", - "columnName": "lastUpdateTime", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "respondTime", - "columnName": "respondTime", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "weight", - "columnName": "weight", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "exploreUrl", - "columnName": "exploreUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "exploreScreen", - "columnName": "exploreScreen", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleExplore", - "columnName": "ruleExplore", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "searchUrl", - "columnName": "searchUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleSearch", - "columnName": "ruleSearch", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleBookInfo", - "columnName": "ruleBookInfo", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleToc", - "columnName": "ruleToc", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleContent", - "columnName": "ruleContent", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleReview", - "columnName": "ruleReview", - "affinity": "TEXT", - "notNull": false - } - ], - "primaryKey": { - "autoGenerate": false, - "columnNames": [ - "bookSourceUrl" - ] - }, - "indices": [ - { - "name": "index_book_sources_bookSourceUrl", - "unique": false, - "columnNames": [ - "bookSourceUrl" - ], - "orders": [], - "createSql": "CREATE INDEX IF NOT EXISTS `index_book_sources_bookSourceUrl` ON `${TABLE_NAME}` (`bookSourceUrl`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "chapters", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`url` TEXT NOT NULL, `title` TEXT NOT NULL, `isVolume` INTEGER NOT NULL, `baseUrl` TEXT NOT NULL, `bookUrl` TEXT NOT NULL, `index` INTEGER NOT NULL, `isVip` INTEGER NOT NULL, `isPay` INTEGER NOT NULL, `resourceUrl` TEXT, `tag` TEXT, `start` INTEGER, `end` INTEGER, `startFragmentId` TEXT, `endFragmentId` TEXT, `variable` TEXT, PRIMARY KEY(`url`, `bookUrl`), FOREIGN KEY(`bookUrl`) REFERENCES `books`(`bookUrl`) ON UPDATE NO ACTION ON DELETE CASCADE )", - "fields": [ - { - "fieldPath": "url", - "columnName": "url", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "title", - "columnName": "title", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "isVolume", - "columnName": "isVolume", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "baseUrl", - "columnName": "baseUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookUrl", - "columnName": "bookUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "index", - "columnName": "index", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "isVip", - "columnName": "isVip", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "isPay", - "columnName": "isPay", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "resourceUrl", - "columnName": "resourceUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "tag", - "columnName": "tag", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "start", - "columnName": "start", - "affinity": "INTEGER", - "notNull": false - }, - { - "fieldPath": "end", - "columnName": "end", - "affinity": "INTEGER", - "notNull": false - }, - { - "fieldPath": "startFragmentId", - "columnName": "startFragmentId", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "endFragmentId", - "columnName": "endFragmentId", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "variable", - "columnName": "variable", - "affinity": "TEXT", - "notNull": false - } - ], - "primaryKey": { - "autoGenerate": false, - "columnNames": [ - "url", - "bookUrl" - ] - }, - "indices": [ - { - "name": "index_chapters_bookUrl", - "unique": false, - "columnNames": [ - "bookUrl" - ], - "orders": [], - "createSql": "CREATE INDEX IF NOT EXISTS `index_chapters_bookUrl` ON `${TABLE_NAME}` (`bookUrl`)" - }, - { - "name": "index_chapters_bookUrl_index", - "unique": true, - "columnNames": [ - "bookUrl", - "index" - ], - "orders": [], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_chapters_bookUrl_index` ON `${TABLE_NAME}` (`bookUrl`, `index`)" - } - ], - "foreignKeys": [ - { - "table": "books", - "onDelete": "CASCADE", - "onUpdate": "NO ACTION", - "columns": [ - "bookUrl" - ], - "referencedColumns": [ - "bookUrl" - ] - } - ] - }, - { - "tableName": "replace_rules", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, `name` TEXT NOT NULL DEFAULT '', `group` TEXT, `pattern` TEXT NOT NULL DEFAULT '', `replacement` TEXT NOT NULL DEFAULT '', `scope` TEXT, `scopeTitle` INTEGER NOT NULL DEFAULT 0, `scopeContent` INTEGER NOT NULL DEFAULT 1, `excludeScope` TEXT, `isEnabled` INTEGER NOT NULL DEFAULT 1, `isRegex` INTEGER NOT NULL DEFAULT 1, `timeoutMillisecond` INTEGER NOT NULL DEFAULT 3000, `sortOrder` INTEGER NOT NULL DEFAULT 0)", - "fields": [ - { - "fieldPath": "id", - "columnName": "id", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true, - "defaultValue": "''" - }, - { - "fieldPath": "group", - "columnName": "group", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "pattern", - "columnName": "pattern", - "affinity": "TEXT", - "notNull": true, - "defaultValue": "''" - }, - { - "fieldPath": "replacement", - "columnName": "replacement", - "affinity": "TEXT", - "notNull": true, - "defaultValue": "''" - }, - { - "fieldPath": "scope", - "columnName": "scope", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "scopeTitle", - "columnName": "scopeTitle", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "scopeContent", - "columnName": "scopeContent", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "1" - }, - { - "fieldPath": "excludeScope", - "columnName": "excludeScope", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "isEnabled", - "columnName": "isEnabled", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "1" - }, - { - "fieldPath": "isRegex", - "columnName": "isRegex", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "1" - }, - { - "fieldPath": "timeoutMillisecond", - "columnName": "timeoutMillisecond", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "3000" - }, - { - "fieldPath": "order", - "columnName": "sortOrder", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - } - ], - "primaryKey": { - "autoGenerate": true, - "columnNames": [ - "id" - ] - }, - "indices": [ - { - "name": "index_replace_rules_id", - "unique": false, - "columnNames": [ - "id" - ], - "orders": [], - "createSql": "CREATE INDEX IF NOT EXISTS `index_replace_rules_id` ON `${TABLE_NAME}` (`id`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "searchBooks", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`bookUrl` TEXT NOT NULL, `origin` TEXT NOT NULL, `originName` TEXT NOT NULL, `type` INTEGER NOT NULL, `name` TEXT NOT NULL, `author` TEXT NOT NULL, `kind` TEXT, `coverUrl` TEXT, `intro` TEXT, `wordCount` TEXT, `latestChapterTitle` TEXT, `tocUrl` TEXT NOT NULL, `time` INTEGER NOT NULL, `variable` TEXT, `originOrder` INTEGER NOT NULL, `chapterWordCountText` TEXT, `chapterWordCount` INTEGER NOT NULL DEFAULT -1, `respondTime` INTEGER NOT NULL DEFAULT -1, PRIMARY KEY(`bookUrl`), FOREIGN KEY(`origin`) REFERENCES `book_sources`(`bookSourceUrl`) ON UPDATE NO ACTION ON DELETE CASCADE )", - "fields": [ - { - "fieldPath": "bookUrl", - "columnName": "bookUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "origin", - "columnName": "origin", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "originName", - "columnName": "originName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "type", - "columnName": "type", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "author", - "columnName": "author", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "kind", - "columnName": "kind", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "coverUrl", - "columnName": "coverUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "intro", - "columnName": "intro", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "wordCount", - "columnName": "wordCount", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "latestChapterTitle", - "columnName": "latestChapterTitle", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "tocUrl", - "columnName": "tocUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "time", - "columnName": "time", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "variable", - "columnName": "variable", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "originOrder", - "columnName": "originOrder", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "chapterWordCountText", - "columnName": "chapterWordCountText", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "chapterWordCount", - "columnName": "chapterWordCount", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "-1" - }, - { - "fieldPath": "respondTime", - "columnName": "respondTime", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "-1" - } - ], - "primaryKey": { - "autoGenerate": false, - "columnNames": [ - "bookUrl" - ] - }, - "indices": [ - { - "name": "index_searchBooks_bookUrl", - "unique": true, - "columnNames": [ - "bookUrl" - ], - "orders": [], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_searchBooks_bookUrl` ON `${TABLE_NAME}` (`bookUrl`)" - }, - { - "name": "index_searchBooks_origin", - "unique": false, - "columnNames": [ - "origin" - ], - "orders": [], - "createSql": "CREATE INDEX IF NOT EXISTS `index_searchBooks_origin` ON `${TABLE_NAME}` (`origin`)" - } - ], - "foreignKeys": [ - { - "table": "book_sources", - "onDelete": "CASCADE", - "onUpdate": "NO ACTION", - "columns": [ - "origin" - ], - "referencedColumns": [ - "bookSourceUrl" - ] - } - ] - }, - { - "tableName": "search_keywords", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`word` TEXT NOT NULL, `usage` INTEGER NOT NULL, `lastUseTime` INTEGER NOT NULL, PRIMARY KEY(`word`))", - "fields": [ - { - "fieldPath": "word", - "columnName": "word", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "usage", - "columnName": "usage", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "lastUseTime", - "columnName": "lastUseTime", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "autoGenerate": false, - "columnNames": [ - "word" - ] - }, - "indices": [ - { - "name": "index_search_keywords_word", - "unique": true, - "columnNames": [ - "word" - ], - "orders": [], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_search_keywords_word` ON `${TABLE_NAME}` (`word`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "cookies", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`url` TEXT NOT NULL, `cookie` TEXT NOT NULL, PRIMARY KEY(`url`))", - "fields": [ - { - "fieldPath": "url", - "columnName": "url", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "cookie", - "columnName": "cookie", - "affinity": "TEXT", - "notNull": true - } - ], - "primaryKey": { - "autoGenerate": false, - "columnNames": [ - "url" - ] - }, - "indices": [ - { - "name": "index_cookies_url", - "unique": true, - "columnNames": [ - "url" - ], - "orders": [], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_cookies_url` ON `${TABLE_NAME}` (`url`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "rssSources", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`sourceUrl` TEXT NOT NULL, `sourceName` TEXT NOT NULL, `sourceIcon` TEXT NOT NULL, `sourceGroup` TEXT, `sourceComment` TEXT, `enabled` INTEGER NOT NULL, `variableComment` TEXT, `jsLib` TEXT, `enabledCookieJar` INTEGER DEFAULT 0, `concurrentRate` TEXT, `header` TEXT, `loginUrl` TEXT, `loginUi` TEXT, `loginCheckJs` TEXT, `coverDecodeJs` TEXT, `sortUrl` TEXT, `singleUrl` INTEGER NOT NULL, `articleStyle` INTEGER NOT NULL DEFAULT 0, `ruleArticles` TEXT, `ruleNextPage` TEXT, `ruleTitle` TEXT, `rulePubDate` TEXT, `ruleDescription` TEXT, `ruleImage` TEXT, `ruleLink` TEXT, `ruleContent` TEXT, `contentWhitelist` TEXT, `contentBlacklist` TEXT, `style` TEXT, `enableJs` INTEGER NOT NULL DEFAULT 1, `loadWithBaseUrl` INTEGER NOT NULL DEFAULT 1, `injectJs` TEXT, `lastUpdateTime` INTEGER NOT NULL DEFAULT 0, `customOrder` INTEGER NOT NULL DEFAULT 0, PRIMARY KEY(`sourceUrl`))", - "fields": [ - { - "fieldPath": "sourceUrl", - "columnName": "sourceUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "sourceName", - "columnName": "sourceName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "sourceIcon", - "columnName": "sourceIcon", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "sourceGroup", - "columnName": "sourceGroup", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "sourceComment", - "columnName": "sourceComment", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "enabled", - "columnName": "enabled", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "variableComment", - "columnName": "variableComment", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "jsLib", - "columnName": "jsLib", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "enabledCookieJar", - "columnName": "enabledCookieJar", - "affinity": "INTEGER", - "notNull": false, - "defaultValue": "0" - }, - { - "fieldPath": "concurrentRate", - "columnName": "concurrentRate", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "header", - "columnName": "header", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "loginUrl", - "columnName": "loginUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "loginUi", - "columnName": "loginUi", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "loginCheckJs", - "columnName": "loginCheckJs", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "coverDecodeJs", - "columnName": "coverDecodeJs", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "sortUrl", - "columnName": "sortUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "singleUrl", - "columnName": "singleUrl", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "articleStyle", - "columnName": "articleStyle", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "ruleArticles", - "columnName": "ruleArticles", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleNextPage", - "columnName": "ruleNextPage", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleTitle", - "columnName": "ruleTitle", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "rulePubDate", - "columnName": "rulePubDate", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleDescription", - "columnName": "ruleDescription", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleImage", - "columnName": "ruleImage", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleLink", - "columnName": "ruleLink", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleContent", - "columnName": "ruleContent", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "contentWhitelist", - "columnName": "contentWhitelist", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "contentBlacklist", - "columnName": "contentBlacklist", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "style", - "columnName": "style", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "enableJs", - "columnName": "enableJs", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "1" - }, - { - "fieldPath": "loadWithBaseUrl", - "columnName": "loadWithBaseUrl", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "1" - }, - { - "fieldPath": "injectJs", - "columnName": "injectJs", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "lastUpdateTime", - "columnName": "lastUpdateTime", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "customOrder", - "columnName": "customOrder", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - } - ], - "primaryKey": { - "autoGenerate": false, - "columnNames": [ - "sourceUrl" - ] - }, - "indices": [ - { - "name": "index_rssSources_sourceUrl", - "unique": false, - "columnNames": [ - "sourceUrl" - ], - "orders": [], - "createSql": "CREATE INDEX IF NOT EXISTS `index_rssSources_sourceUrl` ON `${TABLE_NAME}` (`sourceUrl`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "bookmarks", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`time` INTEGER NOT NULL, `bookName` TEXT NOT NULL, `bookAuthor` TEXT NOT NULL, `chapterIndex` INTEGER NOT NULL, `chapterPos` INTEGER NOT NULL, `chapterName` TEXT NOT NULL, `bookText` TEXT NOT NULL, `content` TEXT NOT NULL, PRIMARY KEY(`time`))", - "fields": [ - { - "fieldPath": "time", - "columnName": "time", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "bookName", - "columnName": "bookName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookAuthor", - "columnName": "bookAuthor", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "chapterIndex", - "columnName": "chapterIndex", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "chapterPos", - "columnName": "chapterPos", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "chapterName", - "columnName": "chapterName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookText", - "columnName": "bookText", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "content", - "columnName": "content", - "affinity": "TEXT", - "notNull": true - } - ], - "primaryKey": { - "autoGenerate": false, - "columnNames": [ - "time" - ] - }, - "indices": [ - { - "name": "index_bookmarks_bookName_bookAuthor", - "unique": false, - "columnNames": [ - "bookName", - "bookAuthor" - ], - "orders": [], - "createSql": "CREATE INDEX IF NOT EXISTS `index_bookmarks_bookName_bookAuthor` ON `${TABLE_NAME}` (`bookName`, `bookAuthor`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "rssArticles", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`origin` TEXT NOT NULL, `sort` TEXT NOT NULL, `title` TEXT NOT NULL, `order` INTEGER NOT NULL, `link` TEXT NOT NULL, `pubDate` TEXT, `description` TEXT, `content` TEXT, `image` TEXT, `read` INTEGER NOT NULL, `variable` TEXT, PRIMARY KEY(`origin`, `link`))", - "fields": [ - { - "fieldPath": "origin", - "columnName": "origin", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "sort", - "columnName": "sort", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "title", - "columnName": "title", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "order", - "columnName": "order", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "link", - "columnName": "link", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "pubDate", - "columnName": "pubDate", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "description", - "columnName": "description", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "content", - "columnName": "content", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "image", - "columnName": "image", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "read", - "columnName": "read", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "variable", - "columnName": "variable", - "affinity": "TEXT", - "notNull": false - } - ], - "primaryKey": { - "autoGenerate": false, - "columnNames": [ - "origin", - "link" - ] - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "rssReadRecords", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`record` TEXT NOT NULL, `read` INTEGER NOT NULL, PRIMARY KEY(`record`))", - "fields": [ - { - "fieldPath": "record", - "columnName": "record", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "read", - "columnName": "read", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "autoGenerate": false, - "columnNames": [ - "record" - ] - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "rssStars", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`origin` TEXT NOT NULL, `sort` TEXT NOT NULL, `title` TEXT NOT NULL, `starTime` INTEGER NOT NULL, `link` TEXT NOT NULL, `pubDate` TEXT, `description` TEXT, `content` TEXT, `image` TEXT, `variable` TEXT, PRIMARY KEY(`origin`, `link`))", - "fields": [ - { - "fieldPath": "origin", - "columnName": "origin", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "sort", - "columnName": "sort", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "title", - "columnName": "title", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "starTime", - "columnName": "starTime", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "link", - "columnName": "link", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "pubDate", - "columnName": "pubDate", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "description", - "columnName": "description", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "content", - "columnName": "content", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "image", - "columnName": "image", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "variable", - "columnName": "variable", - "affinity": "TEXT", - "notNull": false - } - ], - "primaryKey": { - "autoGenerate": false, - "columnNames": [ - "origin", - "link" - ] - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "txtTocRules", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER NOT NULL, `name` TEXT NOT NULL, `rule` TEXT NOT NULL, `example` TEXT, `serialNumber` INTEGER NOT NULL, `enable` INTEGER NOT NULL, PRIMARY KEY(`id`))", - "fields": [ - { - "fieldPath": "id", - "columnName": "id", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "rule", - "columnName": "rule", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "example", - "columnName": "example", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "serialNumber", - "columnName": "serialNumber", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "enable", - "columnName": "enable", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "autoGenerate": false, - "columnNames": [ - "id" - ] - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "readRecord", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`deviceId` TEXT NOT NULL, `bookName` TEXT NOT NULL, `readTime` INTEGER NOT NULL DEFAULT 0, `lastRead` INTEGER NOT NULL DEFAULT 0, PRIMARY KEY(`deviceId`, `bookName`))", - "fields": [ - { - "fieldPath": "deviceId", - "columnName": "deviceId", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookName", - "columnName": "bookName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "readTime", - "columnName": "readTime", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "lastRead", - "columnName": "lastRead", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - } - ], - "primaryKey": { - "autoGenerate": false, - "columnNames": [ - "deviceId", - "bookName" - ] - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "httpTTS", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER NOT NULL, `name` TEXT NOT NULL, `url` TEXT NOT NULL, `contentType` TEXT, `concurrentRate` TEXT DEFAULT '0', `loginUrl` TEXT, `loginUi` TEXT, `header` TEXT, `jsLib` TEXT, `enabledCookieJar` INTEGER DEFAULT 0, `loginCheckJs` TEXT, `lastUpdateTime` INTEGER NOT NULL DEFAULT 0, PRIMARY KEY(`id`))", - "fields": [ - { - "fieldPath": "id", - "columnName": "id", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "url", - "columnName": "url", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "contentType", - "columnName": "contentType", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "concurrentRate", - "columnName": "concurrentRate", - "affinity": "TEXT", - "notNull": false, - "defaultValue": "'0'" - }, - { - "fieldPath": "loginUrl", - "columnName": "loginUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "loginUi", - "columnName": "loginUi", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "header", - "columnName": "header", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "jsLib", - "columnName": "jsLib", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "enabledCookieJar", - "columnName": "enabledCookieJar", - "affinity": "INTEGER", - "notNull": false, - "defaultValue": "0" - }, - { - "fieldPath": "loginCheckJs", - "columnName": "loginCheckJs", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "lastUpdateTime", - "columnName": "lastUpdateTime", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - } - ], - "primaryKey": { - "autoGenerate": false, - "columnNames": [ - "id" - ] - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "caches", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`key` TEXT NOT NULL, `value` TEXT, `deadline` INTEGER NOT NULL, PRIMARY KEY(`key`))", - "fields": [ - { - "fieldPath": "key", - "columnName": "key", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "value", - "columnName": "value", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "deadline", - "columnName": "deadline", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "autoGenerate": false, - "columnNames": [ - "key" - ] - }, - "indices": [ - { - "name": "index_caches_key", - "unique": true, - "columnNames": [ - "key" - ], - "orders": [], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_caches_key` ON `${TABLE_NAME}` (`key`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "ruleSubs", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER NOT NULL, `name` TEXT NOT NULL, `url` TEXT NOT NULL, `type` INTEGER NOT NULL, `customOrder` INTEGER NOT NULL, `autoUpdate` INTEGER NOT NULL, `update` INTEGER NOT NULL, PRIMARY KEY(`id`))", - "fields": [ - { - "fieldPath": "id", - "columnName": "id", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "url", - "columnName": "url", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "type", - "columnName": "type", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "customOrder", - "columnName": "customOrder", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "autoUpdate", - "columnName": "autoUpdate", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "update", - "columnName": "update", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "autoGenerate": false, - "columnNames": [ - "id" - ] - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "dictRules", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`name` TEXT NOT NULL, `urlRule` TEXT NOT NULL, `showRule` TEXT NOT NULL, `enabled` INTEGER NOT NULL DEFAULT 1, `sortNumber` INTEGER NOT NULL DEFAULT 0, PRIMARY KEY(`name`))", - "fields": [ - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "urlRule", - "columnName": "urlRule", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "showRule", - "columnName": "showRule", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "enabled", - "columnName": "enabled", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "1" - }, - { - "fieldPath": "sortNumber", - "columnName": "sortNumber", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - } - ], - "primaryKey": { - "autoGenerate": false, - "columnNames": [ - "name" - ] - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "keyboardAssists", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`type` INTEGER NOT NULL DEFAULT 0, `key` TEXT NOT NULL DEFAULT '', `value` TEXT NOT NULL DEFAULT '', `serialNo` INTEGER NOT NULL DEFAULT 0, PRIMARY KEY(`type`, `key`))", - "fields": [ - { - "fieldPath": "type", - "columnName": "type", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "key", - "columnName": "key", - "affinity": "TEXT", - "notNull": true, - "defaultValue": "''" - }, - { - "fieldPath": "value", - "columnName": "value", - "affinity": "TEXT", - "notNull": true, - "defaultValue": "''" - }, - { - "fieldPath": "serialNo", - "columnName": "serialNo", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - } - ], - "primaryKey": { - "autoGenerate": false, - "columnNames": [ - "type", - "key" - ] - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "servers", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER NOT NULL, `name` TEXT NOT NULL, `type` TEXT NOT NULL, `config` TEXT, `sortNumber` INTEGER NOT NULL, PRIMARY KEY(`id`))", - "fields": [ - { - "fieldPath": "id", - "columnName": "id", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "type", - "columnName": "type", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "config", - "columnName": "config", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "sortNumber", - "columnName": "sortNumber", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "autoGenerate": false, - "columnNames": [ - "id" - ] - }, - "indices": [], - "foreignKeys": [] - } - ], - "views": [], - "setupQueries": [ - "CREATE TABLE IF NOT EXISTS room_master_table (id INTEGER PRIMARY KEY,identity_hash TEXT)", - "INSERT OR REPLACE INTO room_master_table (id,identity_hash) VALUES(42, '9b6070f339f55e90e4cceaeb89b4a698')" - ] - } -} \ No newline at end of file diff --git a/app/schemas/io.legado.app.data.AppDatabase/69.json b/app/schemas/io.legado.app.data.AppDatabase/69.json deleted file mode 100644 index 2e0deef65..000000000 --- a/app/schemas/io.legado.app.data.AppDatabase/69.json +++ /dev/null @@ -1,1885 +0,0 @@ -{ - "formatVersion": 1, - "database": { - "version": 69, - "identityHash": "9b6070f339f55e90e4cceaeb89b4a698", - "entities": [ - { - "tableName": "books", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`bookUrl` TEXT NOT NULL DEFAULT '', `tocUrl` TEXT NOT NULL DEFAULT '', `origin` TEXT NOT NULL DEFAULT 'loc_book', `originName` TEXT NOT NULL DEFAULT '', `name` TEXT NOT NULL DEFAULT '', `author` TEXT NOT NULL DEFAULT '', `kind` TEXT, `customTag` TEXT, `coverUrl` TEXT, `customCoverUrl` TEXT, `intro` TEXT, `customIntro` TEXT, `charset` TEXT, `type` INTEGER NOT NULL DEFAULT 0, `group` INTEGER NOT NULL DEFAULT 0, `latestChapterTitle` TEXT, `latestChapterTime` INTEGER NOT NULL DEFAULT 0, `lastCheckTime` INTEGER NOT NULL DEFAULT 0, `lastCheckCount` INTEGER NOT NULL DEFAULT 0, `totalChapterNum` INTEGER NOT NULL DEFAULT 0, `durChapterTitle` TEXT, `durChapterIndex` INTEGER NOT NULL DEFAULT 0, `durChapterPos` INTEGER NOT NULL DEFAULT 0, `durChapterTime` INTEGER NOT NULL DEFAULT 0, `wordCount` TEXT, `canUpdate` INTEGER NOT NULL DEFAULT 1, `order` INTEGER NOT NULL DEFAULT 0, `originOrder` INTEGER NOT NULL DEFAULT 0, `variable` TEXT, `readConfig` TEXT, PRIMARY KEY(`bookUrl`))", - "fields": [ - { - "fieldPath": "bookUrl", - "columnName": "bookUrl", - "affinity": "TEXT", - "notNull": true, - "defaultValue": "''" - }, - { - "fieldPath": "tocUrl", - "columnName": "tocUrl", - "affinity": "TEXT", - "notNull": true, - "defaultValue": "''" - }, - { - "fieldPath": "origin", - "columnName": "origin", - "affinity": "TEXT", - "notNull": true, - "defaultValue": "'loc_book'" - }, - { - "fieldPath": "originName", - "columnName": "originName", - "affinity": "TEXT", - "notNull": true, - "defaultValue": "''" - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true, - "defaultValue": "''" - }, - { - "fieldPath": "author", - "columnName": "author", - "affinity": "TEXT", - "notNull": true, - "defaultValue": "''" - }, - { - "fieldPath": "kind", - "columnName": "kind", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "customTag", - "columnName": "customTag", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "coverUrl", - "columnName": "coverUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "customCoverUrl", - "columnName": "customCoverUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "intro", - "columnName": "intro", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "customIntro", - "columnName": "customIntro", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "charset", - "columnName": "charset", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "type", - "columnName": "type", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "group", - "columnName": "group", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "latestChapterTitle", - "columnName": "latestChapterTitle", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "latestChapterTime", - "columnName": "latestChapterTime", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "lastCheckTime", - "columnName": "lastCheckTime", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "lastCheckCount", - "columnName": "lastCheckCount", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "totalChapterNum", - "columnName": "totalChapterNum", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "durChapterTitle", - "columnName": "durChapterTitle", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "durChapterIndex", - "columnName": "durChapterIndex", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "durChapterPos", - "columnName": "durChapterPos", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "durChapterTime", - "columnName": "durChapterTime", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "wordCount", - "columnName": "wordCount", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "canUpdate", - "columnName": "canUpdate", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "1" - }, - { - "fieldPath": "order", - "columnName": "order", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "originOrder", - "columnName": "originOrder", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "variable", - "columnName": "variable", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "readConfig", - "columnName": "readConfig", - "affinity": "TEXT", - "notNull": false - } - ], - "primaryKey": { - "autoGenerate": false, - "columnNames": [ - "bookUrl" - ] - }, - "indices": [ - { - "name": "index_books_name_author", - "unique": true, - "columnNames": [ - "name", - "author" - ], - "orders": [], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_books_name_author` ON `${TABLE_NAME}` (`name`, `author`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "book_groups", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`groupId` INTEGER NOT NULL, `groupName` TEXT NOT NULL, `cover` TEXT, `order` INTEGER NOT NULL, `enableRefresh` INTEGER NOT NULL DEFAULT 1, `show` INTEGER NOT NULL DEFAULT 1, `bookSort` INTEGER NOT NULL DEFAULT -1, PRIMARY KEY(`groupId`))", - "fields": [ - { - "fieldPath": "groupId", - "columnName": "groupId", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "groupName", - "columnName": "groupName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "cover", - "columnName": "cover", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "order", - "columnName": "order", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "enableRefresh", - "columnName": "enableRefresh", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "1" - }, - { - "fieldPath": "show", - "columnName": "show", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "1" - }, - { - "fieldPath": "bookSort", - "columnName": "bookSort", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "-1" - } - ], - "primaryKey": { - "autoGenerate": false, - "columnNames": [ - "groupId" - ] - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "book_sources", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`bookSourceUrl` TEXT NOT NULL, `bookSourceName` TEXT NOT NULL, `bookSourceGroup` TEXT, `bookSourceType` INTEGER NOT NULL, `bookUrlPattern` TEXT, `customOrder` INTEGER NOT NULL DEFAULT 0, `enabled` INTEGER NOT NULL DEFAULT 1, `enabledExplore` INTEGER NOT NULL DEFAULT 1, `jsLib` TEXT, `enabledCookieJar` INTEGER DEFAULT 0, `concurrentRate` TEXT, `header` TEXT, `loginUrl` TEXT, `loginUi` TEXT, `loginCheckJs` TEXT, `coverDecodeJs` TEXT, `bookSourceComment` TEXT, `variableComment` TEXT, `lastUpdateTime` INTEGER NOT NULL, `respondTime` INTEGER NOT NULL, `weight` INTEGER NOT NULL, `exploreUrl` TEXT, `exploreScreen` TEXT, `ruleExplore` TEXT, `searchUrl` TEXT, `ruleSearch` TEXT, `ruleBookInfo` TEXT, `ruleToc` TEXT, `ruleContent` TEXT, `ruleReview` TEXT, PRIMARY KEY(`bookSourceUrl`))", - "fields": [ - { - "fieldPath": "bookSourceUrl", - "columnName": "bookSourceUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookSourceName", - "columnName": "bookSourceName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookSourceGroup", - "columnName": "bookSourceGroup", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "bookSourceType", - "columnName": "bookSourceType", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "bookUrlPattern", - "columnName": "bookUrlPattern", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "customOrder", - "columnName": "customOrder", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "enabled", - "columnName": "enabled", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "1" - }, - { - "fieldPath": "enabledExplore", - "columnName": "enabledExplore", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "1" - }, - { - "fieldPath": "jsLib", - "columnName": "jsLib", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "enabledCookieJar", - "columnName": "enabledCookieJar", - "affinity": "INTEGER", - "notNull": false, - "defaultValue": "0" - }, - { - "fieldPath": "concurrentRate", - "columnName": "concurrentRate", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "header", - "columnName": "header", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "loginUrl", - "columnName": "loginUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "loginUi", - "columnName": "loginUi", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "loginCheckJs", - "columnName": "loginCheckJs", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "coverDecodeJs", - "columnName": "coverDecodeJs", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "bookSourceComment", - "columnName": "bookSourceComment", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "variableComment", - "columnName": "variableComment", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "lastUpdateTime", - "columnName": "lastUpdateTime", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "respondTime", - "columnName": "respondTime", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "weight", - "columnName": "weight", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "exploreUrl", - "columnName": "exploreUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "exploreScreen", - "columnName": "exploreScreen", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleExplore", - "columnName": "ruleExplore", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "searchUrl", - "columnName": "searchUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleSearch", - "columnName": "ruleSearch", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleBookInfo", - "columnName": "ruleBookInfo", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleToc", - "columnName": "ruleToc", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleContent", - "columnName": "ruleContent", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleReview", - "columnName": "ruleReview", - "affinity": "TEXT", - "notNull": false - } - ], - "primaryKey": { - "autoGenerate": false, - "columnNames": [ - "bookSourceUrl" - ] - }, - "indices": [ - { - "name": "index_book_sources_bookSourceUrl", - "unique": false, - "columnNames": [ - "bookSourceUrl" - ], - "orders": [], - "createSql": "CREATE INDEX IF NOT EXISTS `index_book_sources_bookSourceUrl` ON `${TABLE_NAME}` (`bookSourceUrl`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "chapters", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`url` TEXT NOT NULL, `title` TEXT NOT NULL, `isVolume` INTEGER NOT NULL, `baseUrl` TEXT NOT NULL, `bookUrl` TEXT NOT NULL, `index` INTEGER NOT NULL, `isVip` INTEGER NOT NULL, `isPay` INTEGER NOT NULL, `resourceUrl` TEXT, `tag` TEXT, `start` INTEGER, `end` INTEGER, `startFragmentId` TEXT, `endFragmentId` TEXT, `variable` TEXT, PRIMARY KEY(`url`, `bookUrl`), FOREIGN KEY(`bookUrl`) REFERENCES `books`(`bookUrl`) ON UPDATE NO ACTION ON DELETE CASCADE )", - "fields": [ - { - "fieldPath": "url", - "columnName": "url", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "title", - "columnName": "title", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "isVolume", - "columnName": "isVolume", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "baseUrl", - "columnName": "baseUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookUrl", - "columnName": "bookUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "index", - "columnName": "index", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "isVip", - "columnName": "isVip", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "isPay", - "columnName": "isPay", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "resourceUrl", - "columnName": "resourceUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "tag", - "columnName": "tag", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "start", - "columnName": "start", - "affinity": "INTEGER", - "notNull": false - }, - { - "fieldPath": "end", - "columnName": "end", - "affinity": "INTEGER", - "notNull": false - }, - { - "fieldPath": "startFragmentId", - "columnName": "startFragmentId", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "endFragmentId", - "columnName": "endFragmentId", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "variable", - "columnName": "variable", - "affinity": "TEXT", - "notNull": false - } - ], - "primaryKey": { - "autoGenerate": false, - "columnNames": [ - "url", - "bookUrl" - ] - }, - "indices": [ - { - "name": "index_chapters_bookUrl", - "unique": false, - "columnNames": [ - "bookUrl" - ], - "orders": [], - "createSql": "CREATE INDEX IF NOT EXISTS `index_chapters_bookUrl` ON `${TABLE_NAME}` (`bookUrl`)" - }, - { - "name": "index_chapters_bookUrl_index", - "unique": true, - "columnNames": [ - "bookUrl", - "index" - ], - "orders": [], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_chapters_bookUrl_index` ON `${TABLE_NAME}` (`bookUrl`, `index`)" - } - ], - "foreignKeys": [ - { - "table": "books", - "onDelete": "CASCADE", - "onUpdate": "NO ACTION", - "columns": [ - "bookUrl" - ], - "referencedColumns": [ - "bookUrl" - ] - } - ] - }, - { - "tableName": "replace_rules", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, `name` TEXT NOT NULL DEFAULT '', `group` TEXT, `pattern` TEXT NOT NULL DEFAULT '', `replacement` TEXT NOT NULL DEFAULT '', `scope` TEXT, `scopeTitle` INTEGER NOT NULL DEFAULT 0, `scopeContent` INTEGER NOT NULL DEFAULT 1, `excludeScope` TEXT, `isEnabled` INTEGER NOT NULL DEFAULT 1, `isRegex` INTEGER NOT NULL DEFAULT 1, `timeoutMillisecond` INTEGER NOT NULL DEFAULT 3000, `sortOrder` INTEGER NOT NULL DEFAULT 0)", - "fields": [ - { - "fieldPath": "id", - "columnName": "id", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true, - "defaultValue": "''" - }, - { - "fieldPath": "group", - "columnName": "group", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "pattern", - "columnName": "pattern", - "affinity": "TEXT", - "notNull": true, - "defaultValue": "''" - }, - { - "fieldPath": "replacement", - "columnName": "replacement", - "affinity": "TEXT", - "notNull": true, - "defaultValue": "''" - }, - { - "fieldPath": "scope", - "columnName": "scope", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "scopeTitle", - "columnName": "scopeTitle", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "scopeContent", - "columnName": "scopeContent", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "1" - }, - { - "fieldPath": "excludeScope", - "columnName": "excludeScope", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "isEnabled", - "columnName": "isEnabled", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "1" - }, - { - "fieldPath": "isRegex", - "columnName": "isRegex", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "1" - }, - { - "fieldPath": "timeoutMillisecond", - "columnName": "timeoutMillisecond", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "3000" - }, - { - "fieldPath": "order", - "columnName": "sortOrder", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - } - ], - "primaryKey": { - "autoGenerate": true, - "columnNames": [ - "id" - ] - }, - "indices": [ - { - "name": "index_replace_rules_id", - "unique": false, - "columnNames": [ - "id" - ], - "orders": [], - "createSql": "CREATE INDEX IF NOT EXISTS `index_replace_rules_id` ON `${TABLE_NAME}` (`id`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "searchBooks", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`bookUrl` TEXT NOT NULL, `origin` TEXT NOT NULL, `originName` TEXT NOT NULL, `type` INTEGER NOT NULL, `name` TEXT NOT NULL, `author` TEXT NOT NULL, `kind` TEXT, `coverUrl` TEXT, `intro` TEXT, `wordCount` TEXT, `latestChapterTitle` TEXT, `tocUrl` TEXT NOT NULL, `time` INTEGER NOT NULL, `variable` TEXT, `originOrder` INTEGER NOT NULL, `chapterWordCountText` TEXT, `chapterWordCount` INTEGER NOT NULL DEFAULT -1, `respondTime` INTEGER NOT NULL DEFAULT -1, PRIMARY KEY(`bookUrl`), FOREIGN KEY(`origin`) REFERENCES `book_sources`(`bookSourceUrl`) ON UPDATE NO ACTION ON DELETE CASCADE )", - "fields": [ - { - "fieldPath": "bookUrl", - "columnName": "bookUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "origin", - "columnName": "origin", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "originName", - "columnName": "originName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "type", - "columnName": "type", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "author", - "columnName": "author", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "kind", - "columnName": "kind", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "coverUrl", - "columnName": "coverUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "intro", - "columnName": "intro", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "wordCount", - "columnName": "wordCount", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "latestChapterTitle", - "columnName": "latestChapterTitle", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "tocUrl", - "columnName": "tocUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "time", - "columnName": "time", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "variable", - "columnName": "variable", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "originOrder", - "columnName": "originOrder", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "chapterWordCountText", - "columnName": "chapterWordCountText", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "chapterWordCount", - "columnName": "chapterWordCount", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "-1" - }, - { - "fieldPath": "respondTime", - "columnName": "respondTime", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "-1" - } - ], - "primaryKey": { - "autoGenerate": false, - "columnNames": [ - "bookUrl" - ] - }, - "indices": [ - { - "name": "index_searchBooks_bookUrl", - "unique": true, - "columnNames": [ - "bookUrl" - ], - "orders": [], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_searchBooks_bookUrl` ON `${TABLE_NAME}` (`bookUrl`)" - }, - { - "name": "index_searchBooks_origin", - "unique": false, - "columnNames": [ - "origin" - ], - "orders": [], - "createSql": "CREATE INDEX IF NOT EXISTS `index_searchBooks_origin` ON `${TABLE_NAME}` (`origin`)" - } - ], - "foreignKeys": [ - { - "table": "book_sources", - "onDelete": "CASCADE", - "onUpdate": "NO ACTION", - "columns": [ - "origin" - ], - "referencedColumns": [ - "bookSourceUrl" - ] - } - ] - }, - { - "tableName": "search_keywords", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`word` TEXT NOT NULL, `usage` INTEGER NOT NULL, `lastUseTime` INTEGER NOT NULL, PRIMARY KEY(`word`))", - "fields": [ - { - "fieldPath": "word", - "columnName": "word", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "usage", - "columnName": "usage", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "lastUseTime", - "columnName": "lastUseTime", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "autoGenerate": false, - "columnNames": [ - "word" - ] - }, - "indices": [ - { - "name": "index_search_keywords_word", - "unique": true, - "columnNames": [ - "word" - ], - "orders": [], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_search_keywords_word` ON `${TABLE_NAME}` (`word`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "cookies", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`url` TEXT NOT NULL, `cookie` TEXT NOT NULL, PRIMARY KEY(`url`))", - "fields": [ - { - "fieldPath": "url", - "columnName": "url", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "cookie", - "columnName": "cookie", - "affinity": "TEXT", - "notNull": true - } - ], - "primaryKey": { - "autoGenerate": false, - "columnNames": [ - "url" - ] - }, - "indices": [ - { - "name": "index_cookies_url", - "unique": true, - "columnNames": [ - "url" - ], - "orders": [], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_cookies_url` ON `${TABLE_NAME}` (`url`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "rssSources", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`sourceUrl` TEXT NOT NULL, `sourceName` TEXT NOT NULL, `sourceIcon` TEXT NOT NULL, `sourceGroup` TEXT, `sourceComment` TEXT, `enabled` INTEGER NOT NULL, `variableComment` TEXT, `jsLib` TEXT, `enabledCookieJar` INTEGER DEFAULT 0, `concurrentRate` TEXT, `header` TEXT, `loginUrl` TEXT, `loginUi` TEXT, `loginCheckJs` TEXT, `coverDecodeJs` TEXT, `sortUrl` TEXT, `singleUrl` INTEGER NOT NULL, `articleStyle` INTEGER NOT NULL DEFAULT 0, `ruleArticles` TEXT, `ruleNextPage` TEXT, `ruleTitle` TEXT, `rulePubDate` TEXT, `ruleDescription` TEXT, `ruleImage` TEXT, `ruleLink` TEXT, `ruleContent` TEXT, `contentWhitelist` TEXT, `contentBlacklist` TEXT, `style` TEXT, `enableJs` INTEGER NOT NULL DEFAULT 1, `loadWithBaseUrl` INTEGER NOT NULL DEFAULT 1, `injectJs` TEXT, `lastUpdateTime` INTEGER NOT NULL DEFAULT 0, `customOrder` INTEGER NOT NULL DEFAULT 0, PRIMARY KEY(`sourceUrl`))", - "fields": [ - { - "fieldPath": "sourceUrl", - "columnName": "sourceUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "sourceName", - "columnName": "sourceName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "sourceIcon", - "columnName": "sourceIcon", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "sourceGroup", - "columnName": "sourceGroup", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "sourceComment", - "columnName": "sourceComment", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "enabled", - "columnName": "enabled", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "variableComment", - "columnName": "variableComment", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "jsLib", - "columnName": "jsLib", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "enabledCookieJar", - "columnName": "enabledCookieJar", - "affinity": "INTEGER", - "notNull": false, - "defaultValue": "0" - }, - { - "fieldPath": "concurrentRate", - "columnName": "concurrentRate", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "header", - "columnName": "header", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "loginUrl", - "columnName": "loginUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "loginUi", - "columnName": "loginUi", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "loginCheckJs", - "columnName": "loginCheckJs", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "coverDecodeJs", - "columnName": "coverDecodeJs", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "sortUrl", - "columnName": "sortUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "singleUrl", - "columnName": "singleUrl", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "articleStyle", - "columnName": "articleStyle", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "ruleArticles", - "columnName": "ruleArticles", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleNextPage", - "columnName": "ruleNextPage", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleTitle", - "columnName": "ruleTitle", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "rulePubDate", - "columnName": "rulePubDate", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleDescription", - "columnName": "ruleDescription", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleImage", - "columnName": "ruleImage", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleLink", - "columnName": "ruleLink", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleContent", - "columnName": "ruleContent", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "contentWhitelist", - "columnName": "contentWhitelist", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "contentBlacklist", - "columnName": "contentBlacklist", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "style", - "columnName": "style", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "enableJs", - "columnName": "enableJs", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "1" - }, - { - "fieldPath": "loadWithBaseUrl", - "columnName": "loadWithBaseUrl", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "1" - }, - { - "fieldPath": "injectJs", - "columnName": "injectJs", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "lastUpdateTime", - "columnName": "lastUpdateTime", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "customOrder", - "columnName": "customOrder", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - } - ], - "primaryKey": { - "autoGenerate": false, - "columnNames": [ - "sourceUrl" - ] - }, - "indices": [ - { - "name": "index_rssSources_sourceUrl", - "unique": false, - "columnNames": [ - "sourceUrl" - ], - "orders": [], - "createSql": "CREATE INDEX IF NOT EXISTS `index_rssSources_sourceUrl` ON `${TABLE_NAME}` (`sourceUrl`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "bookmarks", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`time` INTEGER NOT NULL, `bookName` TEXT NOT NULL, `bookAuthor` TEXT NOT NULL, `chapterIndex` INTEGER NOT NULL, `chapterPos` INTEGER NOT NULL, `chapterName` TEXT NOT NULL, `bookText` TEXT NOT NULL, `content` TEXT NOT NULL, PRIMARY KEY(`time`))", - "fields": [ - { - "fieldPath": "time", - "columnName": "time", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "bookName", - "columnName": "bookName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookAuthor", - "columnName": "bookAuthor", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "chapterIndex", - "columnName": "chapterIndex", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "chapterPos", - "columnName": "chapterPos", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "chapterName", - "columnName": "chapterName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookText", - "columnName": "bookText", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "content", - "columnName": "content", - "affinity": "TEXT", - "notNull": true - } - ], - "primaryKey": { - "autoGenerate": false, - "columnNames": [ - "time" - ] - }, - "indices": [ - { - "name": "index_bookmarks_bookName_bookAuthor", - "unique": false, - "columnNames": [ - "bookName", - "bookAuthor" - ], - "orders": [], - "createSql": "CREATE INDEX IF NOT EXISTS `index_bookmarks_bookName_bookAuthor` ON `${TABLE_NAME}` (`bookName`, `bookAuthor`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "rssArticles", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`origin` TEXT NOT NULL, `sort` TEXT NOT NULL, `title` TEXT NOT NULL, `order` INTEGER NOT NULL, `link` TEXT NOT NULL, `pubDate` TEXT, `description` TEXT, `content` TEXT, `image` TEXT, `read` INTEGER NOT NULL, `variable` TEXT, PRIMARY KEY(`origin`, `link`))", - "fields": [ - { - "fieldPath": "origin", - "columnName": "origin", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "sort", - "columnName": "sort", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "title", - "columnName": "title", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "order", - "columnName": "order", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "link", - "columnName": "link", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "pubDate", - "columnName": "pubDate", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "description", - "columnName": "description", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "content", - "columnName": "content", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "image", - "columnName": "image", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "read", - "columnName": "read", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "variable", - "columnName": "variable", - "affinity": "TEXT", - "notNull": false - } - ], - "primaryKey": { - "autoGenerate": false, - "columnNames": [ - "origin", - "link" - ] - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "rssReadRecords", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`record` TEXT NOT NULL, `read` INTEGER NOT NULL, PRIMARY KEY(`record`))", - "fields": [ - { - "fieldPath": "record", - "columnName": "record", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "read", - "columnName": "read", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "autoGenerate": false, - "columnNames": [ - "record" - ] - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "rssStars", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`origin` TEXT NOT NULL, `sort` TEXT NOT NULL, `title` TEXT NOT NULL, `starTime` INTEGER NOT NULL, `link` TEXT NOT NULL, `pubDate` TEXT, `description` TEXT, `content` TEXT, `image` TEXT, `variable` TEXT, PRIMARY KEY(`origin`, `link`))", - "fields": [ - { - "fieldPath": "origin", - "columnName": "origin", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "sort", - "columnName": "sort", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "title", - "columnName": "title", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "starTime", - "columnName": "starTime", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "link", - "columnName": "link", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "pubDate", - "columnName": "pubDate", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "description", - "columnName": "description", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "content", - "columnName": "content", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "image", - "columnName": "image", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "variable", - "columnName": "variable", - "affinity": "TEXT", - "notNull": false - } - ], - "primaryKey": { - "autoGenerate": false, - "columnNames": [ - "origin", - "link" - ] - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "txtTocRules", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER NOT NULL, `name` TEXT NOT NULL, `rule` TEXT NOT NULL, `example` TEXT, `serialNumber` INTEGER NOT NULL, `enable` INTEGER NOT NULL, PRIMARY KEY(`id`))", - "fields": [ - { - "fieldPath": "id", - "columnName": "id", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "rule", - "columnName": "rule", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "example", - "columnName": "example", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "serialNumber", - "columnName": "serialNumber", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "enable", - "columnName": "enable", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "autoGenerate": false, - "columnNames": [ - "id" - ] - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "readRecord", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`deviceId` TEXT NOT NULL, `bookName` TEXT NOT NULL, `readTime` INTEGER NOT NULL DEFAULT 0, `lastRead` INTEGER NOT NULL DEFAULT 0, PRIMARY KEY(`deviceId`, `bookName`))", - "fields": [ - { - "fieldPath": "deviceId", - "columnName": "deviceId", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookName", - "columnName": "bookName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "readTime", - "columnName": "readTime", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "lastRead", - "columnName": "lastRead", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - } - ], - "primaryKey": { - "autoGenerate": false, - "columnNames": [ - "deviceId", - "bookName" - ] - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "httpTTS", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER NOT NULL, `name` TEXT NOT NULL, `url` TEXT NOT NULL, `contentType` TEXT, `concurrentRate` TEXT DEFAULT '0', `loginUrl` TEXT, `loginUi` TEXT, `header` TEXT, `jsLib` TEXT, `enabledCookieJar` INTEGER DEFAULT 0, `loginCheckJs` TEXT, `lastUpdateTime` INTEGER NOT NULL DEFAULT 0, PRIMARY KEY(`id`))", - "fields": [ - { - "fieldPath": "id", - "columnName": "id", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "url", - "columnName": "url", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "contentType", - "columnName": "contentType", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "concurrentRate", - "columnName": "concurrentRate", - "affinity": "TEXT", - "notNull": false, - "defaultValue": "'0'" - }, - { - "fieldPath": "loginUrl", - "columnName": "loginUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "loginUi", - "columnName": "loginUi", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "header", - "columnName": "header", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "jsLib", - "columnName": "jsLib", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "enabledCookieJar", - "columnName": "enabledCookieJar", - "affinity": "INTEGER", - "notNull": false, - "defaultValue": "0" - }, - { - "fieldPath": "loginCheckJs", - "columnName": "loginCheckJs", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "lastUpdateTime", - "columnName": "lastUpdateTime", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - } - ], - "primaryKey": { - "autoGenerate": false, - "columnNames": [ - "id" - ] - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "caches", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`key` TEXT NOT NULL, `value` TEXT, `deadline` INTEGER NOT NULL, PRIMARY KEY(`key`))", - "fields": [ - { - "fieldPath": "key", - "columnName": "key", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "value", - "columnName": "value", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "deadline", - "columnName": "deadline", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "autoGenerate": false, - "columnNames": [ - "key" - ] - }, - "indices": [ - { - "name": "index_caches_key", - "unique": true, - "columnNames": [ - "key" - ], - "orders": [], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_caches_key` ON `${TABLE_NAME}` (`key`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "ruleSubs", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER NOT NULL, `name` TEXT NOT NULL, `url` TEXT NOT NULL, `type` INTEGER NOT NULL, `customOrder` INTEGER NOT NULL, `autoUpdate` INTEGER NOT NULL, `update` INTEGER NOT NULL, PRIMARY KEY(`id`))", - "fields": [ - { - "fieldPath": "id", - "columnName": "id", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "url", - "columnName": "url", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "type", - "columnName": "type", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "customOrder", - "columnName": "customOrder", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "autoUpdate", - "columnName": "autoUpdate", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "update", - "columnName": "update", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "autoGenerate": false, - "columnNames": [ - "id" - ] - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "dictRules", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`name` TEXT NOT NULL, `urlRule` TEXT NOT NULL, `showRule` TEXT NOT NULL, `enabled` INTEGER NOT NULL DEFAULT 1, `sortNumber` INTEGER NOT NULL DEFAULT 0, PRIMARY KEY(`name`))", - "fields": [ - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "urlRule", - "columnName": "urlRule", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "showRule", - "columnName": "showRule", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "enabled", - "columnName": "enabled", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "1" - }, - { - "fieldPath": "sortNumber", - "columnName": "sortNumber", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - } - ], - "primaryKey": { - "autoGenerate": false, - "columnNames": [ - "name" - ] - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "keyboardAssists", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`type` INTEGER NOT NULL DEFAULT 0, `key` TEXT NOT NULL DEFAULT '', `value` TEXT NOT NULL DEFAULT '', `serialNo` INTEGER NOT NULL DEFAULT 0, PRIMARY KEY(`type`, `key`))", - "fields": [ - { - "fieldPath": "type", - "columnName": "type", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "key", - "columnName": "key", - "affinity": "TEXT", - "notNull": true, - "defaultValue": "''" - }, - { - "fieldPath": "value", - "columnName": "value", - "affinity": "TEXT", - "notNull": true, - "defaultValue": "''" - }, - { - "fieldPath": "serialNo", - "columnName": "serialNo", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - } - ], - "primaryKey": { - "autoGenerate": false, - "columnNames": [ - "type", - "key" - ] - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "servers", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER NOT NULL, `name` TEXT NOT NULL, `type` TEXT NOT NULL, `config` TEXT, `sortNumber` INTEGER NOT NULL, PRIMARY KEY(`id`))", - "fields": [ - { - "fieldPath": "id", - "columnName": "id", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "type", - "columnName": "type", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "config", - "columnName": "config", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "sortNumber", - "columnName": "sortNumber", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "autoGenerate": false, - "columnNames": [ - "id" - ] - }, - "indices": [], - "foreignKeys": [] - } - ], - "views": [], - "setupQueries": [ - "CREATE TABLE IF NOT EXISTS room_master_table (id INTEGER PRIMARY KEY,identity_hash TEXT)", - "INSERT OR REPLACE INTO room_master_table (id,identity_hash) VALUES(42, '9b6070f339f55e90e4cceaeb89b4a698')" - ] - } -} \ No newline at end of file diff --git a/app/schemas/io.legado.app.data.AppDatabase/7.json b/app/schemas/io.legado.app.data.AppDatabase/7.json deleted file mode 100644 index 3a1fb4165..000000000 --- a/app/schemas/io.legado.app.data.AppDatabase/7.json +++ /dev/null @@ -1,1131 +0,0 @@ -{ - "formatVersion": 1, - "database": { - "version": 7, - "identityHash": "af70ea583587e17c968d29f41bb3c0d6", - "entities": [ - { - "tableName": "books", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`bookUrl` TEXT NOT NULL, `tocUrl` TEXT NOT NULL, `origin` TEXT NOT NULL, `originName` TEXT NOT NULL, `name` TEXT NOT NULL, `author` TEXT NOT NULL, `kind` TEXT, `customTag` TEXT, `coverUrl` TEXT, `customCoverUrl` TEXT, `intro` TEXT, `customIntro` TEXT, `charset` TEXT, `type` INTEGER NOT NULL, `group` INTEGER NOT NULL, `latestChapterTitle` TEXT, `latestChapterTime` INTEGER NOT NULL, `lastCheckTime` INTEGER NOT NULL, `lastCheckCount` INTEGER NOT NULL, `totalChapterNum` INTEGER NOT NULL, `durChapterTitle` TEXT, `durChapterIndex` INTEGER NOT NULL, `durChapterPos` INTEGER NOT NULL, `durChapterTime` INTEGER NOT NULL, `wordCount` TEXT, `canUpdate` INTEGER NOT NULL, `order` INTEGER NOT NULL, `originOrder` INTEGER NOT NULL, `useReplaceRule` INTEGER NOT NULL, `variable` TEXT, PRIMARY KEY(`bookUrl`))", - "fields": [ - { - "fieldPath": "bookUrl", - "columnName": "bookUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "tocUrl", - "columnName": "tocUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "origin", - "columnName": "origin", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "originName", - "columnName": "originName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "author", - "columnName": "author", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "kind", - "columnName": "kind", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "customTag", - "columnName": "customTag", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "coverUrl", - "columnName": "coverUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "customCoverUrl", - "columnName": "customCoverUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "intro", - "columnName": "intro", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "customIntro", - "columnName": "customIntro", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "charset", - "columnName": "charset", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "type", - "columnName": "type", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "group", - "columnName": "group", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "latestChapterTitle", - "columnName": "latestChapterTitle", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "latestChapterTime", - "columnName": "latestChapterTime", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "lastCheckTime", - "columnName": "lastCheckTime", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "lastCheckCount", - "columnName": "lastCheckCount", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "totalChapterNum", - "columnName": "totalChapterNum", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "durChapterTitle", - "columnName": "durChapterTitle", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "durChapterIndex", - "columnName": "durChapterIndex", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "durChapterPos", - "columnName": "durChapterPos", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "durChapterTime", - "columnName": "durChapterTime", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "wordCount", - "columnName": "wordCount", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "canUpdate", - "columnName": "canUpdate", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "order", - "columnName": "order", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "originOrder", - "columnName": "originOrder", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "useReplaceRule", - "columnName": "useReplaceRule", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "variable", - "columnName": "variable", - "affinity": "TEXT", - "notNull": false - } - ], - "primaryKey": { - "columnNames": [ - "bookUrl" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_books_bookUrl", - "unique": true, - "columnNames": [ - "bookUrl" - ], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_books_bookUrl` ON `${TABLE_NAME}` (`bookUrl`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "book_groups", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`groupId` INTEGER NOT NULL, `groupName` TEXT NOT NULL, `order` INTEGER NOT NULL, PRIMARY KEY(`groupId`))", - "fields": [ - { - "fieldPath": "groupId", - "columnName": "groupId", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "groupName", - "columnName": "groupName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "order", - "columnName": "order", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "groupId" - ], - "autoGenerate": false - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "book_sources", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`bookSourceName` TEXT NOT NULL, `bookSourceGroup` TEXT, `bookSourceUrl` TEXT NOT NULL, `bookSourceType` INTEGER NOT NULL, `bookUrlPattern` TEXT, `customOrder` INTEGER NOT NULL, `enabled` INTEGER NOT NULL, `enabledExplore` INTEGER NOT NULL, `header` TEXT, `loginUrl` TEXT, `lastUpdateTime` INTEGER NOT NULL, `weight` INTEGER NOT NULL, `exploreUrl` TEXT, `ruleExplore` TEXT, `searchUrl` TEXT, `ruleSearch` TEXT, `ruleBookInfo` TEXT, `ruleToc` TEXT, `ruleContent` TEXT, PRIMARY KEY(`bookSourceUrl`))", - "fields": [ - { - "fieldPath": "bookSourceName", - "columnName": "bookSourceName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookSourceGroup", - "columnName": "bookSourceGroup", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "bookSourceUrl", - "columnName": "bookSourceUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookSourceType", - "columnName": "bookSourceType", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "bookUrlPattern", - "columnName": "bookUrlPattern", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "customOrder", - "columnName": "customOrder", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "enabled", - "columnName": "enabled", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "enabledExplore", - "columnName": "enabledExplore", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "header", - "columnName": "header", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "loginUrl", - "columnName": "loginUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "lastUpdateTime", - "columnName": "lastUpdateTime", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "weight", - "columnName": "weight", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "exploreUrl", - "columnName": "exploreUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleExplore", - "columnName": "ruleExplore", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "searchUrl", - "columnName": "searchUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleSearch", - "columnName": "ruleSearch", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleBookInfo", - "columnName": "ruleBookInfo", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleToc", - "columnName": "ruleToc", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleContent", - "columnName": "ruleContent", - "affinity": "TEXT", - "notNull": false - } - ], - "primaryKey": { - "columnNames": [ - "bookSourceUrl" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_book_sources_bookSourceUrl", - "unique": false, - "columnNames": [ - "bookSourceUrl" - ], - "createSql": "CREATE INDEX IF NOT EXISTS `index_book_sources_bookSourceUrl` ON `${TABLE_NAME}` (`bookSourceUrl`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "chapters", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`url` TEXT NOT NULL, `title` TEXT NOT NULL, `bookUrl` TEXT NOT NULL, `index` INTEGER NOT NULL, `resourceUrl` TEXT, `tag` TEXT, `start` INTEGER, `end` INTEGER, `variable` TEXT, PRIMARY KEY(`url`, `bookUrl`), FOREIGN KEY(`bookUrl`) REFERENCES `books`(`bookUrl`) ON UPDATE NO ACTION ON DELETE CASCADE )", - "fields": [ - { - "fieldPath": "url", - "columnName": "url", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "title", - "columnName": "title", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookUrl", - "columnName": "bookUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "index", - "columnName": "index", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "resourceUrl", - "columnName": "resourceUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "tag", - "columnName": "tag", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "start", - "columnName": "start", - "affinity": "INTEGER", - "notNull": false - }, - { - "fieldPath": "end", - "columnName": "end", - "affinity": "INTEGER", - "notNull": false - }, - { - "fieldPath": "variable", - "columnName": "variable", - "affinity": "TEXT", - "notNull": false - } - ], - "primaryKey": { - "columnNames": [ - "url", - "bookUrl" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_chapters_bookUrl", - "unique": false, - "columnNames": [ - "bookUrl" - ], - "createSql": "CREATE INDEX IF NOT EXISTS `index_chapters_bookUrl` ON `${TABLE_NAME}` (`bookUrl`)" - }, - { - "name": "index_chapters_bookUrl_index", - "unique": true, - "columnNames": [ - "bookUrl", - "index" - ], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_chapters_bookUrl_index` ON `${TABLE_NAME}` (`bookUrl`, `index`)" - } - ], - "foreignKeys": [ - { - "table": "books", - "onDelete": "CASCADE", - "onUpdate": "NO ACTION", - "columns": [ - "bookUrl" - ], - "referencedColumns": [ - "bookUrl" - ] - } - ] - }, - { - "tableName": "replace_rules", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, `name` TEXT NOT NULL, `group` TEXT, `pattern` TEXT NOT NULL, `replacement` TEXT NOT NULL, `scope` TEXT, `isEnabled` INTEGER NOT NULL, `isRegex` INTEGER NOT NULL, `sortOrder` INTEGER NOT NULL)", - "fields": [ - { - "fieldPath": "id", - "columnName": "id", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "group", - "columnName": "group", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "pattern", - "columnName": "pattern", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "replacement", - "columnName": "replacement", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "scope", - "columnName": "scope", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "isEnabled", - "columnName": "isEnabled", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "isRegex", - "columnName": "isRegex", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "order", - "columnName": "sortOrder", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "id" - ], - "autoGenerate": true - }, - "indices": [ - { - "name": "index_replace_rules_id", - "unique": false, - "columnNames": [ - "id" - ], - "createSql": "CREATE INDEX IF NOT EXISTS `index_replace_rules_id` ON `${TABLE_NAME}` (`id`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "searchBooks", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`bookUrl` TEXT NOT NULL, `origin` TEXT NOT NULL, `originName` TEXT NOT NULL, `type` INTEGER NOT NULL, `name` TEXT NOT NULL, `author` TEXT NOT NULL, `kind` TEXT, `coverUrl` TEXT, `intro` TEXT, `wordCount` TEXT, `latestChapterTitle` TEXT, `tocUrl` TEXT NOT NULL, `time` INTEGER NOT NULL, `variable` TEXT, `originOrder` INTEGER NOT NULL, PRIMARY KEY(`bookUrl`), FOREIGN KEY(`origin`) REFERENCES `book_sources`(`bookSourceUrl`) ON UPDATE NO ACTION ON DELETE CASCADE )", - "fields": [ - { - "fieldPath": "bookUrl", - "columnName": "bookUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "origin", - "columnName": "origin", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "originName", - "columnName": "originName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "type", - "columnName": "type", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "author", - "columnName": "author", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "kind", - "columnName": "kind", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "coverUrl", - "columnName": "coverUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "intro", - "columnName": "intro", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "wordCount", - "columnName": "wordCount", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "latestChapterTitle", - "columnName": "latestChapterTitle", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "tocUrl", - "columnName": "tocUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "time", - "columnName": "time", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "variable", - "columnName": "variable", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "originOrder", - "columnName": "originOrder", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "bookUrl" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_searchBooks_bookUrl", - "unique": true, - "columnNames": [ - "bookUrl" - ], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_searchBooks_bookUrl` ON `${TABLE_NAME}` (`bookUrl`)" - }, - { - "name": "index_searchBooks_origin", - "unique": false, - "columnNames": [ - "origin" - ], - "createSql": "CREATE INDEX IF NOT EXISTS `index_searchBooks_origin` ON `${TABLE_NAME}` (`origin`)" - } - ], - "foreignKeys": [ - { - "table": "book_sources", - "onDelete": "CASCADE", - "onUpdate": "NO ACTION", - "columns": [ - "origin" - ], - "referencedColumns": [ - "bookSourceUrl" - ] - } - ] - }, - { - "tableName": "search_keywords", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`word` TEXT NOT NULL, `usage` INTEGER NOT NULL, `lastUseTime` INTEGER NOT NULL, PRIMARY KEY(`word`))", - "fields": [ - { - "fieldPath": "word", - "columnName": "word", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "usage", - "columnName": "usage", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "lastUseTime", - "columnName": "lastUseTime", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "word" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_search_keywords_word", - "unique": true, - "columnNames": [ - "word" - ], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_search_keywords_word` ON `${TABLE_NAME}` (`word`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "cookies", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`url` TEXT NOT NULL, `cookie` TEXT NOT NULL, PRIMARY KEY(`url`))", - "fields": [ - { - "fieldPath": "url", - "columnName": "url", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "cookie", - "columnName": "cookie", - "affinity": "TEXT", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "url" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_cookies_url", - "unique": true, - "columnNames": [ - "url" - ], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_cookies_url` ON `${TABLE_NAME}` (`url`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "rssSources", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`sourceUrl` TEXT NOT NULL, `sourceName` TEXT NOT NULL, `sourceIcon` TEXT NOT NULL, `sourceGroup` TEXT, `enabled` INTEGER NOT NULL, `ruleArticles` TEXT, `ruleNextPage` TEXT, `ruleTitle` TEXT, `rulePubDate` TEXT, `ruleDescription` TEXT, `ruleImage` TEXT, `ruleLink` TEXT, `ruleContent` TEXT, `header` TEXT, `enableJs` INTEGER NOT NULL, `loadWithBaseUrl` INTEGER NOT NULL, `customOrder` INTEGER NOT NULL, PRIMARY KEY(`sourceUrl`))", - "fields": [ - { - "fieldPath": "sourceUrl", - "columnName": "sourceUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "sourceName", - "columnName": "sourceName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "sourceIcon", - "columnName": "sourceIcon", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "sourceGroup", - "columnName": "sourceGroup", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "enabled", - "columnName": "enabled", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "ruleArticles", - "columnName": "ruleArticles", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleNextPage", - "columnName": "ruleNextPage", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleTitle", - "columnName": "ruleTitle", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "rulePubDate", - "columnName": "rulePubDate", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleDescription", - "columnName": "ruleDescription", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleImage", - "columnName": "ruleImage", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleLink", - "columnName": "ruleLink", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleContent", - "columnName": "ruleContent", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "header", - "columnName": "header", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "enableJs", - "columnName": "enableJs", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "loadWithBaseUrl", - "columnName": "loadWithBaseUrl", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "customOrder", - "columnName": "customOrder", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "sourceUrl" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_rssSources_sourceUrl", - "unique": false, - "columnNames": [ - "sourceUrl" - ], - "createSql": "CREATE INDEX IF NOT EXISTS `index_rssSources_sourceUrl` ON `${TABLE_NAME}` (`sourceUrl`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "bookmarks", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`time` INTEGER NOT NULL, `bookUrl` TEXT NOT NULL, `bookName` TEXT NOT NULL, `chapterIndex` INTEGER NOT NULL, `pageIndex` INTEGER NOT NULL, `chapterName` TEXT NOT NULL, `content` TEXT NOT NULL, PRIMARY KEY(`time`))", - "fields": [ - { - "fieldPath": "time", - "columnName": "time", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "bookUrl", - "columnName": "bookUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookName", - "columnName": "bookName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "chapterIndex", - "columnName": "chapterIndex", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "pageIndex", - "columnName": "pageIndex", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "chapterName", - "columnName": "chapterName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "content", - "columnName": "content", - "affinity": "TEXT", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "time" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_bookmarks_time", - "unique": true, - "columnNames": [ - "time" - ], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_bookmarks_time` ON `${TABLE_NAME}` (`time`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "rssArticles", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`origin` TEXT NOT NULL, `title` TEXT NOT NULL, `order` INTEGER NOT NULL, `link` TEXT NOT NULL, `pubDate` TEXT, `description` TEXT, `content` TEXT, `image` TEXT, `read` INTEGER NOT NULL, PRIMARY KEY(`origin`, `link`))", - "fields": [ - { - "fieldPath": "origin", - "columnName": "origin", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "title", - "columnName": "title", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "order", - "columnName": "order", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "link", - "columnName": "link", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "pubDate", - "columnName": "pubDate", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "description", - "columnName": "description", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "content", - "columnName": "content", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "image", - "columnName": "image", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "read", - "columnName": "read", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "origin", - "link" - ], - "autoGenerate": false - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "rssStars", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`origin` TEXT NOT NULL, `title` TEXT NOT NULL, `starTime` INTEGER NOT NULL, `link` TEXT NOT NULL, `pubDate` TEXT, `description` TEXT, `content` TEXT, `image` TEXT, PRIMARY KEY(`origin`, `link`))", - "fields": [ - { - "fieldPath": "origin", - "columnName": "origin", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "title", - "columnName": "title", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "starTime", - "columnName": "starTime", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "link", - "columnName": "link", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "pubDate", - "columnName": "pubDate", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "description", - "columnName": "description", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "content", - "columnName": "content", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "image", - "columnName": "image", - "affinity": "TEXT", - "notNull": false - } - ], - "primaryKey": { - "columnNames": [ - "origin", - "link" - ], - "autoGenerate": false - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "txtTocRules", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`name` TEXT NOT NULL, `rule` TEXT NOT NULL, `serialNumber` INTEGER NOT NULL, `enable` INTEGER NOT NULL, PRIMARY KEY(`name`))", - "fields": [ - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "rule", - "columnName": "rule", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "serialNumber", - "columnName": "serialNumber", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "enable", - "columnName": "enable", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "name" - ], - "autoGenerate": false - }, - "indices": [], - "foreignKeys": [] - } - ], - "views": [], - "setupQueries": [ - "CREATE TABLE IF NOT EXISTS room_master_table (id INTEGER PRIMARY KEY,identity_hash TEXT)", - "INSERT OR REPLACE INTO room_master_table (id,identity_hash) VALUES(42, 'af70ea583587e17c968d29f41bb3c0d6')" - ] - } -} \ No newline at end of file diff --git a/app/schemas/io.legado.app.data.AppDatabase/70.json b/app/schemas/io.legado.app.data.AppDatabase/70.json deleted file mode 100644 index 515bc2a2a..000000000 --- a/app/schemas/io.legado.app.data.AppDatabase/70.json +++ /dev/null @@ -1,1891 +0,0 @@ -{ - "formatVersion": 1, - "database": { - "version": 70, - "identityHash": "ab3b8675fe5c3152003e20a73f022b0c", - "entities": [ - { - "tableName": "books", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`bookUrl` TEXT NOT NULL DEFAULT '', `tocUrl` TEXT NOT NULL DEFAULT '', `origin` TEXT NOT NULL DEFAULT 'loc_book', `originName` TEXT NOT NULL DEFAULT '', `name` TEXT NOT NULL DEFAULT '', `author` TEXT NOT NULL DEFAULT '', `kind` TEXT, `customTag` TEXT, `coverUrl` TEXT, `customCoverUrl` TEXT, `intro` TEXT, `customIntro` TEXT, `charset` TEXT, `type` INTEGER NOT NULL DEFAULT 0, `group` INTEGER NOT NULL DEFAULT 0, `latestChapterTitle` TEXT, `latestChapterTime` INTEGER NOT NULL DEFAULT 0, `lastCheckTime` INTEGER NOT NULL DEFAULT 0, `lastCheckCount` INTEGER NOT NULL DEFAULT 0, `totalChapterNum` INTEGER NOT NULL DEFAULT 0, `durChapterTitle` TEXT, `durChapterIndex` INTEGER NOT NULL DEFAULT 0, `durChapterPos` INTEGER NOT NULL DEFAULT 0, `durChapterTime` INTEGER NOT NULL DEFAULT 0, `wordCount` TEXT, `canUpdate` INTEGER NOT NULL DEFAULT 1, `order` INTEGER NOT NULL DEFAULT 0, `originOrder` INTEGER NOT NULL DEFAULT 0, `variable` TEXT, `readConfig` TEXT, PRIMARY KEY(`bookUrl`))", - "fields": [ - { - "fieldPath": "bookUrl", - "columnName": "bookUrl", - "affinity": "TEXT", - "notNull": true, - "defaultValue": "''" - }, - { - "fieldPath": "tocUrl", - "columnName": "tocUrl", - "affinity": "TEXT", - "notNull": true, - "defaultValue": "''" - }, - { - "fieldPath": "origin", - "columnName": "origin", - "affinity": "TEXT", - "notNull": true, - "defaultValue": "'loc_book'" - }, - { - "fieldPath": "originName", - "columnName": "originName", - "affinity": "TEXT", - "notNull": true, - "defaultValue": "''" - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true, - "defaultValue": "''" - }, - { - "fieldPath": "author", - "columnName": "author", - "affinity": "TEXT", - "notNull": true, - "defaultValue": "''" - }, - { - "fieldPath": "kind", - "columnName": "kind", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "customTag", - "columnName": "customTag", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "coverUrl", - "columnName": "coverUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "customCoverUrl", - "columnName": "customCoverUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "intro", - "columnName": "intro", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "customIntro", - "columnName": "customIntro", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "charset", - "columnName": "charset", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "type", - "columnName": "type", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "group", - "columnName": "group", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "latestChapterTitle", - "columnName": "latestChapterTitle", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "latestChapterTime", - "columnName": "latestChapterTime", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "lastCheckTime", - "columnName": "lastCheckTime", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "lastCheckCount", - "columnName": "lastCheckCount", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "totalChapterNum", - "columnName": "totalChapterNum", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "durChapterTitle", - "columnName": "durChapterTitle", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "durChapterIndex", - "columnName": "durChapterIndex", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "durChapterPos", - "columnName": "durChapterPos", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "durChapterTime", - "columnName": "durChapterTime", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "wordCount", - "columnName": "wordCount", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "canUpdate", - "columnName": "canUpdate", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "1" - }, - { - "fieldPath": "order", - "columnName": "order", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "originOrder", - "columnName": "originOrder", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "variable", - "columnName": "variable", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "readConfig", - "columnName": "readConfig", - "affinity": "TEXT", - "notNull": false - } - ], - "primaryKey": { - "autoGenerate": false, - "columnNames": [ - "bookUrl" - ] - }, - "indices": [ - { - "name": "index_books_name_author", - "unique": true, - "columnNames": [ - "name", - "author" - ], - "orders": [], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_books_name_author` ON `${TABLE_NAME}` (`name`, `author`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "book_groups", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`groupId` INTEGER NOT NULL, `groupName` TEXT NOT NULL, `cover` TEXT, `order` INTEGER NOT NULL, `enableRefresh` INTEGER NOT NULL DEFAULT 1, `show` INTEGER NOT NULL DEFAULT 1, `bookSort` INTEGER NOT NULL DEFAULT -1, PRIMARY KEY(`groupId`))", - "fields": [ - { - "fieldPath": "groupId", - "columnName": "groupId", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "groupName", - "columnName": "groupName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "cover", - "columnName": "cover", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "order", - "columnName": "order", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "enableRefresh", - "columnName": "enableRefresh", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "1" - }, - { - "fieldPath": "show", - "columnName": "show", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "1" - }, - { - "fieldPath": "bookSort", - "columnName": "bookSort", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "-1" - } - ], - "primaryKey": { - "autoGenerate": false, - "columnNames": [ - "groupId" - ] - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "book_sources", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`bookSourceUrl` TEXT NOT NULL, `bookSourceName` TEXT NOT NULL, `bookSourceGroup` TEXT, `bookSourceType` INTEGER NOT NULL, `bookUrlPattern` TEXT, `customOrder` INTEGER NOT NULL DEFAULT 0, `enabled` INTEGER NOT NULL DEFAULT 1, `enabledExplore` INTEGER NOT NULL DEFAULT 1, `jsLib` TEXT, `enabledCookieJar` INTEGER DEFAULT 0, `concurrentRate` TEXT, `header` TEXT, `loginUrl` TEXT, `loginUi` TEXT, `loginCheckJs` TEXT, `coverDecodeJs` TEXT, `bookSourceComment` TEXT, `variableComment` TEXT, `lastUpdateTime` INTEGER NOT NULL, `respondTime` INTEGER NOT NULL, `weight` INTEGER NOT NULL, `exploreUrl` TEXT, `exploreScreen` TEXT, `ruleExplore` TEXT, `searchUrl` TEXT, `ruleSearch` TEXT, `ruleBookInfo` TEXT, `ruleToc` TEXT, `ruleContent` TEXT, `ruleReview` TEXT, PRIMARY KEY(`bookSourceUrl`))", - "fields": [ - { - "fieldPath": "bookSourceUrl", - "columnName": "bookSourceUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookSourceName", - "columnName": "bookSourceName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookSourceGroup", - "columnName": "bookSourceGroup", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "bookSourceType", - "columnName": "bookSourceType", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "bookUrlPattern", - "columnName": "bookUrlPattern", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "customOrder", - "columnName": "customOrder", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "enabled", - "columnName": "enabled", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "1" - }, - { - "fieldPath": "enabledExplore", - "columnName": "enabledExplore", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "1" - }, - { - "fieldPath": "jsLib", - "columnName": "jsLib", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "enabledCookieJar", - "columnName": "enabledCookieJar", - "affinity": "INTEGER", - "notNull": false, - "defaultValue": "0" - }, - { - "fieldPath": "concurrentRate", - "columnName": "concurrentRate", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "header", - "columnName": "header", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "loginUrl", - "columnName": "loginUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "loginUi", - "columnName": "loginUi", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "loginCheckJs", - "columnName": "loginCheckJs", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "coverDecodeJs", - "columnName": "coverDecodeJs", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "bookSourceComment", - "columnName": "bookSourceComment", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "variableComment", - "columnName": "variableComment", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "lastUpdateTime", - "columnName": "lastUpdateTime", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "respondTime", - "columnName": "respondTime", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "weight", - "columnName": "weight", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "exploreUrl", - "columnName": "exploreUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "exploreScreen", - "columnName": "exploreScreen", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleExplore", - "columnName": "ruleExplore", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "searchUrl", - "columnName": "searchUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleSearch", - "columnName": "ruleSearch", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleBookInfo", - "columnName": "ruleBookInfo", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleToc", - "columnName": "ruleToc", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleContent", - "columnName": "ruleContent", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleReview", - "columnName": "ruleReview", - "affinity": "TEXT", - "notNull": false - } - ], - "primaryKey": { - "autoGenerate": false, - "columnNames": [ - "bookSourceUrl" - ] - }, - "indices": [ - { - "name": "index_book_sources_bookSourceUrl", - "unique": false, - "columnNames": [ - "bookSourceUrl" - ], - "orders": [], - "createSql": "CREATE INDEX IF NOT EXISTS `index_book_sources_bookSourceUrl` ON `${TABLE_NAME}` (`bookSourceUrl`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "chapters", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`url` TEXT NOT NULL, `title` TEXT NOT NULL, `isVolume` INTEGER NOT NULL, `baseUrl` TEXT NOT NULL, `bookUrl` TEXT NOT NULL, `index` INTEGER NOT NULL, `isVip` INTEGER NOT NULL, `isPay` INTEGER NOT NULL, `resourceUrl` TEXT, `tag` TEXT, `start` INTEGER, `end` INTEGER, `startFragmentId` TEXT, `endFragmentId` TEXT, `variable` TEXT, PRIMARY KEY(`url`, `bookUrl`), FOREIGN KEY(`bookUrl`) REFERENCES `books`(`bookUrl`) ON UPDATE NO ACTION ON DELETE CASCADE )", - "fields": [ - { - "fieldPath": "url", - "columnName": "url", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "title", - "columnName": "title", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "isVolume", - "columnName": "isVolume", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "baseUrl", - "columnName": "baseUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookUrl", - "columnName": "bookUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "index", - "columnName": "index", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "isVip", - "columnName": "isVip", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "isPay", - "columnName": "isPay", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "resourceUrl", - "columnName": "resourceUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "tag", - "columnName": "tag", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "start", - "columnName": "start", - "affinity": "INTEGER", - "notNull": false - }, - { - "fieldPath": "end", - "columnName": "end", - "affinity": "INTEGER", - "notNull": false - }, - { - "fieldPath": "startFragmentId", - "columnName": "startFragmentId", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "endFragmentId", - "columnName": "endFragmentId", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "variable", - "columnName": "variable", - "affinity": "TEXT", - "notNull": false - } - ], - "primaryKey": { - "autoGenerate": false, - "columnNames": [ - "url", - "bookUrl" - ] - }, - "indices": [ - { - "name": "index_chapters_bookUrl", - "unique": false, - "columnNames": [ - "bookUrl" - ], - "orders": [], - "createSql": "CREATE INDEX IF NOT EXISTS `index_chapters_bookUrl` ON `${TABLE_NAME}` (`bookUrl`)" - }, - { - "name": "index_chapters_bookUrl_index", - "unique": true, - "columnNames": [ - "bookUrl", - "index" - ], - "orders": [], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_chapters_bookUrl_index` ON `${TABLE_NAME}` (`bookUrl`, `index`)" - } - ], - "foreignKeys": [ - { - "table": "books", - "onDelete": "CASCADE", - "onUpdate": "NO ACTION", - "columns": [ - "bookUrl" - ], - "referencedColumns": [ - "bookUrl" - ] - } - ] - }, - { - "tableName": "replace_rules", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, `name` TEXT NOT NULL DEFAULT '', `group` TEXT, `pattern` TEXT NOT NULL DEFAULT '', `replacement` TEXT NOT NULL DEFAULT '', `scope` TEXT, `scopeTitle` INTEGER NOT NULL DEFAULT 0, `scopeContent` INTEGER NOT NULL DEFAULT 1, `excludeScope` TEXT, `isEnabled` INTEGER NOT NULL DEFAULT 1, `isRegex` INTEGER NOT NULL DEFAULT 1, `timeoutMillisecond` INTEGER NOT NULL DEFAULT 3000, `sortOrder` INTEGER NOT NULL DEFAULT 0)", - "fields": [ - { - "fieldPath": "id", - "columnName": "id", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true, - "defaultValue": "''" - }, - { - "fieldPath": "group", - "columnName": "group", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "pattern", - "columnName": "pattern", - "affinity": "TEXT", - "notNull": true, - "defaultValue": "''" - }, - { - "fieldPath": "replacement", - "columnName": "replacement", - "affinity": "TEXT", - "notNull": true, - "defaultValue": "''" - }, - { - "fieldPath": "scope", - "columnName": "scope", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "scopeTitle", - "columnName": "scopeTitle", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "scopeContent", - "columnName": "scopeContent", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "1" - }, - { - "fieldPath": "excludeScope", - "columnName": "excludeScope", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "isEnabled", - "columnName": "isEnabled", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "1" - }, - { - "fieldPath": "isRegex", - "columnName": "isRegex", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "1" - }, - { - "fieldPath": "timeoutMillisecond", - "columnName": "timeoutMillisecond", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "3000" - }, - { - "fieldPath": "order", - "columnName": "sortOrder", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - } - ], - "primaryKey": { - "autoGenerate": true, - "columnNames": [ - "id" - ] - }, - "indices": [ - { - "name": "index_replace_rules_id", - "unique": false, - "columnNames": [ - "id" - ], - "orders": [], - "createSql": "CREATE INDEX IF NOT EXISTS `index_replace_rules_id` ON `${TABLE_NAME}` (`id`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "searchBooks", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`bookUrl` TEXT NOT NULL, `origin` TEXT NOT NULL, `originName` TEXT NOT NULL, `type` INTEGER NOT NULL, `name` TEXT NOT NULL, `author` TEXT NOT NULL, `kind` TEXT, `coverUrl` TEXT, `intro` TEXT, `wordCount` TEXT, `latestChapterTitle` TEXT, `tocUrl` TEXT NOT NULL, `time` INTEGER NOT NULL, `variable` TEXT, `originOrder` INTEGER NOT NULL, `chapterWordCountText` TEXT, `chapterWordCount` INTEGER NOT NULL DEFAULT -1, `respondTime` INTEGER NOT NULL DEFAULT -1, PRIMARY KEY(`bookUrl`), FOREIGN KEY(`origin`) REFERENCES `book_sources`(`bookSourceUrl`) ON UPDATE NO ACTION ON DELETE CASCADE )", - "fields": [ - { - "fieldPath": "bookUrl", - "columnName": "bookUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "origin", - "columnName": "origin", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "originName", - "columnName": "originName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "type", - "columnName": "type", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "author", - "columnName": "author", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "kind", - "columnName": "kind", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "coverUrl", - "columnName": "coverUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "intro", - "columnName": "intro", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "wordCount", - "columnName": "wordCount", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "latestChapterTitle", - "columnName": "latestChapterTitle", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "tocUrl", - "columnName": "tocUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "time", - "columnName": "time", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "variable", - "columnName": "variable", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "originOrder", - "columnName": "originOrder", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "chapterWordCountText", - "columnName": "chapterWordCountText", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "chapterWordCount", - "columnName": "chapterWordCount", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "-1" - }, - { - "fieldPath": "respondTime", - "columnName": "respondTime", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "-1" - } - ], - "primaryKey": { - "autoGenerate": false, - "columnNames": [ - "bookUrl" - ] - }, - "indices": [ - { - "name": "index_searchBooks_bookUrl", - "unique": true, - "columnNames": [ - "bookUrl" - ], - "orders": [], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_searchBooks_bookUrl` ON `${TABLE_NAME}` (`bookUrl`)" - }, - { - "name": "index_searchBooks_origin", - "unique": false, - "columnNames": [ - "origin" - ], - "orders": [], - "createSql": "CREATE INDEX IF NOT EXISTS `index_searchBooks_origin` ON `${TABLE_NAME}` (`origin`)" - } - ], - "foreignKeys": [ - { - "table": "book_sources", - "onDelete": "CASCADE", - "onUpdate": "NO ACTION", - "columns": [ - "origin" - ], - "referencedColumns": [ - "bookSourceUrl" - ] - } - ] - }, - { - "tableName": "search_keywords", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`word` TEXT NOT NULL, `usage` INTEGER NOT NULL, `lastUseTime` INTEGER NOT NULL, PRIMARY KEY(`word`))", - "fields": [ - { - "fieldPath": "word", - "columnName": "word", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "usage", - "columnName": "usage", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "lastUseTime", - "columnName": "lastUseTime", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "autoGenerate": false, - "columnNames": [ - "word" - ] - }, - "indices": [ - { - "name": "index_search_keywords_word", - "unique": true, - "columnNames": [ - "word" - ], - "orders": [], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_search_keywords_word` ON `${TABLE_NAME}` (`word`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "cookies", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`url` TEXT NOT NULL, `cookie` TEXT NOT NULL, PRIMARY KEY(`url`))", - "fields": [ - { - "fieldPath": "url", - "columnName": "url", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "cookie", - "columnName": "cookie", - "affinity": "TEXT", - "notNull": true - } - ], - "primaryKey": { - "autoGenerate": false, - "columnNames": [ - "url" - ] - }, - "indices": [ - { - "name": "index_cookies_url", - "unique": true, - "columnNames": [ - "url" - ], - "orders": [], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_cookies_url` ON `${TABLE_NAME}` (`url`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "rssSources", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`sourceUrl` TEXT NOT NULL, `sourceName` TEXT NOT NULL, `sourceIcon` TEXT NOT NULL, `sourceGroup` TEXT, `sourceComment` TEXT, `enabled` INTEGER NOT NULL, `variableComment` TEXT, `jsLib` TEXT, `enabledCookieJar` INTEGER DEFAULT 0, `concurrentRate` TEXT, `header` TEXT, `loginUrl` TEXT, `loginUi` TEXT, `loginCheckJs` TEXT, `coverDecodeJs` TEXT, `sortUrl` TEXT, `singleUrl` INTEGER NOT NULL, `articleStyle` INTEGER NOT NULL DEFAULT 0, `ruleArticles` TEXT, `ruleNextPage` TEXT, `ruleTitle` TEXT, `rulePubDate` TEXT, `ruleDescription` TEXT, `ruleImage` TEXT, `ruleLink` TEXT, `ruleContent` TEXT, `contentWhitelist` TEXT, `contentBlacklist` TEXT, `shouldOverrideUrlLoading` TEXT, `style` TEXT, `enableJs` INTEGER NOT NULL DEFAULT 1, `loadWithBaseUrl` INTEGER NOT NULL DEFAULT 1, `injectJs` TEXT, `lastUpdateTime` INTEGER NOT NULL DEFAULT 0, `customOrder` INTEGER NOT NULL DEFAULT 0, PRIMARY KEY(`sourceUrl`))", - "fields": [ - { - "fieldPath": "sourceUrl", - "columnName": "sourceUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "sourceName", - "columnName": "sourceName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "sourceIcon", - "columnName": "sourceIcon", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "sourceGroup", - "columnName": "sourceGroup", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "sourceComment", - "columnName": "sourceComment", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "enabled", - "columnName": "enabled", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "variableComment", - "columnName": "variableComment", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "jsLib", - "columnName": "jsLib", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "enabledCookieJar", - "columnName": "enabledCookieJar", - "affinity": "INTEGER", - "notNull": false, - "defaultValue": "0" - }, - { - "fieldPath": "concurrentRate", - "columnName": "concurrentRate", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "header", - "columnName": "header", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "loginUrl", - "columnName": "loginUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "loginUi", - "columnName": "loginUi", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "loginCheckJs", - "columnName": "loginCheckJs", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "coverDecodeJs", - "columnName": "coverDecodeJs", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "sortUrl", - "columnName": "sortUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "singleUrl", - "columnName": "singleUrl", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "articleStyle", - "columnName": "articleStyle", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "ruleArticles", - "columnName": "ruleArticles", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleNextPage", - "columnName": "ruleNextPage", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleTitle", - "columnName": "ruleTitle", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "rulePubDate", - "columnName": "rulePubDate", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleDescription", - "columnName": "ruleDescription", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleImage", - "columnName": "ruleImage", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleLink", - "columnName": "ruleLink", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleContent", - "columnName": "ruleContent", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "contentWhitelist", - "columnName": "contentWhitelist", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "contentBlacklist", - "columnName": "contentBlacklist", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "shouldOverrideUrlLoading", - "columnName": "shouldOverrideUrlLoading", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "style", - "columnName": "style", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "enableJs", - "columnName": "enableJs", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "1" - }, - { - "fieldPath": "loadWithBaseUrl", - "columnName": "loadWithBaseUrl", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "1" - }, - { - "fieldPath": "injectJs", - "columnName": "injectJs", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "lastUpdateTime", - "columnName": "lastUpdateTime", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "customOrder", - "columnName": "customOrder", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - } - ], - "primaryKey": { - "autoGenerate": false, - "columnNames": [ - "sourceUrl" - ] - }, - "indices": [ - { - "name": "index_rssSources_sourceUrl", - "unique": false, - "columnNames": [ - "sourceUrl" - ], - "orders": [], - "createSql": "CREATE INDEX IF NOT EXISTS `index_rssSources_sourceUrl` ON `${TABLE_NAME}` (`sourceUrl`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "bookmarks", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`time` INTEGER NOT NULL, `bookName` TEXT NOT NULL, `bookAuthor` TEXT NOT NULL, `chapterIndex` INTEGER NOT NULL, `chapterPos` INTEGER NOT NULL, `chapterName` TEXT NOT NULL, `bookText` TEXT NOT NULL, `content` TEXT NOT NULL, PRIMARY KEY(`time`))", - "fields": [ - { - "fieldPath": "time", - "columnName": "time", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "bookName", - "columnName": "bookName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookAuthor", - "columnName": "bookAuthor", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "chapterIndex", - "columnName": "chapterIndex", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "chapterPos", - "columnName": "chapterPos", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "chapterName", - "columnName": "chapterName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookText", - "columnName": "bookText", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "content", - "columnName": "content", - "affinity": "TEXT", - "notNull": true - } - ], - "primaryKey": { - "autoGenerate": false, - "columnNames": [ - "time" - ] - }, - "indices": [ - { - "name": "index_bookmarks_bookName_bookAuthor", - "unique": false, - "columnNames": [ - "bookName", - "bookAuthor" - ], - "orders": [], - "createSql": "CREATE INDEX IF NOT EXISTS `index_bookmarks_bookName_bookAuthor` ON `${TABLE_NAME}` (`bookName`, `bookAuthor`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "rssArticles", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`origin` TEXT NOT NULL, `sort` TEXT NOT NULL, `title` TEXT NOT NULL, `order` INTEGER NOT NULL, `link` TEXT NOT NULL, `pubDate` TEXT, `description` TEXT, `content` TEXT, `image` TEXT, `read` INTEGER NOT NULL, `variable` TEXT, PRIMARY KEY(`origin`, `link`))", - "fields": [ - { - "fieldPath": "origin", - "columnName": "origin", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "sort", - "columnName": "sort", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "title", - "columnName": "title", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "order", - "columnName": "order", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "link", - "columnName": "link", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "pubDate", - "columnName": "pubDate", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "description", - "columnName": "description", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "content", - "columnName": "content", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "image", - "columnName": "image", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "read", - "columnName": "read", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "variable", - "columnName": "variable", - "affinity": "TEXT", - "notNull": false - } - ], - "primaryKey": { - "autoGenerate": false, - "columnNames": [ - "origin", - "link" - ] - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "rssReadRecords", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`record` TEXT NOT NULL, `read` INTEGER NOT NULL, PRIMARY KEY(`record`))", - "fields": [ - { - "fieldPath": "record", - "columnName": "record", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "read", - "columnName": "read", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "autoGenerate": false, - "columnNames": [ - "record" - ] - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "rssStars", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`origin` TEXT NOT NULL, `sort` TEXT NOT NULL, `title` TEXT NOT NULL, `starTime` INTEGER NOT NULL, `link` TEXT NOT NULL, `pubDate` TEXT, `description` TEXT, `content` TEXT, `image` TEXT, `variable` TEXT, PRIMARY KEY(`origin`, `link`))", - "fields": [ - { - "fieldPath": "origin", - "columnName": "origin", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "sort", - "columnName": "sort", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "title", - "columnName": "title", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "starTime", - "columnName": "starTime", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "link", - "columnName": "link", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "pubDate", - "columnName": "pubDate", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "description", - "columnName": "description", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "content", - "columnName": "content", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "image", - "columnName": "image", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "variable", - "columnName": "variable", - "affinity": "TEXT", - "notNull": false - } - ], - "primaryKey": { - "autoGenerate": false, - "columnNames": [ - "origin", - "link" - ] - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "txtTocRules", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER NOT NULL, `name` TEXT NOT NULL, `rule` TEXT NOT NULL, `example` TEXT, `serialNumber` INTEGER NOT NULL, `enable` INTEGER NOT NULL, PRIMARY KEY(`id`))", - "fields": [ - { - "fieldPath": "id", - "columnName": "id", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "rule", - "columnName": "rule", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "example", - "columnName": "example", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "serialNumber", - "columnName": "serialNumber", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "enable", - "columnName": "enable", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "autoGenerate": false, - "columnNames": [ - "id" - ] - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "readRecord", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`deviceId` TEXT NOT NULL, `bookName` TEXT NOT NULL, `readTime` INTEGER NOT NULL DEFAULT 0, `lastRead` INTEGER NOT NULL DEFAULT 0, PRIMARY KEY(`deviceId`, `bookName`))", - "fields": [ - { - "fieldPath": "deviceId", - "columnName": "deviceId", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookName", - "columnName": "bookName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "readTime", - "columnName": "readTime", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "lastRead", - "columnName": "lastRead", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - } - ], - "primaryKey": { - "autoGenerate": false, - "columnNames": [ - "deviceId", - "bookName" - ] - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "httpTTS", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER NOT NULL, `name` TEXT NOT NULL, `url` TEXT NOT NULL, `contentType` TEXT, `concurrentRate` TEXT DEFAULT '0', `loginUrl` TEXT, `loginUi` TEXT, `header` TEXT, `jsLib` TEXT, `enabledCookieJar` INTEGER DEFAULT 0, `loginCheckJs` TEXT, `lastUpdateTime` INTEGER NOT NULL DEFAULT 0, PRIMARY KEY(`id`))", - "fields": [ - { - "fieldPath": "id", - "columnName": "id", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "url", - "columnName": "url", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "contentType", - "columnName": "contentType", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "concurrentRate", - "columnName": "concurrentRate", - "affinity": "TEXT", - "notNull": false, - "defaultValue": "'0'" - }, - { - "fieldPath": "loginUrl", - "columnName": "loginUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "loginUi", - "columnName": "loginUi", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "header", - "columnName": "header", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "jsLib", - "columnName": "jsLib", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "enabledCookieJar", - "columnName": "enabledCookieJar", - "affinity": "INTEGER", - "notNull": false, - "defaultValue": "0" - }, - { - "fieldPath": "loginCheckJs", - "columnName": "loginCheckJs", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "lastUpdateTime", - "columnName": "lastUpdateTime", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - } - ], - "primaryKey": { - "autoGenerate": false, - "columnNames": [ - "id" - ] - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "caches", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`key` TEXT NOT NULL, `value` TEXT, `deadline` INTEGER NOT NULL, PRIMARY KEY(`key`))", - "fields": [ - { - "fieldPath": "key", - "columnName": "key", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "value", - "columnName": "value", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "deadline", - "columnName": "deadline", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "autoGenerate": false, - "columnNames": [ - "key" - ] - }, - "indices": [ - { - "name": "index_caches_key", - "unique": true, - "columnNames": [ - "key" - ], - "orders": [], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_caches_key` ON `${TABLE_NAME}` (`key`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "ruleSubs", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER NOT NULL, `name` TEXT NOT NULL, `url` TEXT NOT NULL, `type` INTEGER NOT NULL, `customOrder` INTEGER NOT NULL, `autoUpdate` INTEGER NOT NULL, `update` INTEGER NOT NULL, PRIMARY KEY(`id`))", - "fields": [ - { - "fieldPath": "id", - "columnName": "id", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "url", - "columnName": "url", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "type", - "columnName": "type", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "customOrder", - "columnName": "customOrder", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "autoUpdate", - "columnName": "autoUpdate", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "update", - "columnName": "update", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "autoGenerate": false, - "columnNames": [ - "id" - ] - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "dictRules", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`name` TEXT NOT NULL, `urlRule` TEXT NOT NULL, `showRule` TEXT NOT NULL, `enabled` INTEGER NOT NULL DEFAULT 1, `sortNumber` INTEGER NOT NULL DEFAULT 0, PRIMARY KEY(`name`))", - "fields": [ - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "urlRule", - "columnName": "urlRule", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "showRule", - "columnName": "showRule", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "enabled", - "columnName": "enabled", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "1" - }, - { - "fieldPath": "sortNumber", - "columnName": "sortNumber", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - } - ], - "primaryKey": { - "autoGenerate": false, - "columnNames": [ - "name" - ] - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "keyboardAssists", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`type` INTEGER NOT NULL DEFAULT 0, `key` TEXT NOT NULL DEFAULT '', `value` TEXT NOT NULL DEFAULT '', `serialNo` INTEGER NOT NULL DEFAULT 0, PRIMARY KEY(`type`, `key`))", - "fields": [ - { - "fieldPath": "type", - "columnName": "type", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "key", - "columnName": "key", - "affinity": "TEXT", - "notNull": true, - "defaultValue": "''" - }, - { - "fieldPath": "value", - "columnName": "value", - "affinity": "TEXT", - "notNull": true, - "defaultValue": "''" - }, - { - "fieldPath": "serialNo", - "columnName": "serialNo", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - } - ], - "primaryKey": { - "autoGenerate": false, - "columnNames": [ - "type", - "key" - ] - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "servers", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER NOT NULL, `name` TEXT NOT NULL, `type` TEXT NOT NULL, `config` TEXT, `sortNumber` INTEGER NOT NULL, PRIMARY KEY(`id`))", - "fields": [ - { - "fieldPath": "id", - "columnName": "id", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "type", - "columnName": "type", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "config", - "columnName": "config", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "sortNumber", - "columnName": "sortNumber", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "autoGenerate": false, - "columnNames": [ - "id" - ] - }, - "indices": [], - "foreignKeys": [] - } - ], - "views": [], - "setupQueries": [ - "CREATE TABLE IF NOT EXISTS room_master_table (id INTEGER PRIMARY KEY,identity_hash TEXT)", - "INSERT OR REPLACE INTO room_master_table (id,identity_hash) VALUES(42, 'ab3b8675fe5c3152003e20a73f022b0c')" - ] - } -} \ No newline at end of file diff --git a/app/schemas/io.legado.app.data.AppDatabase/71.json b/app/schemas/io.legado.app.data.AppDatabase/71.json deleted file mode 100644 index 48c7d4139..000000000 --- a/app/schemas/io.legado.app.data.AppDatabase/71.json +++ /dev/null @@ -1,1898 +0,0 @@ -{ - "formatVersion": 1, - "database": { - "version": 71, - "identityHash": "6e17b5366286b868f2912c12d6d8e467", - "entities": [ - { - "tableName": "books", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`bookUrl` TEXT NOT NULL DEFAULT '', `tocUrl` TEXT NOT NULL DEFAULT '', `origin` TEXT NOT NULL DEFAULT 'loc_book', `originName` TEXT NOT NULL DEFAULT '', `name` TEXT NOT NULL DEFAULT '', `author` TEXT NOT NULL DEFAULT '', `kind` TEXT, `customTag` TEXT, `coverUrl` TEXT, `customCoverUrl` TEXT, `intro` TEXT, `customIntro` TEXT, `charset` TEXT, `type` INTEGER NOT NULL DEFAULT 0, `group` INTEGER NOT NULL DEFAULT 0, `latestChapterTitle` TEXT, `latestChapterTime` INTEGER NOT NULL DEFAULT 0, `lastCheckTime` INTEGER NOT NULL DEFAULT 0, `lastCheckCount` INTEGER NOT NULL DEFAULT 0, `totalChapterNum` INTEGER NOT NULL DEFAULT 0, `durChapterTitle` TEXT, `durChapterIndex` INTEGER NOT NULL DEFAULT 0, `durChapterPos` INTEGER NOT NULL DEFAULT 0, `durChapterTime` INTEGER NOT NULL DEFAULT 0, `wordCount` TEXT, `canUpdate` INTEGER NOT NULL DEFAULT 1, `order` INTEGER NOT NULL DEFAULT 0, `originOrder` INTEGER NOT NULL DEFAULT 0, `variable` TEXT, `readConfig` TEXT, `syncTime` INTEGER NOT NULL DEFAULT 0, PRIMARY KEY(`bookUrl`))", - "fields": [ - { - "fieldPath": "bookUrl", - "columnName": "bookUrl", - "affinity": "TEXT", - "notNull": true, - "defaultValue": "''" - }, - { - "fieldPath": "tocUrl", - "columnName": "tocUrl", - "affinity": "TEXT", - "notNull": true, - "defaultValue": "''" - }, - { - "fieldPath": "origin", - "columnName": "origin", - "affinity": "TEXT", - "notNull": true, - "defaultValue": "'loc_book'" - }, - { - "fieldPath": "originName", - "columnName": "originName", - "affinity": "TEXT", - "notNull": true, - "defaultValue": "''" - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true, - "defaultValue": "''" - }, - { - "fieldPath": "author", - "columnName": "author", - "affinity": "TEXT", - "notNull": true, - "defaultValue": "''" - }, - { - "fieldPath": "kind", - "columnName": "kind", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "customTag", - "columnName": "customTag", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "coverUrl", - "columnName": "coverUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "customCoverUrl", - "columnName": "customCoverUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "intro", - "columnName": "intro", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "customIntro", - "columnName": "customIntro", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "charset", - "columnName": "charset", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "type", - "columnName": "type", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "group", - "columnName": "group", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "latestChapterTitle", - "columnName": "latestChapterTitle", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "latestChapterTime", - "columnName": "latestChapterTime", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "lastCheckTime", - "columnName": "lastCheckTime", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "lastCheckCount", - "columnName": "lastCheckCount", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "totalChapterNum", - "columnName": "totalChapterNum", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "durChapterTitle", - "columnName": "durChapterTitle", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "durChapterIndex", - "columnName": "durChapterIndex", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "durChapterPos", - "columnName": "durChapterPos", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "durChapterTime", - "columnName": "durChapterTime", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "wordCount", - "columnName": "wordCount", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "canUpdate", - "columnName": "canUpdate", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "1" - }, - { - "fieldPath": "order", - "columnName": "order", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "originOrder", - "columnName": "originOrder", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "variable", - "columnName": "variable", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "readConfig", - "columnName": "readConfig", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "syncTime", - "columnName": "syncTime", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - } - ], - "primaryKey": { - "autoGenerate": false, - "columnNames": [ - "bookUrl" - ] - }, - "indices": [ - { - "name": "index_books_name_author", - "unique": true, - "columnNames": [ - "name", - "author" - ], - "orders": [], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_books_name_author` ON `${TABLE_NAME}` (`name`, `author`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "book_groups", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`groupId` INTEGER NOT NULL, `groupName` TEXT NOT NULL, `cover` TEXT, `order` INTEGER NOT NULL, `enableRefresh` INTEGER NOT NULL DEFAULT 1, `show` INTEGER NOT NULL DEFAULT 1, `bookSort` INTEGER NOT NULL DEFAULT -1, PRIMARY KEY(`groupId`))", - "fields": [ - { - "fieldPath": "groupId", - "columnName": "groupId", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "groupName", - "columnName": "groupName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "cover", - "columnName": "cover", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "order", - "columnName": "order", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "enableRefresh", - "columnName": "enableRefresh", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "1" - }, - { - "fieldPath": "show", - "columnName": "show", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "1" - }, - { - "fieldPath": "bookSort", - "columnName": "bookSort", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "-1" - } - ], - "primaryKey": { - "autoGenerate": false, - "columnNames": [ - "groupId" - ] - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "book_sources", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`bookSourceUrl` TEXT NOT NULL, `bookSourceName` TEXT NOT NULL, `bookSourceGroup` TEXT, `bookSourceType` INTEGER NOT NULL, `bookUrlPattern` TEXT, `customOrder` INTEGER NOT NULL DEFAULT 0, `enabled` INTEGER NOT NULL DEFAULT 1, `enabledExplore` INTEGER NOT NULL DEFAULT 1, `jsLib` TEXT, `enabledCookieJar` INTEGER DEFAULT 0, `concurrentRate` TEXT, `header` TEXT, `loginUrl` TEXT, `loginUi` TEXT, `loginCheckJs` TEXT, `coverDecodeJs` TEXT, `bookSourceComment` TEXT, `variableComment` TEXT, `lastUpdateTime` INTEGER NOT NULL, `respondTime` INTEGER NOT NULL, `weight` INTEGER NOT NULL, `exploreUrl` TEXT, `exploreScreen` TEXT, `ruleExplore` TEXT, `searchUrl` TEXT, `ruleSearch` TEXT, `ruleBookInfo` TEXT, `ruleToc` TEXT, `ruleContent` TEXT, `ruleReview` TEXT, PRIMARY KEY(`bookSourceUrl`))", - "fields": [ - { - "fieldPath": "bookSourceUrl", - "columnName": "bookSourceUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookSourceName", - "columnName": "bookSourceName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookSourceGroup", - "columnName": "bookSourceGroup", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "bookSourceType", - "columnName": "bookSourceType", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "bookUrlPattern", - "columnName": "bookUrlPattern", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "customOrder", - "columnName": "customOrder", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "enabled", - "columnName": "enabled", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "1" - }, - { - "fieldPath": "enabledExplore", - "columnName": "enabledExplore", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "1" - }, - { - "fieldPath": "jsLib", - "columnName": "jsLib", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "enabledCookieJar", - "columnName": "enabledCookieJar", - "affinity": "INTEGER", - "notNull": false, - "defaultValue": "0" - }, - { - "fieldPath": "concurrentRate", - "columnName": "concurrentRate", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "header", - "columnName": "header", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "loginUrl", - "columnName": "loginUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "loginUi", - "columnName": "loginUi", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "loginCheckJs", - "columnName": "loginCheckJs", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "coverDecodeJs", - "columnName": "coverDecodeJs", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "bookSourceComment", - "columnName": "bookSourceComment", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "variableComment", - "columnName": "variableComment", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "lastUpdateTime", - "columnName": "lastUpdateTime", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "respondTime", - "columnName": "respondTime", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "weight", - "columnName": "weight", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "exploreUrl", - "columnName": "exploreUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "exploreScreen", - "columnName": "exploreScreen", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleExplore", - "columnName": "ruleExplore", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "searchUrl", - "columnName": "searchUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleSearch", - "columnName": "ruleSearch", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleBookInfo", - "columnName": "ruleBookInfo", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleToc", - "columnName": "ruleToc", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleContent", - "columnName": "ruleContent", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleReview", - "columnName": "ruleReview", - "affinity": "TEXT", - "notNull": false - } - ], - "primaryKey": { - "autoGenerate": false, - "columnNames": [ - "bookSourceUrl" - ] - }, - "indices": [ - { - "name": "index_book_sources_bookSourceUrl", - "unique": false, - "columnNames": [ - "bookSourceUrl" - ], - "orders": [], - "createSql": "CREATE INDEX IF NOT EXISTS `index_book_sources_bookSourceUrl` ON `${TABLE_NAME}` (`bookSourceUrl`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "chapters", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`url` TEXT NOT NULL, `title` TEXT NOT NULL, `isVolume` INTEGER NOT NULL, `baseUrl` TEXT NOT NULL, `bookUrl` TEXT NOT NULL, `index` INTEGER NOT NULL, `isVip` INTEGER NOT NULL, `isPay` INTEGER NOT NULL, `resourceUrl` TEXT, `tag` TEXT, `start` INTEGER, `end` INTEGER, `startFragmentId` TEXT, `endFragmentId` TEXT, `variable` TEXT, PRIMARY KEY(`url`, `bookUrl`), FOREIGN KEY(`bookUrl`) REFERENCES `books`(`bookUrl`) ON UPDATE NO ACTION ON DELETE CASCADE )", - "fields": [ - { - "fieldPath": "url", - "columnName": "url", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "title", - "columnName": "title", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "isVolume", - "columnName": "isVolume", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "baseUrl", - "columnName": "baseUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookUrl", - "columnName": "bookUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "index", - "columnName": "index", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "isVip", - "columnName": "isVip", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "isPay", - "columnName": "isPay", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "resourceUrl", - "columnName": "resourceUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "tag", - "columnName": "tag", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "start", - "columnName": "start", - "affinity": "INTEGER", - "notNull": false - }, - { - "fieldPath": "end", - "columnName": "end", - "affinity": "INTEGER", - "notNull": false - }, - { - "fieldPath": "startFragmentId", - "columnName": "startFragmentId", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "endFragmentId", - "columnName": "endFragmentId", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "variable", - "columnName": "variable", - "affinity": "TEXT", - "notNull": false - } - ], - "primaryKey": { - "autoGenerate": false, - "columnNames": [ - "url", - "bookUrl" - ] - }, - "indices": [ - { - "name": "index_chapters_bookUrl", - "unique": false, - "columnNames": [ - "bookUrl" - ], - "orders": [], - "createSql": "CREATE INDEX IF NOT EXISTS `index_chapters_bookUrl` ON `${TABLE_NAME}` (`bookUrl`)" - }, - { - "name": "index_chapters_bookUrl_index", - "unique": true, - "columnNames": [ - "bookUrl", - "index" - ], - "orders": [], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_chapters_bookUrl_index` ON `${TABLE_NAME}` (`bookUrl`, `index`)" - } - ], - "foreignKeys": [ - { - "table": "books", - "onDelete": "CASCADE", - "onUpdate": "NO ACTION", - "columns": [ - "bookUrl" - ], - "referencedColumns": [ - "bookUrl" - ] - } - ] - }, - { - "tableName": "replace_rules", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, `name` TEXT NOT NULL DEFAULT '', `group` TEXT, `pattern` TEXT NOT NULL DEFAULT '', `replacement` TEXT NOT NULL DEFAULT '', `scope` TEXT, `scopeTitle` INTEGER NOT NULL DEFAULT 0, `scopeContent` INTEGER NOT NULL DEFAULT 1, `excludeScope` TEXT, `isEnabled` INTEGER NOT NULL DEFAULT 1, `isRegex` INTEGER NOT NULL DEFAULT 1, `timeoutMillisecond` INTEGER NOT NULL DEFAULT 3000, `sortOrder` INTEGER NOT NULL DEFAULT 0)", - "fields": [ - { - "fieldPath": "id", - "columnName": "id", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true, - "defaultValue": "''" - }, - { - "fieldPath": "group", - "columnName": "group", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "pattern", - "columnName": "pattern", - "affinity": "TEXT", - "notNull": true, - "defaultValue": "''" - }, - { - "fieldPath": "replacement", - "columnName": "replacement", - "affinity": "TEXT", - "notNull": true, - "defaultValue": "''" - }, - { - "fieldPath": "scope", - "columnName": "scope", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "scopeTitle", - "columnName": "scopeTitle", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "scopeContent", - "columnName": "scopeContent", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "1" - }, - { - "fieldPath": "excludeScope", - "columnName": "excludeScope", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "isEnabled", - "columnName": "isEnabled", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "1" - }, - { - "fieldPath": "isRegex", - "columnName": "isRegex", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "1" - }, - { - "fieldPath": "timeoutMillisecond", - "columnName": "timeoutMillisecond", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "3000" - }, - { - "fieldPath": "order", - "columnName": "sortOrder", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - } - ], - "primaryKey": { - "autoGenerate": true, - "columnNames": [ - "id" - ] - }, - "indices": [ - { - "name": "index_replace_rules_id", - "unique": false, - "columnNames": [ - "id" - ], - "orders": [], - "createSql": "CREATE INDEX IF NOT EXISTS `index_replace_rules_id` ON `${TABLE_NAME}` (`id`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "searchBooks", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`bookUrl` TEXT NOT NULL, `origin` TEXT NOT NULL, `originName` TEXT NOT NULL, `type` INTEGER NOT NULL, `name` TEXT NOT NULL, `author` TEXT NOT NULL, `kind` TEXT, `coverUrl` TEXT, `intro` TEXT, `wordCount` TEXT, `latestChapterTitle` TEXT, `tocUrl` TEXT NOT NULL, `time` INTEGER NOT NULL, `variable` TEXT, `originOrder` INTEGER NOT NULL, `chapterWordCountText` TEXT, `chapterWordCount` INTEGER NOT NULL DEFAULT -1, `respondTime` INTEGER NOT NULL DEFAULT -1, PRIMARY KEY(`bookUrl`), FOREIGN KEY(`origin`) REFERENCES `book_sources`(`bookSourceUrl`) ON UPDATE NO ACTION ON DELETE CASCADE )", - "fields": [ - { - "fieldPath": "bookUrl", - "columnName": "bookUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "origin", - "columnName": "origin", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "originName", - "columnName": "originName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "type", - "columnName": "type", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "author", - "columnName": "author", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "kind", - "columnName": "kind", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "coverUrl", - "columnName": "coverUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "intro", - "columnName": "intro", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "wordCount", - "columnName": "wordCount", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "latestChapterTitle", - "columnName": "latestChapterTitle", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "tocUrl", - "columnName": "tocUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "time", - "columnName": "time", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "variable", - "columnName": "variable", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "originOrder", - "columnName": "originOrder", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "chapterWordCountText", - "columnName": "chapterWordCountText", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "chapterWordCount", - "columnName": "chapterWordCount", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "-1" - }, - { - "fieldPath": "respondTime", - "columnName": "respondTime", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "-1" - } - ], - "primaryKey": { - "autoGenerate": false, - "columnNames": [ - "bookUrl" - ] - }, - "indices": [ - { - "name": "index_searchBooks_bookUrl", - "unique": true, - "columnNames": [ - "bookUrl" - ], - "orders": [], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_searchBooks_bookUrl` ON `${TABLE_NAME}` (`bookUrl`)" - }, - { - "name": "index_searchBooks_origin", - "unique": false, - "columnNames": [ - "origin" - ], - "orders": [], - "createSql": "CREATE INDEX IF NOT EXISTS `index_searchBooks_origin` ON `${TABLE_NAME}` (`origin`)" - } - ], - "foreignKeys": [ - { - "table": "book_sources", - "onDelete": "CASCADE", - "onUpdate": "NO ACTION", - "columns": [ - "origin" - ], - "referencedColumns": [ - "bookSourceUrl" - ] - } - ] - }, - { - "tableName": "search_keywords", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`word` TEXT NOT NULL, `usage` INTEGER NOT NULL, `lastUseTime` INTEGER NOT NULL, PRIMARY KEY(`word`))", - "fields": [ - { - "fieldPath": "word", - "columnName": "word", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "usage", - "columnName": "usage", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "lastUseTime", - "columnName": "lastUseTime", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "autoGenerate": false, - "columnNames": [ - "word" - ] - }, - "indices": [ - { - "name": "index_search_keywords_word", - "unique": true, - "columnNames": [ - "word" - ], - "orders": [], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_search_keywords_word` ON `${TABLE_NAME}` (`word`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "cookies", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`url` TEXT NOT NULL, `cookie` TEXT NOT NULL, PRIMARY KEY(`url`))", - "fields": [ - { - "fieldPath": "url", - "columnName": "url", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "cookie", - "columnName": "cookie", - "affinity": "TEXT", - "notNull": true - } - ], - "primaryKey": { - "autoGenerate": false, - "columnNames": [ - "url" - ] - }, - "indices": [ - { - "name": "index_cookies_url", - "unique": true, - "columnNames": [ - "url" - ], - "orders": [], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_cookies_url` ON `${TABLE_NAME}` (`url`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "rssSources", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`sourceUrl` TEXT NOT NULL, `sourceName` TEXT NOT NULL, `sourceIcon` TEXT NOT NULL, `sourceGroup` TEXT, `sourceComment` TEXT, `enabled` INTEGER NOT NULL, `variableComment` TEXT, `jsLib` TEXT, `enabledCookieJar` INTEGER DEFAULT 0, `concurrentRate` TEXT, `header` TEXT, `loginUrl` TEXT, `loginUi` TEXT, `loginCheckJs` TEXT, `coverDecodeJs` TEXT, `sortUrl` TEXT, `singleUrl` INTEGER NOT NULL, `articleStyle` INTEGER NOT NULL DEFAULT 0, `ruleArticles` TEXT, `ruleNextPage` TEXT, `ruleTitle` TEXT, `rulePubDate` TEXT, `ruleDescription` TEXT, `ruleImage` TEXT, `ruleLink` TEXT, `ruleContent` TEXT, `contentWhitelist` TEXT, `contentBlacklist` TEXT, `shouldOverrideUrlLoading` TEXT, `style` TEXT, `enableJs` INTEGER NOT NULL DEFAULT 1, `loadWithBaseUrl` INTEGER NOT NULL DEFAULT 1, `injectJs` TEXT, `lastUpdateTime` INTEGER NOT NULL DEFAULT 0, `customOrder` INTEGER NOT NULL DEFAULT 0, PRIMARY KEY(`sourceUrl`))", - "fields": [ - { - "fieldPath": "sourceUrl", - "columnName": "sourceUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "sourceName", - "columnName": "sourceName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "sourceIcon", - "columnName": "sourceIcon", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "sourceGroup", - "columnName": "sourceGroup", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "sourceComment", - "columnName": "sourceComment", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "enabled", - "columnName": "enabled", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "variableComment", - "columnName": "variableComment", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "jsLib", - "columnName": "jsLib", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "enabledCookieJar", - "columnName": "enabledCookieJar", - "affinity": "INTEGER", - "notNull": false, - "defaultValue": "0" - }, - { - "fieldPath": "concurrentRate", - "columnName": "concurrentRate", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "header", - "columnName": "header", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "loginUrl", - "columnName": "loginUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "loginUi", - "columnName": "loginUi", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "loginCheckJs", - "columnName": "loginCheckJs", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "coverDecodeJs", - "columnName": "coverDecodeJs", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "sortUrl", - "columnName": "sortUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "singleUrl", - "columnName": "singleUrl", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "articleStyle", - "columnName": "articleStyle", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "ruleArticles", - "columnName": "ruleArticles", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleNextPage", - "columnName": "ruleNextPage", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleTitle", - "columnName": "ruleTitle", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "rulePubDate", - "columnName": "rulePubDate", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleDescription", - "columnName": "ruleDescription", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleImage", - "columnName": "ruleImage", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleLink", - "columnName": "ruleLink", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleContent", - "columnName": "ruleContent", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "contentWhitelist", - "columnName": "contentWhitelist", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "contentBlacklist", - "columnName": "contentBlacklist", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "shouldOverrideUrlLoading", - "columnName": "shouldOverrideUrlLoading", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "style", - "columnName": "style", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "enableJs", - "columnName": "enableJs", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "1" - }, - { - "fieldPath": "loadWithBaseUrl", - "columnName": "loadWithBaseUrl", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "1" - }, - { - "fieldPath": "injectJs", - "columnName": "injectJs", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "lastUpdateTime", - "columnName": "lastUpdateTime", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "customOrder", - "columnName": "customOrder", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - } - ], - "primaryKey": { - "autoGenerate": false, - "columnNames": [ - "sourceUrl" - ] - }, - "indices": [ - { - "name": "index_rssSources_sourceUrl", - "unique": false, - "columnNames": [ - "sourceUrl" - ], - "orders": [], - "createSql": "CREATE INDEX IF NOT EXISTS `index_rssSources_sourceUrl` ON `${TABLE_NAME}` (`sourceUrl`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "bookmarks", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`time` INTEGER NOT NULL, `bookName` TEXT NOT NULL, `bookAuthor` TEXT NOT NULL, `chapterIndex` INTEGER NOT NULL, `chapterPos` INTEGER NOT NULL, `chapterName` TEXT NOT NULL, `bookText` TEXT NOT NULL, `content` TEXT NOT NULL, PRIMARY KEY(`time`))", - "fields": [ - { - "fieldPath": "time", - "columnName": "time", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "bookName", - "columnName": "bookName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookAuthor", - "columnName": "bookAuthor", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "chapterIndex", - "columnName": "chapterIndex", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "chapterPos", - "columnName": "chapterPos", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "chapterName", - "columnName": "chapterName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookText", - "columnName": "bookText", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "content", - "columnName": "content", - "affinity": "TEXT", - "notNull": true - } - ], - "primaryKey": { - "autoGenerate": false, - "columnNames": [ - "time" - ] - }, - "indices": [ - { - "name": "index_bookmarks_bookName_bookAuthor", - "unique": false, - "columnNames": [ - "bookName", - "bookAuthor" - ], - "orders": [], - "createSql": "CREATE INDEX IF NOT EXISTS `index_bookmarks_bookName_bookAuthor` ON `${TABLE_NAME}` (`bookName`, `bookAuthor`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "rssArticles", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`origin` TEXT NOT NULL, `sort` TEXT NOT NULL, `title` TEXT NOT NULL, `order` INTEGER NOT NULL, `link` TEXT NOT NULL, `pubDate` TEXT, `description` TEXT, `content` TEXT, `image` TEXT, `read` INTEGER NOT NULL, `variable` TEXT, PRIMARY KEY(`origin`, `link`))", - "fields": [ - { - "fieldPath": "origin", - "columnName": "origin", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "sort", - "columnName": "sort", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "title", - "columnName": "title", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "order", - "columnName": "order", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "link", - "columnName": "link", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "pubDate", - "columnName": "pubDate", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "description", - "columnName": "description", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "content", - "columnName": "content", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "image", - "columnName": "image", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "read", - "columnName": "read", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "variable", - "columnName": "variable", - "affinity": "TEXT", - "notNull": false - } - ], - "primaryKey": { - "autoGenerate": false, - "columnNames": [ - "origin", - "link" - ] - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "rssReadRecords", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`record` TEXT NOT NULL, `read` INTEGER NOT NULL, PRIMARY KEY(`record`))", - "fields": [ - { - "fieldPath": "record", - "columnName": "record", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "read", - "columnName": "read", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "autoGenerate": false, - "columnNames": [ - "record" - ] - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "rssStars", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`origin` TEXT NOT NULL, `sort` TEXT NOT NULL, `title` TEXT NOT NULL, `starTime` INTEGER NOT NULL, `link` TEXT NOT NULL, `pubDate` TEXT, `description` TEXT, `content` TEXT, `image` TEXT, `variable` TEXT, PRIMARY KEY(`origin`, `link`))", - "fields": [ - { - "fieldPath": "origin", - "columnName": "origin", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "sort", - "columnName": "sort", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "title", - "columnName": "title", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "starTime", - "columnName": "starTime", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "link", - "columnName": "link", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "pubDate", - "columnName": "pubDate", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "description", - "columnName": "description", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "content", - "columnName": "content", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "image", - "columnName": "image", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "variable", - "columnName": "variable", - "affinity": "TEXT", - "notNull": false - } - ], - "primaryKey": { - "autoGenerate": false, - "columnNames": [ - "origin", - "link" - ] - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "txtTocRules", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER NOT NULL, `name` TEXT NOT NULL, `rule` TEXT NOT NULL, `example` TEXT, `serialNumber` INTEGER NOT NULL, `enable` INTEGER NOT NULL, PRIMARY KEY(`id`))", - "fields": [ - { - "fieldPath": "id", - "columnName": "id", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "rule", - "columnName": "rule", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "example", - "columnName": "example", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "serialNumber", - "columnName": "serialNumber", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "enable", - "columnName": "enable", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "autoGenerate": false, - "columnNames": [ - "id" - ] - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "readRecord", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`deviceId` TEXT NOT NULL, `bookName` TEXT NOT NULL, `readTime` INTEGER NOT NULL DEFAULT 0, `lastRead` INTEGER NOT NULL DEFAULT 0, PRIMARY KEY(`deviceId`, `bookName`))", - "fields": [ - { - "fieldPath": "deviceId", - "columnName": "deviceId", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookName", - "columnName": "bookName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "readTime", - "columnName": "readTime", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "lastRead", - "columnName": "lastRead", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - } - ], - "primaryKey": { - "autoGenerate": false, - "columnNames": [ - "deviceId", - "bookName" - ] - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "httpTTS", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER NOT NULL, `name` TEXT NOT NULL, `url` TEXT NOT NULL, `contentType` TEXT, `concurrentRate` TEXT DEFAULT '0', `loginUrl` TEXT, `loginUi` TEXT, `header` TEXT, `jsLib` TEXT, `enabledCookieJar` INTEGER DEFAULT 0, `loginCheckJs` TEXT, `lastUpdateTime` INTEGER NOT NULL DEFAULT 0, PRIMARY KEY(`id`))", - "fields": [ - { - "fieldPath": "id", - "columnName": "id", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "url", - "columnName": "url", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "contentType", - "columnName": "contentType", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "concurrentRate", - "columnName": "concurrentRate", - "affinity": "TEXT", - "notNull": false, - "defaultValue": "'0'" - }, - { - "fieldPath": "loginUrl", - "columnName": "loginUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "loginUi", - "columnName": "loginUi", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "header", - "columnName": "header", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "jsLib", - "columnName": "jsLib", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "enabledCookieJar", - "columnName": "enabledCookieJar", - "affinity": "INTEGER", - "notNull": false, - "defaultValue": "0" - }, - { - "fieldPath": "loginCheckJs", - "columnName": "loginCheckJs", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "lastUpdateTime", - "columnName": "lastUpdateTime", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - } - ], - "primaryKey": { - "autoGenerate": false, - "columnNames": [ - "id" - ] - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "caches", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`key` TEXT NOT NULL, `value` TEXT, `deadline` INTEGER NOT NULL, PRIMARY KEY(`key`))", - "fields": [ - { - "fieldPath": "key", - "columnName": "key", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "value", - "columnName": "value", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "deadline", - "columnName": "deadline", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "autoGenerate": false, - "columnNames": [ - "key" - ] - }, - "indices": [ - { - "name": "index_caches_key", - "unique": true, - "columnNames": [ - "key" - ], - "orders": [], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_caches_key` ON `${TABLE_NAME}` (`key`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "ruleSubs", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER NOT NULL, `name` TEXT NOT NULL, `url` TEXT NOT NULL, `type` INTEGER NOT NULL, `customOrder` INTEGER NOT NULL, `autoUpdate` INTEGER NOT NULL, `update` INTEGER NOT NULL, PRIMARY KEY(`id`))", - "fields": [ - { - "fieldPath": "id", - "columnName": "id", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "url", - "columnName": "url", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "type", - "columnName": "type", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "customOrder", - "columnName": "customOrder", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "autoUpdate", - "columnName": "autoUpdate", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "update", - "columnName": "update", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "autoGenerate": false, - "columnNames": [ - "id" - ] - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "dictRules", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`name` TEXT NOT NULL, `urlRule` TEXT NOT NULL, `showRule` TEXT NOT NULL, `enabled` INTEGER NOT NULL DEFAULT 1, `sortNumber` INTEGER NOT NULL DEFAULT 0, PRIMARY KEY(`name`))", - "fields": [ - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "urlRule", - "columnName": "urlRule", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "showRule", - "columnName": "showRule", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "enabled", - "columnName": "enabled", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "1" - }, - { - "fieldPath": "sortNumber", - "columnName": "sortNumber", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - } - ], - "primaryKey": { - "autoGenerate": false, - "columnNames": [ - "name" - ] - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "keyboardAssists", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`type` INTEGER NOT NULL DEFAULT 0, `key` TEXT NOT NULL DEFAULT '', `value` TEXT NOT NULL DEFAULT '', `serialNo` INTEGER NOT NULL DEFAULT 0, PRIMARY KEY(`type`, `key`))", - "fields": [ - { - "fieldPath": "type", - "columnName": "type", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "key", - "columnName": "key", - "affinity": "TEXT", - "notNull": true, - "defaultValue": "''" - }, - { - "fieldPath": "value", - "columnName": "value", - "affinity": "TEXT", - "notNull": true, - "defaultValue": "''" - }, - { - "fieldPath": "serialNo", - "columnName": "serialNo", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - } - ], - "primaryKey": { - "autoGenerate": false, - "columnNames": [ - "type", - "key" - ] - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "servers", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER NOT NULL, `name` TEXT NOT NULL, `type` TEXT NOT NULL, `config` TEXT, `sortNumber` INTEGER NOT NULL, PRIMARY KEY(`id`))", - "fields": [ - { - "fieldPath": "id", - "columnName": "id", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "type", - "columnName": "type", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "config", - "columnName": "config", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "sortNumber", - "columnName": "sortNumber", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "autoGenerate": false, - "columnNames": [ - "id" - ] - }, - "indices": [], - "foreignKeys": [] - } - ], - "views": [], - "setupQueries": [ - "CREATE TABLE IF NOT EXISTS room_master_table (id INTEGER PRIMARY KEY,identity_hash TEXT)", - "INSERT OR REPLACE INTO room_master_table (id,identity_hash) VALUES(42, '6e17b5366286b868f2912c12d6d8e467')" - ] - } -} \ No newline at end of file diff --git a/app/schemas/io.legado.app.data.AppDatabase/72.json b/app/schemas/io.legado.app.data.AppDatabase/72.json deleted file mode 100644 index 03a2072bd..000000000 --- a/app/schemas/io.legado.app.data.AppDatabase/72.json +++ /dev/null @@ -1,1912 +0,0 @@ -{ - "formatVersion": 1, - "database": { - "version": 72, - "identityHash": "53d960f1fdc04a6f157a25b269a0d93b", - "entities": [ - { - "tableName": "books", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`bookUrl` TEXT NOT NULL DEFAULT '', `tocUrl` TEXT NOT NULL DEFAULT '', `origin` TEXT NOT NULL DEFAULT 'loc_book', `originName` TEXT NOT NULL DEFAULT '', `name` TEXT NOT NULL DEFAULT '', `author` TEXT NOT NULL DEFAULT '', `kind` TEXT, `customTag` TEXT, `coverUrl` TEXT, `customCoverUrl` TEXT, `intro` TEXT, `customIntro` TEXT, `charset` TEXT, `type` INTEGER NOT NULL DEFAULT 0, `group` INTEGER NOT NULL DEFAULT 0, `latestChapterTitle` TEXT, `latestChapterTime` INTEGER NOT NULL DEFAULT 0, `lastCheckTime` INTEGER NOT NULL DEFAULT 0, `lastCheckCount` INTEGER NOT NULL DEFAULT 0, `totalChapterNum` INTEGER NOT NULL DEFAULT 0, `durChapterTitle` TEXT, `durChapterIndex` INTEGER NOT NULL DEFAULT 0, `durChapterPos` INTEGER NOT NULL DEFAULT 0, `durChapterTime` INTEGER NOT NULL DEFAULT 0, `wordCount` TEXT, `canUpdate` INTEGER NOT NULL DEFAULT 1, `order` INTEGER NOT NULL DEFAULT 0, `originOrder` INTEGER NOT NULL DEFAULT 0, `variable` TEXT, `readConfig` TEXT, `syncTime` INTEGER NOT NULL DEFAULT 0, PRIMARY KEY(`bookUrl`))", - "fields": [ - { - "fieldPath": "bookUrl", - "columnName": "bookUrl", - "affinity": "TEXT", - "notNull": true, - "defaultValue": "''" - }, - { - "fieldPath": "tocUrl", - "columnName": "tocUrl", - "affinity": "TEXT", - "notNull": true, - "defaultValue": "''" - }, - { - "fieldPath": "origin", - "columnName": "origin", - "affinity": "TEXT", - "notNull": true, - "defaultValue": "'loc_book'" - }, - { - "fieldPath": "originName", - "columnName": "originName", - "affinity": "TEXT", - "notNull": true, - "defaultValue": "''" - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true, - "defaultValue": "''" - }, - { - "fieldPath": "author", - "columnName": "author", - "affinity": "TEXT", - "notNull": true, - "defaultValue": "''" - }, - { - "fieldPath": "kind", - "columnName": "kind", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "customTag", - "columnName": "customTag", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "coverUrl", - "columnName": "coverUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "customCoverUrl", - "columnName": "customCoverUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "intro", - "columnName": "intro", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "customIntro", - "columnName": "customIntro", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "charset", - "columnName": "charset", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "type", - "columnName": "type", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "group", - "columnName": "group", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "latestChapterTitle", - "columnName": "latestChapterTitle", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "latestChapterTime", - "columnName": "latestChapterTime", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "lastCheckTime", - "columnName": "lastCheckTime", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "lastCheckCount", - "columnName": "lastCheckCount", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "totalChapterNum", - "columnName": "totalChapterNum", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "durChapterTitle", - "columnName": "durChapterTitle", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "durChapterIndex", - "columnName": "durChapterIndex", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "durChapterPos", - "columnName": "durChapterPos", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "durChapterTime", - "columnName": "durChapterTime", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "wordCount", - "columnName": "wordCount", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "canUpdate", - "columnName": "canUpdate", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "1" - }, - { - "fieldPath": "order", - "columnName": "order", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "originOrder", - "columnName": "originOrder", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "variable", - "columnName": "variable", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "readConfig", - "columnName": "readConfig", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "syncTime", - "columnName": "syncTime", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - } - ], - "primaryKey": { - "autoGenerate": false, - "columnNames": [ - "bookUrl" - ] - }, - "indices": [ - { - "name": "index_books_name_author", - "unique": true, - "columnNames": [ - "name", - "author" - ], - "orders": [], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_books_name_author` ON `${TABLE_NAME}` (`name`, `author`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "book_groups", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`groupId` INTEGER NOT NULL, `groupName` TEXT NOT NULL, `cover` TEXT, `order` INTEGER NOT NULL, `enableRefresh` INTEGER NOT NULL DEFAULT 1, `show` INTEGER NOT NULL DEFAULT 1, `bookSort` INTEGER NOT NULL DEFAULT -1, PRIMARY KEY(`groupId`))", - "fields": [ - { - "fieldPath": "groupId", - "columnName": "groupId", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "groupName", - "columnName": "groupName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "cover", - "columnName": "cover", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "order", - "columnName": "order", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "enableRefresh", - "columnName": "enableRefresh", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "1" - }, - { - "fieldPath": "show", - "columnName": "show", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "1" - }, - { - "fieldPath": "bookSort", - "columnName": "bookSort", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "-1" - } - ], - "primaryKey": { - "autoGenerate": false, - "columnNames": [ - "groupId" - ] - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "book_sources", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`bookSourceUrl` TEXT NOT NULL, `bookSourceName` TEXT NOT NULL, `bookSourceGroup` TEXT, `bookSourceType` INTEGER NOT NULL, `bookUrlPattern` TEXT, `customOrder` INTEGER NOT NULL DEFAULT 0, `enabled` INTEGER NOT NULL DEFAULT 1, `enabledExplore` INTEGER NOT NULL DEFAULT 1, `jsLib` TEXT, `enabledCookieJar` INTEGER DEFAULT 0, `concurrentRate` TEXT, `header` TEXT, `loginUrl` TEXT, `loginUi` TEXT, `loginCheckJs` TEXT, `coverDecodeJs` TEXT, `bookSourceComment` TEXT, `variableComment` TEXT, `lastUpdateTime` INTEGER NOT NULL, `respondTime` INTEGER NOT NULL, `weight` INTEGER NOT NULL, `exploreUrl` TEXT, `exploreScreen` TEXT, `ruleExplore` TEXT, `searchUrl` TEXT, `ruleSearch` TEXT, `ruleBookInfo` TEXT, `ruleToc` TEXT, `ruleContent` TEXT, `ruleReview` TEXT, PRIMARY KEY(`bookSourceUrl`))", - "fields": [ - { - "fieldPath": "bookSourceUrl", - "columnName": "bookSourceUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookSourceName", - "columnName": "bookSourceName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookSourceGroup", - "columnName": "bookSourceGroup", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "bookSourceType", - "columnName": "bookSourceType", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "bookUrlPattern", - "columnName": "bookUrlPattern", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "customOrder", - "columnName": "customOrder", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "enabled", - "columnName": "enabled", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "1" - }, - { - "fieldPath": "enabledExplore", - "columnName": "enabledExplore", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "1" - }, - { - "fieldPath": "jsLib", - "columnName": "jsLib", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "enabledCookieJar", - "columnName": "enabledCookieJar", - "affinity": "INTEGER", - "notNull": false, - "defaultValue": "0" - }, - { - "fieldPath": "concurrentRate", - "columnName": "concurrentRate", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "header", - "columnName": "header", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "loginUrl", - "columnName": "loginUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "loginUi", - "columnName": "loginUi", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "loginCheckJs", - "columnName": "loginCheckJs", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "coverDecodeJs", - "columnName": "coverDecodeJs", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "bookSourceComment", - "columnName": "bookSourceComment", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "variableComment", - "columnName": "variableComment", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "lastUpdateTime", - "columnName": "lastUpdateTime", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "respondTime", - "columnName": "respondTime", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "weight", - "columnName": "weight", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "exploreUrl", - "columnName": "exploreUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "exploreScreen", - "columnName": "exploreScreen", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleExplore", - "columnName": "ruleExplore", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "searchUrl", - "columnName": "searchUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleSearch", - "columnName": "ruleSearch", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleBookInfo", - "columnName": "ruleBookInfo", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleToc", - "columnName": "ruleToc", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleContent", - "columnName": "ruleContent", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleReview", - "columnName": "ruleReview", - "affinity": "TEXT", - "notNull": false - } - ], - "primaryKey": { - "autoGenerate": false, - "columnNames": [ - "bookSourceUrl" - ] - }, - "indices": [ - { - "name": "index_book_sources_bookSourceUrl", - "unique": false, - "columnNames": [ - "bookSourceUrl" - ], - "orders": [], - "createSql": "CREATE INDEX IF NOT EXISTS `index_book_sources_bookSourceUrl` ON `${TABLE_NAME}` (`bookSourceUrl`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "chapters", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`url` TEXT NOT NULL, `title` TEXT NOT NULL, `isVolume` INTEGER NOT NULL, `baseUrl` TEXT NOT NULL, `bookUrl` TEXT NOT NULL, `index` INTEGER NOT NULL, `isVip` INTEGER NOT NULL, `isPay` INTEGER NOT NULL, `resourceUrl` TEXT, `tag` TEXT, `start` INTEGER, `end` INTEGER, `startFragmentId` TEXT, `endFragmentId` TEXT, `variable` TEXT, PRIMARY KEY(`url`, `bookUrl`), FOREIGN KEY(`bookUrl`) REFERENCES `books`(`bookUrl`) ON UPDATE NO ACTION ON DELETE CASCADE )", - "fields": [ - { - "fieldPath": "url", - "columnName": "url", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "title", - "columnName": "title", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "isVolume", - "columnName": "isVolume", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "baseUrl", - "columnName": "baseUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookUrl", - "columnName": "bookUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "index", - "columnName": "index", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "isVip", - "columnName": "isVip", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "isPay", - "columnName": "isPay", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "resourceUrl", - "columnName": "resourceUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "tag", - "columnName": "tag", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "start", - "columnName": "start", - "affinity": "INTEGER", - "notNull": false - }, - { - "fieldPath": "end", - "columnName": "end", - "affinity": "INTEGER", - "notNull": false - }, - { - "fieldPath": "startFragmentId", - "columnName": "startFragmentId", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "endFragmentId", - "columnName": "endFragmentId", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "variable", - "columnName": "variable", - "affinity": "TEXT", - "notNull": false - } - ], - "primaryKey": { - "autoGenerate": false, - "columnNames": [ - "url", - "bookUrl" - ] - }, - "indices": [ - { - "name": "index_chapters_bookUrl", - "unique": false, - "columnNames": [ - "bookUrl" - ], - "orders": [], - "createSql": "CREATE INDEX IF NOT EXISTS `index_chapters_bookUrl` ON `${TABLE_NAME}` (`bookUrl`)" - }, - { - "name": "index_chapters_bookUrl_index", - "unique": true, - "columnNames": [ - "bookUrl", - "index" - ], - "orders": [], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_chapters_bookUrl_index` ON `${TABLE_NAME}` (`bookUrl`, `index`)" - } - ], - "foreignKeys": [ - { - "table": "books", - "onDelete": "CASCADE", - "onUpdate": "NO ACTION", - "columns": [ - "bookUrl" - ], - "referencedColumns": [ - "bookUrl" - ] - } - ] - }, - { - "tableName": "replace_rules", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, `name` TEXT NOT NULL DEFAULT '', `group` TEXT, `pattern` TEXT NOT NULL DEFAULT '', `replacement` TEXT NOT NULL DEFAULT '', `scope` TEXT, `scopeTitle` INTEGER NOT NULL DEFAULT 0, `scopeContent` INTEGER NOT NULL DEFAULT 1, `excludeScope` TEXT, `isEnabled` INTEGER NOT NULL DEFAULT 1, `isRegex` INTEGER NOT NULL DEFAULT 1, `timeoutMillisecond` INTEGER NOT NULL DEFAULT 3000, `sortOrder` INTEGER NOT NULL DEFAULT 0)", - "fields": [ - { - "fieldPath": "id", - "columnName": "id", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true, - "defaultValue": "''" - }, - { - "fieldPath": "group", - "columnName": "group", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "pattern", - "columnName": "pattern", - "affinity": "TEXT", - "notNull": true, - "defaultValue": "''" - }, - { - "fieldPath": "replacement", - "columnName": "replacement", - "affinity": "TEXT", - "notNull": true, - "defaultValue": "''" - }, - { - "fieldPath": "scope", - "columnName": "scope", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "scopeTitle", - "columnName": "scopeTitle", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "scopeContent", - "columnName": "scopeContent", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "1" - }, - { - "fieldPath": "excludeScope", - "columnName": "excludeScope", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "isEnabled", - "columnName": "isEnabled", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "1" - }, - { - "fieldPath": "isRegex", - "columnName": "isRegex", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "1" - }, - { - "fieldPath": "timeoutMillisecond", - "columnName": "timeoutMillisecond", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "3000" - }, - { - "fieldPath": "order", - "columnName": "sortOrder", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - } - ], - "primaryKey": { - "autoGenerate": true, - "columnNames": [ - "id" - ] - }, - "indices": [ - { - "name": "index_replace_rules_id", - "unique": false, - "columnNames": [ - "id" - ], - "orders": [], - "createSql": "CREATE INDEX IF NOT EXISTS `index_replace_rules_id` ON `${TABLE_NAME}` (`id`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "searchBooks", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`bookUrl` TEXT NOT NULL, `origin` TEXT NOT NULL, `originName` TEXT NOT NULL, `type` INTEGER NOT NULL, `name` TEXT NOT NULL, `author` TEXT NOT NULL, `kind` TEXT, `coverUrl` TEXT, `intro` TEXT, `wordCount` TEXT, `latestChapterTitle` TEXT, `tocUrl` TEXT NOT NULL, `time` INTEGER NOT NULL, `variable` TEXT, `originOrder` INTEGER NOT NULL, `chapterWordCountText` TEXT, `chapterWordCount` INTEGER NOT NULL DEFAULT -1, `respondTime` INTEGER NOT NULL DEFAULT -1, PRIMARY KEY(`bookUrl`), FOREIGN KEY(`origin`) REFERENCES `book_sources`(`bookSourceUrl`) ON UPDATE NO ACTION ON DELETE CASCADE )", - "fields": [ - { - "fieldPath": "bookUrl", - "columnName": "bookUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "origin", - "columnName": "origin", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "originName", - "columnName": "originName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "type", - "columnName": "type", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "author", - "columnName": "author", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "kind", - "columnName": "kind", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "coverUrl", - "columnName": "coverUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "intro", - "columnName": "intro", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "wordCount", - "columnName": "wordCount", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "latestChapterTitle", - "columnName": "latestChapterTitle", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "tocUrl", - "columnName": "tocUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "time", - "columnName": "time", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "variable", - "columnName": "variable", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "originOrder", - "columnName": "originOrder", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "chapterWordCountText", - "columnName": "chapterWordCountText", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "chapterWordCount", - "columnName": "chapterWordCount", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "-1" - }, - { - "fieldPath": "respondTime", - "columnName": "respondTime", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "-1" - } - ], - "primaryKey": { - "autoGenerate": false, - "columnNames": [ - "bookUrl" - ] - }, - "indices": [ - { - "name": "index_searchBooks_bookUrl", - "unique": true, - "columnNames": [ - "bookUrl" - ], - "orders": [], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_searchBooks_bookUrl` ON `${TABLE_NAME}` (`bookUrl`)" - }, - { - "name": "index_searchBooks_origin", - "unique": false, - "columnNames": [ - "origin" - ], - "orders": [], - "createSql": "CREATE INDEX IF NOT EXISTS `index_searchBooks_origin` ON `${TABLE_NAME}` (`origin`)" - } - ], - "foreignKeys": [ - { - "table": "book_sources", - "onDelete": "CASCADE", - "onUpdate": "NO ACTION", - "columns": [ - "origin" - ], - "referencedColumns": [ - "bookSourceUrl" - ] - } - ] - }, - { - "tableName": "search_keywords", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`word` TEXT NOT NULL, `usage` INTEGER NOT NULL, `lastUseTime` INTEGER NOT NULL, PRIMARY KEY(`word`))", - "fields": [ - { - "fieldPath": "word", - "columnName": "word", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "usage", - "columnName": "usage", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "lastUseTime", - "columnName": "lastUseTime", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "autoGenerate": false, - "columnNames": [ - "word" - ] - }, - "indices": [ - { - "name": "index_search_keywords_word", - "unique": true, - "columnNames": [ - "word" - ], - "orders": [], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_search_keywords_word` ON `${TABLE_NAME}` (`word`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "cookies", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`url` TEXT NOT NULL, `cookie` TEXT NOT NULL, PRIMARY KEY(`url`))", - "fields": [ - { - "fieldPath": "url", - "columnName": "url", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "cookie", - "columnName": "cookie", - "affinity": "TEXT", - "notNull": true - } - ], - "primaryKey": { - "autoGenerate": false, - "columnNames": [ - "url" - ] - }, - "indices": [ - { - "name": "index_cookies_url", - "unique": true, - "columnNames": [ - "url" - ], - "orders": [], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_cookies_url` ON `${TABLE_NAME}` (`url`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "rssSources", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`sourceUrl` TEXT NOT NULL, `sourceName` TEXT NOT NULL, `sourceIcon` TEXT NOT NULL, `sourceGroup` TEXT, `sourceComment` TEXT, `enabled` INTEGER NOT NULL, `variableComment` TEXT, `jsLib` TEXT, `enabledCookieJar` INTEGER DEFAULT 0, `concurrentRate` TEXT, `header` TEXT, `loginUrl` TEXT, `loginUi` TEXT, `loginCheckJs` TEXT, `coverDecodeJs` TEXT, `sortUrl` TEXT, `singleUrl` INTEGER NOT NULL, `articleStyle` INTEGER NOT NULL DEFAULT 0, `ruleArticles` TEXT, `ruleNextPage` TEXT, `ruleTitle` TEXT, `rulePubDate` TEXT, `ruleDescription` TEXT, `ruleImage` TEXT, `ruleLink` TEXT, `ruleContent` TEXT, `contentWhitelist` TEXT, `contentBlacklist` TEXT, `shouldOverrideUrlLoading` TEXT, `style` TEXT, `enableJs` INTEGER NOT NULL DEFAULT 1, `loadWithBaseUrl` INTEGER NOT NULL DEFAULT 1, `injectJs` TEXT, `lastUpdateTime` INTEGER NOT NULL DEFAULT 0, `customOrder` INTEGER NOT NULL DEFAULT 0, PRIMARY KEY(`sourceUrl`))", - "fields": [ - { - "fieldPath": "sourceUrl", - "columnName": "sourceUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "sourceName", - "columnName": "sourceName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "sourceIcon", - "columnName": "sourceIcon", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "sourceGroup", - "columnName": "sourceGroup", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "sourceComment", - "columnName": "sourceComment", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "enabled", - "columnName": "enabled", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "variableComment", - "columnName": "variableComment", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "jsLib", - "columnName": "jsLib", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "enabledCookieJar", - "columnName": "enabledCookieJar", - "affinity": "INTEGER", - "notNull": false, - "defaultValue": "0" - }, - { - "fieldPath": "concurrentRate", - "columnName": "concurrentRate", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "header", - "columnName": "header", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "loginUrl", - "columnName": "loginUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "loginUi", - "columnName": "loginUi", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "loginCheckJs", - "columnName": "loginCheckJs", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "coverDecodeJs", - "columnName": "coverDecodeJs", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "sortUrl", - "columnName": "sortUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "singleUrl", - "columnName": "singleUrl", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "articleStyle", - "columnName": "articleStyle", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "ruleArticles", - "columnName": "ruleArticles", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleNextPage", - "columnName": "ruleNextPage", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleTitle", - "columnName": "ruleTitle", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "rulePubDate", - "columnName": "rulePubDate", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleDescription", - "columnName": "ruleDescription", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleImage", - "columnName": "ruleImage", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleLink", - "columnName": "ruleLink", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleContent", - "columnName": "ruleContent", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "contentWhitelist", - "columnName": "contentWhitelist", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "contentBlacklist", - "columnName": "contentBlacklist", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "shouldOverrideUrlLoading", - "columnName": "shouldOverrideUrlLoading", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "style", - "columnName": "style", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "enableJs", - "columnName": "enableJs", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "1" - }, - { - "fieldPath": "loadWithBaseUrl", - "columnName": "loadWithBaseUrl", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "1" - }, - { - "fieldPath": "injectJs", - "columnName": "injectJs", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "lastUpdateTime", - "columnName": "lastUpdateTime", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "customOrder", - "columnName": "customOrder", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - } - ], - "primaryKey": { - "autoGenerate": false, - "columnNames": [ - "sourceUrl" - ] - }, - "indices": [ - { - "name": "index_rssSources_sourceUrl", - "unique": false, - "columnNames": [ - "sourceUrl" - ], - "orders": [], - "createSql": "CREATE INDEX IF NOT EXISTS `index_rssSources_sourceUrl` ON `${TABLE_NAME}` (`sourceUrl`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "bookmarks", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`time` INTEGER NOT NULL, `bookName` TEXT NOT NULL, `bookAuthor` TEXT NOT NULL, `chapterIndex` INTEGER NOT NULL, `chapterPos` INTEGER NOT NULL, `chapterName` TEXT NOT NULL, `bookText` TEXT NOT NULL, `content` TEXT NOT NULL, PRIMARY KEY(`time`))", - "fields": [ - { - "fieldPath": "time", - "columnName": "time", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "bookName", - "columnName": "bookName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookAuthor", - "columnName": "bookAuthor", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "chapterIndex", - "columnName": "chapterIndex", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "chapterPos", - "columnName": "chapterPos", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "chapterName", - "columnName": "chapterName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookText", - "columnName": "bookText", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "content", - "columnName": "content", - "affinity": "TEXT", - "notNull": true - } - ], - "primaryKey": { - "autoGenerate": false, - "columnNames": [ - "time" - ] - }, - "indices": [ - { - "name": "index_bookmarks_bookName_bookAuthor", - "unique": false, - "columnNames": [ - "bookName", - "bookAuthor" - ], - "orders": [], - "createSql": "CREATE INDEX IF NOT EXISTS `index_bookmarks_bookName_bookAuthor` ON `${TABLE_NAME}` (`bookName`, `bookAuthor`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "rssArticles", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`origin` TEXT NOT NULL, `sort` TEXT NOT NULL, `title` TEXT NOT NULL, `order` INTEGER NOT NULL, `link` TEXT NOT NULL, `pubDate` TEXT, `description` TEXT, `content` TEXT, `image` TEXT, `group` TEXT NOT NULL DEFAULT '默认分组', `read` INTEGER NOT NULL, `variable` TEXT, PRIMARY KEY(`origin`, `link`))", - "fields": [ - { - "fieldPath": "origin", - "columnName": "origin", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "sort", - "columnName": "sort", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "title", - "columnName": "title", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "order", - "columnName": "order", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "link", - "columnName": "link", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "pubDate", - "columnName": "pubDate", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "description", - "columnName": "description", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "content", - "columnName": "content", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "image", - "columnName": "image", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "group", - "columnName": "group", - "affinity": "TEXT", - "notNull": true, - "defaultValue": "'默认分组'" - }, - { - "fieldPath": "read", - "columnName": "read", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "variable", - "columnName": "variable", - "affinity": "TEXT", - "notNull": false - } - ], - "primaryKey": { - "autoGenerate": false, - "columnNames": [ - "origin", - "link" - ] - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "rssReadRecords", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`record` TEXT NOT NULL, `read` INTEGER NOT NULL, PRIMARY KEY(`record`))", - "fields": [ - { - "fieldPath": "record", - "columnName": "record", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "read", - "columnName": "read", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "autoGenerate": false, - "columnNames": [ - "record" - ] - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "rssStars", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`origin` TEXT NOT NULL, `sort` TEXT NOT NULL, `title` TEXT NOT NULL, `starTime` INTEGER NOT NULL, `link` TEXT NOT NULL, `pubDate` TEXT, `description` TEXT, `content` TEXT, `image` TEXT, `group` TEXT NOT NULL DEFAULT '默认分组', `variable` TEXT, PRIMARY KEY(`origin`, `link`))", - "fields": [ - { - "fieldPath": "origin", - "columnName": "origin", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "sort", - "columnName": "sort", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "title", - "columnName": "title", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "starTime", - "columnName": "starTime", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "link", - "columnName": "link", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "pubDate", - "columnName": "pubDate", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "description", - "columnName": "description", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "content", - "columnName": "content", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "image", - "columnName": "image", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "group", - "columnName": "group", - "affinity": "TEXT", - "notNull": true, - "defaultValue": "'默认分组'" - }, - { - "fieldPath": "variable", - "columnName": "variable", - "affinity": "TEXT", - "notNull": false - } - ], - "primaryKey": { - "autoGenerate": false, - "columnNames": [ - "origin", - "link" - ] - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "txtTocRules", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER NOT NULL, `name` TEXT NOT NULL, `rule` TEXT NOT NULL, `example` TEXT, `serialNumber` INTEGER NOT NULL, `enable` INTEGER NOT NULL, PRIMARY KEY(`id`))", - "fields": [ - { - "fieldPath": "id", - "columnName": "id", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "rule", - "columnName": "rule", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "example", - "columnName": "example", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "serialNumber", - "columnName": "serialNumber", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "enable", - "columnName": "enable", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "autoGenerate": false, - "columnNames": [ - "id" - ] - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "readRecord", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`deviceId` TEXT NOT NULL, `bookName` TEXT NOT NULL, `readTime` INTEGER NOT NULL DEFAULT 0, `lastRead` INTEGER NOT NULL DEFAULT 0, PRIMARY KEY(`deviceId`, `bookName`))", - "fields": [ - { - "fieldPath": "deviceId", - "columnName": "deviceId", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookName", - "columnName": "bookName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "readTime", - "columnName": "readTime", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "lastRead", - "columnName": "lastRead", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - } - ], - "primaryKey": { - "autoGenerate": false, - "columnNames": [ - "deviceId", - "bookName" - ] - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "httpTTS", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER NOT NULL, `name` TEXT NOT NULL, `url` TEXT NOT NULL, `contentType` TEXT, `concurrentRate` TEXT DEFAULT '0', `loginUrl` TEXT, `loginUi` TEXT, `header` TEXT, `jsLib` TEXT, `enabledCookieJar` INTEGER DEFAULT 0, `loginCheckJs` TEXT, `lastUpdateTime` INTEGER NOT NULL DEFAULT 0, PRIMARY KEY(`id`))", - "fields": [ - { - "fieldPath": "id", - "columnName": "id", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "url", - "columnName": "url", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "contentType", - "columnName": "contentType", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "concurrentRate", - "columnName": "concurrentRate", - "affinity": "TEXT", - "notNull": false, - "defaultValue": "'0'" - }, - { - "fieldPath": "loginUrl", - "columnName": "loginUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "loginUi", - "columnName": "loginUi", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "header", - "columnName": "header", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "jsLib", - "columnName": "jsLib", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "enabledCookieJar", - "columnName": "enabledCookieJar", - "affinity": "INTEGER", - "notNull": false, - "defaultValue": "0" - }, - { - "fieldPath": "loginCheckJs", - "columnName": "loginCheckJs", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "lastUpdateTime", - "columnName": "lastUpdateTime", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - } - ], - "primaryKey": { - "autoGenerate": false, - "columnNames": [ - "id" - ] - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "caches", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`key` TEXT NOT NULL, `value` TEXT, `deadline` INTEGER NOT NULL, PRIMARY KEY(`key`))", - "fields": [ - { - "fieldPath": "key", - "columnName": "key", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "value", - "columnName": "value", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "deadline", - "columnName": "deadline", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "autoGenerate": false, - "columnNames": [ - "key" - ] - }, - "indices": [ - { - "name": "index_caches_key", - "unique": true, - "columnNames": [ - "key" - ], - "orders": [], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_caches_key` ON `${TABLE_NAME}` (`key`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "ruleSubs", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER NOT NULL, `name` TEXT NOT NULL, `url` TEXT NOT NULL, `type` INTEGER NOT NULL, `customOrder` INTEGER NOT NULL, `autoUpdate` INTEGER NOT NULL, `update` INTEGER NOT NULL, PRIMARY KEY(`id`))", - "fields": [ - { - "fieldPath": "id", - "columnName": "id", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "url", - "columnName": "url", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "type", - "columnName": "type", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "customOrder", - "columnName": "customOrder", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "autoUpdate", - "columnName": "autoUpdate", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "update", - "columnName": "update", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "autoGenerate": false, - "columnNames": [ - "id" - ] - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "dictRules", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`name` TEXT NOT NULL, `urlRule` TEXT NOT NULL, `showRule` TEXT NOT NULL, `enabled` INTEGER NOT NULL DEFAULT 1, `sortNumber` INTEGER NOT NULL DEFAULT 0, PRIMARY KEY(`name`))", - "fields": [ - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "urlRule", - "columnName": "urlRule", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "showRule", - "columnName": "showRule", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "enabled", - "columnName": "enabled", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "1" - }, - { - "fieldPath": "sortNumber", - "columnName": "sortNumber", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - } - ], - "primaryKey": { - "autoGenerate": false, - "columnNames": [ - "name" - ] - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "keyboardAssists", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`type` INTEGER NOT NULL DEFAULT 0, `key` TEXT NOT NULL DEFAULT '', `value` TEXT NOT NULL DEFAULT '', `serialNo` INTEGER NOT NULL DEFAULT 0, PRIMARY KEY(`type`, `key`))", - "fields": [ - { - "fieldPath": "type", - "columnName": "type", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "key", - "columnName": "key", - "affinity": "TEXT", - "notNull": true, - "defaultValue": "''" - }, - { - "fieldPath": "value", - "columnName": "value", - "affinity": "TEXT", - "notNull": true, - "defaultValue": "''" - }, - { - "fieldPath": "serialNo", - "columnName": "serialNo", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - } - ], - "primaryKey": { - "autoGenerate": false, - "columnNames": [ - "type", - "key" - ] - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "servers", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER NOT NULL, `name` TEXT NOT NULL, `type` TEXT NOT NULL, `config` TEXT, `sortNumber` INTEGER NOT NULL, PRIMARY KEY(`id`))", - "fields": [ - { - "fieldPath": "id", - "columnName": "id", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "type", - "columnName": "type", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "config", - "columnName": "config", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "sortNumber", - "columnName": "sortNumber", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "autoGenerate": false, - "columnNames": [ - "id" - ] - }, - "indices": [], - "foreignKeys": [] - } - ], - "views": [], - "setupQueries": [ - "CREATE TABLE IF NOT EXISTS room_master_table (id INTEGER PRIMARY KEY,identity_hash TEXT)", - "INSERT OR REPLACE INTO room_master_table (id,identity_hash) VALUES(42, '53d960f1fdc04a6f157a25b269a0d93b')" - ] - } -} \ No newline at end of file diff --git a/app/schemas/io.legado.app.data.AppDatabase/73.json b/app/schemas/io.legado.app.data.AppDatabase/73.json deleted file mode 100644 index 0fc62d453..000000000 --- a/app/schemas/io.legado.app.data.AppDatabase/73.json +++ /dev/null @@ -1,1918 +0,0 @@ -{ - "formatVersion": 1, - "database": { - "version": 73, - "identityHash": "63617164079ebbdaf82176384c39bba5", - "entities": [ - { - "tableName": "books", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`bookUrl` TEXT NOT NULL DEFAULT '', `tocUrl` TEXT NOT NULL DEFAULT '', `origin` TEXT NOT NULL DEFAULT 'loc_book', `originName` TEXT NOT NULL DEFAULT '', `name` TEXT NOT NULL DEFAULT '', `author` TEXT NOT NULL DEFAULT '', `kind` TEXT, `customTag` TEXT, `coverUrl` TEXT, `customCoverUrl` TEXT, `intro` TEXT, `customIntro` TEXT, `charset` TEXT, `type` INTEGER NOT NULL DEFAULT 0, `group` INTEGER NOT NULL DEFAULT 0, `latestChapterTitle` TEXT, `latestChapterTime` INTEGER NOT NULL DEFAULT 0, `lastCheckTime` INTEGER NOT NULL DEFAULT 0, `lastCheckCount` INTEGER NOT NULL DEFAULT 0, `totalChapterNum` INTEGER NOT NULL DEFAULT 0, `durChapterTitle` TEXT, `durChapterIndex` INTEGER NOT NULL DEFAULT 0, `durChapterPos` INTEGER NOT NULL DEFAULT 0, `durChapterTime` INTEGER NOT NULL DEFAULT 0, `wordCount` TEXT, `canUpdate` INTEGER NOT NULL DEFAULT 1, `order` INTEGER NOT NULL DEFAULT 0, `originOrder` INTEGER NOT NULL DEFAULT 0, `variable` TEXT, `readConfig` TEXT, `syncTime` INTEGER NOT NULL DEFAULT 0, PRIMARY KEY(`bookUrl`))", - "fields": [ - { - "fieldPath": "bookUrl", - "columnName": "bookUrl", - "affinity": "TEXT", - "notNull": true, - "defaultValue": "''" - }, - { - "fieldPath": "tocUrl", - "columnName": "tocUrl", - "affinity": "TEXT", - "notNull": true, - "defaultValue": "''" - }, - { - "fieldPath": "origin", - "columnName": "origin", - "affinity": "TEXT", - "notNull": true, - "defaultValue": "'loc_book'" - }, - { - "fieldPath": "originName", - "columnName": "originName", - "affinity": "TEXT", - "notNull": true, - "defaultValue": "''" - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true, - "defaultValue": "''" - }, - { - "fieldPath": "author", - "columnName": "author", - "affinity": "TEXT", - "notNull": true, - "defaultValue": "''" - }, - { - "fieldPath": "kind", - "columnName": "kind", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "customTag", - "columnName": "customTag", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "coverUrl", - "columnName": "coverUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "customCoverUrl", - "columnName": "customCoverUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "intro", - "columnName": "intro", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "customIntro", - "columnName": "customIntro", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "charset", - "columnName": "charset", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "type", - "columnName": "type", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "group", - "columnName": "group", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "latestChapterTitle", - "columnName": "latestChapterTitle", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "latestChapterTime", - "columnName": "latestChapterTime", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "lastCheckTime", - "columnName": "lastCheckTime", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "lastCheckCount", - "columnName": "lastCheckCount", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "totalChapterNum", - "columnName": "totalChapterNum", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "durChapterTitle", - "columnName": "durChapterTitle", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "durChapterIndex", - "columnName": "durChapterIndex", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "durChapterPos", - "columnName": "durChapterPos", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "durChapterTime", - "columnName": "durChapterTime", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "wordCount", - "columnName": "wordCount", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "canUpdate", - "columnName": "canUpdate", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "1" - }, - { - "fieldPath": "order", - "columnName": "order", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "originOrder", - "columnName": "originOrder", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "variable", - "columnName": "variable", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "readConfig", - "columnName": "readConfig", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "syncTime", - "columnName": "syncTime", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - } - ], - "primaryKey": { - "autoGenerate": false, - "columnNames": [ - "bookUrl" - ] - }, - "indices": [ - { - "name": "index_books_name_author", - "unique": true, - "columnNames": [ - "name", - "author" - ], - "orders": [], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_books_name_author` ON `${TABLE_NAME}` (`name`, `author`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "book_groups", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`groupId` INTEGER NOT NULL, `groupName` TEXT NOT NULL, `cover` TEXT, `order` INTEGER NOT NULL, `enableRefresh` INTEGER NOT NULL DEFAULT 1, `show` INTEGER NOT NULL DEFAULT 1, `bookSort` INTEGER NOT NULL DEFAULT -1, PRIMARY KEY(`groupId`))", - "fields": [ - { - "fieldPath": "groupId", - "columnName": "groupId", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "groupName", - "columnName": "groupName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "cover", - "columnName": "cover", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "order", - "columnName": "order", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "enableRefresh", - "columnName": "enableRefresh", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "1" - }, - { - "fieldPath": "show", - "columnName": "show", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "1" - }, - { - "fieldPath": "bookSort", - "columnName": "bookSort", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "-1" - } - ], - "primaryKey": { - "autoGenerate": false, - "columnNames": [ - "groupId" - ] - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "book_sources", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`bookSourceUrl` TEXT NOT NULL, `bookSourceName` TEXT NOT NULL, `bookSourceGroup` TEXT, `bookSourceType` INTEGER NOT NULL, `bookUrlPattern` TEXT, `customOrder` INTEGER NOT NULL DEFAULT 0, `enabled` INTEGER NOT NULL DEFAULT 1, `enabledExplore` INTEGER NOT NULL DEFAULT 1, `jsLib` TEXT, `enabledCookieJar` INTEGER DEFAULT 0, `concurrentRate` TEXT, `header` TEXT, `loginUrl` TEXT, `loginUi` TEXT, `loginCheckJs` TEXT, `coverDecodeJs` TEXT, `bookSourceComment` TEXT, `variableComment` TEXT, `lastUpdateTime` INTEGER NOT NULL, `respondTime` INTEGER NOT NULL, `weight` INTEGER NOT NULL, `exploreUrl` TEXT, `exploreScreen` TEXT, `ruleExplore` TEXT, `searchUrl` TEXT, `ruleSearch` TEXT, `ruleBookInfo` TEXT, `ruleToc` TEXT, `ruleContent` TEXT, `ruleReview` TEXT, PRIMARY KEY(`bookSourceUrl`))", - "fields": [ - { - "fieldPath": "bookSourceUrl", - "columnName": "bookSourceUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookSourceName", - "columnName": "bookSourceName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookSourceGroup", - "columnName": "bookSourceGroup", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "bookSourceType", - "columnName": "bookSourceType", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "bookUrlPattern", - "columnName": "bookUrlPattern", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "customOrder", - "columnName": "customOrder", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "enabled", - "columnName": "enabled", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "1" - }, - { - "fieldPath": "enabledExplore", - "columnName": "enabledExplore", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "1" - }, - { - "fieldPath": "jsLib", - "columnName": "jsLib", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "enabledCookieJar", - "columnName": "enabledCookieJar", - "affinity": "INTEGER", - "notNull": false, - "defaultValue": "0" - }, - { - "fieldPath": "concurrentRate", - "columnName": "concurrentRate", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "header", - "columnName": "header", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "loginUrl", - "columnName": "loginUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "loginUi", - "columnName": "loginUi", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "loginCheckJs", - "columnName": "loginCheckJs", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "coverDecodeJs", - "columnName": "coverDecodeJs", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "bookSourceComment", - "columnName": "bookSourceComment", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "variableComment", - "columnName": "variableComment", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "lastUpdateTime", - "columnName": "lastUpdateTime", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "respondTime", - "columnName": "respondTime", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "weight", - "columnName": "weight", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "exploreUrl", - "columnName": "exploreUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "exploreScreen", - "columnName": "exploreScreen", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleExplore", - "columnName": "ruleExplore", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "searchUrl", - "columnName": "searchUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleSearch", - "columnName": "ruleSearch", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleBookInfo", - "columnName": "ruleBookInfo", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleToc", - "columnName": "ruleToc", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleContent", - "columnName": "ruleContent", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleReview", - "columnName": "ruleReview", - "affinity": "TEXT", - "notNull": false - } - ], - "primaryKey": { - "autoGenerate": false, - "columnNames": [ - "bookSourceUrl" - ] - }, - "indices": [ - { - "name": "index_book_sources_bookSourceUrl", - "unique": false, - "columnNames": [ - "bookSourceUrl" - ], - "orders": [], - "createSql": "CREATE INDEX IF NOT EXISTS `index_book_sources_bookSourceUrl` ON `${TABLE_NAME}` (`bookSourceUrl`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "chapters", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`url` TEXT NOT NULL, `title` TEXT NOT NULL, `isVolume` INTEGER NOT NULL, `baseUrl` TEXT NOT NULL, `bookUrl` TEXT NOT NULL, `index` INTEGER NOT NULL, `isVip` INTEGER NOT NULL, `isPay` INTEGER NOT NULL, `resourceUrl` TEXT, `tag` TEXT, `wordCount` TEXT, `start` INTEGER, `end` INTEGER, `startFragmentId` TEXT, `endFragmentId` TEXT, `variable` TEXT, PRIMARY KEY(`url`, `bookUrl`), FOREIGN KEY(`bookUrl`) REFERENCES `books`(`bookUrl`) ON UPDATE NO ACTION ON DELETE CASCADE )", - "fields": [ - { - "fieldPath": "url", - "columnName": "url", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "title", - "columnName": "title", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "isVolume", - "columnName": "isVolume", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "baseUrl", - "columnName": "baseUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookUrl", - "columnName": "bookUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "index", - "columnName": "index", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "isVip", - "columnName": "isVip", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "isPay", - "columnName": "isPay", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "resourceUrl", - "columnName": "resourceUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "tag", - "columnName": "tag", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "wordCount", - "columnName": "wordCount", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "start", - "columnName": "start", - "affinity": "INTEGER", - "notNull": false - }, - { - "fieldPath": "end", - "columnName": "end", - "affinity": "INTEGER", - "notNull": false - }, - { - "fieldPath": "startFragmentId", - "columnName": "startFragmentId", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "endFragmentId", - "columnName": "endFragmentId", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "variable", - "columnName": "variable", - "affinity": "TEXT", - "notNull": false - } - ], - "primaryKey": { - "autoGenerate": false, - "columnNames": [ - "url", - "bookUrl" - ] - }, - "indices": [ - { - "name": "index_chapters_bookUrl", - "unique": false, - "columnNames": [ - "bookUrl" - ], - "orders": [], - "createSql": "CREATE INDEX IF NOT EXISTS `index_chapters_bookUrl` ON `${TABLE_NAME}` (`bookUrl`)" - }, - { - "name": "index_chapters_bookUrl_index", - "unique": true, - "columnNames": [ - "bookUrl", - "index" - ], - "orders": [], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_chapters_bookUrl_index` ON `${TABLE_NAME}` (`bookUrl`, `index`)" - } - ], - "foreignKeys": [ - { - "table": "books", - "onDelete": "CASCADE", - "onUpdate": "NO ACTION", - "columns": [ - "bookUrl" - ], - "referencedColumns": [ - "bookUrl" - ] - } - ] - }, - { - "tableName": "replace_rules", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, `name` TEXT NOT NULL DEFAULT '', `group` TEXT, `pattern` TEXT NOT NULL DEFAULT '', `replacement` TEXT NOT NULL DEFAULT '', `scope` TEXT, `scopeTitle` INTEGER NOT NULL DEFAULT 0, `scopeContent` INTEGER NOT NULL DEFAULT 1, `excludeScope` TEXT, `isEnabled` INTEGER NOT NULL DEFAULT 1, `isRegex` INTEGER NOT NULL DEFAULT 1, `timeoutMillisecond` INTEGER NOT NULL DEFAULT 3000, `sortOrder` INTEGER NOT NULL DEFAULT 0)", - "fields": [ - { - "fieldPath": "id", - "columnName": "id", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true, - "defaultValue": "''" - }, - { - "fieldPath": "group", - "columnName": "group", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "pattern", - "columnName": "pattern", - "affinity": "TEXT", - "notNull": true, - "defaultValue": "''" - }, - { - "fieldPath": "replacement", - "columnName": "replacement", - "affinity": "TEXT", - "notNull": true, - "defaultValue": "''" - }, - { - "fieldPath": "scope", - "columnName": "scope", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "scopeTitle", - "columnName": "scopeTitle", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "scopeContent", - "columnName": "scopeContent", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "1" - }, - { - "fieldPath": "excludeScope", - "columnName": "excludeScope", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "isEnabled", - "columnName": "isEnabled", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "1" - }, - { - "fieldPath": "isRegex", - "columnName": "isRegex", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "1" - }, - { - "fieldPath": "timeoutMillisecond", - "columnName": "timeoutMillisecond", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "3000" - }, - { - "fieldPath": "order", - "columnName": "sortOrder", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - } - ], - "primaryKey": { - "autoGenerate": true, - "columnNames": [ - "id" - ] - }, - "indices": [ - { - "name": "index_replace_rules_id", - "unique": false, - "columnNames": [ - "id" - ], - "orders": [], - "createSql": "CREATE INDEX IF NOT EXISTS `index_replace_rules_id` ON `${TABLE_NAME}` (`id`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "searchBooks", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`bookUrl` TEXT NOT NULL, `origin` TEXT NOT NULL, `originName` TEXT NOT NULL, `type` INTEGER NOT NULL, `name` TEXT NOT NULL, `author` TEXT NOT NULL, `kind` TEXT, `coverUrl` TEXT, `intro` TEXT, `wordCount` TEXT, `latestChapterTitle` TEXT, `tocUrl` TEXT NOT NULL, `time` INTEGER NOT NULL, `variable` TEXT, `originOrder` INTEGER NOT NULL, `chapterWordCountText` TEXT, `chapterWordCount` INTEGER NOT NULL DEFAULT -1, `respondTime` INTEGER NOT NULL DEFAULT -1, PRIMARY KEY(`bookUrl`), FOREIGN KEY(`origin`) REFERENCES `book_sources`(`bookSourceUrl`) ON UPDATE NO ACTION ON DELETE CASCADE )", - "fields": [ - { - "fieldPath": "bookUrl", - "columnName": "bookUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "origin", - "columnName": "origin", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "originName", - "columnName": "originName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "type", - "columnName": "type", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "author", - "columnName": "author", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "kind", - "columnName": "kind", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "coverUrl", - "columnName": "coverUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "intro", - "columnName": "intro", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "wordCount", - "columnName": "wordCount", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "latestChapterTitle", - "columnName": "latestChapterTitle", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "tocUrl", - "columnName": "tocUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "time", - "columnName": "time", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "variable", - "columnName": "variable", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "originOrder", - "columnName": "originOrder", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "chapterWordCountText", - "columnName": "chapterWordCountText", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "chapterWordCount", - "columnName": "chapterWordCount", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "-1" - }, - { - "fieldPath": "respondTime", - "columnName": "respondTime", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "-1" - } - ], - "primaryKey": { - "autoGenerate": false, - "columnNames": [ - "bookUrl" - ] - }, - "indices": [ - { - "name": "index_searchBooks_bookUrl", - "unique": true, - "columnNames": [ - "bookUrl" - ], - "orders": [], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_searchBooks_bookUrl` ON `${TABLE_NAME}` (`bookUrl`)" - }, - { - "name": "index_searchBooks_origin", - "unique": false, - "columnNames": [ - "origin" - ], - "orders": [], - "createSql": "CREATE INDEX IF NOT EXISTS `index_searchBooks_origin` ON `${TABLE_NAME}` (`origin`)" - } - ], - "foreignKeys": [ - { - "table": "book_sources", - "onDelete": "CASCADE", - "onUpdate": "NO ACTION", - "columns": [ - "origin" - ], - "referencedColumns": [ - "bookSourceUrl" - ] - } - ] - }, - { - "tableName": "search_keywords", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`word` TEXT NOT NULL, `usage` INTEGER NOT NULL, `lastUseTime` INTEGER NOT NULL, PRIMARY KEY(`word`))", - "fields": [ - { - "fieldPath": "word", - "columnName": "word", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "usage", - "columnName": "usage", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "lastUseTime", - "columnName": "lastUseTime", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "autoGenerate": false, - "columnNames": [ - "word" - ] - }, - "indices": [ - { - "name": "index_search_keywords_word", - "unique": true, - "columnNames": [ - "word" - ], - "orders": [], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_search_keywords_word` ON `${TABLE_NAME}` (`word`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "cookies", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`url` TEXT NOT NULL, `cookie` TEXT NOT NULL, PRIMARY KEY(`url`))", - "fields": [ - { - "fieldPath": "url", - "columnName": "url", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "cookie", - "columnName": "cookie", - "affinity": "TEXT", - "notNull": true - } - ], - "primaryKey": { - "autoGenerate": false, - "columnNames": [ - "url" - ] - }, - "indices": [ - { - "name": "index_cookies_url", - "unique": true, - "columnNames": [ - "url" - ], - "orders": [], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_cookies_url` ON `${TABLE_NAME}` (`url`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "rssSources", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`sourceUrl` TEXT NOT NULL, `sourceName` TEXT NOT NULL, `sourceIcon` TEXT NOT NULL, `sourceGroup` TEXT, `sourceComment` TEXT, `enabled` INTEGER NOT NULL, `variableComment` TEXT, `jsLib` TEXT, `enabledCookieJar` INTEGER DEFAULT 0, `concurrentRate` TEXT, `header` TEXT, `loginUrl` TEXT, `loginUi` TEXT, `loginCheckJs` TEXT, `coverDecodeJs` TEXT, `sortUrl` TEXT, `singleUrl` INTEGER NOT NULL, `articleStyle` INTEGER NOT NULL DEFAULT 0, `ruleArticles` TEXT, `ruleNextPage` TEXT, `ruleTitle` TEXT, `rulePubDate` TEXT, `ruleDescription` TEXT, `ruleImage` TEXT, `ruleLink` TEXT, `ruleContent` TEXT, `contentWhitelist` TEXT, `contentBlacklist` TEXT, `shouldOverrideUrlLoading` TEXT, `style` TEXT, `enableJs` INTEGER NOT NULL DEFAULT 1, `loadWithBaseUrl` INTEGER NOT NULL DEFAULT 1, `injectJs` TEXT, `lastUpdateTime` INTEGER NOT NULL DEFAULT 0, `customOrder` INTEGER NOT NULL DEFAULT 0, PRIMARY KEY(`sourceUrl`))", - "fields": [ - { - "fieldPath": "sourceUrl", - "columnName": "sourceUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "sourceName", - "columnName": "sourceName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "sourceIcon", - "columnName": "sourceIcon", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "sourceGroup", - "columnName": "sourceGroup", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "sourceComment", - "columnName": "sourceComment", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "enabled", - "columnName": "enabled", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "variableComment", - "columnName": "variableComment", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "jsLib", - "columnName": "jsLib", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "enabledCookieJar", - "columnName": "enabledCookieJar", - "affinity": "INTEGER", - "notNull": false, - "defaultValue": "0" - }, - { - "fieldPath": "concurrentRate", - "columnName": "concurrentRate", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "header", - "columnName": "header", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "loginUrl", - "columnName": "loginUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "loginUi", - "columnName": "loginUi", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "loginCheckJs", - "columnName": "loginCheckJs", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "coverDecodeJs", - "columnName": "coverDecodeJs", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "sortUrl", - "columnName": "sortUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "singleUrl", - "columnName": "singleUrl", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "articleStyle", - "columnName": "articleStyle", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "ruleArticles", - "columnName": "ruleArticles", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleNextPage", - "columnName": "ruleNextPage", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleTitle", - "columnName": "ruleTitle", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "rulePubDate", - "columnName": "rulePubDate", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleDescription", - "columnName": "ruleDescription", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleImage", - "columnName": "ruleImage", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleLink", - "columnName": "ruleLink", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleContent", - "columnName": "ruleContent", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "contentWhitelist", - "columnName": "contentWhitelist", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "contentBlacklist", - "columnName": "contentBlacklist", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "shouldOverrideUrlLoading", - "columnName": "shouldOverrideUrlLoading", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "style", - "columnName": "style", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "enableJs", - "columnName": "enableJs", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "1" - }, - { - "fieldPath": "loadWithBaseUrl", - "columnName": "loadWithBaseUrl", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "1" - }, - { - "fieldPath": "injectJs", - "columnName": "injectJs", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "lastUpdateTime", - "columnName": "lastUpdateTime", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "customOrder", - "columnName": "customOrder", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - } - ], - "primaryKey": { - "autoGenerate": false, - "columnNames": [ - "sourceUrl" - ] - }, - "indices": [ - { - "name": "index_rssSources_sourceUrl", - "unique": false, - "columnNames": [ - "sourceUrl" - ], - "orders": [], - "createSql": "CREATE INDEX IF NOT EXISTS `index_rssSources_sourceUrl` ON `${TABLE_NAME}` (`sourceUrl`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "bookmarks", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`time` INTEGER NOT NULL, `bookName` TEXT NOT NULL, `bookAuthor` TEXT NOT NULL, `chapterIndex` INTEGER NOT NULL, `chapterPos` INTEGER NOT NULL, `chapterName` TEXT NOT NULL, `bookText` TEXT NOT NULL, `content` TEXT NOT NULL, PRIMARY KEY(`time`))", - "fields": [ - { - "fieldPath": "time", - "columnName": "time", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "bookName", - "columnName": "bookName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookAuthor", - "columnName": "bookAuthor", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "chapterIndex", - "columnName": "chapterIndex", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "chapterPos", - "columnName": "chapterPos", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "chapterName", - "columnName": "chapterName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookText", - "columnName": "bookText", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "content", - "columnName": "content", - "affinity": "TEXT", - "notNull": true - } - ], - "primaryKey": { - "autoGenerate": false, - "columnNames": [ - "time" - ] - }, - "indices": [ - { - "name": "index_bookmarks_bookName_bookAuthor", - "unique": false, - "columnNames": [ - "bookName", - "bookAuthor" - ], - "orders": [], - "createSql": "CREATE INDEX IF NOT EXISTS `index_bookmarks_bookName_bookAuthor` ON `${TABLE_NAME}` (`bookName`, `bookAuthor`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "rssArticles", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`origin` TEXT NOT NULL, `sort` TEXT NOT NULL, `title` TEXT NOT NULL, `order` INTEGER NOT NULL, `link` TEXT NOT NULL, `pubDate` TEXT, `description` TEXT, `content` TEXT, `image` TEXT, `group` TEXT NOT NULL DEFAULT '默认分组', `read` INTEGER NOT NULL, `variable` TEXT, PRIMARY KEY(`origin`, `link`))", - "fields": [ - { - "fieldPath": "origin", - "columnName": "origin", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "sort", - "columnName": "sort", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "title", - "columnName": "title", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "order", - "columnName": "order", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "link", - "columnName": "link", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "pubDate", - "columnName": "pubDate", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "description", - "columnName": "description", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "content", - "columnName": "content", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "image", - "columnName": "image", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "group", - "columnName": "group", - "affinity": "TEXT", - "notNull": true, - "defaultValue": "'默认分组'" - }, - { - "fieldPath": "read", - "columnName": "read", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "variable", - "columnName": "variable", - "affinity": "TEXT", - "notNull": false - } - ], - "primaryKey": { - "autoGenerate": false, - "columnNames": [ - "origin", - "link" - ] - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "rssReadRecords", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`record` TEXT NOT NULL, `read` INTEGER NOT NULL, PRIMARY KEY(`record`))", - "fields": [ - { - "fieldPath": "record", - "columnName": "record", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "read", - "columnName": "read", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "autoGenerate": false, - "columnNames": [ - "record" - ] - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "rssStars", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`origin` TEXT NOT NULL, `sort` TEXT NOT NULL, `title` TEXT NOT NULL, `starTime` INTEGER NOT NULL, `link` TEXT NOT NULL, `pubDate` TEXT, `description` TEXT, `content` TEXT, `image` TEXT, `group` TEXT NOT NULL DEFAULT '默认分组', `variable` TEXT, PRIMARY KEY(`origin`, `link`))", - "fields": [ - { - "fieldPath": "origin", - "columnName": "origin", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "sort", - "columnName": "sort", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "title", - "columnName": "title", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "starTime", - "columnName": "starTime", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "link", - "columnName": "link", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "pubDate", - "columnName": "pubDate", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "description", - "columnName": "description", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "content", - "columnName": "content", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "image", - "columnName": "image", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "group", - "columnName": "group", - "affinity": "TEXT", - "notNull": true, - "defaultValue": "'默认分组'" - }, - { - "fieldPath": "variable", - "columnName": "variable", - "affinity": "TEXT", - "notNull": false - } - ], - "primaryKey": { - "autoGenerate": false, - "columnNames": [ - "origin", - "link" - ] - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "txtTocRules", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER NOT NULL, `name` TEXT NOT NULL, `rule` TEXT NOT NULL, `example` TEXT, `serialNumber` INTEGER NOT NULL, `enable` INTEGER NOT NULL, PRIMARY KEY(`id`))", - "fields": [ - { - "fieldPath": "id", - "columnName": "id", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "rule", - "columnName": "rule", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "example", - "columnName": "example", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "serialNumber", - "columnName": "serialNumber", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "enable", - "columnName": "enable", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "autoGenerate": false, - "columnNames": [ - "id" - ] - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "readRecord", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`deviceId` TEXT NOT NULL, `bookName` TEXT NOT NULL, `readTime` INTEGER NOT NULL DEFAULT 0, `lastRead` INTEGER NOT NULL DEFAULT 0, PRIMARY KEY(`deviceId`, `bookName`))", - "fields": [ - { - "fieldPath": "deviceId", - "columnName": "deviceId", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookName", - "columnName": "bookName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "readTime", - "columnName": "readTime", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "lastRead", - "columnName": "lastRead", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - } - ], - "primaryKey": { - "autoGenerate": false, - "columnNames": [ - "deviceId", - "bookName" - ] - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "httpTTS", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER NOT NULL, `name` TEXT NOT NULL, `url` TEXT NOT NULL, `contentType` TEXT, `concurrentRate` TEXT DEFAULT '0', `loginUrl` TEXT, `loginUi` TEXT, `header` TEXT, `jsLib` TEXT, `enabledCookieJar` INTEGER DEFAULT 0, `loginCheckJs` TEXT, `lastUpdateTime` INTEGER NOT NULL DEFAULT 0, PRIMARY KEY(`id`))", - "fields": [ - { - "fieldPath": "id", - "columnName": "id", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "url", - "columnName": "url", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "contentType", - "columnName": "contentType", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "concurrentRate", - "columnName": "concurrentRate", - "affinity": "TEXT", - "notNull": false, - "defaultValue": "'0'" - }, - { - "fieldPath": "loginUrl", - "columnName": "loginUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "loginUi", - "columnName": "loginUi", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "header", - "columnName": "header", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "jsLib", - "columnName": "jsLib", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "enabledCookieJar", - "columnName": "enabledCookieJar", - "affinity": "INTEGER", - "notNull": false, - "defaultValue": "0" - }, - { - "fieldPath": "loginCheckJs", - "columnName": "loginCheckJs", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "lastUpdateTime", - "columnName": "lastUpdateTime", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - } - ], - "primaryKey": { - "autoGenerate": false, - "columnNames": [ - "id" - ] - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "caches", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`key` TEXT NOT NULL, `value` TEXT, `deadline` INTEGER NOT NULL, PRIMARY KEY(`key`))", - "fields": [ - { - "fieldPath": "key", - "columnName": "key", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "value", - "columnName": "value", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "deadline", - "columnName": "deadline", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "autoGenerate": false, - "columnNames": [ - "key" - ] - }, - "indices": [ - { - "name": "index_caches_key", - "unique": true, - "columnNames": [ - "key" - ], - "orders": [], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_caches_key` ON `${TABLE_NAME}` (`key`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "ruleSubs", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER NOT NULL, `name` TEXT NOT NULL, `url` TEXT NOT NULL, `type` INTEGER NOT NULL, `customOrder` INTEGER NOT NULL, `autoUpdate` INTEGER NOT NULL, `update` INTEGER NOT NULL, PRIMARY KEY(`id`))", - "fields": [ - { - "fieldPath": "id", - "columnName": "id", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "url", - "columnName": "url", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "type", - "columnName": "type", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "customOrder", - "columnName": "customOrder", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "autoUpdate", - "columnName": "autoUpdate", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "update", - "columnName": "update", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "autoGenerate": false, - "columnNames": [ - "id" - ] - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "dictRules", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`name` TEXT NOT NULL, `urlRule` TEXT NOT NULL, `showRule` TEXT NOT NULL, `enabled` INTEGER NOT NULL DEFAULT 1, `sortNumber` INTEGER NOT NULL DEFAULT 0, PRIMARY KEY(`name`))", - "fields": [ - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "urlRule", - "columnName": "urlRule", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "showRule", - "columnName": "showRule", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "enabled", - "columnName": "enabled", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "1" - }, - { - "fieldPath": "sortNumber", - "columnName": "sortNumber", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - } - ], - "primaryKey": { - "autoGenerate": false, - "columnNames": [ - "name" - ] - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "keyboardAssists", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`type` INTEGER NOT NULL DEFAULT 0, `key` TEXT NOT NULL DEFAULT '', `value` TEXT NOT NULL DEFAULT '', `serialNo` INTEGER NOT NULL DEFAULT 0, PRIMARY KEY(`type`, `key`))", - "fields": [ - { - "fieldPath": "type", - "columnName": "type", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "key", - "columnName": "key", - "affinity": "TEXT", - "notNull": true, - "defaultValue": "''" - }, - { - "fieldPath": "value", - "columnName": "value", - "affinity": "TEXT", - "notNull": true, - "defaultValue": "''" - }, - { - "fieldPath": "serialNo", - "columnName": "serialNo", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - } - ], - "primaryKey": { - "autoGenerate": false, - "columnNames": [ - "type", - "key" - ] - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "servers", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER NOT NULL, `name` TEXT NOT NULL, `type` TEXT NOT NULL, `config` TEXT, `sortNumber` INTEGER NOT NULL, PRIMARY KEY(`id`))", - "fields": [ - { - "fieldPath": "id", - "columnName": "id", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "type", - "columnName": "type", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "config", - "columnName": "config", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "sortNumber", - "columnName": "sortNumber", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "autoGenerate": false, - "columnNames": [ - "id" - ] - }, - "indices": [], - "foreignKeys": [] - } - ], - "views": [], - "setupQueries": [ - "CREATE TABLE IF NOT EXISTS room_master_table (id INTEGER PRIMARY KEY,identity_hash TEXT)", - "INSERT OR REPLACE INTO room_master_table (id,identity_hash) VALUES(42, '63617164079ebbdaf82176384c39bba5')" - ] - } -} \ No newline at end of file diff --git a/app/schemas/io.legado.app.data.AppDatabase/74.json b/app/schemas/io.legado.app.data.AppDatabase/74.json deleted file mode 100644 index 91913bcc7..000000000 --- a/app/schemas/io.legado.app.data.AppDatabase/74.json +++ /dev/null @@ -1,1930 +0,0 @@ -{ - "formatVersion": 1, - "database": { - "version": 74, - "identityHash": "c492bca5d9c4b4b34a0808d8cce9e7ba", - "entities": [ - { - "tableName": "books", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`bookUrl` TEXT NOT NULL DEFAULT '', `tocUrl` TEXT NOT NULL DEFAULT '', `origin` TEXT NOT NULL DEFAULT 'loc_book', `originName` TEXT NOT NULL DEFAULT '', `name` TEXT NOT NULL DEFAULT '', `author` TEXT NOT NULL DEFAULT '', `kind` TEXT, `customTag` TEXT, `coverUrl` TEXT, `customCoverUrl` TEXT, `intro` TEXT, `customIntro` TEXT, `charset` TEXT, `type` INTEGER NOT NULL DEFAULT 0, `group` INTEGER NOT NULL DEFAULT 0, `latestChapterTitle` TEXT, `latestChapterTime` INTEGER NOT NULL DEFAULT 0, `lastCheckTime` INTEGER NOT NULL DEFAULT 0, `lastCheckCount` INTEGER NOT NULL DEFAULT 0, `totalChapterNum` INTEGER NOT NULL DEFAULT 0, `durChapterTitle` TEXT, `durChapterIndex` INTEGER NOT NULL DEFAULT 0, `durChapterPos` INTEGER NOT NULL DEFAULT 0, `durChapterTime` INTEGER NOT NULL DEFAULT 0, `wordCount` TEXT, `canUpdate` INTEGER NOT NULL DEFAULT 1, `order` INTEGER NOT NULL DEFAULT 0, `originOrder` INTEGER NOT NULL DEFAULT 0, `variable` TEXT, `readConfig` TEXT, `syncTime` INTEGER NOT NULL DEFAULT 0, PRIMARY KEY(`bookUrl`))", - "fields": [ - { - "fieldPath": "bookUrl", - "columnName": "bookUrl", - "affinity": "TEXT", - "notNull": true, - "defaultValue": "''" - }, - { - "fieldPath": "tocUrl", - "columnName": "tocUrl", - "affinity": "TEXT", - "notNull": true, - "defaultValue": "''" - }, - { - "fieldPath": "origin", - "columnName": "origin", - "affinity": "TEXT", - "notNull": true, - "defaultValue": "'loc_book'" - }, - { - "fieldPath": "originName", - "columnName": "originName", - "affinity": "TEXT", - "notNull": true, - "defaultValue": "''" - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true, - "defaultValue": "''" - }, - { - "fieldPath": "author", - "columnName": "author", - "affinity": "TEXT", - "notNull": true, - "defaultValue": "''" - }, - { - "fieldPath": "kind", - "columnName": "kind", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "customTag", - "columnName": "customTag", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "coverUrl", - "columnName": "coverUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "customCoverUrl", - "columnName": "customCoverUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "intro", - "columnName": "intro", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "customIntro", - "columnName": "customIntro", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "charset", - "columnName": "charset", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "type", - "columnName": "type", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "group", - "columnName": "group", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "latestChapterTitle", - "columnName": "latestChapterTitle", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "latestChapterTime", - "columnName": "latestChapterTime", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "lastCheckTime", - "columnName": "lastCheckTime", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "lastCheckCount", - "columnName": "lastCheckCount", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "totalChapterNum", - "columnName": "totalChapterNum", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "durChapterTitle", - "columnName": "durChapterTitle", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "durChapterIndex", - "columnName": "durChapterIndex", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "durChapterPos", - "columnName": "durChapterPos", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "durChapterTime", - "columnName": "durChapterTime", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "wordCount", - "columnName": "wordCount", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "canUpdate", - "columnName": "canUpdate", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "1" - }, - { - "fieldPath": "order", - "columnName": "order", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "originOrder", - "columnName": "originOrder", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "variable", - "columnName": "variable", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "readConfig", - "columnName": "readConfig", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "syncTime", - "columnName": "syncTime", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - } - ], - "primaryKey": { - "autoGenerate": false, - "columnNames": [ - "bookUrl" - ] - }, - "indices": [ - { - "name": "index_books_name_author", - "unique": true, - "columnNames": [ - "name", - "author" - ], - "orders": [], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_books_name_author` ON `${TABLE_NAME}` (`name`, `author`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "book_groups", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`groupId` INTEGER NOT NULL, `groupName` TEXT NOT NULL, `cover` TEXT, `order` INTEGER NOT NULL, `enableRefresh` INTEGER NOT NULL DEFAULT 1, `show` INTEGER NOT NULL DEFAULT 1, `bookSort` INTEGER NOT NULL DEFAULT -1, PRIMARY KEY(`groupId`))", - "fields": [ - { - "fieldPath": "groupId", - "columnName": "groupId", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "groupName", - "columnName": "groupName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "cover", - "columnName": "cover", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "order", - "columnName": "order", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "enableRefresh", - "columnName": "enableRefresh", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "1" - }, - { - "fieldPath": "show", - "columnName": "show", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "1" - }, - { - "fieldPath": "bookSort", - "columnName": "bookSort", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "-1" - } - ], - "primaryKey": { - "autoGenerate": false, - "columnNames": [ - "groupId" - ] - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "book_sources", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`bookSourceUrl` TEXT NOT NULL, `bookSourceName` TEXT NOT NULL, `bookSourceGroup` TEXT, `bookSourceType` INTEGER NOT NULL, `bookUrlPattern` TEXT, `customOrder` INTEGER NOT NULL DEFAULT 0, `enabled` INTEGER NOT NULL DEFAULT 1, `enabledExplore` INTEGER NOT NULL DEFAULT 1, `jsLib` TEXT, `enabledCookieJar` INTEGER DEFAULT 0, `concurrentRate` TEXT, `header` TEXT, `loginUrl` TEXT, `loginUi` TEXT, `loginCheckJs` TEXT, `coverDecodeJs` TEXT, `bookSourceComment` TEXT, `variableComment` TEXT, `lastUpdateTime` INTEGER NOT NULL, `respondTime` INTEGER NOT NULL, `weight` INTEGER NOT NULL, `exploreUrl` TEXT, `exploreScreen` TEXT, `ruleExplore` TEXT, `searchUrl` TEXT, `ruleSearch` TEXT, `ruleBookInfo` TEXT, `ruleToc` TEXT, `ruleContent` TEXT, `ruleReview` TEXT, PRIMARY KEY(`bookSourceUrl`))", - "fields": [ - { - "fieldPath": "bookSourceUrl", - "columnName": "bookSourceUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookSourceName", - "columnName": "bookSourceName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookSourceGroup", - "columnName": "bookSourceGroup", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "bookSourceType", - "columnName": "bookSourceType", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "bookUrlPattern", - "columnName": "bookUrlPattern", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "customOrder", - "columnName": "customOrder", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "enabled", - "columnName": "enabled", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "1" - }, - { - "fieldPath": "enabledExplore", - "columnName": "enabledExplore", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "1" - }, - { - "fieldPath": "jsLib", - "columnName": "jsLib", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "enabledCookieJar", - "columnName": "enabledCookieJar", - "affinity": "INTEGER", - "notNull": false, - "defaultValue": "0" - }, - { - "fieldPath": "concurrentRate", - "columnName": "concurrentRate", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "header", - "columnName": "header", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "loginUrl", - "columnName": "loginUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "loginUi", - "columnName": "loginUi", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "loginCheckJs", - "columnName": "loginCheckJs", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "coverDecodeJs", - "columnName": "coverDecodeJs", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "bookSourceComment", - "columnName": "bookSourceComment", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "variableComment", - "columnName": "variableComment", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "lastUpdateTime", - "columnName": "lastUpdateTime", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "respondTime", - "columnName": "respondTime", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "weight", - "columnName": "weight", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "exploreUrl", - "columnName": "exploreUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "exploreScreen", - "columnName": "exploreScreen", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleExplore", - "columnName": "ruleExplore", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "searchUrl", - "columnName": "searchUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleSearch", - "columnName": "ruleSearch", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleBookInfo", - "columnName": "ruleBookInfo", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleToc", - "columnName": "ruleToc", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleContent", - "columnName": "ruleContent", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleReview", - "columnName": "ruleReview", - "affinity": "TEXT", - "notNull": false - } - ], - "primaryKey": { - "autoGenerate": false, - "columnNames": [ - "bookSourceUrl" - ] - }, - "indices": [ - { - "name": "index_book_sources_bookSourceUrl", - "unique": false, - "columnNames": [ - "bookSourceUrl" - ], - "orders": [], - "createSql": "CREATE INDEX IF NOT EXISTS `index_book_sources_bookSourceUrl` ON `${TABLE_NAME}` (`bookSourceUrl`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "chapters", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`url` TEXT NOT NULL, `title` TEXT NOT NULL, `isVolume` INTEGER NOT NULL, `baseUrl` TEXT NOT NULL, `bookUrl` TEXT NOT NULL, `index` INTEGER NOT NULL, `isVip` INTEGER NOT NULL, `isPay` INTEGER NOT NULL, `resourceUrl` TEXT, `tag` TEXT, `wordCount` TEXT, `start` INTEGER, `end` INTEGER, `startFragmentId` TEXT, `endFragmentId` TEXT, `variable` TEXT, PRIMARY KEY(`url`, `bookUrl`), FOREIGN KEY(`bookUrl`) REFERENCES `books`(`bookUrl`) ON UPDATE NO ACTION ON DELETE CASCADE )", - "fields": [ - { - "fieldPath": "url", - "columnName": "url", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "title", - "columnName": "title", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "isVolume", - "columnName": "isVolume", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "baseUrl", - "columnName": "baseUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookUrl", - "columnName": "bookUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "index", - "columnName": "index", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "isVip", - "columnName": "isVip", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "isPay", - "columnName": "isPay", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "resourceUrl", - "columnName": "resourceUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "tag", - "columnName": "tag", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "wordCount", - "columnName": "wordCount", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "start", - "columnName": "start", - "affinity": "INTEGER", - "notNull": false - }, - { - "fieldPath": "end", - "columnName": "end", - "affinity": "INTEGER", - "notNull": false - }, - { - "fieldPath": "startFragmentId", - "columnName": "startFragmentId", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "endFragmentId", - "columnName": "endFragmentId", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "variable", - "columnName": "variable", - "affinity": "TEXT", - "notNull": false - } - ], - "primaryKey": { - "autoGenerate": false, - "columnNames": [ - "url", - "bookUrl" - ] - }, - "indices": [ - { - "name": "index_chapters_bookUrl", - "unique": false, - "columnNames": [ - "bookUrl" - ], - "orders": [], - "createSql": "CREATE INDEX IF NOT EXISTS `index_chapters_bookUrl` ON `${TABLE_NAME}` (`bookUrl`)" - }, - { - "name": "index_chapters_bookUrl_index", - "unique": true, - "columnNames": [ - "bookUrl", - "index" - ], - "orders": [], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_chapters_bookUrl_index` ON `${TABLE_NAME}` (`bookUrl`, `index`)" - } - ], - "foreignKeys": [ - { - "table": "books", - "onDelete": "CASCADE", - "onUpdate": "NO ACTION", - "columns": [ - "bookUrl" - ], - "referencedColumns": [ - "bookUrl" - ] - } - ] - }, - { - "tableName": "replace_rules", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, `name` TEXT NOT NULL DEFAULT '', `group` TEXT, `pattern` TEXT NOT NULL DEFAULT '', `replacement` TEXT NOT NULL DEFAULT '', `scope` TEXT, `scopeTitle` INTEGER NOT NULL DEFAULT 0, `scopeContent` INTEGER NOT NULL DEFAULT 1, `excludeScope` TEXT, `isEnabled` INTEGER NOT NULL DEFAULT 1, `isRegex` INTEGER NOT NULL DEFAULT 1, `timeoutMillisecond` INTEGER NOT NULL DEFAULT 3000, `sortOrder` INTEGER NOT NULL DEFAULT 0)", - "fields": [ - { - "fieldPath": "id", - "columnName": "id", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true, - "defaultValue": "''" - }, - { - "fieldPath": "group", - "columnName": "group", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "pattern", - "columnName": "pattern", - "affinity": "TEXT", - "notNull": true, - "defaultValue": "''" - }, - { - "fieldPath": "replacement", - "columnName": "replacement", - "affinity": "TEXT", - "notNull": true, - "defaultValue": "''" - }, - { - "fieldPath": "scope", - "columnName": "scope", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "scopeTitle", - "columnName": "scopeTitle", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "scopeContent", - "columnName": "scopeContent", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "1" - }, - { - "fieldPath": "excludeScope", - "columnName": "excludeScope", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "isEnabled", - "columnName": "isEnabled", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "1" - }, - { - "fieldPath": "isRegex", - "columnName": "isRegex", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "1" - }, - { - "fieldPath": "timeoutMillisecond", - "columnName": "timeoutMillisecond", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "3000" - }, - { - "fieldPath": "order", - "columnName": "sortOrder", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - } - ], - "primaryKey": { - "autoGenerate": true, - "columnNames": [ - "id" - ] - }, - "indices": [ - { - "name": "index_replace_rules_id", - "unique": false, - "columnNames": [ - "id" - ], - "orders": [], - "createSql": "CREATE INDEX IF NOT EXISTS `index_replace_rules_id` ON `${TABLE_NAME}` (`id`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "searchBooks", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`bookUrl` TEXT NOT NULL, `origin` TEXT NOT NULL, `originName` TEXT NOT NULL, `type` INTEGER NOT NULL, `name` TEXT NOT NULL, `author` TEXT NOT NULL, `kind` TEXT, `coverUrl` TEXT, `intro` TEXT, `wordCount` TEXT, `latestChapterTitle` TEXT, `tocUrl` TEXT NOT NULL, `time` INTEGER NOT NULL, `variable` TEXT, `originOrder` INTEGER NOT NULL, `chapterWordCountText` TEXT, `chapterWordCount` INTEGER NOT NULL DEFAULT -1, `respondTime` INTEGER NOT NULL DEFAULT -1, PRIMARY KEY(`bookUrl`), FOREIGN KEY(`origin`) REFERENCES `book_sources`(`bookSourceUrl`) ON UPDATE NO ACTION ON DELETE CASCADE )", - "fields": [ - { - "fieldPath": "bookUrl", - "columnName": "bookUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "origin", - "columnName": "origin", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "originName", - "columnName": "originName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "type", - "columnName": "type", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "author", - "columnName": "author", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "kind", - "columnName": "kind", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "coverUrl", - "columnName": "coverUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "intro", - "columnName": "intro", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "wordCount", - "columnName": "wordCount", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "latestChapterTitle", - "columnName": "latestChapterTitle", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "tocUrl", - "columnName": "tocUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "time", - "columnName": "time", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "variable", - "columnName": "variable", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "originOrder", - "columnName": "originOrder", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "chapterWordCountText", - "columnName": "chapterWordCountText", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "chapterWordCount", - "columnName": "chapterWordCount", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "-1" - }, - { - "fieldPath": "respondTime", - "columnName": "respondTime", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "-1" - } - ], - "primaryKey": { - "autoGenerate": false, - "columnNames": [ - "bookUrl" - ] - }, - "indices": [ - { - "name": "index_searchBooks_bookUrl", - "unique": true, - "columnNames": [ - "bookUrl" - ], - "orders": [], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_searchBooks_bookUrl` ON `${TABLE_NAME}` (`bookUrl`)" - }, - { - "name": "index_searchBooks_origin", - "unique": false, - "columnNames": [ - "origin" - ], - "orders": [], - "createSql": "CREATE INDEX IF NOT EXISTS `index_searchBooks_origin` ON `${TABLE_NAME}` (`origin`)" - } - ], - "foreignKeys": [ - { - "table": "book_sources", - "onDelete": "CASCADE", - "onUpdate": "NO ACTION", - "columns": [ - "origin" - ], - "referencedColumns": [ - "bookSourceUrl" - ] - } - ] - }, - { - "tableName": "search_keywords", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`word` TEXT NOT NULL, `usage` INTEGER NOT NULL, `lastUseTime` INTEGER NOT NULL, PRIMARY KEY(`word`))", - "fields": [ - { - "fieldPath": "word", - "columnName": "word", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "usage", - "columnName": "usage", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "lastUseTime", - "columnName": "lastUseTime", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "autoGenerate": false, - "columnNames": [ - "word" - ] - }, - "indices": [ - { - "name": "index_search_keywords_word", - "unique": true, - "columnNames": [ - "word" - ], - "orders": [], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_search_keywords_word` ON `${TABLE_NAME}` (`word`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "cookies", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`url` TEXT NOT NULL, `cookie` TEXT NOT NULL, PRIMARY KEY(`url`))", - "fields": [ - { - "fieldPath": "url", - "columnName": "url", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "cookie", - "columnName": "cookie", - "affinity": "TEXT", - "notNull": true - } - ], - "primaryKey": { - "autoGenerate": false, - "columnNames": [ - "url" - ] - }, - "indices": [ - { - "name": "index_cookies_url", - "unique": true, - "columnNames": [ - "url" - ], - "orders": [], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_cookies_url` ON `${TABLE_NAME}` (`url`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "rssSources", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`sourceUrl` TEXT NOT NULL, `sourceName` TEXT NOT NULL, `sourceIcon` TEXT NOT NULL, `sourceGroup` TEXT, `sourceComment` TEXT, `enabled` INTEGER NOT NULL, `variableComment` TEXT, `jsLib` TEXT, `enabledCookieJar` INTEGER DEFAULT 0, `concurrentRate` TEXT, `header` TEXT, `loginUrl` TEXT, `loginUi` TEXT, `loginCheckJs` TEXT, `coverDecodeJs` TEXT, `sortUrl` TEXT, `singleUrl` INTEGER NOT NULL, `articleStyle` INTEGER NOT NULL DEFAULT 0, `ruleArticles` TEXT, `ruleNextPage` TEXT, `ruleTitle` TEXT, `rulePubDate` TEXT, `ruleDescription` TEXT, `ruleImage` TEXT, `ruleLink` TEXT, `ruleContent` TEXT, `contentWhitelist` TEXT, `contentBlacklist` TEXT, `shouldOverrideUrlLoading` TEXT, `style` TEXT, `enableJs` INTEGER NOT NULL DEFAULT 1, `loadWithBaseUrl` INTEGER NOT NULL DEFAULT 1, `injectJs` TEXT, `lastUpdateTime` INTEGER NOT NULL DEFAULT 0, `customOrder` INTEGER NOT NULL DEFAULT 0, PRIMARY KEY(`sourceUrl`))", - "fields": [ - { - "fieldPath": "sourceUrl", - "columnName": "sourceUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "sourceName", - "columnName": "sourceName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "sourceIcon", - "columnName": "sourceIcon", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "sourceGroup", - "columnName": "sourceGroup", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "sourceComment", - "columnName": "sourceComment", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "enabled", - "columnName": "enabled", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "variableComment", - "columnName": "variableComment", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "jsLib", - "columnName": "jsLib", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "enabledCookieJar", - "columnName": "enabledCookieJar", - "affinity": "INTEGER", - "notNull": false, - "defaultValue": "0" - }, - { - "fieldPath": "concurrentRate", - "columnName": "concurrentRate", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "header", - "columnName": "header", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "loginUrl", - "columnName": "loginUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "loginUi", - "columnName": "loginUi", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "loginCheckJs", - "columnName": "loginCheckJs", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "coverDecodeJs", - "columnName": "coverDecodeJs", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "sortUrl", - "columnName": "sortUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "singleUrl", - "columnName": "singleUrl", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "articleStyle", - "columnName": "articleStyle", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "ruleArticles", - "columnName": "ruleArticles", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleNextPage", - "columnName": "ruleNextPage", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleTitle", - "columnName": "ruleTitle", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "rulePubDate", - "columnName": "rulePubDate", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleDescription", - "columnName": "ruleDescription", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleImage", - "columnName": "ruleImage", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleLink", - "columnName": "ruleLink", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleContent", - "columnName": "ruleContent", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "contentWhitelist", - "columnName": "contentWhitelist", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "contentBlacklist", - "columnName": "contentBlacklist", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "shouldOverrideUrlLoading", - "columnName": "shouldOverrideUrlLoading", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "style", - "columnName": "style", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "enableJs", - "columnName": "enableJs", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "1" - }, - { - "fieldPath": "loadWithBaseUrl", - "columnName": "loadWithBaseUrl", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "1" - }, - { - "fieldPath": "injectJs", - "columnName": "injectJs", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "lastUpdateTime", - "columnName": "lastUpdateTime", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "customOrder", - "columnName": "customOrder", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - } - ], - "primaryKey": { - "autoGenerate": false, - "columnNames": [ - "sourceUrl" - ] - }, - "indices": [ - { - "name": "index_rssSources_sourceUrl", - "unique": false, - "columnNames": [ - "sourceUrl" - ], - "orders": [], - "createSql": "CREATE INDEX IF NOT EXISTS `index_rssSources_sourceUrl` ON `${TABLE_NAME}` (`sourceUrl`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "bookmarks", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`time` INTEGER NOT NULL, `bookName` TEXT NOT NULL, `bookAuthor` TEXT NOT NULL, `chapterIndex` INTEGER NOT NULL, `chapterPos` INTEGER NOT NULL, `chapterName` TEXT NOT NULL, `bookText` TEXT NOT NULL, `content` TEXT NOT NULL, PRIMARY KEY(`time`))", - "fields": [ - { - "fieldPath": "time", - "columnName": "time", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "bookName", - "columnName": "bookName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookAuthor", - "columnName": "bookAuthor", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "chapterIndex", - "columnName": "chapterIndex", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "chapterPos", - "columnName": "chapterPos", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "chapterName", - "columnName": "chapterName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookText", - "columnName": "bookText", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "content", - "columnName": "content", - "affinity": "TEXT", - "notNull": true - } - ], - "primaryKey": { - "autoGenerate": false, - "columnNames": [ - "time" - ] - }, - "indices": [ - { - "name": "index_bookmarks_bookName_bookAuthor", - "unique": false, - "columnNames": [ - "bookName", - "bookAuthor" - ], - "orders": [], - "createSql": "CREATE INDEX IF NOT EXISTS `index_bookmarks_bookName_bookAuthor` ON `${TABLE_NAME}` (`bookName`, `bookAuthor`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "rssArticles", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`origin` TEXT NOT NULL, `sort` TEXT NOT NULL, `title` TEXT NOT NULL, `order` INTEGER NOT NULL, `link` TEXT NOT NULL, `pubDate` TEXT, `description` TEXT, `content` TEXT, `image` TEXT, `group` TEXT NOT NULL DEFAULT '默认分组', `read` INTEGER NOT NULL, `variable` TEXT, PRIMARY KEY(`origin`, `link`))", - "fields": [ - { - "fieldPath": "origin", - "columnName": "origin", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "sort", - "columnName": "sort", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "title", - "columnName": "title", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "order", - "columnName": "order", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "link", - "columnName": "link", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "pubDate", - "columnName": "pubDate", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "description", - "columnName": "description", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "content", - "columnName": "content", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "image", - "columnName": "image", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "group", - "columnName": "group", - "affinity": "TEXT", - "notNull": true, - "defaultValue": "'默认分组'" - }, - { - "fieldPath": "read", - "columnName": "read", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "variable", - "columnName": "variable", - "affinity": "TEXT", - "notNull": false - } - ], - "primaryKey": { - "autoGenerate": false, - "columnNames": [ - "origin", - "link" - ] - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "rssReadRecords", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`record` TEXT NOT NULL, `title` TEXT, `readTime` INTEGER, `read` INTEGER NOT NULL, PRIMARY KEY(`record`))", - "fields": [ - { - "fieldPath": "record", - "columnName": "record", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "title", - "columnName": "title", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "readTime", - "columnName": "readTime", - "affinity": "INTEGER", - "notNull": false - }, - { - "fieldPath": "read", - "columnName": "read", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "autoGenerate": false, - "columnNames": [ - "record" - ] - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "rssStars", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`origin` TEXT NOT NULL, `sort` TEXT NOT NULL, `title` TEXT NOT NULL, `starTime` INTEGER NOT NULL, `link` TEXT NOT NULL, `pubDate` TEXT, `description` TEXT, `content` TEXT, `image` TEXT, `group` TEXT NOT NULL DEFAULT '默认分组', `variable` TEXT, PRIMARY KEY(`origin`, `link`))", - "fields": [ - { - "fieldPath": "origin", - "columnName": "origin", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "sort", - "columnName": "sort", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "title", - "columnName": "title", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "starTime", - "columnName": "starTime", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "link", - "columnName": "link", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "pubDate", - "columnName": "pubDate", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "description", - "columnName": "description", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "content", - "columnName": "content", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "image", - "columnName": "image", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "group", - "columnName": "group", - "affinity": "TEXT", - "notNull": true, - "defaultValue": "'默认分组'" - }, - { - "fieldPath": "variable", - "columnName": "variable", - "affinity": "TEXT", - "notNull": false - } - ], - "primaryKey": { - "autoGenerate": false, - "columnNames": [ - "origin", - "link" - ] - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "txtTocRules", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER NOT NULL, `name` TEXT NOT NULL, `rule` TEXT NOT NULL, `example` TEXT, `serialNumber` INTEGER NOT NULL, `enable` INTEGER NOT NULL, PRIMARY KEY(`id`))", - "fields": [ - { - "fieldPath": "id", - "columnName": "id", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "rule", - "columnName": "rule", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "example", - "columnName": "example", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "serialNumber", - "columnName": "serialNumber", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "enable", - "columnName": "enable", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "autoGenerate": false, - "columnNames": [ - "id" - ] - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "readRecord", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`deviceId` TEXT NOT NULL, `bookName` TEXT NOT NULL, `readTime` INTEGER NOT NULL DEFAULT 0, `lastRead` INTEGER NOT NULL DEFAULT 0, PRIMARY KEY(`deviceId`, `bookName`))", - "fields": [ - { - "fieldPath": "deviceId", - "columnName": "deviceId", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookName", - "columnName": "bookName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "readTime", - "columnName": "readTime", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "lastRead", - "columnName": "lastRead", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - } - ], - "primaryKey": { - "autoGenerate": false, - "columnNames": [ - "deviceId", - "bookName" - ] - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "httpTTS", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER NOT NULL, `name` TEXT NOT NULL, `url` TEXT NOT NULL, `contentType` TEXT, `concurrentRate` TEXT DEFAULT '0', `loginUrl` TEXT, `loginUi` TEXT, `header` TEXT, `jsLib` TEXT, `enabledCookieJar` INTEGER DEFAULT 0, `loginCheckJs` TEXT, `lastUpdateTime` INTEGER NOT NULL DEFAULT 0, PRIMARY KEY(`id`))", - "fields": [ - { - "fieldPath": "id", - "columnName": "id", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "url", - "columnName": "url", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "contentType", - "columnName": "contentType", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "concurrentRate", - "columnName": "concurrentRate", - "affinity": "TEXT", - "notNull": false, - "defaultValue": "'0'" - }, - { - "fieldPath": "loginUrl", - "columnName": "loginUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "loginUi", - "columnName": "loginUi", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "header", - "columnName": "header", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "jsLib", - "columnName": "jsLib", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "enabledCookieJar", - "columnName": "enabledCookieJar", - "affinity": "INTEGER", - "notNull": false, - "defaultValue": "0" - }, - { - "fieldPath": "loginCheckJs", - "columnName": "loginCheckJs", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "lastUpdateTime", - "columnName": "lastUpdateTime", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - } - ], - "primaryKey": { - "autoGenerate": false, - "columnNames": [ - "id" - ] - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "caches", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`key` TEXT NOT NULL, `value` TEXT, `deadline` INTEGER NOT NULL, PRIMARY KEY(`key`))", - "fields": [ - { - "fieldPath": "key", - "columnName": "key", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "value", - "columnName": "value", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "deadline", - "columnName": "deadline", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "autoGenerate": false, - "columnNames": [ - "key" - ] - }, - "indices": [ - { - "name": "index_caches_key", - "unique": true, - "columnNames": [ - "key" - ], - "orders": [], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_caches_key` ON `${TABLE_NAME}` (`key`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "ruleSubs", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER NOT NULL, `name` TEXT NOT NULL, `url` TEXT NOT NULL, `type` INTEGER NOT NULL, `customOrder` INTEGER NOT NULL, `autoUpdate` INTEGER NOT NULL, `update` INTEGER NOT NULL, PRIMARY KEY(`id`))", - "fields": [ - { - "fieldPath": "id", - "columnName": "id", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "url", - "columnName": "url", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "type", - "columnName": "type", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "customOrder", - "columnName": "customOrder", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "autoUpdate", - "columnName": "autoUpdate", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "update", - "columnName": "update", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "autoGenerate": false, - "columnNames": [ - "id" - ] - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "dictRules", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`name` TEXT NOT NULL, `urlRule` TEXT NOT NULL, `showRule` TEXT NOT NULL, `enabled` INTEGER NOT NULL DEFAULT 1, `sortNumber` INTEGER NOT NULL DEFAULT 0, PRIMARY KEY(`name`))", - "fields": [ - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "urlRule", - "columnName": "urlRule", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "showRule", - "columnName": "showRule", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "enabled", - "columnName": "enabled", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "1" - }, - { - "fieldPath": "sortNumber", - "columnName": "sortNumber", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - } - ], - "primaryKey": { - "autoGenerate": false, - "columnNames": [ - "name" - ] - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "keyboardAssists", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`type` INTEGER NOT NULL DEFAULT 0, `key` TEXT NOT NULL DEFAULT '', `value` TEXT NOT NULL DEFAULT '', `serialNo` INTEGER NOT NULL DEFAULT 0, PRIMARY KEY(`type`, `key`))", - "fields": [ - { - "fieldPath": "type", - "columnName": "type", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "key", - "columnName": "key", - "affinity": "TEXT", - "notNull": true, - "defaultValue": "''" - }, - { - "fieldPath": "value", - "columnName": "value", - "affinity": "TEXT", - "notNull": true, - "defaultValue": "''" - }, - { - "fieldPath": "serialNo", - "columnName": "serialNo", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - } - ], - "primaryKey": { - "autoGenerate": false, - "columnNames": [ - "type", - "key" - ] - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "servers", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER NOT NULL, `name` TEXT NOT NULL, `type` TEXT NOT NULL, `config` TEXT, `sortNumber` INTEGER NOT NULL, PRIMARY KEY(`id`))", - "fields": [ - { - "fieldPath": "id", - "columnName": "id", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "type", - "columnName": "type", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "config", - "columnName": "config", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "sortNumber", - "columnName": "sortNumber", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "autoGenerate": false, - "columnNames": [ - "id" - ] - }, - "indices": [], - "foreignKeys": [] - } - ], - "views": [], - "setupQueries": [ - "CREATE TABLE IF NOT EXISTS room_master_table (id INTEGER PRIMARY KEY,identity_hash TEXT)", - "INSERT OR REPLACE INTO room_master_table (id,identity_hash) VALUES(42, 'c492bca5d9c4b4b34a0808d8cce9e7ba')" - ] - } -} \ No newline at end of file diff --git a/app/schemas/io.legado.app.data.AppDatabase/75.json b/app/schemas/io.legado.app.data.AppDatabase/75.json deleted file mode 100644 index 0c7dd7e39..000000000 --- a/app/schemas/io.legado.app.data.AppDatabase/75.json +++ /dev/null @@ -1,1935 +0,0 @@ -{ - "formatVersion": 1, - "database": { - "version": 75, - "identityHash": "e22b36ff0280a224a30d08dd6e9bd7be", - "entities": [ - { - "tableName": "books", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`bookUrl` TEXT NOT NULL DEFAULT '', `tocUrl` TEXT NOT NULL DEFAULT '', `origin` TEXT NOT NULL DEFAULT 'loc_book', `originName` TEXT NOT NULL DEFAULT '', `name` TEXT NOT NULL DEFAULT '', `author` TEXT NOT NULL DEFAULT '', `kind` TEXT, `customTag` TEXT, `coverUrl` TEXT, `customCoverUrl` TEXT, `intro` TEXT, `customIntro` TEXT, `charset` TEXT, `type` INTEGER NOT NULL DEFAULT 0, `group` INTEGER NOT NULL DEFAULT 0, `latestChapterTitle` TEXT, `latestChapterTime` INTEGER NOT NULL DEFAULT 0, `lastCheckTime` INTEGER NOT NULL DEFAULT 0, `lastCheckCount` INTEGER NOT NULL DEFAULT 0, `totalChapterNum` INTEGER NOT NULL DEFAULT 0, `durChapterTitle` TEXT, `durChapterIndex` INTEGER NOT NULL DEFAULT 0, `durChapterPos` INTEGER NOT NULL DEFAULT 0, `durChapterTime` INTEGER NOT NULL DEFAULT 0, `wordCount` TEXT, `canUpdate` INTEGER NOT NULL DEFAULT 1, `order` INTEGER NOT NULL DEFAULT 0, `originOrder` INTEGER NOT NULL DEFAULT 0, `variable` TEXT, `readConfig` TEXT, `syncTime` INTEGER NOT NULL DEFAULT 0, PRIMARY KEY(`bookUrl`))", - "fields": [ - { - "fieldPath": "bookUrl", - "columnName": "bookUrl", - "affinity": "TEXT", - "notNull": true, - "defaultValue": "''" - }, - { - "fieldPath": "tocUrl", - "columnName": "tocUrl", - "affinity": "TEXT", - "notNull": true, - "defaultValue": "''" - }, - { - "fieldPath": "origin", - "columnName": "origin", - "affinity": "TEXT", - "notNull": true, - "defaultValue": "'loc_book'" - }, - { - "fieldPath": "originName", - "columnName": "originName", - "affinity": "TEXT", - "notNull": true, - "defaultValue": "''" - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true, - "defaultValue": "''" - }, - { - "fieldPath": "author", - "columnName": "author", - "affinity": "TEXT", - "notNull": true, - "defaultValue": "''" - }, - { - "fieldPath": "kind", - "columnName": "kind", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "customTag", - "columnName": "customTag", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "coverUrl", - "columnName": "coverUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "customCoverUrl", - "columnName": "customCoverUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "intro", - "columnName": "intro", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "customIntro", - "columnName": "customIntro", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "charset", - "columnName": "charset", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "type", - "columnName": "type", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "group", - "columnName": "group", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "latestChapterTitle", - "columnName": "latestChapterTitle", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "latestChapterTime", - "columnName": "latestChapterTime", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "lastCheckTime", - "columnName": "lastCheckTime", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "lastCheckCount", - "columnName": "lastCheckCount", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "totalChapterNum", - "columnName": "totalChapterNum", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "durChapterTitle", - "columnName": "durChapterTitle", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "durChapterIndex", - "columnName": "durChapterIndex", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "durChapterPos", - "columnName": "durChapterPos", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "durChapterTime", - "columnName": "durChapterTime", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "wordCount", - "columnName": "wordCount", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "canUpdate", - "columnName": "canUpdate", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "1" - }, - { - "fieldPath": "order", - "columnName": "order", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "originOrder", - "columnName": "originOrder", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "variable", - "columnName": "variable", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "readConfig", - "columnName": "readConfig", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "syncTime", - "columnName": "syncTime", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - } - ], - "primaryKey": { - "autoGenerate": false, - "columnNames": [ - "bookUrl" - ] - }, - "indices": [ - { - "name": "index_books_name_author", - "unique": true, - "columnNames": [ - "name", - "author" - ], - "orders": [], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_books_name_author` ON `${TABLE_NAME}` (`name`, `author`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "book_groups", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`groupId` INTEGER NOT NULL, `groupName` TEXT NOT NULL, `cover` TEXT, `order` INTEGER NOT NULL, `enableRefresh` INTEGER NOT NULL DEFAULT 1, `show` INTEGER NOT NULL DEFAULT 1, `bookSort` INTEGER NOT NULL DEFAULT -1, PRIMARY KEY(`groupId`))", - "fields": [ - { - "fieldPath": "groupId", - "columnName": "groupId", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "groupName", - "columnName": "groupName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "cover", - "columnName": "cover", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "order", - "columnName": "order", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "enableRefresh", - "columnName": "enableRefresh", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "1" - }, - { - "fieldPath": "show", - "columnName": "show", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "1" - }, - { - "fieldPath": "bookSort", - "columnName": "bookSort", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "-1" - } - ], - "primaryKey": { - "autoGenerate": false, - "columnNames": [ - "groupId" - ] - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "book_sources", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`bookSourceUrl` TEXT NOT NULL, `bookSourceName` TEXT NOT NULL, `bookSourceGroup` TEXT, `bookSourceType` INTEGER NOT NULL, `bookUrlPattern` TEXT, `customOrder` INTEGER NOT NULL DEFAULT 0, `enabled` INTEGER NOT NULL DEFAULT 1, `enabledExplore` INTEGER NOT NULL DEFAULT 1, `jsLib` TEXT, `enabledCookieJar` INTEGER DEFAULT 0, `concurrentRate` TEXT, `header` TEXT, `loginUrl` TEXT, `loginUi` TEXT, `loginCheckJs` TEXT, `coverDecodeJs` TEXT, `bookSourceComment` TEXT, `variableComment` TEXT, `lastUpdateTime` INTEGER NOT NULL, `respondTime` INTEGER NOT NULL, `weight` INTEGER NOT NULL, `exploreUrl` TEXT, `exploreScreen` TEXT, `ruleExplore` TEXT, `searchUrl` TEXT, `ruleSearch` TEXT, `ruleBookInfo` TEXT, `ruleToc` TEXT, `ruleContent` TEXT, `ruleReview` TEXT, PRIMARY KEY(`bookSourceUrl`))", - "fields": [ - { - "fieldPath": "bookSourceUrl", - "columnName": "bookSourceUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookSourceName", - "columnName": "bookSourceName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookSourceGroup", - "columnName": "bookSourceGroup", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "bookSourceType", - "columnName": "bookSourceType", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "bookUrlPattern", - "columnName": "bookUrlPattern", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "customOrder", - "columnName": "customOrder", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "enabled", - "columnName": "enabled", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "1" - }, - { - "fieldPath": "enabledExplore", - "columnName": "enabledExplore", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "1" - }, - { - "fieldPath": "jsLib", - "columnName": "jsLib", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "enabledCookieJar", - "columnName": "enabledCookieJar", - "affinity": "INTEGER", - "notNull": false, - "defaultValue": "0" - }, - { - "fieldPath": "concurrentRate", - "columnName": "concurrentRate", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "header", - "columnName": "header", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "loginUrl", - "columnName": "loginUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "loginUi", - "columnName": "loginUi", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "loginCheckJs", - "columnName": "loginCheckJs", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "coverDecodeJs", - "columnName": "coverDecodeJs", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "bookSourceComment", - "columnName": "bookSourceComment", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "variableComment", - "columnName": "variableComment", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "lastUpdateTime", - "columnName": "lastUpdateTime", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "respondTime", - "columnName": "respondTime", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "weight", - "columnName": "weight", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "exploreUrl", - "columnName": "exploreUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "exploreScreen", - "columnName": "exploreScreen", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleExplore", - "columnName": "ruleExplore", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "searchUrl", - "columnName": "searchUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleSearch", - "columnName": "ruleSearch", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleBookInfo", - "columnName": "ruleBookInfo", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleToc", - "columnName": "ruleToc", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleContent", - "columnName": "ruleContent", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleReview", - "columnName": "ruleReview", - "affinity": "TEXT", - "notNull": false - } - ], - "primaryKey": { - "autoGenerate": false, - "columnNames": [ - "bookSourceUrl" - ] - }, - "indices": [ - { - "name": "index_book_sources_bookSourceUrl", - "unique": false, - "columnNames": [ - "bookSourceUrl" - ], - "orders": [], - "createSql": "CREATE INDEX IF NOT EXISTS `index_book_sources_bookSourceUrl` ON `${TABLE_NAME}` (`bookSourceUrl`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "chapters", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`url` TEXT NOT NULL, `title` TEXT NOT NULL, `isVolume` INTEGER NOT NULL, `baseUrl` TEXT NOT NULL, `bookUrl` TEXT NOT NULL, `index` INTEGER NOT NULL, `isVip` INTEGER NOT NULL, `isPay` INTEGER NOT NULL, `resourceUrl` TEXT, `tag` TEXT, `wordCount` TEXT, `start` INTEGER, `end` INTEGER, `startFragmentId` TEXT, `endFragmentId` TEXT, `variable` TEXT, PRIMARY KEY(`url`, `bookUrl`), FOREIGN KEY(`bookUrl`) REFERENCES `books`(`bookUrl`) ON UPDATE NO ACTION ON DELETE CASCADE )", - "fields": [ - { - "fieldPath": "url", - "columnName": "url", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "title", - "columnName": "title", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "isVolume", - "columnName": "isVolume", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "baseUrl", - "columnName": "baseUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookUrl", - "columnName": "bookUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "index", - "columnName": "index", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "isVip", - "columnName": "isVip", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "isPay", - "columnName": "isPay", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "resourceUrl", - "columnName": "resourceUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "tag", - "columnName": "tag", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "wordCount", - "columnName": "wordCount", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "start", - "columnName": "start", - "affinity": "INTEGER", - "notNull": false - }, - { - "fieldPath": "end", - "columnName": "end", - "affinity": "INTEGER", - "notNull": false - }, - { - "fieldPath": "startFragmentId", - "columnName": "startFragmentId", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "endFragmentId", - "columnName": "endFragmentId", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "variable", - "columnName": "variable", - "affinity": "TEXT", - "notNull": false - } - ], - "primaryKey": { - "autoGenerate": false, - "columnNames": [ - "url", - "bookUrl" - ] - }, - "indices": [ - { - "name": "index_chapters_bookUrl", - "unique": false, - "columnNames": [ - "bookUrl" - ], - "orders": [], - "createSql": "CREATE INDEX IF NOT EXISTS `index_chapters_bookUrl` ON `${TABLE_NAME}` (`bookUrl`)" - }, - { - "name": "index_chapters_bookUrl_index", - "unique": true, - "columnNames": [ - "bookUrl", - "index" - ], - "orders": [], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_chapters_bookUrl_index` ON `${TABLE_NAME}` (`bookUrl`, `index`)" - } - ], - "foreignKeys": [ - { - "table": "books", - "onDelete": "CASCADE", - "onUpdate": "NO ACTION", - "columns": [ - "bookUrl" - ], - "referencedColumns": [ - "bookUrl" - ] - } - ] - }, - { - "tableName": "replace_rules", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, `name` TEXT NOT NULL DEFAULT '', `group` TEXT, `pattern` TEXT NOT NULL DEFAULT '', `replacement` TEXT NOT NULL DEFAULT '', `scope` TEXT, `scopeTitle` INTEGER NOT NULL DEFAULT 0, `scopeContent` INTEGER NOT NULL DEFAULT 1, `excludeScope` TEXT, `isEnabled` INTEGER NOT NULL DEFAULT 1, `isRegex` INTEGER NOT NULL DEFAULT 1, `timeoutMillisecond` INTEGER NOT NULL DEFAULT 3000, `sortOrder` INTEGER NOT NULL DEFAULT 0)", - "fields": [ - { - "fieldPath": "id", - "columnName": "id", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true, - "defaultValue": "''" - }, - { - "fieldPath": "group", - "columnName": "group", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "pattern", - "columnName": "pattern", - "affinity": "TEXT", - "notNull": true, - "defaultValue": "''" - }, - { - "fieldPath": "replacement", - "columnName": "replacement", - "affinity": "TEXT", - "notNull": true, - "defaultValue": "''" - }, - { - "fieldPath": "scope", - "columnName": "scope", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "scopeTitle", - "columnName": "scopeTitle", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "scopeContent", - "columnName": "scopeContent", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "1" - }, - { - "fieldPath": "excludeScope", - "columnName": "excludeScope", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "isEnabled", - "columnName": "isEnabled", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "1" - }, - { - "fieldPath": "isRegex", - "columnName": "isRegex", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "1" - }, - { - "fieldPath": "timeoutMillisecond", - "columnName": "timeoutMillisecond", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "3000" - }, - { - "fieldPath": "order", - "columnName": "sortOrder", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - } - ], - "primaryKey": { - "autoGenerate": true, - "columnNames": [ - "id" - ] - }, - "indices": [ - { - "name": "index_replace_rules_id", - "unique": false, - "columnNames": [ - "id" - ], - "orders": [], - "createSql": "CREATE INDEX IF NOT EXISTS `index_replace_rules_id` ON `${TABLE_NAME}` (`id`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "searchBooks", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`bookUrl` TEXT NOT NULL, `origin` TEXT NOT NULL, `originName` TEXT NOT NULL, `type` INTEGER NOT NULL, `name` TEXT NOT NULL, `author` TEXT NOT NULL, `kind` TEXT, `coverUrl` TEXT, `intro` TEXT, `wordCount` TEXT, `latestChapterTitle` TEXT, `tocUrl` TEXT NOT NULL, `time` INTEGER NOT NULL, `variable` TEXT, `originOrder` INTEGER NOT NULL, `chapterWordCountText` TEXT, `chapterWordCount` INTEGER NOT NULL DEFAULT -1, `respondTime` INTEGER NOT NULL DEFAULT -1, PRIMARY KEY(`bookUrl`), FOREIGN KEY(`origin`) REFERENCES `book_sources`(`bookSourceUrl`) ON UPDATE NO ACTION ON DELETE CASCADE )", - "fields": [ - { - "fieldPath": "bookUrl", - "columnName": "bookUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "origin", - "columnName": "origin", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "originName", - "columnName": "originName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "type", - "columnName": "type", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "author", - "columnName": "author", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "kind", - "columnName": "kind", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "coverUrl", - "columnName": "coverUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "intro", - "columnName": "intro", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "wordCount", - "columnName": "wordCount", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "latestChapterTitle", - "columnName": "latestChapterTitle", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "tocUrl", - "columnName": "tocUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "time", - "columnName": "time", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "variable", - "columnName": "variable", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "originOrder", - "columnName": "originOrder", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "chapterWordCountText", - "columnName": "chapterWordCountText", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "chapterWordCount", - "columnName": "chapterWordCount", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "-1" - }, - { - "fieldPath": "respondTime", - "columnName": "respondTime", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "-1" - } - ], - "primaryKey": { - "autoGenerate": false, - "columnNames": [ - "bookUrl" - ] - }, - "indices": [ - { - "name": "index_searchBooks_bookUrl", - "unique": true, - "columnNames": [ - "bookUrl" - ], - "orders": [], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_searchBooks_bookUrl` ON `${TABLE_NAME}` (`bookUrl`)" - }, - { - "name": "index_searchBooks_origin", - "unique": false, - "columnNames": [ - "origin" - ], - "orders": [], - "createSql": "CREATE INDEX IF NOT EXISTS `index_searchBooks_origin` ON `${TABLE_NAME}` (`origin`)" - } - ], - "foreignKeys": [ - { - "table": "book_sources", - "onDelete": "CASCADE", - "onUpdate": "NO ACTION", - "columns": [ - "origin" - ], - "referencedColumns": [ - "bookSourceUrl" - ] - } - ] - }, - { - "tableName": "search_keywords", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`word` TEXT NOT NULL, `usage` INTEGER NOT NULL, `lastUseTime` INTEGER NOT NULL, PRIMARY KEY(`word`))", - "fields": [ - { - "fieldPath": "word", - "columnName": "word", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "usage", - "columnName": "usage", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "lastUseTime", - "columnName": "lastUseTime", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "autoGenerate": false, - "columnNames": [ - "word" - ] - }, - "indices": [ - { - "name": "index_search_keywords_word", - "unique": true, - "columnNames": [ - "word" - ], - "orders": [], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_search_keywords_word` ON `${TABLE_NAME}` (`word`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "cookies", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`url` TEXT NOT NULL, `cookie` TEXT NOT NULL, PRIMARY KEY(`url`))", - "fields": [ - { - "fieldPath": "url", - "columnName": "url", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "cookie", - "columnName": "cookie", - "affinity": "TEXT", - "notNull": true - } - ], - "primaryKey": { - "autoGenerate": false, - "columnNames": [ - "url" - ] - }, - "indices": [ - { - "name": "index_cookies_url", - "unique": true, - "columnNames": [ - "url" - ], - "orders": [], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_cookies_url` ON `${TABLE_NAME}` (`url`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "rssSources", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`sourceUrl` TEXT NOT NULL, `sourceName` TEXT NOT NULL, `sourceIcon` TEXT NOT NULL, `sourceGroup` TEXT, `sourceComment` TEXT, `enabled` INTEGER NOT NULL, `variableComment` TEXT, `jsLib` TEXT, `enabledCookieJar` INTEGER DEFAULT 0, `concurrentRate` TEXT, `header` TEXT, `loginUrl` TEXT, `loginUi` TEXT, `loginCheckJs` TEXT, `coverDecodeJs` TEXT, `sortUrl` TEXT, `singleUrl` INTEGER NOT NULL, `articleStyle` INTEGER NOT NULL DEFAULT 0, `ruleArticles` TEXT, `ruleNextPage` TEXT, `ruleTitle` TEXT, `rulePubDate` TEXT, `ruleDescription` TEXT, `ruleImage` TEXT, `ruleLink` TEXT, `ruleContent` TEXT, `contentWhitelist` TEXT, `contentBlacklist` TEXT, `shouldOverrideUrlLoading` TEXT, `style` TEXT, `enableJs` INTEGER NOT NULL DEFAULT 1, `loadWithBaseUrl` INTEGER NOT NULL DEFAULT 1, `injectJs` TEXT, `lastUpdateTime` INTEGER NOT NULL DEFAULT 0, `customOrder` INTEGER NOT NULL DEFAULT 0, PRIMARY KEY(`sourceUrl`))", - "fields": [ - { - "fieldPath": "sourceUrl", - "columnName": "sourceUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "sourceName", - "columnName": "sourceName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "sourceIcon", - "columnName": "sourceIcon", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "sourceGroup", - "columnName": "sourceGroup", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "sourceComment", - "columnName": "sourceComment", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "enabled", - "columnName": "enabled", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "variableComment", - "columnName": "variableComment", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "jsLib", - "columnName": "jsLib", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "enabledCookieJar", - "columnName": "enabledCookieJar", - "affinity": "INTEGER", - "notNull": false, - "defaultValue": "0" - }, - { - "fieldPath": "concurrentRate", - "columnName": "concurrentRate", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "header", - "columnName": "header", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "loginUrl", - "columnName": "loginUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "loginUi", - "columnName": "loginUi", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "loginCheckJs", - "columnName": "loginCheckJs", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "coverDecodeJs", - "columnName": "coverDecodeJs", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "sortUrl", - "columnName": "sortUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "singleUrl", - "columnName": "singleUrl", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "articleStyle", - "columnName": "articleStyle", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "ruleArticles", - "columnName": "ruleArticles", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleNextPage", - "columnName": "ruleNextPage", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleTitle", - "columnName": "ruleTitle", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "rulePubDate", - "columnName": "rulePubDate", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleDescription", - "columnName": "ruleDescription", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleImage", - "columnName": "ruleImage", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleLink", - "columnName": "ruleLink", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleContent", - "columnName": "ruleContent", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "contentWhitelist", - "columnName": "contentWhitelist", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "contentBlacklist", - "columnName": "contentBlacklist", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "shouldOverrideUrlLoading", - "columnName": "shouldOverrideUrlLoading", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "style", - "columnName": "style", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "enableJs", - "columnName": "enableJs", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "1" - }, - { - "fieldPath": "loadWithBaseUrl", - "columnName": "loadWithBaseUrl", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "1" - }, - { - "fieldPath": "injectJs", - "columnName": "injectJs", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "lastUpdateTime", - "columnName": "lastUpdateTime", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "customOrder", - "columnName": "customOrder", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - } - ], - "primaryKey": { - "autoGenerate": false, - "columnNames": [ - "sourceUrl" - ] - }, - "indices": [ - { - "name": "index_rssSources_sourceUrl", - "unique": false, - "columnNames": [ - "sourceUrl" - ], - "orders": [], - "createSql": "CREATE INDEX IF NOT EXISTS `index_rssSources_sourceUrl` ON `${TABLE_NAME}` (`sourceUrl`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "bookmarks", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`time` INTEGER NOT NULL, `bookName` TEXT NOT NULL, `bookAuthor` TEXT NOT NULL, `chapterIndex` INTEGER NOT NULL, `chapterPos` INTEGER NOT NULL, `chapterName` TEXT NOT NULL, `bookText` TEXT NOT NULL, `content` TEXT NOT NULL, PRIMARY KEY(`time`))", - "fields": [ - { - "fieldPath": "time", - "columnName": "time", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "bookName", - "columnName": "bookName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookAuthor", - "columnName": "bookAuthor", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "chapterIndex", - "columnName": "chapterIndex", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "chapterPos", - "columnName": "chapterPos", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "chapterName", - "columnName": "chapterName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookText", - "columnName": "bookText", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "content", - "columnName": "content", - "affinity": "TEXT", - "notNull": true - } - ], - "primaryKey": { - "autoGenerate": false, - "columnNames": [ - "time" - ] - }, - "indices": [ - { - "name": "index_bookmarks_bookName_bookAuthor", - "unique": false, - "columnNames": [ - "bookName", - "bookAuthor" - ], - "orders": [], - "createSql": "CREATE INDEX IF NOT EXISTS `index_bookmarks_bookName_bookAuthor` ON `${TABLE_NAME}` (`bookName`, `bookAuthor`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "rssArticles", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`origin` TEXT NOT NULL, `sort` TEXT NOT NULL, `title` TEXT NOT NULL, `order` INTEGER NOT NULL, `link` TEXT NOT NULL, `pubDate` TEXT, `description` TEXT, `content` TEXT, `image` TEXT, `group` TEXT NOT NULL DEFAULT '默认分组', `read` INTEGER NOT NULL, `variable` TEXT, PRIMARY KEY(`origin`, `link`))", - "fields": [ - { - "fieldPath": "origin", - "columnName": "origin", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "sort", - "columnName": "sort", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "title", - "columnName": "title", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "order", - "columnName": "order", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "link", - "columnName": "link", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "pubDate", - "columnName": "pubDate", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "description", - "columnName": "description", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "content", - "columnName": "content", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "image", - "columnName": "image", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "group", - "columnName": "group", - "affinity": "TEXT", - "notNull": true, - "defaultValue": "'默认分组'" - }, - { - "fieldPath": "read", - "columnName": "read", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "variable", - "columnName": "variable", - "affinity": "TEXT", - "notNull": false - } - ], - "primaryKey": { - "autoGenerate": false, - "columnNames": [ - "origin", - "link" - ] - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "rssReadRecords", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`record` TEXT NOT NULL, `title` TEXT, `readTime` INTEGER, `read` INTEGER NOT NULL, PRIMARY KEY(`record`))", - "fields": [ - { - "fieldPath": "record", - "columnName": "record", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "title", - "columnName": "title", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "readTime", - "columnName": "readTime", - "affinity": "INTEGER", - "notNull": false - }, - { - "fieldPath": "read", - "columnName": "read", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "autoGenerate": false, - "columnNames": [ - "record" - ] - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "rssStars", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`origin` TEXT NOT NULL, `sort` TEXT NOT NULL, `title` TEXT NOT NULL, `starTime` INTEGER NOT NULL, `link` TEXT NOT NULL, `pubDate` TEXT, `description` TEXT, `content` TEXT, `image` TEXT, `group` TEXT NOT NULL DEFAULT '默认分组', `variable` TEXT, PRIMARY KEY(`origin`, `link`))", - "fields": [ - { - "fieldPath": "origin", - "columnName": "origin", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "sort", - "columnName": "sort", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "title", - "columnName": "title", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "starTime", - "columnName": "starTime", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "link", - "columnName": "link", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "pubDate", - "columnName": "pubDate", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "description", - "columnName": "description", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "content", - "columnName": "content", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "image", - "columnName": "image", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "group", - "columnName": "group", - "affinity": "TEXT", - "notNull": true, - "defaultValue": "'默认分组'" - }, - { - "fieldPath": "variable", - "columnName": "variable", - "affinity": "TEXT", - "notNull": false - } - ], - "primaryKey": { - "autoGenerate": false, - "columnNames": [ - "origin", - "link" - ] - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "txtTocRules", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER NOT NULL, `name` TEXT NOT NULL, `rule` TEXT NOT NULL, `example` TEXT, `serialNumber` INTEGER NOT NULL, `enable` INTEGER NOT NULL, PRIMARY KEY(`id`))", - "fields": [ - { - "fieldPath": "id", - "columnName": "id", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "rule", - "columnName": "rule", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "example", - "columnName": "example", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "serialNumber", - "columnName": "serialNumber", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "enable", - "columnName": "enable", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "autoGenerate": false, - "columnNames": [ - "id" - ] - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "readRecord", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`deviceId` TEXT NOT NULL, `bookName` TEXT NOT NULL, `readTime` INTEGER NOT NULL DEFAULT 0, `lastRead` INTEGER NOT NULL DEFAULT 0, PRIMARY KEY(`deviceId`, `bookName`))", - "fields": [ - { - "fieldPath": "deviceId", - "columnName": "deviceId", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookName", - "columnName": "bookName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "readTime", - "columnName": "readTime", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "lastRead", - "columnName": "lastRead", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - } - ], - "primaryKey": { - "autoGenerate": false, - "columnNames": [ - "deviceId", - "bookName" - ] - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "httpTTS", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER NOT NULL, `name` TEXT NOT NULL, `url` TEXT NOT NULL, `contentType` TEXT, `concurrentRate` TEXT DEFAULT '0', `loginUrl` TEXT, `loginUi` TEXT, `header` TEXT, `jsLib` TEXT, `enabledCookieJar` INTEGER DEFAULT 0, `loginCheckJs` TEXT, `lastUpdateTime` INTEGER NOT NULL DEFAULT 0, PRIMARY KEY(`id`))", - "fields": [ - { - "fieldPath": "id", - "columnName": "id", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "url", - "columnName": "url", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "contentType", - "columnName": "contentType", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "concurrentRate", - "columnName": "concurrentRate", - "affinity": "TEXT", - "notNull": false, - "defaultValue": "'0'" - }, - { - "fieldPath": "loginUrl", - "columnName": "loginUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "loginUi", - "columnName": "loginUi", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "header", - "columnName": "header", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "jsLib", - "columnName": "jsLib", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "enabledCookieJar", - "columnName": "enabledCookieJar", - "affinity": "INTEGER", - "notNull": false, - "defaultValue": "0" - }, - { - "fieldPath": "loginCheckJs", - "columnName": "loginCheckJs", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "lastUpdateTime", - "columnName": "lastUpdateTime", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - } - ], - "primaryKey": { - "autoGenerate": false, - "columnNames": [ - "id" - ] - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "caches", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`key` TEXT NOT NULL, `value` TEXT, `deadline` INTEGER NOT NULL, PRIMARY KEY(`key`))", - "fields": [ - { - "fieldPath": "key", - "columnName": "key", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "value", - "columnName": "value", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "deadline", - "columnName": "deadline", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "autoGenerate": false, - "columnNames": [ - "key" - ] - }, - "indices": [ - { - "name": "index_caches_key", - "unique": true, - "columnNames": [ - "key" - ], - "orders": [], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_caches_key` ON `${TABLE_NAME}` (`key`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "ruleSubs", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER NOT NULL, `name` TEXT NOT NULL, `url` TEXT NOT NULL, `type` INTEGER NOT NULL, `customOrder` INTEGER NOT NULL, `autoUpdate` INTEGER NOT NULL, `update` INTEGER NOT NULL, PRIMARY KEY(`id`))", - "fields": [ - { - "fieldPath": "id", - "columnName": "id", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "url", - "columnName": "url", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "type", - "columnName": "type", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "customOrder", - "columnName": "customOrder", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "autoUpdate", - "columnName": "autoUpdate", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "update", - "columnName": "update", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "autoGenerate": false, - "columnNames": [ - "id" - ] - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "dictRules", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`name` TEXT NOT NULL, `urlRule` TEXT NOT NULL, `showRule` TEXT NOT NULL, `enabled` INTEGER NOT NULL DEFAULT 1, `sortNumber` INTEGER NOT NULL DEFAULT 0, PRIMARY KEY(`name`))", - "fields": [ - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "urlRule", - "columnName": "urlRule", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "showRule", - "columnName": "showRule", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "enabled", - "columnName": "enabled", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "1" - }, - { - "fieldPath": "sortNumber", - "columnName": "sortNumber", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - } - ], - "primaryKey": { - "autoGenerate": false, - "columnNames": [ - "name" - ] - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "keyboardAssists", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`type` INTEGER NOT NULL DEFAULT 0, `key` TEXT NOT NULL DEFAULT '', `value` TEXT NOT NULL DEFAULT '', `serialNo` INTEGER NOT NULL DEFAULT 0, PRIMARY KEY(`type`, `key`))", - "fields": [ - { - "fieldPath": "type", - "columnName": "type", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "key", - "columnName": "key", - "affinity": "TEXT", - "notNull": true, - "defaultValue": "''" - }, - { - "fieldPath": "value", - "columnName": "value", - "affinity": "TEXT", - "notNull": true, - "defaultValue": "''" - }, - { - "fieldPath": "serialNo", - "columnName": "serialNo", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - } - ], - "primaryKey": { - "autoGenerate": false, - "columnNames": [ - "type", - "key" - ] - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "servers", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER NOT NULL, `name` TEXT NOT NULL, `type` TEXT NOT NULL, `config` TEXT, `sortNumber` INTEGER NOT NULL, PRIMARY KEY(`id`))", - "fields": [ - { - "fieldPath": "id", - "columnName": "id", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "type", - "columnName": "type", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "config", - "columnName": "config", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "sortNumber", - "columnName": "sortNumber", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "autoGenerate": false, - "columnNames": [ - "id" - ] - }, - "indices": [], - "foreignKeys": [] - } - ], - "views": [ - { - "viewName": "book_sources_part", - "createSql": "CREATE VIEW `${VIEW_NAME}` AS select bookSourceUrl, bookSourceName, bookSourceGroup, customOrder, enabled, enabledExplore, \n (loginUrl is not null and trim(loginUrl) <> '') hasLoginUrl, lastUpdateTime, respondTime, weight, \n (exploreUrl is not null and trim(exploreUrl) <> '') hasExploreUrl \n from book_sources" - } - ], - "setupQueries": [ - "CREATE TABLE IF NOT EXISTS room_master_table (id INTEGER PRIMARY KEY,identity_hash TEXT)", - "INSERT OR REPLACE INTO room_master_table (id,identity_hash) VALUES(42, 'e22b36ff0280a224a30d08dd6e9bd7be')" - ] - } -} \ No newline at end of file diff --git a/app/schemas/io.legado.app.data.AppDatabase/8.json b/app/schemas/io.legado.app.data.AppDatabase/8.json deleted file mode 100644 index dcd9838d7..000000000 --- a/app/schemas/io.legado.app.data.AppDatabase/8.json +++ /dev/null @@ -1,1157 +0,0 @@ -{ - "formatVersion": 1, - "database": { - "version": 8, - "identityHash": "0c09d0b5970a01069c4381648f793da7", - "entities": [ - { - "tableName": "books", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`bookUrl` TEXT NOT NULL, `tocUrl` TEXT NOT NULL, `origin` TEXT NOT NULL, `originName` TEXT NOT NULL, `name` TEXT NOT NULL, `author` TEXT NOT NULL, `kind` TEXT, `customTag` TEXT, `coverUrl` TEXT, `customCoverUrl` TEXT, `intro` TEXT, `customIntro` TEXT, `charset` TEXT, `type` INTEGER NOT NULL, `group` INTEGER NOT NULL, `latestChapterTitle` TEXT, `latestChapterTime` INTEGER NOT NULL, `lastCheckTime` INTEGER NOT NULL, `lastCheckCount` INTEGER NOT NULL, `totalChapterNum` INTEGER NOT NULL, `durChapterTitle` TEXT, `durChapterIndex` INTEGER NOT NULL, `durChapterPos` INTEGER NOT NULL, `durChapterTime` INTEGER NOT NULL, `wordCount` TEXT, `canUpdate` INTEGER NOT NULL, `order` INTEGER NOT NULL, `originOrder` INTEGER NOT NULL, `useReplaceRule` INTEGER NOT NULL, `variable` TEXT, PRIMARY KEY(`bookUrl`))", - "fields": [ - { - "fieldPath": "bookUrl", - "columnName": "bookUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "tocUrl", - "columnName": "tocUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "origin", - "columnName": "origin", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "originName", - "columnName": "originName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "author", - "columnName": "author", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "kind", - "columnName": "kind", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "customTag", - "columnName": "customTag", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "coverUrl", - "columnName": "coverUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "customCoverUrl", - "columnName": "customCoverUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "intro", - "columnName": "intro", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "customIntro", - "columnName": "customIntro", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "charset", - "columnName": "charset", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "type", - "columnName": "type", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "group", - "columnName": "group", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "latestChapterTitle", - "columnName": "latestChapterTitle", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "latestChapterTime", - "columnName": "latestChapterTime", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "lastCheckTime", - "columnName": "lastCheckTime", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "lastCheckCount", - "columnName": "lastCheckCount", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "totalChapterNum", - "columnName": "totalChapterNum", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "durChapterTitle", - "columnName": "durChapterTitle", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "durChapterIndex", - "columnName": "durChapterIndex", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "durChapterPos", - "columnName": "durChapterPos", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "durChapterTime", - "columnName": "durChapterTime", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "wordCount", - "columnName": "wordCount", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "canUpdate", - "columnName": "canUpdate", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "order", - "columnName": "order", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "originOrder", - "columnName": "originOrder", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "useReplaceRule", - "columnName": "useReplaceRule", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "variable", - "columnName": "variable", - "affinity": "TEXT", - "notNull": false - } - ], - "primaryKey": { - "columnNames": [ - "bookUrl" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_books_bookUrl", - "unique": true, - "columnNames": [ - "bookUrl" - ], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_books_bookUrl` ON `${TABLE_NAME}` (`bookUrl`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "book_groups", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`groupId` INTEGER NOT NULL, `groupName` TEXT NOT NULL, `order` INTEGER NOT NULL, PRIMARY KEY(`groupId`))", - "fields": [ - { - "fieldPath": "groupId", - "columnName": "groupId", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "groupName", - "columnName": "groupName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "order", - "columnName": "order", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "groupId" - ], - "autoGenerate": false - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "book_sources", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`bookSourceName` TEXT NOT NULL, `bookSourceGroup` TEXT, `bookSourceUrl` TEXT NOT NULL, `bookSourceType` INTEGER NOT NULL, `bookUrlPattern` TEXT, `customOrder` INTEGER NOT NULL, `enabled` INTEGER NOT NULL, `enabledExplore` INTEGER NOT NULL, `header` TEXT, `loginUrl` TEXT, `lastUpdateTime` INTEGER NOT NULL, `weight` INTEGER NOT NULL, `exploreUrl` TEXT, `ruleExplore` TEXT, `searchUrl` TEXT, `ruleSearch` TEXT, `ruleBookInfo` TEXT, `ruleToc` TEXT, `ruleContent` TEXT, PRIMARY KEY(`bookSourceUrl`))", - "fields": [ - { - "fieldPath": "bookSourceName", - "columnName": "bookSourceName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookSourceGroup", - "columnName": "bookSourceGroup", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "bookSourceUrl", - "columnName": "bookSourceUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookSourceType", - "columnName": "bookSourceType", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "bookUrlPattern", - "columnName": "bookUrlPattern", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "customOrder", - "columnName": "customOrder", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "enabled", - "columnName": "enabled", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "enabledExplore", - "columnName": "enabledExplore", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "header", - "columnName": "header", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "loginUrl", - "columnName": "loginUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "lastUpdateTime", - "columnName": "lastUpdateTime", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "weight", - "columnName": "weight", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "exploreUrl", - "columnName": "exploreUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleExplore", - "columnName": "ruleExplore", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "searchUrl", - "columnName": "searchUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleSearch", - "columnName": "ruleSearch", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleBookInfo", - "columnName": "ruleBookInfo", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleToc", - "columnName": "ruleToc", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleContent", - "columnName": "ruleContent", - "affinity": "TEXT", - "notNull": false - } - ], - "primaryKey": { - "columnNames": [ - "bookSourceUrl" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_book_sources_bookSourceUrl", - "unique": false, - "columnNames": [ - "bookSourceUrl" - ], - "createSql": "CREATE INDEX IF NOT EXISTS `index_book_sources_bookSourceUrl` ON `${TABLE_NAME}` (`bookSourceUrl`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "chapters", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`url` TEXT NOT NULL, `title` TEXT NOT NULL, `bookUrl` TEXT NOT NULL, `index` INTEGER NOT NULL, `resourceUrl` TEXT, `tag` TEXT, `start` INTEGER, `end` INTEGER, `variable` TEXT, PRIMARY KEY(`url`, `bookUrl`), FOREIGN KEY(`bookUrl`) REFERENCES `books`(`bookUrl`) ON UPDATE NO ACTION ON DELETE CASCADE )", - "fields": [ - { - "fieldPath": "url", - "columnName": "url", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "title", - "columnName": "title", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookUrl", - "columnName": "bookUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "index", - "columnName": "index", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "resourceUrl", - "columnName": "resourceUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "tag", - "columnName": "tag", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "start", - "columnName": "start", - "affinity": "INTEGER", - "notNull": false - }, - { - "fieldPath": "end", - "columnName": "end", - "affinity": "INTEGER", - "notNull": false - }, - { - "fieldPath": "variable", - "columnName": "variable", - "affinity": "TEXT", - "notNull": false - } - ], - "primaryKey": { - "columnNames": [ - "url", - "bookUrl" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_chapters_bookUrl", - "unique": false, - "columnNames": [ - "bookUrl" - ], - "createSql": "CREATE INDEX IF NOT EXISTS `index_chapters_bookUrl` ON `${TABLE_NAME}` (`bookUrl`)" - }, - { - "name": "index_chapters_bookUrl_index", - "unique": true, - "columnNames": [ - "bookUrl", - "index" - ], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_chapters_bookUrl_index` ON `${TABLE_NAME}` (`bookUrl`, `index`)" - } - ], - "foreignKeys": [ - { - "table": "books", - "onDelete": "CASCADE", - "onUpdate": "NO ACTION", - "columns": [ - "bookUrl" - ], - "referencedColumns": [ - "bookUrl" - ] - } - ] - }, - { - "tableName": "replace_rules", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, `name` TEXT NOT NULL, `group` TEXT, `pattern` TEXT NOT NULL, `replacement` TEXT NOT NULL, `scope` TEXT, `isEnabled` INTEGER NOT NULL, `isRegex` INTEGER NOT NULL, `sortOrder` INTEGER NOT NULL)", - "fields": [ - { - "fieldPath": "id", - "columnName": "id", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "group", - "columnName": "group", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "pattern", - "columnName": "pattern", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "replacement", - "columnName": "replacement", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "scope", - "columnName": "scope", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "isEnabled", - "columnName": "isEnabled", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "isRegex", - "columnName": "isRegex", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "order", - "columnName": "sortOrder", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "id" - ], - "autoGenerate": true - }, - "indices": [ - { - "name": "index_replace_rules_id", - "unique": false, - "columnNames": [ - "id" - ], - "createSql": "CREATE INDEX IF NOT EXISTS `index_replace_rules_id` ON `${TABLE_NAME}` (`id`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "searchBooks", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`bookUrl` TEXT NOT NULL, `origin` TEXT NOT NULL, `originName` TEXT NOT NULL, `type` INTEGER NOT NULL, `name` TEXT NOT NULL, `author` TEXT NOT NULL, `kind` TEXT, `coverUrl` TEXT, `intro` TEXT, `wordCount` TEXT, `latestChapterTitle` TEXT, `tocUrl` TEXT NOT NULL, `time` INTEGER NOT NULL, `variable` TEXT, `originOrder` INTEGER NOT NULL, PRIMARY KEY(`bookUrl`), FOREIGN KEY(`origin`) REFERENCES `book_sources`(`bookSourceUrl`) ON UPDATE NO ACTION ON DELETE CASCADE )", - "fields": [ - { - "fieldPath": "bookUrl", - "columnName": "bookUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "origin", - "columnName": "origin", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "originName", - "columnName": "originName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "type", - "columnName": "type", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "author", - "columnName": "author", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "kind", - "columnName": "kind", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "coverUrl", - "columnName": "coverUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "intro", - "columnName": "intro", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "wordCount", - "columnName": "wordCount", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "latestChapterTitle", - "columnName": "latestChapterTitle", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "tocUrl", - "columnName": "tocUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "time", - "columnName": "time", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "variable", - "columnName": "variable", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "originOrder", - "columnName": "originOrder", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "bookUrl" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_searchBooks_bookUrl", - "unique": true, - "columnNames": [ - "bookUrl" - ], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_searchBooks_bookUrl` ON `${TABLE_NAME}` (`bookUrl`)" - }, - { - "name": "index_searchBooks_origin", - "unique": false, - "columnNames": [ - "origin" - ], - "createSql": "CREATE INDEX IF NOT EXISTS `index_searchBooks_origin` ON `${TABLE_NAME}` (`origin`)" - } - ], - "foreignKeys": [ - { - "table": "book_sources", - "onDelete": "CASCADE", - "onUpdate": "NO ACTION", - "columns": [ - "origin" - ], - "referencedColumns": [ - "bookSourceUrl" - ] - } - ] - }, - { - "tableName": "search_keywords", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`word` TEXT NOT NULL, `usage` INTEGER NOT NULL, `lastUseTime` INTEGER NOT NULL, PRIMARY KEY(`word`))", - "fields": [ - { - "fieldPath": "word", - "columnName": "word", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "usage", - "columnName": "usage", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "lastUseTime", - "columnName": "lastUseTime", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "word" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_search_keywords_word", - "unique": true, - "columnNames": [ - "word" - ], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_search_keywords_word` ON `${TABLE_NAME}` (`word`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "cookies", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`url` TEXT NOT NULL, `cookie` TEXT NOT NULL, PRIMARY KEY(`url`))", - "fields": [ - { - "fieldPath": "url", - "columnName": "url", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "cookie", - "columnName": "cookie", - "affinity": "TEXT", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "url" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_cookies_url", - "unique": true, - "columnNames": [ - "url" - ], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_cookies_url` ON `${TABLE_NAME}` (`url`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "rssSources", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`sourceUrl` TEXT NOT NULL, `sourceName` TEXT NOT NULL, `sourceIcon` TEXT NOT NULL, `sourceGroup` TEXT, `enabled` INTEGER NOT NULL, `ruleArticles` TEXT, `ruleNextPage` TEXT, `ruleTitle` TEXT, `rulePubDate` TEXT, `ruleDescription` TEXT, `ruleImage` TEXT, `ruleLink` TEXT, `ruleContent` TEXT, `header` TEXT, `enableJs` INTEGER NOT NULL, `loadWithBaseUrl` INTEGER NOT NULL, `customOrder` INTEGER NOT NULL, PRIMARY KEY(`sourceUrl`))", - "fields": [ - { - "fieldPath": "sourceUrl", - "columnName": "sourceUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "sourceName", - "columnName": "sourceName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "sourceIcon", - "columnName": "sourceIcon", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "sourceGroup", - "columnName": "sourceGroup", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "enabled", - "columnName": "enabled", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "ruleArticles", - "columnName": "ruleArticles", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleNextPage", - "columnName": "ruleNextPage", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleTitle", - "columnName": "ruleTitle", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "rulePubDate", - "columnName": "rulePubDate", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleDescription", - "columnName": "ruleDescription", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleImage", - "columnName": "ruleImage", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleLink", - "columnName": "ruleLink", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleContent", - "columnName": "ruleContent", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "header", - "columnName": "header", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "enableJs", - "columnName": "enableJs", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "loadWithBaseUrl", - "columnName": "loadWithBaseUrl", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "customOrder", - "columnName": "customOrder", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "sourceUrl" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_rssSources_sourceUrl", - "unique": false, - "columnNames": [ - "sourceUrl" - ], - "createSql": "CREATE INDEX IF NOT EXISTS `index_rssSources_sourceUrl` ON `${TABLE_NAME}` (`sourceUrl`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "bookmarks", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`time` INTEGER NOT NULL, `bookUrl` TEXT NOT NULL, `bookName` TEXT NOT NULL, `chapterIndex` INTEGER NOT NULL, `pageIndex` INTEGER NOT NULL, `chapterName` TEXT NOT NULL, `content` TEXT NOT NULL, PRIMARY KEY(`time`))", - "fields": [ - { - "fieldPath": "time", - "columnName": "time", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "bookUrl", - "columnName": "bookUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookName", - "columnName": "bookName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "chapterIndex", - "columnName": "chapterIndex", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "pageIndex", - "columnName": "pageIndex", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "chapterName", - "columnName": "chapterName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "content", - "columnName": "content", - "affinity": "TEXT", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "time" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_bookmarks_time", - "unique": true, - "columnNames": [ - "time" - ], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_bookmarks_time` ON `${TABLE_NAME}` (`time`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "rssArticles", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`origin` TEXT NOT NULL, `title` TEXT NOT NULL, `order` INTEGER NOT NULL, `link` TEXT NOT NULL, `pubDate` TEXT, `description` TEXT, `content` TEXT, `image` TEXT, `read` INTEGER NOT NULL, PRIMARY KEY(`origin`, `link`))", - "fields": [ - { - "fieldPath": "origin", - "columnName": "origin", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "title", - "columnName": "title", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "order", - "columnName": "order", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "link", - "columnName": "link", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "pubDate", - "columnName": "pubDate", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "description", - "columnName": "description", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "content", - "columnName": "content", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "image", - "columnName": "image", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "read", - "columnName": "read", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "origin", - "link" - ], - "autoGenerate": false - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "rssReadRecords", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`record` TEXT NOT NULL, `read` INTEGER NOT NULL, PRIMARY KEY(`record`))", - "fields": [ - { - "fieldPath": "record", - "columnName": "record", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "read", - "columnName": "read", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "record" - ], - "autoGenerate": false - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "rssStars", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`origin` TEXT NOT NULL, `title` TEXT NOT NULL, `starTime` INTEGER NOT NULL, `link` TEXT NOT NULL, `pubDate` TEXT, `description` TEXT, `content` TEXT, `image` TEXT, PRIMARY KEY(`origin`, `link`))", - "fields": [ - { - "fieldPath": "origin", - "columnName": "origin", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "title", - "columnName": "title", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "starTime", - "columnName": "starTime", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "link", - "columnName": "link", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "pubDate", - "columnName": "pubDate", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "description", - "columnName": "description", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "content", - "columnName": "content", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "image", - "columnName": "image", - "affinity": "TEXT", - "notNull": false - } - ], - "primaryKey": { - "columnNames": [ - "origin", - "link" - ], - "autoGenerate": false - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "txtTocRules", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`name` TEXT NOT NULL, `rule` TEXT NOT NULL, `serialNumber` INTEGER NOT NULL, `enable` INTEGER NOT NULL, PRIMARY KEY(`name`))", - "fields": [ - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "rule", - "columnName": "rule", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "serialNumber", - "columnName": "serialNumber", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "enable", - "columnName": "enable", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "name" - ], - "autoGenerate": false - }, - "indices": [], - "foreignKeys": [] - } - ], - "views": [], - "setupQueries": [ - "CREATE TABLE IF NOT EXISTS room_master_table (id INTEGER PRIMARY KEY,identity_hash TEXT)", - "INSERT OR REPLACE INTO room_master_table (id,identity_hash) VALUES(42, '0c09d0b5970a01069c4381648f793da7')" - ] - } -} \ No newline at end of file diff --git a/app/schemas/io.legado.app.data.AppDatabase/9.json b/app/schemas/io.legado.app.data.AppDatabase/9.json deleted file mode 100644 index a298e14ab..000000000 --- a/app/schemas/io.legado.app.data.AppDatabase/9.json +++ /dev/null @@ -1,1164 +0,0 @@ -{ - "formatVersion": 1, - "database": { - "version": 9, - "identityHash": "8da976febbd44e9e028b951b42583f9a", - "entities": [ - { - "tableName": "books", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`bookUrl` TEXT NOT NULL, `tocUrl` TEXT NOT NULL, `origin` TEXT NOT NULL, `originName` TEXT NOT NULL, `name` TEXT NOT NULL, `author` TEXT NOT NULL, `kind` TEXT, `customTag` TEXT, `coverUrl` TEXT, `customCoverUrl` TEXT, `intro` TEXT, `customIntro` TEXT, `charset` TEXT, `type` INTEGER NOT NULL, `group` INTEGER NOT NULL, `latestChapterTitle` TEXT, `latestChapterTime` INTEGER NOT NULL, `lastCheckTime` INTEGER NOT NULL, `lastCheckCount` INTEGER NOT NULL, `totalChapterNum` INTEGER NOT NULL, `durChapterTitle` TEXT, `durChapterIndex` INTEGER NOT NULL, `durChapterPos` INTEGER NOT NULL, `durChapterTime` INTEGER NOT NULL, `wordCount` TEXT, `canUpdate` INTEGER NOT NULL, `order` INTEGER NOT NULL, `originOrder` INTEGER NOT NULL, `useReplaceRule` INTEGER NOT NULL, `variable` TEXT, PRIMARY KEY(`name`, `author`))", - "fields": [ - { - "fieldPath": "bookUrl", - "columnName": "bookUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "tocUrl", - "columnName": "tocUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "origin", - "columnName": "origin", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "originName", - "columnName": "originName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "author", - "columnName": "author", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "kind", - "columnName": "kind", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "customTag", - "columnName": "customTag", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "coverUrl", - "columnName": "coverUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "customCoverUrl", - "columnName": "customCoverUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "intro", - "columnName": "intro", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "customIntro", - "columnName": "customIntro", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "charset", - "columnName": "charset", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "type", - "columnName": "type", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "group", - "columnName": "group", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "latestChapterTitle", - "columnName": "latestChapterTitle", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "latestChapterTime", - "columnName": "latestChapterTime", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "lastCheckTime", - "columnName": "lastCheckTime", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "lastCheckCount", - "columnName": "lastCheckCount", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "totalChapterNum", - "columnName": "totalChapterNum", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "durChapterTitle", - "columnName": "durChapterTitle", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "durChapterIndex", - "columnName": "durChapterIndex", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "durChapterPos", - "columnName": "durChapterPos", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "durChapterTime", - "columnName": "durChapterTime", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "wordCount", - "columnName": "wordCount", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "canUpdate", - "columnName": "canUpdate", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "order", - "columnName": "order", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "originOrder", - "columnName": "originOrder", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "useReplaceRule", - "columnName": "useReplaceRule", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "variable", - "columnName": "variable", - "affinity": "TEXT", - "notNull": false - } - ], - "primaryKey": { - "columnNames": [ - "name", - "author" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_books_bookUrl", - "unique": true, - "columnNames": [ - "bookUrl" - ], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_books_bookUrl` ON `${TABLE_NAME}` (`bookUrl`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "book_groups", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`groupId` INTEGER NOT NULL, `groupName` TEXT NOT NULL, `order` INTEGER NOT NULL, PRIMARY KEY(`groupId`))", - "fields": [ - { - "fieldPath": "groupId", - "columnName": "groupId", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "groupName", - "columnName": "groupName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "order", - "columnName": "order", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "groupId" - ], - "autoGenerate": false - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "book_sources", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`bookSourceName` TEXT NOT NULL, `bookSourceGroup` TEXT, `bookSourceUrl` TEXT NOT NULL, `bookSourceType` INTEGER NOT NULL, `bookUrlPattern` TEXT, `customOrder` INTEGER NOT NULL, `enabled` INTEGER NOT NULL, `enabledExplore` INTEGER NOT NULL, `header` TEXT, `loginUrl` TEXT, `lastUpdateTime` INTEGER NOT NULL, `weight` INTEGER NOT NULL, `exploreUrl` TEXT, `ruleExplore` TEXT, `searchUrl` TEXT, `ruleSearch` TEXT, `ruleBookInfo` TEXT, `ruleToc` TEXT, `ruleContent` TEXT, PRIMARY KEY(`bookSourceUrl`))", - "fields": [ - { - "fieldPath": "bookSourceName", - "columnName": "bookSourceName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookSourceGroup", - "columnName": "bookSourceGroup", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "bookSourceUrl", - "columnName": "bookSourceUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookSourceType", - "columnName": "bookSourceType", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "bookUrlPattern", - "columnName": "bookUrlPattern", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "customOrder", - "columnName": "customOrder", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "enabled", - "columnName": "enabled", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "enabledExplore", - "columnName": "enabledExplore", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "header", - "columnName": "header", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "loginUrl", - "columnName": "loginUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "lastUpdateTime", - "columnName": "lastUpdateTime", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "weight", - "columnName": "weight", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "exploreUrl", - "columnName": "exploreUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleExplore", - "columnName": "ruleExplore", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "searchUrl", - "columnName": "searchUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleSearch", - "columnName": "ruleSearch", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleBookInfo", - "columnName": "ruleBookInfo", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleToc", - "columnName": "ruleToc", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleContent", - "columnName": "ruleContent", - "affinity": "TEXT", - "notNull": false - } - ], - "primaryKey": { - "columnNames": [ - "bookSourceUrl" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_book_sources_bookSourceUrl", - "unique": false, - "columnNames": [ - "bookSourceUrl" - ], - "createSql": "CREATE INDEX IF NOT EXISTS `index_book_sources_bookSourceUrl` ON `${TABLE_NAME}` (`bookSourceUrl`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "chapters", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`url` TEXT NOT NULL, `title` TEXT NOT NULL, `bookUrl` TEXT NOT NULL, `index` INTEGER NOT NULL, `resourceUrl` TEXT, `tag` TEXT, `start` INTEGER, `end` INTEGER, `variable` TEXT, PRIMARY KEY(`url`, `bookUrl`), FOREIGN KEY(`bookUrl`) REFERENCES `books`(`bookUrl`) ON UPDATE NO ACTION ON DELETE CASCADE )", - "fields": [ - { - "fieldPath": "url", - "columnName": "url", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "title", - "columnName": "title", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookUrl", - "columnName": "bookUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "index", - "columnName": "index", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "resourceUrl", - "columnName": "resourceUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "tag", - "columnName": "tag", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "start", - "columnName": "start", - "affinity": "INTEGER", - "notNull": false - }, - { - "fieldPath": "end", - "columnName": "end", - "affinity": "INTEGER", - "notNull": false - }, - { - "fieldPath": "variable", - "columnName": "variable", - "affinity": "TEXT", - "notNull": false - } - ], - "primaryKey": { - "columnNames": [ - "url", - "bookUrl" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_chapters_bookUrl", - "unique": false, - "columnNames": [ - "bookUrl" - ], - "createSql": "CREATE INDEX IF NOT EXISTS `index_chapters_bookUrl` ON `${TABLE_NAME}` (`bookUrl`)" - }, - { - "name": "index_chapters_bookUrl_index", - "unique": true, - "columnNames": [ - "bookUrl", - "index" - ], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_chapters_bookUrl_index` ON `${TABLE_NAME}` (`bookUrl`, `index`)" - } - ], - "foreignKeys": [ - { - "table": "books", - "onDelete": "CASCADE", - "onUpdate": "NO ACTION", - "columns": [ - "bookUrl" - ], - "referencedColumns": [ - "bookUrl" - ] - } - ] - }, - { - "tableName": "replace_rules", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, `name` TEXT NOT NULL, `group` TEXT, `pattern` TEXT NOT NULL, `replacement` TEXT NOT NULL, `scope` TEXT, `isEnabled` INTEGER NOT NULL, `isRegex` INTEGER NOT NULL, `sortOrder` INTEGER NOT NULL)", - "fields": [ - { - "fieldPath": "id", - "columnName": "id", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "group", - "columnName": "group", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "pattern", - "columnName": "pattern", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "replacement", - "columnName": "replacement", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "scope", - "columnName": "scope", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "isEnabled", - "columnName": "isEnabled", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "isRegex", - "columnName": "isRegex", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "order", - "columnName": "sortOrder", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "id" - ], - "autoGenerate": true - }, - "indices": [ - { - "name": "index_replace_rules_id", - "unique": false, - "columnNames": [ - "id" - ], - "createSql": "CREATE INDEX IF NOT EXISTS `index_replace_rules_id` ON `${TABLE_NAME}` (`id`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "searchBooks", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`bookUrl` TEXT NOT NULL, `origin` TEXT NOT NULL, `originName` TEXT NOT NULL, `type` INTEGER NOT NULL, `name` TEXT NOT NULL, `author` TEXT NOT NULL, `kind` TEXT, `coverUrl` TEXT, `intro` TEXT, `wordCount` TEXT, `latestChapterTitle` TEXT, `tocUrl` TEXT NOT NULL, `time` INTEGER NOT NULL, `variable` TEXT, `originOrder` INTEGER NOT NULL, PRIMARY KEY(`bookUrl`), FOREIGN KEY(`origin`) REFERENCES `book_sources`(`bookSourceUrl`) ON UPDATE NO ACTION ON DELETE CASCADE )", - "fields": [ - { - "fieldPath": "bookUrl", - "columnName": "bookUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "origin", - "columnName": "origin", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "originName", - "columnName": "originName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "type", - "columnName": "type", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "author", - "columnName": "author", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "kind", - "columnName": "kind", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "coverUrl", - "columnName": "coverUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "intro", - "columnName": "intro", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "wordCount", - "columnName": "wordCount", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "latestChapterTitle", - "columnName": "latestChapterTitle", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "tocUrl", - "columnName": "tocUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "time", - "columnName": "time", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "variable", - "columnName": "variable", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "originOrder", - "columnName": "originOrder", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "bookUrl" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_searchBooks_bookUrl", - "unique": true, - "columnNames": [ - "bookUrl" - ], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_searchBooks_bookUrl` ON `${TABLE_NAME}` (`bookUrl`)" - }, - { - "name": "index_searchBooks_origin", - "unique": false, - "columnNames": [ - "origin" - ], - "createSql": "CREATE INDEX IF NOT EXISTS `index_searchBooks_origin` ON `${TABLE_NAME}` (`origin`)" - } - ], - "foreignKeys": [ - { - "table": "book_sources", - "onDelete": "CASCADE", - "onUpdate": "NO ACTION", - "columns": [ - "origin" - ], - "referencedColumns": [ - "bookSourceUrl" - ] - } - ] - }, - { - "tableName": "search_keywords", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`word` TEXT NOT NULL, `usage` INTEGER NOT NULL, `lastUseTime` INTEGER NOT NULL, PRIMARY KEY(`word`))", - "fields": [ - { - "fieldPath": "word", - "columnName": "word", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "usage", - "columnName": "usage", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "lastUseTime", - "columnName": "lastUseTime", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "word" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_search_keywords_word", - "unique": true, - "columnNames": [ - "word" - ], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_search_keywords_word` ON `${TABLE_NAME}` (`word`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "cookies", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`url` TEXT NOT NULL, `cookie` TEXT NOT NULL, PRIMARY KEY(`url`))", - "fields": [ - { - "fieldPath": "url", - "columnName": "url", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "cookie", - "columnName": "cookie", - "affinity": "TEXT", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "url" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_cookies_url", - "unique": true, - "columnNames": [ - "url" - ], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_cookies_url` ON `${TABLE_NAME}` (`url`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "rssSources", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`sourceUrl` TEXT NOT NULL, `sourceName` TEXT NOT NULL, `sourceIcon` TEXT NOT NULL, `sourceGroup` TEXT, `enabled` INTEGER NOT NULL, `sortUrl` TEXT, `ruleArticles` TEXT, `ruleNextPage` TEXT, `ruleTitle` TEXT, `rulePubDate` TEXT, `ruleDescription` TEXT, `ruleImage` TEXT, `ruleLink` TEXT, `ruleContent` TEXT, `header` TEXT, `enableJs` INTEGER NOT NULL, `loadWithBaseUrl` INTEGER NOT NULL, `customOrder` INTEGER NOT NULL, PRIMARY KEY(`sourceUrl`))", - "fields": [ - { - "fieldPath": "sourceUrl", - "columnName": "sourceUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "sourceName", - "columnName": "sourceName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "sourceIcon", - "columnName": "sourceIcon", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "sourceGroup", - "columnName": "sourceGroup", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "enabled", - "columnName": "enabled", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "sortUrl", - "columnName": "sortUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleArticles", - "columnName": "ruleArticles", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleNextPage", - "columnName": "ruleNextPage", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleTitle", - "columnName": "ruleTitle", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "rulePubDate", - "columnName": "rulePubDate", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleDescription", - "columnName": "ruleDescription", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleImage", - "columnName": "ruleImage", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleLink", - "columnName": "ruleLink", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "ruleContent", - "columnName": "ruleContent", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "header", - "columnName": "header", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "enableJs", - "columnName": "enableJs", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "loadWithBaseUrl", - "columnName": "loadWithBaseUrl", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "customOrder", - "columnName": "customOrder", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "sourceUrl" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_rssSources_sourceUrl", - "unique": false, - "columnNames": [ - "sourceUrl" - ], - "createSql": "CREATE INDEX IF NOT EXISTS `index_rssSources_sourceUrl` ON `${TABLE_NAME}` (`sourceUrl`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "bookmarks", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`time` INTEGER NOT NULL, `bookUrl` TEXT NOT NULL, `bookName` TEXT NOT NULL, `chapterIndex` INTEGER NOT NULL, `pageIndex` INTEGER NOT NULL, `chapterName` TEXT NOT NULL, `content` TEXT NOT NULL, PRIMARY KEY(`time`))", - "fields": [ - { - "fieldPath": "time", - "columnName": "time", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "bookUrl", - "columnName": "bookUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "bookName", - "columnName": "bookName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "chapterIndex", - "columnName": "chapterIndex", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "pageIndex", - "columnName": "pageIndex", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "chapterName", - "columnName": "chapterName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "content", - "columnName": "content", - "affinity": "TEXT", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "time" - ], - "autoGenerate": false - }, - "indices": [ - { - "name": "index_bookmarks_time", - "unique": true, - "columnNames": [ - "time" - ], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_bookmarks_time` ON `${TABLE_NAME}` (`time`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "rssArticles", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`origin` TEXT NOT NULL, `title` TEXT NOT NULL, `order` INTEGER NOT NULL, `link` TEXT NOT NULL, `pubDate` TEXT, `description` TEXT, `content` TEXT, `image` TEXT, `read` INTEGER NOT NULL, PRIMARY KEY(`origin`, `link`))", - "fields": [ - { - "fieldPath": "origin", - "columnName": "origin", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "title", - "columnName": "title", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "order", - "columnName": "order", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "link", - "columnName": "link", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "pubDate", - "columnName": "pubDate", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "description", - "columnName": "description", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "content", - "columnName": "content", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "image", - "columnName": "image", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "read", - "columnName": "read", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "origin", - "link" - ], - "autoGenerate": false - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "rssReadRecords", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`record` TEXT NOT NULL, `read` INTEGER NOT NULL, PRIMARY KEY(`record`))", - "fields": [ - { - "fieldPath": "record", - "columnName": "record", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "read", - "columnName": "read", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "record" - ], - "autoGenerate": false - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "rssStars", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`origin` TEXT NOT NULL, `title` TEXT NOT NULL, `starTime` INTEGER NOT NULL, `link` TEXT NOT NULL, `pubDate` TEXT, `description` TEXT, `content` TEXT, `image` TEXT, PRIMARY KEY(`origin`, `link`))", - "fields": [ - { - "fieldPath": "origin", - "columnName": "origin", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "title", - "columnName": "title", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "starTime", - "columnName": "starTime", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "link", - "columnName": "link", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "pubDate", - "columnName": "pubDate", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "description", - "columnName": "description", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "content", - "columnName": "content", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "image", - "columnName": "image", - "affinity": "TEXT", - "notNull": false - } - ], - "primaryKey": { - "columnNames": [ - "origin", - "link" - ], - "autoGenerate": false - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "txtTocRules", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`name` TEXT NOT NULL, `rule` TEXT NOT NULL, `serialNumber` INTEGER NOT NULL, `enable` INTEGER NOT NULL, PRIMARY KEY(`name`))", - "fields": [ - { - "fieldPath": "name", - "columnName": "name", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "rule", - "columnName": "rule", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "serialNumber", - "columnName": "serialNumber", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "enable", - "columnName": "enable", - "affinity": "INTEGER", - "notNull": true - } - ], - "primaryKey": { - "columnNames": [ - "name" - ], - "autoGenerate": false - }, - "indices": [], - "foreignKeys": [] - } - ], - "views": [], - "setupQueries": [ - "CREATE TABLE IF NOT EXISTS room_master_table (id INTEGER PRIMARY KEY,identity_hash TEXT)", - "INSERT OR REPLACE INTO room_master_table (id,identity_hash) VALUES(42, '8da976febbd44e9e028b951b42583f9a')" - ] - } -} \ No newline at end of file