57.json 51 KB

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