37.json 43 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459
  1. {
  2. "formatVersion": 1,
  3. "database": {
  4. "version": 37,
  5. "identityHash": "11ebd6a72eb3f9ccd6ca46bc5535bca5",
  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, `concurrentRate` TEXT, `customOrder` INTEGER NOT NULL, `enabled` INTEGER NOT NULL, `enabledExplore` INTEGER NOT NULL, `header` TEXT, `loginUrl` TEXT, `loginUi` TEXT, `loginCheckJs` TEXT, `bookSourceComment` TEXT, `lastUpdateTime` 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": "concurrentRate",
  291. "columnName": "concurrentRate",
  292. "affinity": "TEXT",
  293. "notNull": false
  294. },
  295. {
  296. "fieldPath": "customOrder",
  297. "columnName": "customOrder",
  298. "affinity": "INTEGER",
  299. "notNull": true
  300. },
  301. {
  302. "fieldPath": "enabled",
  303. "columnName": "enabled",
  304. "affinity": "INTEGER",
  305. "notNull": true
  306. },
  307. {
  308. "fieldPath": "enabledExplore",
  309. "columnName": "enabledExplore",
  310. "affinity": "INTEGER",
  311. "notNull": true
  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": "weight",
  351. "columnName": "weight",
  352. "affinity": "INTEGER",
  353. "notNull": true
  354. },
  355. {
  356. "fieldPath": "exploreUrl",
  357. "columnName": "exploreUrl",
  358. "affinity": "TEXT",
  359. "notNull": false
  360. },
  361. {
  362. "fieldPath": "ruleExplore",
  363. "columnName": "ruleExplore",
  364. "affinity": "TEXT",
  365. "notNull": false
  366. },
  367. {
  368. "fieldPath": "searchUrl",
  369. "columnName": "searchUrl",
  370. "affinity": "TEXT",
  371. "notNull": false
  372. },
  373. {
  374. "fieldPath": "ruleSearch",
  375. "columnName": "ruleSearch",
  376. "affinity": "TEXT",
  377. "notNull": false
  378. },
  379. {
  380. "fieldPath": "ruleBookInfo",
  381. "columnName": "ruleBookInfo",
  382. "affinity": "TEXT",
  383. "notNull": false
  384. },
  385. {
  386. "fieldPath": "ruleToc",
  387. "columnName": "ruleToc",
  388. "affinity": "TEXT",
  389. "notNull": false
  390. },
  391. {
  392. "fieldPath": "ruleContent",
  393. "columnName": "ruleContent",
  394. "affinity": "TEXT",
  395. "notNull": false
  396. }
  397. ],
  398. "primaryKey": {
  399. "columnNames": [
  400. "bookSourceUrl"
  401. ],
  402. "autoGenerate": false
  403. },
  404. "indices": [
  405. {
  406. "name": "index_book_sources_bookSourceUrl",
  407. "unique": false,
  408. "columnNames": [
  409. "bookSourceUrl"
  410. ],
  411. "createSql": "CREATE INDEX IF NOT EXISTS `index_book_sources_bookSourceUrl` ON `${TABLE_NAME}` (`bookSourceUrl`)"
  412. }
  413. ],
  414. "foreignKeys": []
  415. },
  416. {
  417. "tableName": "chapters",
  418. "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 )",
  419. "fields": [
  420. {
  421. "fieldPath": "url",
  422. "columnName": "url",
  423. "affinity": "TEXT",
  424. "notNull": true
  425. },
  426. {
  427. "fieldPath": "title",
  428. "columnName": "title",
  429. "affinity": "TEXT",
  430. "notNull": true
  431. },
  432. {
  433. "fieldPath": "baseUrl",
  434. "columnName": "baseUrl",
  435. "affinity": "TEXT",
  436. "notNull": true
  437. },
  438. {
  439. "fieldPath": "bookUrl",
  440. "columnName": "bookUrl",
  441. "affinity": "TEXT",
  442. "notNull": true
  443. },
  444. {
  445. "fieldPath": "index",
  446. "columnName": "index",
  447. "affinity": "INTEGER",
  448. "notNull": true
  449. },
  450. {
  451. "fieldPath": "resourceUrl",
  452. "columnName": "resourceUrl",
  453. "affinity": "TEXT",
  454. "notNull": false
  455. },
  456. {
  457. "fieldPath": "tag",
  458. "columnName": "tag",
  459. "affinity": "TEXT",
  460. "notNull": false
  461. },
  462. {
  463. "fieldPath": "start",
  464. "columnName": "start",
  465. "affinity": "INTEGER",
  466. "notNull": false
  467. },
  468. {
  469. "fieldPath": "end",
  470. "columnName": "end",
  471. "affinity": "INTEGER",
  472. "notNull": false
  473. },
  474. {
  475. "fieldPath": "startFragmentId",
  476. "columnName": "startFragmentId",
  477. "affinity": "TEXT",
  478. "notNull": false
  479. },
  480. {
  481. "fieldPath": "endFragmentId",
  482. "columnName": "endFragmentId",
  483. "affinity": "TEXT",
  484. "notNull": false
  485. },
  486. {
  487. "fieldPath": "variable",
  488. "columnName": "variable",
  489. "affinity": "TEXT",
  490. "notNull": false
  491. }
  492. ],
  493. "primaryKey": {
  494. "columnNames": [
  495. "url",
  496. "bookUrl"
  497. ],
  498. "autoGenerate": false
  499. },
  500. "indices": [
  501. {
  502. "name": "index_chapters_bookUrl",
  503. "unique": false,
  504. "columnNames": [
  505. "bookUrl"
  506. ],
  507. "createSql": "CREATE INDEX IF NOT EXISTS `index_chapters_bookUrl` ON `${TABLE_NAME}` (`bookUrl`)"
  508. },
  509. {
  510. "name": "index_chapters_bookUrl_index",
  511. "unique": true,
  512. "columnNames": [
  513. "bookUrl",
  514. "index"
  515. ],
  516. "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_chapters_bookUrl_index` ON `${TABLE_NAME}` (`bookUrl`, `index`)"
  517. }
  518. ],
  519. "foreignKeys": [
  520. {
  521. "table": "books",
  522. "onDelete": "CASCADE",
  523. "onUpdate": "NO ACTION",
  524. "columns": [
  525. "bookUrl"
  526. ],
  527. "referencedColumns": [
  528. "bookUrl"
  529. ]
  530. }
  531. ]
  532. },
  533. {
  534. "tableName": "replace_rules",
  535. "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)",
  536. "fields": [
  537. {
  538. "fieldPath": "id",
  539. "columnName": "id",
  540. "affinity": "INTEGER",
  541. "notNull": true
  542. },
  543. {
  544. "fieldPath": "name",
  545. "columnName": "name",
  546. "affinity": "TEXT",
  547. "notNull": true
  548. },
  549. {
  550. "fieldPath": "group",
  551. "columnName": "group",
  552. "affinity": "TEXT",
  553. "notNull": false
  554. },
  555. {
  556. "fieldPath": "pattern",
  557. "columnName": "pattern",
  558. "affinity": "TEXT",
  559. "notNull": true
  560. },
  561. {
  562. "fieldPath": "replacement",
  563. "columnName": "replacement",
  564. "affinity": "TEXT",
  565. "notNull": true
  566. },
  567. {
  568. "fieldPath": "scope",
  569. "columnName": "scope",
  570. "affinity": "TEXT",
  571. "notNull": false
  572. },
  573. {
  574. "fieldPath": "isEnabled",
  575. "columnName": "isEnabled",
  576. "affinity": "INTEGER",
  577. "notNull": true
  578. },
  579. {
  580. "fieldPath": "isRegex",
  581. "columnName": "isRegex",
  582. "affinity": "INTEGER",
  583. "notNull": true
  584. },
  585. {
  586. "fieldPath": "order",
  587. "columnName": "sortOrder",
  588. "affinity": "INTEGER",
  589. "notNull": true
  590. }
  591. ],
  592. "primaryKey": {
  593. "columnNames": [
  594. "id"
  595. ],
  596. "autoGenerate": true
  597. },
  598. "indices": [
  599. {
  600. "name": "index_replace_rules_id",
  601. "unique": false,
  602. "columnNames": [
  603. "id"
  604. ],
  605. "createSql": "CREATE INDEX IF NOT EXISTS `index_replace_rules_id` ON `${TABLE_NAME}` (`id`)"
  606. }
  607. ],
  608. "foreignKeys": []
  609. },
  610. {
  611. "tableName": "searchBooks",
  612. "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 )",
  613. "fields": [
  614. {
  615. "fieldPath": "bookUrl",
  616. "columnName": "bookUrl",
  617. "affinity": "TEXT",
  618. "notNull": true
  619. },
  620. {
  621. "fieldPath": "origin",
  622. "columnName": "origin",
  623. "affinity": "TEXT",
  624. "notNull": true
  625. },
  626. {
  627. "fieldPath": "originName",
  628. "columnName": "originName",
  629. "affinity": "TEXT",
  630. "notNull": true
  631. },
  632. {
  633. "fieldPath": "type",
  634. "columnName": "type",
  635. "affinity": "INTEGER",
  636. "notNull": true
  637. },
  638. {
  639. "fieldPath": "name",
  640. "columnName": "name",
  641. "affinity": "TEXT",
  642. "notNull": true
  643. },
  644. {
  645. "fieldPath": "author",
  646. "columnName": "author",
  647. "affinity": "TEXT",
  648. "notNull": true
  649. },
  650. {
  651. "fieldPath": "kind",
  652. "columnName": "kind",
  653. "affinity": "TEXT",
  654. "notNull": false
  655. },
  656. {
  657. "fieldPath": "coverUrl",
  658. "columnName": "coverUrl",
  659. "affinity": "TEXT",
  660. "notNull": false
  661. },
  662. {
  663. "fieldPath": "intro",
  664. "columnName": "intro",
  665. "affinity": "TEXT",
  666. "notNull": false
  667. },
  668. {
  669. "fieldPath": "wordCount",
  670. "columnName": "wordCount",
  671. "affinity": "TEXT",
  672. "notNull": false
  673. },
  674. {
  675. "fieldPath": "latestChapterTitle",
  676. "columnName": "latestChapterTitle",
  677. "affinity": "TEXT",
  678. "notNull": false
  679. },
  680. {
  681. "fieldPath": "tocUrl",
  682. "columnName": "tocUrl",
  683. "affinity": "TEXT",
  684. "notNull": true
  685. },
  686. {
  687. "fieldPath": "time",
  688. "columnName": "time",
  689. "affinity": "INTEGER",
  690. "notNull": true
  691. },
  692. {
  693. "fieldPath": "variable",
  694. "columnName": "variable",
  695. "affinity": "TEXT",
  696. "notNull": false
  697. },
  698. {
  699. "fieldPath": "originOrder",
  700. "columnName": "originOrder",
  701. "affinity": "INTEGER",
  702. "notNull": true
  703. }
  704. ],
  705. "primaryKey": {
  706. "columnNames": [
  707. "bookUrl"
  708. ],
  709. "autoGenerate": false
  710. },
  711. "indices": [
  712. {
  713. "name": "index_searchBooks_bookUrl",
  714. "unique": true,
  715. "columnNames": [
  716. "bookUrl"
  717. ],
  718. "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_searchBooks_bookUrl` ON `${TABLE_NAME}` (`bookUrl`)"
  719. },
  720. {
  721. "name": "index_searchBooks_origin",
  722. "unique": false,
  723. "columnNames": [
  724. "origin"
  725. ],
  726. "createSql": "CREATE INDEX IF NOT EXISTS `index_searchBooks_origin` ON `${TABLE_NAME}` (`origin`)"
  727. }
  728. ],
  729. "foreignKeys": [
  730. {
  731. "table": "book_sources",
  732. "onDelete": "CASCADE",
  733. "onUpdate": "NO ACTION",
  734. "columns": [
  735. "origin"
  736. ],
  737. "referencedColumns": [
  738. "bookSourceUrl"
  739. ]
  740. }
  741. ]
  742. },
  743. {
  744. "tableName": "search_keywords",
  745. "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`word` TEXT NOT NULL, `usage` INTEGER NOT NULL, `lastUseTime` INTEGER NOT NULL, PRIMARY KEY(`word`))",
  746. "fields": [
  747. {
  748. "fieldPath": "word",
  749. "columnName": "word",
  750. "affinity": "TEXT",
  751. "notNull": true
  752. },
  753. {
  754. "fieldPath": "usage",
  755. "columnName": "usage",
  756. "affinity": "INTEGER",
  757. "notNull": true
  758. },
  759. {
  760. "fieldPath": "lastUseTime",
  761. "columnName": "lastUseTime",
  762. "affinity": "INTEGER",
  763. "notNull": true
  764. }
  765. ],
  766. "primaryKey": {
  767. "columnNames": [
  768. "word"
  769. ],
  770. "autoGenerate": false
  771. },
  772. "indices": [
  773. {
  774. "name": "index_search_keywords_word",
  775. "unique": true,
  776. "columnNames": [
  777. "word"
  778. ],
  779. "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_search_keywords_word` ON `${TABLE_NAME}` (`word`)"
  780. }
  781. ],
  782. "foreignKeys": []
  783. },
  784. {
  785. "tableName": "cookies",
  786. "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`url` TEXT NOT NULL, `cookie` TEXT NOT NULL, PRIMARY KEY(`url`))",
  787. "fields": [
  788. {
  789. "fieldPath": "url",
  790. "columnName": "url",
  791. "affinity": "TEXT",
  792. "notNull": true
  793. },
  794. {
  795. "fieldPath": "cookie",
  796. "columnName": "cookie",
  797. "affinity": "TEXT",
  798. "notNull": true
  799. }
  800. ],
  801. "primaryKey": {
  802. "columnNames": [
  803. "url"
  804. ],
  805. "autoGenerate": false
  806. },
  807. "indices": [
  808. {
  809. "name": "index_cookies_url",
  810. "unique": true,
  811. "columnNames": [
  812. "url"
  813. ],
  814. "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_cookies_url` ON `${TABLE_NAME}` (`url`)"
  815. }
  816. ],
  817. "foreignKeys": []
  818. },
  819. {
  820. "tableName": "rssSources",
  821. "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, `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`))",
  822. "fields": [
  823. {
  824. "fieldPath": "sourceUrl",
  825. "columnName": "sourceUrl",
  826. "affinity": "TEXT",
  827. "notNull": true
  828. },
  829. {
  830. "fieldPath": "sourceName",
  831. "columnName": "sourceName",
  832. "affinity": "TEXT",
  833. "notNull": true
  834. },
  835. {
  836. "fieldPath": "sourceIcon",
  837. "columnName": "sourceIcon",
  838. "affinity": "TEXT",
  839. "notNull": true
  840. },
  841. {
  842. "fieldPath": "sourceGroup",
  843. "columnName": "sourceGroup",
  844. "affinity": "TEXT",
  845. "notNull": false
  846. },
  847. {
  848. "fieldPath": "sourceComment",
  849. "columnName": "sourceComment",
  850. "affinity": "TEXT",
  851. "notNull": false
  852. },
  853. {
  854. "fieldPath": "enabled",
  855. "columnName": "enabled",
  856. "affinity": "INTEGER",
  857. "notNull": true
  858. },
  859. {
  860. "fieldPath": "header",
  861. "columnName": "header",
  862. "affinity": "TEXT",
  863. "notNull": false
  864. },
  865. {
  866. "fieldPath": "loginUrl",
  867. "columnName": "loginUrl",
  868. "affinity": "TEXT",
  869. "notNull": false
  870. },
  871. {
  872. "fieldPath": "loginUi",
  873. "columnName": "loginUi",
  874. "affinity": "TEXT",
  875. "notNull": false
  876. },
  877. {
  878. "fieldPath": "loginCheckJs",
  879. "columnName": "loginCheckJs",
  880. "affinity": "TEXT",
  881. "notNull": false
  882. },
  883. {
  884. "fieldPath": "sortUrl",
  885. "columnName": "sortUrl",
  886. "affinity": "TEXT",
  887. "notNull": false
  888. },
  889. {
  890. "fieldPath": "singleUrl",
  891. "columnName": "singleUrl",
  892. "affinity": "INTEGER",
  893. "notNull": true
  894. },
  895. {
  896. "fieldPath": "articleStyle",
  897. "columnName": "articleStyle",
  898. "affinity": "INTEGER",
  899. "notNull": true
  900. },
  901. {
  902. "fieldPath": "ruleArticles",
  903. "columnName": "ruleArticles",
  904. "affinity": "TEXT",
  905. "notNull": false
  906. },
  907. {
  908. "fieldPath": "ruleNextPage",
  909. "columnName": "ruleNextPage",
  910. "affinity": "TEXT",
  911. "notNull": false
  912. },
  913. {
  914. "fieldPath": "ruleTitle",
  915. "columnName": "ruleTitle",
  916. "affinity": "TEXT",
  917. "notNull": false
  918. },
  919. {
  920. "fieldPath": "rulePubDate",
  921. "columnName": "rulePubDate",
  922. "affinity": "TEXT",
  923. "notNull": false
  924. },
  925. {
  926. "fieldPath": "ruleDescription",
  927. "columnName": "ruleDescription",
  928. "affinity": "TEXT",
  929. "notNull": false
  930. },
  931. {
  932. "fieldPath": "ruleImage",
  933. "columnName": "ruleImage",
  934. "affinity": "TEXT",
  935. "notNull": false
  936. },
  937. {
  938. "fieldPath": "ruleLink",
  939. "columnName": "ruleLink",
  940. "affinity": "TEXT",
  941. "notNull": false
  942. },
  943. {
  944. "fieldPath": "ruleContent",
  945. "columnName": "ruleContent",
  946. "affinity": "TEXT",
  947. "notNull": false
  948. },
  949. {
  950. "fieldPath": "style",
  951. "columnName": "style",
  952. "affinity": "TEXT",
  953. "notNull": false
  954. },
  955. {
  956. "fieldPath": "enableJs",
  957. "columnName": "enableJs",
  958. "affinity": "INTEGER",
  959. "notNull": true
  960. },
  961. {
  962. "fieldPath": "loadWithBaseUrl",
  963. "columnName": "loadWithBaseUrl",
  964. "affinity": "INTEGER",
  965. "notNull": true
  966. },
  967. {
  968. "fieldPath": "customOrder",
  969. "columnName": "customOrder",
  970. "affinity": "INTEGER",
  971. "notNull": true
  972. }
  973. ],
  974. "primaryKey": {
  975. "columnNames": [
  976. "sourceUrl"
  977. ],
  978. "autoGenerate": false
  979. },
  980. "indices": [
  981. {
  982. "name": "index_rssSources_sourceUrl",
  983. "unique": false,
  984. "columnNames": [
  985. "sourceUrl"
  986. ],
  987. "createSql": "CREATE INDEX IF NOT EXISTS `index_rssSources_sourceUrl` ON `${TABLE_NAME}` (`sourceUrl`)"
  988. }
  989. ],
  990. "foreignKeys": []
  991. },
  992. {
  993. "tableName": "bookmarks",
  994. "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`))",
  995. "fields": [
  996. {
  997. "fieldPath": "time",
  998. "columnName": "time",
  999. "affinity": "INTEGER",
  1000. "notNull": true
  1001. },
  1002. {
  1003. "fieldPath": "bookName",
  1004. "columnName": "bookName",
  1005. "affinity": "TEXT",
  1006. "notNull": true
  1007. },
  1008. {
  1009. "fieldPath": "bookAuthor",
  1010. "columnName": "bookAuthor",
  1011. "affinity": "TEXT",
  1012. "notNull": true
  1013. },
  1014. {
  1015. "fieldPath": "chapterIndex",
  1016. "columnName": "chapterIndex",
  1017. "affinity": "INTEGER",
  1018. "notNull": true
  1019. },
  1020. {
  1021. "fieldPath": "chapterPos",
  1022. "columnName": "chapterPos",
  1023. "affinity": "INTEGER",
  1024. "notNull": true
  1025. },
  1026. {
  1027. "fieldPath": "chapterName",
  1028. "columnName": "chapterName",
  1029. "affinity": "TEXT",
  1030. "notNull": true
  1031. },
  1032. {
  1033. "fieldPath": "bookText",
  1034. "columnName": "bookText",
  1035. "affinity": "TEXT",
  1036. "notNull": true
  1037. },
  1038. {
  1039. "fieldPath": "content",
  1040. "columnName": "content",
  1041. "affinity": "TEXT",
  1042. "notNull": true
  1043. }
  1044. ],
  1045. "primaryKey": {
  1046. "columnNames": [
  1047. "time"
  1048. ],
  1049. "autoGenerate": false
  1050. },
  1051. "indices": [
  1052. {
  1053. "name": "index_bookmarks_bookName_bookAuthor",
  1054. "unique": false,
  1055. "columnNames": [
  1056. "bookName",
  1057. "bookAuthor"
  1058. ],
  1059. "createSql": "CREATE INDEX IF NOT EXISTS `index_bookmarks_bookName_bookAuthor` ON `${TABLE_NAME}` (`bookName`, `bookAuthor`)"
  1060. }
  1061. ],
  1062. "foreignKeys": []
  1063. },
  1064. {
  1065. "tableName": "rssArticles",
  1066. "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`))",
  1067. "fields": [
  1068. {
  1069. "fieldPath": "origin",
  1070. "columnName": "origin",
  1071. "affinity": "TEXT",
  1072. "notNull": true
  1073. },
  1074. {
  1075. "fieldPath": "sort",
  1076. "columnName": "sort",
  1077. "affinity": "TEXT",
  1078. "notNull": true
  1079. },
  1080. {
  1081. "fieldPath": "title",
  1082. "columnName": "title",
  1083. "affinity": "TEXT",
  1084. "notNull": true
  1085. },
  1086. {
  1087. "fieldPath": "order",
  1088. "columnName": "order",
  1089. "affinity": "INTEGER",
  1090. "notNull": true
  1091. },
  1092. {
  1093. "fieldPath": "link",
  1094. "columnName": "link",
  1095. "affinity": "TEXT",
  1096. "notNull": true
  1097. },
  1098. {
  1099. "fieldPath": "pubDate",
  1100. "columnName": "pubDate",
  1101. "affinity": "TEXT",
  1102. "notNull": false
  1103. },
  1104. {
  1105. "fieldPath": "description",
  1106. "columnName": "description",
  1107. "affinity": "TEXT",
  1108. "notNull": false
  1109. },
  1110. {
  1111. "fieldPath": "content",
  1112. "columnName": "content",
  1113. "affinity": "TEXT",
  1114. "notNull": false
  1115. },
  1116. {
  1117. "fieldPath": "image",
  1118. "columnName": "image",
  1119. "affinity": "TEXT",
  1120. "notNull": false
  1121. },
  1122. {
  1123. "fieldPath": "read",
  1124. "columnName": "read",
  1125. "affinity": "INTEGER",
  1126. "notNull": true
  1127. },
  1128. {
  1129. "fieldPath": "variable",
  1130. "columnName": "variable",
  1131. "affinity": "TEXT",
  1132. "notNull": false
  1133. }
  1134. ],
  1135. "primaryKey": {
  1136. "columnNames": [
  1137. "origin",
  1138. "link"
  1139. ],
  1140. "autoGenerate": false
  1141. },
  1142. "indices": [],
  1143. "foreignKeys": []
  1144. },
  1145. {
  1146. "tableName": "rssReadRecords",
  1147. "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`record` TEXT NOT NULL, `read` INTEGER NOT NULL, PRIMARY KEY(`record`))",
  1148. "fields": [
  1149. {
  1150. "fieldPath": "record",
  1151. "columnName": "record",
  1152. "affinity": "TEXT",
  1153. "notNull": true
  1154. },
  1155. {
  1156. "fieldPath": "read",
  1157. "columnName": "read",
  1158. "affinity": "INTEGER",
  1159. "notNull": true
  1160. }
  1161. ],
  1162. "primaryKey": {
  1163. "columnNames": [
  1164. "record"
  1165. ],
  1166. "autoGenerate": false
  1167. },
  1168. "indices": [],
  1169. "foreignKeys": []
  1170. },
  1171. {
  1172. "tableName": "rssStars",
  1173. "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`))",
  1174. "fields": [
  1175. {
  1176. "fieldPath": "origin",
  1177. "columnName": "origin",
  1178. "affinity": "TEXT",
  1179. "notNull": true
  1180. },
  1181. {
  1182. "fieldPath": "sort",
  1183. "columnName": "sort",
  1184. "affinity": "TEXT",
  1185. "notNull": true
  1186. },
  1187. {
  1188. "fieldPath": "title",
  1189. "columnName": "title",
  1190. "affinity": "TEXT",
  1191. "notNull": true
  1192. },
  1193. {
  1194. "fieldPath": "starTime",
  1195. "columnName": "starTime",
  1196. "affinity": "INTEGER",
  1197. "notNull": true
  1198. },
  1199. {
  1200. "fieldPath": "link",
  1201. "columnName": "link",
  1202. "affinity": "TEXT",
  1203. "notNull": true
  1204. },
  1205. {
  1206. "fieldPath": "pubDate",
  1207. "columnName": "pubDate",
  1208. "affinity": "TEXT",
  1209. "notNull": false
  1210. },
  1211. {
  1212. "fieldPath": "description",
  1213. "columnName": "description",
  1214. "affinity": "TEXT",
  1215. "notNull": false
  1216. },
  1217. {
  1218. "fieldPath": "content",
  1219. "columnName": "content",
  1220. "affinity": "TEXT",
  1221. "notNull": false
  1222. },
  1223. {
  1224. "fieldPath": "image",
  1225. "columnName": "image",
  1226. "affinity": "TEXT",
  1227. "notNull": false
  1228. },
  1229. {
  1230. "fieldPath": "variable",
  1231. "columnName": "variable",
  1232. "affinity": "TEXT",
  1233. "notNull": false
  1234. }
  1235. ],
  1236. "primaryKey": {
  1237. "columnNames": [
  1238. "origin",
  1239. "link"
  1240. ],
  1241. "autoGenerate": false
  1242. },
  1243. "indices": [],
  1244. "foreignKeys": []
  1245. },
  1246. {
  1247. "tableName": "txtTocRules",
  1248. "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`))",
  1249. "fields": [
  1250. {
  1251. "fieldPath": "id",
  1252. "columnName": "id",
  1253. "affinity": "INTEGER",
  1254. "notNull": true
  1255. },
  1256. {
  1257. "fieldPath": "name",
  1258. "columnName": "name",
  1259. "affinity": "TEXT",
  1260. "notNull": true
  1261. },
  1262. {
  1263. "fieldPath": "rule",
  1264. "columnName": "rule",
  1265. "affinity": "TEXT",
  1266. "notNull": true
  1267. },
  1268. {
  1269. "fieldPath": "serialNumber",
  1270. "columnName": "serialNumber",
  1271. "affinity": "INTEGER",
  1272. "notNull": true
  1273. },
  1274. {
  1275. "fieldPath": "enable",
  1276. "columnName": "enable",
  1277. "affinity": "INTEGER",
  1278. "notNull": true
  1279. }
  1280. ],
  1281. "primaryKey": {
  1282. "columnNames": [
  1283. "id"
  1284. ],
  1285. "autoGenerate": false
  1286. },
  1287. "indices": [],
  1288. "foreignKeys": []
  1289. },
  1290. {
  1291. "tableName": "readRecord",
  1292. "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`deviceId` TEXT NOT NULL, `bookName` TEXT NOT NULL, `readTime` INTEGER NOT NULL, PRIMARY KEY(`deviceId`, `bookName`))",
  1293. "fields": [
  1294. {
  1295. "fieldPath": "deviceId",
  1296. "columnName": "deviceId",
  1297. "affinity": "TEXT",
  1298. "notNull": true
  1299. },
  1300. {
  1301. "fieldPath": "bookName",
  1302. "columnName": "bookName",
  1303. "affinity": "TEXT",
  1304. "notNull": true
  1305. },
  1306. {
  1307. "fieldPath": "readTime",
  1308. "columnName": "readTime",
  1309. "affinity": "INTEGER",
  1310. "notNull": true
  1311. }
  1312. ],
  1313. "primaryKey": {
  1314. "columnNames": [
  1315. "deviceId",
  1316. "bookName"
  1317. ],
  1318. "autoGenerate": false
  1319. },
  1320. "indices": [],
  1321. "foreignKeys": []
  1322. },
  1323. {
  1324. "tableName": "httpTTS",
  1325. "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER NOT NULL, `name` TEXT NOT NULL, `url` TEXT NOT NULL, PRIMARY KEY(`id`))",
  1326. "fields": [
  1327. {
  1328. "fieldPath": "id",
  1329. "columnName": "id",
  1330. "affinity": "INTEGER",
  1331. "notNull": true
  1332. },
  1333. {
  1334. "fieldPath": "name",
  1335. "columnName": "name",
  1336. "affinity": "TEXT",
  1337. "notNull": true
  1338. },
  1339. {
  1340. "fieldPath": "url",
  1341. "columnName": "url",
  1342. "affinity": "TEXT",
  1343. "notNull": true
  1344. }
  1345. ],
  1346. "primaryKey": {
  1347. "columnNames": [
  1348. "id"
  1349. ],
  1350. "autoGenerate": false
  1351. },
  1352. "indices": [],
  1353. "foreignKeys": []
  1354. },
  1355. {
  1356. "tableName": "caches",
  1357. "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`key` TEXT NOT NULL, `value` TEXT, `deadline` INTEGER NOT NULL, PRIMARY KEY(`key`))",
  1358. "fields": [
  1359. {
  1360. "fieldPath": "key",
  1361. "columnName": "key",
  1362. "affinity": "TEXT",
  1363. "notNull": true
  1364. },
  1365. {
  1366. "fieldPath": "value",
  1367. "columnName": "value",
  1368. "affinity": "TEXT",
  1369. "notNull": false
  1370. },
  1371. {
  1372. "fieldPath": "deadline",
  1373. "columnName": "deadline",
  1374. "affinity": "INTEGER",
  1375. "notNull": true
  1376. }
  1377. ],
  1378. "primaryKey": {
  1379. "columnNames": [
  1380. "key"
  1381. ],
  1382. "autoGenerate": false
  1383. },
  1384. "indices": [
  1385. {
  1386. "name": "index_caches_key",
  1387. "unique": true,
  1388. "columnNames": [
  1389. "key"
  1390. ],
  1391. "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_caches_key` ON `${TABLE_NAME}` (`key`)"
  1392. }
  1393. ],
  1394. "foreignKeys": []
  1395. },
  1396. {
  1397. "tableName": "ruleSubs",
  1398. "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`))",
  1399. "fields": [
  1400. {
  1401. "fieldPath": "id",
  1402. "columnName": "id",
  1403. "affinity": "INTEGER",
  1404. "notNull": true
  1405. },
  1406. {
  1407. "fieldPath": "name",
  1408. "columnName": "name",
  1409. "affinity": "TEXT",
  1410. "notNull": true
  1411. },
  1412. {
  1413. "fieldPath": "url",
  1414. "columnName": "url",
  1415. "affinity": "TEXT",
  1416. "notNull": true
  1417. },
  1418. {
  1419. "fieldPath": "type",
  1420. "columnName": "type",
  1421. "affinity": "INTEGER",
  1422. "notNull": true
  1423. },
  1424. {
  1425. "fieldPath": "customOrder",
  1426. "columnName": "customOrder",
  1427. "affinity": "INTEGER",
  1428. "notNull": true
  1429. },
  1430. {
  1431. "fieldPath": "autoUpdate",
  1432. "columnName": "autoUpdate",
  1433. "affinity": "INTEGER",
  1434. "notNull": true
  1435. },
  1436. {
  1437. "fieldPath": "update",
  1438. "columnName": "update",
  1439. "affinity": "INTEGER",
  1440. "notNull": true
  1441. }
  1442. ],
  1443. "primaryKey": {
  1444. "columnNames": [
  1445. "id"
  1446. ],
  1447. "autoGenerate": false
  1448. },
  1449. "indices": [],
  1450. "foreignKeys": []
  1451. }
  1452. ],
  1453. "views": [],
  1454. "setupQueries": [
  1455. "CREATE TABLE IF NOT EXISTS room_master_table (id INTEGER PRIMARY KEY,identity_hash TEXT)",
  1456. "INSERT OR REPLACE INTO room_master_table (id,identity_hash) VALUES(42, '11ebd6a72eb3f9ccd6ca46bc5535bca5')"
  1457. ]
  1458. }
  1459. }