76.json 54 KB

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