43.json 45 KB

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