72.json 57 KB

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