From eff62f9edb6bed92db9c8eda02d88a35ae97b2e9 Mon Sep 17 00:00:00 2001 From: miaogongzi Date: Tue, 19 Nov 2024 00:56:53 +0800 Subject: [PATCH] delete --- entry/schemas/AppDatabase/1.json | 1022 ------- entry/schemas/AppDatabase/10.json | 1176 -------- entry/schemas/AppDatabase/11.json | 1182 -------- entry/schemas/AppDatabase/12.json | 1188 -------- entry/schemas/AppDatabase/13.json | 1194 --------- entry/schemas/AppDatabase/14.json | 1194 --------- entry/schemas/AppDatabase/15.json | 1200 --------- entry/schemas/AppDatabase/16.json | 1226 --------- entry/schemas/AppDatabase/17.json | 1226 --------- entry/schemas/AppDatabase/18.json | 1258 --------- entry/schemas/AppDatabase/19.json | 1265 --------- entry/schemas/AppDatabase/2.json | 1028 ------- entry/schemas/AppDatabase/20.json | 1271 --------- entry/schemas/AppDatabase/21.json | 1283 --------- entry/schemas/AppDatabase/22.json | 1277 --------- entry/schemas/AppDatabase/23.json | 1283 --------- entry/schemas/AppDatabase/24.json | 1324 --------- entry/schemas/AppDatabase/25.json | 1368 ---------- entry/schemas/AppDatabase/26.json | 1392 ---------- entry/schemas/AppDatabase/27.json | 1392 ---------- entry/schemas/AppDatabase/28.json | 1404 ---------- entry/schemas/AppDatabase/29.json | 1410 ---------- entry/schemas/AppDatabase/3.json | 1036 ------- entry/schemas/AppDatabase/30.json | 1485 ---------- entry/schemas/AppDatabase/31.json | 1422 ---------- entry/schemas/AppDatabase/32.json | 1422 ---------- entry/schemas/AppDatabase/33.json | 1417 ---------- entry/schemas/AppDatabase/34.json | 1423 ---------- entry/schemas/AppDatabase/35.json | 1441 ---------- entry/schemas/AppDatabase/36.json | 1441 ---------- entry/schemas/AppDatabase/37.json | 1459 ---------- entry/schemas/AppDatabase/38.json | 1465 ---------- entry/schemas/AppDatabase/39.json | 1471 ---------- entry/schemas/AppDatabase/4.json | 1093 -------- entry/schemas/AppDatabase/40.json | 1483 ---------- entry/schemas/AppDatabase/41.json | 1513 ----------- entry/schemas/AppDatabase/42.json | 1519 ----------- entry/schemas/AppDatabase/43.json | 1537 ----------- entry/schemas/AppDatabase/44.json | 1557 ----------- entry/schemas/AppDatabase/45.json | 1618 ----------- entry/schemas/AppDatabase/46.json | 1618 ----------- entry/schemas/AppDatabase/47.json | 1625 ----------- entry/schemas/AppDatabase/48.json | 1633 ----------- entry/schemas/AppDatabase/49.json | 1654 ------------ entry/schemas/AppDatabase/5.json | 1093 -------- entry/schemas/AppDatabase/50.json | 1666 ------------ entry/schemas/AppDatabase/51.json | 1674 ------------ entry/schemas/AppDatabase/52.json | 1680 ------------ entry/schemas/AppDatabase/53.json | 1692 ------------ entry/schemas/AppDatabase/54.json | 1711 ------------ entry/schemas/AppDatabase/55.json | 1711 ------------ entry/schemas/AppDatabase/56.json | 1711 ------------ entry/schemas/AppDatabase/57.json | 1717 ------------ entry/schemas/AppDatabase/58.json | 1724 ------------ entry/schemas/AppDatabase/59.json | 1740 ------------ entry/schemas/AppDatabase/6.json | 1131 -------- entry/schemas/AppDatabase/60.json | 1778 ------------ entry/schemas/AppDatabase/61.json | 1786 ------------- entry/schemas/AppDatabase/62.json | 1830 ------------- entry/schemas/AppDatabase/63.json | 1838 ------------- entry/schemas/AppDatabase/64.json | 1847 ------------- entry/schemas/AppDatabase/65.json | 1853 ------------- entry/schemas/AppDatabase/66.json | 1859 ------------- entry/schemas/AppDatabase/67.json | 1879 ------------- entry/schemas/AppDatabase/68.json | 1885 ------------- entry/schemas/AppDatabase/69.json | 1885 ------------- entry/schemas/AppDatabase/7.json | 1131 -------- entry/schemas/AppDatabase/70.json | 1891 ------------- entry/schemas/AppDatabase/71.json | 1898 ------------- entry/schemas/AppDatabase/8.json | 1157 -------- entry/schemas/AppDatabase/9.json | 1164 -------- entry/schemas/data/AppDatabase.kt | 179 -- entry/schemas/data/DatabaseMigrations.kt | 374 --- entry/schemas/data/README.md | 18 - entry/schemas/data/dao/BookChapterDao.kt | 40 - entry/schemas/data/dao/BookDao.kt | 151 -- entry/schemas/data/dao/BookGroupDao.kt | 99 - entry/schemas/data/dao/BookSourceDao.kt | 381 --- entry/schemas/data/dao/BookmarkDao.kt | 60 - entry/schemas/data/dao/CacheDao.kt | 27 - entry/schemas/data/dao/CookieDao.kt | 26 - entry/schemas/data/dao/DictRuleDao.kt | 32 - entry/schemas/data/dao/HttpTTSDao.kt | 36 - entry/schemas/data/dao/KeyboardAssistsDao.kt | 34 - entry/schemas/data/dao/ReadRecordDao.kt | 55 - entry/schemas/data/dao/ReplaceRuleDao.kt | 114 - entry/schemas/data/dao/RssArticleDao.kt | 39 - entry/schemas/data/dao/RssSourceDao.kt | 145 - entry/schemas/data/dao/RssStarDao.kt | 30 - entry/schemas/data/dao/RuleSubDao.kt | 30 - entry/schemas/data/dao/SearchBookDao.kt | 73 - entry/schemas/data/dao/SearchKeywordDao.kt | 38 - entry/schemas/data/dao/ServerDao.kt | 33 - entry/schemas/data/dao/TxtTocRuleDao.kt | 45 - entry/schemas/data/entities/BaseBook.kt | 53 - entry/schemas/data/entities/BaseRssArticle.kt | 29 - entry/schemas/data/entities/BaseSource.kt | 251 -- entry/schemas/data/entities/Book.kt | 407 --- entry/schemas/data/entities/BookChapter.kt | 180 -- .../data/entities/BookChapterReview.kt | 15 - entry/schemas/data/entities/BookGroup.kt | 74 - entry/schemas/data/entities/BookProgress.kt | 21 - entry/schemas/data/entities/BookSource.kt | 310 --- entry/schemas/data/entities/BookSourcePart.kt | 73 - entry/schemas/data/entities/Bookmark.kt | 24 - entry/schemas/data/entities/Cache.kt | 13 - entry/schemas/data/entities/Cookie.kt | 12 - entry/schemas/data/entities/DictRule.kt | 48 - entry/schemas/data/entities/HttpTTS.kt | 83 - entry/schemas/data/entities/KeyboardAssist.kt | 20 - entry/schemas/data/entities/ReadRecord.kt | 14 - entry/schemas/data/entities/ReadRecordShow.kt | 7 - entry/schemas/data/entities/ReplaceRule.kt | 121 - entry/schemas/data/entities/RssArticle.kt | 54 - entry/schemas/data/entities/RssReadRecord.kt | 10 - entry/schemas/data/entities/RssSource.kt | 182 -- entry/schemas/data/entities/RssStar.kt | 45 - entry/schemas/data/entities/RuleSub.kt | 16 - entry/schemas/data/entities/SearchBook.kt | 121 - entry/schemas/data/entities/SearchKeyword.kt | 20 - entry/schemas/data/entities/Server.kt | 57 - entry/schemas/data/entities/TxtTocRule.kt | 29 - .../data/entities/rule/BookInfoRule.kt | 42 - .../data/entities/rule/BookListRule.kt | 17 - .../schemas/data/entities/rule/ContentRule.kt | 41 - .../schemas/data/entities/rule/ExploreKind.kt | 42 - .../schemas/data/entities/rule/ExploreRule.kt | 40 - .../schemas/data/entities/rule/ReviewRule.kt | 36 - entry/schemas/data/entities/rule/RowUi.kt | 21 - .../schemas/data/entities/rule/SearchRule.kt | 39 - entry/schemas/data/entities/rule/TocRule.kt | 34 - .../main/ets/database/AppDatabase/index.ets | 2380 ----------------- .../src/main/ets/database/AppDatabaseUtil.ets | 69 - .../main/ets/database/dao/BookGroupsDao.ets | 398 --- .../main/ets/database/dao/BookHistoryDao.ets | 153 -- .../main/ets/database/dao/BookSourceDao.ets | 340 --- entry/src/main/ets/database/dao/BooksDao.ets | 462 ---- .../ets/database/dao/RssSourcesHistoryDao.ets | 141 - .../main/ets/database/dao/SubscriptionDao.ets | 288 -- .../main/ets/database/dao/WorksListsDao.ets | 159 -- .../main/ets/database/entities/BookGroups.ets | 107 - .../ets/database/entities/BookHistory.ets | 50 - .../main/ets/database/entities/BookSource.ets | 234 -- .../ets/database/entities/BookSourcePart.ets | 32 - .../src/main/ets/database/entities/Books.ets | 99 - .../main/ets/database/entities/SearchBook.ets | 36 - .../ets/database/entities/WorksBookList.ets | 22 - .../main/ets/database/entities/WorksLists.ets | 80 - .../main/ets/database/entities/rssSources.ets | 217 -- .../database/entities/rssSourcesHistory.ets | 28 - .../ets/database/entities/rssSourcesPart.ets | 36 - .../database/entities/rule/BookInfoRule.ets | 33 - .../database/entities/rule/ContentRule.ets | 14 - .../database/entities/rule/ExploreRule.ets | 15 - .../ets/database/entities/rule/ReviewRule.ets | 17 - .../ets/database/entities/rule/SearchRule.ets | 17 - .../ets/database/entities/rule/TocRule.ets | 15 - .../main/ets/database/entities/rule/index.ets | 6 - .../database/entities/rule/rssListRule.ets | 22 - .../database/entities/rule/rssWebViewRule.ets | 23 - entry/src/main/ets/database/index.ets | 23 - .../ets/database/initData/BookGroupsData.ets | 57 - .../ets/database/types/AppDatabaseType.ets | 53 - .../main/ets/database/types/BookGroupType.ets | 10 - .../ets/database/types/BookHistoryType.ets | 11 - .../ets/database/types/BookSourceType.ets | 45 - .../src/main/ets/database/types/BooksType.ets | 15 - .../main/ets/database/types/ColumnInfo.ets | 31 - .../ets/database/types/WorksListsType.ets | 11 - .../ets/database/types/rssSourcesType.ets | 11 - 170 files changed, 115246 deletions(-) delete mode 100644 entry/schemas/AppDatabase/1.json delete mode 100644 entry/schemas/AppDatabase/10.json delete mode 100644 entry/schemas/AppDatabase/11.json delete mode 100644 entry/schemas/AppDatabase/12.json delete mode 100644 entry/schemas/AppDatabase/13.json delete mode 100644 entry/schemas/AppDatabase/14.json delete mode 100644 entry/schemas/AppDatabase/15.json delete mode 100644 entry/schemas/AppDatabase/16.json delete mode 100644 entry/schemas/AppDatabase/17.json delete mode 100644 entry/schemas/AppDatabase/18.json delete mode 100644 entry/schemas/AppDatabase/19.json delete mode 100644 entry/schemas/AppDatabase/2.json delete mode 100644 entry/schemas/AppDatabase/20.json delete mode 100644 entry/schemas/AppDatabase/21.json delete mode 100644 entry/schemas/AppDatabase/22.json delete mode 100644 entry/schemas/AppDatabase/23.json delete mode 100644 entry/schemas/AppDatabase/24.json delete mode 100644 entry/schemas/AppDatabase/25.json delete mode 100644 entry/schemas/AppDatabase/26.json delete mode 100644 entry/schemas/AppDatabase/27.json delete mode 100644 entry/schemas/AppDatabase/28.json delete mode 100644 entry/schemas/AppDatabase/29.json delete mode 100644 entry/schemas/AppDatabase/3.json delete mode 100644 entry/schemas/AppDatabase/30.json delete mode 100644 entry/schemas/AppDatabase/31.json delete mode 100644 entry/schemas/AppDatabase/32.json delete mode 100644 entry/schemas/AppDatabase/33.json delete mode 100644 entry/schemas/AppDatabase/34.json delete mode 100644 entry/schemas/AppDatabase/35.json delete mode 100644 entry/schemas/AppDatabase/36.json delete mode 100644 entry/schemas/AppDatabase/37.json delete mode 100644 entry/schemas/AppDatabase/38.json delete mode 100644 entry/schemas/AppDatabase/39.json delete mode 100644 entry/schemas/AppDatabase/4.json delete mode 100644 entry/schemas/AppDatabase/40.json delete mode 100644 entry/schemas/AppDatabase/41.json delete mode 100644 entry/schemas/AppDatabase/42.json delete mode 100644 entry/schemas/AppDatabase/43.json delete mode 100644 entry/schemas/AppDatabase/44.json delete mode 100644 entry/schemas/AppDatabase/45.json delete mode 100644 entry/schemas/AppDatabase/46.json delete mode 100644 entry/schemas/AppDatabase/47.json delete mode 100644 entry/schemas/AppDatabase/48.json delete mode 100644 entry/schemas/AppDatabase/49.json delete mode 100644 entry/schemas/AppDatabase/5.json delete mode 100644 entry/schemas/AppDatabase/50.json delete mode 100644 entry/schemas/AppDatabase/51.json delete mode 100644 entry/schemas/AppDatabase/52.json delete mode 100644 entry/schemas/AppDatabase/53.json delete mode 100644 entry/schemas/AppDatabase/54.json delete mode 100644 entry/schemas/AppDatabase/55.json delete mode 100644 entry/schemas/AppDatabase/56.json delete mode 100644 entry/schemas/AppDatabase/57.json delete mode 100644 entry/schemas/AppDatabase/58.json delete mode 100644 entry/schemas/AppDatabase/59.json delete mode 100644 entry/schemas/AppDatabase/6.json delete mode 100644 entry/schemas/AppDatabase/60.json delete mode 100644 entry/schemas/AppDatabase/61.json delete mode 100644 entry/schemas/AppDatabase/62.json delete mode 100644 entry/schemas/AppDatabase/63.json delete mode 100644 entry/schemas/AppDatabase/64.json delete mode 100644 entry/schemas/AppDatabase/65.json delete mode 100644 entry/schemas/AppDatabase/66.json delete mode 100644 entry/schemas/AppDatabase/67.json delete mode 100644 entry/schemas/AppDatabase/68.json delete mode 100644 entry/schemas/AppDatabase/69.json delete mode 100644 entry/schemas/AppDatabase/7.json delete mode 100644 entry/schemas/AppDatabase/70.json delete mode 100644 entry/schemas/AppDatabase/71.json delete mode 100644 entry/schemas/AppDatabase/8.json delete mode 100644 entry/schemas/AppDatabase/9.json delete mode 100644 entry/schemas/data/AppDatabase.kt delete mode 100644 entry/schemas/data/DatabaseMigrations.kt delete mode 100644 entry/schemas/data/README.md delete mode 100644 entry/schemas/data/dao/BookChapterDao.kt delete mode 100644 entry/schemas/data/dao/BookDao.kt delete mode 100644 entry/schemas/data/dao/BookGroupDao.kt delete mode 100644 entry/schemas/data/dao/BookSourceDao.kt delete mode 100644 entry/schemas/data/dao/BookmarkDao.kt delete mode 100644 entry/schemas/data/dao/CacheDao.kt delete mode 100644 entry/schemas/data/dao/CookieDao.kt delete mode 100644 entry/schemas/data/dao/DictRuleDao.kt delete mode 100644 entry/schemas/data/dao/HttpTTSDao.kt delete mode 100644 entry/schemas/data/dao/KeyboardAssistsDao.kt delete mode 100644 entry/schemas/data/dao/ReadRecordDao.kt delete mode 100644 entry/schemas/data/dao/ReplaceRuleDao.kt delete mode 100644 entry/schemas/data/dao/RssArticleDao.kt delete mode 100644 entry/schemas/data/dao/RssSourceDao.kt delete mode 100644 entry/schemas/data/dao/RssStarDao.kt delete mode 100644 entry/schemas/data/dao/RuleSubDao.kt delete mode 100644 entry/schemas/data/dao/SearchBookDao.kt delete mode 100644 entry/schemas/data/dao/SearchKeywordDao.kt delete mode 100644 entry/schemas/data/dao/ServerDao.kt delete mode 100644 entry/schemas/data/dao/TxtTocRuleDao.kt delete mode 100644 entry/schemas/data/entities/BaseBook.kt delete mode 100644 entry/schemas/data/entities/BaseRssArticle.kt delete mode 100644 entry/schemas/data/entities/BaseSource.kt delete mode 100644 entry/schemas/data/entities/Book.kt delete mode 100644 entry/schemas/data/entities/BookChapter.kt delete mode 100644 entry/schemas/data/entities/BookChapterReview.kt delete mode 100644 entry/schemas/data/entities/BookGroup.kt delete mode 100644 entry/schemas/data/entities/BookProgress.kt delete mode 100644 entry/schemas/data/entities/BookSource.kt delete mode 100644 entry/schemas/data/entities/BookSourcePart.kt delete mode 100644 entry/schemas/data/entities/Bookmark.kt delete mode 100644 entry/schemas/data/entities/Cache.kt delete mode 100644 entry/schemas/data/entities/Cookie.kt delete mode 100644 entry/schemas/data/entities/DictRule.kt delete mode 100644 entry/schemas/data/entities/HttpTTS.kt delete mode 100644 entry/schemas/data/entities/KeyboardAssist.kt delete mode 100644 entry/schemas/data/entities/ReadRecord.kt delete mode 100644 entry/schemas/data/entities/ReadRecordShow.kt delete mode 100644 entry/schemas/data/entities/ReplaceRule.kt delete mode 100644 entry/schemas/data/entities/RssArticle.kt delete mode 100644 entry/schemas/data/entities/RssReadRecord.kt delete mode 100644 entry/schemas/data/entities/RssSource.kt delete mode 100644 entry/schemas/data/entities/RssStar.kt delete mode 100644 entry/schemas/data/entities/RuleSub.kt delete mode 100644 entry/schemas/data/entities/SearchBook.kt delete mode 100644 entry/schemas/data/entities/SearchKeyword.kt delete mode 100644 entry/schemas/data/entities/Server.kt delete mode 100644 entry/schemas/data/entities/TxtTocRule.kt delete mode 100644 entry/schemas/data/entities/rule/BookInfoRule.kt delete mode 100644 entry/schemas/data/entities/rule/BookListRule.kt delete mode 100644 entry/schemas/data/entities/rule/ContentRule.kt delete mode 100644 entry/schemas/data/entities/rule/ExploreKind.kt delete mode 100644 entry/schemas/data/entities/rule/ExploreRule.kt delete mode 100644 entry/schemas/data/entities/rule/ReviewRule.kt delete mode 100644 entry/schemas/data/entities/rule/RowUi.kt delete mode 100644 entry/schemas/data/entities/rule/SearchRule.kt delete mode 100644 entry/schemas/data/entities/rule/TocRule.kt delete mode 100644 entry/src/main/ets/database/AppDatabase/index.ets delete mode 100644 entry/src/main/ets/database/AppDatabaseUtil.ets delete mode 100644 entry/src/main/ets/database/dao/BookGroupsDao.ets delete mode 100644 entry/src/main/ets/database/dao/BookHistoryDao.ets delete mode 100644 entry/src/main/ets/database/dao/BookSourceDao.ets delete mode 100644 entry/src/main/ets/database/dao/BooksDao.ets delete mode 100644 entry/src/main/ets/database/dao/RssSourcesHistoryDao.ets delete mode 100644 entry/src/main/ets/database/dao/SubscriptionDao.ets delete mode 100644 entry/src/main/ets/database/dao/WorksListsDao.ets delete mode 100644 entry/src/main/ets/database/entities/BookGroups.ets delete mode 100644 entry/src/main/ets/database/entities/BookHistory.ets delete mode 100644 entry/src/main/ets/database/entities/BookSource.ets delete mode 100644 entry/src/main/ets/database/entities/BookSourcePart.ets delete mode 100644 entry/src/main/ets/database/entities/Books.ets delete mode 100644 entry/src/main/ets/database/entities/SearchBook.ets delete mode 100644 entry/src/main/ets/database/entities/WorksBookList.ets delete mode 100644 entry/src/main/ets/database/entities/WorksLists.ets delete mode 100644 entry/src/main/ets/database/entities/rssSources.ets delete mode 100644 entry/src/main/ets/database/entities/rssSourcesHistory.ets delete mode 100644 entry/src/main/ets/database/entities/rssSourcesPart.ets delete mode 100644 entry/src/main/ets/database/entities/rule/BookInfoRule.ets delete mode 100644 entry/src/main/ets/database/entities/rule/ContentRule.ets delete mode 100644 entry/src/main/ets/database/entities/rule/ExploreRule.ets delete mode 100644 entry/src/main/ets/database/entities/rule/ReviewRule.ets delete mode 100644 entry/src/main/ets/database/entities/rule/SearchRule.ets delete mode 100644 entry/src/main/ets/database/entities/rule/TocRule.ets delete mode 100644 entry/src/main/ets/database/entities/rule/index.ets delete mode 100644 entry/src/main/ets/database/entities/rule/rssListRule.ets delete mode 100644 entry/src/main/ets/database/entities/rule/rssWebViewRule.ets delete mode 100644 entry/src/main/ets/database/index.ets delete mode 100644 entry/src/main/ets/database/initData/BookGroupsData.ets delete mode 100644 entry/src/main/ets/database/types/AppDatabaseType.ets delete mode 100644 entry/src/main/ets/database/types/BookGroupType.ets delete mode 100644 entry/src/main/ets/database/types/BookHistoryType.ets delete mode 100644 entry/src/main/ets/database/types/BookSourceType.ets delete mode 100644 entry/src/main/ets/database/types/BooksType.ets delete mode 100644 entry/src/main/ets/database/types/ColumnInfo.ets delete mode 100644 entry/src/main/ets/database/types/WorksListsType.ets delete mode 100644 entry/src/main/ets/database/types/rssSourcesType.ets diff --git a/entry/schemas/AppDatabase/1.json b/entry/schemas/AppDatabase/1.json deleted file mode 100644 index 1ab906cf..00000000 --- a/entry/schemas/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/entry/schemas/AppDatabase/10.json b/entry/schemas/AppDatabase/10.json deleted file mode 100644 index ddbecfb5..00000000 --- a/entry/schemas/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/entry/schemas/AppDatabase/11.json b/entry/schemas/AppDatabase/11.json deleted file mode 100644 index 660476fd..00000000 --- a/entry/schemas/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/entry/schemas/AppDatabase/12.json b/entry/schemas/AppDatabase/12.json deleted file mode 100644 index 1552fd7c..00000000 --- a/entry/schemas/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/entry/schemas/AppDatabase/13.json b/entry/schemas/AppDatabase/13.json deleted file mode 100644 index 3226a6f0..00000000 --- a/entry/schemas/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/entry/schemas/AppDatabase/14.json b/entry/schemas/AppDatabase/14.json deleted file mode 100644 index 7f0f72ab..00000000 --- a/entry/schemas/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/entry/schemas/AppDatabase/15.json b/entry/schemas/AppDatabase/15.json deleted file mode 100644 index cb401ac9..00000000 --- a/entry/schemas/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/entry/schemas/AppDatabase/16.json b/entry/schemas/AppDatabase/16.json deleted file mode 100644 index 80bb3925..00000000 --- a/entry/schemas/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/entry/schemas/AppDatabase/17.json b/entry/schemas/AppDatabase/17.json deleted file mode 100644 index f061e584..00000000 --- a/entry/schemas/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/entry/schemas/AppDatabase/18.json b/entry/schemas/AppDatabase/18.json deleted file mode 100644 index 2ba39a80..00000000 --- a/entry/schemas/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/entry/schemas/AppDatabase/19.json b/entry/schemas/AppDatabase/19.json deleted file mode 100644 index bb5a0bb0..00000000 --- a/entry/schemas/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/entry/schemas/AppDatabase/2.json b/entry/schemas/AppDatabase/2.json deleted file mode 100644 index 7fa0d4da..00000000 --- a/entry/schemas/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/entry/schemas/AppDatabase/20.json b/entry/schemas/AppDatabase/20.json deleted file mode 100644 index 31058f1d..00000000 --- a/entry/schemas/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/entry/schemas/AppDatabase/21.json b/entry/schemas/AppDatabase/21.json deleted file mode 100644 index 80bc0b31..00000000 --- a/entry/schemas/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/entry/schemas/AppDatabase/22.json b/entry/schemas/AppDatabase/22.json deleted file mode 100644 index 02a64213..00000000 --- a/entry/schemas/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/entry/schemas/AppDatabase/23.json b/entry/schemas/AppDatabase/23.json deleted file mode 100644 index 48934cae..00000000 --- a/entry/schemas/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/entry/schemas/AppDatabase/24.json b/entry/schemas/AppDatabase/24.json deleted file mode 100644 index 879ffdd5..00000000 --- a/entry/schemas/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/entry/schemas/AppDatabase/25.json b/entry/schemas/AppDatabase/25.json deleted file mode 100644 index c5e40e25..00000000 --- a/entry/schemas/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/entry/schemas/AppDatabase/26.json b/entry/schemas/AppDatabase/26.json deleted file mode 100644 index 573b83e2..00000000 --- a/entry/schemas/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/entry/schemas/AppDatabase/27.json b/entry/schemas/AppDatabase/27.json deleted file mode 100644 index 98e0181e..00000000 --- a/entry/schemas/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/entry/schemas/AppDatabase/28.json b/entry/schemas/AppDatabase/28.json deleted file mode 100644 index 180fb4fa..00000000 --- a/entry/schemas/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/entry/schemas/AppDatabase/29.json b/entry/schemas/AppDatabase/29.json deleted file mode 100644 index f31bbc34..00000000 --- a/entry/schemas/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/entry/schemas/AppDatabase/3.json b/entry/schemas/AppDatabase/3.json deleted file mode 100644 index 0880d84a..00000000 --- a/entry/schemas/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/entry/schemas/AppDatabase/30.json b/entry/schemas/AppDatabase/30.json deleted file mode 100644 index e5bf2b03..00000000 --- a/entry/schemas/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/entry/schemas/AppDatabase/31.json b/entry/schemas/AppDatabase/31.json deleted file mode 100644 index fe8a10f4..00000000 --- a/entry/schemas/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/entry/schemas/AppDatabase/32.json b/entry/schemas/AppDatabase/32.json deleted file mode 100644 index 03fd2016..00000000 --- a/entry/schemas/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/entry/schemas/AppDatabase/33.json b/entry/schemas/AppDatabase/33.json deleted file mode 100644 index f4deedbd..00000000 --- a/entry/schemas/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/entry/schemas/AppDatabase/34.json b/entry/schemas/AppDatabase/34.json deleted file mode 100644 index 3fe40c41..00000000 --- a/entry/schemas/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/entry/schemas/AppDatabase/35.json b/entry/schemas/AppDatabase/35.json deleted file mode 100644 index 9e3eeb6f..00000000 --- a/entry/schemas/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/entry/schemas/AppDatabase/36.json b/entry/schemas/AppDatabase/36.json deleted file mode 100644 index d99c1b8f..00000000 --- a/entry/schemas/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/entry/schemas/AppDatabase/37.json b/entry/schemas/AppDatabase/37.json deleted file mode 100644 index c5c21ec8..00000000 --- a/entry/schemas/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/entry/schemas/AppDatabase/38.json b/entry/schemas/AppDatabase/38.json deleted file mode 100644 index ab741521..00000000 --- a/entry/schemas/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/entry/schemas/AppDatabase/39.json b/entry/schemas/AppDatabase/39.json deleted file mode 100644 index 290db5cb..00000000 --- a/entry/schemas/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/entry/schemas/AppDatabase/4.json b/entry/schemas/AppDatabase/4.json deleted file mode 100644 index aadc551f..00000000 --- a/entry/schemas/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/entry/schemas/AppDatabase/40.json b/entry/schemas/AppDatabase/40.json deleted file mode 100644 index 0bbd935a..00000000 --- a/entry/schemas/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/entry/schemas/AppDatabase/41.json b/entry/schemas/AppDatabase/41.json deleted file mode 100644 index c04ce26a..00000000 --- a/entry/schemas/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/entry/schemas/AppDatabase/42.json b/entry/schemas/AppDatabase/42.json deleted file mode 100644 index b14284f0..00000000 --- a/entry/schemas/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/entry/schemas/AppDatabase/43.json b/entry/schemas/AppDatabase/43.json deleted file mode 100644 index f375a472..00000000 --- a/entry/schemas/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/entry/schemas/AppDatabase/44.json b/entry/schemas/AppDatabase/44.json deleted file mode 100644 index 7062c8af..00000000 --- a/entry/schemas/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/entry/schemas/AppDatabase/45.json b/entry/schemas/AppDatabase/45.json deleted file mode 100644 index 6c760036..00000000 --- a/entry/schemas/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/entry/schemas/AppDatabase/46.json b/entry/schemas/AppDatabase/46.json deleted file mode 100644 index 56b556d6..00000000 --- a/entry/schemas/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/entry/schemas/AppDatabase/47.json b/entry/schemas/AppDatabase/47.json deleted file mode 100644 index bb6f79b2..00000000 --- a/entry/schemas/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/entry/schemas/AppDatabase/48.json b/entry/schemas/AppDatabase/48.json deleted file mode 100644 index cebc5ae1..00000000 --- a/entry/schemas/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/entry/schemas/AppDatabase/49.json b/entry/schemas/AppDatabase/49.json deleted file mode 100644 index 60bf9082..00000000 --- a/entry/schemas/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/entry/schemas/AppDatabase/5.json b/entry/schemas/AppDatabase/5.json deleted file mode 100644 index 840c85b6..00000000 --- a/entry/schemas/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/entry/schemas/AppDatabase/50.json b/entry/schemas/AppDatabase/50.json deleted file mode 100644 index 05ebf3e6..00000000 --- a/entry/schemas/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/entry/schemas/AppDatabase/51.json b/entry/schemas/AppDatabase/51.json deleted file mode 100644 index e11ecf0e..00000000 --- a/entry/schemas/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/entry/schemas/AppDatabase/52.json b/entry/schemas/AppDatabase/52.json deleted file mode 100644 index 4f3ee4e9..00000000 --- a/entry/schemas/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/entry/schemas/AppDatabase/53.json b/entry/schemas/AppDatabase/53.json deleted file mode 100644 index 518a1bfb..00000000 --- a/entry/schemas/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/entry/schemas/AppDatabase/54.json b/entry/schemas/AppDatabase/54.json deleted file mode 100644 index 897fb0f7..00000000 --- a/entry/schemas/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/entry/schemas/AppDatabase/55.json b/entry/schemas/AppDatabase/55.json deleted file mode 100644 index c4d25304..00000000 --- a/entry/schemas/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/entry/schemas/AppDatabase/56.json b/entry/schemas/AppDatabase/56.json deleted file mode 100644 index c4959f96..00000000 --- a/entry/schemas/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/entry/schemas/AppDatabase/57.json b/entry/schemas/AppDatabase/57.json deleted file mode 100644 index 9c61e183..00000000 --- a/entry/schemas/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/entry/schemas/AppDatabase/58.json b/entry/schemas/AppDatabase/58.json deleted file mode 100644 index e4e6bdcf..00000000 --- a/entry/schemas/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/entry/schemas/AppDatabase/59.json b/entry/schemas/AppDatabase/59.json deleted file mode 100644 index 189a372b..00000000 --- a/entry/schemas/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/entry/schemas/AppDatabase/6.json b/entry/schemas/AppDatabase/6.json deleted file mode 100644 index 2e61f610..00000000 --- a/entry/schemas/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/entry/schemas/AppDatabase/60.json b/entry/schemas/AppDatabase/60.json deleted file mode 100644 index 0c0cab95..00000000 --- a/entry/schemas/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/entry/schemas/AppDatabase/61.json b/entry/schemas/AppDatabase/61.json deleted file mode 100644 index cbf65605..00000000 --- a/entry/schemas/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/entry/schemas/AppDatabase/62.json b/entry/schemas/AppDatabase/62.json deleted file mode 100644 index 4982bca8..00000000 --- a/entry/schemas/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/entry/schemas/AppDatabase/63.json b/entry/schemas/AppDatabase/63.json deleted file mode 100644 index af2d68a4..00000000 --- a/entry/schemas/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/entry/schemas/AppDatabase/64.json b/entry/schemas/AppDatabase/64.json deleted file mode 100644 index c2c72975..00000000 --- a/entry/schemas/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/entry/schemas/AppDatabase/65.json b/entry/schemas/AppDatabase/65.json deleted file mode 100644 index 6a2126ad..00000000 --- a/entry/schemas/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/entry/schemas/AppDatabase/66.json b/entry/schemas/AppDatabase/66.json deleted file mode 100644 index ea7d6e9d..00000000 --- a/entry/schemas/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/entry/schemas/AppDatabase/67.json b/entry/schemas/AppDatabase/67.json deleted file mode 100644 index 5da3ea90..00000000 --- a/entry/schemas/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/entry/schemas/AppDatabase/68.json b/entry/schemas/AppDatabase/68.json deleted file mode 100644 index b3c1d9a8..00000000 --- a/entry/schemas/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/entry/schemas/AppDatabase/69.json b/entry/schemas/AppDatabase/69.json deleted file mode 100644 index 2e0deef6..00000000 --- a/entry/schemas/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/entry/schemas/AppDatabase/7.json b/entry/schemas/AppDatabase/7.json deleted file mode 100644 index 3a1fb416..00000000 --- a/entry/schemas/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/entry/schemas/AppDatabase/70.json b/entry/schemas/AppDatabase/70.json deleted file mode 100644 index 515bc2a2..00000000 --- a/entry/schemas/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/entry/schemas/AppDatabase/71.json b/entry/schemas/AppDatabase/71.json deleted file mode 100644 index 48c7d413..00000000 --- a/entry/schemas/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/entry/schemas/AppDatabase/8.json b/entry/schemas/AppDatabase/8.json deleted file mode 100644 index dcd9838d..00000000 --- a/entry/schemas/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/entry/schemas/AppDatabase/9.json b/entry/schemas/AppDatabase/9.json deleted file mode 100644 index a298e14a..00000000 --- a/entry/schemas/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 diff --git a/entry/schemas/data/AppDatabase.kt b/entry/schemas/data/AppDatabase.kt deleted file mode 100644 index e8f8348c..00000000 --- a/entry/schemas/data/AppDatabase.kt +++ /dev/null @@ -1,179 +0,0 @@ -package io.legado.app.data - -import android.content.ContentValues -import android.database.sqlite.SQLiteDatabase -import androidx.room.AutoMigration -import androidx.room.Database -import androidx.room.Room -import androidx.room.RoomDatabase -import androidx.sqlite.db.SupportSQLiteDatabase -import io.legado.app.data.dao.* -import io.legado.app.data.entities.* -import io.legado.app.help.DefaultData -import org.intellij.lang.annotations.Language -import splitties.init.appCtx -import java.util.* - -val appDb by lazy { - Room.databaseBuilder(appCtx, AppDatabase::class.java, AppDatabase.DATABASE_NAME) - .fallbackToDestructiveMigrationFrom(1, 2, 3, 4, 5, 6, 7, 8, 9) - .addMigrations(*DatabaseMigrations.migrations) - .allowMainThreadQueries() - .addCallback(AppDatabase.dbCallback) - .build() -} - -@Database( - version = 71, - exportSchema = true, - entities = [Book::class, BookGroup::class, BookSource::class, BookChapter::class, - ReplaceRule::class, SearchBook::class, SearchKeyword::class, Cookie::class, - RssSource::class, Bookmark::class, RssArticle::class, RssReadRecord::class, - RssStar::class, TxtTocRule::class, ReadRecord::class, HttpTTS::class, Cache::class, - RuleSub::class, DictRule::class, KeyboardAssist::class, Server::class], - autoMigrations = [ - AutoMigration(from = 43, to = 44), - AutoMigration(from = 44, to = 45), - AutoMigration(from = 45, to = 46), - AutoMigration(from = 46, to = 47), - AutoMigration(from = 47, to = 48), - AutoMigration(from = 48, to = 49), - AutoMigration(from = 49, to = 50), - AutoMigration(from = 50, to = 51), - AutoMigration(from = 51, to = 52), - AutoMigration(from = 52, to = 53), - AutoMigration(from = 53, to = 54), - AutoMigration(from = 54, to = 55, spec = DatabaseMigrations.Migration_54_55::class), - AutoMigration(from = 55, to = 56), - AutoMigration(from = 56, to = 57), - AutoMigration(from = 57, to = 58), - AutoMigration(from = 58, to = 59), - AutoMigration(from = 59, to = 60), - AutoMigration(from = 60, to = 61), - AutoMigration(from = 61, to = 62), - AutoMigration(from = 62, to = 63), - AutoMigration(from = 63, to = 64), - AutoMigration(from = 64, to = 65, spec = DatabaseMigrations.Migration_64_65::class), - AutoMigration(from = 65, to = 66), - AutoMigration(from = 66, to = 67), - AutoMigration(from = 67, to = 68), - AutoMigration(from = 68, to = 69), - AutoMigration(from = 69, to = 70), - AutoMigration(from = 70, to = 71), - ] -) -abstract class AppDatabase : RoomDatabase() { - - abstract val bookDao: BookDao - abstract val bookGroupDao: BookGroupDao - abstract val bookSourceDao: BookSourceDao - abstract val bookChapterDao: BookChapterDao - abstract val replaceRuleDao: ReplaceRuleDao - abstract val searchBookDao: SearchBookDao - abstract val searchKeywordDao: SearchKeywordDao - abstract val rssSourceDao: RssSourceDao - abstract val bookmarkDao: BookmarkDao - abstract val rssArticleDao: RssArticleDao - abstract val rssStarDao: RssStarDao - abstract val cookieDao: CookieDao - abstract val txtTocRuleDao: TxtTocRuleDao - abstract val readRecordDao: ReadRecordDao - abstract val httpTTSDao: HttpTTSDao - abstract val cacheDao: CacheDao - abstract val ruleSubDao: RuleSubDao - abstract val dictRuleDao: DictRuleDao - abstract val keyboardAssistsDao: KeyboardAssistsDao - abstract val serverDao: ServerDao - - companion object { - - const val DATABASE_NAME = "legado.db" - - val dbCallback = object : Callback() { - - override fun onCreate(db: SupportSQLiteDatabase) { - db.setLocale(Locale.CHINESE) - } - - override fun onOpen(db: SupportSQLiteDatabase) { - @Language("sql") - val insertBookGroupAllSql = """ - insert into book_groups(groupId, groupName, 'order', show) - select ${BookGroup.IdAll}, '全部', -10, 1 - where not exists (select * from book_groups where groupId = ${BookGroup.IdAll}) - """.trimIndent() - db.execSQL(insertBookGroupAllSql) - @Language("sql") - val insertBookGroupLocalSql = """ - insert into book_groups(groupId, groupName, 'order', enableRefresh, show) - select ${BookGroup.IdLocal}, '本地', -9, 0, 1 - where not exists (select * from book_groups where groupId = ${BookGroup.IdLocal}) - """.trimIndent() - db.execSQL(insertBookGroupLocalSql) - @Language("sql") - val insertBookGroupMusicSql = """ - insert into book_groups(groupId, groupName, 'order', show) - select ${BookGroup.IdAudio}, '音频', -8, 1 - where not exists (select * from book_groups where groupId = ${BookGroup.IdAudio}) - """.trimIndent() - db.execSQL(insertBookGroupMusicSql) - @Language("sql") - val insertBookGroupNetNoneGroupSql = """ - insert into book_groups(groupId, groupName, 'order', show) - select ${BookGroup.IdNetNone}, '网络未分组', -7, 1 - where not exists (select * from book_groups where groupId = ${BookGroup.IdNetNone}) - """.trimIndent() - db.execSQL(insertBookGroupNetNoneGroupSql) - @Language("sql") - val insertBookGroupLocalNoneGroupSql = """ - insert into book_groups(groupId, groupName, 'order', show) - select ${BookGroup.IdLocalNone}, '本地未分组', -6, 0 - where not exists (select * from book_groups where groupId = ${BookGroup.IdLocalNone}) - """.trimIndent() - db.execSQL(insertBookGroupLocalNoneGroupSql) - @Language("sql") - val insertBookGroupErrorSql = """ - insert into book_groups(groupId, groupName, 'order', show) - select ${BookGroup.IdError}, '更新失败', -1, 1 - where not exists (select * from book_groups where groupId = ${BookGroup.IdError}) - """.trimIndent() - db.execSQL(insertBookGroupErrorSql) - @Language("sql") - val upBookSourceLoginUiSql = - "update book_sources set loginUi = null where loginUi = 'null'" - db.execSQL(upBookSourceLoginUiSql) - @Language("sql") - val upRssSourceLoginUiSql = - "update rssSources set loginUi = null where loginUi = 'null'" - db.execSQL(upRssSourceLoginUiSql) - @Language("sql") - val upHttpTtsLoginUiSql = - "update httpTTS set loginUi = null where loginUi = 'null'" - db.execSQL(upHttpTtsLoginUiSql) - @Language("sql") - val upHttpTtsConcurrentRateSql = - "update httpTTS set concurrentRate = '0' where concurrentRate is null" - db.execSQL(upHttpTtsConcurrentRateSql) - db.query("select * from keyboardAssists order by serialNo").use { - if (it.count == 0) { - DefaultData.keyboardAssists.forEach { keyboardAssist -> - val contentValues = ContentValues().apply { - put("type", keyboardAssist.type) - put("key", keyboardAssist.key) - put("value", keyboardAssist.value) - put("serialNo", keyboardAssist.serialNo) - } - db.insert( - "keyboardAssists", - SQLiteDatabase.CONFLICT_REPLACE, - contentValues - ) - } - } - } - } - } - - } - -} \ No newline at end of file diff --git a/entry/schemas/data/DatabaseMigrations.kt b/entry/schemas/data/DatabaseMigrations.kt deleted file mode 100644 index 3dc41d31..00000000 --- a/entry/schemas/data/DatabaseMigrations.kt +++ /dev/null @@ -1,374 +0,0 @@ -package io.legado.app.data - -import androidx.room.DeleteColumn -import androidx.room.migration.AutoMigrationSpec -import androidx.room.migration.Migration -import androidx.sqlite.db.SupportSQLiteDatabase -import io.legado.app.constant.AppConst -import io.legado.app.constant.BookSourceType -import io.legado.app.constant.BookType - -object DatabaseMigrations { - - val migrations: Array by lazy { - arrayOf( - migration_10_11, migration_11_12, migration_12_13, migration_13_14, - migration_14_15, migration_15_17, migration_17_18, migration_18_19, - migration_19_20, migration_20_21, migration_21_22, migration_22_23, - migration_23_24, migration_24_25, migration_25_26, migration_26_27, - migration_27_28, migration_28_29, migration_29_30, migration_30_31, - migration_31_32, migration_32_33, migration_33_34, migration_34_35, - migration_35_36, migration_36_37, migration_37_38, migration_38_39, - migration_39_40, migration_40_41, migration_41_42, migration_42_43, - ) - } - - private val migration_10_11 = object : Migration(10, 11) { - override fun migrate(database: SupportSQLiteDatabase) { - database.execSQL("DROP TABLE txtTocRules") - database.execSQL( - """CREATE TABLE txtTocRules(id INTEGER NOT NULL, - name TEXT NOT NULL, rule TEXT NOT NULL, serialNumber INTEGER NOT NULL, - enable INTEGER NOT NULL, PRIMARY KEY (id))""" - ) - } - } - - private val migration_11_12 = object : Migration(11, 12) { - override fun migrate(database: SupportSQLiteDatabase) { - database.execSQL("ALTER TABLE rssSources ADD style TEXT ") - } - } - - private val migration_12_13 = object : Migration(12, 13) { - override fun migrate(database: SupportSQLiteDatabase) { - database.execSQL("ALTER TABLE rssSources ADD articleStyle INTEGER NOT NULL DEFAULT 0 ") - } - } - - private val migration_13_14 = object : Migration(13, 14) { - override fun migrate(database: SupportSQLiteDatabase) { - database.execSQL( - """CREATE TABLE IF NOT EXISTS `books_new` (`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`))""" - ) - database.execSQL("INSERT INTO books_new select * from books ") - database.execSQL("DROP TABLE books") - database.execSQL("ALTER TABLE books_new RENAME TO books") - database.execSQL("CREATE UNIQUE INDEX IF NOT EXISTS `index_books_name_author` ON `books` (`name`, `author`) ") - } - } - - private val migration_14_15 = object : Migration(14, 15) { - override fun migrate(database: SupportSQLiteDatabase) { - database.execSQL("ALTER TABLE bookmarks ADD bookAuthor TEXT NOT NULL DEFAULT ''") - } - } - - private val migration_15_17 = object : Migration(15, 17) { - override fun migrate(database: SupportSQLiteDatabase) { - database.execSQL("CREATE TABLE IF NOT EXISTS `readRecord` (`bookName` TEXT NOT NULL, `readTime` INTEGER NOT NULL, PRIMARY KEY(`bookName`))") - } - } - - private val migration_17_18 = object : Migration(17, 18) { - override fun migrate(database: SupportSQLiteDatabase) { - database.execSQL("CREATE TABLE IF NOT EXISTS `httpTTS` (`id` INTEGER NOT NULL, `name` TEXT NOT NULL, `url` TEXT NOT NULL, PRIMARY KEY(`id`))") - } - } - - private val migration_18_19 = object : Migration(18, 19) { - override fun migrate(database: SupportSQLiteDatabase) { - database.execSQL( - """CREATE TABLE IF NOT EXISTS `readRecordNew` (`androidId` TEXT NOT NULL, `bookName` TEXT NOT NULL, `readTime` INTEGER NOT NULL, - PRIMARY KEY(`androidId`, `bookName`))""" - ) - database.execSQL("INSERT INTO readRecordNew(androidId, bookName, readTime) select '${AppConst.androidId}' as androidId, bookName, readTime from readRecord") - database.execSQL("DROP TABLE readRecord") - database.execSQL("ALTER TABLE readRecordNew RENAME TO readRecord") - } - } - private val migration_19_20 = object : Migration(19, 20) { - override fun migrate(database: SupportSQLiteDatabase) { - database.execSQL("ALTER TABLE book_sources ADD bookSourceComment TEXT") - } - } - - private val migration_20_21 = object : Migration(20, 21) { - override fun migrate(database: SupportSQLiteDatabase) { - database.execSQL("ALTER TABLE book_groups ADD show INTEGER NOT NULL DEFAULT 1") - } - } - - private val migration_21_22 = object : Migration(21, 22) { - override fun migrate(database: SupportSQLiteDatabase) { - database.execSQL( - """CREATE TABLE IF NOT EXISTS `books_new` (`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`))""" - ) - database.execSQL( - """INSERT INTO books_new select `bookUrl`, `tocUrl`, `origin`, `originName`, `name`, `author`, `kind`, `customTag`, `coverUrl`, - `customCoverUrl`, `intro`, `customIntro`, `charset`, `type`, `group`, `latestChapterTitle`, `latestChapterTime`, `lastCheckTime`, - `lastCheckCount`, `totalChapterNum`, `durChapterTitle`, `durChapterIndex`, `durChapterPos`, `durChapterTime`, `wordCount`, `canUpdate`, - `order`, `originOrder`, `variable`, null - from books""" - ) - database.execSQL("DROP TABLE books") - database.execSQL("ALTER TABLE books_new RENAME TO books") - database.execSQL("CREATE UNIQUE INDEX IF NOT EXISTS `index_books_name_author` ON `books` (`name`, `author`) ") - } - } - - private val migration_22_23 = object : Migration(22, 23) { - override fun migrate(database: SupportSQLiteDatabase) { - database.execSQL("ALTER TABLE chapters ADD baseUrl TEXT NOT NULL DEFAULT ''") - } - } - - private val migration_23_24 = object : Migration(23, 24) { - override fun migrate(database: SupportSQLiteDatabase) { - database.execSQL("CREATE TABLE IF NOT EXISTS `caches` (`key` TEXT NOT NULL, `value` TEXT, `deadline` INTEGER NOT NULL, PRIMARY KEY(`key`))") - database.execSQL("CREATE UNIQUE INDEX IF NOT EXISTS `index_caches_key` ON `caches` (`key`)") - } - } - - private val migration_24_25 = object : Migration(24, 25) { - override fun migrate(database: SupportSQLiteDatabase) { - database.execSQL( - """CREATE TABLE IF NOT EXISTS `sourceSubs` - (`id` INTEGER NOT NULL, `name` TEXT NOT NULL, `url` TEXT NOT NULL, `type` INTEGER NOT NULL, `customOrder` INTEGER NOT NULL, - PRIMARY KEY(`id`))""" - ) - } - } - - private val migration_25_26 = object : Migration(25, 26) { - override fun migrate(database: SupportSQLiteDatabase) { - database.execSQL( - """CREATE TABLE IF NOT EXISTS `ruleSubs` (`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`))""" - ) - database.execSQL(" insert into `ruleSubs` select *, 0, 0 from `sourceSubs` ") - database.execSQL("DROP TABLE `sourceSubs`") - } - } - - private val migration_26_27 = object : Migration(26, 27) { - override fun migrate(database: SupportSQLiteDatabase) { - database.execSQL(" ALTER TABLE rssSources ADD singleUrl INTEGER NOT NULL DEFAULT 0 ") - database.execSQL( - """CREATE TABLE IF NOT EXISTS `bookmarks1` (`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`))""" - ) - database.execSQL( - """insert into `bookmarks1` - select `time`, `bookUrl`, `bookName`, `bookAuthor`, `chapterIndex`, `pageIndex`, `chapterName`, '', `content` - from bookmarks""" - ) - database.execSQL(" DROP TABLE `bookmarks` ") - database.execSQL(" ALTER TABLE bookmarks1 RENAME TO bookmarks ") - database.execSQL("CREATE UNIQUE INDEX IF NOT EXISTS `index_bookmarks_time` ON `bookmarks` (`time`)") - } - } - - private val migration_27_28 = object : Migration(27, 28) { - override fun migrate(database: SupportSQLiteDatabase) { - database.execSQL("ALTER TABLE rssArticles ADD variable TEXT") - database.execSQL("ALTER TABLE rssStars ADD variable TEXT") - } - } - - private val migration_28_29 = object : Migration(28, 29) { - override fun migrate(database: SupportSQLiteDatabase) { - database.execSQL("ALTER TABLE rssSources ADD sourceComment TEXT") - } - } - - private val migration_29_30 = object : Migration(29, 30) { - override fun migrate(database: SupportSQLiteDatabase) { - database.execSQL("ALTER TABLE chapters ADD `startFragmentId` TEXT") - database.execSQL("ALTER TABLE chapters ADD `endFragmentId` TEXT") - database.execSQL( - """ - CREATE TABLE IF NOT EXISTS `epubChapters` - (`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 ) - """ - ) - database.execSQL("CREATE INDEX IF NOT EXISTS `index_epubChapters_bookUrl` ON `epubChapters` (`bookUrl`)") - database.execSQL("CREATE UNIQUE INDEX IF NOT EXISTS `index_epubChapters_bookUrl_href` ON `epubChapters` (`bookUrl`, `href`)") - } - } - - private val migration_30_31 = object : Migration(30, 31) { - override fun migrate(database: SupportSQLiteDatabase) { - database.execSQL("ALTER TABLE readRecord RENAME TO readRecord1") - database.execSQL( - """ - CREATE TABLE IF NOT EXISTS `readRecord` (`deviceId` TEXT NOT NULL, `bookName` TEXT NOT NULL, `readTime` INTEGER NOT NULL, PRIMARY KEY(`deviceId`, `bookName`)) - """ - ) - database.execSQL("insert into readRecord (deviceId, bookName, readTime) select androidId, bookName, readTime from readRecord1") - } - } - - private val migration_31_32 = object : Migration(31, 32) { - override fun migrate(database: SupportSQLiteDatabase) { - database.execSQL("DROP TABLE `epubChapters`") - } - } - - private val migration_32_33 = object : Migration(32, 33) { - override fun migrate(database: SupportSQLiteDatabase) { - database.execSQL("ALTER TABLE bookmarks RENAME TO bookmarks_old") - database.execSQL( - """ - CREATE TABLE IF NOT EXISTS `bookmarks` (`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`)) - """ - ) - database.execSQL( - """ - CREATE INDEX IF NOT EXISTS `index_bookmarks_bookName_bookAuthor` ON `bookmarks` (`bookName`, `bookAuthor`) - """ - ) - database.execSQL( - """ - insert into bookmarks (time, bookName, bookAuthor, chapterIndex, chapterPos, chapterName, bookText, content) - select time, ifNull(b.name, bookName) bookName, ifNull(b.author, bookAuthor) bookAuthor, - chapterIndex, chapterPos, chapterName, bookText, content from bookmarks_old o - left join books b on o.bookUrl = b.bookUrl - """ - ) - } - } - - private val migration_33_34 = object : Migration(33, 34) { - override fun migrate(database: SupportSQLiteDatabase) { - database.execSQL("ALTER TABLE `book_groups` ADD `cover` TEXT") - } - } - - private val migration_34_35 = object : Migration(34, 35) { - override fun migrate(database: SupportSQLiteDatabase) { - database.execSQL("ALTER TABLE `book_sources` ADD `concurrentRate` TEXT") - } - } - - private val migration_35_36 = object : Migration(35, 36) { - override fun migrate(database: SupportSQLiteDatabase) { - database.execSQL("ALTER TABLE `book_sources` ADD `loginUi` TEXT") - database.execSQL("ALTER TABLE `book_sources` ADD`loginCheckJs` TEXT") - } - } - - private val migration_36_37 = object : Migration(36, 37) { - override fun migrate(database: SupportSQLiteDatabase) { - database.execSQL("ALTER TABLE `rssSources` ADD `loginUrl` TEXT") - database.execSQL("ALTER TABLE `rssSources` ADD `loginUi` TEXT") - database.execSQL("ALTER TABLE `rssSources` ADD `loginCheckJs` TEXT") - } - } - - private val migration_37_38 = object : Migration(37, 38) { - override fun migrate(database: SupportSQLiteDatabase) { - database.execSQL("ALTER TABLE `book_sources` ADD `respondTime` INTEGER NOT NULL DEFAULT 180000") - } - } - - private val migration_38_39 = object : Migration(38, 39) { - override fun migrate(database: SupportSQLiteDatabase) { - database.execSQL("ALTER TABLE `rssSources` ADD `concurrentRate` TEXT") - } - } - - private val migration_39_40 = object : Migration(39, 40) { - override fun migrate(database: SupportSQLiteDatabase) { - database.execSQL("ALTER TABLE `chapters` ADD `isVip` INTEGER NOT NULL DEFAULT 0") - database.execSQL("ALTER TABLE `chapters` ADD `isPay` INTEGER NOT NULL DEFAULT 0") - } - } - - private val migration_40_41 = object : Migration(40, 41) { - override fun migrate(database: SupportSQLiteDatabase) { - database.execSQL("ALTER TABLE `httpTTS` ADD `loginUrl` TEXT") - database.execSQL("ALTER TABLE `httpTTS` ADD `loginUi` TEXT") - database.execSQL("ALTER TABLE `httpTTS` ADD `loginCheckJs` TEXT") - database.execSQL("ALTER TABLE `httpTTS` ADD `header` TEXT") - database.execSQL("ALTER TABLE `httpTTS` ADD `concurrentRate` TEXT") - } - } - - private val migration_41_42 = object : Migration(41, 42) { - override fun migrate(database: SupportSQLiteDatabase) { - database.execSQL("ALTER TABLE 'httpTTS' ADD `contentType` TEXT") - } - } - - private val migration_42_43 = object : Migration(42, 43) { - override fun migrate(database: SupportSQLiteDatabase) { - database.execSQL("ALTER TABLE `chapters` ADD `isVolume` INTEGER NOT NULL DEFAULT 0") - } - } - - - @Suppress("ClassName") - class Migration_54_55 : AutoMigrationSpec { - - override fun onPostMigrate(db: SupportSQLiteDatabase) { - db.execSQL( - """ - update books set type = ${BookType.audio} - where type = ${BookSourceType.audio} - """.trimIndent() - ) - db.execSQL( - """ - update books set type = ${BookType.image} - where type = ${BookSourceType.image} - """.trimIndent() - ) - db.execSQL( - """ - update books set type = ${BookType.webFile} - where type = ${BookSourceType.file} - """.trimIndent() - ) - db.execSQL( - """ - update books set type = ${BookType.text} - where type = ${BookSourceType.default} - """.trimIndent() - ) - db.execSQL( - """ - update books set type = type | ${BookType.local} - where origin like '${BookType.localTag}%' or origin like '${BookType.webDavTag}%' - """.trimIndent() - ) - } - - } - - - @Suppress("ClassName") - @DeleteColumn( - tableName = "book_sources", - columnName = "enabledReview" - ) - class Migration_64_65 : AutoMigrationSpec - -} \ No newline at end of file diff --git a/entry/schemas/data/README.md b/entry/schemas/data/README.md deleted file mode 100644 index 68dc6840..00000000 --- a/entry/schemas/data/README.md +++ /dev/null @@ -1,18 +0,0 @@ -# 存储数据用 - -* dao 数据操作 -* entities 数据模型 -* \Book 书籍信息 -* \BookChapter 目录信息 -* \BookGroup 书籍分组 -* \Bookmark 书签 -* \BookSource 书源 -* \Cookie http cookie -* \ReplaceRule 替换规则 -* \RssArticle rss条目 -* \RssReadRecord rss阅读记录 -* \RssSource rss源 -* \RssStar rss收藏 -* \SearchBook 搜索结果 -* \SearchKeyword 搜索关键字 -* \TxtTocRule txt文件目录规则 diff --git a/entry/schemas/data/dao/BookChapterDao.kt b/entry/schemas/data/dao/BookChapterDao.kt deleted file mode 100644 index 43ad9bd7..00000000 --- a/entry/schemas/data/dao/BookChapterDao.kt +++ /dev/null @@ -1,40 +0,0 @@ -package io.legado.app.data.dao - -import androidx.room.Dao -import androidx.room.Insert -import androidx.room.OnConflictStrategy -import androidx.room.Query -import androidx.room.Update -import io.legado.app.data.entities.BookChapter - -@Dao -interface BookChapterDao { - - @Query("SELECT * FROM chapters where bookUrl = :bookUrl and title like '%'||:key||'%' order by `index`") - fun search(bookUrl: String, key: String): List - - @Query("select * from chapters where bookUrl = :bookUrl order by `index`") - fun getChapterList(bookUrl: String): List - - @Query("select * from chapters where bookUrl = :bookUrl and `index` >= :start and `index` <= :end order by `index`") - fun getChapterList(bookUrl: String, start: Int, end: Int): List - - @Query("select * from chapters where bookUrl = :bookUrl and `index` = :index") - fun getChapter(bookUrl: String, index: Int): BookChapter? - - @Query("select * from chapters where bookUrl = :bookUrl and `title` = :title") - fun getChapter(bookUrl: String, title: String): BookChapter? - - @Query("select count(url) from chapters where bookUrl = :bookUrl") - fun getChapterCount(bookUrl: String): Int - - @Insert(onConflict = OnConflictStrategy.REPLACE) - fun insert(vararg bookChapter: BookChapter) - - @Update - fun update(vararg bookChapter: BookChapter) - - @Query("delete from chapters where bookUrl = :bookUrl") - fun delByBook(bookUrl: String) - -} \ No newline at end of file diff --git a/entry/schemas/data/dao/BookDao.kt b/entry/schemas/data/dao/BookDao.kt deleted file mode 100644 index ddb4ebf7..00000000 --- a/entry/schemas/data/dao/BookDao.kt +++ /dev/null @@ -1,151 +0,0 @@ -package io.legado.app.data.dao - -import androidx.room.Dao -import androidx.room.Delete -import androidx.room.Insert -import androidx.room.OnConflictStrategy -import androidx.room.Query -import androidx.room.Update -import io.legado.app.constant.BookType -import io.legado.app.data.entities.Book -import io.legado.app.data.entities.BookGroup -import io.legado.app.data.entities.BookSource -import kotlinx.coroutines.flow.Flow - -@Dao -interface BookDao { - - fun flowByGroup(groupId: Long): Flow> { - return when (groupId) { - BookGroup.IdRoot -> flowRoot() - BookGroup.IdAll -> flowAll() - BookGroup.IdLocal -> flowLocal() - BookGroup.IdAudio -> flowAudio() - BookGroup.IdNetNone -> flowNetNoGroup() - BookGroup.IdLocalNone -> flowLocalNoGroup() - BookGroup.IdError -> flowUpdateError() - else -> flowByUserGroup(groupId) - } - } - - @Query( - """ - select * from books where type & ${BookType.text} > 0 - and type & ${BookType.local} = 0 - and ((SELECT sum(groupId) FROM book_groups where groupId > 0) & `group`) = 0 - and (select show from book_groups where groupId = ${BookGroup.IdNetNone}) != 1 - """ - ) - fun flowRoot(): Flow> - - @Query("SELECT * FROM books order by durChapterTime desc") - fun flowAll(): Flow> - - @Query("SELECT * FROM books WHERE type & ${BookType.audio} > 0") - fun flowAudio(): Flow> - - @Query("SELECT * FROM books WHERE type & ${BookType.local} > 0") - fun flowLocal(): Flow> - - @Query( - """ - select * from books where type & ${BookType.audio} = 0 and type & ${BookType.local} = 0 - and ((SELECT sum(groupId) FROM book_groups where groupId > 0) & `group`) = 0 - """ - ) - fun flowNetNoGroup(): Flow> - - @Query( - """ - select * from books where type & ${BookType.local} > 0 - and ((SELECT sum(groupId) FROM book_groups where groupId > 0) & `group`) = 0 - """ - ) - fun flowLocalNoGroup(): Flow> - - @Query("SELECT * FROM books WHERE (`group` & :group) > 0") - fun flowByUserGroup(group: Long): Flow> - - @Query("SELECT * FROM books WHERE name like '%'||:key||'%' or author like '%'||:key||'%'") - fun flowSearch(key: String): Flow> - - @Query("SELECT * FROM books where type & ${BookType.updateError} > 0 order by durChapterTime desc") - fun flowUpdateError(): Flow> - - @Query("SELECT * FROM books WHERE (`group` & :group) > 0") - fun getBooksByGroup(group: Long): List - - @Query("SELECT * FROM books WHERE `name` in (:names)") - fun findByName(vararg names: String): List - - @Query("select * from books where originName = :fileName") - fun getBookByFileName(fileName: String): Book? - - @Query("SELECT * FROM books WHERE bookUrl = :bookUrl") - fun getBook(bookUrl: String): Book? - - @Query("SELECT * FROM books WHERE name = :name and author = :author") - fun getBook(name: String, author: String): Book? - - @Query("""select distinct bs.* from books, book_sources bs - where origin == bookSourceUrl and origin not like '${BookType.localTag}%' - and origin not like '${BookType.webDavTag}%'""") - fun getAllUseBookSource(): List - - @Query("SELECT * FROM books WHERE name = :name and origin = :origin") - fun getBookByOrigin(name: String, origin: String): Book? - - @get:Query("select count(bookUrl) from books where (SELECT sum(groupId) FROM book_groups)") - val noGroupSize: Int - - @get:Query("SELECT * FROM books where type & ${BookType.local} = 0") - val webBooks: List - - @get:Query("SELECT * FROM books where type & ${BookType.local} = 0 and canUpdate = 1") - val hasUpdateBooks: List - - @get:Query("SELECT * FROM books") - val all: List - - @Query("SELECT * FROM books where type & :type > 0 and type & ${BookType.local} = 0") - fun getByTypeOnLine(type: Int): List - - @get:Query("SELECT * FROM books where type & ${BookType.text} > 0 ORDER BY durChapterTime DESC limit 1") - val lastReadBook: Book? - - @get:Query("SELECT bookUrl FROM books") - val allBookUrls: List - - @get:Query("SELECT COUNT(*) FROM books") - val allBookCount: Int - - @get:Query("select min(`order`) from books") - val minOrder: Int - - @get:Query("select max(`order`) from books") - val maxOrder: Int - - @Query("select 1 from books where bookUrl = :bookUrl") - fun has(bookUrl: String): Boolean? - - @Query("select 1 from books where originName = :fileName or origin like '%' || :fileName") - fun hasFile(fileName: String): Boolean? - - @Insert(onConflict = OnConflictStrategy.REPLACE) - fun insert(vararg book: Book) - - @Update - fun update(vararg book: Book) - - @Delete - fun delete(vararg book: Book) - - @Query("update books set durChapterPos = :pos where bookUrl = :bookUrl") - fun upProgress(bookUrl: String, pos: Int) - - @Query("update books set `group` = :newGroupId where `group` = :oldGroupId") - fun upGroup(oldGroupId: Long, newGroupId: Long) - - @Query("update books set `group` = `group` - :group where `group` & :group > 0") - fun removeGroup(group: Long) -} \ No newline at end of file diff --git a/entry/schemas/data/dao/BookGroupDao.kt b/entry/schemas/data/dao/BookGroupDao.kt deleted file mode 100644 index 0c3fd7fc..00000000 --- a/entry/schemas/data/dao/BookGroupDao.kt +++ /dev/null @@ -1,99 +0,0 @@ -package io.legado.app.data.dao - -import androidx.lifecycle.LiveData -import androidx.room.Dao -import androidx.room.Delete -import androidx.room.Insert -import androidx.room.OnConflictStrategy -import androidx.room.Query -import androidx.room.Update -import io.legado.app.constant.BookType -import io.legado.app.data.entities.BookGroup -import kotlinx.coroutines.flow.Flow - -@Dao -interface BookGroupDao { - - @Query("select * from book_groups where groupId = :id") - fun getByID(id: Long): BookGroup? - - @Query("select * from book_groups where groupName = :groupName") - fun getByName(groupName: String): BookGroup? - - @Query("SELECT * FROM book_groups ORDER BY `order`") - fun flowAll(): Flow> - - @get:Query( - """ - with const as (SELECT sum(groupId) sumGroupId FROM book_groups where groupId > 0) - SELECT book_groups.* FROM book_groups, const where (groupId >= 0 and show > 0) - or (groupId = -1 and show > 0) - or (groupId = -2 and show > 0 and (select count(*) from books where type & ${BookType.local} > 0) > 0) - or (groupId = -3 and show > 0 and (select count(*) from books where type & ${BookType.audio} > 0) > 0) - or (groupId = -11 and show > 0 and (select count(*) from books where type & ${BookType.updateError} > 0) > 0) - or (groupId = -4 and show > 0 - and ( - select count(*) from books - where type & ${BookType.audio} = 0 - and type & ${BookType.local} = 0 - and const.sumGroupId & `group` = 0 - ) > 0 - ) - or (groupId = -5 and show > 0 - and ( - select count(*) from books - where type & ${BookType.audio} = 0 - and type & ${BookType.local} > 0 - and const.sumGroupId & `group` = 0 - ) > 0 - ) - ORDER BY `order`""" - ) - val show: LiveData> - - @Query("SELECT * FROM book_groups where groupId >= 0 ORDER BY `order`") - fun flowSelect(): Flow> - - @get:Query("SELECT sum(groupId) FROM book_groups where groupId >= 0") - val idsSum: Long - - @get:Query("SELECT MAX(`order`) FROM book_groups where groupId >= 0") - val maxOrder: Int - - @get:Query("SELECT * FROM book_groups ORDER BY `order`") - val all: List - - @get:Query("select count(*) < 64 from book_groups where groupId >= 0 or groupId == ${Long.MIN_VALUE}") - val canAddGroup: Boolean - - @Query("update book_groups set show = 1 where groupId = :groupId") - fun enableGroup(groupId: Long) - - @Query("select groupName from book_groups where groupId > 0 and (groupId & :id) > 0") - fun getGroupNames(id: Long): List - - @Insert(onConflict = OnConflictStrategy.REPLACE) - fun insert(vararg bookGroup: BookGroup) - - @Update - fun update(vararg bookGroup: BookGroup) - - @Delete - fun delete(vararg bookGroup: BookGroup) - - fun isInRules(id: Long): Boolean { - if (id < 0) { - return true - } - return id and (id - 1) == 0L - } - - fun getUnusedId(): Long { - var id = 1L - val idsSum = idsSum - while (id and idsSum != 0L) { - id = id.shl(1) - } - return id - } -} \ No newline at end of file diff --git a/entry/schemas/data/dao/BookSourceDao.kt b/entry/schemas/data/dao/BookSourceDao.kt deleted file mode 100644 index 685a12cd..00000000 --- a/entry/schemas/data/dao/BookSourceDao.kt +++ /dev/null @@ -1,381 +0,0 @@ -package io.legado.app.data.dao - -import androidx.room.Dao -import androidx.room.Delete -import androidx.room.Insert -import androidx.room.OnConflictStrategy -import androidx.room.Query -import androidx.room.Transaction -import androidx.room.Update -import io.legado.app.constant.AppPattern -import io.legado.app.data.entities.BookSource -import io.legado.app.data.entities.BookSourcePart -import io.legado.app.utils.cnCompare -import io.legado.app.utils.splitNotBlank -import kotlinx.coroutines.Dispatchers.IO -import kotlinx.coroutines.flow.Flow -import kotlinx.coroutines.flow.flowOn -import kotlinx.coroutines.flow.map - -@Dao -interface BookSourceDao { - - @Query( - """select bookSourceUrl, bookSourceName, bookSourceGroup, customOrder, enabled, enabledExplore, - trim(loginUrl) <> '' hasLoginUrl, lastUpdateTime, respondTime, weight, trim(exploreUrl) <> '' hasExploreUrl - from book_sources order by customOrder asc""" - ) - fun flowAll(): Flow> - - @Query( - """select bookSourceUrl, bookSourceName, bookSourceGroup, customOrder, enabled, enabledExplore, - trim(loginUrl) <> '' hasLoginUrl, lastUpdateTime, respondTime, weight, trim(exploreUrl) <> '' hasExploreUrl - from book_sources - where bookSourceName like '%' || :searchKey || '%' - or bookSourceGroup like '%' || :searchKey || '%' - or bookSourceUrl like '%' || :searchKey || '%' - or bookSourceComment like '%' || :searchKey || '%' - order by customOrder asc""" - ) - fun flowSearch(searchKey: String): Flow> - - @Query( - """select * from book_sources - where bookSourceName like '%' || :searchKey || '%' - or bookSourceGroup like '%' || :searchKey || '%' - or bookSourceUrl like '%' || :searchKey || '%' - or bookSourceComment like '%' || :searchKey || '%' - order by customOrder asc""" - ) - fun search(searchKey: String): List - - @Query( - """select bookSourceUrl, bookSourceName, bookSourceGroup, customOrder, enabled, enabledExplore, - trim(loginUrl) <> '' hasLoginUrl, lastUpdateTime, respondTime, weight, trim(exploreUrl) <> '' hasExploreUrl - from book_sources - where enabled = 1 and - (bookSourceName like '%' || :searchKey || '%' - or bookSourceGroup like '%' || :searchKey || '%' - or bookSourceUrl like '%' || :searchKey || '%' - or bookSourceComment like '%' || :searchKey || '%') - order by customOrder asc""" - ) - fun flowSearchEnabled(searchKey: String): Flow> - - @Query( - """select bookSourceUrl, bookSourceName, bookSourceGroup, customOrder, enabled, enabledExplore, - trim(loginUrl) <> '' hasLoginUrl, lastUpdateTime, respondTime, weight, trim(exploreUrl) <> '' hasExploreUrl - from book_sources - where bookSourceGroup = :searchKey - or bookSourceGroup like :searchKey || ',%' - or bookSourceGroup like '%,' || :searchKey - or bookSourceGroup like '%,' || :searchKey || ',%' - order by customOrder asc""" - ) - fun flowGroupSearch(searchKey: String): Flow> - - @Query( - """select * from book_sources - where bookSourceGroup = :searchKey - or bookSourceGroup like :searchKey || ',%' - or bookSourceGroup like '%,' || :searchKey - or bookSourceGroup like '%,' || :searchKey || ',%' - order by customOrder asc""" - ) - fun groupSearch(searchKey: String): List - - @Query( - """select bookSourceUrl, bookSourceName, bookSourceGroup, customOrder, enabled, enabledExplore, - trim(loginUrl) <> '' hasLoginUrl, lastUpdateTime, respondTime, weight, trim(exploreUrl) <> '' hasExploreUrl - from book_sources where enabled = 1 order by customOrder asc""" - ) - fun flowEnabled(): Flow> - - @Query( - """select bookSourceUrl, bookSourceName, bookSourceGroup, customOrder, enabled, enabledExplore, - trim(loginUrl) <> '' hasLoginUrl, lastUpdateTime, respondTime, weight, trim(exploreUrl) <> '' hasExploreUrl - from book_sources where enabled = 0 order by customOrder asc""" - ) - fun flowDisabled(): Flow> - - @Query( - """select bookSourceUrl, bookSourceName, bookSourceGroup, customOrder, enabled, enabledExplore, - trim(loginUrl) <> '' hasLoginUrl, lastUpdateTime, respondTime, weight, trim(exploreUrl) <> '' hasExploreUrl - from book_sources where enabledExplore = 1 and trim(exploreUrl) <> '' order by customOrder asc""" - ) - fun flowExplore(): Flow> - - @Query( - """select bookSourceUrl, bookSourceName, bookSourceGroup, customOrder, enabled, enabledExplore, - trim(loginUrl) <> '' hasLoginUrl, lastUpdateTime, respondTime, weight, trim(exploreUrl) <> '' hasExploreUrl - from book_sources where loginUrl is not null and loginUrl != '' - order by customOrder asc""" - ) - fun flowLogin(): Flow> - - @Query( - """select bookSourceUrl, bookSourceName, bookSourceGroup, customOrder, enabled, enabledExplore, - trim(loginUrl) <> '' hasLoginUrl, lastUpdateTime, respondTime, weight, trim(exploreUrl) <> '' hasExploreUrl - from book_sources where bookSourceGroup is null or bookSourceGroup = '' or bookSourceGroup like '%未分组%' - order by customOrder asc""" - ) - fun flowNoGroup(): Flow> - - @Query( - """select bookSourceUrl, bookSourceName, bookSourceGroup, customOrder, enabled, enabledExplore, - trim(loginUrl) <> '' hasLoginUrl, lastUpdateTime, respondTime, weight, trim(exploreUrl) <> '' hasExploreUrl - from book_sources where enabledExplore = 1 order by customOrder asc""" - ) - fun flowEnabledExplore(): Flow> - - @Query( - """select bookSourceUrl, bookSourceName, bookSourceGroup, customOrder, enabled, enabledExplore, - trim(loginUrl) <> '' hasLoginUrl, lastUpdateTime, respondTime, weight, trim(exploreUrl) <> '' hasExploreUrl - from book_sources where enabledExplore = 0 order by customOrder asc""" - ) - fun flowDisabledExplore(): Flow> - - @Query( - """select bookSourceUrl, bookSourceName, bookSourceGroup, customOrder, enabled, enabledExplore, - trim(loginUrl) <> '' hasLoginUrl, lastUpdateTime, respondTime, weight, trim(exploreUrl) <> '' hasExploreUrl - from book_sources - where enabledExplore = 1 - and trim(exploreUrl) <> '' - and (bookSourceGroup like '%' || :key || '%' - or bookSourceName like '%' || :key || '%') - order by customOrder asc""" - ) - fun flowExplore(key: String): Flow> - - @Query( - """select bookSourceUrl, bookSourceName, bookSourceGroup, customOrder, enabled, enabledExplore, - trim(loginUrl) <> '' hasLoginUrl, lastUpdateTime, respondTime, weight, trim(exploreUrl) <> '' hasExploreUrl - from book_sources - where enabledExplore = 1 - and trim(exploreUrl) <> '' - and (bookSourceGroup = :key - or bookSourceGroup like :key || ',%' - or bookSourceGroup like '%,' || :key - or bookSourceGroup like '%,' || :key || ',%') - order by customOrder asc""" - ) - fun flowGroupExplore(key: String): Flow> - - @Query("select distinct bookSourceGroup from book_sources where trim(bookSourceGroup) <> ''") - fun flowGroupsUnProcessed(): Flow> - - @Query("select distinct bookSourceGroup from book_sources where enabled = 1 and trim(bookSourceGroup) <> ''") - fun flowEnabledGroupsUnProcessed(): Flow> - - @Query( - """select distinct bookSourceGroup from book_sources - where enabledExplore = 1 - and trim(exploreUrl) <> '' - and trim(bookSourceGroup) <> '' - order by customOrder""" - ) - fun flowExploreGroupsUnProcessed(): Flow> - - @Query("select * from book_sources where bookSourceGroup like '%' || :group || '%' order by customOrder asc") - fun getByGroup(group: String): List - - @Query( - """select * from book_sources - where enabled = 1 - and (bookSourceGroup = :group - or bookSourceGroup like :group || ',%' - or bookSourceGroup like '%,' || :group - or bookSourceGroup like '%,' || :group || ',%') - order by customOrder asc""" - ) - fun getEnabledByGroup(group: String): List - - @Query( - """select bookSourceUrl, bookSourceName, bookSourceGroup, customOrder, enabled, enabledExplore, - trim(loginUrl) <> '' hasLoginUrl, lastUpdateTime, respondTime, weight, trim(exploreUrl) <> '' hasExploreUrl - from book_sources - where enabled = 1 - and (bookSourceGroup = :group - or bookSourceGroup like :group || ',%' - or bookSourceGroup like '%,' || :group - or bookSourceGroup like '%,' || :group || ',%') - order by customOrder asc""" - ) - fun getEnabledPartByGroup(group: String): List - - @Query("select * from book_sources where bookUrlPattern != 'NONE' and bookSourceType = :type order by customOrder asc") - fun getEnabledByType(type: Int): List - - @Query("select * from book_sources where enabled = 1 and bookSourceUrl = :baseUrl") - fun getBookSourceAddBook(baseUrl: String): BookSource? - - @get:Query("select * from book_sources where enabled = 1 and trim(bookUrlPattern) <> '' and trim(bookUrlPattern) <> 'NONE' order by customOrder") - val hasBookUrlPattern: List - - @get:Query("select * from book_sources where bookSourceGroup is null or bookSourceGroup = ''") - val noGroup: List - - @get:Query("select * from book_sources order by customOrder asc") - val all: List - - @get:Query( - """select bookSourceUrl, bookSourceName, bookSourceGroup, customOrder, enabled, enabledExplore, - trim(loginUrl) <> '' hasLoginUrl, lastUpdateTime, respondTime, weight, trim(exploreUrl) <> '' hasExploreUrl - from book_sources order by customOrder asc""" - ) - val allPart: List - - @get:Query("select * from book_sources where enabled = 1 order by customOrder") - val allEnabled: List - - @get:Query( - """select bookSourceUrl, bookSourceName, bookSourceGroup, customOrder, enabled, enabledExplore, - trim(loginUrl) <> '' hasLoginUrl, lastUpdateTime, respondTime, weight, trim(exploreUrl) <> '' hasExploreUrl - from book_sources where enabled = 1 order by customOrder asc""" - ) - val allEnabledPart: List - - @get:Query("select * from book_sources where enabled = 0 order by customOrder") - val allDisabled: List - - @get:Query("select * from book_sources where bookSourceGroup is null or bookSourceGroup = '' or bookSourceGroup like '%未分组%'") - val allNoGroup: List - - @get:Query("select * from book_sources where enabledExplore = 1 order by customOrder") - val allEnabledExplore: List - - @get:Query("select * from book_sources where enabledExplore = 0 order by customOrder") - val allDisabledExplore: List - - @get:Query("select * from book_sources where loginUrl is not null and loginUrl != ''") - val allLogin: List - - @get:Query( - """select bookSourceUrl, bookSourceName, bookSourceGroup, customOrder, enabled, enabledExplore, - trim(loginUrl) <> '' hasLoginUrl, lastUpdateTime, respondTime, weight, trim(exploreUrl) <> '' hasExploreUrl - from book_sources where enabled = 1 and bookSourceType = 0 order by customOrder""" - ) - val allTextEnabledPart: List - - @get:Query("select distinct bookSourceGroup from book_sources where trim(bookSourceGroup) <> ''") - val allGroupsUnProcessed: List - - @get:Query("select distinct bookSourceGroup from book_sources where enabled = 1 and trim(bookSourceGroup) <> ''") - val allEnabledGroupsUnProcessed: List - - @Query("select * from book_sources where bookSourceUrl = :key") - fun getBookSource(key: String): BookSource? - - @Query( - """select bookSourceUrl, bookSourceName, bookSourceGroup, customOrder, enabled, enabledExplore, - trim(loginUrl) <> '' hasLoginUrl, lastUpdateTime, respondTime, weight, trim(exploreUrl) <> '' hasExploreUrl - from book_sources where bookSourceUrl = :key""" - ) - fun getBookSourcePart(key: String): BookSourcePart? - - @Query("select count(*) from book_sources") - fun allCount(): Int - - @Insert(onConflict = OnConflictStrategy.REPLACE) - fun insert(vararg bookSource: BookSource) - - @Update - fun update(vararg bookSource: BookSource) - - @Delete - fun delete(vararg bookSource: BookSource) - - @Query("delete from book_sources where bookSourceUrl = :key") - fun delete(key: String) - - @Transaction - fun delete(bookSources: List) { - for (bs in bookSources) { - delete(bs.bookSourceUrl) - } - } - - @get:Query("select min(customOrder) from book_sources") - val minOrder: Int - - @get:Query("select max(customOrder) from book_sources") - val maxOrder: Int - - @Query("update book_sources set enabled = :enable where bookSourceUrl = :bookSourceUrl") - fun enable(bookSourceUrl: String, enable: Boolean) - - @Transaction - fun enable(enable: Boolean, bookSources: List) { - for (bs in bookSources) { - enable(bs.bookSourceUrl, enable) - } - } - - @Query("update book_sources set enabledExplore = :enable where bookSourceUrl = :bookSourceUrl") - fun enableExplore(bookSourceUrl: String, enable: Boolean) - - @Transaction - fun enableExplore(enable: Boolean, bookSources: List) { - for (bs in bookSources) { - enableExplore(bs.bookSourceUrl, enable) - } - } - - @Query("update book_sources set customOrder = :customOrder where bookSourceUrl = :bookSourceUrl") - fun upOrder(bookSourceUrl: String, customOrder: Int) - - @Transaction - fun upOrder(bookSources: List) { - for (bs in bookSources) { - upOrder(bs.bookSourceUrl, bs.customOrder) - } - } - - fun upOrder(bookSource: BookSourcePart) { - upOrder(bookSource.bookSourceUrl, bookSource.customOrder) - } - - @Query("update book_sources set bookSourceGroup = :bookSourceGroup where bookSourceUrl = :bookSourceUrl") - fun upGroup(bookSourceUrl: String, bookSourceGroup: String) - - @Transaction - fun upGroup(bookSources: List) { - for (bs in bookSources) { - bs.bookSourceGroup?.let { upGroup(bs.bookSourceUrl, it) } - } - } - - private fun dealGroups(list: List): List { - val groups = linkedSetOf() - list.forEach { - it.splitNotBlank(AppPattern.splitGroupRegex).forEach { group -> - groups.add(group) - } - } - return groups.sortedWith { o1, o2 -> - o1.cnCompare(o2) - } - } - - fun allGroups(): List = dealGroups(allGroupsUnProcessed) - - fun allEnabledGroups(): List = dealGroups(allEnabledGroupsUnProcessed) - - fun flowGroups(): Flow> { - return flowGroupsUnProcessed().map { list -> - dealGroups(list) - }.flowOn(IO) - } - - fun flowExploreGroups(): Flow> { - return flowExploreGroupsUnProcessed().map { list -> - dealGroups(list) - }.flowOn(IO) - } - - fun flowEnabledGroups(): Flow> { - return flowEnabledGroupsUnProcessed().map { list -> - dealGroups(list) - }.flowOn(IO) - } -} \ No newline at end of file diff --git a/entry/schemas/data/dao/BookmarkDao.kt b/entry/schemas/data/dao/BookmarkDao.kt deleted file mode 100644 index 7940139f..00000000 --- a/entry/schemas/data/dao/BookmarkDao.kt +++ /dev/null @@ -1,60 +0,0 @@ -package io.legado.app.data.dao - -import androidx.room.* -import io.legado.app.data.entities.Bookmark -import kotlinx.coroutines.flow.Flow - - -@Dao -interface BookmarkDao { - - @get:Query( - """ - select * from bookmarks order by bookName collate localized, bookAuthor collate localized, chapterIndex, chapterPos - """ - ) - val all: List - - @Query("select * from bookmarks order by bookName collate localized, bookAuthor collate localized, chapterIndex, chapterPos") - fun flowAll(): Flow> - - @Query( - """select * from bookmarks - where bookName = :bookName and bookAuthor = :bookAuthor - order by chapterIndex""" - ) - fun flowByBook(bookName: String, bookAuthor: String): Flow> - - @Query( - """SELECT * FROM bookmarks - where bookName = :bookName and bookAuthor = :bookAuthor - and chapterName like '%'||:key||'%' or content like '%'||:key||'%' - order by chapterIndex""" - ) - fun flowSearch(bookName: String, bookAuthor: String, key: String): Flow> - - @Query( - """select * from bookmarks - where bookName = :bookName and bookAuthor = :bookAuthor - order by chapterIndex""" - ) - fun getByBook(bookName: String, bookAuthor: String): List - - @Query( - """SELECT * FROM bookmarks - where bookName = :bookName and bookAuthor = :bookAuthor - and chapterName like '%'||:key||'%' or content like '%'||:key||'%' - order by chapterIndex""" - ) - fun search(bookName: String, bookAuthor: String, key: String): List - - @Insert(onConflict = OnConflictStrategy.REPLACE) - fun insert(vararg bookmark: Bookmark) - - @Update - fun update(bookmark: Bookmark) - - @Delete - fun delete(vararg bookmark: Bookmark) - -} \ No newline at end of file diff --git a/entry/schemas/data/dao/CacheDao.kt b/entry/schemas/data/dao/CacheDao.kt deleted file mode 100644 index 7ebd9bbd..00000000 --- a/entry/schemas/data/dao/CacheDao.kt +++ /dev/null @@ -1,27 +0,0 @@ -package io.legado.app.data.dao - -import androidx.room.Dao -import androidx.room.Insert -import androidx.room.OnConflictStrategy -import androidx.room.Query -import io.legado.app.data.entities.Cache - -@Dao -interface CacheDao { - - @Query("select * from caches where `key` = :key") - fun get(key: String): Cache? - - @Query("select value from caches where `key` = :key and (deadline = 0 or deadline > :now)") - fun get(key: String, now: Long): String? - - @Insert(onConflict = OnConflictStrategy.REPLACE) - fun insert(vararg cache: Cache) - - @Query("delete from caches where `key` = :key") - fun delete(key: String) - - @Query("delete from caches where deadline > 0 and deadline < :now") - fun clearDeadline(now: Long) - -} \ No newline at end of file diff --git a/entry/schemas/data/dao/CookieDao.kt b/entry/schemas/data/dao/CookieDao.kt deleted file mode 100644 index f667b7d2..00000000 --- a/entry/schemas/data/dao/CookieDao.kt +++ /dev/null @@ -1,26 +0,0 @@ -package io.legado.app.data.dao - -import androidx.room.* -import io.legado.app.data.entities.Cookie - -@Dao -interface CookieDao { - - @Query("SELECT * FROM cookies Where url = :url") - fun get(url: String): Cookie? - - @Query("select * from cookies where url like '%|%'") - fun getOkHttpCookies(): List - - @Insert(onConflict = OnConflictStrategy.REPLACE) - fun insert(vararg cookie: Cookie) - - @Update - fun update(vararg cookie: Cookie) - - @Query("delete from cookies where url = :url") - fun delete(url: String) - - @Query("delete from cookies where url like '%|%'") - fun deleteOkHttp() -} \ No newline at end of file diff --git a/entry/schemas/data/dao/DictRuleDao.kt b/entry/schemas/data/dao/DictRuleDao.kt deleted file mode 100644 index 6dfd601b..00000000 --- a/entry/schemas/data/dao/DictRuleDao.kt +++ /dev/null @@ -1,32 +0,0 @@ -package io.legado.app.data.dao - -import androidx.room.* -import io.legado.app.data.entities.DictRule -import kotlinx.coroutines.flow.Flow - - -@Dao -interface DictRuleDao { - - @get:Query("select * from dictRules order by sortNumber") - val all: List - - @get:Query("select * from dictRules where enabled = 1 order by sortNumber") - val enabled: List - - @Query("select * from dictRules order by sortNumber") - fun flowAll(): Flow> - - @Query("select * from dictRules where name = :name") - fun getByName(name: String): DictRule? - - @Insert(onConflict = OnConflictStrategy.REPLACE) - fun insert(vararg dictRule: DictRule) - - @Update - fun update(vararg dictRule: DictRule) - - @Delete - fun delete(vararg dictRule: DictRule) - -} \ No newline at end of file diff --git a/entry/schemas/data/dao/HttpTTSDao.kt b/entry/schemas/data/dao/HttpTTSDao.kt deleted file mode 100644 index b75fd290..00000000 --- a/entry/schemas/data/dao/HttpTTSDao.kt +++ /dev/null @@ -1,36 +0,0 @@ -package io.legado.app.data.dao - -import androidx.room.* -import io.legado.app.data.entities.HttpTTS -import kotlinx.coroutines.flow.Flow - -@Dao -interface HttpTTSDao { - - @get:Query("select * from httpTTS order by name") - val all: List - - @Query("select * from httpTTS order by name") - fun flowAll(): Flow> - - @get:Query("select count(*) from httpTTS") - val count: Int - - @Query("select * from httpTTS where id = :id") - fun get(id: Long): HttpTTS? - - @Query("select name from httpTTS where id = :id") - fun getName(id: Long): String? - - @Insert(onConflict = OnConflictStrategy.REPLACE) - fun insert(vararg httpTTS: HttpTTS) - - @Delete - fun delete(vararg httpTTS: HttpTTS) - - @Update - fun update(vararg httpTTS: HttpTTS) - - @Query("delete from httpTTS where id < 0") - fun deleteDefault() -} \ No newline at end of file diff --git a/entry/schemas/data/dao/KeyboardAssistsDao.kt b/entry/schemas/data/dao/KeyboardAssistsDao.kt deleted file mode 100644 index b25fec1a..00000000 --- a/entry/schemas/data/dao/KeyboardAssistsDao.kt +++ /dev/null @@ -1,34 +0,0 @@ -package io.legado.app.data.dao - -import androidx.room.* -import io.legado.app.data.entities.KeyboardAssist -import kotlinx.coroutines.flow.Flow - -@Dao -interface KeyboardAssistsDao { - - @get:Query("select * from keyboardAssists order by serialNo") - val all: List - - @Query("select * from keyboardAssists where type = :type order by serialNo") - fun getByType(type: Int): List - - @get:Query("select * from keyboardAssists order by serialNo") - val flowAll: Flow> - - @Query("select * from keyboardAssists where type = :type order by serialNo") - fun flowByType(type: Int): Flow> - - @get:Query("select max(serialNo) from keyboardAssists order by serialNo") - val maxSerialNo: Int - - @Insert(onConflict = OnConflictStrategy.REPLACE) - fun insert(vararg keyboardAssist: KeyboardAssist) - - @Update - fun update(vararg keyboardAssist: KeyboardAssist) - - @Delete - fun delete(vararg keyboardAssist: KeyboardAssist) - -} \ No newline at end of file diff --git a/entry/schemas/data/dao/ReadRecordDao.kt b/entry/schemas/data/dao/ReadRecordDao.kt deleted file mode 100644 index 2846fe84..00000000 --- a/entry/schemas/data/dao/ReadRecordDao.kt +++ /dev/null @@ -1,55 +0,0 @@ -package io.legado.app.data.dao - -import androidx.room.* -import io.legado.app.data.entities.ReadRecord -import io.legado.app.data.entities.ReadRecordShow - -@Dao -interface ReadRecordDao { - - @get:Query("select * from readRecord") - val all: List - - @get:Query( - """ - select bookName, sum(readTime) as readTime, max(lastRead) as lastRead - from readRecord - group by bookName - order by bookName collate localized""" - ) - val allShow: List - - @get:Query("select sum(readTime) from readRecord") - val allTime: Long - - @Query( - """ - select bookName, sum(readTime) as readTime, max(lastRead) as lastRead - from readRecord - where bookName like '%' || :searchKey || '%' - group by bookName - order by bookName collate localized""" - ) - fun search(searchKey: String): List - - @Query("select sum(readTime) from readRecord where bookName = :bookName") - fun getReadTime(bookName: String): Long? - - @Query("select readTime from readRecord where deviceId = :androidId and bookName = :bookName") - fun getReadTime(androidId: String, bookName: String): Long? - - @Insert(onConflict = OnConflictStrategy.REPLACE) - fun insert(vararg readRecord: ReadRecord) - - @Update - fun update(vararg record: ReadRecord) - - @Delete - fun delete(vararg record: ReadRecord) - - @Query("delete from readRecord") - fun clear() - - @Query("delete from readRecord where bookName = :bookName") - fun deleteByName(bookName: String) -} \ No newline at end of file diff --git a/entry/schemas/data/dao/ReplaceRuleDao.kt b/entry/schemas/data/dao/ReplaceRuleDao.kt deleted file mode 100644 index 09867c9b..00000000 --- a/entry/schemas/data/dao/ReplaceRuleDao.kt +++ /dev/null @@ -1,114 +0,0 @@ -package io.legado.app.data.dao - -import androidx.room.Dao -import androidx.room.Delete -import androidx.room.Insert -import androidx.room.OnConflictStrategy -import androidx.room.Query -import androidx.room.Update -import io.legado.app.constant.AppPattern -import io.legado.app.data.entities.ReplaceRule -import io.legado.app.utils.cnCompare -import io.legado.app.utils.splitNotBlank -import kotlinx.coroutines.Dispatchers.IO -import kotlinx.coroutines.flow.Flow -import kotlinx.coroutines.flow.flowOn -import kotlinx.coroutines.flow.map - - -@Dao -interface ReplaceRuleDao { - - @Query("SELECT * FROM replace_rules ORDER BY sortOrder ASC") - fun flowAll(): Flow> - - @Query("SELECT * FROM replace_rules where `group` like :key or name like :key ORDER BY sortOrder ASC") - fun flowSearch(key: String): Flow> - - @Query("SELECT * FROM replace_rules where `group` like :key ORDER BY sortOrder ASC") - fun flowGroupSearch(key: String): Flow> - - @Query("select `group` from replace_rules where `group` is not null and `group` <> ''") - fun flowGroupsUnProcessed(): Flow> - - @Query("select * from replace_rules where `group` is null or trim(`group`) = '' or trim(`group`) like '%未分组%'") - fun flowNoGroup(): Flow> - - @get:Query("SELECT MIN(sortOrder) FROM replace_rules") - val minOrder: Int - - @get:Query("SELECT MAX(sortOrder) FROM replace_rules") - val maxOrder: Int - - @get:Query("SELECT * FROM replace_rules ORDER BY sortOrder ASC") - val all: List - - @get:Query("select distinct `group` from replace_rules where trim(`group`) <> ''") - val allGroupsUnProcessed: List - - @get:Query("SELECT * FROM replace_rules WHERE isEnabled = 1 ORDER BY sortOrder ASC") - val allEnabled: List - - @Query("SELECT * FROM replace_rules WHERE id = :id") - fun findById(id: Long): ReplaceRule? - - @Query("SELECT * FROM replace_rules WHERE id in (:ids)") - fun findByIds(vararg ids: Long): List - - @Query( - """SELECT * FROM replace_rules WHERE isEnabled = 1 and scopeContent = 1 - AND (scope LIKE '%' || :name || '%' or scope LIKE '%' || :origin || '%' or scope is null or scope = '') - and (excludeScope is null or (excludeScope not LIKE '%' || :name || '%' and excludeScope not LIKE '%' || :origin || '%')) - order by sortOrder""" - ) - fun findEnabledByContentScope(name: String, origin: String): List - - @Query( - """SELECT * FROM replace_rules WHERE isEnabled = 1 and scopeTitle = 1 - AND (scope LIKE '%' || :name || '%' or scope LIKE '%' || :origin || '%' or scope is null or scope = '') - and (excludeScope is null or (excludeScope not LIKE '%' || :name || '%' and excludeScope not LIKE '%' || :origin || '%')) - order by sortOrder""" - ) - fun findEnabledByTitleScope(name: String, origin: String): List - - @Query("select * from replace_rules where `group` like '%' || :group || '%'") - fun getByGroup(group: String): List - - @get:Query("select * from replace_rules where `group` is null or `group` = ''") - val noGroup: List - - @get:Query("SELECT COUNT(*) - SUM(isEnabled) FROM replace_rules") - val summary: Int - - @Query("UPDATE replace_rules SET isEnabled = :enable") - fun enableAll(enable: Boolean) - - @Insert(onConflict = OnConflictStrategy.REPLACE) - fun insert(vararg replaceRule: ReplaceRule): List - - @Update - fun update(vararg replaceRules: ReplaceRule) - - @Delete - fun delete(vararg replaceRules: ReplaceRule) - - private fun dealGroups(list: List): List { - val groups = linkedSetOf() - list.forEach { - it.splitNotBlank(AppPattern.splitGroupRegex).forEach { group -> - groups.add(group) - } - } - return groups.sortedWith { o1, o2 -> - o1.cnCompare(o2) - } - } - - fun allGroups(): List = dealGroups(allGroupsUnProcessed) - - fun flowGroups(): Flow> { - return flowGroupsUnProcessed().map { list -> - dealGroups(list) - }.flowOn(IO) - } -} \ No newline at end of file diff --git a/entry/schemas/data/dao/RssArticleDao.kt b/entry/schemas/data/dao/RssArticleDao.kt deleted file mode 100644 index 30caf63d..00000000 --- a/entry/schemas/data/dao/RssArticleDao.kt +++ /dev/null @@ -1,39 +0,0 @@ -package io.legado.app.data.dao - -import androidx.room.* -import io.legado.app.data.entities.RssArticle -import io.legado.app.data.entities.RssReadRecord -import kotlinx.coroutines.flow.Flow - -@Dao -interface RssArticleDao { - - @Query("select * from rssArticles where origin = :origin and link = :link") - fun get(origin: String, link: String): RssArticle? - - @Query( - """select t1.link, t1.sort, t1.origin, t1.`order`, t1.title, t1.content, - t1.description, t1.image, t1.pubDate, t1.variable, ifNull(t2.read, 0) as read - from rssArticles as t1 left join rssReadRecords as t2 - on t1.link = t2.record where origin = :origin and sort = :sort - order by `order` desc""" - ) - fun flowByOriginSort(origin: String, sort: String): Flow> - - @Insert(onConflict = OnConflictStrategy.REPLACE) - fun insert(vararg rssArticle: RssArticle) - - @Query("delete from rssArticles where origin = :origin and sort = :sort and `order` < :order") - fun clearOld(origin: String, sort: String, order: Long) - - @Update - fun update(vararg rssArticle: RssArticle) - - @Query("delete from rssArticles where origin = :origin") - fun delete(origin: String) - - @Insert(onConflict = OnConflictStrategy.IGNORE) - fun insertRecord(vararg rssReadRecord: RssReadRecord) - - -} \ No newline at end of file diff --git a/entry/schemas/data/dao/RssSourceDao.kt b/entry/schemas/data/dao/RssSourceDao.kt deleted file mode 100644 index 017e7ec8..00000000 --- a/entry/schemas/data/dao/RssSourceDao.kt +++ /dev/null @@ -1,145 +0,0 @@ -package io.legado.app.data.dao - -import androidx.room.Dao -import androidx.room.Delete -import androidx.room.Insert -import androidx.room.OnConflictStrategy -import androidx.room.Query -import androidx.room.Update -import io.legado.app.constant.AppPattern -import io.legado.app.data.entities.RssSource -import io.legado.app.utils.cnCompare -import io.legado.app.utils.splitNotBlank -import kotlinx.coroutines.Dispatchers.IO -import kotlinx.coroutines.flow.Flow -import kotlinx.coroutines.flow.flowOn -import kotlinx.coroutines.flow.map - -@Dao -interface RssSourceDao { - - @Query("select * from rssSources where sourceUrl = :key") - fun getByKey(key: String): RssSource? - - @Query("select * from rssSources where sourceUrl in (:sourceUrls)") - fun getRssSources(vararg sourceUrls: String): List - - @get:Query("SELECT * FROM rssSources order by customOrder") - val all: List - - @get:Query("select count(sourceUrl) from rssSources") - val size: Int - - @Query("SELECT * FROM rssSources order by customOrder") - fun flowAll(): Flow> - - @Query( - """SELECT * FROM rssSources - where sourceName like '%' || :key || '%' - or sourceUrl like '%' || :key || '%' - or sourceGroup like '%' || :key || '%' - order by customOrder""" - ) - fun flowSearch(key: String): Flow> - - @Query( - """SELECT * FROM rssSources - where (sourceGroup = :key - or sourceGroup like :key || ',%' - or sourceGroup like '%,' || :key - or sourceGroup like '%,' || :key || ',%') - order by customOrder""" - ) - fun flowGroupSearch(key: String): Flow> - - @Query("SELECT * FROM rssSources where enabled = 1 order by customOrder") - fun flowEnabled(): Flow> - - @Query("SELECT * FROM rssSources where enabled = 0 order by customOrder") - fun flowDisabled(): Flow> - - @Query("select * from rssSources where loginUrl is not null and loginUrl != ''") - fun flowLogin(): Flow> - - @Query("select * from rssSources where sourceGroup is null or sourceGroup = '' or sourceGroup like '%未分组%'") - fun flowNoGroup(): Flow> - - @Query( - """SELECT * FROM rssSources - where enabled = 1 - and (sourceName like '%' || :searchKey || '%' - or sourceGroup like '%' || :searchKey || '%' - or sourceUrl like '%' || :searchKey || '%') - order by customOrder""" - ) - fun flowEnabled(searchKey: String): Flow> - - @Query( - """SELECT * FROM rssSources - where enabled = 1 and (sourceGroup = :searchKey - or sourceGroup like :searchKey || ',%' - or sourceGroup like '%,' || :searchKey - or sourceGroup like '%,' || :searchKey || ',%') - order by customOrder""" - ) - fun flowEnabledByGroup(searchKey: String): Flow> - - @Query("select distinct sourceGroup from rssSources where trim(sourceGroup) <> ''") - fun flowGroupsUnProcessed(): Flow> - - @Query("select distinct sourceGroup from rssSources where trim(sourceGroup) <> '' and enabled = 1") - fun flowGroupEnabled(): Flow> - - @get:Query("select distinct sourceGroup from rssSources where trim(sourceGroup) <> ''") - val allGroupsUnProcessed: List - - @get:Query("select min(customOrder) from rssSources") - val minOrder: Int - - @get:Query("select max(customOrder) from rssSources") - val maxOrder: Int - - @Insert(onConflict = OnConflictStrategy.REPLACE) - fun insert(vararg rssSource: RssSource) - - @Update - fun update(vararg rssSource: RssSource) - - @Delete - fun delete(vararg rssSource: RssSource) - - @Query("delete from rssSources where sourceUrl = :sourceUrl") - fun delete(sourceUrl: String) - - @Query("delete from rssSources where sourceGroup like 'legado'") - fun deleteDefault() - - @get:Query("select * from rssSources where sourceGroup is null or sourceGroup = ''") - val noGroup: List - - @Query("select * from rssSources where sourceGroup like '%' || :group || '%'") - fun getByGroup(group: String): List - - @Query("select 1 from rssSources where sourceUrl = :key") - fun has(key: String): Boolean? - - private fun dealGroups(list: List): List { - val groups = linkedSetOf() - list.forEach { - it.splitNotBlank(AppPattern.splitGroupRegex).forEach { group -> - groups.add(group) - } - } - return groups.sortedWith { o1, o2 -> - o1.cnCompare(o2) - } - } - - fun allGroups(): List = dealGroups(allGroupsUnProcessed) - - fun flowGroups(): Flow> { - return flowGroupsUnProcessed().map { list -> - dealGroups(list) - }.flowOn(IO) - } -} diff --git a/entry/schemas/data/dao/RssStarDao.kt b/entry/schemas/data/dao/RssStarDao.kt deleted file mode 100644 index 2c40349c..00000000 --- a/entry/schemas/data/dao/RssStarDao.kt +++ /dev/null @@ -1,30 +0,0 @@ -package io.legado.app.data.dao - -import androidx.room.* -import io.legado.app.data.entities.RssStar -import kotlinx.coroutines.flow.Flow - -@Dao -interface RssStarDao { - - @get:Query("select * from rssStars order by starTime desc") - val all: List - - @Query("select * from rssStars where origin = :origin and link = :link") - fun get(origin: String, link: String): RssStar? - - @Query("select * from rssStars order by starTime desc") - fun liveAll(): Flow> - - @Insert(onConflict = OnConflictStrategy.REPLACE) - fun insert(vararg rssStar: RssStar) - - @Update - fun update(vararg rssStar: RssStar) - - @Query("delete from rssStars where origin = :origin") - fun delete(origin: String) - - @Query("delete from rssStars where origin = :origin and link = :link") - fun delete(origin: String, link: String) -} \ No newline at end of file diff --git a/entry/schemas/data/dao/RuleSubDao.kt b/entry/schemas/data/dao/RuleSubDao.kt deleted file mode 100644 index 56d87b26..00000000 --- a/entry/schemas/data/dao/RuleSubDao.kt +++ /dev/null @@ -1,30 +0,0 @@ -package io.legado.app.data.dao - -import androidx.room.* -import io.legado.app.data.entities.RuleSub -import kotlinx.coroutines.flow.Flow - -@Dao -interface RuleSubDao { - - @get:Query("select * from ruleSubs order by customOrder") - val all: List - - @Query("select * from ruleSubs order by customOrder") - fun flowAll(): Flow> - - @get:Query("select customOrder from ruleSubs order by customOrder limit 0,1") - val maxOrder: Int - - @Query("select * from ruleSubs where url = :url") - fun findByUrl(url: String): RuleSub? - - @Insert(onConflict = OnConflictStrategy.REPLACE) - fun insert(vararg ruleSub: RuleSub) - - @Delete - fun delete(vararg ruleSub: RuleSub) - - @Update - fun update(vararg ruleSub: RuleSub) -} \ No newline at end of file diff --git a/entry/schemas/data/dao/SearchBookDao.kt b/entry/schemas/data/dao/SearchBookDao.kt deleted file mode 100644 index 9444a096..00000000 --- a/entry/schemas/data/dao/SearchBookDao.kt +++ /dev/null @@ -1,73 +0,0 @@ -package io.legado.app.data.dao - -import androidx.room.* -import io.legado.app.data.entities.SearchBook - -@Dao -interface SearchBookDao { - - @Query("select * from searchBooks where bookUrl = :bookUrl") - fun getSearchBook(bookUrl: String): SearchBook? - - @Query("select * from searchBooks where name = :name and author = :author and origin in (select bookSourceUrl from book_sources) order by originOrder limit 1") - fun getFirstByNameAuthor(name: String, author: String): SearchBook? - - @Query( - """select t1.name, t1.author, t1.origin, t1.originName, t1.coverUrl, t1.bookUrl, - t1.type, t1.time, t1.intro, t1.kind, t1.latestChapterTitle, t1.tocUrl, t1.variable, - t1.wordCount, t2.customOrder as originOrder, t1.chapterWordCountText, t1.respondTime, t1.chapterWordCount - from searchBooks as t1 inner join book_sources as t2 - on t1.origin = t2.bookSourceUrl - where t1.name = :name and t1.author like '%'||:author||'%' - and t2.enabled = 1 and t2.bookSourceGroup like '%'||:sourceGroup||'%' - order by t2.customOrder""" - ) - fun changeSourceByGroup(name: String, author: String, sourceGroup: String): List - - @Query( - """select t1.name, t1.author, t1.origin, t1.originName, t1.coverUrl, t1.bookUrl, - t1.type, t1.time, t1.intro, t1.kind, t1.latestChapterTitle, t1.tocUrl, t1.variable, - t1.wordCount, t2.customOrder as originOrder, t1.chapterWordCountText, t1.respondTime, t1.chapterWordCount - from searchBooks as t1 inner join book_sources as t2 - on t1.origin = t2.bookSourceUrl - where t1.name = :name and t1.author like '%'||:author||'%' - and t2.bookSourceGroup like '%'||:sourceGroup||'%' - and (originName like '%'||:key||'%' or t1.latestChapterTitle like '%'||:key||'%') - and t2.enabled = 1 - order by t2.customOrder""" - ) - fun changeSourceSearch( - name: String, - author: String, - key: String, - sourceGroup: String - ): List - - @Query( - """ - select t1.name, t1.author, t1.origin, t1.originName, t1.coverUrl, t1.bookUrl, - t1.type, t1.time, t1.intro, t1.kind, t1.latestChapterTitle, t1.tocUrl, t1.variable, - t1.wordCount, t2.customOrder as originOrder, t1.chapterWordCountText, t1.respondTime, t1.chapterWordCount - from searchBooks as t1 inner join book_sources as t2 - on t1.origin = t2.bookSourceUrl - where t1.name = :name and t1.author = :author and t1.coverUrl is not null and t1.coverUrl <> '' and t2.enabled = 1 - order by t2.customOrder - """ - ) - fun getEnableHasCover(name: String, author: String): List - - @Insert(onConflict = OnConflictStrategy.REPLACE) - fun insert(vararg searchBook: SearchBook): List - - @Query("delete from searchBooks where name = :name and author = :author") - fun clear(name: String, author: String) - - @Query("delete from searchBooks where time < :time") - fun clearExpired(time: Long) - - @Update - fun update(vararg searchBook: SearchBook) - - @Delete - fun delete(vararg searchBook: SearchBook) -} \ No newline at end of file diff --git a/entry/schemas/data/dao/SearchKeywordDao.kt b/entry/schemas/data/dao/SearchKeywordDao.kt deleted file mode 100644 index 2b433e48..00000000 --- a/entry/schemas/data/dao/SearchKeywordDao.kt +++ /dev/null @@ -1,38 +0,0 @@ -package io.legado.app.data.dao - -import androidx.room.* -import io.legado.app.data.entities.SearchKeyword -import kotlinx.coroutines.flow.Flow - - -@Dao -interface SearchKeywordDao { - - @get:Query("SELECT * FROM search_keywords") - val all: List - - @Query("SELECT * FROM search_keywords ORDER BY usage DESC") - fun flowByUsage(): Flow> - - @Query("SELECT * FROM search_keywords ORDER BY lastUseTime DESC") - fun flowByTime(): Flow> - - @Query("SELECT * FROM search_keywords where word like '%'||:key||'%' ORDER BY usage DESC") - fun flowSearch(key: String): Flow> - - @Query("select * from search_keywords where word = :key") - fun get(key: String): SearchKeyword? - - @Insert(onConflict = OnConflictStrategy.REPLACE) - fun insert(vararg keywords: SearchKeyword) - - @Update - fun update(vararg keywords: SearchKeyword) - - @Delete - fun delete(vararg keywords: SearchKeyword) - - @Query("DELETE FROM search_keywords") - fun deleteAll() - -} \ No newline at end of file diff --git a/entry/schemas/data/dao/ServerDao.kt b/entry/schemas/data/dao/ServerDao.kt deleted file mode 100644 index fd6b4119..00000000 --- a/entry/schemas/data/dao/ServerDao.kt +++ /dev/null @@ -1,33 +0,0 @@ -package io.legado.app.data.dao - -import androidx.room.* -import io.legado.app.data.entities.Server -import kotlinx.coroutines.flow.Flow - -@Dao -interface ServerDao { - - @Query("select * from servers order by sortNumber") - fun observeAll(): Flow> - - @get:Query("select * from servers order by sortNumber") - val all: List - - @Query("select * from servers where id = :id") - fun get(id: Long): Server? - - @Insert(onConflict = OnConflictStrategy.REPLACE) - fun insert(vararg server: Server) - - @Update(onConflict = OnConflictStrategy.REPLACE) - fun update(vararg server: Server) - - @Delete - fun delete(vararg server: Server) - - @Query("delete from servers where id = :id") - fun delete(id: Long) - - @Query("delete from servers where id < 0") - fun deleteDefault() -} \ No newline at end of file diff --git a/entry/schemas/data/dao/TxtTocRuleDao.kt b/entry/schemas/data/dao/TxtTocRuleDao.kt deleted file mode 100644 index 32981d1d..00000000 --- a/entry/schemas/data/dao/TxtTocRuleDao.kt +++ /dev/null @@ -1,45 +0,0 @@ -package io.legado.app.data.dao - -import androidx.room.* -import io.legado.app.data.entities.TxtTocRule -import kotlinx.coroutines.flow.Flow - -@Dao -interface TxtTocRuleDao { - - @Query("select * from txtTocRules order by serialNumber") - fun observeAll(): Flow> - - @get:Query("select * from txtTocRules order by serialNumber") - val all: List - - @get:Query("select * from txtTocRules where enable = 1 order by serialNumber") - val enabled: List - - @get:Query("select * from txtTocRules where enable != 1 order by serialNumber") - val disabled: List - - @get:Query("select count(*) from txtTocRules") - val count: Int - - @Query("select * from txtTocRules where id = :id") - fun get(id: Long): TxtTocRule? - - @get:Query("select ifNull(min(serialNumber), 0) from txtTocRules") - val minOrder: Int - - @get:Query("select ifNull(max(serialNumber), 0) from txtTocRules") - val maxOrder: Int - - @Insert(onConflict = OnConflictStrategy.REPLACE) - fun insert(vararg rule: TxtTocRule) - - @Update(onConflict = OnConflictStrategy.REPLACE) - fun update(vararg rule: TxtTocRule) - - @Delete - fun delete(vararg rule: TxtTocRule) - - @Query("delete from txtTocRules where id < 0") - fun deleteDefault() -} \ No newline at end of file diff --git a/entry/schemas/data/entities/BaseBook.kt b/entry/schemas/data/entities/BaseBook.kt deleted file mode 100644 index a469dcd9..00000000 --- a/entry/schemas/data/entities/BaseBook.kt +++ /dev/null @@ -1,53 +0,0 @@ -package io.legado.app.data.entities - -import io.legado.app.help.RuleBigDataHelp -import io.legado.app.model.analyzeRule.RuleDataInterface -import io.legado.app.utils.GSON -import io.legado.app.utils.splitNotBlank - -interface BaseBook : RuleDataInterface { - var name: String - var author: String - var bookUrl: String - var kind: String? - var wordCount: String? - var variable: String? - - var infoHtml: String? - var tocHtml: String? - - override fun putVariable(key: String, value: String?): Boolean { - if (super.putVariable(key, value)) { - variable = GSON.toJson(variableMap) - } - return true - } - - fun putCustomVariable(value: String?) { - putVariable("custom", value) - } - - fun getCustomVariable(): String { - return getVariable("custom") - } - - override fun putBigVariable(key: String, value: String?) { - RuleBigDataHelp.putBookVariable(bookUrl, key, value) - } - - override fun getBigVariable(key: String): String? { - return RuleBigDataHelp.getBookVariable(bookUrl, key) - } - - fun getKindList(): List { - val kindList = arrayListOf() - wordCount?.let { - if (it.isNotBlank()) kindList.add(it) - } - kind?.let { - val kinds = it.splitNotBlank(",", "\n") - kindList.addAll(kinds) - } - return kindList - } -} \ No newline at end of file diff --git a/entry/schemas/data/entities/BaseRssArticle.kt b/entry/schemas/data/entities/BaseRssArticle.kt deleted file mode 100644 index b42040a0..00000000 --- a/entry/schemas/data/entities/BaseRssArticle.kt +++ /dev/null @@ -1,29 +0,0 @@ -package io.legado.app.data.entities - -import io.legado.app.help.RuleBigDataHelp -import io.legado.app.model.analyzeRule.RuleDataInterface -import io.legado.app.utils.GSON - -interface BaseRssArticle : RuleDataInterface { - - var origin: String - var link: String - - var variable: String? - - override fun putVariable(key: String, value: String?): Boolean { - if (super.putVariable(key, value)) { - variable = GSON.toJson(variableMap) - } - return true - } - - override fun putBigVariable(key: String, value: String?) { - RuleBigDataHelp.putRssVariable(origin, link, key, value) - } - - override fun getBigVariable(key: String): String? { - return RuleBigDataHelp.getRssVariable(origin, link, key) - } - -} \ No newline at end of file diff --git a/entry/schemas/data/entities/BaseSource.kt b/entry/schemas/data/entities/BaseSource.kt deleted file mode 100644 index 99ab1b9c..00000000 --- a/entry/schemas/data/entities/BaseSource.kt +++ /dev/null @@ -1,251 +0,0 @@ -package io.legado.app.data.entities - -import cn.hutool.crypto.symmetric.AES -import com.script.SimpleBindings -import com.script.rhino.RhinoScriptEngine -import io.legado.app.constant.AppConst -import io.legado.app.constant.AppLog -import io.legado.app.data.entities.rule.RowUi -import io.legado.app.help.CacheManager -import io.legado.app.help.JsExtensions -import io.legado.app.help.SymmetricCryptoAndroid -import io.legado.app.help.config.AppConfig -import io.legado.app.help.http.CookieStore -import io.legado.app.model.SharedJsScope -import io.legado.app.utils.* -import org.intellij.lang.annotations.Language -import org.mozilla.javascript.Scriptable - -/** - * 可在js里调用,source.xxx() - */ -@Suppress("unused") -interface BaseSource : JsExtensions { - /** - * 并发率 - */ - var concurrentRate: String? - - /** - * 登录地址 - */ - var loginUrl: String? - - /** - * 登录UI - */ - var loginUi: String? - - /** - * 请求头 - */ - var header: String? - - /** - * 启用cookieJar - */ - var enabledCookieJar: Boolean? - - /** - * js库 - */ - var jsLib: String? - - fun getTag(): String - - fun getKey(): String - - override fun getSource(): BaseSource? { - return this - } - - fun loginUi(): List? { - return GSON.fromJsonArray(loginUi).onFailure { - it.printOnDebug() - }.getOrNull() - } - - fun getLoginJs(): String? { - val loginJs = loginUrl - return when { - loginJs == null -> null - loginJs.startsWith("@js:") -> loginJs.substring(4) - loginJs.startsWith("") -> loginJs.substring(4, loginJs.lastIndexOf("<")) - else -> loginJs - } - } - - /** - * 调用login函数 实现登录请求 - */ - fun login() { - val loginJs = getLoginJs() - if (!loginJs.isNullOrBlank()) { - @Language("js") - val js = """$loginJs - if(typeof login=='function'){ - login.apply(this); - } else { - throw('Function login not implements!!!') - } - """.trimIndent() - evalJS(js) - } - } - - /** - * 解析header规则 - */ - fun getHeaderMap(hasLoginHeader: Boolean = false) = HashMap().apply { - header?.let { - GSON.fromJsonObject>( - when { - it.startsWith("@js:", true) -> evalJS(it.substring(4)).toString() - it.startsWith("", true) -> evalJS( - it.substring( - 4, - it.lastIndexOf("<") - ) - ).toString() - - else -> it - } - ).getOrNull()?.let { map -> - putAll(map) - } - } - if (!has(AppConst.UA_NAME, true)) { - put(AppConst.UA_NAME, AppConfig.userAgent) - } - if (hasLoginHeader) { - getLoginHeaderMap()?.let { - putAll(it) - } - } - } - - /** - * 获取用于登录的头部信息 - */ - fun getLoginHeader(): String? { - return CacheManager.get("loginHeader_${getKey()}") - } - - fun getLoginHeaderMap(): Map? { - val cache = getLoginHeader() ?: return null - return GSON.fromJsonObject>(cache).getOrNull() - } - - /** - * 保存登录头部信息,map格式,访问时自动添加 - */ - fun putLoginHeader(header: String) { - val headerMap = GSON.fromJsonObject>(header).getOrNull() - val cookie = headerMap?.get("Cookie") ?: headerMap?.get("cookie") - cookie?.let { - CookieStore.replaceCookie(getKey(), it) - } - CacheManager.put("loginHeader_${getKey()}", header) - } - - fun removeLoginHeader() { - CacheManager.delete("loginHeader_${getKey()}") - CookieStore.removeCookie(getKey()) - } - - /** - * 获取用户信息,可以用来登录 - * 用户信息采用aes加密存储 - */ - fun getLoginInfo(): String? { - try { - val key = AppConst.androidId.encodeToByteArray(0, 16) - val cache = CacheManager.get("userInfo_${getKey()}") ?: return null - return AES(key).decryptStr(cache) - } catch (e: Exception) { - AppLog.put("获取登陆信息出错", e) - return null - } - } - - fun getLoginInfoMap(): Map? { - return GSON.fromJsonObject>(getLoginInfo()).getOrNull() - } - - /** - * 保存用户信息,aes加密 - */ - fun putLoginInfo(info: String): Boolean { - return try { - val key = (AppConst.androidId).encodeToByteArray(0, 16) - val encodeStr = SymmetricCryptoAndroid("AES", key).encryptBase64(info) - CacheManager.put("userInfo_${getKey()}", encodeStr) - true - } catch (e: Exception) { - AppLog.put("保存登陆信息出错", e) - false - } - } - - fun removeLoginInfo() { - CacheManager.delete("userInfo_${getKey()}") - } - - /** - * 设置自定义变量 - * @param variable 变量内容 - */ - fun setVariable(variable: String?) { - if (variable != null) { - CacheManager.put("sourceVariable_${getKey()}", variable) - } else { - CacheManager.delete("sourceVariable_${getKey()}") - } - } - - /** - * 获取自定义变量 - */ - fun getVariable(): String { - return CacheManager.get("sourceVariable_${getKey()}") ?: "" - } - - /** - * 保存数据 - */ - fun put(key: String, value: String): String { - CacheManager.put("v_${getKey()}_${key}", value) - return value - } - - /** - * 获取保存的数据 - */ - fun get(key: String): String { - return CacheManager.get("v_${getKey()}_${key}") ?: "" - } - - /** - * 执行JS - */ - @Throws(Exception::class) - fun evalJS(jsStr: String, bindingsConfig: SimpleBindings.() -> Unit = {}): Any? { - val bindings = SimpleBindings() - bindings.apply(bindingsConfig) - bindings["java"] = this - bindings["source"] = this - bindings["baseUrl"] = getKey() - bindings["cookie"] = CookieStore - bindings["cache"] = CacheManager - val context = RhinoScriptEngine.getScriptContext(bindings) - val scope = RhinoScriptEngine.getRuntimeScope(context) - getShareScope()?.let { - scope.prototype = it - } - return RhinoScriptEngine.eval(jsStr, scope) - } - - fun getShareScope(): Scriptable? { - return SharedJsScope.getScope(jsLib) - } -} \ No newline at end of file diff --git a/entry/schemas/data/entities/Book.kt b/entry/schemas/data/entities/Book.kt deleted file mode 100644 index e1815f3c..00000000 --- a/entry/schemas/data/entities/Book.kt +++ /dev/null @@ -1,407 +0,0 @@ -package io.legado.app.data.entities - -import android.os.Parcelable -import androidx.room.ColumnInfo -import androidx.room.Entity -import androidx.room.Ignore -import androidx.room.Index -import androidx.room.PrimaryKey -import androidx.room.TypeConverter -import androidx.room.TypeConverters -import io.legado.app.constant.AppPattern -import io.legado.app.constant.BookType -import io.legado.app.constant.PageAnim -import io.legado.app.data.appDb -import io.legado.app.help.book.BookHelp -import io.legado.app.help.book.ContentProcessor -import io.legado.app.help.book.isEpub -import io.legado.app.help.book.isImage -import io.legado.app.help.book.isLocal -import io.legado.app.help.book.isPdf -import io.legado.app.help.config.AppConfig -import io.legado.app.help.config.ReadBookConfig -import io.legado.app.model.ReadBook -import io.legado.app.model.localBook.LocalBook -import io.legado.app.utils.GSON -import io.legado.app.utils.MD5Utils -import io.legado.app.utils.fromJsonObject -import kotlinx.parcelize.IgnoredOnParcel -import kotlinx.parcelize.Parcelize -import java.nio.charset.Charset -import kotlin.math.max -import kotlin.math.min - -@Parcelize -@TypeConverters(Book.Converters::class) -@Entity( - tableName = "books", - indices = [Index(value = ["name", "author"], unique = true)] -) -data class Book( - // 详情页Url(本地书源存储完整文件路径) - @PrimaryKey - @ColumnInfo(defaultValue = "") - override var bookUrl: String = "", - // 目录页Url (toc=table of Contents) - @ColumnInfo(defaultValue = "") - var tocUrl: String = "", - // 书源URL(默认BookType.local) - @ColumnInfo(defaultValue = BookType.localTag) - var origin: String = BookType.localTag, - //书源名称 or 本地书籍文件名 - @ColumnInfo(defaultValue = "") - var originName: String = "", - // 书籍名称(书源获取) - @ColumnInfo(defaultValue = "") - override var name: String = "", - // 作者名称(书源获取) - @ColumnInfo(defaultValue = "") - override var author: String = "", - // 分类信息(书源获取) - override var kind: String? = null, - // 分类信息(用户修改) - var customTag: String? = null, - // 封面Url(书源获取) - var coverUrl: String? = null, - // 封面Url(用户修改) - var customCoverUrl: String? = null, - // 简介内容(书源获取) - var intro: String? = null, - // 简介内容(用户修改) - var customIntro: String? = null, - // 自定义字符集名称(仅适用于本地书籍) - var charset: String? = null, - // 类型,详见BookType - @ColumnInfo(defaultValue = "0") - var type: Int = BookType.text, - // 自定义分组索引号 - @ColumnInfo(defaultValue = "0") - var group: Long = 0, - // 最新章节标题 - var latestChapterTitle: String? = null, - // 最新章节标题更新时间 - @ColumnInfo(defaultValue = "0") - var latestChapterTime: Long = System.currentTimeMillis(), - // 最近一次更新书籍信息的时间 - @ColumnInfo(defaultValue = "0") - var lastCheckTime: Long = System.currentTimeMillis(), - // 最近一次发现新章节的数量 - @ColumnInfo(defaultValue = "0") - var lastCheckCount: Int = 0, - // 书籍目录总数 - @ColumnInfo(defaultValue = "0") - var totalChapterNum: Int = 0, - // 当前章节名称 - var durChapterTitle: String? = null, - // 当前章节索引 - @ColumnInfo(defaultValue = "0") - var durChapterIndex: Int = 0, - // 当前阅读的进度(首行字符的索引位置) - @ColumnInfo(defaultValue = "0") - var durChapterPos: Int = 0, - // 最近一次阅读书籍的时间(打开正文的时间) - @ColumnInfo(defaultValue = "0") - var durChapterTime: Long = System.currentTimeMillis(), - //字数 - override var wordCount: String? = null, - // 刷新书架时更新书籍信息 - @ColumnInfo(defaultValue = "1") - var canUpdate: Boolean = true, - // 手动排序 - @ColumnInfo(defaultValue = "0") - var order: Int = 0, - //书源排序 - @ColumnInfo(defaultValue = "0") - var originOrder: Int = 0, - // 自定义书籍变量信息(用于书源规则检索书籍信息) - override var variable: String? = null, - //阅读设置 - var readConfig: ReadConfig? = null, - //同步时间 - @ColumnInfo(defaultValue = "0") - var syncTime: Long = 0L -) : Parcelable, BaseBook { - - override fun equals(other: Any?): Boolean { - if (other is Book) { - return other.bookUrl == bookUrl - } - return false - } - - override fun hashCode(): Int { - return bookUrl.hashCode() - } - - @delegate:Transient - @delegate:Ignore - @IgnoredOnParcel - override val variableMap: HashMap by lazy { - GSON.fromJsonObject>(variable).getOrNull() ?: hashMapOf() - } - - @Ignore - @IgnoredOnParcel - override var infoHtml: String? = null - - @Ignore - @IgnoredOnParcel - override var tocHtml: String? = null - - @Ignore - @IgnoredOnParcel - var downloadUrls: List? = null - - @Ignore - @IgnoredOnParcel - private var folderName: String? = null - - @get:Ignore - @IgnoredOnParcel - val lastChapterIndex get() = totalChapterNum - 1 - - fun getRealAuthor() = author.replace(AppPattern.authorRegex, "") - - fun getUnreadChapterNum() = max(totalChapterNum - durChapterIndex - 1, 0) - - fun getDisplayCover() = if (customCoverUrl.isNullOrEmpty()) coverUrl else customCoverUrl - - fun getDisplayIntro() = if (customIntro.isNullOrEmpty()) intro else customIntro - - //自定义简介有自动更新的需求时,可通过更新intro再调用upCustomIntro()完成 - @Suppress("unused") - fun upCustomIntro() { - customIntro = intro - } - - fun fileCharset(): Charset { - return charset(charset ?: "UTF-8") - } - - @IgnoredOnParcel - val config: ReadConfig - get() { - if (readConfig == null) { - readConfig = ReadConfig() - } - return readConfig!! - } - - fun setReverseToc(reverseToc: Boolean) { - config.reverseToc = reverseToc - } - - fun getReverseToc(): Boolean { - return config.reverseToc - } - - fun setUseReplaceRule(useReplaceRule: Boolean) { - config.useReplaceRule = useReplaceRule - } - - fun getUseReplaceRule(): Boolean { - val useReplaceRule = config.useReplaceRule - if (useReplaceRule != null) { - return useReplaceRule - } - //图片类书源 epub本地 默认关闭净化 - if (isImage || isEpub) { - return false - } - return AppConfig.replaceEnableDefault - } - - fun setReSegment(reSegment: Boolean) { - config.reSegment = reSegment - } - - fun getReSegment(): Boolean { - return config.reSegment - } - - fun setPageAnim(pageAnim: Int?) { - config.pageAnim = pageAnim - } - - fun getPageAnim(): Int { - var pageAnim = config.pageAnim - ?: if (type and BookType.image > 0) PageAnim.scrollPageAnim else ReadBookConfig.pageAnim - if (pageAnim < 0) { - pageAnim = ReadBookConfig.pageAnim - } - return pageAnim - } - - fun setImageStyle(imageStyle: String?) { - config.imageStyle = imageStyle - } - - fun getImageStyle(): String? { - return config.imageStyle - ?: if (isImage || isPdf) imgStyleFull else null - } - - fun setTtsEngine(ttsEngine: String?) { - config.ttsEngine = ttsEngine - } - - fun getTtsEngine(): String? { - return config.ttsEngine - } - - fun setSplitLongChapter(limitLongContent: Boolean) { - config.splitLongChapter = limitLongContent - } - - fun getSplitLongChapter(): Boolean { - return config.splitLongChapter - } - - fun getDelTag(tag: Long): Boolean { - return config.delTag and tag == tag - } - - fun addDelTag(tag: Long) { - config.delTag = config.delTag and tag - } - - fun removeDelTag(tag: Long) { - config.delTag = config.delTag and tag.inv() - } - - fun getFolderName(): String { - folderName?.let { - return it - } - //防止书名过长,只取9位 - folderName = getFolderNameNoCache() - return folderName!! - } - - fun getFolderNameNoCache(): String { - return name.replace(AppPattern.fileNameRegex, "").let { - it.substring(0, min(9, it.length)) + MD5Utils.md5Encode16(bookUrl) - } - } - - fun getBookSource(): BookSource? { - return appDb.bookSourceDao.getBookSource(origin) - } - - fun isLocalModified(): Boolean { - return isLocal && LocalBook.getLastModified(this).getOrDefault(0L) > latestChapterTime - } - - fun toSearchBook() = SearchBook( - name = name, - author = author, - kind = kind, - bookUrl = bookUrl, - origin = origin, - originName = originName, - type = type, - wordCount = wordCount, - latestChapterTitle = latestChapterTitle, - coverUrl = coverUrl, - intro = intro, - tocUrl = tocUrl, - originOrder = originOrder, - variable = variable - ).apply { - this.infoHtml = this@Book.infoHtml - this.tocHtml = this@Book.tocHtml - } - - /** - * 迁移旧的书籍的一些信息到新的书籍中 - */ - fun migrateTo(newBook: Book, toc: List): Book { - newBook.durChapterIndex = BookHelp - .getDurChapter(durChapterIndex, durChapterTitle, toc, totalChapterNum) - newBook.durChapterTitle = toc[newBook.durChapterIndex].getDisplayTitle( - ContentProcessor.get(newBook.name, newBook.origin).getTitleReplaceRules(), - getUseReplaceRule() - ) - newBook.durChapterPos = durChapterPos - newBook.durChapterTime = durChapterTime - newBook.group = group - newBook.order = order - newBook.customCoverUrl = customCoverUrl - newBook.customIntro = customIntro - newBook.customTag = customTag - newBook.canUpdate = canUpdate - newBook.readConfig = readConfig - return newBook - } - - fun updateTo(newBook: Book): Book { - newBook.durChapterIndex = durChapterIndex - newBook.durChapterTitle = durChapterTitle - newBook.durChapterPos = durChapterPos - newBook.durChapterTime = durChapterTime - newBook.group = group - newBook.order = order - newBook.customCoverUrl = customCoverUrl - newBook.customIntro = customIntro - newBook.customTag = customTag - newBook.canUpdate = canUpdate - newBook.readConfig = readConfig - return newBook - } - - fun createBookMark(): Bookmark { - return Bookmark( - bookName = name, - bookAuthor = author, - ) - } - - fun save() { - if (appDb.bookDao.has(bookUrl) == true) { - appDb.bookDao.update(this) - } else { - appDb.bookDao.insert(this) - } - } - - fun update() { - appDb.bookDao.update(this) - } - - fun delete() { - if (ReadBook.book?.bookUrl == bookUrl) { - ReadBook.book = null - } - appDb.bookDao.delete(this) - } - - @Suppress("ConstPropertyName") - companion object { - const val hTag = 2L - const val rubyTag = 4L - const val imgStyleDefault = "DEFAULT" - const val imgStyleFull = "FULL" - const val imgStyleText = "TEXT" - } - - @Parcelize - data class ReadConfig( - var reverseToc: Boolean = false, - var pageAnim: Int? = null, - var reSegment: Boolean = false, - var imageStyle: String? = null, - var useReplaceRule: Boolean? = null,// 正文使用净化替换规则 - var delTag: Long = 0L,//去除标签 - var ttsEngine: String? = null, - var splitLongChapter: Boolean = true - ) : Parcelable - - class Converters { - - @TypeConverter - fun readConfigToString(config: ReadConfig?): String = GSON.toJson(config) - - @TypeConverter - fun stringToReadConfig(json: String?) = GSON.fromJsonObject(json).getOrNull() - } -} \ No newline at end of file diff --git a/entry/schemas/data/entities/BookChapter.kt b/entry/schemas/data/entities/BookChapter.kt deleted file mode 100644 index 3c962707..00000000 --- a/entry/schemas/data/entities/BookChapter.kt +++ /dev/null @@ -1,180 +0,0 @@ -package io.legado.app.data.entities - -import android.annotation.SuppressLint -import android.os.Parcelable -import androidx.room.Entity -import androidx.room.ForeignKey -import androidx.room.Ignore -import androidx.room.Index -import io.legado.app.R -import io.legado.app.constant.AppLog -import io.legado.app.constant.AppPattern -import io.legado.app.data.appDb -import io.legado.app.exception.RegexTimeoutException -import io.legado.app.help.RuleBigDataHelp -import io.legado.app.help.config.AppConfig -import io.legado.app.model.analyzeRule.AnalyzeUrl -import io.legado.app.model.analyzeRule.RuleDataInterface -import io.legado.app.utils.ChineseUtils -import io.legado.app.utils.GSON -import io.legado.app.utils.MD5Utils -import io.legado.app.utils.NetworkUtils -import io.legado.app.utils.fromJsonObject -import io.legado.app.utils.replace -import io.legado.app.utils.toastOnUi -import kotlinx.coroutines.CancellationException -import kotlinx.parcelize.IgnoredOnParcel -import kotlinx.parcelize.Parcelize -import splitties.init.appCtx - -@Parcelize -@Entity( - tableName = "chapters", - primaryKeys = ["url", "bookUrl"], - indices = [(Index(value = ["bookUrl"], unique = false)), - (Index(value = ["bookUrl", "index"], unique = true))], - foreignKeys = [(ForeignKey( - entity = Book::class, - parentColumns = ["bookUrl"], - childColumns = ["bookUrl"], - onDelete = ForeignKey.CASCADE - ))] -) // 删除书籍时自动删除章节 -data class BookChapter( - var url: String = "", // 章节地址 - var title: String = "", // 章节标题 - var isVolume: Boolean = false, // 是否是卷名 - var baseUrl: String = "", // 用来拼接相对url - var bookUrl: String = "", // 书籍地址 - var index: Int = 0, // 章节序号 - var isVip: Boolean = false, // 是否VIP - var isPay: Boolean = false, // 是否已购买 - var resourceUrl: String? = null, // 音频真实URL - var tag: String? = null, // 更新时间或其他章节附加信息 - var start: Long? = null, // 章节起始位置 - var end: Long? = null, // 章节终止位置 - var startFragmentId: String? = null, //EPUB书籍当前章节的fragmentId - var endFragmentId: String? = null, //EPUB书籍下一章节的fragmentId - var variable: String? = null //变量 -) : Parcelable, RuleDataInterface { - - @delegate:Transient - @delegate:Ignore - @IgnoredOnParcel - override val variableMap: HashMap by lazy { - GSON.fromJsonObject>(variable).getOrNull() ?: hashMapOf() - } - - @Ignore - @IgnoredOnParcel - var titleMD5: String? = null - - override fun putVariable(key: String, value: String?): Boolean { - if (super.putVariable(key, value)) { - variable = GSON.toJson(variableMap) - } - return true - } - - override fun putBigVariable(key: String, value: String?) { - RuleBigDataHelp.putChapterVariable(bookUrl, url, key, value) - } - - override fun getBigVariable(key: String): String? { - return RuleBigDataHelp.getChapterVariable(bookUrl, url, key) - } - - override fun hashCode() = url.hashCode() - - override fun equals(other: Any?): Boolean { - if (other is BookChapter) { - return other.url == url - } - return false - } - - fun primaryStr(): String { - return bookUrl + url - } - - fun getDisplayTitle( - replaceRules: List? = null, - useReplace: Boolean = true, - chineseConvert: Boolean = true, - ): String { - var displayTitle = title.replace(AppPattern.rnRegex, "") - if (chineseConvert) { - when (AppConfig.chineseConverterType) { - 1 -> displayTitle = ChineseUtils.t2s(displayTitle) - 2 -> displayTitle = ChineseUtils.s2t(displayTitle) - } - } - if (useReplace && replaceRules != null) kotlin.run { - replaceRules.forEach { item -> - if (item.pattern.isNotEmpty()) { - try { - val mDisplayTitle = if (item.isRegex) { - displayTitle.replace( - item.regex, - item.replacement, - item.getValidTimeoutMillisecond() - ) - } else { - displayTitle.replace(item.pattern, item.replacement) - } - if (mDisplayTitle.isNotBlank()) { - displayTitle = mDisplayTitle - } - } catch (e: RegexTimeoutException) { - item.isEnabled = false - appDb.replaceRuleDao.update(item) - } catch (e: CancellationException) { - return@run - } catch (e: Exception) { - AppLog.put("${item.name}替换出错\n替换内容\n${displayTitle}", e) - appCtx.toastOnUi("${item.name}替换出错") - } - } - } - } - return when { - !isVip -> displayTitle - isPay -> appCtx.getString(R.string.payed_title, displayTitle) - else -> appCtx.getString(R.string.vip_title, displayTitle) - } - } - - fun getAbsoluteURL(): String { - //二级目录解析的卷链接为空 返回目录页的链接 - if (url.startsWith(title) && isVolume) return baseUrl - val urlMatcher = AnalyzeUrl.paramPattern.matcher(url) - val urlBefore = if (urlMatcher.find()) url.substring(0, urlMatcher.start()) else url - val urlAbsoluteBefore = NetworkUtils.getAbsoluteURL(baseUrl, urlBefore) - return if (urlBefore.length == url.length) { - urlAbsoluteBefore - } else { - "$urlAbsoluteBefore," + url.substring(urlMatcher.end()) - } - } - - private fun ensureTitleMD5Init() { - if (titleMD5 == null) { - titleMD5 = MD5Utils.md5Encode16(title) - } - } - - @SuppressLint("DefaultLocale") - @Suppress("unused") - fun getFileName(suffix: String = "nb"): String { - ensureTitleMD5Init() - return String.format("%05d-%s.%s", index, titleMD5, suffix) - } - - @SuppressLint("DefaultLocale") - @Suppress("unused") - fun getFontName(): String { - ensureTitleMD5Init() - return String.format("%05d-%s.ttf", index, titleMD5) - } -} - diff --git a/entry/schemas/data/entities/BookChapterReview.kt b/entry/schemas/data/entities/BookChapterReview.kt deleted file mode 100644 index 64a838f4..00000000 --- a/entry/schemas/data/entities/BookChapterReview.kt +++ /dev/null @@ -1,15 +0,0 @@ -package io.legado.app.data.entities - -import android.os.Parcelable -import androidx.room.ColumnInfo -import kotlinx.parcelize.Parcelize - -@Parcelize -class BookChapterReview( - @ColumnInfo(defaultValue = "0") - var bookId: Long = 0, - var chapterId: Long = 0, - var summaryUrl: String = "", -): Parcelable { - -} diff --git a/entry/schemas/data/entities/BookGroup.kt b/entry/schemas/data/entities/BookGroup.kt deleted file mode 100644 index f97974cb..00000000 --- a/entry/schemas/data/entities/BookGroup.kt +++ /dev/null @@ -1,74 +0,0 @@ -package io.legado.app.data.entities - -import android.content.Context -import android.os.Parcelable -import androidx.room.ColumnInfo -import androidx.room.Entity -import androidx.room.PrimaryKey -import io.legado.app.R -import io.legado.app.help.config.AppConfig -import kotlinx.parcelize.Parcelize - -@Parcelize -@Entity(tableName = "book_groups") -data class BookGroup( - @PrimaryKey - val groupId: Long = 0b1, - var groupName: String, - var cover: String? = null, - var order: Int = 0, - @ColumnInfo(defaultValue = "1") - var enableRefresh: Boolean = true, - @ColumnInfo(defaultValue = "1") - var show: Boolean = true, - @ColumnInfo(defaultValue = "-1") - var bookSort: Int = -1 -) : Parcelable { - - companion object { - const val IdRoot = -100L - const val IdAll = -1L - const val IdLocal = -2L - const val IdAudio = -3L - const val IdNetNone = -4L - const val IdLocalNone = -5L - const val IdError = -11L - } - - fun getManageName(context: Context): String { - return when (groupId) { - IdAll -> "$groupName(${context.getString(R.string.all)})" - IdAudio -> "$groupName(${context.getString(R.string.audio)})" - IdLocal -> "$groupName(${context.getString(R.string.local)})" - IdNetNone -> "$groupName(${context.getString(R.string.net_no_group)})" - IdLocalNone -> "$groupName(${context.getString(R.string.local_no_group)})" - IdError -> "$groupName(${context.getString(R.string.update_book_fail)})" - else -> groupName - } - } - - fun getRealBookSort(): Int { - if (bookSort < 0) { - return AppConfig.bookshelfSort - } - return bookSort - } - - override fun hashCode(): Int { - return groupId.hashCode() - } - - override fun equals(other: Any?): Boolean { - if (other is BookGroup) { - return other.groupId == groupId - && other.groupName == groupName - && other.cover == cover - && other.bookSort == bookSort - && other.enableRefresh == enableRefresh - && other.show == show - && other.order == order - } - return false - } - -} \ No newline at end of file diff --git a/entry/schemas/data/entities/BookProgress.kt b/entry/schemas/data/entities/BookProgress.kt deleted file mode 100644 index d5fd70d1..00000000 --- a/entry/schemas/data/entities/BookProgress.kt +++ /dev/null @@ -1,21 +0,0 @@ -package io.legado.app.data.entities - -data class BookProgress( - val name: String, - val author: String, - val durChapterIndex: Int, - val durChapterPos: Int, - val durChapterTime: Long, - val durChapterTitle: String? -) { - - constructor(book: Book) : this( - name = book.name, - author = book.author, - durChapterIndex = book.durChapterIndex, - durChapterPos = book.durChapterPos, - durChapterTime = book.durChapterTime, - durChapterTitle = book.durChapterTitle - ) - -} \ No newline at end of file diff --git a/entry/schemas/data/entities/BookSource.kt b/entry/schemas/data/entities/BookSource.kt deleted file mode 100644 index d2ac6002..00000000 --- a/entry/schemas/data/entities/BookSource.kt +++ /dev/null @@ -1,310 +0,0 @@ -package io.legado.app.data.entities - -import android.os.Parcelable -import android.text.TextUtils -import androidx.room.ColumnInfo -import androidx.room.Entity -import androidx.room.Index -import androidx.room.PrimaryKey -import androidx.room.TypeConverter -import androidx.room.TypeConverters -import io.legado.app.constant.AppPattern -import io.legado.app.constant.BookSourceType -import io.legado.app.data.entities.rule.BookInfoRule -import io.legado.app.data.entities.rule.ContentRule -import io.legado.app.data.entities.rule.ExploreRule -import io.legado.app.data.entities.rule.ReviewRule -import io.legado.app.data.entities.rule.SearchRule -import io.legado.app.data.entities.rule.TocRule -import io.legado.app.utils.GSON -import io.legado.app.utils.fromJsonObject -import io.legado.app.utils.splitNotBlank -import kotlinx.parcelize.Parcelize - -@Suppress("unused") -@Parcelize -@TypeConverters(BookSource.Converters::class) -@Entity( - tableName = "book_sources", - indices = [(Index(value = ["bookSourceUrl"], unique = false))] -) -data class BookSource( - // 地址,包括 http/https - @PrimaryKey - var bookSourceUrl: String = "", - // 名称 - var bookSourceName: String = "", - // 分组 - var bookSourceGroup: String? = null, - // 类型,0 文本,1 音频, 2 图片, 3 文件(指的是类似知轩藏书只提供下载的网站) - @BookSourceType.Type - var bookSourceType: Int = 0, - // 详情页url正则 - var bookUrlPattern: String? = null, - // 手动排序编号 - @ColumnInfo(defaultValue = "0") - var customOrder: Int = 0, - // 是否启用 - @ColumnInfo(defaultValue = "1") - var enabled: Boolean = true, - // 启用发现 - @ColumnInfo(defaultValue = "1") - var enabledExplore: Boolean = true, - // js库 - override var jsLib: String? = null, - // 启用okhttp CookieJAr 自动保存每次请求的cookie - @ColumnInfo(defaultValue = "0") - override var enabledCookieJar: Boolean? = true, - // 并发率 - override var concurrentRate: String? = null, - // 请求头 - override var header: String? = null, - // 登录地址 - override var loginUrl: String? = null, - // 登录UI - override var loginUi: String? = null, - // 登录检测js - var loginCheckJs: String? = null, - // 封面解密js - var coverDecodeJs: String? = null, - // 注释 - var bookSourceComment: String? = null, - // 自定义变量说明 - var variableComment: String? = null, - // 最后更新时间,用于排序 - var lastUpdateTime: Long = 0, - // 响应时间,用于排序 - var respondTime: Long = 180000L, - // 智能排序的权重 - var weight: Int = 0, - // 发现url - var exploreUrl: String? = null, - // 发现筛选规则 - var exploreScreen: String? = null, - // 发现规则 - var ruleExplore: ExploreRule? = null, - // 搜索url - var searchUrl: String? = null, - // 搜索规则 - var ruleSearch: SearchRule? = null, - // 书籍信息页规则 - var ruleBookInfo: BookInfoRule? = null, - // 目录页规则 - var ruleToc: TocRule? = null, - // 正文页规则 - var ruleContent: ContentRule? = null, - // 段评规则 - var ruleReview: ReviewRule? = null -) : Parcelable, BaseSource { - - override fun getTag(): String { - return bookSourceName - } - - override fun getKey(): String { - return bookSourceUrl - } - - override fun hashCode(): Int { - return bookSourceUrl.hashCode() - } - - override fun equals(other: Any?): Boolean { - return if (other is BookSource) other.bookSourceUrl == bookSourceUrl else false - } - - fun getSearchRule(): SearchRule { - ruleSearch?.let { return it } - val rule = SearchRule() - ruleSearch = rule - return rule - } - - fun getExploreRule(): ExploreRule { - ruleExplore?.let { return it } - val rule = ExploreRule() - ruleExplore = rule - return rule - } - - fun getBookInfoRule(): BookInfoRule { - ruleBookInfo?.let { return it } - val rule = BookInfoRule() - ruleBookInfo = rule - return rule - } - - fun getTocRule(): TocRule { - ruleToc?.let { return it } - val rule = TocRule() - ruleToc = rule - return rule - } - - fun getContentRule(): ContentRule { - ruleContent?.let { return it } - val rule = ContentRule() - ruleContent = rule - return rule - } - - fun getReviewRule(): ReviewRule { - ruleReview?.let { return it } - val rule = ReviewRule() - ruleReview = rule - return rule - } - - fun getDisPlayNameGroup(): String { - return if (bookSourceGroup.isNullOrBlank()) { - bookSourceName - } else { - String.format("%s (%s)", bookSourceName, bookSourceGroup) - } - } - - fun addGroup(groups: String): BookSource { - bookSourceGroup?.splitNotBlank(AppPattern.splitGroupRegex)?.toHashSet()?.let { - it.addAll(groups.splitNotBlank(AppPattern.splitGroupRegex)) - bookSourceGroup = TextUtils.join(",", it) - } - if (bookSourceGroup.isNullOrBlank()) bookSourceGroup = groups - return this - } - - fun removeGroup(groups: String): BookSource { - bookSourceGroup?.splitNotBlank(AppPattern.splitGroupRegex)?.toHashSet()?.let { - it.removeAll(groups.splitNotBlank(AppPattern.splitGroupRegex).toSet()) - bookSourceGroup = TextUtils.join(",", it) - } - return this - } - - fun hasGroup(group: String): Boolean { - bookSourceGroup?.splitNotBlank(AppPattern.splitGroupRegex)?.toHashSet()?.let { - return it.indexOf(group) != -1 - } - return false - } - - fun removeInvalidGroups() { - removeGroup(getInvalidGroupNames()) - } - - fun removeErrorComment() { - bookSourceComment = bookSourceComment - ?.split("\n\n") - ?.filterNot { - it.startsWith("// Error: ") - }?.joinToString("\n") - } - - fun addErrorComment(e: Throwable) { - bookSourceComment = - "// Error: ${e.localizedMessage}" + if (bookSourceComment.isNullOrBlank()) - "" else "\n\n${bookSourceComment}" - } - - fun getCheckKeyword(default: String): String { - ruleSearch?.checkKeyWord?.let { - if (it.isNotBlank()) { - return it - } - } - return default - } - - fun getInvalidGroupNames(): String { - return bookSourceGroup?.splitNotBlank(AppPattern.splitGroupRegex)?.toHashSet()?.filter { - "失效" in it || it == "校验超时" - }?.joinToString() ?: "" - } - - fun getDisplayVariableComment(otherComment: String): String { - return if (variableComment.isNullOrBlank()) { - otherComment - } else { - "${variableComment}\n$otherComment" - } - } - - fun equal(source: BookSource): Boolean { - return equal(bookSourceName, source.bookSourceName) - && equal(bookSourceUrl, source.bookSourceUrl) - && equal(bookSourceGroup, source.bookSourceGroup) - && bookSourceType == source.bookSourceType - && equal(bookUrlPattern, source.bookUrlPattern) - && equal(bookSourceComment, source.bookSourceComment) - && customOrder == source.customOrder - && enabled == source.enabled - && enabledExplore == source.enabledExplore - && enabledCookieJar == source.enabledCookieJar - && equal(variableComment, source.variableComment) - && equal(concurrentRate, source.concurrentRate) - && equal(jsLib, source.jsLib) - && equal(header, source.header) - && equal(loginUrl, source.loginUrl) - && equal(loginUi, source.loginUi) - && equal(loginCheckJs, source.loginCheckJs) - && equal(coverDecodeJs, source.coverDecodeJs) - && equal(exploreUrl, source.exploreUrl) - && equal(searchUrl, source.searchUrl) - && getSearchRule() == source.getSearchRule() - && getExploreRule() == source.getExploreRule() - && getBookInfoRule() == source.getBookInfoRule() - && getTocRule() == source.getTocRule() - && getContentRule() == source.getContentRule() - } - - private fun equal(a: String?, b: String?) = a == b || (a.isNullOrEmpty() && b.isNullOrEmpty()) - - class Converters { - - @TypeConverter - fun exploreRuleToString(exploreRule: ExploreRule?): String = - GSON.toJson(exploreRule) - - @TypeConverter - fun stringToExploreRule(json: String?) = - GSON.fromJsonObject(json).getOrNull() - - @TypeConverter - fun searchRuleToString(searchRule: SearchRule?): String = - GSON.toJson(searchRule) - - @TypeConverter - fun stringToSearchRule(json: String?) = - GSON.fromJsonObject(json).getOrNull() - - @TypeConverter - fun bookInfoRuleToString(bookInfoRule: BookInfoRule?): String = - GSON.toJson(bookInfoRule) - - @TypeConverter - fun stringToBookInfoRule(json: String?) = - GSON.fromJsonObject(json).getOrNull() - - @TypeConverter - fun tocRuleToString(tocRule: TocRule?): String = - GSON.toJson(tocRule) - - @TypeConverter - fun stringToTocRule(json: String?) = - GSON.fromJsonObject(json).getOrNull() - - @TypeConverter - fun contentRuleToString(contentRule: ContentRule?): String = - GSON.toJson(contentRule) - - @TypeConverter - fun stringToContentRule(json: String?) = - GSON.fromJsonObject(json).getOrNull() - - @TypeConverter - fun stringToReviewRule(json: String?): ReviewRule? = null - - @TypeConverter - fun reviewRuleToString(reviewRule: ReviewRule?): String = "null" - - } -} \ No newline at end of file diff --git a/entry/schemas/data/entities/BookSourcePart.kt b/entry/schemas/data/entities/BookSourcePart.kt deleted file mode 100644 index 2cd48c6e..00000000 --- a/entry/schemas/data/entities/BookSourcePart.kt +++ /dev/null @@ -1,73 +0,0 @@ -package io.legado.app.data.entities - -import android.text.TextUtils -import io.legado.app.constant.AppPattern -import io.legado.app.data.appDb -import io.legado.app.utils.splitNotBlank - - -data class BookSourcePart( - // 地址,包括 http/https - var bookSourceUrl: String = "", - // 名称 - var bookSourceName: String = "", - // 分组 - var bookSourceGroup: String? = null, - // 手动排序编号 - var customOrder: Int = 0, - // 是否启用 - var enabled: Boolean = true, - // 启用发现 - var enabledExplore: Boolean = true, - // 是否有登录地址 - var hasLoginUrl: Boolean = false, - // 最后更新时间,用于排序 - var lastUpdateTime: Long = 0, - // 响应时间,用于排序 - var respondTime: Long = 180000L, - // 智能排序的权重 - var weight: Int = 0, - // 是否有发现url - var hasExploreUrl: Boolean = false -) { - - override fun hashCode(): Int { - return bookSourceUrl.hashCode() - } - - override fun equals(other: Any?): Boolean { - return if (other is BookSourcePart) other.bookSourceUrl == bookSourceUrl else false - } - - fun getDisPlayNameGroup(): String { - return if (bookSourceGroup.isNullOrBlank()) { - bookSourceName - } else { - String.format("%s (%s)", bookSourceName, bookSourceGroup) - } - } - - fun getBookSource(): BookSource? { - return appDb.bookSourceDao.getBookSource(bookSourceUrl) - } - - fun addGroup(groups: String) { - bookSourceGroup?.splitNotBlank(AppPattern.splitGroupRegex)?.toHashSet()?.let { - it.addAll(groups.splitNotBlank(AppPattern.splitGroupRegex)) - bookSourceGroup = TextUtils.join(",", it) - } - if (bookSourceGroup.isNullOrBlank()) bookSourceGroup = groups - } - - fun removeGroup(groups: String) { - bookSourceGroup?.splitNotBlank(AppPattern.splitGroupRegex)?.toHashSet()?.let { - it.removeAll(groups.splitNotBlank(AppPattern.splitGroupRegex).toSet()) - bookSourceGroup = TextUtils.join(",", it) - } - } - -} - -fun List.toBookSource(): List { - return mapNotNull { it.getBookSource() } -} diff --git a/entry/schemas/data/entities/Bookmark.kt b/entry/schemas/data/entities/Bookmark.kt deleted file mode 100644 index 10939704..00000000 --- a/entry/schemas/data/entities/Bookmark.kt +++ /dev/null @@ -1,24 +0,0 @@ -package io.legado.app.data.entities - -import android.os.Parcelable -import androidx.room.Entity -import androidx.room.Index -import androidx.room.PrimaryKey -import kotlinx.parcelize.Parcelize - -@Parcelize -@Entity( - tableName = "bookmarks", - indices = [(Index(value = ["bookName", "bookAuthor"], unique = false))] -) -data class Bookmark( - @PrimaryKey - val time: Long = System.currentTimeMillis(), - val bookName: String = "", - val bookAuthor: String = "", - var chapterIndex: Int = 0, - var chapterPos: Int = 0, - var chapterName: String = "", - var bookText: String = "", - var content: String = "" -) : Parcelable \ No newline at end of file diff --git a/entry/schemas/data/entities/Cache.kt b/entry/schemas/data/entities/Cache.kt deleted file mode 100644 index f9687dea..00000000 --- a/entry/schemas/data/entities/Cache.kt +++ /dev/null @@ -1,13 +0,0 @@ -package io.legado.app.data.entities - -import androidx.room.Entity -import androidx.room.Index -import androidx.room.PrimaryKey - -@Entity(tableName = "caches", indices = [(Index(value = ["key"], unique = true))]) -data class Cache( - @PrimaryKey - val key: String = "", - var value: String? = null, - var deadline: Long = 0L -) \ No newline at end of file diff --git a/entry/schemas/data/entities/Cookie.kt b/entry/schemas/data/entities/Cookie.kt deleted file mode 100644 index 8e12febf..00000000 --- a/entry/schemas/data/entities/Cookie.kt +++ /dev/null @@ -1,12 +0,0 @@ -package io.legado.app.data.entities - -import androidx.room.Entity -import androidx.room.Index -import androidx.room.PrimaryKey - -@Entity(tableName = "cookies", indices = [(Index(value = ["url"], unique = true))]) -data class Cookie( - @PrimaryKey - var url: String = "", - var cookie: String = "" -) \ No newline at end of file diff --git a/entry/schemas/data/entities/DictRule.kt b/entry/schemas/data/entities/DictRule.kt deleted file mode 100644 index 32df2a20..00000000 --- a/entry/schemas/data/entities/DictRule.kt +++ /dev/null @@ -1,48 +0,0 @@ -package io.legado.app.data.entities - -import androidx.room.ColumnInfo -import androidx.room.Entity -import androidx.room.PrimaryKey -import io.legado.app.model.analyzeRule.AnalyzeRule -import io.legado.app.model.analyzeRule.AnalyzeUrl - -/** - * 字典规则 - */ -@Entity(tableName = "dictRules") -data class DictRule( - @PrimaryKey - var name: String = "", - var urlRule: String = "", - var showRule: String = "", - @ColumnInfo(defaultValue = "1") - var enabled: Boolean = true, - @ColumnInfo(defaultValue = "0") - var sortNumber: Int = 0 -) { - - override fun hashCode(): Int { - return name.hashCode() - } - - override fun equals(other: Any?): Boolean { - if (other is DictRule) { - return name == other.name - } - return false - } - - /** - * 搜索字典 - */ - suspend fun search(word: String): String { - val analyzeUrl = AnalyzeUrl(urlRule, key = word) - val body = analyzeUrl.getStrResponseAwait().body - if (showRule.isBlank()) { - return body!! - } - val analyzeRule = AnalyzeRule() - return analyzeRule.getString(showRule, mContent = body) - } - -} \ No newline at end of file diff --git a/entry/schemas/data/entities/HttpTTS.kt b/entry/schemas/data/entities/HttpTTS.kt deleted file mode 100644 index 040bb6b3..00000000 --- a/entry/schemas/data/entities/HttpTTS.kt +++ /dev/null @@ -1,83 +0,0 @@ -package io.legado.app.data.entities - -import androidx.room.ColumnInfo -import androidx.room.Entity -import androidx.room.PrimaryKey -import com.jayway.jsonpath.DocumentContext -import io.legado.app.utils.GSON -import io.legado.app.utils.jsonPath -import io.legado.app.utils.readLong -import io.legado.app.utils.readString - -/** - * 在线朗读引擎 - */ -@Entity(tableName = "httpTTS") -data class HttpTTS( - @PrimaryKey - val id: Long = System.currentTimeMillis(), - var name: String = "", - var url: String = "", - var contentType: String? = null, - @ColumnInfo(defaultValue = "0") - override var concurrentRate: String? = "0", - override var loginUrl: String? = null, - override var loginUi: String? = null, - override var header: String? = null, - override var jsLib: String? = null, - @ColumnInfo(defaultValue = "0") - override var enabledCookieJar: Boolean? = false, - var loginCheckJs: String? = null, - @ColumnInfo(defaultValue = "0") - var lastUpdateTime: Long = System.currentTimeMillis() -) : BaseSource { - - override fun getTag(): String { - return name - } - - override fun getKey(): String { - return "httpTts:$id" - } - - @Suppress("MemberVisibilityCanBePrivate") - companion object { - - fun fromJsonDoc(doc: DocumentContext): Result { - return kotlin.runCatching { - val loginUi = doc.read("$.loginUi") - HttpTTS( - id = doc.readLong("$.id") ?: System.currentTimeMillis(), - name = doc.readString("$.name")!!, - url = doc.readString("$.url")!!, - contentType = doc.readString("$.contentType"), - concurrentRate = doc.readString("$.concurrentRate"), - loginUrl = doc.readString("$.loginUrl"), - loginUi = if (loginUi is List<*>) GSON.toJson(loginUi) else loginUi?.toString(), - header = doc.readString("$.header"), - loginCheckJs = doc.readString("$.loginCheckJs") - ) - } - } - - fun fromJson(json: String): Result { - return fromJsonDoc(jsonPath.parse(json)) - } - - fun fromJsonArray(jsonArray: String): Result> { - return kotlin.runCatching { - val sources = arrayListOf() - val doc = jsonPath.parse(jsonArray).read>("$") - doc.forEach { - val jsonItem = jsonPath.parse(it) - fromJsonDoc(jsonItem).getOrThrow().let { source -> - sources.add(source) - } - } - return@runCatching sources - } - } - - } - -} \ No newline at end of file diff --git a/entry/schemas/data/entities/KeyboardAssist.kt b/entry/schemas/data/entities/KeyboardAssist.kt deleted file mode 100644 index 7cab2211..00000000 --- a/entry/schemas/data/entities/KeyboardAssist.kt +++ /dev/null @@ -1,20 +0,0 @@ -package io.legado.app.data.entities - -import android.os.Parcelable -import androidx.room.ColumnInfo -import androidx.room.Entity -import kotlinx.parcelize.Parcelize - - -@Parcelize -@Entity(tableName = "keyboardAssists", primaryKeys = ["type", "key"]) -data class KeyboardAssist( - @ColumnInfo(defaultValue = "0") - var type: Int = 0, - @ColumnInfo(defaultValue = "") - var key: String, - @ColumnInfo(defaultValue = "") - var value: String, - @ColumnInfo(defaultValue = "0") - var serialNo: Int = 0 -) : Parcelable \ No newline at end of file diff --git a/entry/schemas/data/entities/ReadRecord.kt b/entry/schemas/data/entities/ReadRecord.kt deleted file mode 100644 index c1638ac3..00000000 --- a/entry/schemas/data/entities/ReadRecord.kt +++ /dev/null @@ -1,14 +0,0 @@ -package io.legado.app.data.entities - -import androidx.room.ColumnInfo -import androidx.room.Entity - -@Entity(tableName = "readRecord", primaryKeys = ["deviceId", "bookName"]) -data class ReadRecord( - var deviceId: String = "", - var bookName: String = "", - @ColumnInfo(defaultValue = "0") - var readTime: Long = 0L, - @ColumnInfo(defaultValue = "0") - var lastRead: Long = System.currentTimeMillis() -) \ No newline at end of file diff --git a/entry/schemas/data/entities/ReadRecordShow.kt b/entry/schemas/data/entities/ReadRecordShow.kt deleted file mode 100644 index 29327027..00000000 --- a/entry/schemas/data/entities/ReadRecordShow.kt +++ /dev/null @@ -1,7 +0,0 @@ -package io.legado.app.data.entities - -data class ReadRecordShow( - var bookName: String, - var readTime: Long, - var lastRead: Long -) \ No newline at end of file diff --git a/entry/schemas/data/entities/ReplaceRule.kt b/entry/schemas/data/entities/ReplaceRule.kt deleted file mode 100644 index e3b87e31..00000000 --- a/entry/schemas/data/entities/ReplaceRule.kt +++ /dev/null @@ -1,121 +0,0 @@ -package io.legado.app.data.entities - -import android.os.Parcelable -import android.text.TextUtils -import androidx.room.ColumnInfo -import androidx.room.Entity -import androidx.room.Ignore -import androidx.room.Index -import androidx.room.PrimaryKey -import io.legado.app.R -import io.legado.app.constant.AppLog -import io.legado.app.exception.NoStackTraceException -import kotlinx.parcelize.IgnoredOnParcel -import kotlinx.parcelize.Parcelize -import splitties.init.appCtx -import java.util.regex.Pattern -import java.util.regex.PatternSyntaxException - -@Parcelize -@Entity( - tableName = "replace_rules", - indices = [(Index(value = ["id"]))] -) -data class ReplaceRule( - @PrimaryKey(autoGenerate = true) - var id: Long = System.currentTimeMillis(), - //名称 - @ColumnInfo(defaultValue = "") - var name: String = "", - //分组 - var group: String? = null, - //替换内容 - @ColumnInfo(defaultValue = "") - var pattern: String = "", - //替换为 - @ColumnInfo(defaultValue = "") - var replacement: String = "", - //作用范围 - var scope: String? = null, - //作用于标题 - @ColumnInfo(defaultValue = "0") - var scopeTitle: Boolean = false, - //作用于正文 - @ColumnInfo(defaultValue = "1") - var scopeContent: Boolean = true, - //排除范围 - var excludeScope: String? = null, - //是否启用 - @ColumnInfo(defaultValue = "1") - var isEnabled: Boolean = true, - //是否正则 - @ColumnInfo(defaultValue = "1") - var isRegex: Boolean = true, - //超时时间 - @ColumnInfo(defaultValue = "3000") - var timeoutMillisecond: Long = 3000L, - //排序 - @ColumnInfo(name = "sortOrder", defaultValue = "0") - var order: Int = Int.MIN_VALUE -) : Parcelable { - - override fun equals(other: Any?): Boolean { - if (other is ReplaceRule) { - return other.id == id - } - return super.equals(other) - } - - override fun hashCode(): Int { - return id.hashCode() - } - - @delegate:Transient - @delegate:Ignore - @IgnoredOnParcel - val regex: Regex by lazy { - pattern.toRegex() - } - - fun getDisplayNameGroup(): String { - return if (group.isNullOrBlank()) { - name - } else { - String.format("%s (%s)", name, group) - } - } - - fun isValid(): Boolean { - if (TextUtils.isEmpty(pattern)) { - return false - } - //判断正则表达式是否正确 - if (isRegex) { - try { - Pattern.compile(pattern) - } catch (ex: PatternSyntaxException) { - AppLog.put("正则语法错误或不支持:${ex.localizedMessage}", ex) - return false - } - // Pattern.compile测试通过,但是部分情况下会替换超时,报错,一般发生在修改表达式时漏删了 - if (pattern.endsWith('|') && !pattern.endsWith("\\|")) { - return false - } - } - return true - } - - @Throws(NoStackTraceException::class) - fun checkValid() { - if (!isValid()) { - throw NoStackTraceException(appCtx.getString(R.string.replace_rule_invalid)) - } - } - - fun getValidTimeoutMillisecond(): Long { - if (timeoutMillisecond <= 0) { - return 3000L - } - return timeoutMillisecond - } -} \ No newline at end of file diff --git a/entry/schemas/data/entities/RssArticle.kt b/entry/schemas/data/entities/RssArticle.kt deleted file mode 100644 index c7eee2fa..00000000 --- a/entry/schemas/data/entities/RssArticle.kt +++ /dev/null @@ -1,54 +0,0 @@ -package io.legado.app.data.entities - -import androidx.room.Entity -import androidx.room.Ignore -import io.legado.app.utils.GSON -import io.legado.app.utils.fromJsonObject -import kotlinx.parcelize.IgnoredOnParcel - - -@Entity( - tableName = "rssArticles", - primaryKeys = ["origin", "link"] -) -data class RssArticle( - override var origin: String = "", - var sort: String = "", - var title: String = "", - var order: Long = 0, - override var link: String = "", - var pubDate: String? = null, - var description: String? = null, - var content: String? = null, - var image: String? = null, - var read: Boolean = false, - override var variable: String? = null -) : BaseRssArticle { - - override fun hashCode() = link.hashCode() - - override fun equals(other: Any?): Boolean { - other ?: return false - return if (other is RssArticle) origin == other.origin && link == other.link else false - } - - @delegate:Transient - @delegate:Ignore - @IgnoredOnParcel - override val variableMap: HashMap by lazy { - GSON.fromJsonObject>(variable).getOrNull() ?: hashMapOf() - } - - fun toStar() = RssStar( - origin = origin, - sort = sort, - title = title, - starTime = System.currentTimeMillis(), - link = link, - pubDate = pubDate, - description = description, - content = content, - image = image, - variable = variable - ) -} diff --git a/entry/schemas/data/entities/RssReadRecord.kt b/entry/schemas/data/entities/RssReadRecord.kt deleted file mode 100644 index 9fe86ae6..00000000 --- a/entry/schemas/data/entities/RssReadRecord.kt +++ /dev/null @@ -1,10 +0,0 @@ -package io.legado.app.data.entities - -import androidx.room.Entity -import androidx.room.PrimaryKey - -@Entity(tableName = "rssReadRecords") -data class RssReadRecord( - @PrimaryKey val record: String, - val read: Boolean = true -) \ No newline at end of file diff --git a/entry/schemas/data/entities/RssSource.kt b/entry/schemas/data/entities/RssSource.kt deleted file mode 100644 index 4057a986..00000000 --- a/entry/schemas/data/entities/RssSource.kt +++ /dev/null @@ -1,182 +0,0 @@ -package io.legado.app.data.entities - -import android.os.Parcelable -import android.text.TextUtils -import androidx.room.ColumnInfo -import androidx.room.Entity -import androidx.room.Index -import androidx.room.PrimaryKey -import io.legado.app.constant.AppPattern -import io.legado.app.utils.splitNotBlank -import kotlinx.parcelize.Parcelize - -@Parcelize -@Entity(tableName = "rssSources", indices = [(Index(value = ["sourceUrl"], unique = false))]) -data class RssSource( - @PrimaryKey - var sourceUrl: String = "", - // 名称 - var sourceName: String = "", - // 图标 - var sourceIcon: String = "", - // 分组 - var sourceGroup: String? = null, - // 注释 - var sourceComment: String? = null, - // 是否启用 - var enabled: Boolean = true, - // 自定义变量说明 - var variableComment: String? = null, - // js库 - override var jsLib: String? = null, - // 启用okhttp CookieJAr 自动保存每次请求的cookie - @ColumnInfo(defaultValue = "0") - override var enabledCookieJar: Boolean? = true, - /**并发率**/ - override var concurrentRate: String? = null, - /**请求头**/ - override var header: String? = null, - /**登录地址**/ - override var loginUrl: String? = null, - /**登录Ui**/ - override var loginUi: String? = null, - /**登录检测js**/ - var loginCheckJs: String? = null, - /**封面解密js**/ - var coverDecodeJs: String? = null, - /**分类Url**/ - var sortUrl: String? = null, - /**是否单url源**/ - var singleUrl: Boolean = false, - /*列表规则*/ - /**列表样式,0,1,2**/ - @ColumnInfo(defaultValue = "0") - var articleStyle: Int = 0, - /**列表规则**/ - var ruleArticles: String? = null, - /**下一页规则**/ - var ruleNextPage: String? = null, - /**标题规则**/ - var ruleTitle: String? = null, - /**发布日期规则**/ - var rulePubDate: String? = null, - /*webView规则*/ - /**描述规则**/ - var ruleDescription: String? = null, - /**图片规则**/ - var ruleImage: String? = null, - /**链接规则**/ - var ruleLink: String? = null, - /**正文规则**/ - var ruleContent: String? = null, - /**正文url白名单**/ - var contentWhitelist: String? = null, - /**正文url黑名单**/ - var contentBlacklist: String? = null, - /** - * 跳转url拦截, - * js, 返回true拦截,js变量url,可以通过js打开url,比如调用阅读搜索,添加书架等,简化规则写法,不用webView js注入 - * **/ - var shouldOverrideUrlLoading: String? = null, - /**webView样式**/ - var style: String? = null, - @ColumnInfo(defaultValue = "1") - var enableJs: Boolean = true, - @ColumnInfo(defaultValue = "1") - var loadWithBaseUrl: Boolean = true, - /**注入js**/ - var injectJs: String? = null, - /*其它规则*/ - /**最后更新时间,用于排序**/ - @ColumnInfo(defaultValue = "0") - var lastUpdateTime: Long = 0, - @ColumnInfo(defaultValue = "0") - var customOrder: Int = 0 -) : Parcelable, BaseSource { - - override fun getTag(): String { - return sourceName - } - - override fun getKey(): String { - return sourceUrl - } - - override fun equals(other: Any?): Boolean { - if (other is RssSource) { - return other.sourceUrl == sourceUrl - } - return false - } - - override fun hashCode() = sourceUrl.hashCode() - - fun equal(source: RssSource): Boolean { - return equal(sourceUrl, source.sourceUrl) - && equal(sourceName, source.sourceName) - && equal(sourceIcon, source.sourceIcon) - && enabled == source.enabled - && equal(sourceGroup, source.sourceGroup) - && enabledCookieJar == source.enabledCookieJar - && equal(sourceComment, source.sourceComment) - && equal(concurrentRate, source.concurrentRate) - && equal(header, source.header) - && equal(loginUrl, source.loginUrl) - && equal(loginUi, source.loginUi) - && equal(loginCheckJs, source.loginCheckJs) - && equal(coverDecodeJs, source.coverDecodeJs) - && equal(sortUrl, source.sortUrl) - && singleUrl == source.singleUrl - && articleStyle == source.articleStyle - && equal(ruleArticles, source.ruleArticles) - && equal(ruleNextPage, source.ruleNextPage) - && equal(ruleTitle, source.ruleTitle) - && equal(rulePubDate, source.rulePubDate) - && equal(ruleDescription, source.ruleDescription) - && equal(ruleLink, source.ruleLink) - && equal(ruleContent, source.ruleContent) - && enableJs == source.enableJs - && loadWithBaseUrl == source.loadWithBaseUrl - && equal(variableComment, source.variableComment) - && equal(style, source.style) - && equal(injectJs, source.injectJs) - } - - private fun equal(a: String?, b: String?): Boolean { - return a == b || (a.isNullOrEmpty() && b.isNullOrEmpty()) - } - - fun getDisplayNameGroup(): String { - return if (sourceGroup.isNullOrBlank()) { - sourceName - } else { - String.format("%s (%s)", sourceName, sourceGroup) - } - } - - fun addGroup(groups: String): RssSource { - sourceGroup?.splitNotBlank(AppPattern.splitGroupRegex)?.toHashSet()?.let { - it.addAll(groups.splitNotBlank(AppPattern.splitGroupRegex)) - sourceGroup = TextUtils.join(",", it) - } - if (sourceGroup.isNullOrBlank()) sourceGroup = groups - return this - } - - fun removeGroup(groups: String): RssSource { - sourceGroup?.splitNotBlank(AppPattern.splitGroupRegex)?.toHashSet()?.let { - it.removeAll(groups.splitNotBlank(AppPattern.splitGroupRegex).toSet()) - sourceGroup = TextUtils.join(",", it) - } - return this - } - - fun getDisplayVariableComment(otherComment: String): String { - return if (variableComment.isNullOrBlank()) { - otherComment - } else { - "${variableComment}\n$otherComment" - } - } - -} diff --git a/entry/schemas/data/entities/RssStar.kt b/entry/schemas/data/entities/RssStar.kt deleted file mode 100644 index fc5a1199..00000000 --- a/entry/schemas/data/entities/RssStar.kt +++ /dev/null @@ -1,45 +0,0 @@ -package io.legado.app.data.entities - -import androidx.room.Entity -import androidx.room.Ignore -import io.legado.app.utils.GSON -import io.legado.app.utils.fromJsonObject -import kotlinx.parcelize.IgnoredOnParcel - - -@Entity( - tableName = "rssStars", - primaryKeys = ["origin", "link"] -) -data class RssStar( - override var origin: String = "", - var sort: String = "", - var title: String = "", - var starTime: Long = 0, - override var link: String = "", - var pubDate: String? = null, - var description: String? = null, - var content: String? = null, - var image: String? = null, - override var variable: String? = null -) : BaseRssArticle { - - @delegate:Transient - @delegate:Ignore - @IgnoredOnParcel - override val variableMap by lazy { - GSON.fromJsonObject>(variable).getOrNull() ?: hashMapOf() - } - - fun toRssArticle() = RssArticle( - origin = origin, - sort = sort, - title = title, - link = link, - pubDate = pubDate, - description = description, - content = content, - image = image, - variable = variable - ) -} diff --git a/entry/schemas/data/entities/RuleSub.kt b/entry/schemas/data/entities/RuleSub.kt deleted file mode 100644 index 2b43787f..00000000 --- a/entry/schemas/data/entities/RuleSub.kt +++ /dev/null @@ -1,16 +0,0 @@ -package io.legado.app.data.entities - -import androidx.room.Entity -import androidx.room.PrimaryKey - -@Entity(tableName = "ruleSubs") -data class RuleSub( - @PrimaryKey - val id: Long = System.currentTimeMillis(), - var name: String = "", - var url: String = "", - var type: Int = 0, - var customOrder: Int = 0, - var autoUpdate: Boolean = false, - var update: Long = System.currentTimeMillis() -) diff --git a/entry/schemas/data/entities/SearchBook.kt b/entry/schemas/data/entities/SearchBook.kt deleted file mode 100644 index 1b054cb7..00000000 --- a/entry/schemas/data/entities/SearchBook.kt +++ /dev/null @@ -1,121 +0,0 @@ -package io.legado.app.data.entities - -import android.content.Context -import android.os.Parcelable -import androidx.room.* -import io.legado.app.R -import io.legado.app.constant.BookType -import io.legado.app.utils.GSON -import io.legado.app.utils.fromJsonObject -import kotlinx.parcelize.IgnoredOnParcel -import kotlinx.parcelize.Parcelize - -@Parcelize -@Entity( - tableName = "searchBooks", - indices = [(Index(value = ["bookUrl"], unique = true)), - (Index(value = ["origin"], unique = false))], - foreignKeys = [(ForeignKey( - entity = BookSource::class, - parentColumns = ["bookSourceUrl"], - childColumns = ["origin"], - onDelete = ForeignKey.CASCADE - ))] -) -data class SearchBook( - @PrimaryKey - override var bookUrl: String = "", - /** 书源 */ - var origin: String = "", - var originName: String = "", - /** BookType */ - var type: Int = BookType.text, - override var name: String = "", - override var author: String = "", - override var kind: String? = null, - var coverUrl: String? = null, - var intro: String? = null, - override var wordCount: String? = null, - var latestChapterTitle: String? = null, - /** 目录页Url (toc=table of Contents) */ - var tocUrl: String = "", - var time: Long = System.currentTimeMillis(), - override var variable: String? = null, - var originOrder: Int = 0, - var chapterWordCountText: String? = null, - @ColumnInfo(defaultValue = "-1") - var chapterWordCount: Int = -1, - @ColumnInfo(defaultValue = "-1") - var respondTime: Int = -1 -) : Parcelable, BaseBook, Comparable { - - @Ignore - @IgnoredOnParcel - override var infoHtml: String? = null - - @Ignore - @IgnoredOnParcel - override var tocHtml: String? = null - - override fun equals(other: Any?) = other is SearchBook && other.bookUrl == bookUrl - - override fun hashCode() = bookUrl.hashCode() - - override fun compareTo(other: SearchBook): Int { - return other.originOrder - this.originOrder - } - - @delegate:Transient - @delegate:Ignore - @IgnoredOnParcel - override val variableMap: HashMap by lazy { - GSON.fromJsonObject>(variable).getOrNull() ?: HashMap() - } - - @delegate:Transient - @delegate:Ignore - @IgnoredOnParcel - val origins: LinkedHashSet by lazy { linkedSetOf(origin) } - - fun addOrigin(origin: String) { - origins.add(origin) - } - - fun getDisplayLastChapterTitle(): String { - latestChapterTitle?.let { - if (it.isNotEmpty()) { - return it - } - } - return "无最新章节" - } - - fun trimIntro(context: Context): String { - val trimIntro = intro?.trim() - return if (trimIntro.isNullOrEmpty()) { - context.getString(R.string.intro_show_null) - } else { - context.getString(R.string.intro_show, trimIntro) - } - } - - fun toBook() = Book( - name = name, - author = author, - kind = kind, - bookUrl = bookUrl, - origin = origin, - originName = originName, - type = type, - wordCount = wordCount, - latestChapterTitle = latestChapterTitle, - coverUrl = coverUrl, - intro = intro, - tocUrl = tocUrl, - originOrder = originOrder, - variable = variable - ).apply { - this.infoHtml = this@SearchBook.infoHtml - this.tocHtml = this@SearchBook.tocHtml - } -} \ No newline at end of file diff --git a/entry/schemas/data/entities/SearchKeyword.kt b/entry/schemas/data/entities/SearchKeyword.kt deleted file mode 100644 index 6d46eb90..00000000 --- a/entry/schemas/data/entities/SearchKeyword.kt +++ /dev/null @@ -1,20 +0,0 @@ -package io.legado.app.data.entities - -import android.os.Parcelable -import androidx.room.Entity -import androidx.room.Index -import androidx.room.PrimaryKey -import kotlinx.parcelize.Parcelize - - -@Parcelize -@Entity(tableName = "search_keywords", indices = [(Index(value = ["word"], unique = true))]) -data class SearchKeyword( - /** 搜索关键词 */ - @PrimaryKey - var word: String = "", - /** 使用次数 */ - var usage: Int = 1, - /** 最后一次使用时间 */ - var lastUseTime: Long = System.currentTimeMillis() -) : Parcelable diff --git a/entry/schemas/data/entities/Server.kt b/entry/schemas/data/entities/Server.kt deleted file mode 100644 index c8d58072..00000000 --- a/entry/schemas/data/entities/Server.kt +++ /dev/null @@ -1,57 +0,0 @@ -package io.legado.app.data.entities - -import android.os.Parcelable -import androidx.room.Entity -import androidx.room.PrimaryKey -import io.legado.app.utils.GSON -import io.legado.app.utils.fromJsonObject -import kotlinx.parcelize.Parcelize -import org.json.JSONObject - -/** - * 服务器 - */ -@Parcelize -@Entity(tableName = "servers") -data class Server( - @PrimaryKey - var id: Long = System.currentTimeMillis(), - var name: String = "", - var type: TYPE = TYPE.WEBDAV, - var config: String? = null, - var sortNumber: Int = 0 -) : Parcelable { - - enum class TYPE { - WEBDAV - } - - override fun hashCode(): Int { - return id.hashCode() - } - - override fun equals(other: Any?): Boolean { - if (other is Server) { - return id == other.id - } - return false - } - - fun getConfigJsonObject(): JSONObject? { - val json = config - json ?: return null - return JSONObject(json) - } - - fun getWebDavConfig(): WebDavConfig? { - return if (type == TYPE.WEBDAV) GSON.fromJsonObject(config).getOrNull() else null - } - - @Parcelize - data class WebDavConfig( - var url: String, - var username: String, - var password: String - ) : Parcelable - -} \ No newline at end of file diff --git a/entry/schemas/data/entities/TxtTocRule.kt b/entry/schemas/data/entities/TxtTocRule.kt deleted file mode 100644 index e62651f9..00000000 --- a/entry/schemas/data/entities/TxtTocRule.kt +++ /dev/null @@ -1,29 +0,0 @@ -package io.legado.app.data.entities - -import androidx.room.Entity -import androidx.room.PrimaryKey - - -@Entity(tableName = "txtTocRules") -data class TxtTocRule( - @PrimaryKey - var id: Long = System.currentTimeMillis(), - var name: String = "", - var rule: String = "", - var example: String? = null, - var serialNumber: Int = -1, - var enable: Boolean = true -) { - - override fun hashCode(): Int { - return id.hashCode() - } - - override fun equals(other: Any?): Boolean { - if (other is TxtTocRule) { - return id == other.id - } - return false - } - -} \ No newline at end of file diff --git a/entry/schemas/data/entities/rule/BookInfoRule.kt b/entry/schemas/data/entities/rule/BookInfoRule.kt deleted file mode 100644 index 54fd6390..00000000 --- a/entry/schemas/data/entities/rule/BookInfoRule.kt +++ /dev/null @@ -1,42 +0,0 @@ -package io.legado.app.data.entities.rule - -import android.os.Parcelable -import com.google.gson.JsonDeserializer -import io.legado.app.utils.INITIAL_GSON -import kotlinx.parcelize.Parcelize - -/** - * 书籍详情页规则 - */ -@Parcelize -data class BookInfoRule( - var init: String? = null, - var name: String? = null, - var author: String? = null, - var intro: String? = null, - var kind: String? = null, - var lastChapter: String? = null, - var updateTime: String? = null, - var coverUrl: String? = null, - var tocUrl: String? = null, - var wordCount: String? = null, - var canReName: String? = null, - var downloadUrls: String? = null -) : Parcelable { - - companion object { - - val jsonDeserializer = JsonDeserializer { json, _, _ -> - when { - json.isJsonObject -> INITIAL_GSON.fromJson(json, BookInfoRule::class.java) - json.isJsonPrimitive -> INITIAL_GSON.fromJson( - json.asString, - BookInfoRule::class.java - ) - else -> null - } - } - - } - -} \ No newline at end of file diff --git a/entry/schemas/data/entities/rule/BookListRule.kt b/entry/schemas/data/entities/rule/BookListRule.kt deleted file mode 100644 index 60015b99..00000000 --- a/entry/schemas/data/entities/rule/BookListRule.kt +++ /dev/null @@ -1,17 +0,0 @@ -package io.legado.app.data.entities.rule - -/** - * 书籍列表规则 - */ -interface BookListRule { - var bookList: String? - var name: String? - var author: String? - var intro: String? - var kind: String? - var lastChapter: String? - var updateTime: String? - var bookUrl: String? - var coverUrl: String? - var wordCount: String? -} \ No newline at end of file diff --git a/entry/schemas/data/entities/rule/ContentRule.kt b/entry/schemas/data/entities/rule/ContentRule.kt deleted file mode 100644 index aef45366..00000000 --- a/entry/schemas/data/entities/rule/ContentRule.kt +++ /dev/null @@ -1,41 +0,0 @@ -package io.legado.app.data.entities.rule - -import android.os.Parcelable -import com.google.gson.JsonDeserializer -import io.legado.app.utils.INITIAL_GSON -import kotlinx.parcelize.Parcelize - -/** - * 正文处理规则 - */ -@Parcelize -data class ContentRule( - var content: String? = null, - var title: String? = null, //有些网站只能在正文中获取标题 - var nextContentUrl: String? = null, - var webJs: String? = null, - var sourceRegex: String? = null, - var replaceRegex: String? = null, //替换规则 - var imageStyle: String? = null, //默认大小居中,FULL最大宽度 - var imageDecode: String? = null, //图片bytes二次解密js, 返回解密后的bytes - var payAction: String? = null, //购买操作,js或者包含{{js}}的url -) : Parcelable { - - - companion object { - - val jsonDeserializer = JsonDeserializer { json, _, _ -> - when { - json.isJsonObject -> INITIAL_GSON.fromJson(json, ContentRule::class.java) - json.isJsonPrimitive -> INITIAL_GSON.fromJson( - json.asString, - ContentRule::class.java - ) - else -> null - } - } - - } - - -} \ No newline at end of file diff --git a/entry/schemas/data/entities/rule/ExploreKind.kt b/entry/schemas/data/entities/rule/ExploreKind.kt deleted file mode 100644 index 658be1a0..00000000 --- a/entry/schemas/data/entities/rule/ExploreKind.kt +++ /dev/null @@ -1,42 +0,0 @@ -package io.legado.app.data.entities.rule - -/** - * 发现分类 - */ -data class ExploreKind( - val title: String, - val url: String? = null, - val style: Style? = null -) { - - companion object { - val defaultStyle = Style() - } - - fun style(): Style { - return style ?: defaultStyle - } - - data class Style( - val layout_flexGrow: Float = 0F, - val layout_flexShrink: Float = 1F, - val layout_alignSelf: String = "auto", - val layout_flexBasisPercent: Float = -1F, - val layout_wrapBefore: Boolean = false, - ) { - - fun alignSelf(): Int { - return when (layout_alignSelf) { - "auto" -> -1 - "flex_start" -> 0 - "flex_end" -> 1 - "center" -> 2 - "baseline" -> 3 - "stretch" -> 4 - else -> -1 - } - } - - } - -} \ No newline at end of file diff --git a/entry/schemas/data/entities/rule/ExploreRule.kt b/entry/schemas/data/entities/rule/ExploreRule.kt deleted file mode 100644 index 6871515e..00000000 --- a/entry/schemas/data/entities/rule/ExploreRule.kt +++ /dev/null @@ -1,40 +0,0 @@ -package io.legado.app.data.entities.rule - -import android.os.Parcelable -import com.google.gson.JsonDeserializer -import io.legado.app.utils.INITIAL_GSON -import kotlinx.parcelize.Parcelize - -/** - * 发现结果规则 - */ -@Parcelize -data class ExploreRule( - override var bookList: String? = null, - override var name: String? = null, - override var author: String? = null, - override var intro: String? = null, - override var kind: String? = null, - override var lastChapter: String? = null, - override var updateTime: String? = null, - override var bookUrl: String? = null, - override var coverUrl: String? = null, - override var wordCount: String? = null -) : BookListRule, Parcelable { - - companion object { - - val jsonDeserializer = JsonDeserializer { json, _, _ -> - when { - json.isJsonObject -> INITIAL_GSON.fromJson(json, ExploreRule::class.java) - json.isJsonPrimitive -> INITIAL_GSON.fromJson( - json.asString, - ExploreRule::class.java - ) - else -> null - } - } - - } - -} \ No newline at end of file diff --git a/entry/schemas/data/entities/rule/ReviewRule.kt b/entry/schemas/data/entities/rule/ReviewRule.kt deleted file mode 100644 index ad995343..00000000 --- a/entry/schemas/data/entities/rule/ReviewRule.kt +++ /dev/null @@ -1,36 +0,0 @@ -package io.legado.app.data.entities.rule - -import android.os.Parcelable -import com.google.gson.JsonDeserializer -import io.legado.app.utils.INITIAL_GSON -import kotlinx.parcelize.Parcelize - -@Parcelize -data class ReviewRule( - var reviewUrl: String? = null, // 段评URL - var avatarRule: String? = null, // 段评发布者头像 - var contentRule: String? = null, // 段评内容 - var postTimeRule: String? = null, // 段评发布时间 - var reviewQuoteUrl: String? = null, // 获取段评回复URL - - // 这些功能将在以上功能完成以后实现 - var voteUpUrl: String? = null, // 点赞URL - var voteDownUrl: String? = null, // 点踩URL - var postReviewUrl: String? = null, // 发送回复URL - var postQuoteUrl: String? = null, // 发送回复段评URL - var deleteUrl: String? = null, // 删除段评URL -) : Parcelable { - - companion object { - - val jsonDeserializer = JsonDeserializer { json, _, _ -> - when { - json.isJsonObject -> INITIAL_GSON.fromJson(json, ReviewRule::class.java) - json.isJsonPrimitive -> INITIAL_GSON.fromJson(json.asString, ReviewRule::class.java) - else -> null - } - } - - } - -} diff --git a/entry/schemas/data/entities/rule/RowUi.kt b/entry/schemas/data/entities/rule/RowUi.kt deleted file mode 100644 index ff488489..00000000 --- a/entry/schemas/data/entities/rule/RowUi.kt +++ /dev/null @@ -1,21 +0,0 @@ -package io.legado.app.data.entities.rule - -import android.os.Parcelable -import kotlinx.parcelize.Parcelize - -@Parcelize -data class RowUi( - var name: String, - var type: String = "text", - var action: String? = null -) : Parcelable { - - object Type { - - const val text = "text" - const val password = "password" - const val button = "button" - - } - -} \ No newline at end of file diff --git a/entry/schemas/data/entities/rule/SearchRule.kt b/entry/schemas/data/entities/rule/SearchRule.kt deleted file mode 100644 index ba8cda45..00000000 --- a/entry/schemas/data/entities/rule/SearchRule.kt +++ /dev/null @@ -1,39 +0,0 @@ -package io.legado.app.data.entities.rule - -import android.os.Parcelable -import com.google.gson.JsonDeserializer -import io.legado.app.utils.INITIAL_GSON -import kotlinx.parcelize.Parcelize - -/** - * 搜索结果处理规则 - */ -@Parcelize -data class SearchRule( - /**校验关键字**/ - var checkKeyWord: String? = null, - override var bookList: String? = null, - override var name: String? = null, - override var author: String? = null, - override var intro: String? = null, - override var kind: String? = null, - override var lastChapter: String? = null, - override var updateTime: String? = null, - override var bookUrl: String? = null, - override var coverUrl: String? = null, - override var wordCount: String? = null -) : BookListRule, Parcelable { - - companion object { - - val jsonDeserializer = JsonDeserializer { json, _, _ -> - when { - json.isJsonObject -> INITIAL_GSON.fromJson(json, SearchRule::class.java) - json.isJsonPrimitive -> INITIAL_GSON.fromJson(json.asString, SearchRule::class.java) - else -> null - } - } - - } - -} \ No newline at end of file diff --git a/entry/schemas/data/entities/rule/TocRule.kt b/entry/schemas/data/entities/rule/TocRule.kt deleted file mode 100644 index f525e912..00000000 --- a/entry/schemas/data/entities/rule/TocRule.kt +++ /dev/null @@ -1,34 +0,0 @@ -package io.legado.app.data.entities.rule - -import android.os.Parcelable -import com.google.gson.JsonDeserializer -import io.legado.app.utils.INITIAL_GSON -import kotlinx.parcelize.Parcelize - -@Parcelize -data class TocRule( - var preUpdateJs: String? = null, - var chapterList: String? = null, - var chapterName: String? = null, - var chapterUrl: String? = null, - var formatJs: String? = null, - var isVolume: String? = null, - var isVip: String? = null, - var isPay: String? = null, - var updateTime: String? = null, - var nextTocUrl: String? = null -) : Parcelable { - - companion object { - - val jsonDeserializer = JsonDeserializer { json, _, _ -> - when { - json.isJsonObject -> INITIAL_GSON.fromJson(json, TocRule::class.java) - json.isJsonPrimitive -> INITIAL_GSON.fromJson(json.asString, TocRule::class.java) - else -> null - } - } - - } - -} \ No newline at end of file diff --git a/entry/src/main/ets/database/AppDatabase/index.ets b/entry/src/main/ets/database/AppDatabase/index.ets deleted file mode 100644 index 0ae4c8fe..00000000 --- a/entry/src/main/ets/database/AppDatabase/index.ets +++ /dev/null @@ -1,2380 +0,0 @@ -import { AppDataBaseType } from '../types/AppDatabaseType' - -export default { - "formatVersion": 1, - "database": { - "version": 1, - "identityHash": "6e17b5366286b868f2912c12d6d8e467", - "entities": [ - { - "tableName": "books", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` ( `id` INTEGER NOT NULL, `bookUrl` TEXT, `toUrl` TEXT, `origin` TEXT, `originName` TEXT, `bookName` TEXT NOT NULL, `author` TEXT, `cover` TEXT, `customTag` TEXT, `coverUrl` TEXT, `customCoverUrl` TEXT, `intro` TEXT, `customIntro` TEXT, `charset` TEXT, `bookGroup` INTEGER NOT NULL DEFAULT 3, `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, `sort` INTEGER NOT NULL DEFAULT 0, `originOrder` INTEGER NOT NULL DEFAULT 0, `syncTime` INTEGER NOT NULL DEFAULT 0, `bookType` INTEGER NOT NULL DEFAULT 0, `isTop` INTEGER NOT NULL DEFAULT 0, `createTime` INTEGER NOT NULL DEFAULT 0,`updateTime` INTEGER NOT NULL DEFAULT 0,`isJoin` INTEGER NOT NULL DEFAULT 1, `isLocalBook` INTEGER NOT NULL DEFAULT 0,PRIMARY KEY ( `id` ))", - "fields": [ - { - "fieldPath": "id", - "columnName": "id", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "bookUrl", - "columnName": "bookUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "toUrl", - "columnName": "toUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "origin", - "columnName": "origin", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "originName", - "columnName": "originName", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "bookName", - "columnName": "bookName", - "affinity": "TEXT", - "notNull": true, - "defaultValue":"" - }, - { - "fieldPath": "author", - "columnName": "author", - "affinity": "TEXT", - "notNull": true, - "defaultValue": "" - }, - { - "fieldPath": "cover", - "columnName": "cover", - "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": "bookGroup", - "columnName": "bookGroup", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "3" - }, - { - "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", - "boolean": true, - "notNull": true, - "defaultValue": "1" - }, - { - "fieldPath": "sort", - "columnName": "sort", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "originOrder", - "columnName": "originOrder", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "syncTime", - "columnName": "syncTime", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "bookType", - "columnName": "bookType", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "isTop", - "columnName": "isTop", - "affinity": "isTop", - "boolean": true, - "notNull": true, - "defaultValue": "1" - }, - { - "fieldPath": "createTime", - "columnName": "createTime", - "affinity": "INTEGER", - "notNull": false - }, - { - "fieldPath": "updateTime", - "columnName": "updateTime", - "affinity": "INTEGER", - "notNull": false - }, - { - "fieldPath": "isJoin", - "columnName": "isJoin", - "affinity": "INTEGER", - "boolean": true, - "notNull": true, - "defaultValue": "1" - }, - { - "fieldPath": "isLocalBook", - "columnName": "isLocalBook", - "affinity": "INTEGER", - "boolean": true, - "notNull": true, - "defaultValue": "0" - } - ], - "primaryKey": { - "autoGenerate": false, - "columnNames": [ - "id" - ] - }, - "indices": [ - { - "name": "index_books_bookName_author", - "unique": true, - "columnNames": [ - "bookName", - "author" - ], - "orders": [], - "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_books_bookName_author` ON `${TABLE_NAME}` (`bookName`, `author`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "book_groups", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`groupId` INTEGER NOT NULL, `groupName` TEXT NOT NULL, `coverUrl` TEXT, `groupDescribe` TEXT, `sort` INTEGER NOT NULL, `enableRefresh` INTEGER NOT NULL DEFAULT 1, `show` INTEGER NOT NULL DEFAULT 1, `groupType` INTEGER NOT NULL DEFAULT 0, `createTime` INTEGER NOT NULL DEFAULT 0, `updateTime` INTEGER NOT NULL DEFAULT 0, `bookSort` INTEGER NOT NULL DEFAULT -1, `canUpdate` INTEGER NOT NULL DEFAULT 0, `coverOnly` INTEGER NOT NULL DEFAULT 0, `coverType` INTEGER NOT NULL DEFAULT 0, `canDelete` INTEGER NOT NULL DEFAULT 1, `isTop` INTEGER NOT NULL DEFAULT 0,`isSystem` INTEGER NOT NULL DEFAULT 0,`bookIds` TEXT,PRIMARY KEY(`groupId`))", - "fields": [ - { - "fieldPath": "groupId", - "columnName": "groupId", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "groupName", - "columnName": "groupName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "coverUrl", - "columnName": "coverUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath":"groupDescribe", - "columnName": "groupDescribe", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "sort", - "columnName": "sort", - "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": "groupType", - "columnName": "groupType", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "createTime", - "columnName": "createTime", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "updateTime", - "columnName": "updateTime", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "bookSort", - "columnName": "bookSort", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "-1" - }, - { - "fieldPath": "coverOnly", - "columnName": "coverOnly", - "affinity": "INTEGER", - "boolean": true, - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "coverType", - "columnName": "coverType", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - } - , - { - "fieldPath": "canUpdate", - "columnName": "canUpdate", - "affinity": "INTEGER", - "boolean": true, - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "canDelete", - "columnName": "canDelete", - "affinity": "INTEGER", - "boolean": true, - "notNull": true, - "defaultValue": "1" - }, - { - "fieldPath": "isTop", - "columnName": "isTop", - "affinity": "INTEGER", - "boolean": true, - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "isSystem", - "columnName": "isSystem", - "affinity": "INTEGER", - "boolean": true, - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "bookIds", - "columnName": "bookIds", - "affinity": "TEXT", - "notNull": false - } - ], - "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, `bookSourceGrade` INTEGER NOT NULL DEFAULT 2, `isTop` INTEGER NOT NULL DEFAULT 0, `showExplore` INTEGER NOT NULL DEFAULT 1, `showRecentIcon` INTEGER NOT NULL DEFAULT 1, `bookSourceScore` TEXT NOT NULL DEFAULT `5.0分`, `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": "bookSourceGrade", - "columnName": "bookSourceGrade", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "bookSourceScore", - "columnName": "bookSourceScore", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "customOrder", - "columnName": "customOrder", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "enabled", - "columnName": "enabled", - "affinity": "INTEGER", - "boolean": true, - "notNull": true, - "defaultValue": "1" - }, - { - "fieldPath": "enabledExplore", - "columnName": "enabledExplore", - "affinity": "INTEGER", - "boolean": true, - "notNull": true, - "defaultValue": "1" - }, - { - "fieldPath": "jsLib", - "columnName": "jsLib", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "enabledCookieJar", - "columnName": "enabledCookieJar", - "affinity": "INTEGER", - "boolean": true, - "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 - }, - { - "fieldPath": "isTop", - "columnName": "isTop", - "affinity": "INTEGER", - "boolean": true, - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "showRecentIcon", - "columnName": "showRecentIcon", - "affinity": "INTEGER", - "boolean": true, - "notNull": true, - "defaultValue": "1" - }, - { - "fieldPath": "showExplore", - "columnName": "showExplore", - "affinity": "INTEGER", - "boolean": true, - "notNull": true, - "defaultValue": "1" - } - ], - "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}` (`id` INTEGER NOT NULL, `sourceType` INTEGER NOT NULL ,`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,`variable` TEXT, `rssListRule` TEXT,`rssWebViewRule` TEXT,`sourceIconIsUrl` INTEGER ,`showRecentIcon` INTEGER NOT NULL DEFAULT 1, `customOrder` INTEGER NOT NULL DEFAULT 0, `customizeTitle` TEXT, PRIMARY KEY(`id`))", - "fields": [ - { - "fieldPath": "id", - "columnName": "id", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "sourceType", - "columnName": "sourceType", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "1" - }, - { - "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", - "boolean": true, - "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": "sourceIconIsUrl", - "columnName": "sourceIconIsUrl", - "affinity": "INTEGER", - "boolean": true, - "notNull": false, - "defaultValue": "0" - }, - { - "fieldPath": "variable", - "columnName": "variable", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "rssListRule", - "columnName": "rssListRule", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "rssWebViewRule", - "columnName": "rssWebViewRule", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "showRecentIcon", - "columnName": "showRecentIcon", - "affinity": "INTEGER", - "boolean": true, - "notNull": true, - "defaultValue": "1" - }, - { - "fieldPath": "lastUpdateTime", - "columnName": "lastUpdateTime", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "customOrder", - "columnName": "customOrder", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "customizeTitle", - "columnName": "customizeTitle", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "autoComplete", - "columnName": "autoComplete", - "affinity": "INTEGER", - "boolean": true, - "notNull": true, - "defaultValue": "0" - }, - ], - "primaryKey": { - "autoGenerate": false, - "columnNames": [ - "id" - ] - }, - "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": [] - }, - { - "tableName": "rss_sources_history", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`sourceType` INTEGER NOT NULL ,`sourceGroup` TEXT,`sourceUrl` TEXT NOT NULL, `sourceName` TEXT NOT NULL, `sourceIcon` TEXT NOT NULL,`lastUpdateTime` INTEGER NOT NULL DEFAULT 0,`sourceIconIsUrl` INTEGER ,`showRecentIcon` INTEGER NOT NULL DEFAULT 1 ,`autoComplete` INTEGER NOT NULL DEFAULT 0,`customizeTitle` TEXT, PRIMARY KEY(`sourceUrl`))", - "fields": [ - { - "fieldPath": "sourceType", - "columnName": "sourceType", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "1" - }, - { - "fieldPath": "sourceUrl", - "columnName": "sourceUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "sourceGroup", - "columnName": "sourceGroup", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "sourceName", - "columnName": "sourceName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "sourceIcon", - "columnName": "sourceIcon", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "sourceIconIsUrl", - "columnName": "sourceIconIsUrl", - "affinity": "INTEGER", - "boolean": true, - "notNull": false, - "defaultValue": "0" - }, - { - "fieldPath": "showRecentIcon", - "columnName": "showRecentIcon", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "1" - }, - { - "fieldPath": "lastUpdateTime", - "columnName": "lastUpdateTime", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "customizeTitle", - "columnName": "customizeTitle", - "affinity": "TEXT", - "notNull": false - }, - ], - "primaryKey": { - "autoGenerate": false, - "columnNames": [ - "sourceUrl" - ] - }, - "indices": [], - "foreignKeys": [] - }, - { - "tableName": "works_lists", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`worksId` INTEGER NOT NULL, `worksName` TEXT NOT NULL, `worksDescribe` TEXT NOT NULL, `worksRemark` TEXT NOT NULL, `worksCoverUrl` TEXT NOT NULL, `createTime` INTEGER NOT NULL, `updateTime` INTEGER NOT NULL, `worksType` INTEGER NOT NULL, `worksBookNum` INTEGER NOT NULL, `worksBookList` TEXT, `isTop` INTEGER NOT NULL DEFAULT 0,PRIMARY KEY(`worksId`))", - "fields": [ - { - "fieldPath": "worksId", - "columnName": "worksId", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "worksName", - "columnName": "worksName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "worksDescribe", - "columnName": "worksDescribe", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "worksRemark", - "columnName": "worksRemark", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "worksCoverUrl", - "columnName": "worksCoverUrl", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "createTime", - "columnName": "createTime", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "updateTime", - "columnName": "updateTime", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "worksType", - "columnName": "worksType", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "worksBookNum", - "columnName": "worksBookNum", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "worksBookList", - "columnName": "worksBookList", - "affinity": "TEXT", - "notNull": false - }, - { - "fieldPath": "isTop", - "columnName": "isTop", - "affinity": "isTop", - "boolean": true, - "notNull": true, - "defaultValue": "0" - }, - ], - "primaryKey": { - "autoGenerate": false, - "columnNames": [ - "worksId" - ] - }, - "indices": [ - { - "name": "index_works_lists_worksName", - "unique": false, - "columnNames": [ - "worksName" - ], - "orders": [], - "createSql": "CREATE INDEX IF NOT EXISTS `index_works_lists_worksName` ON `${TABLE_NAME}` (`worksName`)" - } - ], - "foreignKeys": [] - }, - { - "tableName": "book_history", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER NOT NULL, `bookName` TEXT NOT NULL, `author` TEXT NOT NULL, `durChapterTime` INTEGER NOT NULL, `durChapterIndex` INTEGER NOT NULL,`durChapterTitle` TEXT NOT NULL, `durChapterContent` TEXT NOT NULL,`sort` INTEGER NOT NULL, `bookType` INTEGER, `originBookId` INTEGER , `createTime` INTEGER NOT NULL, `updateTime` INTEGER NOT NULL,`bookUrl` TEXT NOT NULL,`coverUrl` TEXT NOT NULL,PRIMARY KEY(`id`))", - "fields": [ - { - "fieldPath": "id", - "columnName": "id", - "affinity": "INTEGER", - "notNull": true - }, - { - "fieldPath": "bookName", - "columnName": "bookName", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "author", - "columnName": "author", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "durChapterTime", - "columnName": "durChapterTime", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "durChapterIndex", - "columnName": "durChapterIndex", - "affinity": "INTEGER", - "notNull": true, - "defaultValue":"0" - }, - { - "fieldPath": "durChapterTitle", - "columnName": "durChapterTitle", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "durChapterContent", - "columnName": "durChapterContent", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "sort", - "columnName": "sort", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "bookType", - "columnName": "bookType", - "affinity": "INTEGER" - }, - { - "fieldPath": "originBookId", - "columnName": "originBookId", - "affinity": "INTEGER", - "notNull": false - }, - { - "fieldPath": "createTime", - "columnName": "createTime", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "updateTime", - "columnName": "updateTime", - "affinity": "INTEGER", - "notNull": true, - "defaultValue": "0" - }, - { - "fieldPath": "bookUrl", - "columnName": "bookUrl", - "affinity": "TEXT", - "notNull": true - }, - { - "fieldPath": "coverUrl", - "columnName": "coverUrl", - "affinity": "TEXT", - "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')" - ] - } -} as AppDataBaseType \ No newline at end of file diff --git a/entry/src/main/ets/database/AppDatabaseUtil.ets b/entry/src/main/ets/database/AppDatabaseUtil.ets deleted file mode 100644 index 61fbc549..00000000 --- a/entry/src/main/ets/database/AppDatabaseUtil.ets +++ /dev/null @@ -1,69 +0,0 @@ -import { FieldsType } from './types/AppDatabaseType' -import { ColumnInfo, ColumnValue, ColumnType } from './types/ColumnInfo' -import AppDatabase from './AppDatabase' -import DbUtil from '../common/utils/DbUtil' - -class AppDatabaseUtil { - getCreateSql(tableName: string) { - const entities = AppDatabase.database.entities - const tableInfo = entities.find(item => item.tableName === tableName) - return tableInfo?.createSql.replace('${TABLE_NAME}', tableName) - } - - getFields(tableName: string): FieldsType[] | undefined { - const entities = AppDatabase.database.entities - const tableInfo = entities.find(item => item.tableName === tableName) - return tableInfo?.fields - } - - // 检测表中的字段是否缺失,若是缺失则新增 - async existsTable(tableName: string) { - try { - const rowNames = await DbUtil.queryRowNames(tableName); - const fields = this.getFields(tableName) - if (!fields?.length) return - for (let index = 0; index < fields.length; index++) { - const element = fields[index]; - if (!rowNames.includes(element.columnName)) { - console.info(`TagInfo 数据表【${tableName}】缺失字段,开始新增字段:`, element.columnName) - let executeSql = `ALTER TABLE '${tableName}' ADD COLUMN '${element.columnName}' ${element.affinity}` - if (element.defaultValue) { - executeSql += ` DEFAULT '${element.defaultValue}'` - } - await DbUtil.executeSql(executeSql) - console.info('TagInfo', `数据表【${tableName}】新增字段【${element.columnName}】成功`) - } - } - } catch (e) { - console.info('TagInfo Error:', JSON.stringify(e)) - } - } - - getColumn(tableName: string) { - const entities = AppDatabase.database.entities - const tableInfo = entities.find(item => item.tableName === tableName) - return this.fieldsToColumnInfo(tableInfo?.fields || []) - } - - getAssignColumn(tableName: string, assignColumn: string[]) { - const columns = this.getColumn(tableName) - return columns.filter(item => assignColumn.includes(item.columnName)) - } - - fieldsToColumnInfo(fields: FieldsType[]): ColumnInfo[] { - return fields.map(item => { - const columnInfo: ColumnInfo = { - name: item.fieldPath, - // 数据库列名 - columnName: item.columnName, - // 列类型 - type: item.boolean ? ColumnType.BOOLEAN : ColumnValue[item.affinity], - defaultValue: item.defaultValue - } - return columnInfo - }) - } -} - -const appDatabaseUtil = new AppDatabaseUtil(); -export default appDatabaseUtil as AppDatabaseUtil; \ No newline at end of file diff --git a/entry/src/main/ets/database/dao/BookGroupsDao.ets b/entry/src/main/ets/database/dao/BookGroupsDao.ets deleted file mode 100644 index 168d3f97..00000000 --- a/entry/src/main/ets/database/dao/BookGroupsDao.ets +++ /dev/null @@ -1,398 +0,0 @@ -/** - * @author 2008 - * @datetime 2024/7/24 21:16 - * @className: BookGroupsDao - */ -import DbUtil from '../../common/utils/DbUtil'; -import AppDatabaseUtil from '../AppDatabaseUtil'; -import { BookGroupDb, BookGroups, ToBookGroups, ToBookGroupsDb } from '../entities/BookGroups'; -import { BookGroupTypeParams } from '../types/BookGroupType'; -import { ColumnInfo } from '../types/ColumnInfo'; - -class BookGroupsDao{ - TABLE_NAME: string = 'book_groups' - - // 创建books数据表 - async initGroupTable() { - try { - const createSql = AppDatabaseUtil.getCreateSql(this.TABLE_NAME); - if (!createSql) { - return - } - await DbUtil.createTable(createSql) - await AppDatabaseUtil.existsTable(this.TABLE_NAME) - this.initGroupData() - } catch (err) { - console.info('TagInfo', JSON.stringify(err)) - } - - } - - async search(params?:BookGroupTypeParams) { - const type = params?.type - try { - const column: ColumnInfo[] = AppDatabaseUtil.getColumn(this.TABLE_NAME); - let sql = `SELECT * FROM ${this.TABLE_NAME}`; - // 动态添加 WHERE 子句 - let whereClause: string[] = []; - if (type !== undefined){ - whereClause.push(`groupType = ${type} OR groupType = 123`); - } - // 如果有 where 子句,添加 WHERE 关键字 - if (whereClause.length > 0) { - sql += ` WHERE ${whereClause.join(' AND ')}`; - } - - sql += ` - ORDER BY - isSystem DESC, - isTop DESC, - sort ASC -`; - const groupDbList = await DbUtil.querySqlForList(sql, column); - const groupList = groupDbList.map((item): BookGroups => ToBookGroups(item)); - console.log("TagInfo", '书籍:' + groupDbList.length) - return groupList - } catch (err) { - console.log("TagInfo", JSON.stringify(err)) - return [] - } - } - - async searchHide(params?:BookGroupTypeParams) { - const type = params?.type - const show = params?.show - try { - const column: ColumnInfo[] = AppDatabaseUtil.getColumn(this.TABLE_NAME); - let sql = `SELECT * FROM ${this.TABLE_NAME}`; - // 动态添加 WHERE 子句 - let whereClause: string[] = []; - - if (type !== undefined){ - whereClause.push(`groupType = ${type}`); - } - if (show !== undefined){ - whereClause.push(`show = ${show}`); - } - // 如果有 where 子句,添加 WHERE 关键字 - if (whereClause.length > 0) { - sql += ` WHERE ${whereClause.join(' AND ')}`; - } - - sql += ` - ORDER BY - sort ASC -`; - const groupDbList = await DbUtil.querySqlForList(sql, column); - const groupList = groupDbList.map((item): BookGroups => ToBookGroups(item)); - console.log("TagInfo", '书籍:' + groupList.length) - return groupList - } catch (err) { - console.log("TagInfo", JSON.stringify(err)) - return [] - } - } - - - async batchInsert(group: BookGroups[]) { - try { - for (let index = 0; index < group.length; index++) { - const data = group[index]; - await this.insert(data) - } - return true - } catch (err) { - console.log('TagInfo, Error, ', JSON.stringify(err)) - return false - } - } - - async insert(group: BookGroups) { - try { - const column: ColumnInfo[] = AppDatabaseUtil.getColumn(this.TABLE_NAME); - if (group.groupId) { - const predicates = DbUtil.getPredicates(this.TABLE_NAME); - predicates.equalTo('groupId', group.groupId) - const count = await DbUtil.queryForCount(predicates, column) - if (count > 0) { - this.update(group) - return true - } - } - const bookGroupsDb = ToBookGroupsDb(group) - bookGroupsDb.createTime = Date.now() - await DbUtil.insert(this.TABLE_NAME, bookGroupsDb, column) - console.log('TagInfo', '创建成功') - return true - } catch (err) { - console.log('TagInfo, Error, ', JSON.stringify(err)) - return false - } - } - - async update(group: BookGroups) { - try { - const column: ColumnInfo[] = AppDatabaseUtil.getColumn(this.TABLE_NAME); - const predicates = DbUtil.getPredicates(this.TABLE_NAME); - predicates.equalTo('groupId', group.groupId) - const count = await DbUtil.queryForCount(predicates, column) - if (count === 0) { - this.insert(group) - return true - } - const bookGroupsDb = ToBookGroupsDb(group) - bookGroupsDb.updateTime = Date.now() - await DbUtil.update(predicates, bookGroupsDb, column) - return true - } catch (err) { - console.log('TagInfo, Error, ', JSON.stringify(err)) - return false - } - - } - - //删除订阅源历史记录 - async deleteBook(id: number[]) { - try { - const predicates = DbUtil.getPredicates(this.TABLE_NAME); - predicates.in('groupId', id) - await DbUtil.delete(predicates) - return true - } catch (err) { - console.log('TagInfo, Error, ', JSON.stringify(err)) - return false - } - } - - //置顶 - async isUpdateGroupTop(id: number, isTop: boolean) { - try { - const column: ColumnInfo[] = AppDatabaseUtil.getColumn(this.TABLE_NAME); - const predicates = DbUtil.getPredicates(this.TABLE_NAME); - predicates.equalTo('groupId', id) - const count = await DbUtil.queryForList(predicates, column) - if (column.length > 0) { - count.forEach((item) => { - item.isTop = isTop - item.updateTime = Date.now() - this.update(item) - }) - return true - } - return false - } catch (err) { - console.log('TagInfo, Error, ', JSON.stringify(err)) - return false - } - } - - //更新分组显示状态 - async updateGroupShow(id: number, show?: boolean) { - try { - const column: ColumnInfo[] = AppDatabaseUtil.getColumn(this.TABLE_NAME); - const predicates = DbUtil.getPredicates(this.TABLE_NAME); - predicates.equalTo('groupId', id) - const count = await DbUtil.queryForList(predicates, column) - if (column.length > 0) - count.forEach((item) => { - item.show = show||!item.show - item.updateTime = Date.now() - this.update(item) - }) - } catch (e){ - console.log('TagInfo, Error, ', JSON.stringify(e)) - } - } - - //系统初始分组数据 - async initGroupData() { - let initGroup = ['分组','全部','未分组','本地','书单'] - try { - const groupList = await this.search() - if (groupList.length > 0) { - return - } - for (let index = 0; index < initGroup.length; index++) { - let group = new BookGroups() - group.groupName = initGroup[index] - group.sort = 0 - group.show = true - group.groupType = 123 - group.canDelete = false - group.isSystem = true - group.isTop = true - group.bookIds = [] - await bookGroupsDao.insert(group) - } - }catch (e){ - console.log('TagInfo, Error, ', JSON.stringify(e)) - } - } - //根据分组groupId更新bookIds书籍id存在不做更新 - updateAddBookIds(groupId: number, bookIds: string[]) { - try { - const column: ColumnInfo[] = AppDatabaseUtil.getColumn(this.TABLE_NAME); - const predicates = DbUtil.getPredicates(this.TABLE_NAME); - predicates.equalTo('groupId', groupId) - //查询出来只有一个值 - DbUtil.queryForList(predicates, column).then((data) => { - data.forEach((item) => { - const groupList = ToBookGroups(item); - bookIds.forEach((bookId) => { - //存在将bookId不做添加 - if (groupList.bookIds?.includes(bookId)) { - return - } - if (groupList.bookIds) { - groupList.bookIds.push(bookId) - } else { - groupList.bookIds = [bookId] - } - }) - this.update(groupList) - console.log("TagInfo", '书籍bookIds:' + groupList.bookIds?.length + JSON.stringify(groupList.bookIds)) - }) - }) - } catch (e){ - console.log('TagInfo, Error, ', JSON.stringify(e)) - } - } - //同时在更新后将旧的分组的bookIds中的书籍id移除 - async updateMoveBookIdsByGroupId(data: Record) { - try { - const column: ColumnInfo[] = AppDatabaseUtil.getColumn(this.TABLE_NAME); - - const bookIds = Object.keys(data); - - for (const bookIdStr of bookIds) { - const bookId = Number(bookIdStr); - const oldGroupId = data[bookId]; - - const predicates = DbUtil.getPredicates(this.TABLE_NAME); - predicates.equalTo('groupId', oldGroupId); - - // 查询旧分组 - const groups = await DbUtil.queryForList(predicates, column); - if (groups.length > 0) { - const group = groups[0]; - const groupList = ToBookGroups(group); - - if (groupList.bookIds?.includes(bookId.toString())) { - // 移除旧分组中的 bookId - groupList.bookIds = groupList.bookIds.filter(item => item !== bookId.toString()); - await this.update(groupList); - } - } - } - } catch (e) { - console.log('updateMoveBookIdsByGroupId, Error, ', JSON.stringify(e)); - } - } - - async updateMoveGroupBookIds(ids: number[]) { - try { - const column: ColumnInfo[] = AppDatabaseUtil.getColumn(this.TABLE_NAME); - const predicates = DbUtil.getPredicates(this.TABLE_NAME); - // 确保 ids 数组的每个元素都是数字 - const validIds = ids.filter(id => typeof id === 'number'); - predicates.in('groupId', validIds); // 使用 in 条件一次性查找多个 id - // 执行一次查询获取所有匹配的分组 - const groups = await DbUtil.queryForList(predicates, column); - - if (groups.length > 0) { - for (const group of groups) { - const groupList = ToBookGroups(group); - groupList.bookIds = []; - await this.update(groupList); // 确保逐个更新 - } - } - } catch (e) { - console.log('updateMoveBookIdsByGroupId, Error, ', JSON.stringify(e)); - } - } - //校验唯一性,同时进行更新 - async onlyGroupUpdateName(groupId: number, newGroupName: string) { - try { - const column: ColumnInfo[] = AppDatabaseUtil.getColumn(this.TABLE_NAME); - const predicates = DbUtil.getPredicates(this.TABLE_NAME); - predicates.equalTo('groupName', newGroupName) - const groups = await DbUtil.queryForList(predicates, column); - if (groups.length > 1) return false - if (groups.length === 0){ - const predicates = DbUtil.getPredicates(this.TABLE_NAME); - predicates.equalTo('groupId', groupId) - const groupDate = await DbUtil.queryForList(predicates, column); - groupDate[0].groupName = newGroupName - return await this.update(ToBookGroups(groupDate[0])) - } - if ((groups.length === 1 && groups[0].groupId && groups[0].groupId === groupId)) { - groups[0].groupName = newGroupName - return await this.update(ToBookGroups(groups[0])) - } - return false - } catch (e){ - console.log('onlyGroupName, Error, ', JSON.stringify(e)) - return false - } - } - /** - * 分组id查询分组下的书籍Id然后去重 - * @param ids - */ - async queryBookByGroup(ids:number[]){ - try { - const column: ColumnInfo[] = AppDatabaseUtil.getColumn(this.TABLE_NAME); - const predicates = DbUtil.getPredicates(this.TABLE_NAME); - const validIds = ids.filter(id => typeof id === 'number'); - predicates.in('groupId', validIds); - const groups = await DbUtil.queryForList(predicates, column); - const bookIds:number[] = [] - if (groups.length > 0) { - groups.forEach((item) => { - ToBookGroups(item).bookIds?.forEach((bookId) => { - if (!bookIds.includes(Number(bookId))) { - bookIds.push(Number(bookId)) - } - }) - }) - } - return bookIds - } catch (e){ - console.log('queryBookByGroup, Error, ', JSON.stringify(e)) - return [] - } - } - - async updatePartialGroup(group: BookGroups) { - // if (!(group instanceof BookGroups)) { - // console.warn('Invalid group instance.'); - // return; - // } - - const column = this.getPartialColumn(); - const predicates = DbUtil.getPredicates(this.TABLE_NAME); - predicates.equalTo('groupId', group.groupId); - - try { - const count = await DbUtil.queryForCount(predicates, column); - if (count > 0) { - await DbUtil.update(predicates, ToBookGroupsDb(group), column); - } else { - console.warn('No records found for update.'); - } - } catch (err) { - console.error('Error in partialUpdate:', err); - } - } - - getPartialColumn(): ColumnInfo[] { - return AppDatabaseUtil.getAssignColumn(this.TABLE_NAME, ['groupId', - 'groupName', 'coverOnly', 'coverType','coverUrl','groupDescribe', - 'enableRefresh','canUpdate' - ]); - } - -} - -const bookGroupsDao = new BookGroupsDao() -export default bookGroupsDao as BookGroupsDao \ No newline at end of file diff --git a/entry/src/main/ets/database/dao/BookHistoryDao.ets b/entry/src/main/ets/database/dao/BookHistoryDao.ets deleted file mode 100644 index 405c4b33..00000000 --- a/entry/src/main/ets/database/dao/BookHistoryDao.ets +++ /dev/null @@ -1,153 +0,0 @@ -/** - * @author 2008 - * @datetime 2024/8/05 22:34 - * @className: BookHistoryDao - * 书籍浏览历史 - */ -import DbUtil from '../../common/utils/DbUtil'; -import AppDatabaseUtil from '../AppDatabaseUtil'; -import { BookHistory } from '../entities/BookHistory'; -import { rssSourcesHistory } from '../entities/rssSourcesHistory'; -import { BookHistoryTypeParams } from '../types/BookHistoryType'; -import { ColumnInfo } from '../types/ColumnInfo'; - -class BookHistoryDao { - TABLE_NAME: string = 'book_history' - - // 创建book_history数据表 - async initBookHistoryTable() { - try { - const createSql = AppDatabaseUtil.getCreateSql(this.TABLE_NAME); - if (!createSql) { - return - } - await DbUtil.createTable(createSql) - AppDatabaseUtil.existsTable(this.TABLE_NAME) - return - } catch (err) { - console.info('TagInfo', JSON.stringify(err)) - } - } - - async search(params?:BookHistoryTypeParams) { - const type = params?.type - const sort = params?.sort - try { - const column: ColumnInfo[] = AppDatabaseUtil.getColumn(this.TABLE_NAME); - let sql = `SELECT * FROM ${this.TABLE_NAME}`; - // 动态添加 WHERE 子句 - let whereClause: string[] = []; - if (type !== undefined){ - whereClause.push(`bookType = ${type} OR bookType = 123`); - } - // 如果有 where 子句,添加 WHERE 关键字 - if (whereClause.length > 0) { - sql += ` WHERE ${whereClause.join(' AND ')}`; - } - sql += ` ORDER BY`; - if (sort !== undefined) { - sql += ` ${sort === 0 ? 'durChapterTime' : 'updateTime'} DESC` - } else { - sql += ` durChapterTime DESC`; - } - const bookHistoryDbList = await DbUtil.querySqlForList(sql, column); - - return bookHistoryDbList - } catch (err) { - console.log("TagInfo", JSON.stringify(err)) - return [] - } - } - async searchLimit() { - try { - const column: ColumnInfo[] = AppDatabaseUtil.getColumn(this.TABLE_NAME); - let sql = `SELECT * FROM ${this.TABLE_NAME}`; - // 动态添加 WHERE 子句 - let whereClause: string[] = []; - - // 如果有 where 子句,添加 WHERE 关键字 - if (whereClause.length > 0) { - sql += ` WHERE ${whereClause.join(' AND ')}`; - } - sql += ` - ORDER BY - durChapterTime DESC - LIMIT 1 -`; - const bookHistoryDbList = await DbUtil.querySqlForList(sql, column); - return bookHistoryDbList - } catch (err) { - console.log("TagInfo", JSON.stringify(err)) - return [] - } - } - - async insert(bookHistory: BookHistory) { - try { - const column: ColumnInfo[] = AppDatabaseUtil.getColumn(this.TABLE_NAME); - const predicates = DbUtil.getPredicates(this.TABLE_NAME); - predicates.equalTo('id', bookHistory.id) - const count = await DbUtil.queryForCount(predicates, column) - if (count > 0) { - this.update(bookHistory) - return true - } - bookHistory.createTime = Date.now() - await DbUtil.insert(this.TABLE_NAME, bookHistory, column) - console.log('TagInfo', '创建成功') - return true - } catch (err) { - console.log('TagInfo, Error, ', JSON.stringify(err)) - return false - } - } - - async update(bookHistory: BookHistory) { - try { - const column: ColumnInfo[] = AppDatabaseUtil.getColumn(this.TABLE_NAME); - const predicates = DbUtil.getPredicates(this.TABLE_NAME); - predicates.equalTo('id', bookHistory.id) - const count = await DbUtil.queryForCount(predicates, column) - if (count === 0 && bookHistory instanceof BookHistory) { - this.insert(bookHistory) - return true - } - bookHistory.updateTime = Date.now() - bookHistory.durChapterTime = Date.now() - await DbUtil.update(predicates, bookHistory, column) - return true - } catch (err) { - console.log('TagInfo, Error, ', JSON.stringify(err)) - return false - } - } - - //删除阅读历史记录 - async deleteBookHistory(id: number) { - try { - const predicates = DbUtil.getPredicates(this.TABLE_NAME); - predicates.equalTo('id', id) - await DbUtil.delete(predicates) - return true - } catch (err) { - console.log('TagInfo, Error, ', JSON.stringify(err)) - return false - } - } - - async deleteAllBookHistory() { - try { - const predicates = DbUtil.getPredicates(this.TABLE_NAME); - await DbUtil.delete(predicates) - return true - } catch (err) { - console.log('TagInfo, Error, ', JSON.stringify(err)) - return false - } - } - -} - - -const bookHistoryDao = new BookHistoryDao() -export default bookHistoryDao as BookHistoryDao \ No newline at end of file diff --git a/entry/src/main/ets/database/dao/BookSourceDao.ets b/entry/src/main/ets/database/dao/BookSourceDao.ets deleted file mode 100644 index 3bee72c5..00000000 --- a/entry/src/main/ets/database/dao/BookSourceDao.ets +++ /dev/null @@ -1,340 +0,0 @@ -import { ColumnInfo, ColumnType } from '../types/ColumnInfo'; -import { BookSource, BookSourceDb, ToBookSource, ToBookSourceDb, ToBookSourcePart } from '../entities/BookSource'; -import AppDatabaseUtil from '../AppDatabaseUtil' -import { JSON } from '@kit.ArkTS'; -import DbUtil from '../../common/utils/DbUtil'; -import { BookSourcePart } from '../entities/BookSourcePart'; -import { BookSourceSearchParams } from '../types/BookSourceType'; - -class BookSourceDao { - TABLE_NAME: string = 'book_sources' - - // 创建book_source数据表 - async initBookSourceTable() { - try { - const createSql = AppDatabaseUtil.getCreateSql(this.TABLE_NAME); - if (!createSql) { - return - } - await DbUtil.createTable(createSql); - AppDatabaseUtil.existsTable(this.TABLE_NAME) - return - } catch (err) { - console.info('TagInfo', JSON.stringify(err)) - } - } - - getFlowColumn() { - const column: ColumnInfo[] = AppDatabaseUtil.getAssignColumn(this.TABLE_NAME, - ['bookSourceUrl', 'bookSourceName', 'bookSourceGroup', 'bookSourceGrade', 'bookSourceScore', 'customOrder', - 'enabled', 'enabledExplore', 'lastUpdateTime', 'respondTime', 'weight', 'isTop', 'showRecentIcon', - 'showExplore']); - column.push(...[ - { - name: 'hasLoginUrl', - columnName: 'hasLoginUrl', - type: ColumnType.BOOLEAN - }, - { - name: 'hasExploreUrl', - columnName: 'hasExploreUrl', - type: ColumnType.BOOLEAN - } - ] as ColumnInfo[]) - return column; - } - - async flowAll(): Promise { - try { - const sql = `select bookSourceUrl, bookSourceName, bookSourceGroup, bookSourceGrade, bookSourceScore, customOrder, enabled, enabledExplore, - trim(loginUrl) <> '' hasLoginUrl, lastUpdateTime, respondTime, weight, trim(exploreUrl) <> '' hasExploreUrl, isTop, showRecentIcon, showExplore - from book_sources order by customOrder asc` - const column: ColumnInfo[] = this.getFlowColumn() - return await DbUtil.querySqlForList(sql, column) - } catch (err) { - console.log("TagInfo", JSON.stringify(err)) - return [] - } - } - - async getEnabledPartByGroup() { - try { - const column: ColumnInfo[] = AppDatabaseUtil.getColumn(this.TABLE_NAME); - const sql = `SELECT * FROM book_sources WHERE enabled = 1 AND enabledExplore = 1 ORDER BY customOrder ASC` - const bookSourceDbList = await DbUtil.querySqlForList(sql, column); - const bookSourceList = bookSourceDbList.map((item): BookSource => ToBookSource(item)); - return bookSourceList - } catch (e){ - console.log("TagInfo", JSON.stringify(e)) - return [] - } - } - - async flowSearch(searchParams?: BookSourceSearchParams): Promise { - const searchKey = searchParams?.searchKey ?? ''; - const type = searchParams?.type; - const enabled = searchParams?.enabled; - const bookSourceGrade = searchParams?.bookSourceGrade; - const hasLoginUrl = searchParams?.hasLoginUrl; - const showExplore = searchParams?.showExplore; - const order = searchParams?.order; - try { - let sql = ` - SELECT - bookSourceUrl, - bookSourceName, - bookSourceGroup, - bookSourceGrade, - bookSourceScore, - customOrder, - enabled, - enabledExplore, - trim(loginUrl) <> '' AS hasLoginUrl, - lastUpdateTime, - respondTime, - weight, - trim(exploreUrl) <> '' AS hasExploreUrl, - isTop, - showRecentIcon, - showExplore - FROM - book_sources -`; - - // 动态添加 WHERE 子句 - let whereClause: string[] = []; - if (type !== undefined) { - whereClause.push(`bookSourceType = ${type}`); - } - if (enabled !== undefined) { - whereClause.push(`enabled = ${enabled ? 1 : 0}`); - } - if (showExplore !== undefined) { - whereClause.push(`showExplore = ${showExplore ? 1 : 0}`); - } - if (bookSourceGrade !== undefined) { - whereClause.push(`bookSourceGrade = ${bookSourceGrade}`); - } - if (hasLoginUrl !== undefined) { - whereClause.push(`COALESCE(loginUrl, '') ${hasLoginUrl ? '<>' : '='} ''`); - } - if (searchKey) { // 确保 searchKey 不为空或未定义 - whereClause.push(`( - bookSourceName LIKE '%${searchKey}%' - OR bookSourceGroup LIKE '%${searchKey}%' - OR bookSourceUrl LIKE '%${searchKey}%' - OR bookSourceComment LIKE '%${searchKey}%' - )`); - } - - // 如果有 where 子句,添加 WHERE 关键字 - if (whereClause.length > 0) { - sql += ` WHERE ${whereClause.join(' AND ')}`; - } - - sql += ` ORDER BY`; - if (order !== undefined) { - sql += ` ${order === 0 ? 'bookSourceGroup' : 'lastUpdateTime'} DESC` - } else { - sql += ` isTop DESC, customOrder ASC`; - } - const column: ColumnInfo[] = this.getFlowColumn() - return await DbUtil.querySqlForList(sql, column) - } catch (err) { - console.log("TagInfo", JSON.stringify(err)) - return [] - } - } - - async search(searchParams?: BookSourceSearchParams) { - const searchKey = searchParams?.searchKey ?? ''; - const type = searchParams?.type; - const enabled = searchParams?.enabled; - const hasExploreUrl = searchParams?.hasExploreUrl; - const showExplore = searchParams?.showExplore; - try { - const column: ColumnInfo[] = AppDatabaseUtil.getColumn(this.TABLE_NAME); - let sql = `SELECT * FROM book_sources`; - // 动态添加 WHERE 子句 - let whereClause: string[] = []; - if (type !== undefined) { - whereClause.push(`bookSourceType = ${type}`); - } - if (enabled !== undefined) { - whereClause.push(`enabled = ${enabled ? 1 : 0}`); - } - if (hasExploreUrl !== undefined) { - whereClause.push(`COALESCE(exploreUrl, '') ${hasExploreUrl ? '<>' : '='} ''`); - } - if (showExplore !== undefined) { - whereClause.push(`showExplore = ${showExplore ? 1 : 0}`); - } - if (searchKey) { // 确保 searchKey 不为空或未定义 - whereClause.push(`( - bookSourceName LIKE '%${searchKey}%' - OR bookSourceGroup LIKE '%${searchKey}%' - OR bookSourceUrl LIKE '%${searchKey}%' - OR bookSourceComment LIKE '%${searchKey}%' - )`); - } - - // 如果有 where 子句,添加 WHERE 关键字 - if (whereClause.length > 0) { - sql += ` WHERE ${whereClause.join(' AND ')}`; - } - - sql += ` - ORDER BY - isTop DESC, customOrder ASC -`; - const bookSourceDbList = await DbUtil.querySqlForList(sql, column); - const bookSourceList = bookSourceDbList.map((item): BookSource => ToBookSource(item)); - console.log("TagInfo", '书源数量:' + bookSourceList.length) - return bookSourceList - } catch (err) { - console.log("TagInfo", JSON.stringify(err)) - return [] - } - } - - async getBookSource(key: string): Promise { - try { - const column: ColumnInfo[] = AppDatabaseUtil.getColumn(this.TABLE_NAME); - const predicates = DbUtil.getPredicates(this.TABLE_NAME); - predicates.equalTo('bookSourceUrl', key) - const bookSourceDbList = await DbUtil.queryForList(predicates, column); - const bookSourceList = bookSourceDbList.map((item): BookSource => ToBookSource(item)); - if (bookSourceList.length > 0) { - if (bookSourceList[0].showRecentIcon) { - this.updateRecentIcon(ToBookSourcePart(bookSourceList[0])) - } - return bookSourceList[0] - } - return null - } catch (err) { - console.log("TagInfo", JSON.stringify(err)) - return null - } - } - - async insert(bookSource: BookSource) { - try { - const column: ColumnInfo[] = AppDatabaseUtil.getColumn(this.TABLE_NAME); - const predicates = DbUtil.getPredicates(this.TABLE_NAME); - predicates.equalTo('bookSourceUrl', bookSource.bookSourceUrl) - const count = await DbUtil.queryForCount(predicates, column) - if (count !== 0) { - this.update(bookSource) - return true - } - const bookSourceDb = ToBookSourceDb(bookSource) - bookSourceDb.lastUpdateTime = Date.now() - await DbUtil.insert(this.TABLE_NAME, bookSourceDb, column) - console.log('TagInfo', '创建成功') - return true - } catch (err) { - console.log('TagInfo, Error, ', JSON.stringify(err)) - return false - } - } - - async batchInsert(bookSources: BookSource[]) { - try { - for (let index = 0; index < bookSources.length; index++) { - const bookSource = bookSources[index]; - await this.insert(bookSource) - } - return true - } catch (err) { - console.log('TagInfo, Error, ', JSON.stringify(err)) - return false - } - } - - async updateFlow(bookSource: BookSourcePart) { - try { - const predicates = DbUtil.getPredicates(this.TABLE_NAME); - predicates.equalTo('bookSourceUrl', bookSource.bookSourceUrl) - bookSource.lastUpdateTime = Date.now() - const columnPart: ColumnInfo[] = this.getFlowColumn().slice(0, -2) - await DbUtil.update(predicates, bookSource, columnPart) - return true - } catch (err) { - console.log('TagInfo, Error, ', JSON.stringify(err)) - return false - } - } - - async update(bookSource: BookSource) { - try { - const column: ColumnInfo[] = AppDatabaseUtil.getColumn(this.TABLE_NAME); - const predicates = DbUtil.getPredicates(this.TABLE_NAME); - predicates.equalTo('bookSourceUrl', bookSource.bookSourceUrl) - const count = await DbUtil.queryForCount(predicates, column) - if (count === 0) { - this.insert(bookSource) - return true - } - const bookSourceDb = ToBookSourceDb(bookSource) - bookSourceDb.lastUpdateTime = Date.now() - await DbUtil.update(predicates, bookSourceDb, column) - return true - } catch (err) { - console.log('TagInfo, Error, ', JSON.stringify(err)) - return false - } - } - - async batchUpdateFlow(bookSources: BookSourcePart[]) { - try { - for (let index = 0; index < bookSources.length; index++) { - const bookSource = bookSources[index]; - await this.updateFlow(bookSource) - } - return true - } catch (err) { - console.log('TagInfo, Error, ', JSON.stringify(err)) - return false - } - } - - async updateRecentIcon(bookSources: BookSourcePart) { - try { - bookSources.showRecentIcon = false - this.updateFlow(bookSources) - return true - } catch (err) { - console.log('TagInfo, Error, ', JSON.stringify(err)) - return false - } - } - - async delete(key: string) { - try { - const predicates = DbUtil.getPredicates(this.TABLE_NAME); - predicates.equalTo('bookSourceUrl', key) - await DbUtil.delete(predicates); - return true - } catch (err) { - console.log('TagInfo, Error, ', JSON.stringify(err)) - return false - } - } - - async batchDelete(keys: string[]) { - try { - for (let index = 0; index < keys.length; index++) { - const key = keys[index]; - await this.delete(key) - } - return true - } catch (err) { - console.log('TagInfo, Error, ', JSON.stringify(err)) - return false - } - } -} - -const bookSourceDao = new BookSourceDao() - -export default bookSourceDao as BookSourceDao \ No newline at end of file diff --git a/entry/src/main/ets/database/dao/BooksDao.ets b/entry/src/main/ets/database/dao/BooksDao.ets deleted file mode 100644 index 7031f822..00000000 --- a/entry/src/main/ets/database/dao/BooksDao.ets +++ /dev/null @@ -1,462 +0,0 @@ -import booksUtils from '../../common/utils/booksUtils'; -import DbUtil from '../../common/utils/DbUtil'; -import toolsUtils from '../../common/utils/ToolsUtils'; -import AppDatabaseUtil from '../AppDatabaseUtil'; -import { Books } from '../entities/Books'; -import { BooksTypeSearchParams } from '../types/BooksType'; -import { ColumnInfo } from '../types/ColumnInfo'; - -class BooksDao { - TABLE_NAME: string = 'books' - - // 创建books数据表 - async initBooksTable() { - try { - const createSql = AppDatabaseUtil.getCreateSql(this.TABLE_NAME); - if (!createSql) { - return - } - await DbUtil.createTable(createSql) - AppDatabaseUtil.existsTable(this.TABLE_NAME) - return - } catch (err) { - console.info('TagInfo', JSON.stringify(err)) - } - } - - async search(param?:BooksTypeSearchParams) { - let searchKey = param?.searchKey ?? ''; - let type = param?.type; - let bookGroup = param?.bookGroup; - let order = param?.order; - let sort = 0 - if (order !== undefined){ - sort = booksUtils.getOrder(order) - } - try { - const column: ColumnInfo[] = AppDatabaseUtil.getColumn(this.TABLE_NAME); - let sql = `SELECT * FROM ${this.TABLE_NAME}`; - // 动态添加 WHERE 子句 - let whereClause: string[] = []; - if (type !== undefined) { - whereClause.push(`bookType = ${type}`); - } - if (bookGroup !== undefined && bookGroup !== 2) { - whereClause.push(`bookGroup = ${bookGroup}`); - } - if (searchKey) { - whereClause.push(`( - bookName LIKE '%${searchKey}%' - OR author LIKE '%${searchKey}%' - OR originName LIKE '%${searchKey}%' - )`); - - } - // 如果有 where 子句,添加 WHERE 关键字 - if (whereClause.length > 0) { - sql += ` WHERE ${whereClause.join(' AND ')}`; - } - sql += ` ORDER BY`; - if (order !== undefined) { - switch (sort){ - case 0: - sql += ` isTop DESC, durChapterTime DESC`; - break; - case 1: - sql += ` isTop DESC, latestChapterTime DESC`; - break; - case 2: - sql += ` isTop DESC, sort ASC`; - break; - } - } else { - sql += ` isTop DESC, createTime DESC`; - } - - const bookDbList = await DbUtil.querySqlForList(sql, column); - console.log("TagInfo", '书籍:' + bookDbList.length) - return bookDbList - } catch (err) { - console.log("TagInfo", JSON.stringify(err)) - return [] - } - } - - //获取书籍总数量 - async getBookCount(param?: BooksTypeSearchParams) { - let type = param?.type; - let bookGroup = param?.bookGroup; - try { - const column: ColumnInfo[] = AppDatabaseUtil.getColumn(this.TABLE_NAME); - const predicates = DbUtil.getPredicates(this.TABLE_NAME); - predicates.equalTo('bookType', type) - if (bookGroup !== undefined && bookGroup !== 2) { - predicates.equalTo('bookGroup', bookGroup) - } - const count = await DbUtil.queryForCount(predicates, column) - return count - } catch (e){ - console.log("TagInfo", JSON.stringify(e)) - return 0 - } - } - - async searchPage(param?: BooksTypeSearchParams, pageNumber: number = 1, pageSize: number = 21) { - let searchKey = param?.searchKey ?? ''; - let type = param?.type; - let bookGroup = param?.bookGroup; - let order = param?.order; - let sort = 0; - if (order !== undefined) { - sort = booksUtils.getOrder(order); - } - - try { - const column: ColumnInfo[] = AppDatabaseUtil.getColumn(this.TABLE_NAME); - let sql = `SELECT * FROM ${this.TABLE_NAME}`; - let whereClause: string[] = []; - - if (type !== undefined) { - whereClause.push(`bookType = ${type}`); - } - if (bookGroup !== undefined && bookGroup !== 2) { - if (bookGroup === 4) { - whereClause.push(`bookGroup = ${bookGroup} or isLocalBook = ${true}`); - } else { - whereClause.push(`bookGroup = ${bookGroup}`); - } - } - if (searchKey) { - whereClause.push(`( - bookName LIKE '%${searchKey}%' - OR author LIKE '%${searchKey}%' - OR originName LIKE '%${searchKey}%' - )`); - } - - if (whereClause.length > 0) { - sql += ` WHERE ${whereClause.join(' AND ')}`; - } - - sql += ` ORDER BY`; - if (order !== undefined) { - switch (sort) { - case 0: - sql += ` isTop DESC, durChapterTime DESC, createTime DESC`; - break; - case 1: - sql += ` isTop DESC, latestChapterTime DESC,updateTime DESC`; - break; - case 2: - sql += ` isTop DESC, sort ASC`; - break; - } - } else { - sql += ` isTop DESC, createTime DESC`; - } - - const offset = (pageNumber - 1) * pageSize; - sql += ` LIMIT ${pageSize} OFFSET ${offset}`; - - const bookDbList = await DbUtil.querySqlForList(sql, column); - console.log("TagInfo", '书籍:' + bookDbList.length) - return bookDbList; - } catch (err) { - console.log("TagInfo", JSON.stringify(err)) - return []; - } - } - - async batchInsert(books: Books[]) { - try { - for (let index = 0; index < books.length; index++) { - const book = books[index]; - await this.insert(book) - } - return true - } catch (err) { - console.log('TagInfo, Error, ', JSON.stringify(err)) - return false - } - } - - async insert(books: Books) { - try { - const column: ColumnInfo[] = AppDatabaseUtil.getColumn(this.TABLE_NAME); - if (books.id) { - const predicates = DbUtil.getPredicates(this.TABLE_NAME); - predicates.equalTo('id', books.id) - const count = await DbUtil.queryForCount(predicates, column) - if (count > 0) { - this.update(books) - return true - } - } - books.createTime = Date.now() - await DbUtil.insert(this.TABLE_NAME, books, column) - console.log('TagInfo', '创建成功') - return true - } catch (err) { - console.log('TagInfo, Error, ', JSON.stringify(err)) - return false - } - } - - async update(books: Books) { - try { - const column: ColumnInfo[] = AppDatabaseUtil.getColumn(this.TABLE_NAME); - const predicates = DbUtil.getPredicates(this.TABLE_NAME); - predicates.equalTo('id', books.id) - const count = await DbUtil.queryForCount(predicates, column) - if (count === 0 && books instanceof Books) { - this.insert(books) - return true - } - await DbUtil.update(predicates, books, column) - return true - } catch (err) { - console.log('TagInfo, Error, ', JSON.stringify(err)) - return false - } - } - //置顶 - async isUpdateBookTop(id: number, isTop: boolean) { - try { - const column: ColumnInfo[] = AppDatabaseUtil.getColumn(this.TABLE_NAME); - const predicates = DbUtil.getPredicates(this.TABLE_NAME); - predicates.equalTo('id', id) - const count = await DbUtil.queryForList(predicates, column) - if (column.length > 0) { - count.forEach((item) => { - item.isTop = isTop - item.updateTime = Date.now() - this.update(item) - }) - return true - } - return false - } catch (err) { - console.log('isUpdateBookTop, Error, ', JSON.stringify(err)) - return false - } - } - //批量更新书籍分组 - async batchUpdateBookGroup(id: number[],groupId:number) { - try { - for (let index = 0; index < id.length; index++) { - this.updateBookGroup(id[index],groupId) - } - return true - } catch (err) { - console.log('batchUpdateBookGroup, Error, ', JSON.stringify(err)) - return false - } - } - //更新书籍分组 - async updateBookGroup(bookIds: number|number[],groupId:number) { - try { - let Ids: number[] = toolsUtils.numberArrays(bookIds) - const column: ColumnInfo[] = AppDatabaseUtil.getColumn(this.TABLE_NAME); - const validIds = Ids.filter(id => typeof id === 'number'); - const predicates = DbUtil.getPredicates(this.TABLE_NAME); - predicates.in('id', validIds) - const count = await DbUtil.queryForList(predicates, column) - if (count.length > 0) { - count.forEach(async (item) => { - item.bookGroup = groupId - await this.update(item) - }) - return true - } - return false - } catch (err) { - console.log('updateBookGroup, Error, ', JSON.stringify(err)) - return false - } - } - - //根据书籍获取旧的分组Id - async getBookIdsByGroupId(ids: number[]) { - let BookGroupId: Record = {}; - try { - const column: ColumnInfo[] = AppDatabaseUtil.getColumn(this.TABLE_NAME); - - // 确保 ids 数组的每个元素都是数字 - const validIds = ids.filter(id => typeof id === 'number'); - - // 创建查询条件,查找所有给定的 id - const predicates = DbUtil.getPredicates(this.TABLE_NAME); - predicates.in('id', validIds); // 使用 in 条件一次性查找多个 id - - // 执行一次查询获取所有匹配的书籍 - const books = await DbUtil.queryForList(predicates, column); - - // 遍历查询结果,将书籍的 bookGroup 分组 - books.forEach(book => { - const bookId = book.id; // 获取书籍的 id - if (bookId !== undefined) { - if (!BookGroupId[bookId]) { - BookGroupId[bookId] = 0; - } - BookGroupId[bookId] = book.bookGroup ?? 0; - } - }); - - return BookGroupId; - } catch (e) { - console.log('getBookIdsByGroupId, Error, ', JSON.stringify(e)); - return []; - } - } - - //根据分组获取书籍id - async queryBooksByGroupId(groupId: number[]){ - let GroupBookId: number[] = []; - try { - // 确保 ids 数组的每个元素都是数字 - const validIds = groupId.filter(id => typeof id === 'number'); - const column: ColumnInfo[] = AppDatabaseUtil.getColumn(this.TABLE_NAME); - const predicates = DbUtil.getPredicates(this.TABLE_NAME); - predicates.in('bookGroup', validIds) - // 执行一次查询获取所有匹配的书籍 - const books = await DbUtil.queryForList(predicates, column); - // 遍历查询结果,将书籍的 bookGroup 分组 - books.forEach(book => { - const bookId = book.id; // 获取书籍的 id - if (bookId !== undefined) { - GroupBookId.push(bookId) - } - }); - return GroupBookId - } catch (e) { - console.log('queryBooksByGroupId, Error, ', JSON.stringify(e)); - return [] - } - } - - //删除订阅源历史记录 - async deleteBook(id: number[]) { - try { - const predicates = DbUtil.getPredicates(this.TABLE_NAME); - predicates.in('id', id) - await DbUtil.delete(predicates) - return true - } catch (err) { - console.log('TagInfo, Error, ', JSON.stringify(err)) - return false - } - } - - //根据分组id统计书籍数量 - async countBookByGroup(groupId: number) { - try { - const column: ColumnInfo[] = AppDatabaseUtil.getColumn(this.TABLE_NAME); - const predicates = DbUtil.getPredicates(this.TABLE_NAME); - predicates.equalTo('bookGroup', groupId) - const count = await DbUtil.queryForCount(predicates, column) - return count - } catch (err) { - console.log('TagInfo, Error, ', JSON.stringify(err)) - return 0 - } - } - - //分组删除情况下根据删除分组id查询书籍更新未分组 - async queryBookByGroup(groupId: number[],updateGroupId: number) { - try { - const column: ColumnInfo[] = AppDatabaseUtil.getColumn(this.TABLE_NAME); - const predicates = DbUtil.getPredicates(this.TABLE_NAME); - predicates.in('bookGroup', groupId) - const bookDbList = await DbUtil.queryForList(predicates, column) - if (bookDbList.length > 0) { - bookDbList.forEach((item) => { - item.bookGroup = updateGroupId - this.update(item) - }) - } - } catch (e) { - console.log('TagInfo, Error, ', JSON.stringify(e)) - } - } - - // 校验当前书籍是否存在书架中 - async isExistBooks(bookUrl?: string, bookName?: string): Promise { - if (!bookUrl || !bookName) { - console.warn('bookUrl or bookName is missing.'); - return []; - } - - const column = AppDatabaseUtil.getColumn(this.TABLE_NAME); - const predicates = DbUtil.getPredicates(this.TABLE_NAME); - predicates.equalTo('bookUrl', bookUrl); - predicates.equalTo('bookName', bookName); - - try { - const books = await DbUtil.queryForList(predicates, column); - return books || []; - } catch (err) { - console.error('isExistBooks, Error:', err); - return []; - } - } - - - //根据书籍Id获取书籍 - async getBookByIds(ids: number[]) { - - try { - const column: ColumnInfo[] = AppDatabaseUtil.getColumn(this.TABLE_NAME); - - // 确保 ids 数组的每个元素都是数字 - const validIds = ids.filter(id => typeof id === 'number'); - if (validIds.length === 0) return [] - // 创建查询条件,查找所有给定的 id - const predicates = DbUtil.getPredicates(this.TABLE_NAME); - predicates.in('id', validIds); // 使用 in 条件一次性查找多个 id - - // 执行一次查询获取所有匹配的书籍 - const books = await DbUtil.queryForList(predicates, column); - - return books; - } catch (e) { - console.log('getBookIds, Error, ', JSON.stringify(e)); - return []; - } - } - //部分更新 - async partialUpdate(books: Books) { - if (!(books instanceof Books)) { - console.warn('Invalid Books instance.'); - return; - } - - const column = this.getPartialColumn(); - const predicates = DbUtil.getPredicates(this.TABLE_NAME); - predicates.equalTo('id', books.id); - - try { - const count = await DbUtil.queryForCount(predicates, column); - - if (count > 0) { - await DbUtil.update(predicates, books, column); - } else { - console.warn('No records found for update.'); - } - } catch (err) { - console.error('Error in partialUpdate:', err); - } - } - - getPartialColumn(): ColumnInfo[] { - return AppDatabaseUtil.getAssignColumn(this.TABLE_NAME, ['id', - 'latestChapterTitle', 'latestChapterTime', 'lastCheckTime', - 'lastCheckCount', 'totalChapterNum', 'durChapterTitle', - 'durChapterIndex', 'durChapterPos', 'durChapterTime', - 'wordCount', 'syncTime', 'updateTime' - ]); - } -} - - -const booksDao = new BooksDao() -export default booksDao as BooksDao \ No newline at end of file diff --git a/entry/src/main/ets/database/dao/RssSourcesHistoryDao.ets b/entry/src/main/ets/database/dao/RssSourcesHistoryDao.ets deleted file mode 100644 index 2183e151..00000000 --- a/entry/src/main/ets/database/dao/RssSourcesHistoryDao.ets +++ /dev/null @@ -1,141 +0,0 @@ -/** - * @author 2008 - * @datetime 2024/7/20 16:34 - * @className: rssSourcesHistoryDao - * 订阅源 - */ -import DbUtil from '../../common/utils/DbUtil'; -import AppDatabaseUtil from '../AppDatabaseUtil'; -import { rssSourcesHistory } from '../entities/rssSourcesHistory'; -import { ColumnInfo } from '../types/ColumnInfo'; - -class RssSourcesHistoryDao { - TABLE_NAME: string = 'rss_sources_history' - - async initRssSourcesHistoryTable() { - try { - const createSql = AppDatabaseUtil.getCreateSql(this.TABLE_NAME); - if (!createSql) { - return - } - await DbUtil.createTable(createSql) - AppDatabaseUtil.existsTable(this.TABLE_NAME) - return - } catch (err) { - console.info('TagInfo', JSON.stringify(err)) - } - } - - async search(sourceUrl?:string) { - try { - const column: ColumnInfo[] = AppDatabaseUtil.getColumn(this.TABLE_NAME); - let sql = `SELECT * FROM ${this.TABLE_NAME}`; - // 动态添加 WHERE 子句 - let whereClause: string[] = []; - if (sourceUrl) { - whereClause.push(`( - sourceUrl LIKE '%${sourceUrl}%' - )`); - - } - // 如果有 where 子句,添加 WHERE 关键字 - if (whereClause.length > 0) { - sql += ` WHERE ${whereClause.join(' AND ')}`; - } - sql += ` - ORDER BY - lastUpdateTime DESC -`; - const rssSourcesDbList = await DbUtil.querySqlForList(sql, column); - console.log("TagInfo", '书源数量:' + rssSourcesDbList.length) - return rssSourcesDbList - } catch (err) { - console.log("TagInfo", JSON.stringify(err)) - return [] - } - } - - async batchInsert(history: rssSourcesHistory[]) { - try { - for (let index = 0; index < history.length; index++) { - const rssHistory = history[index]; - await this.insert(rssHistory) - } - return true - } catch (err) { - console.log('TagInfo, Error, ', JSON.stringify(err)) - return false - } - } - - async insert(rssHistory: rssSourcesHistory) { - try { - const column: ColumnInfo[] = AppDatabaseUtil.getColumn(this.TABLE_NAME); - const predicates = DbUtil.getPredicates(this.TABLE_NAME); - predicates.equalTo('sourceUrl', rssHistory.sourceUrl) - const count = await DbUtil.queryForCount(predicates, column) - if (count > 0) { - this.update(rssHistory) - return true - } - rssHistory.lastUpdateTime = Date.now() - await DbUtil.insert(this.TABLE_NAME, rssHistory, column) - console.log('TagInfo', '创建成功') - return true - } catch (err) { - console.log('TagInfo, Error, ', JSON.stringify(err)) - return false - } - } - - async update(rssHistory: rssSourcesHistory) { - try { - const column: ColumnInfo[] = AppDatabaseUtil.getColumn(this.TABLE_NAME); - const predicates = DbUtil.getPredicates(this.TABLE_NAME); - predicates.equalTo('sourceUrl', rssHistory.sourceUrl) - const count = await DbUtil.queryForCount(predicates, column) - if (count === 0 && rssHistory instanceof rssSourcesHistory) { - this.insert(rssHistory) - return true - } - rssHistory.lastUpdateTime = Date.now() - rssHistory.showRecentIcon = true - await DbUtil.update(predicates, rssHistory, column) - return true - } catch (err) { - console.log('TagInfo, Error, ', JSON.stringify(err)) - return false - } - - } - - //批量删除订阅源历史记录 - async deleteRssSourcesHistoryList(rssHistory: rssSourcesHistory[]) { - try { - for (let index = 0; index < rssHistory.length; index++) { - await this.deleteRssSourcesHistory(rssHistory[index].sourceUrl) - } - return true - } catch (err) { - console.log('TagInfo, Error, ', JSON.stringify(err)) - return false - } - } - - //删除订阅源历史记录 - async deleteRssSourcesHistory(rssHistoryUrl: string) { - try { - const predicates = DbUtil.getPredicates(this.TABLE_NAME); - predicates.equalTo('sourceUrl', rssHistoryUrl) - await DbUtil.delete(predicates) - return true - } catch (err) { - console.log('TagInfo, Error, ', JSON.stringify(err)) - return false - } - } -} - - -const rssSourcesHistoryDao = new RssSourcesHistoryDao() -export default rssSourcesHistoryDao as RssSourcesHistoryDao \ No newline at end of file diff --git a/entry/src/main/ets/database/dao/SubscriptionDao.ets b/entry/src/main/ets/database/dao/SubscriptionDao.ets deleted file mode 100644 index 98f1f65d..00000000 --- a/entry/src/main/ets/database/dao/SubscriptionDao.ets +++ /dev/null @@ -1,288 +0,0 @@ -/** - * @author 2008 - * @datetime 2024/7/15 1:34 - * @className: SubscriptionDao - * 订阅源 - */ -import DbUtil from '../../common/utils/DbUtil'; -import rssSourcesUtils from '../../common/utils/rssSourcesUtils'; -import AppDatabaseUtil from '../AppDatabaseUtil'; -import { rssSourceDb, rssSources, ToRssSources, ToRssSourcesDb } from '../entities/rssSources'; -import { ColumnInfo } from '../types/ColumnInfo'; -import { rssSourcesTypeParams } from '../types/rssSourcesType'; -import rssSourcesHistoryDao from './RssSourcesHistoryDao'; - -interface delParams { - url: string, - id:number -} - -class SubscriptionDao { - TABLE_NAME: string = 'rssSources' - - // 创建book_subscription数据表 - async initSubscriptionTable() { - try { - const createSql = AppDatabaseUtil.getCreateSql(this.TABLE_NAME); - if (!createSql) { - return - } - await DbUtil.createTable(createSql) - AppDatabaseUtil.existsTable(this.TABLE_NAME) - return - } catch (err) { - console.info('TagInfo', JSON.stringify(err)) - } - } - - async search(searchParams?: rssSourcesTypeParams) { - const searchKey = searchParams?.searchKey ?? ''; - - const enabled = searchParams?.enabled; - - try { - const column: ColumnInfo[] = AppDatabaseUtil.getColumn(this.TABLE_NAME); - let sql = `SELECT * FROM ${this.TABLE_NAME}`; - // 动态添加 WHERE 子句 - let whereClause: string[] = []; - - if (enabled !== undefined) { - whereClause.push(`enabled = ${enabled ? 1 : 0}`); - } - - if (searchKey) { // 确保 searchKey 不为空或未定义 - whereClause.push(`( - sourceName LIKE '%${searchKey}%' - OR sourceGroup LIKE '%${searchKey}%' - )`); - } - - // 如果有 where 子句,添加 WHERE 关键字 - if (whereClause.length > 0) { - sql += ` WHERE ${whereClause.join(' AND ')}`; - } - - sql += ` - ORDER BY - lastUpdateTime DESC, - customOrder ASC -`; - const rssSourcesDbList = await DbUtil.querySqlForList(sql, column); - const rssSourcesList = rssSourcesDbList.map((item): rssSources => ToRssSources(item)); - console.log("TagInfo", '书源数量:' + rssSourcesList.length) - return rssSourcesList - } catch (err) { - console.log("TagInfo", JSON.stringify(err)) - return [] - } - } - - async batchInsert(rssSources: rssSources[]) { - try { - for (let index = 0; index < rssSources.length; index++) { - const rssSource = rssSources[index]; - await this.insert(rssSource) - } - return true - } catch (err) { - console.log('TagInfo, Error, ', JSON.stringify(err)) - return false - } - } - - async insert(rssSource: rssSources) { - try { - const column: ColumnInfo[] = AppDatabaseUtil.getColumn(this.TABLE_NAME); - const predicates = DbUtil.getPredicates(this.TABLE_NAME); - if (rssSource.id !== 0 && rssSource.id !== undefined) { - predicates.equalTo('id', rssSource.id) - } else { - predicates.equalTo('sourceUrl', rssSource.sourceUrl) - } - const count = await DbUtil.queryForCount(predicates, column) - if (count !== 0) { - this.update(rssSource) - return true - } - const rssSourceDb = ToRssSourcesDb(rssSource) - rssSourceDb.lastUpdateTime = Date.now() - await DbUtil.insert(this.TABLE_NAME, rssSourceDb, column) - console.log('TagInfo', '创建成功') - return true - } catch (err) { - console.log('TagInfo, Error, ', JSON.stringify(err)) - return false - } - } - - async update(rssSource: rssSources) { - try { - const column: ColumnInfo[] = AppDatabaseUtil.getColumn(this.TABLE_NAME); - const predicates = DbUtil.getPredicates(this.TABLE_NAME); - if (rssSource.id !== 0 && rssSource.id !== undefined) { - predicates.equalTo('id', rssSource.id) - } else { - predicates.equalTo('sourceUrl', rssSource.sourceUrl) - } - const count = await DbUtil.queryForCount(predicates, column) - if (count === 0 && rssSource instanceof rssSources) { - this.insert(rssSource) - return true - } - const rssSourceDb = ToRssSourcesDb(rssSource) - rssSourceDb.lastUpdateTime = Date.now() - rssSourceDb.showRecentIcon = true - await DbUtil.update(predicates, rssSourceDb, column) - rssSourcesHistoryDao.search(rssSource.sourceUrl).then(async (value) => { - if (value.length > 0) { - await rssSourcesUtils.pushRssSourcesHistory(rssSource) - } - }) - return true - } catch (err) { - console.log('TagInfo, Error, ', JSON.stringify(err)) - return false - } - - } - - async updateRecentIcon(rssSource: rssSources) { - try { - const column: ColumnInfo[] = AppDatabaseUtil.getColumn(this.TABLE_NAME); - const predicates = DbUtil.getPredicates(this.TABLE_NAME); - if (rssSource.id !== 0 && rssSource.id !== undefined) { - predicates.equalTo('id', rssSource.id) - } else { - predicates.equalTo('sourceUrl', rssSource.sourceUrl) - } - const rssSourceDb = ToRssSourcesDb(rssSource) - rssSourceDb.showRecentIcon = false - await DbUtil.update(predicates, rssSourceDb, column) - return true - } catch (err) { - console.log('TagInfo, Error, ', JSON.stringify(err)) - return false - } - - } - - //批量删除订阅源 - async deleteRssSourcesList(rssSources: rssSources[]) { - try { - for (let index = 0; index < rssSources.length; index++) { - await this.deleteRssSources(rssSources[index]) - } - return true - } catch (err) { - console.log('TagInfo, Error, ', JSON.stringify(err)) - return false - } - } - - //删除书源 - async deleteRssSources(rssSource: rssSources) { - try { - const predicates = DbUtil.getPredicates(this.TABLE_NAME); - if (rssSource.id !== 0 && rssSource.id !== undefined) { - predicates.equalTo('id', rssSource.id) - } else { - predicates.equalTo('sourceUrl', rssSource.sourceUrl) - } - rssSourcesHistoryDao.deleteRssSourcesHistory(rssSource.sourceUrl) - await DbUtil.delete(predicates) - return true - } catch (err) { - console.log('TagInfo, Error, ', JSON.stringify(err)) - return false - } - } - - //置顶 - async isTopRssSources(rssSources: rssSources){ - try { - const column: ColumnInfo[] = AppDatabaseUtil.getColumn(this.TABLE_NAME); - const predicates = DbUtil.getPredicates(this.TABLE_NAME); - if (rssSources.id !== 0 && rssSources.id !== undefined) { - predicates.equalTo('id', rssSources.id) - } else { - predicates.equalTo('sourceUrl', rssSources.sourceUrl) - } - const rssSourceDb = ToRssSourcesDb(rssSources) - rssSourceDb.lastUpdateTime = Date.now() - rssSourceDb.customOrder = 0 - await DbUtil.update(predicates, rssSourceDb, column) - return true - } catch (err) { - console.log('TagInfo, Error, ', JSON.stringify(err)) - return false - } - } - - async getRssSources(key: string): Promise { - try { - const column: ColumnInfo[] = AppDatabaseUtil.getColumn(this.TABLE_NAME); - const predicates = DbUtil.getPredicates(this.TABLE_NAME); - predicates.equalTo('sourceUrl', key) - const rssDbList = await DbUtil.queryForList(predicates, column); - const rss = rssDbList.map((item): rssSources => ToRssSources(item)); - if (rss.length > 0) { - return rss[0] - } - return null - } catch (err) { - console.log("TagInfo", JSON.stringify(err)) - return null - } - } - - //校验是否存在收藏 - async queryByUrl(url: string) { - try { - const column: ColumnInfo[] = AppDatabaseUtil.getColumn(this.TABLE_NAME); - const predicates = DbUtil.getPredicates(this.TABLE_NAME); - predicates.like('sourceUrl', url) - const rssDbList = await DbUtil.queryForList(predicates, column); - const rss = rssDbList.map((item): rssSources => ToRssSources(item)); - if (rss.length > 0) { - return true - } else { - return false - } - } catch (e){ - console.log("TagInfo", JSON.stringify(e)) - return false - } - } - - //订阅源id删除或者sourceUrl进行删除 - async deleteRssSourcesById(param?:delParams) { - let id = param?.id - let sourceUrl = param?.url - try { - const predicates = DbUtil.getPredicates(this.TABLE_NAME); - if (id !== 0) { - predicates.equalTo('id', id) - } else { - predicates.equalTo('sourceUrl', sourceUrl) - } - await DbUtil.delete(predicates) - } catch (e) { - console.log("TagInfo", JSON.stringify(e)) - } - } - - getFlowColumn() { - const column: ColumnInfo[] = AppDatabaseUtil.getAssignColumn(this.TABLE_NAME, - ['sourceName', 'sourceUrl', 'sourceGroup', 'sourceGroup', 'enabled', 'variableComment', - 'sortUrl', 'singleUrl', 'lastUpdateTime','customOrder','variable','sourceType','showRecentIcon',]); - return column; - } -} - - - - - - -const subscriptionDao = new SubscriptionDao() -export default subscriptionDao as SubscriptionDao \ No newline at end of file diff --git a/entry/src/main/ets/database/dao/WorksListsDao.ets b/entry/src/main/ets/database/dao/WorksListsDao.ets deleted file mode 100644 index 80eac5ec..00000000 --- a/entry/src/main/ets/database/dao/WorksListsDao.ets +++ /dev/null @@ -1,159 +0,0 @@ -import DbUtil from '../../common/utils/DbUtil'; -import AppDatabaseUtil from '../AppDatabaseUtil'; -import { ToWorksLists, ToWorksListsDb, WorksLists, worksListsDb } from '../entities/WorksLists'; -import { ColumnInfo } from '../types/ColumnInfo'; -import { WorksListsTypeSearchParams } from '../types/WorksListsType'; - -/** - * 书单db操作 - */ -class WorksListsDao { - TABLE_NAME: string = 'works_lists' - - // 创建works_lists数据表 - async initWorksListsTable() { - try { - const createSql = AppDatabaseUtil.getCreateSql(this.TABLE_NAME); - if (!createSql) { - return - } - await DbUtil.createTable(createSql) - AppDatabaseUtil.existsTable(this.TABLE_NAME) - return - } catch (err) { - console.info('TagInfo', JSON.stringify(err)) - } - } - - async search(param?:WorksListsTypeSearchParams) { - let searchKey = param?.searchKey ?? ''; - let type = param?.type; - try { - const column: ColumnInfo[] = AppDatabaseUtil.getColumn(this.TABLE_NAME); - let sql = `SELECT * FROM ${this.TABLE_NAME}`; - // 动态添加 WHERE 子句 - let whereClause: string[] = []; - if (type !== undefined) { - whereClause.push(`worksType = ${type}`); - } - if (searchKey) { - whereClause.push(`( - worksName LIKE '%${searchKey}%' - worksDescribe LIKE '%${searchKey}%' - )`); - } - // 如果有 where 子句,添加 WHERE 关键字 - if (whereClause.length > 0) { - sql += ` WHERE ${whereClause.join(' AND ')}`; - } - sql += ` - ORDER BY - isTop DESC, createTime DESC -`; - const workDbList = await DbUtil.querySqlForList(sql, column); - const worksList = workDbList.map((item): WorksLists => ToWorksLists(item)); - console.log("TagInfo", '书单:' + worksList.length) - return worksList - } catch (err) { - console.log("TagInfo", JSON.stringify(err)) - return [] - } - } - - async batchInsert(works: WorksLists[]) { - try { - for (let index = 0; index < works.length; index++) { - const work = works[index]; - await this.insert(work) - } - return true - } catch (err) { - console.log('TagInfo, Error, ', JSON.stringify(err)) - return false - } - } - - async insert(works: WorksLists) { - try { - const column: ColumnInfo[] = AppDatabaseUtil.getColumn(this.TABLE_NAME); - if (works.worksId) { - const predicates = DbUtil.getPredicates(this.TABLE_NAME); - predicates.equalTo('worksId', works.worksId) - const count = await DbUtil.queryForCount(predicates, column) - if (count > 0) { - this.update(works) - return true - } - } - const worksListsDb = ToWorksListsDb(works) - worksListsDb.worksBookNum = works.worksBookList?.length ?? 0 - worksListsDb.createTime = Date.now() - await DbUtil.insert(this.TABLE_NAME, worksListsDb, column) - console.log('TagInfo', '创建成功') - return true - } catch (err) { - console.log('TagInfo, Error, ', JSON.stringify(err)) - return false - } - } - - async update(works: WorksLists) { - try { - const column: ColumnInfo[] = AppDatabaseUtil.getColumn(this.TABLE_NAME); - const predicates = DbUtil.getPredicates(this.TABLE_NAME); - predicates.equalTo('worksId', works.worksId) - const count = await DbUtil.queryForCount(predicates, column) - if (count === 0 && works instanceof WorksLists) { - this.insert(works) - return true - } - const worksListsDb = ToWorksListsDb(works) - worksListsDb.createTime = Date.now() - worksListsDb.worksBookNum = works.worksBookList?.length ?? 0 - await DbUtil.update(predicates, worksListsDb, column) - return true - } catch (err) { - console.log('TagInfo, Error, ', JSON.stringify(err)) - return false - } - } - - //置顶 - async isUpdateWorksTop(worksId: number, isTop: boolean) { - try { - const column: ColumnInfo[] = AppDatabaseUtil.getColumn(this.TABLE_NAME); - const predicates = DbUtil.getPredicates(this.TABLE_NAME); - predicates.equalTo('worksId', worksId) - const count = await DbUtil.queryForList(predicates, column) - if (column.length > 0) { - count.forEach((item) => { - item.isTop = isTop - item.updateTime = Date.now() - this.update(item) - }) - return true - } - return false - } catch (err) { - console.log('isUpdateWorksTop, Error, ', JSON.stringify(err)) - return false - } - } - - //删除书单记录 - async deleteWorks(worksId: number[]) { - try { - const predicates = DbUtil.getPredicates(this.TABLE_NAME); - predicates.in('worksId', worksId) - await DbUtil.delete(predicates) - return true - } catch (err) { - console.log('deleteBook, Error, ', JSON.stringify(err)) - return false - } - } -} - - -const worksListsDao = new WorksListsDao() -export default worksListsDao as WorksListsDao \ No newline at end of file diff --git a/entry/src/main/ets/database/entities/BookGroups.ets b/entry/src/main/ets/database/entities/BookGroups.ets deleted file mode 100644 index 17ac8f29..00000000 --- a/entry/src/main/ets/database/entities/BookGroups.ets +++ /dev/null @@ -1,107 +0,0 @@ -/** - * @author 2008 - * @datetime 2024/7/22 22:39 - * @className: BookGroup - * 书籍分组 - */ -@Observed -export class BookGroups { - //分组Id - groupId?:number; - //分组名称 - groupName:string = ""; - //封面是否仅用当前分组 - coverOnly:boolean = false; - //封面样式类型 0默认1自定义2全图 - coverType:number = 0; - //分组封面 - coverUrl?:string; - //分组描述 - groupDescribe?:string; - //排序 - sort:number = 1; - //是否自动刷新 - enableRefresh:boolean = true; - //是否显示 - show:boolean = true; - //小说0/漫画1/有声2 - groupType:number = 0; - //创建时间 - createTime:number = 0; - //更新时间 - updateTime:number = 0; - //书籍排序 - bookSort:number = -1; - //更新提醒 - canUpdate:boolean = false - //是否可删除 - canDelete:boolean = true - //是否置顶 - isTop:boolean = false - //是否系统参数 - isSystem:boolean = false - //书籍Id - bookIds?:string[] -} - -export interface BookGroupDb extends Omit { - // 存在当前分组下的书籍id - bookIds?: string -} - -export const ToBookGroups = (bookGroupsDb: BookGroupDb) => { - let bookIds = bookGroupsDb.bookIds?.split(',') - const bookGroups: BookGroups = { - groupId: bookGroupsDb.groupId, - groupName: bookGroupsDb.groupName, - coverOnly: bookGroupsDb.coverOnly, - coverType: bookGroupsDb.coverType, - coverUrl: bookGroupsDb.coverUrl, - groupDescribe: bookGroupsDb.groupDescribe, - sort: bookGroupsDb.sort, - enableRefresh: bookGroupsDb.enableRefresh, - show: bookGroupsDb.show, - groupType: bookGroupsDb.groupType, - createTime: bookGroupsDb.createTime, - updateTime: bookGroupsDb.updateTime, - bookSort: bookGroupsDb.bookSort, - canUpdate: bookGroupsDb.canUpdate, - canDelete: bookGroupsDb.canDelete, - isTop: bookGroupsDb.isTop, - isSystem: bookGroupsDb.isSystem, - bookIds - } - return bookGroups -} - -export const ToBookGroupsDb = (bookGroups: BookGroups) => { - let bookIds:string = '' - if (Array.isArray(bookGroups.bookIds)) { - bookIds = bookGroups.bookIds.join(',') - } else { - if (bookGroups.bookIds) { - bookIds = bookGroups.bookIds - } - } - const bookGroupsDb: BookGroupDb = { - groupId: bookGroups.groupId, - groupName: bookGroups.groupName, - coverOnly: bookGroups.coverOnly, - coverType: bookGroups.coverType, - coverUrl: bookGroups.coverUrl, - groupDescribe: bookGroups.groupDescribe, - sort: bookGroups.sort, - enableRefresh: bookGroups.enableRefresh, - show: bookGroups.show, - groupType: bookGroups.groupType, - createTime: bookGroups.createTime, - updateTime: bookGroups.updateTime, - bookSort: bookGroups.bookSort, - canUpdate: bookGroups.canUpdate, - canDelete: bookGroups.canDelete, - isTop: bookGroups.isTop, - isSystem: bookGroups.isSystem, - bookIds - } - return bookGroupsDb -} \ No newline at end of file diff --git a/entry/src/main/ets/database/entities/BookHistory.ets b/entry/src/main/ets/database/entities/BookHistory.ets deleted file mode 100644 index ccf9efe4..00000000 --- a/entry/src/main/ets/database/entities/BookHistory.ets +++ /dev/null @@ -1,50 +0,0 @@ -/** - * @author 2008 - * @datetime 2024/8/5 21:15 - * @className: BookHistory - * 书籍浏览历史 - */ -@Observed -export class BookHistory { - id?:number - // 书籍名称 - bookName:string = '' - // 作者名称 - author: string = '' - //阅读地址 - bookUrl:string = '' - //封面地址 - coverUrl:string = '' - //最近一次阅读书籍的时间(打开正文的时间) - durChapterTime:number = 0 - //最近一次阅读章节的序号 - durChapterIndex:number = 0 - //最近一次阅读章节的标题 - durChapterTitle:string = '' - //最近一次阅读章节进度 - durChapterContent:string = '' - //排序 - sort:number = 0 - //小说0/漫画1/有声2 - bookType?:number - //源书籍ID - originBookId?:number - //创建时间 - createTime?:number = 0 - //更新时间 - updateTime?:number = 0 - - constructor(bookHistory?:BookHistory) { - if (bookHistory) { - this.id = bookHistory.id - this.bookName = bookHistory.bookName - this.author = bookHistory.author - this.durChapterTime = bookHistory.durChapterTime - this.durChapterIndex = bookHistory.durChapterIndex - this.durChapterTitle = bookHistory.durChapterTitle - this.durChapterContent = bookHistory.durChapterContent - this.sort = bookHistory.sort - this.bookType = bookHistory.bookType - } - } -} \ No newline at end of file diff --git a/entry/src/main/ets/database/entities/BookSource.ets b/entry/src/main/ets/database/entities/BookSource.ets deleted file mode 100644 index 992a01f8..00000000 --- a/entry/src/main/ets/database/entities/BookSource.ets +++ /dev/null @@ -1,234 +0,0 @@ -import { GSON } from '../../common/utils/utils' -import { BookSourcePart } from './BookSourcePart' -import { BookInfoRule, ContentRule, ExploreRule, ReviewRule, SearchRule, TocRule } from './rule' - -@Observed -export class BookSource { - // 地址,包括 http/https - bookSourceUrl: string = "" - // 名称 - bookSourceName: string = "" - // 分组 - bookSourceGroup?: string - // 类型,0 文本,1 音频, 2 图片, 3 文件(指的是类似知轩藏书只提供下载的网站) - bookSourceType: number = 0 - bookSourceGrade?: number = 2 - bookSourceScore?: string - // 详情页url正则 - bookUrlPattern?: string - // 手动排序编号 - customOrder: number = 0 - // 是否启用 - enabled: boolean = true - // 启用发现 - enabledExplore: boolean = true - // js库 - jsLib?: string - // 启用okhttp CookieJAr 自动保存每次请求的cookie - enabledCookieJar?: boolean = true - // 并发率 - concurrentRate?: string - // 请求头 - header?: string - // 登录地址 - loginUrl?: string - // 登录UI - loginUi?: string - // 登录检测js - loginCheckJs?: string - // 封面解密js - coverDecodeJs?: string - // 注释 - bookSourceComment?: string - // 自定义变量说明 - variableComment?: string - // 最后更新时间,用于排序 - lastUpdateTime: number = 0 - // 响应时间,用于排序 - respondTime: number = 180000 - // 智能排序的权重 - weight: number = 0 - // 发现url - exploreUrl?: string - // 发现筛选规则 - exploreScreen?: string - // 搜索url - searchUrl?: string - // 发现规则 - ruleExplore?: ExploreRule - // 搜索规则 - ruleSearch?: SearchRule - // 书籍信息页规则 - ruleBookInfo?: BookInfoRule - // 目录页规则 - ruleToc?: TocRule - // 正文页规则 - ruleContent?: ContentRule - // 段评规则 - ruleReview?: ReviewRule - // 是否置顶 - isTop: boolean = false - //是否新增或则更新点击过 - showRecentIcon: boolean = true - showExplore: boolean = true -} - -export interface GroupList { - title: string - list: BookSource[] -} - -export interface GroupPartList { - title: string - list: BookSourcePart[] -} - - -export const GRADE_TYPE: Record = { - 0: '常规', - 1: '优质', - 2: '精品' -} - -export const BOOK_SOURCE_TYPE: Record = { - 0 : '小说', - 2 : '漫画', - 1 : '有声' -} -export const SOURCE_SCORE_ARR = ['5.0分', '4.0分', '3.0分', '2.0分', '1.0分'] -export const SOURCE_GROUP_MAP: Record = { - 0: ['男频', '女频', '综合', '出版', '下载', '正版', '轻文', '网络', '其他'], - 1: ['听书', '音乐', '正版', '其他'], - 2: ['国漫', '日漫', '韩漫', '美漫', '综合', '网络', '正版', '其他'] -} - -export interface BookSourceDb extends Omit { - // 发现规则 - ruleExplore?: string - // 搜索规则 - ruleSearch?: string - // 书籍信息页规则 - ruleBookInfo?: string - // 目录页规则 - ruleToc?: string - // 正文页规则 - ruleContent?: string - // 段评规则 - ruleReview?: string -} - -export const ToBookSource = (bookSourceDb: BookSourceDb) => { - const ruleExplore = GSON.toJson(bookSourceDb.ruleExplore); - const ruleSearch = GSON.toJson(bookSourceDb.ruleSearch); - const ruleBookInfo = GSON.toJson(bookSourceDb.ruleBookInfo); - const ruleToc = GSON.toJson(bookSourceDb.ruleToc); - const ruleContent = GSON.toJson(bookSourceDb.ruleContent); - const ruleReview = GSON.toJson(bookSourceDb.ruleReview); - const bookSource: BookSource = { - bookSourceUrl: bookSourceDb.bookSourceUrl, - bookSourceName: bookSourceDb.bookSourceName, - bookSourceGroup: bookSourceDb.bookSourceGroup, - bookSourceType: bookSourceDb.bookSourceType, - bookSourceGrade: bookSourceDb.bookSourceGrade, - bookSourceScore: bookSourceDb.bookSourceScore, - bookUrlPattern: bookSourceDb.bookUrlPattern, - customOrder: bookSourceDb.customOrder, - enabled: bookSourceDb.enabled, - enabledExplore: bookSourceDb.enabledExplore, - jsLib: bookSourceDb.jsLib, - enabledCookieJar: bookSourceDb.enabledCookieJar, - concurrentRate: bookSourceDb.concurrentRate, - header: bookSourceDb.header, - loginUrl: bookSourceDb.loginUrl, - loginUi: bookSourceDb.loginUi, - loginCheckJs: bookSourceDb.loginCheckJs, - coverDecodeJs: bookSourceDb.coverDecodeJs, - bookSourceComment: bookSourceDb.bookSourceComment, - variableComment: bookSourceDb.variableComment, - lastUpdateTime: bookSourceDb.lastUpdateTime, - respondTime: bookSourceDb.respondTime, - weight: bookSourceDb.weight, - exploreUrl: bookSourceDb.exploreUrl, - exploreScreen: bookSourceDb.exploreScreen, - searchUrl: bookSourceDb.searchUrl, - isTop: bookSourceDb.isTop, - showRecentIcon: bookSourceDb.showRecentIcon, - showExplore: bookSourceDb.showExplore, - ruleExplore, - ruleSearch, - ruleBookInfo, - ruleToc, - ruleContent, - ruleReview - } - return bookSource -} - -export const ToBookSourceDb = (bookSource: BookSource) => { - const ruleExplore = GSON.toString(bookSource.ruleExplore); - const ruleSearch = GSON.toString(bookSource.ruleSearch); - const ruleBookInfo = GSON.toString(bookSource.ruleBookInfo); - const ruleToc = GSON.toString(bookSource.ruleToc); - const ruleContent = GSON.toString(bookSource.ruleContent); - const ruleReview = GSON.toString(bookSource.ruleReview); - const bookSourceDb: BookSourceDb = { - bookSourceUrl: bookSource.bookSourceUrl, - bookSourceName: bookSource.bookSourceName, - bookSourceGroup: bookSource.bookSourceGroup, - bookSourceType: bookSource.bookSourceType, - bookSourceGrade: bookSource.bookSourceGrade, - bookSourceScore: bookSource.bookSourceScore, - bookUrlPattern: bookSource.bookUrlPattern, - customOrder: bookSource.customOrder, - enabled: bookSource.enabled, - enabledExplore: bookSource.enabledExplore, - jsLib: bookSource.jsLib, - enabledCookieJar: bookSource.enabledCookieJar, - concurrentRate: bookSource.concurrentRate, - header: bookSource.header, - loginUrl: bookSource.loginUrl, - loginUi: bookSource.loginUi, - loginCheckJs: bookSource.loginCheckJs, - coverDecodeJs: bookSource.coverDecodeJs, - bookSourceComment: bookSource.bookSourceComment, - variableComment: bookSource.variableComment, - lastUpdateTime: bookSource.lastUpdateTime, - respondTime: bookSource.respondTime, - weight: bookSource.weight, - exploreUrl: bookSource.exploreUrl, - exploreScreen: bookSource.exploreScreen, - searchUrl: bookSource.searchUrl, - isTop: bookSource.isTop, - showRecentIcon: bookSource.showRecentIcon, - showExplore: bookSource.showExplore, - ruleExplore, - ruleSearch, - ruleBookInfo, - ruleToc, - ruleContent, - ruleReview - } - return bookSourceDb -} - -export const ToBookSourcePart = (bookSource: BookSource) => { - const bookSourcePart: BookSourcePart = { - bookSourceUrl: bookSource.bookSourceUrl, - bookSourceName: bookSource.bookSourceName, - bookSourceGroup: bookSource.bookSourceGroup, - bookSourceGrade: bookSource.bookSourceGrade, - bookSourceScore: bookSource.bookSourceScore, - customOrder: bookSource.customOrder, - enabled: bookSource.enabled, - enabledExplore: bookSource.enabledExplore, - lastUpdateTime: bookSource.lastUpdateTime, - respondTime: bookSource.respondTime, - weight: bookSource.weight, - isTop: bookSource.isTop, - showRecentIcon: bookSource.showRecentIcon, - showExplore: bookSource.showExplore, - hasLoginUrl: false, - hasExploreUrl: false - } - return bookSourcePart -} \ No newline at end of file diff --git a/entry/src/main/ets/database/entities/BookSourcePart.ets b/entry/src/main/ets/database/entities/BookSourcePart.ets deleted file mode 100644 index 5e71bcd6..00000000 --- a/entry/src/main/ets/database/entities/BookSourcePart.ets +++ /dev/null @@ -1,32 +0,0 @@ -@Observed -export class BookSourcePart { - // 地址,包括 http/https - bookSourceUrl: string = "" - // 名称 - bookSourceName: string = "" - // 分组 - bookSourceGroup?: string - bookSourceGrade?: number = 2 - bookSourceScore?: string - // 手动排序编号 - customOrder: number = 0 - // 是否启用 - enabled: boolean = true - // 启用发现 - enabledExplore: boolean = true - // 是否有登录地址 - hasLoginUrl: boolean = false - // 最后更新时间,用于排序 - lastUpdateTime: number = 0 - // 响应时间,用于排序 - respondTime: number = 180000 - // 智能排序的权重 - weight: number = 0 - // 是否有发现url - hasExploreUrl: boolean = false - // 是否置顶 - isTop: boolean = false - //是否新增或则更新点击过 - showRecentIcon: boolean = true - showExplore: boolean = true -} \ No newline at end of file diff --git a/entry/src/main/ets/database/entities/Books.ets b/entry/src/main/ets/database/entities/Books.ets deleted file mode 100644 index 15dd9a8f..00000000 --- a/entry/src/main/ets/database/entities/Books.ets +++ /dev/null @@ -1,99 +0,0 @@ -/** - * @author 2008 - * @datetime 2024/7/22 21:21 - * @className: Books - * 书籍 - */ -import { BookSource } from './BookSource'; - -@Observed -export class Books { - //书籍ID - id?:number; - //书籍存储路径 - bookUrl?:string - //目录页Url - toUrl?:string - // 书源URL - origin?:string - //书源名称 or 本地书籍文件名 - originName?:string - // 书籍名称(书源获取) 或则自定义书籍名称 - bookName:string = "" - // // 作者名称(书源获取) - author: string = "" - //分类信息(书源获取) - cover?:string - //分类信息 - customTag?:string - //封面Url(书源获取) - coverUrl?:string - //自定义封面Url - customCoverUrl?:string - //简介内容(书源获取) - intro?:string - //简介内容(用户修改) - customIntro?:string - //自定义字符集名称(仅适用于本地书籍) - charset?:string - //在导入的情况下或则未分组默认为2 未分组 - bookGroup:number = 3; - // 最新章节标题 - latestChapterTitle?:string - // 最新章节标题更新时间 - latestChapterTime:number = 0; - //最近一次更新书籍信息的时间 - lastCheckTime?:number - //最近一次发现新章节的数量 - lastCheckCount?:number - //书籍目录总数 - totalChapterNum:number = 0; - //当前章节名称 - durChapterTitle?:string - //当前章节索引 - durChapterIndex:number = 0 - //当前阅读的进度(首行字符的索引位置) - durChapterPos:number = 0 - //最近一次阅读书籍的时间(打开正文的时间) - durChapterTime:number = 0 - //字数 - wordCount?:string - //刷新书架时更新书籍信息 - canUpdate:boolean = true - //排序 - sort:number = 0 - //书源排序 - originOrder:number = 0 - //同步时间 - syncTime:number = 0 - //小说0/漫画1/有声2 - bookType:number = 0 - //是否置顶 - isTop:boolean = false - //创建时间 - createTime?:number = 0 - //更新时间 - updateTime?:number = 0 - //是否加入书架 - isJoin:boolean = false - //是否本地导入 - isLocalBook:boolean = false - source?:BookSource - sourceList?:BookSource[] = [] -} - -export class bookShelfImport{ - name: string = "" - author: string = "" - intro: string = "" - bookUrl:string = "" - - constructor(bookShelf:bookShelfImport) { - this.name = bookShelf.name - this.author = bookShelf.author - this.intro = bookShelf.intro - this.bookUrl = bookShelf.bookUrl - } -} - -export const BOOK_SEARCH_TYPE: string[] = ['最近阅读', '更新排序', '手动排序'] \ No newline at end of file diff --git a/entry/src/main/ets/database/entities/SearchBook.ets b/entry/src/main/ets/database/entities/SearchBook.ets deleted file mode 100644 index a8b9112c..00000000 --- a/entry/src/main/ets/database/entities/SearchBook.ets +++ /dev/null @@ -1,36 +0,0 @@ -/** - * @author 2008 - * @datetime 2024/8/14 20:56 - * @className: SearchBook - */ -import { BookSource } from './BookSource' - -@Observed -export class SearchBook { - bookUrl: string = "" - /** 书源 */ - origin: string = "" - originName: string = "" - /** BookType */ - type: string = "" - name: string = "" - author: string = "" - kind?:string - coverUrl?: string - intro?: string - wordCount?:string - latestChapterTitle:string = "" - /** 目录页Url (toc=table of Contents) */ - tocUrl?:string = "" - time:number = Date.now() - variable?:string - originOrder?:number = 0 - chapterWordCountText?:string - chapterWordCount?: number = -1 - respondTime?: number = -1 - //数量 - belongCount:number = 1 - source?:BookSource - sourceList:BookSource[] = [] - bookType:number = 0 -} \ No newline at end of file diff --git a/entry/src/main/ets/database/entities/WorksBookList.ets b/entry/src/main/ets/database/entities/WorksBookList.ets deleted file mode 100644 index fd326093..00000000 --- a/entry/src/main/ets/database/entities/WorksBookList.ets +++ /dev/null @@ -1,22 +0,0 @@ -/** - * @author 2008 - * @datetime 2024/8/1 13:10 - * @className: markBookList - * 书单书籍列信息 - */ -@Observed -export class WorksBookList{ - //书单书籍Id - bookId?:number; - //推荐理由 - recommend?:string - //书籍标签 - tag?:string - - constructor(book?:WorksBookList) { - if (!book) return; - this.bookId = book.bookId; - this.recommend = book.recommend; - this.tag = book.tag; - } -} \ No newline at end of file diff --git a/entry/src/main/ets/database/entities/WorksLists.ets b/entry/src/main/ets/database/entities/WorksLists.ets deleted file mode 100644 index 5580e557..00000000 --- a/entry/src/main/ets/database/entities/WorksLists.ets +++ /dev/null @@ -1,80 +0,0 @@ -import { GSON } from '../../common/utils/utils'; -import { WorksBookList } from './WorksBookList'; -/** - * @author 2008 - * @datetime 2024/8/1 13:10 - * @className: WorksLists - * 书单 - */ -@Observed -export class WorksLists { - //书单Id - worksId?:number; - //书单名称 - worksName:string = ""; - //书单描述 - worksDescribe:string = ""; - //备注 - worksRemark:string = ""; - //封面 - worksCoverUrl:string = ""; - //创建时间 - createTime:number = 0; - //更新时间 - updateTime:number = 0; - //小说0/漫画1/有声2 - worksType:number = 0 - //书籍数量 - worksBookNum:number = 0; - //置顶 - isTop:boolean = false; - //书单书籍信息 - worksBookList?:WorksBookList[]; -} - -export interface worksListsDb extends Omit { - //列表 - worksBookList?: string -} - -export const ToWorksLists = (worksListsDb: worksListsDb) => { - const worksBookList = GSON.toJson(worksListsDb.worksBookList); - const worksLists: WorksLists = { - worksId: worksListsDb.worksId, - worksName: worksListsDb.worksName, - worksDescribe: worksListsDb.worksDescribe, - worksRemark: worksListsDb.worksRemark, - worksCoverUrl: worksListsDb.worksCoverUrl, - createTime: worksListsDb.createTime, - updateTime: worksListsDb.updateTime, - worksType: worksListsDb.worksType, - worksBookNum: worksListsDb.worksBookNum, - isTop: worksListsDb.isTop, - worksBookList - } - return worksLists -} - -export const ToWorksListsDb = (worksLists: WorksLists) => { - const worksBookList = GSON.toString(worksLists.worksBookList); - const worksListsDb: worksListsDb = { - worksId: worksLists.worksId, - worksName: worksLists.worksName, - worksDescribe: worksLists.worksDescribe, - worksRemark: worksLists.worksRemark, - worksCoverUrl: worksLists.worksCoverUrl, - createTime: worksLists.createTime, - updateTime: worksLists.updateTime, - worksType: worksLists.worksType, - worksBookNum: worksLists.worksBookNum, - isTop: worksLists.isTop, - worksBookList - } - return worksListsDb -} - -export const WORK_BOOK_LIST_STATUS: Record ={ - 0: '新建书单', - 1: '', - 2: '编辑书单' -} diff --git a/entry/src/main/ets/database/entities/rssSources.ets b/entry/src/main/ets/database/entities/rssSources.ets deleted file mode 100644 index b352bfd1..00000000 --- a/entry/src/main/ets/database/entities/rssSources.ets +++ /dev/null @@ -1,217 +0,0 @@ -/** - * @author 2008 - * @datetime 2024/7/14 23:19 - * @className: rssSources - * 订阅源Date - */ -import { GSON } from '../../common/utils/utils' -import { rssListRule } from './rule/rssListRule' -import { rssWebViewRule } from './rule/rssWebViewRule' - -@Observed -export class rssSources{ - id?:number - //订阅源类型0.常规网站 1.订阅源 - sourceType:number = 0 - //名称 - sourceName:string = '' - //地址url - sourceUrl:string = '' - //图标 - sourceIcon:string = '' - // 图标是否使用链接 - sourceIconIsUrl:boolean = false - // 分组 - sourceGroup:string = SUBSCRIPTION_GROUP_TYPE[4] - //源注解 - sourceComment?:string - //是否启用 - enabled: boolean = true - // 自定义变量说明 - variableComment?:string - // js库 - jsLib?:string - // 启用okhttp CookieJAr 自动保存每次请求的cookie - enabledCookieJar:boolean = false - // 并发率 - concurrentRate?:string - // 请求头 - header?:string - // 登录地址 - loginUrl?:string - // 登录UI - loginUi?:string - // 登录检测js - loginCheckJs?:string - // 封面解密js - coverDecodeJs?:string - // 分类地址 - sortUrl?:string - // 单URL - singleUrl:boolean = true - // 文章样式 - articleStyle?:string - //最后更新时间 - lastUpdateTime:number = 0 - // 排序编号 - customOrder:number = 0 - //设置源变量 - variable?:string - //是否新增或则更新点击过 - showRecentIcon:boolean = true - //自动补全 - autoComplete:boolean = true - //自定义文字 - customizeTitle:string = '' - //列表 - rssListRule?:rssListRule - //webView - rssWebViewRule?:rssWebViewRule -} - -export interface rssGroupList { - title: string - list: rssSources[] -} - -export class rssArticles{ - origin:string = '' - sort:string = '' - title:string = '' - order:number = 0 - link:string = '' - pubDate:string = '' - description?:string - content?:string - image?:string - read:number = 0 - variable?:string -} - -export class rssReadRecords{ - record:string = '' - read:number = 0 -} - - -export class rssStars { - origin:string = '' - sort:string = '' - title:string = '' - starTime?:Date - link:string = '' - pubDate:string = '' - description?:string - content?:string - image?:string - read:number = 0 - variable?:string -} - -//订阅源分组类别 -export const SUBSCRIPTION_GROUP_TYPE: Record ={ - 0: '小说', - 1: '漫画', - 2: '影视', - 3: '资讯', - 4: '收藏夹' -} - -//订阅源分组类别 -export const SUBSCRIPTION_TYPE: Record ={ - 0: '常规网站', - 1: '订阅源' -} - -export const WEB_USER_AGENT: string[] = [ - 'Mozilla/5.0 (Linux; Android 13; Pixel 5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/92.0.4515.159 Mobile Safari/537.36', - 'Mozilla/5.0 (iPhone; CPU iPhone OS 14_7_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/14.1.2 Mobile/15E148 Safari/604.1', - 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/92.0.4515.159 Safari/537.36', - 'Mozilla/5.0 (Custom Device; Custom OS 1.0; Custom Build) AppleWebKit/537.36 (KHTML, like Gecko) CustomBrowser/1.0 CustomSafari/537.36' -] - - -export interface rssSourceDb extends Omit { - //列表 - rssListRule?: string - //webView - rssWebViewRule?: string -} - - -export const ToRssSources = (rssSourceDb: rssSourceDb) => { - const rssListRule = GSON.toJson(rssSourceDb.rssListRule); - const rssWebViewRule = GSON.toJson(rssSourceDb.rssWebViewRule); - const rssSources: rssSources = { - id: rssSourceDb.id, - sourceType: rssSourceDb.sourceType, - sourceName: rssSourceDb.sourceName, - sourceUrl: rssSourceDb.sourceUrl, - sourceIcon: rssSourceDb.sourceIcon, - sourceIconIsUrl: rssSourceDb.sourceIconIsUrl, - sourceGroup: rssSourceDb.sourceGroup, - sourceComment: rssSourceDb.sourceComment, - enabled: rssSourceDb.enabled, - variableComment: rssSourceDb.variableComment, - jsLib: rssSourceDb.jsLib, - enabledCookieJar: rssSourceDb.enabledCookieJar, - concurrentRate: rssSourceDb.concurrentRate, - header: rssSourceDb.header, - loginUrl: rssSourceDb.loginUrl, - loginUi: rssSourceDb.loginUi, - loginCheckJs: rssSourceDb.loginCheckJs, - coverDecodeJs: rssSourceDb.coverDecodeJs, - sortUrl: rssSourceDb.sortUrl, - singleUrl: rssSourceDb.singleUrl, - articleStyle: rssSourceDb.articleStyle, - lastUpdateTime: rssSourceDb.lastUpdateTime, - customOrder: rssSourceDb.customOrder, - variable: rssSourceDb.variable, - autoComplete: rssSourceDb.autoComplete, - showRecentIcon:rssSourceDb.showRecentIcon, - customizeTitle:rssSourceDb.customizeTitle, - rssListRule, - rssWebViewRule - } - return rssSources -} - - -export const ToRssSourcesDb = (rssSource: rssSources) => { - const rssListRule = GSON.toString(rssSource.rssListRule); - const rssWebViewRule = GSON.toString(rssSource.rssWebViewRule); - const rssSourcesDb: rssSourceDb = { - id: rssSource.id, - sourceType: rssSource.sourceType, - sourceName: rssSource.sourceName, - sourceUrl: rssSource.sourceUrl, - sourceIcon: rssSource.sourceIcon, - sourceIconIsUrl: rssSource.sourceIconIsUrl, - sourceGroup: rssSource.sourceGroup, - sourceComment: rssSource.sourceComment, - enabled: rssSource.enabled, - variableComment: rssSource.variableComment, - jsLib: rssSource.jsLib, - enabledCookieJar: rssSource.enabledCookieJar, - concurrentRate: rssSource.concurrentRate, - header: rssSource.header, - loginUrl: rssSource.loginUrl, - loginUi: rssSource.loginUi, - loginCheckJs: rssSource.loginCheckJs, - coverDecodeJs: rssSource.coverDecodeJs, - sortUrl: rssSource.sortUrl, - singleUrl: rssSource.singleUrl, - articleStyle: rssSource.articleStyle, - lastUpdateTime: rssSource.lastUpdateTime, - customOrder: rssSource.customOrder, - variable: rssSource.variable, - autoComplete: rssSource.autoComplete, - showRecentIcon: rssSource.showRecentIcon, - customizeTitle: rssSource.customizeTitle, - rssListRule, - rssWebViewRule - } - return rssSourcesDb -} - - diff --git a/entry/src/main/ets/database/entities/rssSourcesHistory.ets b/entry/src/main/ets/database/entities/rssSourcesHistory.ets deleted file mode 100644 index a4152066..00000000 --- a/entry/src/main/ets/database/entities/rssSourcesHistory.ets +++ /dev/null @@ -1,28 +0,0 @@ -/** - * @author 2008 - * @datetime 2024/7/20 15:51 - * @className: rssSourcesHistory - */ -import { SUBSCRIPTION_GROUP_TYPE } from './rssSources' - -@Observed -export class rssSourcesHistory{ - //订阅源类型0.常规网站 1.订阅源 - sourceType:number = 0 - //名称 - sourceName:string = '' - //地址url - sourceUrl:string = '' - //图标 - sourceIcon:string = '' - // 图标是否使用链接 - sourceIconIsUrl:boolean = false - // 分组 - sourceGroup:string = SUBSCRIPTION_GROUP_TYPE[0] - //最后更新时间 - lastUpdateTime:number = 0 - //是否新增或则更新点击过 - showRecentIcon:boolean = true - //自定义文字 - customizeTitle:string = '' -} \ No newline at end of file diff --git a/entry/src/main/ets/database/entities/rssSourcesPart.ets b/entry/src/main/ets/database/entities/rssSourcesPart.ets deleted file mode 100644 index bc14ab74..00000000 --- a/entry/src/main/ets/database/entities/rssSourcesPart.ets +++ /dev/null @@ -1,36 +0,0 @@ -/** - * @author 2008 - * @datetime 2024/7/14 23:19 - * @className: rssSources - * 订阅源Part - */ -@Observed -export class rssSourcesPart { - //名称 - sourceName:string = '' - //地址url - sourceUrl:string = '' - // 分组 - sourceGroup?:string - - //是否启用 - enabled?: boolean = true - // 自定义变量说明 - variableComment?:string - // 分类地址 - sortUrl?:string - // 单URL - singleUrl?:boolean - //最后更新时间 - lastUpdateTime:number = 0 - // 排序编号 - customOrder:number = 0 - //设置源变量 - variable?:string - //订阅源类型0.常规网站 1.订阅源 - sourceType?: number = 1 - - showRecentIcon:boolean = true -} - - diff --git a/entry/src/main/ets/database/entities/rule/BookInfoRule.ets b/entry/src/main/ets/database/entities/rule/BookInfoRule.ets deleted file mode 100644 index f6c4dfb1..00000000 --- a/entry/src/main/ets/database/entities/rule/BookInfoRule.ets +++ /dev/null @@ -1,33 +0,0 @@ -/** - * 书籍详情页规则 - */ -export class BookInfoRule { - init?: string - name?: string - author?: string - intro?: string - kind?: string - lastChapter?: string - updateTime?: string - coverUrl?: string - tocUrl?: string - wordCount?: string - canReName?: string - downloadUrls?: string - - constructor(bookInfo?: BookInfoRule) { - if (!bookInfo) return; - this.init = bookInfo.init; - this.name = bookInfo.name; - this.author = bookInfo.author; - this.intro = bookInfo.intro; - this.kind = bookInfo.kind; - this.lastChapter = bookInfo.lastChapter; - this.updateTime = bookInfo.updateTime; - this.coverUrl = bookInfo.coverUrl; - this.tocUrl = bookInfo.tocUrl; - this.wordCount = bookInfo.wordCount; - this.canReName = bookInfo.canReName; - this.downloadUrls = bookInfo.downloadUrls; - } -} \ No newline at end of file diff --git a/entry/src/main/ets/database/entities/rule/ContentRule.ets b/entry/src/main/ets/database/entities/rule/ContentRule.ets deleted file mode 100644 index 5b5c7580..00000000 --- a/entry/src/main/ets/database/entities/rule/ContentRule.ets +++ /dev/null @@ -1,14 +0,0 @@ -/** - * 正文处理规则 - */ -export class ContentRule { - content?: string - title?: string //有些网站只能在正文中获取标题 - nextContentUrl?: string - webJs?: string - sourceRegex?: string - replaceRegex?: string //替换规则 - imageStyle?: string //默认大小居中,FULL最大宽度 - imageDecode?: string //图片bytes二次解密js, 返回解密后的bytes - payAction?: string //购买操作,js或者包含{{js}}的url -} \ No newline at end of file diff --git a/entry/src/main/ets/database/entities/rule/ExploreRule.ets b/entry/src/main/ets/database/entities/rule/ExploreRule.ets deleted file mode 100644 index 46c2bd8c..00000000 --- a/entry/src/main/ets/database/entities/rule/ExploreRule.ets +++ /dev/null @@ -1,15 +0,0 @@ -/** - * 发现结果规则 - */ -export class ExploreRule { - bookList?: string - name?: string - author?: string - intro?: string - kind?: string - lastChapter?: string - updateTime?: string - bookUrl?: string - coverUrl?: string - wordCount?: string -} \ No newline at end of file diff --git a/entry/src/main/ets/database/entities/rule/ReviewRule.ets b/entry/src/main/ets/database/entities/rule/ReviewRule.ets deleted file mode 100644 index 79d6fa4a..00000000 --- a/entry/src/main/ets/database/entities/rule/ReviewRule.ets +++ /dev/null @@ -1,17 +0,0 @@ -/** - * 段评规则 - */ -export class ReviewRule { - reviewUrl?: string // 段评URL - avatarRule?: string // 段评发布者头像 - contentRule?: string // 段评内容 - postTimeRule?: string // 段评发布时间 - reviewQuoteUrl?: string // 获取段评回复URL - - // 这些功能将在以上功能完成以后实现 - voteUpUrl?: string // 点赞URL - voteDownUrl?: string // 点踩URL - postReviewUrl?: string // 发送回复URL - postQuoteUrl?: string // 发送回复段评URL - deleteUrl?: string // 删除段评URL -} \ No newline at end of file diff --git a/entry/src/main/ets/database/entities/rule/SearchRule.ets b/entry/src/main/ets/database/entities/rule/SearchRule.ets deleted file mode 100644 index f22955d7..00000000 --- a/entry/src/main/ets/database/entities/rule/SearchRule.ets +++ /dev/null @@ -1,17 +0,0 @@ -/** - * 搜索结果处理规则 - */ -export class SearchRule { - /**校验关键字**/ - checkKeyWord?: string - bookList?: string - name?: string - author?: string - intro?: string - kind?: string - lastChapter?: string - updateTime?: string - bookUrl?: string - coverUrl?: string - wordCount?: string -} \ No newline at end of file diff --git a/entry/src/main/ets/database/entities/rule/TocRule.ets b/entry/src/main/ets/database/entities/rule/TocRule.ets deleted file mode 100644 index 1b8cc5bb..00000000 --- a/entry/src/main/ets/database/entities/rule/TocRule.ets +++ /dev/null @@ -1,15 +0,0 @@ -/** - * 目录规则 - */ -export class TocRule { - preUpdateJs?: string - chapterList?: string - chapterName?: string - chapterUrl?: string - formatJs?: string - isVolume?: string - isVip?: string - isPay?: string - updateTime?: string - nextTocUrl?: string -} \ No newline at end of file diff --git a/entry/src/main/ets/database/entities/rule/index.ets b/entry/src/main/ets/database/entities/rule/index.ets deleted file mode 100644 index c659d96a..00000000 --- a/entry/src/main/ets/database/entities/rule/index.ets +++ /dev/null @@ -1,6 +0,0 @@ -export * from './BookInfoRule' -export * from './ContentRule' -export * from './ExploreRule' -export * from './ReviewRule' -export * from './SearchRule' -export * from './TocRule' \ No newline at end of file diff --git a/entry/src/main/ets/database/entities/rule/rssListRule.ets b/entry/src/main/ets/database/entities/rule/rssListRule.ets deleted file mode 100644 index a628ce07..00000000 --- a/entry/src/main/ets/database/entities/rule/rssListRule.ets +++ /dev/null @@ -1,22 +0,0 @@ -/** - * @author 2008 - * @datetime 2024/7/15 14:56 - * @className: rssListRule - * 列表 - */ -export class rssListRule{ - // 列表规则 - ruleArticles?:string - // 翻页规则 - ruleNextPage?:string - //标题规则 - ruleTitle?:string - //时间规则 - rulePubDate?:string - //描述规则 - ruleDescription?:string - //图片规则 - ruleImage?:string - //链接规则 - ruleLink?:string -} \ No newline at end of file diff --git a/entry/src/main/ets/database/entities/rule/rssWebViewRule.ets b/entry/src/main/ets/database/entities/rule/rssWebViewRule.ets deleted file mode 100644 index a4b19a05..00000000 --- a/entry/src/main/ets/database/entities/rule/rssWebViewRule.ets +++ /dev/null @@ -1,23 +0,0 @@ -/** - * @author 2008 - * @datetime 2024/7/15 14:59 - * @className: rssWebViewRule - */ -export class rssWebViewRule{ - //启用JavaScript - enableJs:boolean = true - //加载 BaseUrl - loadWithBaseUrl:boolean = true - //内容规则 - ruleContent?:string - //样式规则 - style?:string - //注入规则 - injectJs?:string - //白名单 - contentWhitelist?:string - //黑名单 - contentBlacklist?:string - //链接拦截 - shouldOverrideUrlLoading?:string -} \ No newline at end of file diff --git a/entry/src/main/ets/database/index.ets b/entry/src/main/ets/database/index.ets deleted file mode 100644 index 9429c738..00000000 --- a/entry/src/main/ets/database/index.ets +++ /dev/null @@ -1,23 +0,0 @@ -import BookGroupsDao from './dao/BookGroupsDao' -import bookHistoryDao from './dao/BookHistoryDao' -import BooksDao from './dao/BooksDao' -import BookSourceDao from './dao/BookSourceDao' -import rssSourcesHistoryDao from './dao/RssSourcesHistoryDao' -import SubscriptionDao from './dao/SubscriptionDao' -import worksListsDao from './dao/WorksListsDao' - -class DataBase { - async initAllTable() { - await BookSourceDao.initBookSourceTable() - await rssSourcesHistoryDao.initRssSourcesHistoryTable() - await SubscriptionDao.initSubscriptionTable() - await BooksDao.initBooksTable() - await BookGroupsDao.initGroupTable() - await worksListsDao.initWorksListsTable() - await bookHistoryDao.initBookHistoryTable() - } -} - -const dataBase = new DataBase() - -export default dataBase as DataBase \ No newline at end of file diff --git a/entry/src/main/ets/database/initData/BookGroupsData.ets b/entry/src/main/ets/database/initData/BookGroupsData.ets deleted file mode 100644 index a76502d7..00000000 --- a/entry/src/main/ets/database/initData/BookGroupsData.ets +++ /dev/null @@ -1,57 +0,0 @@ -/** - * @author 2008 - * @datetime 2024/7/22 22:42 - * @className: BookGroup - * 书籍分组 - */ -@Observed -export class BookGroupsData { - //分组Id - groupId?:number; - //分组名称 - groupName:string = ""; - //封面是否仅用当前分组 - coverOnly:boolean = false; - //封面样式类型 0默认1自定义2全图 - coverType:number = 0; - //分组封面 - coverUrl?:string; - //分组描述 - groupDescribe?:string; - //排序 - sort:number = 1; - //是否自动刷新 - enableRefresh:boolean = true; - //是否显示 - show:boolean = true; - //小说0/漫画1/有声2 - groupType:number = 0; - //创建时间 - createTime:number = 0; - //更新时间 - updateTime:number = 0; - //书籍排序 - bookSort:number = -1; - //更新提醒 - canUpdate:boolean = false - //是否可删除 - canDelete:boolean = true - - constructor(bookGroupsData?:BookGroupsData) { - if (!bookGroupsData) return; - this.groupName = bookGroupsData.groupName; - this.coverOnly = bookGroupsData.coverOnly; - this.coverType = bookGroupsData.coverType; - this.coverUrl = bookGroupsData.coverUrl; - this.groupDescribe = bookGroupsData.groupDescribe; - this.sort = bookGroupsData.sort; - this.enableRefresh = bookGroupsData.enableRefresh; - this.show = bookGroupsData.show; - this.groupType = bookGroupsData.groupType; - this.createTime = bookGroupsData.createTime; - this.updateTime = bookGroupsData.updateTime; - this.bookSort = bookGroupsData.bookSort; - this.canUpdate = bookGroupsData.canUpdate; - this.canDelete = bookGroupsData.canDelete; - } -} \ No newline at end of file diff --git a/entry/src/main/ets/database/types/AppDatabaseType.ets b/entry/src/main/ets/database/types/AppDatabaseType.ets deleted file mode 100644 index b5190441..00000000 --- a/entry/src/main/ets/database/types/AppDatabaseType.ets +++ /dev/null @@ -1,53 +0,0 @@ -import { ColumnKeys } from './ColumnInfo' - -export interface FieldsType { - fieldPath: string - columnName: string - affinity: ColumnKeys - boolean?: boolean, - notNull: boolean - defaultValue?: string -} - -export interface PrimaryKeyType { - autoGenerate: boolean - columnNames: string[] -} - -export interface IndicesType { - name: string - unique: boolean - columnNames: string[] - orders: string[] - createSql: string -} - -export interface ForeignKeysType { - table: string - onDelete: string - onUpdate: string - columns: string[] - referencedColumns: string[] -} - -export interface EntitiesType { - tableName: string - createSql: string - fields: FieldsType[] - primaryKey: PrimaryKeyType - indices: IndicesType[] - foreignKeys: ForeignKeysType[] -} - -export interface DatabaseType { - version: number - identityHash: string - entities: EntitiesType[] - views: string[] - setupQueries: string[] -} - -export interface AppDataBaseType { - formatVersion: number - database: DatabaseType -} \ No newline at end of file diff --git a/entry/src/main/ets/database/types/BookGroupType.ets b/entry/src/main/ets/database/types/BookGroupType.ets deleted file mode 100644 index 81676bd2..00000000 --- a/entry/src/main/ets/database/types/BookGroupType.ets +++ /dev/null @@ -1,10 +0,0 @@ -/** - * @author 2008 - * @datetime 2024/7/24 22:03 - * @className: BookGroupType - */ -export interface BookGroupTypeParams { - //类型 0 小说;1 漫画;2 有声书; - type?: number, - show?: boolean -} \ No newline at end of file diff --git a/entry/src/main/ets/database/types/BookHistoryType.ets b/entry/src/main/ets/database/types/BookHistoryType.ets deleted file mode 100644 index c3eced72..00000000 --- a/entry/src/main/ets/database/types/BookHistoryType.ets +++ /dev/null @@ -1,11 +0,0 @@ -/** - * @author 2008 - * @datetime 2024/7/24 22:03 - * @className: BookGroupType - */ -export interface BookHistoryTypeParams { - //类型 0 小说;1 漫画;2 有声书; - type?: number, - //排序 - sort?: number -} \ No newline at end of file diff --git a/entry/src/main/ets/database/types/BookSourceType.ets b/entry/src/main/ets/database/types/BookSourceType.ets deleted file mode 100644 index e2517299..00000000 --- a/entry/src/main/ets/database/types/BookSourceType.ets +++ /dev/null @@ -1,45 +0,0 @@ -export interface BookSourceSearchParams { - // 搜索关键词 - searchKey?: string, - // 源类型 0 小说;1 漫画;2 有声书; - type?: number, - // 是否启用 - enabled?: boolean, - // 排序 0 按评分排序 1 按时间排序 - order?: number, - // 等级 - bookSourceGrade?: number, - // TODO 校验,还未实现 - verify?: number, - // 是否存在登录 - hasLoginUrl?: boolean, - // 是否存在发现 - hasExploreUrl?: boolean - // 是否显示的发现 - showExplore?: boolean -} - -export interface ExploreQuery { - url: string, - pageSize: number, - bookList?: string - name?: string - author?: string - intro?: string - kind?: string - lastChapter?: string - bookUrl?: string - coverUrl?: string - wordCount?: string -} - -export interface ExploreItemStyle { - layout_flexGrow?: number; - layout_flexBasisPercent?: number; -} - -export interface ExploreItem { - title: string, - url: string, - style?: ExploreItemStyle -} \ No newline at end of file diff --git a/entry/src/main/ets/database/types/BooksType.ets b/entry/src/main/ets/database/types/BooksType.ets deleted file mode 100644 index a7314006..00000000 --- a/entry/src/main/ets/database/types/BooksType.ets +++ /dev/null @@ -1,15 +0,0 @@ -/** - * @author 2008 - * @datetime 2024/7/23 11:02 - * @className: BooksType - */ -export interface BooksTypeSearchParams { - // 搜索关键词书源名称/书籍名称/author - searchKey?: string, - // 源类型 0 小说;1 漫画;2 有声书; - type?: number, - //分组 - bookGroup?: number, - //排序方式 - order?: string -} \ No newline at end of file diff --git a/entry/src/main/ets/database/types/ColumnInfo.ets b/entry/src/main/ets/database/types/ColumnInfo.ets deleted file mode 100644 index f5e3081f..00000000 --- a/entry/src/main/ets/database/types/ColumnInfo.ets +++ /dev/null @@ -1,31 +0,0 @@ -/** - * Copyright (C), 2024-06-22 - * @author LinXun - * @date 2024-06-22 10:08 - * @version 1.0 - * @description: 数据库列接口 - */ -export interface ColumnInfo{ - // 实体属性名 - name: string - // 数据库列名 - columnName: string - // 列类型 - type: ColumnType - defaultValue?: string | number -} -// 数据类型 -export enum ColumnType{ - LONG, - DOUBLE, - STRING, - BLOB, - BOOLEAN -} - -export type ColumnKeys = 'INTEGER' | 'TEXT' - -export const ColumnValue: Record = { - 'INTEGER': ColumnType.LONG, - 'TEXT': ColumnType.STRING -} \ No newline at end of file diff --git a/entry/src/main/ets/database/types/WorksListsType.ets b/entry/src/main/ets/database/types/WorksListsType.ets deleted file mode 100644 index 0e155510..00000000 --- a/entry/src/main/ets/database/types/WorksListsType.ets +++ /dev/null @@ -1,11 +0,0 @@ -/** - * @author 2008 - * @datetime 2024/8/1 11:02 - * @className: WorkListsType - */ -export interface WorksListsTypeSearchParams { - // 搜索关键词 - searchKey?: string, - // 源类型 0 小说;1 漫画;2 有声书; - type?: number -} \ No newline at end of file diff --git a/entry/src/main/ets/database/types/rssSourcesType.ets b/entry/src/main/ets/database/types/rssSourcesType.ets deleted file mode 100644 index bb930062..00000000 --- a/entry/src/main/ets/database/types/rssSourcesType.ets +++ /dev/null @@ -1,11 +0,0 @@ -/** - * @author 2008 - * @datetime 2024/7/15 16:38 - * @className: rssSourcesType - */ -export interface rssSourcesTypeParams { - // 搜索关键词 - searchKey?: string, - // 是否启用 - enabled?: boolean -} \ No newline at end of file