53.json 50 KB

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