80.json 58 KB

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