79.json 58 KB

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