75.json 58 KB

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