77.json 55 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810
  1. {
  2. "formatVersion": 1,
  3. "database": {
  4. "version": 77,
  5. "identityHash": "ed8334991896eea7e666ac1f04b26011",
  6. "entities": [
  7. {
  8. "tableName": "books",
  9. "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`))",
  10. "fields": [
  11. {
  12. "fieldPath": "bookUrl",
  13. "columnName": "bookUrl",
  14. "affinity": "TEXT",
  15. "notNull": true,
  16. "defaultValue": "''"
  17. },
  18. {
  19. "fieldPath": "tocUrl",
  20. "columnName": "tocUrl",
  21. "affinity": "TEXT",
  22. "notNull": true,
  23. "defaultValue": "''"
  24. },
  25. {
  26. "fieldPath": "origin",
  27. "columnName": "origin",
  28. "affinity": "TEXT",
  29. "notNull": true,
  30. "defaultValue": "'loc_book'"
  31. },
  32. {
  33. "fieldPath": "originName",
  34. "columnName": "originName",
  35. "affinity": "TEXT",
  36. "notNull": true,
  37. "defaultValue": "''"
  38. },
  39. {
  40. "fieldPath": "name",
  41. "columnName": "name",
  42. "affinity": "TEXT",
  43. "notNull": true,
  44. "defaultValue": "''"
  45. },
  46. {
  47. "fieldPath": "author",
  48. "columnName": "author",
  49. "affinity": "TEXT",
  50. "notNull": true,
  51. "defaultValue": "''"
  52. },
  53. {
  54. "fieldPath": "kind",
  55. "columnName": "kind",
  56. "affinity": "TEXT"
  57. },
  58. {
  59. "fieldPath": "customTag",
  60. "columnName": "customTag",
  61. "affinity": "TEXT"
  62. },
  63. {
  64. "fieldPath": "coverUrl",
  65. "columnName": "coverUrl",
  66. "affinity": "TEXT"
  67. },
  68. {
  69. "fieldPath": "customCoverUrl",
  70. "columnName": "customCoverUrl",
  71. "affinity": "TEXT"
  72. },
  73. {
  74. "fieldPath": "intro",
  75. "columnName": "intro",
  76. "affinity": "TEXT"
  77. },
  78. {
  79. "fieldPath": "customIntro",
  80. "columnName": "customIntro",
  81. "affinity": "TEXT"
  82. },
  83. {
  84. "fieldPath": "charset",
  85. "columnName": "charset",
  86. "affinity": "TEXT"
  87. },
  88. {
  89. "fieldPath": "type",
  90. "columnName": "type",
  91. "affinity": "INTEGER",
  92. "notNull": true,
  93. "defaultValue": "0"
  94. },
  95. {
  96. "fieldPath": "group",
  97. "columnName": "group",
  98. "affinity": "INTEGER",
  99. "notNull": true,
  100. "defaultValue": "0"
  101. },
  102. {
  103. "fieldPath": "latestChapterTitle",
  104. "columnName": "latestChapterTitle",
  105. "affinity": "TEXT"
  106. },
  107. {
  108. "fieldPath": "latestChapterTime",
  109. "columnName": "latestChapterTime",
  110. "affinity": "INTEGER",
  111. "notNull": true,
  112. "defaultValue": "0"
  113. },
  114. {
  115. "fieldPath": "lastCheckTime",
  116. "columnName": "lastCheckTime",
  117. "affinity": "INTEGER",
  118. "notNull": true,
  119. "defaultValue": "0"
  120. },
  121. {
  122. "fieldPath": "lastCheckCount",
  123. "columnName": "lastCheckCount",
  124. "affinity": "INTEGER",
  125. "notNull": true,
  126. "defaultValue": "0"
  127. },
  128. {
  129. "fieldPath": "totalChapterNum",
  130. "columnName": "totalChapterNum",
  131. "affinity": "INTEGER",
  132. "notNull": true,
  133. "defaultValue": "0"
  134. },
  135. {
  136. "fieldPath": "durChapterTitle",
  137. "columnName": "durChapterTitle",
  138. "affinity": "TEXT"
  139. },
  140. {
  141. "fieldPath": "durChapterIndex",
  142. "columnName": "durChapterIndex",
  143. "affinity": "INTEGER",
  144. "notNull": true,
  145. "defaultValue": "0"
  146. },
  147. {
  148. "fieldPath": "durChapterPos",
  149. "columnName": "durChapterPos",
  150. "affinity": "INTEGER",
  151. "notNull": true,
  152. "defaultValue": "0"
  153. },
  154. {
  155. "fieldPath": "durChapterTime",
  156. "columnName": "durChapterTime",
  157. "affinity": "INTEGER",
  158. "notNull": true,
  159. "defaultValue": "0"
  160. },
  161. {
  162. "fieldPath": "wordCount",
  163. "columnName": "wordCount",
  164. "affinity": "TEXT"
  165. },
  166. {
  167. "fieldPath": "canUpdate",
  168. "columnName": "canUpdate",
  169. "affinity": "INTEGER",
  170. "notNull": true,
  171. "defaultValue": "1"
  172. },
  173. {
  174. "fieldPath": "order",
  175. "columnName": "order",
  176. "affinity": "INTEGER",
  177. "notNull": true,
  178. "defaultValue": "0"
  179. },
  180. {
  181. "fieldPath": "originOrder",
  182. "columnName": "originOrder",
  183. "affinity": "INTEGER",
  184. "notNull": true,
  185. "defaultValue": "0"
  186. },
  187. {
  188. "fieldPath": "variable",
  189. "columnName": "variable",
  190. "affinity": "TEXT"
  191. },
  192. {
  193. "fieldPath": "readConfig",
  194. "columnName": "readConfig",
  195. "affinity": "TEXT"
  196. },
  197. {
  198. "fieldPath": "syncTime",
  199. "columnName": "syncTime",
  200. "affinity": "INTEGER",
  201. "notNull": true,
  202. "defaultValue": "0"
  203. }
  204. ],
  205. "primaryKey": {
  206. "autoGenerate": false,
  207. "columnNames": [
  208. "bookUrl"
  209. ]
  210. },
  211. "indices": [
  212. {
  213. "name": "index_books_name_author",
  214. "unique": false,
  215. "columnNames": [
  216. "name",
  217. "author"
  218. ],
  219. "orders": [],
  220. "createSql": "CREATE INDEX IF NOT EXISTS `index_books_name_author` ON `${TABLE_NAME}` (`name`, `author`)"
  221. }
  222. ]
  223. },
  224. {
  225. "tableName": "book_groups",
  226. "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`))",
  227. "fields": [
  228. {
  229. "fieldPath": "groupId",
  230. "columnName": "groupId",
  231. "affinity": "INTEGER",
  232. "notNull": true
  233. },
  234. {
  235. "fieldPath": "groupName",
  236. "columnName": "groupName",
  237. "affinity": "TEXT",
  238. "notNull": true
  239. },
  240. {
  241. "fieldPath": "cover",
  242. "columnName": "cover",
  243. "affinity": "TEXT"
  244. },
  245. {
  246. "fieldPath": "order",
  247. "columnName": "order",
  248. "affinity": "INTEGER",
  249. "notNull": true
  250. },
  251. {
  252. "fieldPath": "enableRefresh",
  253. "columnName": "enableRefresh",
  254. "affinity": "INTEGER",
  255. "notNull": true,
  256. "defaultValue": "1"
  257. },
  258. {
  259. "fieldPath": "show",
  260. "columnName": "show",
  261. "affinity": "INTEGER",
  262. "notNull": true,
  263. "defaultValue": "1"
  264. },
  265. {
  266. "fieldPath": "bookSort",
  267. "columnName": "bookSort",
  268. "affinity": "INTEGER",
  269. "notNull": true,
  270. "defaultValue": "-1"
  271. }
  272. ],
  273. "primaryKey": {
  274. "autoGenerate": false,
  275. "columnNames": [
  276. "groupId"
  277. ]
  278. }
  279. },
  280. {
  281. "tableName": "book_sources",
  282. "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`))",
  283. "fields": [
  284. {
  285. "fieldPath": "bookSourceUrl",
  286. "columnName": "bookSourceUrl",
  287. "affinity": "TEXT",
  288. "notNull": true
  289. },
  290. {
  291. "fieldPath": "bookSourceName",
  292. "columnName": "bookSourceName",
  293. "affinity": "TEXT",
  294. "notNull": true
  295. },
  296. {
  297. "fieldPath": "bookSourceGroup",
  298. "columnName": "bookSourceGroup",
  299. "affinity": "TEXT"
  300. },
  301. {
  302. "fieldPath": "bookSourceType",
  303. "columnName": "bookSourceType",
  304. "affinity": "INTEGER",
  305. "notNull": true
  306. },
  307. {
  308. "fieldPath": "bookUrlPattern",
  309. "columnName": "bookUrlPattern",
  310. "affinity": "TEXT"
  311. },
  312. {
  313. "fieldPath": "customOrder",
  314. "columnName": "customOrder",
  315. "affinity": "INTEGER",
  316. "notNull": true,
  317. "defaultValue": "0"
  318. },
  319. {
  320. "fieldPath": "enabled",
  321. "columnName": "enabled",
  322. "affinity": "INTEGER",
  323. "notNull": true,
  324. "defaultValue": "1"
  325. },
  326. {
  327. "fieldPath": "enabledExplore",
  328. "columnName": "enabledExplore",
  329. "affinity": "INTEGER",
  330. "notNull": true,
  331. "defaultValue": "1"
  332. },
  333. {
  334. "fieldPath": "jsLib",
  335. "columnName": "jsLib",
  336. "affinity": "TEXT"
  337. },
  338. {
  339. "fieldPath": "enabledCookieJar",
  340. "columnName": "enabledCookieJar",
  341. "affinity": "INTEGER",
  342. "defaultValue": "0"
  343. },
  344. {
  345. "fieldPath": "concurrentRate",
  346. "columnName": "concurrentRate",
  347. "affinity": "TEXT"
  348. },
  349. {
  350. "fieldPath": "header",
  351. "columnName": "header",
  352. "affinity": "TEXT"
  353. },
  354. {
  355. "fieldPath": "loginUrl",
  356. "columnName": "loginUrl",
  357. "affinity": "TEXT"
  358. },
  359. {
  360. "fieldPath": "loginUi",
  361. "columnName": "loginUi",
  362. "affinity": "TEXT"
  363. },
  364. {
  365. "fieldPath": "loginCheckJs",
  366. "columnName": "loginCheckJs",
  367. "affinity": "TEXT"
  368. },
  369. {
  370. "fieldPath": "coverDecodeJs",
  371. "columnName": "coverDecodeJs",
  372. "affinity": "TEXT"
  373. },
  374. {
  375. "fieldPath": "bookSourceComment",
  376. "columnName": "bookSourceComment",
  377. "affinity": "TEXT"
  378. },
  379. {
  380. "fieldPath": "variableComment",
  381. "columnName": "variableComment",
  382. "affinity": "TEXT"
  383. },
  384. {
  385. "fieldPath": "lastUpdateTime",
  386. "columnName": "lastUpdateTime",
  387. "affinity": "INTEGER",
  388. "notNull": true
  389. },
  390. {
  391. "fieldPath": "respondTime",
  392. "columnName": "respondTime",
  393. "affinity": "INTEGER",
  394. "notNull": true
  395. },
  396. {
  397. "fieldPath": "weight",
  398. "columnName": "weight",
  399. "affinity": "INTEGER",
  400. "notNull": true
  401. },
  402. {
  403. "fieldPath": "exploreUrl",
  404. "columnName": "exploreUrl",
  405. "affinity": "TEXT"
  406. },
  407. {
  408. "fieldPath": "exploreScreen",
  409. "columnName": "exploreScreen",
  410. "affinity": "TEXT"
  411. },
  412. {
  413. "fieldPath": "ruleExplore",
  414. "columnName": "ruleExplore",
  415. "affinity": "TEXT"
  416. },
  417. {
  418. "fieldPath": "searchUrl",
  419. "columnName": "searchUrl",
  420. "affinity": "TEXT"
  421. },
  422. {
  423. "fieldPath": "ruleSearch",
  424. "columnName": "ruleSearch",
  425. "affinity": "TEXT"
  426. },
  427. {
  428. "fieldPath": "ruleBookInfo",
  429. "columnName": "ruleBookInfo",
  430. "affinity": "TEXT"
  431. },
  432. {
  433. "fieldPath": "ruleToc",
  434. "columnName": "ruleToc",
  435. "affinity": "TEXT"
  436. },
  437. {
  438. "fieldPath": "ruleContent",
  439. "columnName": "ruleContent",
  440. "affinity": "TEXT"
  441. },
  442. {
  443. "fieldPath": "ruleReview",
  444. "columnName": "ruleReview",
  445. "affinity": "TEXT"
  446. }
  447. ],
  448. "primaryKey": {
  449. "autoGenerate": false,
  450. "columnNames": [
  451. "bookSourceUrl"
  452. ]
  453. },
  454. "indices": [
  455. {
  456. "name": "index_book_sources_bookSourceUrl",
  457. "unique": false,
  458. "columnNames": [
  459. "bookSourceUrl"
  460. ],
  461. "orders": [],
  462. "createSql": "CREATE INDEX IF NOT EXISTS `index_book_sources_bookSourceUrl` ON `${TABLE_NAME}` (`bookSourceUrl`)"
  463. }
  464. ]
  465. },
  466. {
  467. "tableName": "chapters",
  468. "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`url` TEXT NOT NULL, `title` TEXT NOT NULL, `isVolume` INTEGER NOT NULL, `baseUrl` TEXT NOT NULL, `bookUrl` TEXT NOT NULL, `index` INTEGER NOT NULL, `isVip` INTEGER NOT NULL, `isPay` INTEGER NOT NULL, `resourceUrl` TEXT, `tag` TEXT, `wordCount` TEXT, `start` INTEGER, `end` INTEGER, `startFragmentId` TEXT, `endFragmentId` TEXT, `variable` TEXT, `reviewImg` TEXT, PRIMARY KEY(`url`, `bookUrl`), FOREIGN KEY(`bookUrl`) REFERENCES `books`(`bookUrl`) ON UPDATE NO ACTION ON DELETE CASCADE )",
  469. "fields": [
  470. {
  471. "fieldPath": "url",
  472. "columnName": "url",
  473. "affinity": "TEXT",
  474. "notNull": true
  475. },
  476. {
  477. "fieldPath": "title",
  478. "columnName": "title",
  479. "affinity": "TEXT",
  480. "notNull": true
  481. },
  482. {
  483. "fieldPath": "isVolume",
  484. "columnName": "isVolume",
  485. "affinity": "INTEGER",
  486. "notNull": true
  487. },
  488. {
  489. "fieldPath": "baseUrl",
  490. "columnName": "baseUrl",
  491. "affinity": "TEXT",
  492. "notNull": true
  493. },
  494. {
  495. "fieldPath": "bookUrl",
  496. "columnName": "bookUrl",
  497. "affinity": "TEXT",
  498. "notNull": true
  499. },
  500. {
  501. "fieldPath": "index",
  502. "columnName": "index",
  503. "affinity": "INTEGER",
  504. "notNull": true
  505. },
  506. {
  507. "fieldPath": "isVip",
  508. "columnName": "isVip",
  509. "affinity": "INTEGER",
  510. "notNull": true
  511. },
  512. {
  513. "fieldPath": "isPay",
  514. "columnName": "isPay",
  515. "affinity": "INTEGER",
  516. "notNull": true
  517. },
  518. {
  519. "fieldPath": "resourceUrl",
  520. "columnName": "resourceUrl",
  521. "affinity": "TEXT"
  522. },
  523. {
  524. "fieldPath": "tag",
  525. "columnName": "tag",
  526. "affinity": "TEXT"
  527. },
  528. {
  529. "fieldPath": "wordCount",
  530. "columnName": "wordCount",
  531. "affinity": "TEXT"
  532. },
  533. {
  534. "fieldPath": "start",
  535. "columnName": "start",
  536. "affinity": "INTEGER"
  537. },
  538. {
  539. "fieldPath": "end",
  540. "columnName": "end",
  541. "affinity": "INTEGER"
  542. },
  543. {
  544. "fieldPath": "startFragmentId",
  545. "columnName": "startFragmentId",
  546. "affinity": "TEXT"
  547. },
  548. {
  549. "fieldPath": "endFragmentId",
  550. "columnName": "endFragmentId",
  551. "affinity": "TEXT"
  552. },
  553. {
  554. "fieldPath": "variable",
  555. "columnName": "variable",
  556. "affinity": "TEXT"
  557. },
  558. {
  559. "fieldPath": "reviewImg",
  560. "columnName": "reviewImg",
  561. "affinity": "TEXT"
  562. }
  563. ],
  564. "primaryKey": {
  565. "autoGenerate": false,
  566. "columnNames": [
  567. "url",
  568. "bookUrl"
  569. ]
  570. },
  571. "indices": [
  572. {
  573. "name": "index_chapters_bookUrl",
  574. "unique": false,
  575. "columnNames": [
  576. "bookUrl"
  577. ],
  578. "orders": [],
  579. "createSql": "CREATE INDEX IF NOT EXISTS `index_chapters_bookUrl` ON `${TABLE_NAME}` (`bookUrl`)"
  580. },
  581. {
  582. "name": "index_chapters_bookUrl_index",
  583. "unique": true,
  584. "columnNames": [
  585. "bookUrl",
  586. "index"
  587. ],
  588. "orders": [],
  589. "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_chapters_bookUrl_index` ON `${TABLE_NAME}` (`bookUrl`, `index`)"
  590. }
  591. ],
  592. "foreignKeys": [
  593. {
  594. "table": "books",
  595. "onDelete": "CASCADE",
  596. "onUpdate": "NO ACTION",
  597. "columns": [
  598. "bookUrl"
  599. ],
  600. "referencedColumns": [
  601. "bookUrl"
  602. ]
  603. }
  604. ]
  605. },
  606. {
  607. "tableName": "replace_rules",
  608. "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)",
  609. "fields": [
  610. {
  611. "fieldPath": "id",
  612. "columnName": "id",
  613. "affinity": "INTEGER",
  614. "notNull": true
  615. },
  616. {
  617. "fieldPath": "name",
  618. "columnName": "name",
  619. "affinity": "TEXT",
  620. "notNull": true,
  621. "defaultValue": "''"
  622. },
  623. {
  624. "fieldPath": "group",
  625. "columnName": "group",
  626. "affinity": "TEXT"
  627. },
  628. {
  629. "fieldPath": "pattern",
  630. "columnName": "pattern",
  631. "affinity": "TEXT",
  632. "notNull": true,
  633. "defaultValue": "''"
  634. },
  635. {
  636. "fieldPath": "replacement",
  637. "columnName": "replacement",
  638. "affinity": "TEXT",
  639. "notNull": true,
  640. "defaultValue": "''"
  641. },
  642. {
  643. "fieldPath": "scope",
  644. "columnName": "scope",
  645. "affinity": "TEXT"
  646. },
  647. {
  648. "fieldPath": "scopeTitle",
  649. "columnName": "scopeTitle",
  650. "affinity": "INTEGER",
  651. "notNull": true,
  652. "defaultValue": "0"
  653. },
  654. {
  655. "fieldPath": "scopeContent",
  656. "columnName": "scopeContent",
  657. "affinity": "INTEGER",
  658. "notNull": true,
  659. "defaultValue": "1"
  660. },
  661. {
  662. "fieldPath": "excludeScope",
  663. "columnName": "excludeScope",
  664. "affinity": "TEXT"
  665. },
  666. {
  667. "fieldPath": "isEnabled",
  668. "columnName": "isEnabled",
  669. "affinity": "INTEGER",
  670. "notNull": true,
  671. "defaultValue": "1"
  672. },
  673. {
  674. "fieldPath": "isRegex",
  675. "columnName": "isRegex",
  676. "affinity": "INTEGER",
  677. "notNull": true,
  678. "defaultValue": "1"
  679. },
  680. {
  681. "fieldPath": "timeoutMillisecond",
  682. "columnName": "timeoutMillisecond",
  683. "affinity": "INTEGER",
  684. "notNull": true,
  685. "defaultValue": "3000"
  686. },
  687. {
  688. "fieldPath": "order",
  689. "columnName": "sortOrder",
  690. "affinity": "INTEGER",
  691. "notNull": true,
  692. "defaultValue": "0"
  693. }
  694. ],
  695. "primaryKey": {
  696. "autoGenerate": true,
  697. "columnNames": [
  698. "id"
  699. ]
  700. },
  701. "indices": [
  702. {
  703. "name": "index_replace_rules_id",
  704. "unique": false,
  705. "columnNames": [
  706. "id"
  707. ],
  708. "orders": [],
  709. "createSql": "CREATE INDEX IF NOT EXISTS `index_replace_rules_id` ON `${TABLE_NAME}` (`id`)"
  710. }
  711. ]
  712. },
  713. {
  714. "tableName": "searchBooks",
  715. "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 )",
  716. "fields": [
  717. {
  718. "fieldPath": "bookUrl",
  719. "columnName": "bookUrl",
  720. "affinity": "TEXT",
  721. "notNull": true
  722. },
  723. {
  724. "fieldPath": "origin",
  725. "columnName": "origin",
  726. "affinity": "TEXT",
  727. "notNull": true
  728. },
  729. {
  730. "fieldPath": "originName",
  731. "columnName": "originName",
  732. "affinity": "TEXT",
  733. "notNull": true
  734. },
  735. {
  736. "fieldPath": "type",
  737. "columnName": "type",
  738. "affinity": "INTEGER",
  739. "notNull": true
  740. },
  741. {
  742. "fieldPath": "name",
  743. "columnName": "name",
  744. "affinity": "TEXT",
  745. "notNull": true
  746. },
  747. {
  748. "fieldPath": "author",
  749. "columnName": "author",
  750. "affinity": "TEXT",
  751. "notNull": true
  752. },
  753. {
  754. "fieldPath": "kind",
  755. "columnName": "kind",
  756. "affinity": "TEXT"
  757. },
  758. {
  759. "fieldPath": "coverUrl",
  760. "columnName": "coverUrl",
  761. "affinity": "TEXT"
  762. },
  763. {
  764. "fieldPath": "intro",
  765. "columnName": "intro",
  766. "affinity": "TEXT"
  767. },
  768. {
  769. "fieldPath": "wordCount",
  770. "columnName": "wordCount",
  771. "affinity": "TEXT"
  772. },
  773. {
  774. "fieldPath": "latestChapterTitle",
  775. "columnName": "latestChapterTitle",
  776. "affinity": "TEXT"
  777. },
  778. {
  779. "fieldPath": "tocUrl",
  780. "columnName": "tocUrl",
  781. "affinity": "TEXT",
  782. "notNull": true
  783. },
  784. {
  785. "fieldPath": "time",
  786. "columnName": "time",
  787. "affinity": "INTEGER",
  788. "notNull": true
  789. },
  790. {
  791. "fieldPath": "variable",
  792. "columnName": "variable",
  793. "affinity": "TEXT"
  794. },
  795. {
  796. "fieldPath": "originOrder",
  797. "columnName": "originOrder",
  798. "affinity": "INTEGER",
  799. "notNull": true
  800. },
  801. {
  802. "fieldPath": "chapterWordCountText",
  803. "columnName": "chapterWordCountText",
  804. "affinity": "TEXT"
  805. },
  806. {
  807. "fieldPath": "chapterWordCount",
  808. "columnName": "chapterWordCount",
  809. "affinity": "INTEGER",
  810. "notNull": true,
  811. "defaultValue": "-1"
  812. },
  813. {
  814. "fieldPath": "respondTime",
  815. "columnName": "respondTime",
  816. "affinity": "INTEGER",
  817. "notNull": true,
  818. "defaultValue": "-1"
  819. }
  820. ],
  821. "primaryKey": {
  822. "autoGenerate": false,
  823. "columnNames": [
  824. "bookUrl"
  825. ]
  826. },
  827. "indices": [
  828. {
  829. "name": "index_searchBooks_bookUrl",
  830. "unique": true,
  831. "columnNames": [
  832. "bookUrl"
  833. ],
  834. "orders": [],
  835. "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_searchBooks_bookUrl` ON `${TABLE_NAME}` (`bookUrl`)"
  836. },
  837. {
  838. "name": "index_searchBooks_origin",
  839. "unique": false,
  840. "columnNames": [
  841. "origin"
  842. ],
  843. "orders": [],
  844. "createSql": "CREATE INDEX IF NOT EXISTS `index_searchBooks_origin` ON `${TABLE_NAME}` (`origin`)"
  845. }
  846. ],
  847. "foreignKeys": [
  848. {
  849. "table": "book_sources",
  850. "onDelete": "CASCADE",
  851. "onUpdate": "NO ACTION",
  852. "columns": [
  853. "origin"
  854. ],
  855. "referencedColumns": [
  856. "bookSourceUrl"
  857. ]
  858. }
  859. ]
  860. },
  861. {
  862. "tableName": "search_keywords",
  863. "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`word` TEXT NOT NULL, `usage` INTEGER NOT NULL, `lastUseTime` INTEGER NOT NULL, PRIMARY KEY(`word`))",
  864. "fields": [
  865. {
  866. "fieldPath": "word",
  867. "columnName": "word",
  868. "affinity": "TEXT",
  869. "notNull": true
  870. },
  871. {
  872. "fieldPath": "usage",
  873. "columnName": "usage",
  874. "affinity": "INTEGER",
  875. "notNull": true
  876. },
  877. {
  878. "fieldPath": "lastUseTime",
  879. "columnName": "lastUseTime",
  880. "affinity": "INTEGER",
  881. "notNull": true
  882. }
  883. ],
  884. "primaryKey": {
  885. "autoGenerate": false,
  886. "columnNames": [
  887. "word"
  888. ]
  889. },
  890. "indices": [
  891. {
  892. "name": "index_search_keywords_word",
  893. "unique": true,
  894. "columnNames": [
  895. "word"
  896. ],
  897. "orders": [],
  898. "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_search_keywords_word` ON `${TABLE_NAME}` (`word`)"
  899. }
  900. ]
  901. },
  902. {
  903. "tableName": "cookies",
  904. "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`url` TEXT NOT NULL, `cookie` TEXT NOT NULL, PRIMARY KEY(`url`))",
  905. "fields": [
  906. {
  907. "fieldPath": "url",
  908. "columnName": "url",
  909. "affinity": "TEXT",
  910. "notNull": true
  911. },
  912. {
  913. "fieldPath": "cookie",
  914. "columnName": "cookie",
  915. "affinity": "TEXT",
  916. "notNull": true
  917. }
  918. ],
  919. "primaryKey": {
  920. "autoGenerate": false,
  921. "columnNames": [
  922. "url"
  923. ]
  924. },
  925. "indices": [
  926. {
  927. "name": "index_cookies_url",
  928. "unique": true,
  929. "columnNames": [
  930. "url"
  931. ],
  932. "orders": [],
  933. "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_cookies_url` ON `${TABLE_NAME}` (`url`)"
  934. }
  935. ]
  936. },
  937. {
  938. "tableName": "rssSources",
  939. "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`))",
  940. "fields": [
  941. {
  942. "fieldPath": "sourceUrl",
  943. "columnName": "sourceUrl",
  944. "affinity": "TEXT",
  945. "notNull": true
  946. },
  947. {
  948. "fieldPath": "sourceName",
  949. "columnName": "sourceName",
  950. "affinity": "TEXT",
  951. "notNull": true
  952. },
  953. {
  954. "fieldPath": "sourceIcon",
  955. "columnName": "sourceIcon",
  956. "affinity": "TEXT",
  957. "notNull": true
  958. },
  959. {
  960. "fieldPath": "sourceGroup",
  961. "columnName": "sourceGroup",
  962. "affinity": "TEXT"
  963. },
  964. {
  965. "fieldPath": "sourceComment",
  966. "columnName": "sourceComment",
  967. "affinity": "TEXT"
  968. },
  969. {
  970. "fieldPath": "enabled",
  971. "columnName": "enabled",
  972. "affinity": "INTEGER",
  973. "notNull": true
  974. },
  975. {
  976. "fieldPath": "variableComment",
  977. "columnName": "variableComment",
  978. "affinity": "TEXT"
  979. },
  980. {
  981. "fieldPath": "jsLib",
  982. "columnName": "jsLib",
  983. "affinity": "TEXT"
  984. },
  985. {
  986. "fieldPath": "enabledCookieJar",
  987. "columnName": "enabledCookieJar",
  988. "affinity": "INTEGER",
  989. "defaultValue": "0"
  990. },
  991. {
  992. "fieldPath": "concurrentRate",
  993. "columnName": "concurrentRate",
  994. "affinity": "TEXT"
  995. },
  996. {
  997. "fieldPath": "header",
  998. "columnName": "header",
  999. "affinity": "TEXT"
  1000. },
  1001. {
  1002. "fieldPath": "loginUrl",
  1003. "columnName": "loginUrl",
  1004. "affinity": "TEXT"
  1005. },
  1006. {
  1007. "fieldPath": "loginUi",
  1008. "columnName": "loginUi",
  1009. "affinity": "TEXT"
  1010. },
  1011. {
  1012. "fieldPath": "loginCheckJs",
  1013. "columnName": "loginCheckJs",
  1014. "affinity": "TEXT"
  1015. },
  1016. {
  1017. "fieldPath": "coverDecodeJs",
  1018. "columnName": "coverDecodeJs",
  1019. "affinity": "TEXT"
  1020. },
  1021. {
  1022. "fieldPath": "sortUrl",
  1023. "columnName": "sortUrl",
  1024. "affinity": "TEXT"
  1025. },
  1026. {
  1027. "fieldPath": "singleUrl",
  1028. "columnName": "singleUrl",
  1029. "affinity": "INTEGER",
  1030. "notNull": true
  1031. },
  1032. {
  1033. "fieldPath": "articleStyle",
  1034. "columnName": "articleStyle",
  1035. "affinity": "INTEGER",
  1036. "notNull": true,
  1037. "defaultValue": "0"
  1038. },
  1039. {
  1040. "fieldPath": "ruleArticles",
  1041. "columnName": "ruleArticles",
  1042. "affinity": "TEXT"
  1043. },
  1044. {
  1045. "fieldPath": "ruleNextPage",
  1046. "columnName": "ruleNextPage",
  1047. "affinity": "TEXT"
  1048. },
  1049. {
  1050. "fieldPath": "ruleTitle",
  1051. "columnName": "ruleTitle",
  1052. "affinity": "TEXT"
  1053. },
  1054. {
  1055. "fieldPath": "rulePubDate",
  1056. "columnName": "rulePubDate",
  1057. "affinity": "TEXT"
  1058. },
  1059. {
  1060. "fieldPath": "ruleDescription",
  1061. "columnName": "ruleDescription",
  1062. "affinity": "TEXT"
  1063. },
  1064. {
  1065. "fieldPath": "ruleImage",
  1066. "columnName": "ruleImage",
  1067. "affinity": "TEXT"
  1068. },
  1069. {
  1070. "fieldPath": "ruleLink",
  1071. "columnName": "ruleLink",
  1072. "affinity": "TEXT"
  1073. },
  1074. {
  1075. "fieldPath": "ruleContent",
  1076. "columnName": "ruleContent",
  1077. "affinity": "TEXT"
  1078. },
  1079. {
  1080. "fieldPath": "contentWhitelist",
  1081. "columnName": "contentWhitelist",
  1082. "affinity": "TEXT"
  1083. },
  1084. {
  1085. "fieldPath": "contentBlacklist",
  1086. "columnName": "contentBlacklist",
  1087. "affinity": "TEXT"
  1088. },
  1089. {
  1090. "fieldPath": "shouldOverrideUrlLoading",
  1091. "columnName": "shouldOverrideUrlLoading",
  1092. "affinity": "TEXT"
  1093. },
  1094. {
  1095. "fieldPath": "style",
  1096. "columnName": "style",
  1097. "affinity": "TEXT"
  1098. },
  1099. {
  1100. "fieldPath": "enableJs",
  1101. "columnName": "enableJs",
  1102. "affinity": "INTEGER",
  1103. "notNull": true,
  1104. "defaultValue": "1"
  1105. },
  1106. {
  1107. "fieldPath": "loadWithBaseUrl",
  1108. "columnName": "loadWithBaseUrl",
  1109. "affinity": "INTEGER",
  1110. "notNull": true,
  1111. "defaultValue": "1"
  1112. },
  1113. {
  1114. "fieldPath": "injectJs",
  1115. "columnName": "injectJs",
  1116. "affinity": "TEXT"
  1117. },
  1118. {
  1119. "fieldPath": "lastUpdateTime",
  1120. "columnName": "lastUpdateTime",
  1121. "affinity": "INTEGER",
  1122. "notNull": true,
  1123. "defaultValue": "0"
  1124. },
  1125. {
  1126. "fieldPath": "customOrder",
  1127. "columnName": "customOrder",
  1128. "affinity": "INTEGER",
  1129. "notNull": true,
  1130. "defaultValue": "0"
  1131. }
  1132. ],
  1133. "primaryKey": {
  1134. "autoGenerate": false,
  1135. "columnNames": [
  1136. "sourceUrl"
  1137. ]
  1138. },
  1139. "indices": [
  1140. {
  1141. "name": "index_rssSources_sourceUrl",
  1142. "unique": false,
  1143. "columnNames": [
  1144. "sourceUrl"
  1145. ],
  1146. "orders": [],
  1147. "createSql": "CREATE INDEX IF NOT EXISTS `index_rssSources_sourceUrl` ON `${TABLE_NAME}` (`sourceUrl`)"
  1148. }
  1149. ]
  1150. },
  1151. {
  1152. "tableName": "bookmarks",
  1153. "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`))",
  1154. "fields": [
  1155. {
  1156. "fieldPath": "time",
  1157. "columnName": "time",
  1158. "affinity": "INTEGER",
  1159. "notNull": true
  1160. },
  1161. {
  1162. "fieldPath": "bookName",
  1163. "columnName": "bookName",
  1164. "affinity": "TEXT",
  1165. "notNull": true
  1166. },
  1167. {
  1168. "fieldPath": "bookAuthor",
  1169. "columnName": "bookAuthor",
  1170. "affinity": "TEXT",
  1171. "notNull": true
  1172. },
  1173. {
  1174. "fieldPath": "chapterIndex",
  1175. "columnName": "chapterIndex",
  1176. "affinity": "INTEGER",
  1177. "notNull": true
  1178. },
  1179. {
  1180. "fieldPath": "chapterPos",
  1181. "columnName": "chapterPos",
  1182. "affinity": "INTEGER",
  1183. "notNull": true
  1184. },
  1185. {
  1186. "fieldPath": "chapterName",
  1187. "columnName": "chapterName",
  1188. "affinity": "TEXT",
  1189. "notNull": true
  1190. },
  1191. {
  1192. "fieldPath": "bookText",
  1193. "columnName": "bookText",
  1194. "affinity": "TEXT",
  1195. "notNull": true
  1196. },
  1197. {
  1198. "fieldPath": "content",
  1199. "columnName": "content",
  1200. "affinity": "TEXT",
  1201. "notNull": true
  1202. }
  1203. ],
  1204. "primaryKey": {
  1205. "autoGenerate": false,
  1206. "columnNames": [
  1207. "time"
  1208. ]
  1209. },
  1210. "indices": [
  1211. {
  1212. "name": "index_bookmarks_bookName_bookAuthor",
  1213. "unique": false,
  1214. "columnNames": [
  1215. "bookName",
  1216. "bookAuthor"
  1217. ],
  1218. "orders": [],
  1219. "createSql": "CREATE INDEX IF NOT EXISTS `index_bookmarks_bookName_bookAuthor` ON `${TABLE_NAME}` (`bookName`, `bookAuthor`)"
  1220. }
  1221. ]
  1222. },
  1223. {
  1224. "tableName": "rssArticles",
  1225. "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`origin` TEXT NOT NULL, `sort` TEXT NOT NULL, `title` TEXT NOT NULL, `order` INTEGER NOT NULL, `link` TEXT NOT NULL, `pubDate` TEXT, `description` TEXT, `content` TEXT, `image` TEXT, `group` TEXT NOT NULL DEFAULT '默认分组', `read` INTEGER NOT NULL, `variable` TEXT, PRIMARY KEY(`origin`, `link`))",
  1226. "fields": [
  1227. {
  1228. "fieldPath": "origin",
  1229. "columnName": "origin",
  1230. "affinity": "TEXT",
  1231. "notNull": true
  1232. },
  1233. {
  1234. "fieldPath": "sort",
  1235. "columnName": "sort",
  1236. "affinity": "TEXT",
  1237. "notNull": true
  1238. },
  1239. {
  1240. "fieldPath": "title",
  1241. "columnName": "title",
  1242. "affinity": "TEXT",
  1243. "notNull": true
  1244. },
  1245. {
  1246. "fieldPath": "order",
  1247. "columnName": "order",
  1248. "affinity": "INTEGER",
  1249. "notNull": true
  1250. },
  1251. {
  1252. "fieldPath": "link",
  1253. "columnName": "link",
  1254. "affinity": "TEXT",
  1255. "notNull": true
  1256. },
  1257. {
  1258. "fieldPath": "pubDate",
  1259. "columnName": "pubDate",
  1260. "affinity": "TEXT"
  1261. },
  1262. {
  1263. "fieldPath": "description",
  1264. "columnName": "description",
  1265. "affinity": "TEXT"
  1266. },
  1267. {
  1268. "fieldPath": "content",
  1269. "columnName": "content",
  1270. "affinity": "TEXT"
  1271. },
  1272. {
  1273. "fieldPath": "image",
  1274. "columnName": "image",
  1275. "affinity": "TEXT"
  1276. },
  1277. {
  1278. "fieldPath": "group",
  1279. "columnName": "group",
  1280. "affinity": "TEXT",
  1281. "notNull": true,
  1282. "defaultValue": "'默认分组'"
  1283. },
  1284. {
  1285. "fieldPath": "read",
  1286. "columnName": "read",
  1287. "affinity": "INTEGER",
  1288. "notNull": true
  1289. },
  1290. {
  1291. "fieldPath": "variable",
  1292. "columnName": "variable",
  1293. "affinity": "TEXT"
  1294. }
  1295. ],
  1296. "primaryKey": {
  1297. "autoGenerate": false,
  1298. "columnNames": [
  1299. "origin",
  1300. "link"
  1301. ]
  1302. }
  1303. },
  1304. {
  1305. "tableName": "rssReadRecords",
  1306. "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`record` TEXT NOT NULL, `title` TEXT, `readTime` INTEGER, `read` INTEGER NOT NULL, PRIMARY KEY(`record`))",
  1307. "fields": [
  1308. {
  1309. "fieldPath": "record",
  1310. "columnName": "record",
  1311. "affinity": "TEXT",
  1312. "notNull": true
  1313. },
  1314. {
  1315. "fieldPath": "title",
  1316. "columnName": "title",
  1317. "affinity": "TEXT"
  1318. },
  1319. {
  1320. "fieldPath": "readTime",
  1321. "columnName": "readTime",
  1322. "affinity": "INTEGER"
  1323. },
  1324. {
  1325. "fieldPath": "read",
  1326. "columnName": "read",
  1327. "affinity": "INTEGER",
  1328. "notNull": true
  1329. }
  1330. ],
  1331. "primaryKey": {
  1332. "autoGenerate": false,
  1333. "columnNames": [
  1334. "record"
  1335. ]
  1336. }
  1337. },
  1338. {
  1339. "tableName": "rssStars",
  1340. "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`origin` TEXT NOT NULL, `sort` TEXT NOT NULL, `title` TEXT NOT NULL, `starTime` INTEGER NOT NULL, `link` TEXT NOT NULL, `pubDate` TEXT, `description` TEXT, `content` TEXT, `image` TEXT, `group` TEXT NOT NULL DEFAULT '默认分组', `variable` TEXT, PRIMARY KEY(`origin`, `link`))",
  1341. "fields": [
  1342. {
  1343. "fieldPath": "origin",
  1344. "columnName": "origin",
  1345. "affinity": "TEXT",
  1346. "notNull": true
  1347. },
  1348. {
  1349. "fieldPath": "sort",
  1350. "columnName": "sort",
  1351. "affinity": "TEXT",
  1352. "notNull": true
  1353. },
  1354. {
  1355. "fieldPath": "title",
  1356. "columnName": "title",
  1357. "affinity": "TEXT",
  1358. "notNull": true
  1359. },
  1360. {
  1361. "fieldPath": "starTime",
  1362. "columnName": "starTime",
  1363. "affinity": "INTEGER",
  1364. "notNull": true
  1365. },
  1366. {
  1367. "fieldPath": "link",
  1368. "columnName": "link",
  1369. "affinity": "TEXT",
  1370. "notNull": true
  1371. },
  1372. {
  1373. "fieldPath": "pubDate",
  1374. "columnName": "pubDate",
  1375. "affinity": "TEXT"
  1376. },
  1377. {
  1378. "fieldPath": "description",
  1379. "columnName": "description",
  1380. "affinity": "TEXT"
  1381. },
  1382. {
  1383. "fieldPath": "content",
  1384. "columnName": "content",
  1385. "affinity": "TEXT"
  1386. },
  1387. {
  1388. "fieldPath": "image",
  1389. "columnName": "image",
  1390. "affinity": "TEXT"
  1391. },
  1392. {
  1393. "fieldPath": "group",
  1394. "columnName": "group",
  1395. "affinity": "TEXT",
  1396. "notNull": true,
  1397. "defaultValue": "'默认分组'"
  1398. },
  1399. {
  1400. "fieldPath": "variable",
  1401. "columnName": "variable",
  1402. "affinity": "TEXT"
  1403. }
  1404. ],
  1405. "primaryKey": {
  1406. "autoGenerate": false,
  1407. "columnNames": [
  1408. "origin",
  1409. "link"
  1410. ]
  1411. }
  1412. },
  1413. {
  1414. "tableName": "txtTocRules",
  1415. "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`))",
  1416. "fields": [
  1417. {
  1418. "fieldPath": "id",
  1419. "columnName": "id",
  1420. "affinity": "INTEGER",
  1421. "notNull": true
  1422. },
  1423. {
  1424. "fieldPath": "name",
  1425. "columnName": "name",
  1426. "affinity": "TEXT",
  1427. "notNull": true
  1428. },
  1429. {
  1430. "fieldPath": "rule",
  1431. "columnName": "rule",
  1432. "affinity": "TEXT",
  1433. "notNull": true
  1434. },
  1435. {
  1436. "fieldPath": "example",
  1437. "columnName": "example",
  1438. "affinity": "TEXT"
  1439. },
  1440. {
  1441. "fieldPath": "serialNumber",
  1442. "columnName": "serialNumber",
  1443. "affinity": "INTEGER",
  1444. "notNull": true
  1445. },
  1446. {
  1447. "fieldPath": "enable",
  1448. "columnName": "enable",
  1449. "affinity": "INTEGER",
  1450. "notNull": true
  1451. }
  1452. ],
  1453. "primaryKey": {
  1454. "autoGenerate": false,
  1455. "columnNames": [
  1456. "id"
  1457. ]
  1458. }
  1459. },
  1460. {
  1461. "tableName": "readRecord",
  1462. "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`))",
  1463. "fields": [
  1464. {
  1465. "fieldPath": "deviceId",
  1466. "columnName": "deviceId",
  1467. "affinity": "TEXT",
  1468. "notNull": true
  1469. },
  1470. {
  1471. "fieldPath": "bookName",
  1472. "columnName": "bookName",
  1473. "affinity": "TEXT",
  1474. "notNull": true
  1475. },
  1476. {
  1477. "fieldPath": "readTime",
  1478. "columnName": "readTime",
  1479. "affinity": "INTEGER",
  1480. "notNull": true,
  1481. "defaultValue": "0"
  1482. },
  1483. {
  1484. "fieldPath": "lastRead",
  1485. "columnName": "lastRead",
  1486. "affinity": "INTEGER",
  1487. "notNull": true,
  1488. "defaultValue": "0"
  1489. }
  1490. ],
  1491. "primaryKey": {
  1492. "autoGenerate": false,
  1493. "columnNames": [
  1494. "deviceId",
  1495. "bookName"
  1496. ]
  1497. }
  1498. },
  1499. {
  1500. "tableName": "httpTTS",
  1501. "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`))",
  1502. "fields": [
  1503. {
  1504. "fieldPath": "id",
  1505. "columnName": "id",
  1506. "affinity": "INTEGER",
  1507. "notNull": true
  1508. },
  1509. {
  1510. "fieldPath": "name",
  1511. "columnName": "name",
  1512. "affinity": "TEXT",
  1513. "notNull": true
  1514. },
  1515. {
  1516. "fieldPath": "url",
  1517. "columnName": "url",
  1518. "affinity": "TEXT",
  1519. "notNull": true
  1520. },
  1521. {
  1522. "fieldPath": "contentType",
  1523. "columnName": "contentType",
  1524. "affinity": "TEXT"
  1525. },
  1526. {
  1527. "fieldPath": "concurrentRate",
  1528. "columnName": "concurrentRate",
  1529. "affinity": "TEXT",
  1530. "defaultValue": "'0'"
  1531. },
  1532. {
  1533. "fieldPath": "loginUrl",
  1534. "columnName": "loginUrl",
  1535. "affinity": "TEXT"
  1536. },
  1537. {
  1538. "fieldPath": "loginUi",
  1539. "columnName": "loginUi",
  1540. "affinity": "TEXT"
  1541. },
  1542. {
  1543. "fieldPath": "header",
  1544. "columnName": "header",
  1545. "affinity": "TEXT"
  1546. },
  1547. {
  1548. "fieldPath": "jsLib",
  1549. "columnName": "jsLib",
  1550. "affinity": "TEXT"
  1551. },
  1552. {
  1553. "fieldPath": "enabledCookieJar",
  1554. "columnName": "enabledCookieJar",
  1555. "affinity": "INTEGER",
  1556. "defaultValue": "0"
  1557. },
  1558. {
  1559. "fieldPath": "loginCheckJs",
  1560. "columnName": "loginCheckJs",
  1561. "affinity": "TEXT"
  1562. },
  1563. {
  1564. "fieldPath": "lastUpdateTime",
  1565. "columnName": "lastUpdateTime",
  1566. "affinity": "INTEGER",
  1567. "notNull": true,
  1568. "defaultValue": "0"
  1569. }
  1570. ],
  1571. "primaryKey": {
  1572. "autoGenerate": false,
  1573. "columnNames": [
  1574. "id"
  1575. ]
  1576. }
  1577. },
  1578. {
  1579. "tableName": "caches",
  1580. "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`key` TEXT NOT NULL, `value` TEXT, `deadline` INTEGER NOT NULL, PRIMARY KEY(`key`))",
  1581. "fields": [
  1582. {
  1583. "fieldPath": "key",
  1584. "columnName": "key",
  1585. "affinity": "TEXT",
  1586. "notNull": true
  1587. },
  1588. {
  1589. "fieldPath": "value",
  1590. "columnName": "value",
  1591. "affinity": "TEXT"
  1592. },
  1593. {
  1594. "fieldPath": "deadline",
  1595. "columnName": "deadline",
  1596. "affinity": "INTEGER",
  1597. "notNull": true
  1598. }
  1599. ],
  1600. "primaryKey": {
  1601. "autoGenerate": false,
  1602. "columnNames": [
  1603. "key"
  1604. ]
  1605. },
  1606. "indices": [
  1607. {
  1608. "name": "index_caches_key",
  1609. "unique": true,
  1610. "columnNames": [
  1611. "key"
  1612. ],
  1613. "orders": [],
  1614. "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_caches_key` ON `${TABLE_NAME}` (`key`)"
  1615. }
  1616. ]
  1617. },
  1618. {
  1619. "tableName": "ruleSubs",
  1620. "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`))",
  1621. "fields": [
  1622. {
  1623. "fieldPath": "id",
  1624. "columnName": "id",
  1625. "affinity": "INTEGER",
  1626. "notNull": true
  1627. },
  1628. {
  1629. "fieldPath": "name",
  1630. "columnName": "name",
  1631. "affinity": "TEXT",
  1632. "notNull": true
  1633. },
  1634. {
  1635. "fieldPath": "url",
  1636. "columnName": "url",
  1637. "affinity": "TEXT",
  1638. "notNull": true
  1639. },
  1640. {
  1641. "fieldPath": "type",
  1642. "columnName": "type",
  1643. "affinity": "INTEGER",
  1644. "notNull": true
  1645. },
  1646. {
  1647. "fieldPath": "customOrder",
  1648. "columnName": "customOrder",
  1649. "affinity": "INTEGER",
  1650. "notNull": true
  1651. },
  1652. {
  1653. "fieldPath": "autoUpdate",
  1654. "columnName": "autoUpdate",
  1655. "affinity": "INTEGER",
  1656. "notNull": true
  1657. },
  1658. {
  1659. "fieldPath": "update",
  1660. "columnName": "update",
  1661. "affinity": "INTEGER",
  1662. "notNull": true
  1663. }
  1664. ],
  1665. "primaryKey": {
  1666. "autoGenerate": false,
  1667. "columnNames": [
  1668. "id"
  1669. ]
  1670. }
  1671. },
  1672. {
  1673. "tableName": "dictRules",
  1674. "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`))",
  1675. "fields": [
  1676. {
  1677. "fieldPath": "name",
  1678. "columnName": "name",
  1679. "affinity": "TEXT",
  1680. "notNull": true
  1681. },
  1682. {
  1683. "fieldPath": "urlRule",
  1684. "columnName": "urlRule",
  1685. "affinity": "TEXT",
  1686. "notNull": true
  1687. },
  1688. {
  1689. "fieldPath": "showRule",
  1690. "columnName": "showRule",
  1691. "affinity": "TEXT",
  1692. "notNull": true
  1693. },
  1694. {
  1695. "fieldPath": "enabled",
  1696. "columnName": "enabled",
  1697. "affinity": "INTEGER",
  1698. "notNull": true,
  1699. "defaultValue": "1"
  1700. },
  1701. {
  1702. "fieldPath": "sortNumber",
  1703. "columnName": "sortNumber",
  1704. "affinity": "INTEGER",
  1705. "notNull": true,
  1706. "defaultValue": "0"
  1707. }
  1708. ],
  1709. "primaryKey": {
  1710. "autoGenerate": false,
  1711. "columnNames": [
  1712. "name"
  1713. ]
  1714. }
  1715. },
  1716. {
  1717. "tableName": "keyboardAssists",
  1718. "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`))",
  1719. "fields": [
  1720. {
  1721. "fieldPath": "type",
  1722. "columnName": "type",
  1723. "affinity": "INTEGER",
  1724. "notNull": true,
  1725. "defaultValue": "0"
  1726. },
  1727. {
  1728. "fieldPath": "key",
  1729. "columnName": "key",
  1730. "affinity": "TEXT",
  1731. "notNull": true,
  1732. "defaultValue": "''"
  1733. },
  1734. {
  1735. "fieldPath": "value",
  1736. "columnName": "value",
  1737. "affinity": "TEXT",
  1738. "notNull": true,
  1739. "defaultValue": "''"
  1740. },
  1741. {
  1742. "fieldPath": "serialNo",
  1743. "columnName": "serialNo",
  1744. "affinity": "INTEGER",
  1745. "notNull": true,
  1746. "defaultValue": "0"
  1747. }
  1748. ],
  1749. "primaryKey": {
  1750. "autoGenerate": false,
  1751. "columnNames": [
  1752. "type",
  1753. "key"
  1754. ]
  1755. }
  1756. },
  1757. {
  1758. "tableName": "servers",
  1759. "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`))",
  1760. "fields": [
  1761. {
  1762. "fieldPath": "id",
  1763. "columnName": "id",
  1764. "affinity": "INTEGER",
  1765. "notNull": true
  1766. },
  1767. {
  1768. "fieldPath": "name",
  1769. "columnName": "name",
  1770. "affinity": "TEXT",
  1771. "notNull": true
  1772. },
  1773. {
  1774. "fieldPath": "type",
  1775. "columnName": "type",
  1776. "affinity": "TEXT",
  1777. "notNull": true
  1778. },
  1779. {
  1780. "fieldPath": "config",
  1781. "columnName": "config",
  1782. "affinity": "TEXT"
  1783. },
  1784. {
  1785. "fieldPath": "sortNumber",
  1786. "columnName": "sortNumber",
  1787. "affinity": "INTEGER",
  1788. "notNull": true
  1789. }
  1790. ],
  1791. "primaryKey": {
  1792. "autoGenerate": false,
  1793. "columnNames": [
  1794. "id"
  1795. ]
  1796. }
  1797. }
  1798. ],
  1799. "views": [
  1800. {
  1801. "viewName": "book_sources_part",
  1802. "createSql": "CREATE VIEW `${VIEW_NAME}` AS select bookSourceUrl, bookSourceName, bookSourceGroup, customOrder, enabled, enabledExplore, \n (loginUrl is not null and trim(loginUrl) <> '') hasLoginUrl, lastUpdateTime, respondTime, weight, \n (exploreUrl is not null and trim(exploreUrl) <> '') hasExploreUrl \n from book_sources"
  1803. }
  1804. ],
  1805. "setupQueries": [
  1806. "CREATE TABLE IF NOT EXISTS room_master_table (id INTEGER PRIMARY KEY,identity_hash TEXT)",
  1807. "INSERT OR REPLACE INTO room_master_table (id,identity_hash) VALUES(42, 'ed8334991896eea7e666ac1f04b26011')"
  1808. ]
  1809. }
  1810. }