52.json 50 KB

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