49.json 49 KB

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