50.json 49 KB

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