60.json 53 KB

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