39.json 43 KB

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