44.json 46 KB

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