40.json 43 KB

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