92.json 76 KB

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