88.json 69 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299
  1. {
  2. "formatVersion": 1,
  3. "database": {
  4. "version": 88,
  5. "identityHash": "7cbef4b2b125c9742578e51c4f8b5a09",
  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, `remark` 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. },
  58. {
  59. "fieldPath": "customTag",
  60. "columnName": "customTag",
  61. "affinity": "TEXT"
  62. },
  63. {
  64. "fieldPath": "coverUrl",
  65. "columnName": "coverUrl",
  66. "affinity": "TEXT"
  67. },
  68. {
  69. "fieldPath": "customCoverUrl",
  70. "columnName": "customCoverUrl",
  71. "affinity": "TEXT"
  72. },
  73. {
  74. "fieldPath": "intro",
  75. "columnName": "intro",
  76. "affinity": "TEXT"
  77. },
  78. {
  79. "fieldPath": "customIntro",
  80. "columnName": "customIntro",
  81. "affinity": "TEXT"
  82. },
  83. {
  84. "fieldPath": "remark",
  85. "columnName": "remark",
  86. "affinity": "TEXT"
  87. },
  88. {
  89. "fieldPath": "charset",
  90. "columnName": "charset",
  91. "affinity": "TEXT"
  92. },
  93. {
  94. "fieldPath": "type",
  95. "columnName": "type",
  96. "affinity": "INTEGER",
  97. "notNull": true,
  98. "defaultValue": "0"
  99. },
  100. {
  101. "fieldPath": "group",
  102. "columnName": "group",
  103. "affinity": "INTEGER",
  104. "notNull": true,
  105. "defaultValue": "0"
  106. },
  107. {
  108. "fieldPath": "latestChapterTitle",
  109. "columnName": "latestChapterTitle",
  110. "affinity": "TEXT"
  111. },
  112. {
  113. "fieldPath": "latestChapterTime",
  114. "columnName": "latestChapterTime",
  115. "affinity": "INTEGER",
  116. "notNull": true,
  117. "defaultValue": "0"
  118. },
  119. {
  120. "fieldPath": "lastCheckTime",
  121. "columnName": "lastCheckTime",
  122. "affinity": "INTEGER",
  123. "notNull": true,
  124. "defaultValue": "0"
  125. },
  126. {
  127. "fieldPath": "lastCheckCount",
  128. "columnName": "lastCheckCount",
  129. "affinity": "INTEGER",
  130. "notNull": true,
  131. "defaultValue": "0"
  132. },
  133. {
  134. "fieldPath": "totalChapterNum",
  135. "columnName": "totalChapterNum",
  136. "affinity": "INTEGER",
  137. "notNull": true,
  138. "defaultValue": "0"
  139. },
  140. {
  141. "fieldPath": "durChapterTitle",
  142. "columnName": "durChapterTitle",
  143. "affinity": "TEXT"
  144. },
  145. {
  146. "fieldPath": "durChapterIndex",
  147. "columnName": "durChapterIndex",
  148. "affinity": "INTEGER",
  149. "notNull": true,
  150. "defaultValue": "0"
  151. },
  152. {
  153. "fieldPath": "durChapterPos",
  154. "columnName": "durChapterPos",
  155. "affinity": "INTEGER",
  156. "notNull": true,
  157. "defaultValue": "0"
  158. },
  159. {
  160. "fieldPath": "durChapterTime",
  161. "columnName": "durChapterTime",
  162. "affinity": "INTEGER",
  163. "notNull": true,
  164. "defaultValue": "0"
  165. },
  166. {
  167. "fieldPath": "wordCount",
  168. "columnName": "wordCount",
  169. "affinity": "TEXT"
  170. },
  171. {
  172. "fieldPath": "canUpdate",
  173. "columnName": "canUpdate",
  174. "affinity": "INTEGER",
  175. "notNull": true,
  176. "defaultValue": "1"
  177. },
  178. {
  179. "fieldPath": "order",
  180. "columnName": "order",
  181. "affinity": "INTEGER",
  182. "notNull": true,
  183. "defaultValue": "0"
  184. },
  185. {
  186. "fieldPath": "originOrder",
  187. "columnName": "originOrder",
  188. "affinity": "INTEGER",
  189. "notNull": true,
  190. "defaultValue": "0"
  191. },
  192. {
  193. "fieldPath": "variable",
  194. "columnName": "variable",
  195. "affinity": "TEXT"
  196. },
  197. {
  198. "fieldPath": "readConfig",
  199. "columnName": "readConfig",
  200. "affinity": "TEXT"
  201. },
  202. {
  203. "fieldPath": "syncTime",
  204. "columnName": "syncTime",
  205. "affinity": "INTEGER",
  206. "notNull": true,
  207. "defaultValue": "0"
  208. }
  209. ],
  210. "primaryKey": {
  211. "autoGenerate": false,
  212. "columnNames": [
  213. "bookUrl"
  214. ]
  215. },
  216. "indices": [
  217. {
  218. "name": "index_books_name_author",
  219. "unique": false,
  220. "columnNames": [
  221. "name",
  222. "author"
  223. ],
  224. "orders": [],
  225. "createSql": "CREATE INDEX IF NOT EXISTS `index_books_name_author` ON `${TABLE_NAME}` (`name`, `author`)"
  226. },
  227. {
  228. "name": "index_books_durChapterTime",
  229. "unique": false,
  230. "columnNames": [
  231. "durChapterTime"
  232. ],
  233. "orders": [],
  234. "createSql": "CREATE INDEX IF NOT EXISTS `index_books_durChapterTime` ON `${TABLE_NAME}` (`durChapterTime`)"
  235. }
  236. ]
  237. },
  238. {
  239. "tableName": "book_groups",
  240. "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`))",
  241. "fields": [
  242. {
  243. "fieldPath": "groupId",
  244. "columnName": "groupId",
  245. "affinity": "INTEGER",
  246. "notNull": true
  247. },
  248. {
  249. "fieldPath": "groupName",
  250. "columnName": "groupName",
  251. "affinity": "TEXT",
  252. "notNull": true
  253. },
  254. {
  255. "fieldPath": "cover",
  256. "columnName": "cover",
  257. "affinity": "TEXT"
  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. },
  294. {
  295. "tableName": "book_sources",
  296. "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, `eventListener` INTEGER NOT NULL DEFAULT 0, `customButton` INTEGER NOT NULL DEFAULT 0, `homepageModules` TEXT, PRIMARY KEY(`bookSourceUrl`))",
  297. "fields": [
  298. {
  299. "fieldPath": "bookSourceUrl",
  300. "columnName": "bookSourceUrl",
  301. "affinity": "TEXT",
  302. "notNull": true
  303. },
  304. {
  305. "fieldPath": "bookSourceName",
  306. "columnName": "bookSourceName",
  307. "affinity": "TEXT",
  308. "notNull": true
  309. },
  310. {
  311. "fieldPath": "bookSourceGroup",
  312. "columnName": "bookSourceGroup",
  313. "affinity": "TEXT"
  314. },
  315. {
  316. "fieldPath": "bookSourceType",
  317. "columnName": "bookSourceType",
  318. "affinity": "INTEGER",
  319. "notNull": true
  320. },
  321. {
  322. "fieldPath": "bookUrlPattern",
  323. "columnName": "bookUrlPattern",
  324. "affinity": "TEXT"
  325. },
  326. {
  327. "fieldPath": "customOrder",
  328. "columnName": "customOrder",
  329. "affinity": "INTEGER",
  330. "notNull": true,
  331. "defaultValue": "0"
  332. },
  333. {
  334. "fieldPath": "enabled",
  335. "columnName": "enabled",
  336. "affinity": "INTEGER",
  337. "notNull": true,
  338. "defaultValue": "1"
  339. },
  340. {
  341. "fieldPath": "enabledExplore",
  342. "columnName": "enabledExplore",
  343. "affinity": "INTEGER",
  344. "notNull": true,
  345. "defaultValue": "1"
  346. },
  347. {
  348. "fieldPath": "jsLib",
  349. "columnName": "jsLib",
  350. "affinity": "TEXT"
  351. },
  352. {
  353. "fieldPath": "enabledCookieJar",
  354. "columnName": "enabledCookieJar",
  355. "affinity": "INTEGER",
  356. "defaultValue": "0"
  357. },
  358. {
  359. "fieldPath": "concurrentRate",
  360. "columnName": "concurrentRate",
  361. "affinity": "TEXT"
  362. },
  363. {
  364. "fieldPath": "header",
  365. "columnName": "header",
  366. "affinity": "TEXT"
  367. },
  368. {
  369. "fieldPath": "loginUrl",
  370. "columnName": "loginUrl",
  371. "affinity": "TEXT"
  372. },
  373. {
  374. "fieldPath": "loginUi",
  375. "columnName": "loginUi",
  376. "affinity": "TEXT"
  377. },
  378. {
  379. "fieldPath": "loginCheckJs",
  380. "columnName": "loginCheckJs",
  381. "affinity": "TEXT"
  382. },
  383. {
  384. "fieldPath": "coverDecodeJs",
  385. "columnName": "coverDecodeJs",
  386. "affinity": "TEXT"
  387. },
  388. {
  389. "fieldPath": "bookSourceComment",
  390. "columnName": "bookSourceComment",
  391. "affinity": "TEXT"
  392. },
  393. {
  394. "fieldPath": "variableComment",
  395. "columnName": "variableComment",
  396. "affinity": "TEXT"
  397. },
  398. {
  399. "fieldPath": "lastUpdateTime",
  400. "columnName": "lastUpdateTime",
  401. "affinity": "INTEGER",
  402. "notNull": true
  403. },
  404. {
  405. "fieldPath": "respondTime",
  406. "columnName": "respondTime",
  407. "affinity": "INTEGER",
  408. "notNull": true
  409. },
  410. {
  411. "fieldPath": "weight",
  412. "columnName": "weight",
  413. "affinity": "INTEGER",
  414. "notNull": true
  415. },
  416. {
  417. "fieldPath": "exploreUrl",
  418. "columnName": "exploreUrl",
  419. "affinity": "TEXT"
  420. },
  421. {
  422. "fieldPath": "exploreScreen",
  423. "columnName": "exploreScreen",
  424. "affinity": "TEXT"
  425. },
  426. {
  427. "fieldPath": "ruleExplore",
  428. "columnName": "ruleExplore",
  429. "affinity": "TEXT"
  430. },
  431. {
  432. "fieldPath": "searchUrl",
  433. "columnName": "searchUrl",
  434. "affinity": "TEXT"
  435. },
  436. {
  437. "fieldPath": "ruleSearch",
  438. "columnName": "ruleSearch",
  439. "affinity": "TEXT"
  440. },
  441. {
  442. "fieldPath": "ruleBookInfo",
  443. "columnName": "ruleBookInfo",
  444. "affinity": "TEXT"
  445. },
  446. {
  447. "fieldPath": "ruleToc",
  448. "columnName": "ruleToc",
  449. "affinity": "TEXT"
  450. },
  451. {
  452. "fieldPath": "ruleContent",
  453. "columnName": "ruleContent",
  454. "affinity": "TEXT"
  455. },
  456. {
  457. "fieldPath": "ruleReview",
  458. "columnName": "ruleReview",
  459. "affinity": "TEXT"
  460. },
  461. {
  462. "fieldPath": "eventListener",
  463. "columnName": "eventListener",
  464. "affinity": "INTEGER",
  465. "notNull": true,
  466. "defaultValue": "0"
  467. },
  468. {
  469. "fieldPath": "customButton",
  470. "columnName": "customButton",
  471. "affinity": "INTEGER",
  472. "notNull": true,
  473. "defaultValue": "0"
  474. },
  475. {
  476. "fieldPath": "homepageModules",
  477. "columnName": "homepageModules",
  478. "affinity": "TEXT"
  479. }
  480. ],
  481. "primaryKey": {
  482. "autoGenerate": false,
  483. "columnNames": [
  484. "bookSourceUrl"
  485. ]
  486. },
  487. "indices": [
  488. {
  489. "name": "index_book_sources_bookSourceUrl",
  490. "unique": false,
  491. "columnNames": [
  492. "bookSourceUrl"
  493. ],
  494. "orders": [],
  495. "createSql": "CREATE INDEX IF NOT EXISTS `index_book_sources_bookSourceUrl` ON `${TABLE_NAME}` (`bookSourceUrl`)"
  496. }
  497. ]
  498. },
  499. {
  500. "tableName": "chapters",
  501. "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, `wordCount` TEXT, `start` INTEGER, `end` INTEGER, `startFragmentId` TEXT, `endFragmentId` TEXT, `variable` TEXT, `reviewImg` TEXT, PRIMARY KEY(`url`, `bookUrl`), FOREIGN KEY(`bookUrl`) REFERENCES `books`(`bookUrl`) ON UPDATE NO ACTION ON DELETE CASCADE )",
  502. "fields": [
  503. {
  504. "fieldPath": "url",
  505. "columnName": "url",
  506. "affinity": "TEXT",
  507. "notNull": true
  508. },
  509. {
  510. "fieldPath": "title",
  511. "columnName": "title",
  512. "affinity": "TEXT",
  513. "notNull": true
  514. },
  515. {
  516. "fieldPath": "isVolume",
  517. "columnName": "isVolume",
  518. "affinity": "INTEGER",
  519. "notNull": true
  520. },
  521. {
  522. "fieldPath": "baseUrl",
  523. "columnName": "baseUrl",
  524. "affinity": "TEXT",
  525. "notNull": true
  526. },
  527. {
  528. "fieldPath": "bookUrl",
  529. "columnName": "bookUrl",
  530. "affinity": "TEXT",
  531. "notNull": true
  532. },
  533. {
  534. "fieldPath": "index",
  535. "columnName": "index",
  536. "affinity": "INTEGER",
  537. "notNull": true
  538. },
  539. {
  540. "fieldPath": "isVip",
  541. "columnName": "isVip",
  542. "affinity": "INTEGER",
  543. "notNull": true
  544. },
  545. {
  546. "fieldPath": "isPay",
  547. "columnName": "isPay",
  548. "affinity": "INTEGER",
  549. "notNull": true
  550. },
  551. {
  552. "fieldPath": "resourceUrl",
  553. "columnName": "resourceUrl",
  554. "affinity": "TEXT"
  555. },
  556. {
  557. "fieldPath": "tag",
  558. "columnName": "tag",
  559. "affinity": "TEXT"
  560. },
  561. {
  562. "fieldPath": "wordCount",
  563. "columnName": "wordCount",
  564. "affinity": "TEXT"
  565. },
  566. {
  567. "fieldPath": "start",
  568. "columnName": "start",
  569. "affinity": "INTEGER"
  570. },
  571. {
  572. "fieldPath": "end",
  573. "columnName": "end",
  574. "affinity": "INTEGER"
  575. },
  576. {
  577. "fieldPath": "startFragmentId",
  578. "columnName": "startFragmentId",
  579. "affinity": "TEXT"
  580. },
  581. {
  582. "fieldPath": "endFragmentId",
  583. "columnName": "endFragmentId",
  584. "affinity": "TEXT"
  585. },
  586. {
  587. "fieldPath": "variable",
  588. "columnName": "variable",
  589. "affinity": "TEXT"
  590. },
  591. {
  592. "fieldPath": "reviewImg",
  593. "columnName": "reviewImg",
  594. "affinity": "TEXT"
  595. }
  596. ],
  597. "primaryKey": {
  598. "autoGenerate": false,
  599. "columnNames": [
  600. "url",
  601. "bookUrl"
  602. ]
  603. },
  604. "indices": [
  605. {
  606. "name": "index_chapters_bookUrl",
  607. "unique": false,
  608. "columnNames": [
  609. "bookUrl"
  610. ],
  611. "orders": [],
  612. "createSql": "CREATE INDEX IF NOT EXISTS `index_chapters_bookUrl` ON `${TABLE_NAME}` (`bookUrl`)"
  613. },
  614. {
  615. "name": "index_chapters_bookUrl_index",
  616. "unique": true,
  617. "columnNames": [
  618. "bookUrl",
  619. "index"
  620. ],
  621. "orders": [],
  622. "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_chapters_bookUrl_index` ON `${TABLE_NAME}` (`bookUrl`, `index`)"
  623. }
  624. ],
  625. "foreignKeys": [
  626. {
  627. "table": "books",
  628. "onDelete": "CASCADE",
  629. "onUpdate": "NO ACTION",
  630. "columns": [
  631. "bookUrl"
  632. ],
  633. "referencedColumns": [
  634. "bookUrl"
  635. ]
  636. }
  637. ]
  638. },
  639. {
  640. "tableName": "replace_rules",
  641. "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)",
  642. "fields": [
  643. {
  644. "fieldPath": "id",
  645. "columnName": "id",
  646. "affinity": "INTEGER",
  647. "notNull": true
  648. },
  649. {
  650. "fieldPath": "name",
  651. "columnName": "name",
  652. "affinity": "TEXT",
  653. "notNull": true,
  654. "defaultValue": "''"
  655. },
  656. {
  657. "fieldPath": "group",
  658. "columnName": "group",
  659. "affinity": "TEXT"
  660. },
  661. {
  662. "fieldPath": "pattern",
  663. "columnName": "pattern",
  664. "affinity": "TEXT",
  665. "notNull": true,
  666. "defaultValue": "''"
  667. },
  668. {
  669. "fieldPath": "replacement",
  670. "columnName": "replacement",
  671. "affinity": "TEXT",
  672. "notNull": true,
  673. "defaultValue": "''"
  674. },
  675. {
  676. "fieldPath": "scope",
  677. "columnName": "scope",
  678. "affinity": "TEXT"
  679. },
  680. {
  681. "fieldPath": "scopeTitle",
  682. "columnName": "scopeTitle",
  683. "affinity": "INTEGER",
  684. "notNull": true,
  685. "defaultValue": "0"
  686. },
  687. {
  688. "fieldPath": "scopeContent",
  689. "columnName": "scopeContent",
  690. "affinity": "INTEGER",
  691. "notNull": true,
  692. "defaultValue": "1"
  693. },
  694. {
  695. "fieldPath": "excludeScope",
  696. "columnName": "excludeScope",
  697. "affinity": "TEXT"
  698. },
  699. {
  700. "fieldPath": "isEnabled",
  701. "columnName": "isEnabled",
  702. "affinity": "INTEGER",
  703. "notNull": true,
  704. "defaultValue": "1"
  705. },
  706. {
  707. "fieldPath": "isRegex",
  708. "columnName": "isRegex",
  709. "affinity": "INTEGER",
  710. "notNull": true,
  711. "defaultValue": "1"
  712. },
  713. {
  714. "fieldPath": "timeoutMillisecond",
  715. "columnName": "timeoutMillisecond",
  716. "affinity": "INTEGER",
  717. "notNull": true,
  718. "defaultValue": "3000"
  719. },
  720. {
  721. "fieldPath": "order",
  722. "columnName": "sortOrder",
  723. "affinity": "INTEGER",
  724. "notNull": true,
  725. "defaultValue": "0"
  726. }
  727. ],
  728. "primaryKey": {
  729. "autoGenerate": true,
  730. "columnNames": [
  731. "id"
  732. ]
  733. },
  734. "indices": [
  735. {
  736. "name": "index_replace_rules_id",
  737. "unique": false,
  738. "columnNames": [
  739. "id"
  740. ],
  741. "orders": [],
  742. "createSql": "CREATE INDEX IF NOT EXISTS `index_replace_rules_id` ON `${TABLE_NAME}` (`id`)"
  743. }
  744. ]
  745. },
  746. {
  747. "tableName": "searchBooks",
  748. "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 )",
  749. "fields": [
  750. {
  751. "fieldPath": "bookUrl",
  752. "columnName": "bookUrl",
  753. "affinity": "TEXT",
  754. "notNull": true
  755. },
  756. {
  757. "fieldPath": "origin",
  758. "columnName": "origin",
  759. "affinity": "TEXT",
  760. "notNull": true
  761. },
  762. {
  763. "fieldPath": "originName",
  764. "columnName": "originName",
  765. "affinity": "TEXT",
  766. "notNull": true
  767. },
  768. {
  769. "fieldPath": "type",
  770. "columnName": "type",
  771. "affinity": "INTEGER",
  772. "notNull": true
  773. },
  774. {
  775. "fieldPath": "name",
  776. "columnName": "name",
  777. "affinity": "TEXT",
  778. "notNull": true
  779. },
  780. {
  781. "fieldPath": "author",
  782. "columnName": "author",
  783. "affinity": "TEXT",
  784. "notNull": true
  785. },
  786. {
  787. "fieldPath": "kind",
  788. "columnName": "kind",
  789. "affinity": "TEXT"
  790. },
  791. {
  792. "fieldPath": "coverUrl",
  793. "columnName": "coverUrl",
  794. "affinity": "TEXT"
  795. },
  796. {
  797. "fieldPath": "intro",
  798. "columnName": "intro",
  799. "affinity": "TEXT"
  800. },
  801. {
  802. "fieldPath": "wordCount",
  803. "columnName": "wordCount",
  804. "affinity": "TEXT"
  805. },
  806. {
  807. "fieldPath": "latestChapterTitle",
  808. "columnName": "latestChapterTitle",
  809. "affinity": "TEXT"
  810. },
  811. {
  812. "fieldPath": "tocUrl",
  813. "columnName": "tocUrl",
  814. "affinity": "TEXT",
  815. "notNull": true
  816. },
  817. {
  818. "fieldPath": "time",
  819. "columnName": "time",
  820. "affinity": "INTEGER",
  821. "notNull": true
  822. },
  823. {
  824. "fieldPath": "variable",
  825. "columnName": "variable",
  826. "affinity": "TEXT"
  827. },
  828. {
  829. "fieldPath": "originOrder",
  830. "columnName": "originOrder",
  831. "affinity": "INTEGER",
  832. "notNull": true
  833. },
  834. {
  835. "fieldPath": "chapterWordCountText",
  836. "columnName": "chapterWordCountText",
  837. "affinity": "TEXT"
  838. },
  839. {
  840. "fieldPath": "chapterWordCount",
  841. "columnName": "chapterWordCount",
  842. "affinity": "INTEGER",
  843. "notNull": true,
  844. "defaultValue": "-1"
  845. },
  846. {
  847. "fieldPath": "respondTime",
  848. "columnName": "respondTime",
  849. "affinity": "INTEGER",
  850. "notNull": true,
  851. "defaultValue": "-1"
  852. }
  853. ],
  854. "primaryKey": {
  855. "autoGenerate": false,
  856. "columnNames": [
  857. "bookUrl"
  858. ]
  859. },
  860. "indices": [
  861. {
  862. "name": "index_searchBooks_bookUrl",
  863. "unique": true,
  864. "columnNames": [
  865. "bookUrl"
  866. ],
  867. "orders": [],
  868. "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_searchBooks_bookUrl` ON `${TABLE_NAME}` (`bookUrl`)"
  869. },
  870. {
  871. "name": "index_searchBooks_origin",
  872. "unique": false,
  873. "columnNames": [
  874. "origin"
  875. ],
  876. "orders": [],
  877. "createSql": "CREATE INDEX IF NOT EXISTS `index_searchBooks_origin` ON `${TABLE_NAME}` (`origin`)"
  878. }
  879. ],
  880. "foreignKeys": [
  881. {
  882. "table": "book_sources",
  883. "onDelete": "CASCADE",
  884. "onUpdate": "NO ACTION",
  885. "columns": [
  886. "origin"
  887. ],
  888. "referencedColumns": [
  889. "bookSourceUrl"
  890. ]
  891. }
  892. ]
  893. },
  894. {
  895. "tableName": "search_keywords",
  896. "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`word` TEXT NOT NULL, `usage` INTEGER NOT NULL, `lastUseTime` INTEGER NOT NULL, PRIMARY KEY(`word`))",
  897. "fields": [
  898. {
  899. "fieldPath": "word",
  900. "columnName": "word",
  901. "affinity": "TEXT",
  902. "notNull": true
  903. },
  904. {
  905. "fieldPath": "usage",
  906. "columnName": "usage",
  907. "affinity": "INTEGER",
  908. "notNull": true
  909. },
  910. {
  911. "fieldPath": "lastUseTime",
  912. "columnName": "lastUseTime",
  913. "affinity": "INTEGER",
  914. "notNull": true
  915. }
  916. ],
  917. "primaryKey": {
  918. "autoGenerate": false,
  919. "columnNames": [
  920. "word"
  921. ]
  922. },
  923. "indices": [
  924. {
  925. "name": "index_search_keywords_word",
  926. "unique": true,
  927. "columnNames": [
  928. "word"
  929. ],
  930. "orders": [],
  931. "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_search_keywords_word` ON `${TABLE_NAME}` (`word`)"
  932. }
  933. ]
  934. },
  935. {
  936. "tableName": "cookies",
  937. "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`url` TEXT NOT NULL, `cookie` TEXT NOT NULL, PRIMARY KEY(`url`))",
  938. "fields": [
  939. {
  940. "fieldPath": "url",
  941. "columnName": "url",
  942. "affinity": "TEXT",
  943. "notNull": true
  944. },
  945. {
  946. "fieldPath": "cookie",
  947. "columnName": "cookie",
  948. "affinity": "TEXT",
  949. "notNull": true
  950. }
  951. ],
  952. "primaryKey": {
  953. "autoGenerate": false,
  954. "columnNames": [
  955. "url"
  956. ]
  957. },
  958. "indices": [
  959. {
  960. "name": "index_cookies_url",
  961. "unique": true,
  962. "columnNames": [
  963. "url"
  964. ],
  965. "orders": [],
  966. "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_cookies_url` ON `${TABLE_NAME}` (`url`)"
  967. }
  968. ]
  969. },
  970. {
  971. "tableName": "rssSources",
  972. "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, `preloadJs` TEXT, `startHtml` TEXT, `startStyle` TEXT, `startJs` TEXT, `showWebLog` INTEGER NOT NULL DEFAULT 0, `lastUpdateTime` INTEGER NOT NULL DEFAULT 0, `customOrder` INTEGER NOT NULL DEFAULT 0, `type` INTEGER NOT NULL DEFAULT 0, `preload` INTEGER NOT NULL DEFAULT 0, `cacheFirst` INTEGER NOT NULL DEFAULT 0, `searchUrl` TEXT, `redirectPolicy` TEXT NOT NULL DEFAULT 'ASK_CROSS_ORIGIN', PRIMARY KEY(`sourceUrl`))",
  973. "fields": [
  974. {
  975. "fieldPath": "sourceUrl",
  976. "columnName": "sourceUrl",
  977. "affinity": "TEXT",
  978. "notNull": true
  979. },
  980. {
  981. "fieldPath": "sourceName",
  982. "columnName": "sourceName",
  983. "affinity": "TEXT",
  984. "notNull": true
  985. },
  986. {
  987. "fieldPath": "sourceIcon",
  988. "columnName": "sourceIcon",
  989. "affinity": "TEXT",
  990. "notNull": true
  991. },
  992. {
  993. "fieldPath": "sourceGroup",
  994. "columnName": "sourceGroup",
  995. "affinity": "TEXT"
  996. },
  997. {
  998. "fieldPath": "sourceComment",
  999. "columnName": "sourceComment",
  1000. "affinity": "TEXT"
  1001. },
  1002. {
  1003. "fieldPath": "enabled",
  1004. "columnName": "enabled",
  1005. "affinity": "INTEGER",
  1006. "notNull": true
  1007. },
  1008. {
  1009. "fieldPath": "variableComment",
  1010. "columnName": "variableComment",
  1011. "affinity": "TEXT"
  1012. },
  1013. {
  1014. "fieldPath": "jsLib",
  1015. "columnName": "jsLib",
  1016. "affinity": "TEXT"
  1017. },
  1018. {
  1019. "fieldPath": "enabledCookieJar",
  1020. "columnName": "enabledCookieJar",
  1021. "affinity": "INTEGER",
  1022. "defaultValue": "0"
  1023. },
  1024. {
  1025. "fieldPath": "concurrentRate",
  1026. "columnName": "concurrentRate",
  1027. "affinity": "TEXT"
  1028. },
  1029. {
  1030. "fieldPath": "header",
  1031. "columnName": "header",
  1032. "affinity": "TEXT"
  1033. },
  1034. {
  1035. "fieldPath": "loginUrl",
  1036. "columnName": "loginUrl",
  1037. "affinity": "TEXT"
  1038. },
  1039. {
  1040. "fieldPath": "loginUi",
  1041. "columnName": "loginUi",
  1042. "affinity": "TEXT"
  1043. },
  1044. {
  1045. "fieldPath": "loginCheckJs",
  1046. "columnName": "loginCheckJs",
  1047. "affinity": "TEXT"
  1048. },
  1049. {
  1050. "fieldPath": "coverDecodeJs",
  1051. "columnName": "coverDecodeJs",
  1052. "affinity": "TEXT"
  1053. },
  1054. {
  1055. "fieldPath": "sortUrl",
  1056. "columnName": "sortUrl",
  1057. "affinity": "TEXT"
  1058. },
  1059. {
  1060. "fieldPath": "singleUrl",
  1061. "columnName": "singleUrl",
  1062. "affinity": "INTEGER",
  1063. "notNull": true
  1064. },
  1065. {
  1066. "fieldPath": "articleStyle",
  1067. "columnName": "articleStyle",
  1068. "affinity": "INTEGER",
  1069. "notNull": true,
  1070. "defaultValue": "0"
  1071. },
  1072. {
  1073. "fieldPath": "ruleArticles",
  1074. "columnName": "ruleArticles",
  1075. "affinity": "TEXT"
  1076. },
  1077. {
  1078. "fieldPath": "ruleNextPage",
  1079. "columnName": "ruleNextPage",
  1080. "affinity": "TEXT"
  1081. },
  1082. {
  1083. "fieldPath": "ruleTitle",
  1084. "columnName": "ruleTitle",
  1085. "affinity": "TEXT"
  1086. },
  1087. {
  1088. "fieldPath": "rulePubDate",
  1089. "columnName": "rulePubDate",
  1090. "affinity": "TEXT"
  1091. },
  1092. {
  1093. "fieldPath": "ruleDescription",
  1094. "columnName": "ruleDescription",
  1095. "affinity": "TEXT"
  1096. },
  1097. {
  1098. "fieldPath": "ruleImage",
  1099. "columnName": "ruleImage",
  1100. "affinity": "TEXT"
  1101. },
  1102. {
  1103. "fieldPath": "ruleLink",
  1104. "columnName": "ruleLink",
  1105. "affinity": "TEXT"
  1106. },
  1107. {
  1108. "fieldPath": "ruleContent",
  1109. "columnName": "ruleContent",
  1110. "affinity": "TEXT"
  1111. },
  1112. {
  1113. "fieldPath": "contentWhitelist",
  1114. "columnName": "contentWhitelist",
  1115. "affinity": "TEXT"
  1116. },
  1117. {
  1118. "fieldPath": "contentBlacklist",
  1119. "columnName": "contentBlacklist",
  1120. "affinity": "TEXT"
  1121. },
  1122. {
  1123. "fieldPath": "shouldOverrideUrlLoading",
  1124. "columnName": "shouldOverrideUrlLoading",
  1125. "affinity": "TEXT"
  1126. },
  1127. {
  1128. "fieldPath": "style",
  1129. "columnName": "style",
  1130. "affinity": "TEXT"
  1131. },
  1132. {
  1133. "fieldPath": "enableJs",
  1134. "columnName": "enableJs",
  1135. "affinity": "INTEGER",
  1136. "notNull": true,
  1137. "defaultValue": "1"
  1138. },
  1139. {
  1140. "fieldPath": "loadWithBaseUrl",
  1141. "columnName": "loadWithBaseUrl",
  1142. "affinity": "INTEGER",
  1143. "notNull": true,
  1144. "defaultValue": "1"
  1145. },
  1146. {
  1147. "fieldPath": "injectJs",
  1148. "columnName": "injectJs",
  1149. "affinity": "TEXT"
  1150. },
  1151. {
  1152. "fieldPath": "preloadJs",
  1153. "columnName": "preloadJs",
  1154. "affinity": "TEXT"
  1155. },
  1156. {
  1157. "fieldPath": "startHtml",
  1158. "columnName": "startHtml",
  1159. "affinity": "TEXT"
  1160. },
  1161. {
  1162. "fieldPath": "startStyle",
  1163. "columnName": "startStyle",
  1164. "affinity": "TEXT"
  1165. },
  1166. {
  1167. "fieldPath": "startJs",
  1168. "columnName": "startJs",
  1169. "affinity": "TEXT"
  1170. },
  1171. {
  1172. "fieldPath": "showWebLog",
  1173. "columnName": "showWebLog",
  1174. "affinity": "INTEGER",
  1175. "notNull": true,
  1176. "defaultValue": "0"
  1177. },
  1178. {
  1179. "fieldPath": "lastUpdateTime",
  1180. "columnName": "lastUpdateTime",
  1181. "affinity": "INTEGER",
  1182. "notNull": true,
  1183. "defaultValue": "0"
  1184. },
  1185. {
  1186. "fieldPath": "customOrder",
  1187. "columnName": "customOrder",
  1188. "affinity": "INTEGER",
  1189. "notNull": true,
  1190. "defaultValue": "0"
  1191. },
  1192. {
  1193. "fieldPath": "type",
  1194. "columnName": "type",
  1195. "affinity": "INTEGER",
  1196. "notNull": true,
  1197. "defaultValue": "0"
  1198. },
  1199. {
  1200. "fieldPath": "preload",
  1201. "columnName": "preload",
  1202. "affinity": "INTEGER",
  1203. "notNull": true,
  1204. "defaultValue": "0"
  1205. },
  1206. {
  1207. "fieldPath": "cacheFirst",
  1208. "columnName": "cacheFirst",
  1209. "affinity": "INTEGER",
  1210. "notNull": true,
  1211. "defaultValue": "0"
  1212. },
  1213. {
  1214. "fieldPath": "searchUrl",
  1215. "columnName": "searchUrl",
  1216. "affinity": "TEXT"
  1217. },
  1218. {
  1219. "fieldPath": "redirectPolicy",
  1220. "columnName": "redirectPolicy",
  1221. "affinity": "TEXT",
  1222. "notNull": true,
  1223. "defaultValue": "'ASK_CROSS_ORIGIN'"
  1224. }
  1225. ],
  1226. "primaryKey": {
  1227. "autoGenerate": false,
  1228. "columnNames": [
  1229. "sourceUrl"
  1230. ]
  1231. },
  1232. "indices": [
  1233. {
  1234. "name": "index_rssSources_sourceUrl",
  1235. "unique": false,
  1236. "columnNames": [
  1237. "sourceUrl"
  1238. ],
  1239. "orders": [],
  1240. "createSql": "CREATE INDEX IF NOT EXISTS `index_rssSources_sourceUrl` ON `${TABLE_NAME}` (`sourceUrl`)"
  1241. }
  1242. ]
  1243. },
  1244. {
  1245. "tableName": "bookmarks",
  1246. "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`time` INTEGER NOT NULL, `bookName` TEXT NOT NULL, `bookAuthor` TEXT NOT NULL DEFAULT '', `chapterIndex` INTEGER NOT NULL, `chapterPos` INTEGER NOT NULL, `chapterName` TEXT NOT NULL, `bookText` TEXT NOT NULL, `content` TEXT NOT NULL, PRIMARY KEY(`time`))",
  1247. "fields": [
  1248. {
  1249. "fieldPath": "time",
  1250. "columnName": "time",
  1251. "affinity": "INTEGER",
  1252. "notNull": true
  1253. },
  1254. {
  1255. "fieldPath": "bookName",
  1256. "columnName": "bookName",
  1257. "affinity": "TEXT",
  1258. "notNull": true
  1259. },
  1260. {
  1261. "fieldPath": "bookAuthor",
  1262. "columnName": "bookAuthor",
  1263. "affinity": "TEXT",
  1264. "notNull": true,
  1265. "defaultValue": "''"
  1266. },
  1267. {
  1268. "fieldPath": "chapterIndex",
  1269. "columnName": "chapterIndex",
  1270. "affinity": "INTEGER",
  1271. "notNull": true
  1272. },
  1273. {
  1274. "fieldPath": "chapterPos",
  1275. "columnName": "chapterPos",
  1276. "affinity": "INTEGER",
  1277. "notNull": true
  1278. },
  1279. {
  1280. "fieldPath": "chapterName",
  1281. "columnName": "chapterName",
  1282. "affinity": "TEXT",
  1283. "notNull": true
  1284. },
  1285. {
  1286. "fieldPath": "bookText",
  1287. "columnName": "bookText",
  1288. "affinity": "TEXT",
  1289. "notNull": true
  1290. },
  1291. {
  1292. "fieldPath": "content",
  1293. "columnName": "content",
  1294. "affinity": "TEXT",
  1295. "notNull": true
  1296. }
  1297. ],
  1298. "primaryKey": {
  1299. "autoGenerate": false,
  1300. "columnNames": [
  1301. "time"
  1302. ]
  1303. },
  1304. "indices": [
  1305. {
  1306. "name": "index_bookmarks_bookName_bookAuthor",
  1307. "unique": false,
  1308. "columnNames": [
  1309. "bookName",
  1310. "bookAuthor"
  1311. ],
  1312. "orders": [],
  1313. "createSql": "CREATE INDEX IF NOT EXISTS `index_bookmarks_bookName_bookAuthor` ON `${TABLE_NAME}` (`bookName`, `bookAuthor`)"
  1314. }
  1315. ]
  1316. },
  1317. {
  1318. "tableName": "rssArticles",
  1319. "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, `type` INTEGER NOT NULL DEFAULT 0, `durPos` INTEGER NOT NULL DEFAULT 0, PRIMARY KEY(`origin`, `link`, `sort`))",
  1320. "fields": [
  1321. {
  1322. "fieldPath": "origin",
  1323. "columnName": "origin",
  1324. "affinity": "TEXT",
  1325. "notNull": true
  1326. },
  1327. {
  1328. "fieldPath": "sort",
  1329. "columnName": "sort",
  1330. "affinity": "TEXT",
  1331. "notNull": true
  1332. },
  1333. {
  1334. "fieldPath": "title",
  1335. "columnName": "title",
  1336. "affinity": "TEXT",
  1337. "notNull": true
  1338. },
  1339. {
  1340. "fieldPath": "order",
  1341. "columnName": "order",
  1342. "affinity": "INTEGER",
  1343. "notNull": true
  1344. },
  1345. {
  1346. "fieldPath": "link",
  1347. "columnName": "link",
  1348. "affinity": "TEXT",
  1349. "notNull": true
  1350. },
  1351. {
  1352. "fieldPath": "pubDate",
  1353. "columnName": "pubDate",
  1354. "affinity": "TEXT"
  1355. },
  1356. {
  1357. "fieldPath": "description",
  1358. "columnName": "description",
  1359. "affinity": "TEXT"
  1360. },
  1361. {
  1362. "fieldPath": "content",
  1363. "columnName": "content",
  1364. "affinity": "TEXT"
  1365. },
  1366. {
  1367. "fieldPath": "image",
  1368. "columnName": "image",
  1369. "affinity": "TEXT"
  1370. },
  1371. {
  1372. "fieldPath": "group",
  1373. "columnName": "group",
  1374. "affinity": "TEXT",
  1375. "notNull": true,
  1376. "defaultValue": "'默认分组'"
  1377. },
  1378. {
  1379. "fieldPath": "read",
  1380. "columnName": "read",
  1381. "affinity": "INTEGER",
  1382. "notNull": true
  1383. },
  1384. {
  1385. "fieldPath": "variable",
  1386. "columnName": "variable",
  1387. "affinity": "TEXT"
  1388. },
  1389. {
  1390. "fieldPath": "type",
  1391. "columnName": "type",
  1392. "affinity": "INTEGER",
  1393. "notNull": true,
  1394. "defaultValue": "0"
  1395. },
  1396. {
  1397. "fieldPath": "durPos",
  1398. "columnName": "durPos",
  1399. "affinity": "INTEGER",
  1400. "notNull": true,
  1401. "defaultValue": "0"
  1402. }
  1403. ],
  1404. "primaryKey": {
  1405. "autoGenerate": false,
  1406. "columnNames": [
  1407. "origin",
  1408. "link",
  1409. "sort"
  1410. ]
  1411. }
  1412. },
  1413. {
  1414. "tableName": "rssReadRecords",
  1415. "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`record` TEXT NOT NULL, `title` TEXT, `readTime` INTEGER, `read` INTEGER NOT NULL, `origin` TEXT NOT NULL DEFAULT '', `sort` TEXT NOT NULL DEFAULT '', `image` TEXT, `type` INTEGER NOT NULL DEFAULT 0, `durPos` INTEGER NOT NULL DEFAULT 0, `pubDate` TEXT, PRIMARY KEY(`record`))",
  1416. "fields": [
  1417. {
  1418. "fieldPath": "record",
  1419. "columnName": "record",
  1420. "affinity": "TEXT",
  1421. "notNull": true
  1422. },
  1423. {
  1424. "fieldPath": "title",
  1425. "columnName": "title",
  1426. "affinity": "TEXT"
  1427. },
  1428. {
  1429. "fieldPath": "readTime",
  1430. "columnName": "readTime",
  1431. "affinity": "INTEGER"
  1432. },
  1433. {
  1434. "fieldPath": "read",
  1435. "columnName": "read",
  1436. "affinity": "INTEGER",
  1437. "notNull": true
  1438. },
  1439. {
  1440. "fieldPath": "origin",
  1441. "columnName": "origin",
  1442. "affinity": "TEXT",
  1443. "notNull": true,
  1444. "defaultValue": "''"
  1445. },
  1446. {
  1447. "fieldPath": "sort",
  1448. "columnName": "sort",
  1449. "affinity": "TEXT",
  1450. "notNull": true,
  1451. "defaultValue": "''"
  1452. },
  1453. {
  1454. "fieldPath": "image",
  1455. "columnName": "image",
  1456. "affinity": "TEXT"
  1457. },
  1458. {
  1459. "fieldPath": "type",
  1460. "columnName": "type",
  1461. "affinity": "INTEGER",
  1462. "notNull": true,
  1463. "defaultValue": "0"
  1464. },
  1465. {
  1466. "fieldPath": "durPos",
  1467. "columnName": "durPos",
  1468. "affinity": "INTEGER",
  1469. "notNull": true,
  1470. "defaultValue": "0"
  1471. },
  1472. {
  1473. "fieldPath": "pubDate",
  1474. "columnName": "pubDate",
  1475. "affinity": "TEXT"
  1476. }
  1477. ],
  1478. "primaryKey": {
  1479. "autoGenerate": false,
  1480. "columnNames": [
  1481. "record"
  1482. ]
  1483. },
  1484. "indices": [
  1485. {
  1486. "name": "index_rssReadRecords_origin",
  1487. "unique": false,
  1488. "columnNames": [
  1489. "origin"
  1490. ],
  1491. "orders": [],
  1492. "createSql": "CREATE INDEX IF NOT EXISTS `index_rssReadRecords_origin` ON `${TABLE_NAME}` (`origin`)"
  1493. }
  1494. ]
  1495. },
  1496. {
  1497. "tableName": "readRecordDetail",
  1498. "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`deviceId` TEXT NOT NULL, `bookName` TEXT NOT NULL, `bookAuthor` TEXT NOT NULL DEFAULT '', `date` TEXT NOT NULL, `readTime` INTEGER NOT NULL DEFAULT 0, `readWords` INTEGER NOT NULL DEFAULT 0, `firstReadTime` INTEGER NOT NULL DEFAULT 0, `lastReadTime` INTEGER NOT NULL DEFAULT 0, PRIMARY KEY(`deviceId`, `bookName`, `bookAuthor`, `date`))",
  1499. "fields": [
  1500. {
  1501. "fieldPath": "deviceId",
  1502. "columnName": "deviceId",
  1503. "affinity": "TEXT",
  1504. "notNull": true
  1505. },
  1506. {
  1507. "fieldPath": "bookName",
  1508. "columnName": "bookName",
  1509. "affinity": "TEXT",
  1510. "notNull": true
  1511. },
  1512. {
  1513. "fieldPath": "bookAuthor",
  1514. "columnName": "bookAuthor",
  1515. "affinity": "TEXT",
  1516. "notNull": true,
  1517. "defaultValue": "''"
  1518. },
  1519. {
  1520. "fieldPath": "date",
  1521. "columnName": "date",
  1522. "affinity": "TEXT",
  1523. "notNull": true
  1524. },
  1525. {
  1526. "fieldPath": "readTime",
  1527. "columnName": "readTime",
  1528. "affinity": "INTEGER",
  1529. "notNull": true,
  1530. "defaultValue": "0"
  1531. },
  1532. {
  1533. "fieldPath": "readWords",
  1534. "columnName": "readWords",
  1535. "affinity": "INTEGER",
  1536. "notNull": true,
  1537. "defaultValue": "0"
  1538. },
  1539. {
  1540. "fieldPath": "firstReadTime",
  1541. "columnName": "firstReadTime",
  1542. "affinity": "INTEGER",
  1543. "notNull": true,
  1544. "defaultValue": "0"
  1545. },
  1546. {
  1547. "fieldPath": "lastReadTime",
  1548. "columnName": "lastReadTime",
  1549. "affinity": "INTEGER",
  1550. "notNull": true,
  1551. "defaultValue": "0"
  1552. }
  1553. ],
  1554. "primaryKey": {
  1555. "autoGenerate": false,
  1556. "columnNames": [
  1557. "deviceId",
  1558. "bookName",
  1559. "bookAuthor",
  1560. "date"
  1561. ]
  1562. }
  1563. },
  1564. {
  1565. "tableName": "readRecordSession",
  1566. "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, `deviceId` TEXT NOT NULL, `bookName` TEXT NOT NULL, `bookAuthor` TEXT NOT NULL DEFAULT '', `startTime` INTEGER NOT NULL, `endTime` INTEGER NOT NULL, `words` INTEGER NOT NULL)",
  1567. "fields": [
  1568. {
  1569. "fieldPath": "id",
  1570. "columnName": "id",
  1571. "affinity": "INTEGER",
  1572. "notNull": true
  1573. },
  1574. {
  1575. "fieldPath": "deviceId",
  1576. "columnName": "deviceId",
  1577. "affinity": "TEXT",
  1578. "notNull": true
  1579. },
  1580. {
  1581. "fieldPath": "bookName",
  1582. "columnName": "bookName",
  1583. "affinity": "TEXT",
  1584. "notNull": true
  1585. },
  1586. {
  1587. "fieldPath": "bookAuthor",
  1588. "columnName": "bookAuthor",
  1589. "affinity": "TEXT",
  1590. "notNull": true,
  1591. "defaultValue": "''"
  1592. },
  1593. {
  1594. "fieldPath": "startTime",
  1595. "columnName": "startTime",
  1596. "affinity": "INTEGER",
  1597. "notNull": true
  1598. },
  1599. {
  1600. "fieldPath": "endTime",
  1601. "columnName": "endTime",
  1602. "affinity": "INTEGER",
  1603. "notNull": true
  1604. },
  1605. {
  1606. "fieldPath": "words",
  1607. "columnName": "words",
  1608. "affinity": "INTEGER",
  1609. "notNull": true
  1610. }
  1611. ],
  1612. "primaryKey": {
  1613. "autoGenerate": true,
  1614. "columnNames": [
  1615. "id"
  1616. ]
  1617. }
  1618. },
  1619. {
  1620. "tableName": "rssStars",
  1621. "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, `type` INTEGER NOT NULL DEFAULT 0, `durPos` INTEGER NOT NULL DEFAULT 0, PRIMARY KEY(`origin`, `link`))",
  1622. "fields": [
  1623. {
  1624. "fieldPath": "origin",
  1625. "columnName": "origin",
  1626. "affinity": "TEXT",
  1627. "notNull": true
  1628. },
  1629. {
  1630. "fieldPath": "sort",
  1631. "columnName": "sort",
  1632. "affinity": "TEXT",
  1633. "notNull": true
  1634. },
  1635. {
  1636. "fieldPath": "title",
  1637. "columnName": "title",
  1638. "affinity": "TEXT",
  1639. "notNull": true
  1640. },
  1641. {
  1642. "fieldPath": "starTime",
  1643. "columnName": "starTime",
  1644. "affinity": "INTEGER",
  1645. "notNull": true
  1646. },
  1647. {
  1648. "fieldPath": "link",
  1649. "columnName": "link",
  1650. "affinity": "TEXT",
  1651. "notNull": true
  1652. },
  1653. {
  1654. "fieldPath": "pubDate",
  1655. "columnName": "pubDate",
  1656. "affinity": "TEXT"
  1657. },
  1658. {
  1659. "fieldPath": "description",
  1660. "columnName": "description",
  1661. "affinity": "TEXT"
  1662. },
  1663. {
  1664. "fieldPath": "content",
  1665. "columnName": "content",
  1666. "affinity": "TEXT"
  1667. },
  1668. {
  1669. "fieldPath": "image",
  1670. "columnName": "image",
  1671. "affinity": "TEXT"
  1672. },
  1673. {
  1674. "fieldPath": "group",
  1675. "columnName": "group",
  1676. "affinity": "TEXT",
  1677. "notNull": true,
  1678. "defaultValue": "'默认分组'"
  1679. },
  1680. {
  1681. "fieldPath": "variable",
  1682. "columnName": "variable",
  1683. "affinity": "TEXT"
  1684. },
  1685. {
  1686. "fieldPath": "type",
  1687. "columnName": "type",
  1688. "affinity": "INTEGER",
  1689. "notNull": true,
  1690. "defaultValue": "0"
  1691. },
  1692. {
  1693. "fieldPath": "durPos",
  1694. "columnName": "durPos",
  1695. "affinity": "INTEGER",
  1696. "notNull": true,
  1697. "defaultValue": "0"
  1698. }
  1699. ],
  1700. "primaryKey": {
  1701. "autoGenerate": false,
  1702. "columnNames": [
  1703. "origin",
  1704. "link"
  1705. ]
  1706. }
  1707. },
  1708. {
  1709. "tableName": "txtTocRules",
  1710. "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`))",
  1711. "fields": [
  1712. {
  1713. "fieldPath": "id",
  1714. "columnName": "id",
  1715. "affinity": "INTEGER",
  1716. "notNull": true
  1717. },
  1718. {
  1719. "fieldPath": "name",
  1720. "columnName": "name",
  1721. "affinity": "TEXT",
  1722. "notNull": true
  1723. },
  1724. {
  1725. "fieldPath": "rule",
  1726. "columnName": "rule",
  1727. "affinity": "TEXT",
  1728. "notNull": true
  1729. },
  1730. {
  1731. "fieldPath": "example",
  1732. "columnName": "example",
  1733. "affinity": "TEXT"
  1734. },
  1735. {
  1736. "fieldPath": "serialNumber",
  1737. "columnName": "serialNumber",
  1738. "affinity": "INTEGER",
  1739. "notNull": true
  1740. },
  1741. {
  1742. "fieldPath": "enable",
  1743. "columnName": "enable",
  1744. "affinity": "INTEGER",
  1745. "notNull": true
  1746. }
  1747. ],
  1748. "primaryKey": {
  1749. "autoGenerate": false,
  1750. "columnNames": [
  1751. "id"
  1752. ]
  1753. }
  1754. },
  1755. {
  1756. "tableName": "readRecord",
  1757. "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`deviceId` TEXT NOT NULL, `bookName` TEXT NOT NULL, `bookAuthor` TEXT NOT NULL DEFAULT '', `readTime` INTEGER NOT NULL DEFAULT 0, `lastRead` INTEGER NOT NULL DEFAULT 0, PRIMARY KEY(`deviceId`, `bookName`, `bookAuthor`))",
  1758. "fields": [
  1759. {
  1760. "fieldPath": "deviceId",
  1761. "columnName": "deviceId",
  1762. "affinity": "TEXT",
  1763. "notNull": true
  1764. },
  1765. {
  1766. "fieldPath": "bookName",
  1767. "columnName": "bookName",
  1768. "affinity": "TEXT",
  1769. "notNull": true
  1770. },
  1771. {
  1772. "fieldPath": "bookAuthor",
  1773. "columnName": "bookAuthor",
  1774. "affinity": "TEXT",
  1775. "notNull": true,
  1776. "defaultValue": "''"
  1777. },
  1778. {
  1779. "fieldPath": "readTime",
  1780. "columnName": "readTime",
  1781. "affinity": "INTEGER",
  1782. "notNull": true,
  1783. "defaultValue": "0"
  1784. },
  1785. {
  1786. "fieldPath": "lastRead",
  1787. "columnName": "lastRead",
  1788. "affinity": "INTEGER",
  1789. "notNull": true,
  1790. "defaultValue": "0"
  1791. }
  1792. ],
  1793. "primaryKey": {
  1794. "autoGenerate": false,
  1795. "columnNames": [
  1796. "deviceId",
  1797. "bookName",
  1798. "bookAuthor"
  1799. ]
  1800. }
  1801. },
  1802. {
  1803. "tableName": "httpTTS",
  1804. "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`))",
  1805. "fields": [
  1806. {
  1807. "fieldPath": "id",
  1808. "columnName": "id",
  1809. "affinity": "INTEGER",
  1810. "notNull": true
  1811. },
  1812. {
  1813. "fieldPath": "name",
  1814. "columnName": "name",
  1815. "affinity": "TEXT",
  1816. "notNull": true
  1817. },
  1818. {
  1819. "fieldPath": "url",
  1820. "columnName": "url",
  1821. "affinity": "TEXT",
  1822. "notNull": true
  1823. },
  1824. {
  1825. "fieldPath": "contentType",
  1826. "columnName": "contentType",
  1827. "affinity": "TEXT"
  1828. },
  1829. {
  1830. "fieldPath": "concurrentRate",
  1831. "columnName": "concurrentRate",
  1832. "affinity": "TEXT",
  1833. "defaultValue": "'0'"
  1834. },
  1835. {
  1836. "fieldPath": "loginUrl",
  1837. "columnName": "loginUrl",
  1838. "affinity": "TEXT"
  1839. },
  1840. {
  1841. "fieldPath": "loginUi",
  1842. "columnName": "loginUi",
  1843. "affinity": "TEXT"
  1844. },
  1845. {
  1846. "fieldPath": "header",
  1847. "columnName": "header",
  1848. "affinity": "TEXT"
  1849. },
  1850. {
  1851. "fieldPath": "jsLib",
  1852. "columnName": "jsLib",
  1853. "affinity": "TEXT"
  1854. },
  1855. {
  1856. "fieldPath": "enabledCookieJar",
  1857. "columnName": "enabledCookieJar",
  1858. "affinity": "INTEGER",
  1859. "defaultValue": "0"
  1860. },
  1861. {
  1862. "fieldPath": "loginCheckJs",
  1863. "columnName": "loginCheckJs",
  1864. "affinity": "TEXT"
  1865. },
  1866. {
  1867. "fieldPath": "lastUpdateTime",
  1868. "columnName": "lastUpdateTime",
  1869. "affinity": "INTEGER",
  1870. "notNull": true,
  1871. "defaultValue": "0"
  1872. }
  1873. ],
  1874. "primaryKey": {
  1875. "autoGenerate": false,
  1876. "columnNames": [
  1877. "id"
  1878. ]
  1879. }
  1880. },
  1881. {
  1882. "tableName": "caches",
  1883. "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`key` TEXT NOT NULL, `value` TEXT, `deadline` INTEGER NOT NULL, PRIMARY KEY(`key`))",
  1884. "fields": [
  1885. {
  1886. "fieldPath": "key",
  1887. "columnName": "key",
  1888. "affinity": "TEXT",
  1889. "notNull": true
  1890. },
  1891. {
  1892. "fieldPath": "value",
  1893. "columnName": "value",
  1894. "affinity": "TEXT"
  1895. },
  1896. {
  1897. "fieldPath": "deadline",
  1898. "columnName": "deadline",
  1899. "affinity": "INTEGER",
  1900. "notNull": true
  1901. }
  1902. ],
  1903. "primaryKey": {
  1904. "autoGenerate": false,
  1905. "columnNames": [
  1906. "key"
  1907. ]
  1908. },
  1909. "indices": [
  1910. {
  1911. "name": "index_caches_key",
  1912. "unique": true,
  1913. "columnNames": [
  1914. "key"
  1915. ],
  1916. "orders": [],
  1917. "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_caches_key` ON `${TABLE_NAME}` (`key`)"
  1918. }
  1919. ]
  1920. },
  1921. {
  1922. "tableName": "ruleSubs",
  1923. "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`))",
  1924. "fields": [
  1925. {
  1926. "fieldPath": "id",
  1927. "columnName": "id",
  1928. "affinity": "INTEGER",
  1929. "notNull": true
  1930. },
  1931. {
  1932. "fieldPath": "name",
  1933. "columnName": "name",
  1934. "affinity": "TEXT",
  1935. "notNull": true
  1936. },
  1937. {
  1938. "fieldPath": "url",
  1939. "columnName": "url",
  1940. "affinity": "TEXT",
  1941. "notNull": true
  1942. },
  1943. {
  1944. "fieldPath": "type",
  1945. "columnName": "type",
  1946. "affinity": "INTEGER",
  1947. "notNull": true
  1948. },
  1949. {
  1950. "fieldPath": "customOrder",
  1951. "columnName": "customOrder",
  1952. "affinity": "INTEGER",
  1953. "notNull": true
  1954. },
  1955. {
  1956. "fieldPath": "autoUpdate",
  1957. "columnName": "autoUpdate",
  1958. "affinity": "INTEGER",
  1959. "notNull": true
  1960. },
  1961. {
  1962. "fieldPath": "update",
  1963. "columnName": "update",
  1964. "affinity": "INTEGER",
  1965. "notNull": true
  1966. }
  1967. ],
  1968. "primaryKey": {
  1969. "autoGenerate": false,
  1970. "columnNames": [
  1971. "id"
  1972. ]
  1973. }
  1974. },
  1975. {
  1976. "tableName": "dictRules",
  1977. "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`))",
  1978. "fields": [
  1979. {
  1980. "fieldPath": "name",
  1981. "columnName": "name",
  1982. "affinity": "TEXT",
  1983. "notNull": true
  1984. },
  1985. {
  1986. "fieldPath": "urlRule",
  1987. "columnName": "urlRule",
  1988. "affinity": "TEXT",
  1989. "notNull": true
  1990. },
  1991. {
  1992. "fieldPath": "showRule",
  1993. "columnName": "showRule",
  1994. "affinity": "TEXT",
  1995. "notNull": true
  1996. },
  1997. {
  1998. "fieldPath": "enabled",
  1999. "columnName": "enabled",
  2000. "affinity": "INTEGER",
  2001. "notNull": true,
  2002. "defaultValue": "1"
  2003. },
  2004. {
  2005. "fieldPath": "sortNumber",
  2006. "columnName": "sortNumber",
  2007. "affinity": "INTEGER",
  2008. "notNull": true,
  2009. "defaultValue": "0"
  2010. }
  2011. ],
  2012. "primaryKey": {
  2013. "autoGenerate": false,
  2014. "columnNames": [
  2015. "name"
  2016. ]
  2017. }
  2018. },
  2019. {
  2020. "tableName": "keyboardAssists",
  2021. "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`))",
  2022. "fields": [
  2023. {
  2024. "fieldPath": "type",
  2025. "columnName": "type",
  2026. "affinity": "INTEGER",
  2027. "notNull": true,
  2028. "defaultValue": "0"
  2029. },
  2030. {
  2031. "fieldPath": "key",
  2032. "columnName": "key",
  2033. "affinity": "TEXT",
  2034. "notNull": true,
  2035. "defaultValue": "''"
  2036. },
  2037. {
  2038. "fieldPath": "value",
  2039. "columnName": "value",
  2040. "affinity": "TEXT",
  2041. "notNull": true,
  2042. "defaultValue": "''"
  2043. },
  2044. {
  2045. "fieldPath": "serialNo",
  2046. "columnName": "serialNo",
  2047. "affinity": "INTEGER",
  2048. "notNull": true,
  2049. "defaultValue": "0"
  2050. }
  2051. ],
  2052. "primaryKey": {
  2053. "autoGenerate": false,
  2054. "columnNames": [
  2055. "type",
  2056. "key"
  2057. ]
  2058. }
  2059. },
  2060. {
  2061. "tableName": "servers",
  2062. "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`))",
  2063. "fields": [
  2064. {
  2065. "fieldPath": "id",
  2066. "columnName": "id",
  2067. "affinity": "INTEGER",
  2068. "notNull": true
  2069. },
  2070. {
  2071. "fieldPath": "name",
  2072. "columnName": "name",
  2073. "affinity": "TEXT",
  2074. "notNull": true
  2075. },
  2076. {
  2077. "fieldPath": "type",
  2078. "columnName": "type",
  2079. "affinity": "TEXT",
  2080. "notNull": true
  2081. },
  2082. {
  2083. "fieldPath": "config",
  2084. "columnName": "config",
  2085. "affinity": "TEXT"
  2086. },
  2087. {
  2088. "fieldPath": "sortNumber",
  2089. "columnName": "sortNumber",
  2090. "affinity": "INTEGER",
  2091. "notNull": true
  2092. }
  2093. ],
  2094. "primaryKey": {
  2095. "autoGenerate": false,
  2096. "columnNames": [
  2097. "id"
  2098. ]
  2099. }
  2100. },
  2101. {
  2102. "tableName": "search_content_history",
  2103. "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, `bookName` TEXT DEFAULT '', `bookAuthor` TEXT DEFAULT '', `query` TEXT NOT NULL, `time` INTEGER NOT NULL)",
  2104. "fields": [
  2105. {
  2106. "fieldPath": "id",
  2107. "columnName": "id",
  2108. "affinity": "INTEGER",
  2109. "notNull": true
  2110. },
  2111. {
  2112. "fieldPath": "bookName",
  2113. "columnName": "bookName",
  2114. "affinity": "TEXT",
  2115. "defaultValue": "''"
  2116. },
  2117. {
  2118. "fieldPath": "bookAuthor",
  2119. "columnName": "bookAuthor",
  2120. "affinity": "TEXT",
  2121. "defaultValue": "''"
  2122. },
  2123. {
  2124. "fieldPath": "query",
  2125. "columnName": "query",
  2126. "affinity": "TEXT",
  2127. "notNull": true
  2128. },
  2129. {
  2130. "fieldPath": "time",
  2131. "columnName": "time",
  2132. "affinity": "INTEGER",
  2133. "notNull": true
  2134. }
  2135. ],
  2136. "primaryKey": {
  2137. "autoGenerate": true,
  2138. "columnNames": [
  2139. "id"
  2140. ]
  2141. },
  2142. "indices": [
  2143. {
  2144. "name": "index_search_content_history_bookName_bookAuthor_query",
  2145. "unique": true,
  2146. "columnNames": [
  2147. "bookName",
  2148. "bookAuthor",
  2149. "query"
  2150. ],
  2151. "orders": [],
  2152. "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_search_content_history_bookName_bookAuthor_query` ON `${TABLE_NAME}` (`bookName`, `bookAuthor`, `query`)"
  2153. }
  2154. ]
  2155. },
  2156. {
  2157. "tableName": "homepage_modules",
  2158. "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` TEXT NOT NULL, `sourceUrl` TEXT NOT NULL, `moduleKey` TEXT NOT NULL, `type` TEXT NOT NULL, `title` TEXT NOT NULL, `args` TEXT, `layoutConfig` TEXT, `url` TEXT, `isEnabled` INTEGER NOT NULL, `sortOrder` INTEGER NOT NULL, `customSetId` TEXT, `isUserCreated` INTEGER NOT NULL, `customTitle` TEXT, `customSetTitle` TEXT, `sourceJsonHash` TEXT, `syncedAt` INTEGER NOT NULL, PRIMARY KEY(`id`))",
  2159. "fields": [
  2160. {
  2161. "fieldPath": "id",
  2162. "columnName": "id",
  2163. "affinity": "TEXT",
  2164. "notNull": true
  2165. },
  2166. {
  2167. "fieldPath": "sourceUrl",
  2168. "columnName": "sourceUrl",
  2169. "affinity": "TEXT",
  2170. "notNull": true
  2171. },
  2172. {
  2173. "fieldPath": "moduleKey",
  2174. "columnName": "moduleKey",
  2175. "affinity": "TEXT",
  2176. "notNull": true
  2177. },
  2178. {
  2179. "fieldPath": "type",
  2180. "columnName": "type",
  2181. "affinity": "TEXT",
  2182. "notNull": true
  2183. },
  2184. {
  2185. "fieldPath": "title",
  2186. "columnName": "title",
  2187. "affinity": "TEXT",
  2188. "notNull": true
  2189. },
  2190. {
  2191. "fieldPath": "args",
  2192. "columnName": "args",
  2193. "affinity": "TEXT"
  2194. },
  2195. {
  2196. "fieldPath": "layoutConfig",
  2197. "columnName": "layoutConfig",
  2198. "affinity": "TEXT"
  2199. },
  2200. {
  2201. "fieldPath": "url",
  2202. "columnName": "url",
  2203. "affinity": "TEXT"
  2204. },
  2205. {
  2206. "fieldPath": "isEnabled",
  2207. "columnName": "isEnabled",
  2208. "affinity": "INTEGER",
  2209. "notNull": true
  2210. },
  2211. {
  2212. "fieldPath": "sortOrder",
  2213. "columnName": "sortOrder",
  2214. "affinity": "INTEGER",
  2215. "notNull": true
  2216. },
  2217. {
  2218. "fieldPath": "customSetId",
  2219. "columnName": "customSetId",
  2220. "affinity": "TEXT"
  2221. },
  2222. {
  2223. "fieldPath": "isUserCreated",
  2224. "columnName": "isUserCreated",
  2225. "affinity": "INTEGER",
  2226. "notNull": true
  2227. },
  2228. {
  2229. "fieldPath": "customTitle",
  2230. "columnName": "customTitle",
  2231. "affinity": "TEXT"
  2232. },
  2233. {
  2234. "fieldPath": "customSetTitle",
  2235. "columnName": "customSetTitle",
  2236. "affinity": "TEXT"
  2237. },
  2238. {
  2239. "fieldPath": "sourceJsonHash",
  2240. "columnName": "sourceJsonHash",
  2241. "affinity": "TEXT"
  2242. },
  2243. {
  2244. "fieldPath": "syncedAt",
  2245. "columnName": "syncedAt",
  2246. "affinity": "INTEGER",
  2247. "notNull": true
  2248. }
  2249. ],
  2250. "primaryKey": {
  2251. "autoGenerate": false,
  2252. "columnNames": [
  2253. "id"
  2254. ]
  2255. }
  2256. },
  2257. {
  2258. "tableName": "homepage_custom_sets",
  2259. "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` TEXT NOT NULL, `name` TEXT NOT NULL, `sortOrder` INTEGER NOT NULL, PRIMARY KEY(`id`))",
  2260. "fields": [
  2261. {
  2262. "fieldPath": "id",
  2263. "columnName": "id",
  2264. "affinity": "TEXT",
  2265. "notNull": true
  2266. },
  2267. {
  2268. "fieldPath": "name",
  2269. "columnName": "name",
  2270. "affinity": "TEXT",
  2271. "notNull": true
  2272. },
  2273. {
  2274. "fieldPath": "sortOrder",
  2275. "columnName": "sortOrder",
  2276. "affinity": "INTEGER",
  2277. "notNull": true
  2278. }
  2279. ],
  2280. "primaryKey": {
  2281. "autoGenerate": false,
  2282. "columnNames": [
  2283. "id"
  2284. ]
  2285. }
  2286. }
  2287. ],
  2288. "views": [
  2289. {
  2290. "viewName": "book_sources_part",
  2291. "createSql": "CREATE VIEW `${VIEW_NAME}` AS select bookSourceUrl, bookSourceName, bookSourceGroup, customOrder, enabled, enabledExplore, \n (loginUrl is not null and trim(loginUrl) <> '') hasLoginUrl, lastUpdateTime, respondTime, weight, \n (exploreUrl is not null and trim(exploreUrl) <> '') hasExploreUrl \n from book_sources"
  2292. }
  2293. ],
  2294. "setupQueries": [
  2295. "CREATE TABLE IF NOT EXISTS room_master_table (id INTEGER PRIMARY KEY,identity_hash TEXT)",
  2296. "INSERT OR REPLACE INTO room_master_table (id,identity_hash) VALUES(42, '7cbef4b2b125c9742578e51c4f8b5a09')"
  2297. ]
  2298. }
  2299. }