70.json 56 KB

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