58.json 51 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724
  1. {
  2. "formatVersion": 1,
  3. "database": {
  4. "version": 58,
  5. "identityHash": "dce5917572677d2b19bbc43809efb40c",
  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. "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, `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. "columnNames": [
  274. "groupId"
  275. ],
  276. "autoGenerate": false
  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. "columnNames": [
  463. "bookSourceUrl"
  464. ],
  465. "autoGenerate": false
  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. "columnNames": [
  577. "url",
  578. "bookUrl"
  579. ],
  580. "autoGenerate": false
  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. "columnNames": [
  705. "id"
  706. ],
  707. "autoGenerate": true
  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. "columnNames": [
  819. "bookUrl"
  820. ],
  821. "autoGenerate": false
  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. "columnNames": [
  882. "word"
  883. ],
  884. "autoGenerate": false
  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. "columnNames": [
  918. "url"
  919. ],
  920. "autoGenerate": false
  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, `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, `injectJs` TEXT, `lastUpdateTime` INTEGER NOT NULL DEFAULT 0, `customOrder` INTEGER NOT NULL, 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. },
  1042. {
  1043. "fieldPath": "ruleArticles",
  1044. "columnName": "ruleArticles",
  1045. "affinity": "TEXT",
  1046. "notNull": false
  1047. },
  1048. {
  1049. "fieldPath": "ruleNextPage",
  1050. "columnName": "ruleNextPage",
  1051. "affinity": "TEXT",
  1052. "notNull": false
  1053. },
  1054. {
  1055. "fieldPath": "ruleTitle",
  1056. "columnName": "ruleTitle",
  1057. "affinity": "TEXT",
  1058. "notNull": false
  1059. },
  1060. {
  1061. "fieldPath": "rulePubDate",
  1062. "columnName": "rulePubDate",
  1063. "affinity": "TEXT",
  1064. "notNull": false
  1065. },
  1066. {
  1067. "fieldPath": "ruleDescription",
  1068. "columnName": "ruleDescription",
  1069. "affinity": "TEXT",
  1070. "notNull": false
  1071. },
  1072. {
  1073. "fieldPath": "ruleImage",
  1074. "columnName": "ruleImage",
  1075. "affinity": "TEXT",
  1076. "notNull": false
  1077. },
  1078. {
  1079. "fieldPath": "ruleLink",
  1080. "columnName": "ruleLink",
  1081. "affinity": "TEXT",
  1082. "notNull": false
  1083. },
  1084. {
  1085. "fieldPath": "ruleContent",
  1086. "columnName": "ruleContent",
  1087. "affinity": "TEXT",
  1088. "notNull": false
  1089. },
  1090. {
  1091. "fieldPath": "style",
  1092. "columnName": "style",
  1093. "affinity": "TEXT",
  1094. "notNull": false
  1095. },
  1096. {
  1097. "fieldPath": "enableJs",
  1098. "columnName": "enableJs",
  1099. "affinity": "INTEGER",
  1100. "notNull": true
  1101. },
  1102. {
  1103. "fieldPath": "loadWithBaseUrl",
  1104. "columnName": "loadWithBaseUrl",
  1105. "affinity": "INTEGER",
  1106. "notNull": true
  1107. },
  1108. {
  1109. "fieldPath": "injectJs",
  1110. "columnName": "injectJs",
  1111. "affinity": "TEXT",
  1112. "notNull": false
  1113. },
  1114. {
  1115. "fieldPath": "lastUpdateTime",
  1116. "columnName": "lastUpdateTime",
  1117. "affinity": "INTEGER",
  1118. "notNull": true,
  1119. "defaultValue": "0"
  1120. },
  1121. {
  1122. "fieldPath": "customOrder",
  1123. "columnName": "customOrder",
  1124. "affinity": "INTEGER",
  1125. "notNull": true
  1126. }
  1127. ],
  1128. "primaryKey": {
  1129. "columnNames": [
  1130. "sourceUrl"
  1131. ],
  1132. "autoGenerate": false
  1133. },
  1134. "indices": [
  1135. {
  1136. "name": "index_rssSources_sourceUrl",
  1137. "unique": false,
  1138. "columnNames": [
  1139. "sourceUrl"
  1140. ],
  1141. "orders": [],
  1142. "createSql": "CREATE INDEX IF NOT EXISTS `index_rssSources_sourceUrl` ON `${TABLE_NAME}` (`sourceUrl`)"
  1143. }
  1144. ],
  1145. "foreignKeys": []
  1146. },
  1147. {
  1148. "tableName": "bookmarks",
  1149. "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`))",
  1150. "fields": [
  1151. {
  1152. "fieldPath": "time",
  1153. "columnName": "time",
  1154. "affinity": "INTEGER",
  1155. "notNull": true
  1156. },
  1157. {
  1158. "fieldPath": "bookName",
  1159. "columnName": "bookName",
  1160. "affinity": "TEXT",
  1161. "notNull": true
  1162. },
  1163. {
  1164. "fieldPath": "bookAuthor",
  1165. "columnName": "bookAuthor",
  1166. "affinity": "TEXT",
  1167. "notNull": true
  1168. },
  1169. {
  1170. "fieldPath": "chapterIndex",
  1171. "columnName": "chapterIndex",
  1172. "affinity": "INTEGER",
  1173. "notNull": true
  1174. },
  1175. {
  1176. "fieldPath": "chapterPos",
  1177. "columnName": "chapterPos",
  1178. "affinity": "INTEGER",
  1179. "notNull": true
  1180. },
  1181. {
  1182. "fieldPath": "chapterName",
  1183. "columnName": "chapterName",
  1184. "affinity": "TEXT",
  1185. "notNull": true
  1186. },
  1187. {
  1188. "fieldPath": "bookText",
  1189. "columnName": "bookText",
  1190. "affinity": "TEXT",
  1191. "notNull": true
  1192. },
  1193. {
  1194. "fieldPath": "content",
  1195. "columnName": "content",
  1196. "affinity": "TEXT",
  1197. "notNull": true
  1198. }
  1199. ],
  1200. "primaryKey": {
  1201. "columnNames": [
  1202. "time"
  1203. ],
  1204. "autoGenerate": false
  1205. },
  1206. "indices": [
  1207. {
  1208. "name": "index_bookmarks_bookName_bookAuthor",
  1209. "unique": false,
  1210. "columnNames": [
  1211. "bookName",
  1212. "bookAuthor"
  1213. ],
  1214. "orders": [],
  1215. "createSql": "CREATE INDEX IF NOT EXISTS `index_bookmarks_bookName_bookAuthor` ON `${TABLE_NAME}` (`bookName`, `bookAuthor`)"
  1216. }
  1217. ],
  1218. "foreignKeys": []
  1219. },
  1220. {
  1221. "tableName": "rssArticles",
  1222. "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`))",
  1223. "fields": [
  1224. {
  1225. "fieldPath": "origin",
  1226. "columnName": "origin",
  1227. "affinity": "TEXT",
  1228. "notNull": true
  1229. },
  1230. {
  1231. "fieldPath": "sort",
  1232. "columnName": "sort",
  1233. "affinity": "TEXT",
  1234. "notNull": true
  1235. },
  1236. {
  1237. "fieldPath": "title",
  1238. "columnName": "title",
  1239. "affinity": "TEXT",
  1240. "notNull": true
  1241. },
  1242. {
  1243. "fieldPath": "order",
  1244. "columnName": "order",
  1245. "affinity": "INTEGER",
  1246. "notNull": true
  1247. },
  1248. {
  1249. "fieldPath": "link",
  1250. "columnName": "link",
  1251. "affinity": "TEXT",
  1252. "notNull": true
  1253. },
  1254. {
  1255. "fieldPath": "pubDate",
  1256. "columnName": "pubDate",
  1257. "affinity": "TEXT",
  1258. "notNull": false
  1259. },
  1260. {
  1261. "fieldPath": "description",
  1262. "columnName": "description",
  1263. "affinity": "TEXT",
  1264. "notNull": false
  1265. },
  1266. {
  1267. "fieldPath": "content",
  1268. "columnName": "content",
  1269. "affinity": "TEXT",
  1270. "notNull": false
  1271. },
  1272. {
  1273. "fieldPath": "image",
  1274. "columnName": "image",
  1275. "affinity": "TEXT",
  1276. "notNull": false
  1277. },
  1278. {
  1279. "fieldPath": "read",
  1280. "columnName": "read",
  1281. "affinity": "INTEGER",
  1282. "notNull": true
  1283. },
  1284. {
  1285. "fieldPath": "variable",
  1286. "columnName": "variable",
  1287. "affinity": "TEXT",
  1288. "notNull": false
  1289. }
  1290. ],
  1291. "primaryKey": {
  1292. "columnNames": [
  1293. "origin",
  1294. "link"
  1295. ],
  1296. "autoGenerate": false
  1297. },
  1298. "indices": [],
  1299. "foreignKeys": []
  1300. },
  1301. {
  1302. "tableName": "rssReadRecords",
  1303. "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`record` TEXT NOT NULL, `read` INTEGER NOT NULL, PRIMARY KEY(`record`))",
  1304. "fields": [
  1305. {
  1306. "fieldPath": "record",
  1307. "columnName": "record",
  1308. "affinity": "TEXT",
  1309. "notNull": true
  1310. },
  1311. {
  1312. "fieldPath": "read",
  1313. "columnName": "read",
  1314. "affinity": "INTEGER",
  1315. "notNull": true
  1316. }
  1317. ],
  1318. "primaryKey": {
  1319. "columnNames": [
  1320. "record"
  1321. ],
  1322. "autoGenerate": false
  1323. },
  1324. "indices": [],
  1325. "foreignKeys": []
  1326. },
  1327. {
  1328. "tableName": "rssStars",
  1329. "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`))",
  1330. "fields": [
  1331. {
  1332. "fieldPath": "origin",
  1333. "columnName": "origin",
  1334. "affinity": "TEXT",
  1335. "notNull": true
  1336. },
  1337. {
  1338. "fieldPath": "sort",
  1339. "columnName": "sort",
  1340. "affinity": "TEXT",
  1341. "notNull": true
  1342. },
  1343. {
  1344. "fieldPath": "title",
  1345. "columnName": "title",
  1346. "affinity": "TEXT",
  1347. "notNull": true
  1348. },
  1349. {
  1350. "fieldPath": "starTime",
  1351. "columnName": "starTime",
  1352. "affinity": "INTEGER",
  1353. "notNull": true
  1354. },
  1355. {
  1356. "fieldPath": "link",
  1357. "columnName": "link",
  1358. "affinity": "TEXT",
  1359. "notNull": true
  1360. },
  1361. {
  1362. "fieldPath": "pubDate",
  1363. "columnName": "pubDate",
  1364. "affinity": "TEXT",
  1365. "notNull": false
  1366. },
  1367. {
  1368. "fieldPath": "description",
  1369. "columnName": "description",
  1370. "affinity": "TEXT",
  1371. "notNull": false
  1372. },
  1373. {
  1374. "fieldPath": "content",
  1375. "columnName": "content",
  1376. "affinity": "TEXT",
  1377. "notNull": false
  1378. },
  1379. {
  1380. "fieldPath": "image",
  1381. "columnName": "image",
  1382. "affinity": "TEXT",
  1383. "notNull": false
  1384. },
  1385. {
  1386. "fieldPath": "variable",
  1387. "columnName": "variable",
  1388. "affinity": "TEXT",
  1389. "notNull": false
  1390. }
  1391. ],
  1392. "primaryKey": {
  1393. "columnNames": [
  1394. "origin",
  1395. "link"
  1396. ],
  1397. "autoGenerate": false
  1398. },
  1399. "indices": [],
  1400. "foreignKeys": []
  1401. },
  1402. {
  1403. "tableName": "txtTocRules",
  1404. "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`))",
  1405. "fields": [
  1406. {
  1407. "fieldPath": "id",
  1408. "columnName": "id",
  1409. "affinity": "INTEGER",
  1410. "notNull": true
  1411. },
  1412. {
  1413. "fieldPath": "name",
  1414. "columnName": "name",
  1415. "affinity": "TEXT",
  1416. "notNull": true
  1417. },
  1418. {
  1419. "fieldPath": "rule",
  1420. "columnName": "rule",
  1421. "affinity": "TEXT",
  1422. "notNull": true
  1423. },
  1424. {
  1425. "fieldPath": "example",
  1426. "columnName": "example",
  1427. "affinity": "TEXT",
  1428. "notNull": false
  1429. },
  1430. {
  1431. "fieldPath": "serialNumber",
  1432. "columnName": "serialNumber",
  1433. "affinity": "INTEGER",
  1434. "notNull": true
  1435. },
  1436. {
  1437. "fieldPath": "enable",
  1438. "columnName": "enable",
  1439. "affinity": "INTEGER",
  1440. "notNull": true
  1441. }
  1442. ],
  1443. "primaryKey": {
  1444. "columnNames": [
  1445. "id"
  1446. ],
  1447. "autoGenerate": false
  1448. },
  1449. "indices": [],
  1450. "foreignKeys": []
  1451. },
  1452. {
  1453. "tableName": "readRecord",
  1454. "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`))",
  1455. "fields": [
  1456. {
  1457. "fieldPath": "deviceId",
  1458. "columnName": "deviceId",
  1459. "affinity": "TEXT",
  1460. "notNull": true
  1461. },
  1462. {
  1463. "fieldPath": "bookName",
  1464. "columnName": "bookName",
  1465. "affinity": "TEXT",
  1466. "notNull": true
  1467. },
  1468. {
  1469. "fieldPath": "readTime",
  1470. "columnName": "readTime",
  1471. "affinity": "INTEGER",
  1472. "notNull": true,
  1473. "defaultValue": "0"
  1474. },
  1475. {
  1476. "fieldPath": "lastRead",
  1477. "columnName": "lastRead",
  1478. "affinity": "INTEGER",
  1479. "notNull": true,
  1480. "defaultValue": "0"
  1481. }
  1482. ],
  1483. "primaryKey": {
  1484. "columnNames": [
  1485. "deviceId",
  1486. "bookName"
  1487. ],
  1488. "autoGenerate": false
  1489. },
  1490. "indices": [],
  1491. "foreignKeys": []
  1492. },
  1493. {
  1494. "tableName": "httpTTS",
  1495. "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`))",
  1496. "fields": [
  1497. {
  1498. "fieldPath": "id",
  1499. "columnName": "id",
  1500. "affinity": "INTEGER",
  1501. "notNull": true
  1502. },
  1503. {
  1504. "fieldPath": "name",
  1505. "columnName": "name",
  1506. "affinity": "TEXT",
  1507. "notNull": true
  1508. },
  1509. {
  1510. "fieldPath": "url",
  1511. "columnName": "url",
  1512. "affinity": "TEXT",
  1513. "notNull": true
  1514. },
  1515. {
  1516. "fieldPath": "contentType",
  1517. "columnName": "contentType",
  1518. "affinity": "TEXT",
  1519. "notNull": false
  1520. },
  1521. {
  1522. "fieldPath": "concurrentRate",
  1523. "columnName": "concurrentRate",
  1524. "affinity": "TEXT",
  1525. "notNull": false,
  1526. "defaultValue": "'0'"
  1527. },
  1528. {
  1529. "fieldPath": "loginUrl",
  1530. "columnName": "loginUrl",
  1531. "affinity": "TEXT",
  1532. "notNull": false
  1533. },
  1534. {
  1535. "fieldPath": "loginUi",
  1536. "columnName": "loginUi",
  1537. "affinity": "TEXT",
  1538. "notNull": false
  1539. },
  1540. {
  1541. "fieldPath": "header",
  1542. "columnName": "header",
  1543. "affinity": "TEXT",
  1544. "notNull": false
  1545. },
  1546. {
  1547. "fieldPath": "enabledCookieJar",
  1548. "columnName": "enabledCookieJar",
  1549. "affinity": "INTEGER",
  1550. "notNull": false,
  1551. "defaultValue": "0"
  1552. },
  1553. {
  1554. "fieldPath": "loginCheckJs",
  1555. "columnName": "loginCheckJs",
  1556. "affinity": "TEXT",
  1557. "notNull": false
  1558. },
  1559. {
  1560. "fieldPath": "lastUpdateTime",
  1561. "columnName": "lastUpdateTime",
  1562. "affinity": "INTEGER",
  1563. "notNull": true,
  1564. "defaultValue": "0"
  1565. }
  1566. ],
  1567. "primaryKey": {
  1568. "columnNames": [
  1569. "id"
  1570. ],
  1571. "autoGenerate": false
  1572. },
  1573. "indices": [],
  1574. "foreignKeys": []
  1575. },
  1576. {
  1577. "tableName": "caches",
  1578. "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`key` TEXT NOT NULL, `value` TEXT, `deadline` INTEGER NOT NULL, PRIMARY KEY(`key`))",
  1579. "fields": [
  1580. {
  1581. "fieldPath": "key",
  1582. "columnName": "key",
  1583. "affinity": "TEXT",
  1584. "notNull": true
  1585. },
  1586. {
  1587. "fieldPath": "value",
  1588. "columnName": "value",
  1589. "affinity": "TEXT",
  1590. "notNull": false
  1591. },
  1592. {
  1593. "fieldPath": "deadline",
  1594. "columnName": "deadline",
  1595. "affinity": "INTEGER",
  1596. "notNull": true
  1597. }
  1598. ],
  1599. "primaryKey": {
  1600. "columnNames": [
  1601. "key"
  1602. ],
  1603. "autoGenerate": false
  1604. },
  1605. "indices": [
  1606. {
  1607. "name": "index_caches_key",
  1608. "unique": true,
  1609. "columnNames": [
  1610. "key"
  1611. ],
  1612. "orders": [],
  1613. "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_caches_key` ON `${TABLE_NAME}` (`key`)"
  1614. }
  1615. ],
  1616. "foreignKeys": []
  1617. },
  1618. {
  1619. "tableName": "ruleSubs",
  1620. "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`))",
  1621. "fields": [
  1622. {
  1623. "fieldPath": "id",
  1624. "columnName": "id",
  1625. "affinity": "INTEGER",
  1626. "notNull": true
  1627. },
  1628. {
  1629. "fieldPath": "name",
  1630. "columnName": "name",
  1631. "affinity": "TEXT",
  1632. "notNull": true
  1633. },
  1634. {
  1635. "fieldPath": "url",
  1636. "columnName": "url",
  1637. "affinity": "TEXT",
  1638. "notNull": true
  1639. },
  1640. {
  1641. "fieldPath": "type",
  1642. "columnName": "type",
  1643. "affinity": "INTEGER",
  1644. "notNull": true
  1645. },
  1646. {
  1647. "fieldPath": "customOrder",
  1648. "columnName": "customOrder",
  1649. "affinity": "INTEGER",
  1650. "notNull": true
  1651. },
  1652. {
  1653. "fieldPath": "autoUpdate",
  1654. "columnName": "autoUpdate",
  1655. "affinity": "INTEGER",
  1656. "notNull": true
  1657. },
  1658. {
  1659. "fieldPath": "update",
  1660. "columnName": "update",
  1661. "affinity": "INTEGER",
  1662. "notNull": true
  1663. }
  1664. ],
  1665. "primaryKey": {
  1666. "columnNames": [
  1667. "id"
  1668. ],
  1669. "autoGenerate": false
  1670. },
  1671. "indices": [],
  1672. "foreignKeys": []
  1673. },
  1674. {
  1675. "tableName": "keyboardAssists",
  1676. "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`))",
  1677. "fields": [
  1678. {
  1679. "fieldPath": "type",
  1680. "columnName": "type",
  1681. "affinity": "INTEGER",
  1682. "notNull": true,
  1683. "defaultValue": "0"
  1684. },
  1685. {
  1686. "fieldPath": "key",
  1687. "columnName": "key",
  1688. "affinity": "TEXT",
  1689. "notNull": true,
  1690. "defaultValue": "''"
  1691. },
  1692. {
  1693. "fieldPath": "value",
  1694. "columnName": "value",
  1695. "affinity": "TEXT",
  1696. "notNull": true,
  1697. "defaultValue": "''"
  1698. },
  1699. {
  1700. "fieldPath": "serialNo",
  1701. "columnName": "serialNo",
  1702. "affinity": "INTEGER",
  1703. "notNull": true,
  1704. "defaultValue": "0"
  1705. }
  1706. ],
  1707. "primaryKey": {
  1708. "columnNames": [
  1709. "type",
  1710. "key"
  1711. ],
  1712. "autoGenerate": false
  1713. },
  1714. "indices": [],
  1715. "foreignKeys": []
  1716. }
  1717. ],
  1718. "views": [],
  1719. "setupQueries": [
  1720. "CREATE TABLE IF NOT EXISTS room_master_table (id INTEGER PRIMARY KEY,identity_hash TEXT)",
  1721. "INSERT OR REPLACE INTO room_master_table (id,identity_hash) VALUES(42, 'dce5917572677d2b19bbc43809efb40c')"
  1722. ]
  1723. }
  1724. }