66.json 55 KB

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