63.json 55 KB

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