87.json 66 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163
  1. {
  2. "formatVersion": 1,
  3. "database": {
  4. "version": 87,
  5. "identityHash": "c16fe9293b41f9d7d6771f3b37ec5e4d",
  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, 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. "primaryKey": {
  477. "autoGenerate": false,
  478. "columnNames": [
  479. "bookSourceUrl"
  480. ]
  481. },
  482. "indices": [
  483. {
  484. "name": "index_book_sources_bookSourceUrl",
  485. "unique": false,
  486. "columnNames": [
  487. "bookSourceUrl"
  488. ],
  489. "orders": [],
  490. "createSql": "CREATE INDEX IF NOT EXISTS `index_book_sources_bookSourceUrl` ON `${TABLE_NAME}` (`bookSourceUrl`)"
  491. }
  492. ]
  493. },
  494. {
  495. "tableName": "chapters",
  496. "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 )",
  497. "fields": [
  498. {
  499. "fieldPath": "url",
  500. "columnName": "url",
  501. "affinity": "TEXT",
  502. "notNull": true
  503. },
  504. {
  505. "fieldPath": "title",
  506. "columnName": "title",
  507. "affinity": "TEXT",
  508. "notNull": true
  509. },
  510. {
  511. "fieldPath": "isVolume",
  512. "columnName": "isVolume",
  513. "affinity": "INTEGER",
  514. "notNull": true
  515. },
  516. {
  517. "fieldPath": "baseUrl",
  518. "columnName": "baseUrl",
  519. "affinity": "TEXT",
  520. "notNull": true
  521. },
  522. {
  523. "fieldPath": "bookUrl",
  524. "columnName": "bookUrl",
  525. "affinity": "TEXT",
  526. "notNull": true
  527. },
  528. {
  529. "fieldPath": "index",
  530. "columnName": "index",
  531. "affinity": "INTEGER",
  532. "notNull": true
  533. },
  534. {
  535. "fieldPath": "isVip",
  536. "columnName": "isVip",
  537. "affinity": "INTEGER",
  538. "notNull": true
  539. },
  540. {
  541. "fieldPath": "isPay",
  542. "columnName": "isPay",
  543. "affinity": "INTEGER",
  544. "notNull": true
  545. },
  546. {
  547. "fieldPath": "resourceUrl",
  548. "columnName": "resourceUrl",
  549. "affinity": "TEXT"
  550. },
  551. {
  552. "fieldPath": "tag",
  553. "columnName": "tag",
  554. "affinity": "TEXT"
  555. },
  556. {
  557. "fieldPath": "wordCount",
  558. "columnName": "wordCount",
  559. "affinity": "TEXT"
  560. },
  561. {
  562. "fieldPath": "start",
  563. "columnName": "start",
  564. "affinity": "INTEGER"
  565. },
  566. {
  567. "fieldPath": "end",
  568. "columnName": "end",
  569. "affinity": "INTEGER"
  570. },
  571. {
  572. "fieldPath": "startFragmentId",
  573. "columnName": "startFragmentId",
  574. "affinity": "TEXT"
  575. },
  576. {
  577. "fieldPath": "endFragmentId",
  578. "columnName": "endFragmentId",
  579. "affinity": "TEXT"
  580. },
  581. {
  582. "fieldPath": "variable",
  583. "columnName": "variable",
  584. "affinity": "TEXT"
  585. },
  586. {
  587. "fieldPath": "reviewImg",
  588. "columnName": "reviewImg",
  589. "affinity": "TEXT"
  590. }
  591. ],
  592. "primaryKey": {
  593. "autoGenerate": false,
  594. "columnNames": [
  595. "url",
  596. "bookUrl"
  597. ]
  598. },
  599. "indices": [
  600. {
  601. "name": "index_chapters_bookUrl",
  602. "unique": false,
  603. "columnNames": [
  604. "bookUrl"
  605. ],
  606. "orders": [],
  607. "createSql": "CREATE INDEX IF NOT EXISTS `index_chapters_bookUrl` ON `${TABLE_NAME}` (`bookUrl`)"
  608. },
  609. {
  610. "name": "index_chapters_bookUrl_index",
  611. "unique": true,
  612. "columnNames": [
  613. "bookUrl",
  614. "index"
  615. ],
  616. "orders": [],
  617. "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_chapters_bookUrl_index` ON `${TABLE_NAME}` (`bookUrl`, `index`)"
  618. }
  619. ],
  620. "foreignKeys": [
  621. {
  622. "table": "books",
  623. "onDelete": "CASCADE",
  624. "onUpdate": "NO ACTION",
  625. "columns": [
  626. "bookUrl"
  627. ],
  628. "referencedColumns": [
  629. "bookUrl"
  630. ]
  631. }
  632. ]
  633. },
  634. {
  635. "tableName": "replace_rules",
  636. "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)",
  637. "fields": [
  638. {
  639. "fieldPath": "id",
  640. "columnName": "id",
  641. "affinity": "INTEGER",
  642. "notNull": true
  643. },
  644. {
  645. "fieldPath": "name",
  646. "columnName": "name",
  647. "affinity": "TEXT",
  648. "notNull": true,
  649. "defaultValue": "''"
  650. },
  651. {
  652. "fieldPath": "group",
  653. "columnName": "group",
  654. "affinity": "TEXT"
  655. },
  656. {
  657. "fieldPath": "pattern",
  658. "columnName": "pattern",
  659. "affinity": "TEXT",
  660. "notNull": true,
  661. "defaultValue": "''"
  662. },
  663. {
  664. "fieldPath": "replacement",
  665. "columnName": "replacement",
  666. "affinity": "TEXT",
  667. "notNull": true,
  668. "defaultValue": "''"
  669. },
  670. {
  671. "fieldPath": "scope",
  672. "columnName": "scope",
  673. "affinity": "TEXT"
  674. },
  675. {
  676. "fieldPath": "scopeTitle",
  677. "columnName": "scopeTitle",
  678. "affinity": "INTEGER",
  679. "notNull": true,
  680. "defaultValue": "0"
  681. },
  682. {
  683. "fieldPath": "scopeContent",
  684. "columnName": "scopeContent",
  685. "affinity": "INTEGER",
  686. "notNull": true,
  687. "defaultValue": "1"
  688. },
  689. {
  690. "fieldPath": "excludeScope",
  691. "columnName": "excludeScope",
  692. "affinity": "TEXT"
  693. },
  694. {
  695. "fieldPath": "isEnabled",
  696. "columnName": "isEnabled",
  697. "affinity": "INTEGER",
  698. "notNull": true,
  699. "defaultValue": "1"
  700. },
  701. {
  702. "fieldPath": "isRegex",
  703. "columnName": "isRegex",
  704. "affinity": "INTEGER",
  705. "notNull": true,
  706. "defaultValue": "1"
  707. },
  708. {
  709. "fieldPath": "timeoutMillisecond",
  710. "columnName": "timeoutMillisecond",
  711. "affinity": "INTEGER",
  712. "notNull": true,
  713. "defaultValue": "3000"
  714. },
  715. {
  716. "fieldPath": "order",
  717. "columnName": "sortOrder",
  718. "affinity": "INTEGER",
  719. "notNull": true,
  720. "defaultValue": "0"
  721. }
  722. ],
  723. "primaryKey": {
  724. "autoGenerate": true,
  725. "columnNames": [
  726. "id"
  727. ]
  728. },
  729. "indices": [
  730. {
  731. "name": "index_replace_rules_id",
  732. "unique": false,
  733. "columnNames": [
  734. "id"
  735. ],
  736. "orders": [],
  737. "createSql": "CREATE INDEX IF NOT EXISTS `index_replace_rules_id` ON `${TABLE_NAME}` (`id`)"
  738. }
  739. ]
  740. },
  741. {
  742. "tableName": "searchBooks",
  743. "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 )",
  744. "fields": [
  745. {
  746. "fieldPath": "bookUrl",
  747. "columnName": "bookUrl",
  748. "affinity": "TEXT",
  749. "notNull": true
  750. },
  751. {
  752. "fieldPath": "origin",
  753. "columnName": "origin",
  754. "affinity": "TEXT",
  755. "notNull": true
  756. },
  757. {
  758. "fieldPath": "originName",
  759. "columnName": "originName",
  760. "affinity": "TEXT",
  761. "notNull": true
  762. },
  763. {
  764. "fieldPath": "type",
  765. "columnName": "type",
  766. "affinity": "INTEGER",
  767. "notNull": true
  768. },
  769. {
  770. "fieldPath": "name",
  771. "columnName": "name",
  772. "affinity": "TEXT",
  773. "notNull": true
  774. },
  775. {
  776. "fieldPath": "author",
  777. "columnName": "author",
  778. "affinity": "TEXT",
  779. "notNull": true
  780. },
  781. {
  782. "fieldPath": "kind",
  783. "columnName": "kind",
  784. "affinity": "TEXT"
  785. },
  786. {
  787. "fieldPath": "coverUrl",
  788. "columnName": "coverUrl",
  789. "affinity": "TEXT"
  790. },
  791. {
  792. "fieldPath": "intro",
  793. "columnName": "intro",
  794. "affinity": "TEXT"
  795. },
  796. {
  797. "fieldPath": "wordCount",
  798. "columnName": "wordCount",
  799. "affinity": "TEXT"
  800. },
  801. {
  802. "fieldPath": "latestChapterTitle",
  803. "columnName": "latestChapterTitle",
  804. "affinity": "TEXT"
  805. },
  806. {
  807. "fieldPath": "tocUrl",
  808. "columnName": "tocUrl",
  809. "affinity": "TEXT",
  810. "notNull": true
  811. },
  812. {
  813. "fieldPath": "time",
  814. "columnName": "time",
  815. "affinity": "INTEGER",
  816. "notNull": true
  817. },
  818. {
  819. "fieldPath": "variable",
  820. "columnName": "variable",
  821. "affinity": "TEXT"
  822. },
  823. {
  824. "fieldPath": "originOrder",
  825. "columnName": "originOrder",
  826. "affinity": "INTEGER",
  827. "notNull": true
  828. },
  829. {
  830. "fieldPath": "chapterWordCountText",
  831. "columnName": "chapterWordCountText",
  832. "affinity": "TEXT"
  833. },
  834. {
  835. "fieldPath": "chapterWordCount",
  836. "columnName": "chapterWordCount",
  837. "affinity": "INTEGER",
  838. "notNull": true,
  839. "defaultValue": "-1"
  840. },
  841. {
  842. "fieldPath": "respondTime",
  843. "columnName": "respondTime",
  844. "affinity": "INTEGER",
  845. "notNull": true,
  846. "defaultValue": "-1"
  847. }
  848. ],
  849. "primaryKey": {
  850. "autoGenerate": false,
  851. "columnNames": [
  852. "bookUrl"
  853. ]
  854. },
  855. "indices": [
  856. {
  857. "name": "index_searchBooks_bookUrl",
  858. "unique": true,
  859. "columnNames": [
  860. "bookUrl"
  861. ],
  862. "orders": [],
  863. "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_searchBooks_bookUrl` ON `${TABLE_NAME}` (`bookUrl`)"
  864. },
  865. {
  866. "name": "index_searchBooks_origin",
  867. "unique": false,
  868. "columnNames": [
  869. "origin"
  870. ],
  871. "orders": [],
  872. "createSql": "CREATE INDEX IF NOT EXISTS `index_searchBooks_origin` ON `${TABLE_NAME}` (`origin`)"
  873. }
  874. ],
  875. "foreignKeys": [
  876. {
  877. "table": "book_sources",
  878. "onDelete": "CASCADE",
  879. "onUpdate": "NO ACTION",
  880. "columns": [
  881. "origin"
  882. ],
  883. "referencedColumns": [
  884. "bookSourceUrl"
  885. ]
  886. }
  887. ]
  888. },
  889. {
  890. "tableName": "search_keywords",
  891. "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`word` TEXT NOT NULL, `usage` INTEGER NOT NULL, `lastUseTime` INTEGER NOT NULL, PRIMARY KEY(`word`))",
  892. "fields": [
  893. {
  894. "fieldPath": "word",
  895. "columnName": "word",
  896. "affinity": "TEXT",
  897. "notNull": true
  898. },
  899. {
  900. "fieldPath": "usage",
  901. "columnName": "usage",
  902. "affinity": "INTEGER",
  903. "notNull": true
  904. },
  905. {
  906. "fieldPath": "lastUseTime",
  907. "columnName": "lastUseTime",
  908. "affinity": "INTEGER",
  909. "notNull": true
  910. }
  911. ],
  912. "primaryKey": {
  913. "autoGenerate": false,
  914. "columnNames": [
  915. "word"
  916. ]
  917. },
  918. "indices": [
  919. {
  920. "name": "index_search_keywords_word",
  921. "unique": true,
  922. "columnNames": [
  923. "word"
  924. ],
  925. "orders": [],
  926. "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_search_keywords_word` ON `${TABLE_NAME}` (`word`)"
  927. }
  928. ]
  929. },
  930. {
  931. "tableName": "cookies",
  932. "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`url` TEXT NOT NULL, `cookie` TEXT NOT NULL, PRIMARY KEY(`url`))",
  933. "fields": [
  934. {
  935. "fieldPath": "url",
  936. "columnName": "url",
  937. "affinity": "TEXT",
  938. "notNull": true
  939. },
  940. {
  941. "fieldPath": "cookie",
  942. "columnName": "cookie",
  943. "affinity": "TEXT",
  944. "notNull": true
  945. }
  946. ],
  947. "primaryKey": {
  948. "autoGenerate": false,
  949. "columnNames": [
  950. "url"
  951. ]
  952. },
  953. "indices": [
  954. {
  955. "name": "index_cookies_url",
  956. "unique": true,
  957. "columnNames": [
  958. "url"
  959. ],
  960. "orders": [],
  961. "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_cookies_url` ON `${TABLE_NAME}` (`url`)"
  962. }
  963. ]
  964. },
  965. {
  966. "tableName": "rssSources",
  967. "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`))",
  968. "fields": [
  969. {
  970. "fieldPath": "sourceUrl",
  971. "columnName": "sourceUrl",
  972. "affinity": "TEXT",
  973. "notNull": true
  974. },
  975. {
  976. "fieldPath": "sourceName",
  977. "columnName": "sourceName",
  978. "affinity": "TEXT",
  979. "notNull": true
  980. },
  981. {
  982. "fieldPath": "sourceIcon",
  983. "columnName": "sourceIcon",
  984. "affinity": "TEXT",
  985. "notNull": true
  986. },
  987. {
  988. "fieldPath": "sourceGroup",
  989. "columnName": "sourceGroup",
  990. "affinity": "TEXT"
  991. },
  992. {
  993. "fieldPath": "sourceComment",
  994. "columnName": "sourceComment",
  995. "affinity": "TEXT"
  996. },
  997. {
  998. "fieldPath": "enabled",
  999. "columnName": "enabled",
  1000. "affinity": "INTEGER",
  1001. "notNull": true
  1002. },
  1003. {
  1004. "fieldPath": "variableComment",
  1005. "columnName": "variableComment",
  1006. "affinity": "TEXT"
  1007. },
  1008. {
  1009. "fieldPath": "jsLib",
  1010. "columnName": "jsLib",
  1011. "affinity": "TEXT"
  1012. },
  1013. {
  1014. "fieldPath": "enabledCookieJar",
  1015. "columnName": "enabledCookieJar",
  1016. "affinity": "INTEGER",
  1017. "defaultValue": "0"
  1018. },
  1019. {
  1020. "fieldPath": "concurrentRate",
  1021. "columnName": "concurrentRate",
  1022. "affinity": "TEXT"
  1023. },
  1024. {
  1025. "fieldPath": "header",
  1026. "columnName": "header",
  1027. "affinity": "TEXT"
  1028. },
  1029. {
  1030. "fieldPath": "loginUrl",
  1031. "columnName": "loginUrl",
  1032. "affinity": "TEXT"
  1033. },
  1034. {
  1035. "fieldPath": "loginUi",
  1036. "columnName": "loginUi",
  1037. "affinity": "TEXT"
  1038. },
  1039. {
  1040. "fieldPath": "loginCheckJs",
  1041. "columnName": "loginCheckJs",
  1042. "affinity": "TEXT"
  1043. },
  1044. {
  1045. "fieldPath": "coverDecodeJs",
  1046. "columnName": "coverDecodeJs",
  1047. "affinity": "TEXT"
  1048. },
  1049. {
  1050. "fieldPath": "sortUrl",
  1051. "columnName": "sortUrl",
  1052. "affinity": "TEXT"
  1053. },
  1054. {
  1055. "fieldPath": "singleUrl",
  1056. "columnName": "singleUrl",
  1057. "affinity": "INTEGER",
  1058. "notNull": true
  1059. },
  1060. {
  1061. "fieldPath": "articleStyle",
  1062. "columnName": "articleStyle",
  1063. "affinity": "INTEGER",
  1064. "notNull": true,
  1065. "defaultValue": "0"
  1066. },
  1067. {
  1068. "fieldPath": "ruleArticles",
  1069. "columnName": "ruleArticles",
  1070. "affinity": "TEXT"
  1071. },
  1072. {
  1073. "fieldPath": "ruleNextPage",
  1074. "columnName": "ruleNextPage",
  1075. "affinity": "TEXT"
  1076. },
  1077. {
  1078. "fieldPath": "ruleTitle",
  1079. "columnName": "ruleTitle",
  1080. "affinity": "TEXT"
  1081. },
  1082. {
  1083. "fieldPath": "rulePubDate",
  1084. "columnName": "rulePubDate",
  1085. "affinity": "TEXT"
  1086. },
  1087. {
  1088. "fieldPath": "ruleDescription",
  1089. "columnName": "ruleDescription",
  1090. "affinity": "TEXT"
  1091. },
  1092. {
  1093. "fieldPath": "ruleImage",
  1094. "columnName": "ruleImage",
  1095. "affinity": "TEXT"
  1096. },
  1097. {
  1098. "fieldPath": "ruleLink",
  1099. "columnName": "ruleLink",
  1100. "affinity": "TEXT"
  1101. },
  1102. {
  1103. "fieldPath": "ruleContent",
  1104. "columnName": "ruleContent",
  1105. "affinity": "TEXT"
  1106. },
  1107. {
  1108. "fieldPath": "contentWhitelist",
  1109. "columnName": "contentWhitelist",
  1110. "affinity": "TEXT"
  1111. },
  1112. {
  1113. "fieldPath": "contentBlacklist",
  1114. "columnName": "contentBlacklist",
  1115. "affinity": "TEXT"
  1116. },
  1117. {
  1118. "fieldPath": "shouldOverrideUrlLoading",
  1119. "columnName": "shouldOverrideUrlLoading",
  1120. "affinity": "TEXT"
  1121. },
  1122. {
  1123. "fieldPath": "style",
  1124. "columnName": "style",
  1125. "affinity": "TEXT"
  1126. },
  1127. {
  1128. "fieldPath": "enableJs",
  1129. "columnName": "enableJs",
  1130. "affinity": "INTEGER",
  1131. "notNull": true,
  1132. "defaultValue": "1"
  1133. },
  1134. {
  1135. "fieldPath": "loadWithBaseUrl",
  1136. "columnName": "loadWithBaseUrl",
  1137. "affinity": "INTEGER",
  1138. "notNull": true,
  1139. "defaultValue": "1"
  1140. },
  1141. {
  1142. "fieldPath": "injectJs",
  1143. "columnName": "injectJs",
  1144. "affinity": "TEXT"
  1145. },
  1146. {
  1147. "fieldPath": "preloadJs",
  1148. "columnName": "preloadJs",
  1149. "affinity": "TEXT"
  1150. },
  1151. {
  1152. "fieldPath": "startHtml",
  1153. "columnName": "startHtml",
  1154. "affinity": "TEXT"
  1155. },
  1156. {
  1157. "fieldPath": "startStyle",
  1158. "columnName": "startStyle",
  1159. "affinity": "TEXT"
  1160. },
  1161. {
  1162. "fieldPath": "startJs",
  1163. "columnName": "startJs",
  1164. "affinity": "TEXT"
  1165. },
  1166. {
  1167. "fieldPath": "showWebLog",
  1168. "columnName": "showWebLog",
  1169. "affinity": "INTEGER",
  1170. "notNull": true,
  1171. "defaultValue": "0"
  1172. },
  1173. {
  1174. "fieldPath": "lastUpdateTime",
  1175. "columnName": "lastUpdateTime",
  1176. "affinity": "INTEGER",
  1177. "notNull": true,
  1178. "defaultValue": "0"
  1179. },
  1180. {
  1181. "fieldPath": "customOrder",
  1182. "columnName": "customOrder",
  1183. "affinity": "INTEGER",
  1184. "notNull": true,
  1185. "defaultValue": "0"
  1186. },
  1187. {
  1188. "fieldPath": "type",
  1189. "columnName": "type",
  1190. "affinity": "INTEGER",
  1191. "notNull": true,
  1192. "defaultValue": "0"
  1193. },
  1194. {
  1195. "fieldPath": "preload",
  1196. "columnName": "preload",
  1197. "affinity": "INTEGER",
  1198. "notNull": true,
  1199. "defaultValue": "0"
  1200. },
  1201. {
  1202. "fieldPath": "cacheFirst",
  1203. "columnName": "cacheFirst",
  1204. "affinity": "INTEGER",
  1205. "notNull": true,
  1206. "defaultValue": "0"
  1207. },
  1208. {
  1209. "fieldPath": "searchUrl",
  1210. "columnName": "searchUrl",
  1211. "affinity": "TEXT"
  1212. },
  1213. {
  1214. "fieldPath": "redirectPolicy",
  1215. "columnName": "redirectPolicy",
  1216. "affinity": "TEXT",
  1217. "notNull": true,
  1218. "defaultValue": "'ASK_CROSS_ORIGIN'"
  1219. }
  1220. ],
  1221. "primaryKey": {
  1222. "autoGenerate": false,
  1223. "columnNames": [
  1224. "sourceUrl"
  1225. ]
  1226. },
  1227. "indices": [
  1228. {
  1229. "name": "index_rssSources_sourceUrl",
  1230. "unique": false,
  1231. "columnNames": [
  1232. "sourceUrl"
  1233. ],
  1234. "orders": [],
  1235. "createSql": "CREATE INDEX IF NOT EXISTS `index_rssSources_sourceUrl` ON `${TABLE_NAME}` (`sourceUrl`)"
  1236. }
  1237. ]
  1238. },
  1239. {
  1240. "tableName": "bookmarks",
  1241. "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`))",
  1242. "fields": [
  1243. {
  1244. "fieldPath": "time",
  1245. "columnName": "time",
  1246. "affinity": "INTEGER",
  1247. "notNull": true
  1248. },
  1249. {
  1250. "fieldPath": "bookName",
  1251. "columnName": "bookName",
  1252. "affinity": "TEXT",
  1253. "notNull": true
  1254. },
  1255. {
  1256. "fieldPath": "bookAuthor",
  1257. "columnName": "bookAuthor",
  1258. "affinity": "TEXT",
  1259. "notNull": true,
  1260. "defaultValue": "''"
  1261. },
  1262. {
  1263. "fieldPath": "chapterIndex",
  1264. "columnName": "chapterIndex",
  1265. "affinity": "INTEGER",
  1266. "notNull": true
  1267. },
  1268. {
  1269. "fieldPath": "chapterPos",
  1270. "columnName": "chapterPos",
  1271. "affinity": "INTEGER",
  1272. "notNull": true
  1273. },
  1274. {
  1275. "fieldPath": "chapterName",
  1276. "columnName": "chapterName",
  1277. "affinity": "TEXT",
  1278. "notNull": true
  1279. },
  1280. {
  1281. "fieldPath": "bookText",
  1282. "columnName": "bookText",
  1283. "affinity": "TEXT",
  1284. "notNull": true
  1285. },
  1286. {
  1287. "fieldPath": "content",
  1288. "columnName": "content",
  1289. "affinity": "TEXT",
  1290. "notNull": true
  1291. }
  1292. ],
  1293. "primaryKey": {
  1294. "autoGenerate": false,
  1295. "columnNames": [
  1296. "time"
  1297. ]
  1298. },
  1299. "indices": [
  1300. {
  1301. "name": "index_bookmarks_bookName_bookAuthor",
  1302. "unique": false,
  1303. "columnNames": [
  1304. "bookName",
  1305. "bookAuthor"
  1306. ],
  1307. "orders": [],
  1308. "createSql": "CREATE INDEX IF NOT EXISTS `index_bookmarks_bookName_bookAuthor` ON `${TABLE_NAME}` (`bookName`, `bookAuthor`)"
  1309. }
  1310. ]
  1311. },
  1312. {
  1313. "tableName": "rssArticles",
  1314. "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`))",
  1315. "fields": [
  1316. {
  1317. "fieldPath": "origin",
  1318. "columnName": "origin",
  1319. "affinity": "TEXT",
  1320. "notNull": true
  1321. },
  1322. {
  1323. "fieldPath": "sort",
  1324. "columnName": "sort",
  1325. "affinity": "TEXT",
  1326. "notNull": true
  1327. },
  1328. {
  1329. "fieldPath": "title",
  1330. "columnName": "title",
  1331. "affinity": "TEXT",
  1332. "notNull": true
  1333. },
  1334. {
  1335. "fieldPath": "order",
  1336. "columnName": "order",
  1337. "affinity": "INTEGER",
  1338. "notNull": true
  1339. },
  1340. {
  1341. "fieldPath": "link",
  1342. "columnName": "link",
  1343. "affinity": "TEXT",
  1344. "notNull": true
  1345. },
  1346. {
  1347. "fieldPath": "pubDate",
  1348. "columnName": "pubDate",
  1349. "affinity": "TEXT"
  1350. },
  1351. {
  1352. "fieldPath": "description",
  1353. "columnName": "description",
  1354. "affinity": "TEXT"
  1355. },
  1356. {
  1357. "fieldPath": "content",
  1358. "columnName": "content",
  1359. "affinity": "TEXT"
  1360. },
  1361. {
  1362. "fieldPath": "image",
  1363. "columnName": "image",
  1364. "affinity": "TEXT"
  1365. },
  1366. {
  1367. "fieldPath": "group",
  1368. "columnName": "group",
  1369. "affinity": "TEXT",
  1370. "notNull": true,
  1371. "defaultValue": "'默认分组'"
  1372. },
  1373. {
  1374. "fieldPath": "read",
  1375. "columnName": "read",
  1376. "affinity": "INTEGER",
  1377. "notNull": true
  1378. },
  1379. {
  1380. "fieldPath": "variable",
  1381. "columnName": "variable",
  1382. "affinity": "TEXT"
  1383. },
  1384. {
  1385. "fieldPath": "type",
  1386. "columnName": "type",
  1387. "affinity": "INTEGER",
  1388. "notNull": true,
  1389. "defaultValue": "0"
  1390. },
  1391. {
  1392. "fieldPath": "durPos",
  1393. "columnName": "durPos",
  1394. "affinity": "INTEGER",
  1395. "notNull": true,
  1396. "defaultValue": "0"
  1397. }
  1398. ],
  1399. "primaryKey": {
  1400. "autoGenerate": false,
  1401. "columnNames": [
  1402. "origin",
  1403. "link",
  1404. "sort"
  1405. ]
  1406. }
  1407. },
  1408. {
  1409. "tableName": "rssReadRecords",
  1410. "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`))",
  1411. "fields": [
  1412. {
  1413. "fieldPath": "record",
  1414. "columnName": "record",
  1415. "affinity": "TEXT",
  1416. "notNull": true
  1417. },
  1418. {
  1419. "fieldPath": "title",
  1420. "columnName": "title",
  1421. "affinity": "TEXT"
  1422. },
  1423. {
  1424. "fieldPath": "readTime",
  1425. "columnName": "readTime",
  1426. "affinity": "INTEGER"
  1427. },
  1428. {
  1429. "fieldPath": "read",
  1430. "columnName": "read",
  1431. "affinity": "INTEGER",
  1432. "notNull": true
  1433. },
  1434. {
  1435. "fieldPath": "origin",
  1436. "columnName": "origin",
  1437. "affinity": "TEXT",
  1438. "notNull": true,
  1439. "defaultValue": "''"
  1440. },
  1441. {
  1442. "fieldPath": "sort",
  1443. "columnName": "sort",
  1444. "affinity": "TEXT",
  1445. "notNull": true,
  1446. "defaultValue": "''"
  1447. },
  1448. {
  1449. "fieldPath": "image",
  1450. "columnName": "image",
  1451. "affinity": "TEXT"
  1452. },
  1453. {
  1454. "fieldPath": "type",
  1455. "columnName": "type",
  1456. "affinity": "INTEGER",
  1457. "notNull": true,
  1458. "defaultValue": "0"
  1459. },
  1460. {
  1461. "fieldPath": "durPos",
  1462. "columnName": "durPos",
  1463. "affinity": "INTEGER",
  1464. "notNull": true,
  1465. "defaultValue": "0"
  1466. },
  1467. {
  1468. "fieldPath": "pubDate",
  1469. "columnName": "pubDate",
  1470. "affinity": "TEXT"
  1471. }
  1472. ],
  1473. "primaryKey": {
  1474. "autoGenerate": false,
  1475. "columnNames": [
  1476. "record"
  1477. ]
  1478. },
  1479. "indices": [
  1480. {
  1481. "name": "index_rssReadRecords_origin",
  1482. "unique": false,
  1483. "columnNames": [
  1484. "origin"
  1485. ],
  1486. "orders": [],
  1487. "createSql": "CREATE INDEX IF NOT EXISTS `index_rssReadRecords_origin` ON `${TABLE_NAME}` (`origin`)"
  1488. }
  1489. ]
  1490. },
  1491. {
  1492. "tableName": "readRecordDetail",
  1493. "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`))",
  1494. "fields": [
  1495. {
  1496. "fieldPath": "deviceId",
  1497. "columnName": "deviceId",
  1498. "affinity": "TEXT",
  1499. "notNull": true
  1500. },
  1501. {
  1502. "fieldPath": "bookName",
  1503. "columnName": "bookName",
  1504. "affinity": "TEXT",
  1505. "notNull": true
  1506. },
  1507. {
  1508. "fieldPath": "bookAuthor",
  1509. "columnName": "bookAuthor",
  1510. "affinity": "TEXT",
  1511. "notNull": true,
  1512. "defaultValue": "''"
  1513. },
  1514. {
  1515. "fieldPath": "date",
  1516. "columnName": "date",
  1517. "affinity": "TEXT",
  1518. "notNull": true
  1519. },
  1520. {
  1521. "fieldPath": "readTime",
  1522. "columnName": "readTime",
  1523. "affinity": "INTEGER",
  1524. "notNull": true,
  1525. "defaultValue": "0"
  1526. },
  1527. {
  1528. "fieldPath": "readWords",
  1529. "columnName": "readWords",
  1530. "affinity": "INTEGER",
  1531. "notNull": true,
  1532. "defaultValue": "0"
  1533. },
  1534. {
  1535. "fieldPath": "firstReadTime",
  1536. "columnName": "firstReadTime",
  1537. "affinity": "INTEGER",
  1538. "notNull": true,
  1539. "defaultValue": "0"
  1540. },
  1541. {
  1542. "fieldPath": "lastReadTime",
  1543. "columnName": "lastReadTime",
  1544. "affinity": "INTEGER",
  1545. "notNull": true,
  1546. "defaultValue": "0"
  1547. }
  1548. ],
  1549. "primaryKey": {
  1550. "autoGenerate": false,
  1551. "columnNames": [
  1552. "deviceId",
  1553. "bookName",
  1554. "bookAuthor",
  1555. "date"
  1556. ]
  1557. }
  1558. },
  1559. {
  1560. "tableName": "readRecordSession",
  1561. "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)",
  1562. "fields": [
  1563. {
  1564. "fieldPath": "id",
  1565. "columnName": "id",
  1566. "affinity": "INTEGER",
  1567. "notNull": true
  1568. },
  1569. {
  1570. "fieldPath": "deviceId",
  1571. "columnName": "deviceId",
  1572. "affinity": "TEXT",
  1573. "notNull": true
  1574. },
  1575. {
  1576. "fieldPath": "bookName",
  1577. "columnName": "bookName",
  1578. "affinity": "TEXT",
  1579. "notNull": true
  1580. },
  1581. {
  1582. "fieldPath": "bookAuthor",
  1583. "columnName": "bookAuthor",
  1584. "affinity": "TEXT",
  1585. "notNull": true,
  1586. "defaultValue": "''"
  1587. },
  1588. {
  1589. "fieldPath": "startTime",
  1590. "columnName": "startTime",
  1591. "affinity": "INTEGER",
  1592. "notNull": true
  1593. },
  1594. {
  1595. "fieldPath": "endTime",
  1596. "columnName": "endTime",
  1597. "affinity": "INTEGER",
  1598. "notNull": true
  1599. },
  1600. {
  1601. "fieldPath": "words",
  1602. "columnName": "words",
  1603. "affinity": "INTEGER",
  1604. "notNull": true
  1605. }
  1606. ],
  1607. "primaryKey": {
  1608. "autoGenerate": true,
  1609. "columnNames": [
  1610. "id"
  1611. ]
  1612. }
  1613. },
  1614. {
  1615. "tableName": "rssStars",
  1616. "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`))",
  1617. "fields": [
  1618. {
  1619. "fieldPath": "origin",
  1620. "columnName": "origin",
  1621. "affinity": "TEXT",
  1622. "notNull": true
  1623. },
  1624. {
  1625. "fieldPath": "sort",
  1626. "columnName": "sort",
  1627. "affinity": "TEXT",
  1628. "notNull": true
  1629. },
  1630. {
  1631. "fieldPath": "title",
  1632. "columnName": "title",
  1633. "affinity": "TEXT",
  1634. "notNull": true
  1635. },
  1636. {
  1637. "fieldPath": "starTime",
  1638. "columnName": "starTime",
  1639. "affinity": "INTEGER",
  1640. "notNull": true
  1641. },
  1642. {
  1643. "fieldPath": "link",
  1644. "columnName": "link",
  1645. "affinity": "TEXT",
  1646. "notNull": true
  1647. },
  1648. {
  1649. "fieldPath": "pubDate",
  1650. "columnName": "pubDate",
  1651. "affinity": "TEXT"
  1652. },
  1653. {
  1654. "fieldPath": "description",
  1655. "columnName": "description",
  1656. "affinity": "TEXT"
  1657. },
  1658. {
  1659. "fieldPath": "content",
  1660. "columnName": "content",
  1661. "affinity": "TEXT"
  1662. },
  1663. {
  1664. "fieldPath": "image",
  1665. "columnName": "image",
  1666. "affinity": "TEXT"
  1667. },
  1668. {
  1669. "fieldPath": "group",
  1670. "columnName": "group",
  1671. "affinity": "TEXT",
  1672. "notNull": true,
  1673. "defaultValue": "'默认分组'"
  1674. },
  1675. {
  1676. "fieldPath": "variable",
  1677. "columnName": "variable",
  1678. "affinity": "TEXT"
  1679. },
  1680. {
  1681. "fieldPath": "type",
  1682. "columnName": "type",
  1683. "affinity": "INTEGER",
  1684. "notNull": true,
  1685. "defaultValue": "0"
  1686. },
  1687. {
  1688. "fieldPath": "durPos",
  1689. "columnName": "durPos",
  1690. "affinity": "INTEGER",
  1691. "notNull": true,
  1692. "defaultValue": "0"
  1693. }
  1694. ],
  1695. "primaryKey": {
  1696. "autoGenerate": false,
  1697. "columnNames": [
  1698. "origin",
  1699. "link"
  1700. ]
  1701. }
  1702. },
  1703. {
  1704. "tableName": "txtTocRules",
  1705. "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`))",
  1706. "fields": [
  1707. {
  1708. "fieldPath": "id",
  1709. "columnName": "id",
  1710. "affinity": "INTEGER",
  1711. "notNull": true
  1712. },
  1713. {
  1714. "fieldPath": "name",
  1715. "columnName": "name",
  1716. "affinity": "TEXT",
  1717. "notNull": true
  1718. },
  1719. {
  1720. "fieldPath": "rule",
  1721. "columnName": "rule",
  1722. "affinity": "TEXT",
  1723. "notNull": true
  1724. },
  1725. {
  1726. "fieldPath": "example",
  1727. "columnName": "example",
  1728. "affinity": "TEXT"
  1729. },
  1730. {
  1731. "fieldPath": "serialNumber",
  1732. "columnName": "serialNumber",
  1733. "affinity": "INTEGER",
  1734. "notNull": true
  1735. },
  1736. {
  1737. "fieldPath": "enable",
  1738. "columnName": "enable",
  1739. "affinity": "INTEGER",
  1740. "notNull": true
  1741. }
  1742. ],
  1743. "primaryKey": {
  1744. "autoGenerate": false,
  1745. "columnNames": [
  1746. "id"
  1747. ]
  1748. }
  1749. },
  1750. {
  1751. "tableName": "readRecord",
  1752. "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`))",
  1753. "fields": [
  1754. {
  1755. "fieldPath": "deviceId",
  1756. "columnName": "deviceId",
  1757. "affinity": "TEXT",
  1758. "notNull": true
  1759. },
  1760. {
  1761. "fieldPath": "bookName",
  1762. "columnName": "bookName",
  1763. "affinity": "TEXT",
  1764. "notNull": true
  1765. },
  1766. {
  1767. "fieldPath": "bookAuthor",
  1768. "columnName": "bookAuthor",
  1769. "affinity": "TEXT",
  1770. "notNull": true,
  1771. "defaultValue": "''"
  1772. },
  1773. {
  1774. "fieldPath": "readTime",
  1775. "columnName": "readTime",
  1776. "affinity": "INTEGER",
  1777. "notNull": true,
  1778. "defaultValue": "0"
  1779. },
  1780. {
  1781. "fieldPath": "lastRead",
  1782. "columnName": "lastRead",
  1783. "affinity": "INTEGER",
  1784. "notNull": true,
  1785. "defaultValue": "0"
  1786. }
  1787. ],
  1788. "primaryKey": {
  1789. "autoGenerate": false,
  1790. "columnNames": [
  1791. "deviceId",
  1792. "bookName",
  1793. "bookAuthor"
  1794. ]
  1795. }
  1796. },
  1797. {
  1798. "tableName": "httpTTS",
  1799. "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`))",
  1800. "fields": [
  1801. {
  1802. "fieldPath": "id",
  1803. "columnName": "id",
  1804. "affinity": "INTEGER",
  1805. "notNull": true
  1806. },
  1807. {
  1808. "fieldPath": "name",
  1809. "columnName": "name",
  1810. "affinity": "TEXT",
  1811. "notNull": true
  1812. },
  1813. {
  1814. "fieldPath": "url",
  1815. "columnName": "url",
  1816. "affinity": "TEXT",
  1817. "notNull": true
  1818. },
  1819. {
  1820. "fieldPath": "contentType",
  1821. "columnName": "contentType",
  1822. "affinity": "TEXT"
  1823. },
  1824. {
  1825. "fieldPath": "concurrentRate",
  1826. "columnName": "concurrentRate",
  1827. "affinity": "TEXT",
  1828. "defaultValue": "'0'"
  1829. },
  1830. {
  1831. "fieldPath": "loginUrl",
  1832. "columnName": "loginUrl",
  1833. "affinity": "TEXT"
  1834. },
  1835. {
  1836. "fieldPath": "loginUi",
  1837. "columnName": "loginUi",
  1838. "affinity": "TEXT"
  1839. },
  1840. {
  1841. "fieldPath": "header",
  1842. "columnName": "header",
  1843. "affinity": "TEXT"
  1844. },
  1845. {
  1846. "fieldPath": "jsLib",
  1847. "columnName": "jsLib",
  1848. "affinity": "TEXT"
  1849. },
  1850. {
  1851. "fieldPath": "enabledCookieJar",
  1852. "columnName": "enabledCookieJar",
  1853. "affinity": "INTEGER",
  1854. "defaultValue": "0"
  1855. },
  1856. {
  1857. "fieldPath": "loginCheckJs",
  1858. "columnName": "loginCheckJs",
  1859. "affinity": "TEXT"
  1860. },
  1861. {
  1862. "fieldPath": "lastUpdateTime",
  1863. "columnName": "lastUpdateTime",
  1864. "affinity": "INTEGER",
  1865. "notNull": true,
  1866. "defaultValue": "0"
  1867. }
  1868. ],
  1869. "primaryKey": {
  1870. "autoGenerate": false,
  1871. "columnNames": [
  1872. "id"
  1873. ]
  1874. }
  1875. },
  1876. {
  1877. "tableName": "caches",
  1878. "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`key` TEXT NOT NULL, `value` TEXT, `deadline` INTEGER NOT NULL, PRIMARY KEY(`key`))",
  1879. "fields": [
  1880. {
  1881. "fieldPath": "key",
  1882. "columnName": "key",
  1883. "affinity": "TEXT",
  1884. "notNull": true
  1885. },
  1886. {
  1887. "fieldPath": "value",
  1888. "columnName": "value",
  1889. "affinity": "TEXT"
  1890. },
  1891. {
  1892. "fieldPath": "deadline",
  1893. "columnName": "deadline",
  1894. "affinity": "INTEGER",
  1895. "notNull": true
  1896. }
  1897. ],
  1898. "primaryKey": {
  1899. "autoGenerate": false,
  1900. "columnNames": [
  1901. "key"
  1902. ]
  1903. },
  1904. "indices": [
  1905. {
  1906. "name": "index_caches_key",
  1907. "unique": true,
  1908. "columnNames": [
  1909. "key"
  1910. ],
  1911. "orders": [],
  1912. "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_caches_key` ON `${TABLE_NAME}` (`key`)"
  1913. }
  1914. ]
  1915. },
  1916. {
  1917. "tableName": "ruleSubs",
  1918. "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`))",
  1919. "fields": [
  1920. {
  1921. "fieldPath": "id",
  1922. "columnName": "id",
  1923. "affinity": "INTEGER",
  1924. "notNull": true
  1925. },
  1926. {
  1927. "fieldPath": "name",
  1928. "columnName": "name",
  1929. "affinity": "TEXT",
  1930. "notNull": true
  1931. },
  1932. {
  1933. "fieldPath": "url",
  1934. "columnName": "url",
  1935. "affinity": "TEXT",
  1936. "notNull": true
  1937. },
  1938. {
  1939. "fieldPath": "type",
  1940. "columnName": "type",
  1941. "affinity": "INTEGER",
  1942. "notNull": true
  1943. },
  1944. {
  1945. "fieldPath": "customOrder",
  1946. "columnName": "customOrder",
  1947. "affinity": "INTEGER",
  1948. "notNull": true
  1949. },
  1950. {
  1951. "fieldPath": "autoUpdate",
  1952. "columnName": "autoUpdate",
  1953. "affinity": "INTEGER",
  1954. "notNull": true
  1955. },
  1956. {
  1957. "fieldPath": "update",
  1958. "columnName": "update",
  1959. "affinity": "INTEGER",
  1960. "notNull": true
  1961. }
  1962. ],
  1963. "primaryKey": {
  1964. "autoGenerate": false,
  1965. "columnNames": [
  1966. "id"
  1967. ]
  1968. }
  1969. },
  1970. {
  1971. "tableName": "dictRules",
  1972. "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`))",
  1973. "fields": [
  1974. {
  1975. "fieldPath": "name",
  1976. "columnName": "name",
  1977. "affinity": "TEXT",
  1978. "notNull": true
  1979. },
  1980. {
  1981. "fieldPath": "urlRule",
  1982. "columnName": "urlRule",
  1983. "affinity": "TEXT",
  1984. "notNull": true
  1985. },
  1986. {
  1987. "fieldPath": "showRule",
  1988. "columnName": "showRule",
  1989. "affinity": "TEXT",
  1990. "notNull": true
  1991. },
  1992. {
  1993. "fieldPath": "enabled",
  1994. "columnName": "enabled",
  1995. "affinity": "INTEGER",
  1996. "notNull": true,
  1997. "defaultValue": "1"
  1998. },
  1999. {
  2000. "fieldPath": "sortNumber",
  2001. "columnName": "sortNumber",
  2002. "affinity": "INTEGER",
  2003. "notNull": true,
  2004. "defaultValue": "0"
  2005. }
  2006. ],
  2007. "primaryKey": {
  2008. "autoGenerate": false,
  2009. "columnNames": [
  2010. "name"
  2011. ]
  2012. }
  2013. },
  2014. {
  2015. "tableName": "keyboardAssists",
  2016. "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`))",
  2017. "fields": [
  2018. {
  2019. "fieldPath": "type",
  2020. "columnName": "type",
  2021. "affinity": "INTEGER",
  2022. "notNull": true,
  2023. "defaultValue": "0"
  2024. },
  2025. {
  2026. "fieldPath": "key",
  2027. "columnName": "key",
  2028. "affinity": "TEXT",
  2029. "notNull": true,
  2030. "defaultValue": "''"
  2031. },
  2032. {
  2033. "fieldPath": "value",
  2034. "columnName": "value",
  2035. "affinity": "TEXT",
  2036. "notNull": true,
  2037. "defaultValue": "''"
  2038. },
  2039. {
  2040. "fieldPath": "serialNo",
  2041. "columnName": "serialNo",
  2042. "affinity": "INTEGER",
  2043. "notNull": true,
  2044. "defaultValue": "0"
  2045. }
  2046. ],
  2047. "primaryKey": {
  2048. "autoGenerate": false,
  2049. "columnNames": [
  2050. "type",
  2051. "key"
  2052. ]
  2053. }
  2054. },
  2055. {
  2056. "tableName": "servers",
  2057. "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`))",
  2058. "fields": [
  2059. {
  2060. "fieldPath": "id",
  2061. "columnName": "id",
  2062. "affinity": "INTEGER",
  2063. "notNull": true
  2064. },
  2065. {
  2066. "fieldPath": "name",
  2067. "columnName": "name",
  2068. "affinity": "TEXT",
  2069. "notNull": true
  2070. },
  2071. {
  2072. "fieldPath": "type",
  2073. "columnName": "type",
  2074. "affinity": "TEXT",
  2075. "notNull": true
  2076. },
  2077. {
  2078. "fieldPath": "config",
  2079. "columnName": "config",
  2080. "affinity": "TEXT"
  2081. },
  2082. {
  2083. "fieldPath": "sortNumber",
  2084. "columnName": "sortNumber",
  2085. "affinity": "INTEGER",
  2086. "notNull": true
  2087. }
  2088. ],
  2089. "primaryKey": {
  2090. "autoGenerate": false,
  2091. "columnNames": [
  2092. "id"
  2093. ]
  2094. }
  2095. },
  2096. {
  2097. "tableName": "search_content_history",
  2098. "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)",
  2099. "fields": [
  2100. {
  2101. "fieldPath": "id",
  2102. "columnName": "id",
  2103. "affinity": "INTEGER",
  2104. "notNull": true
  2105. },
  2106. {
  2107. "fieldPath": "bookName",
  2108. "columnName": "bookName",
  2109. "affinity": "TEXT",
  2110. "defaultValue": "''"
  2111. },
  2112. {
  2113. "fieldPath": "bookAuthor",
  2114. "columnName": "bookAuthor",
  2115. "affinity": "TEXT",
  2116. "defaultValue": "''"
  2117. },
  2118. {
  2119. "fieldPath": "query",
  2120. "columnName": "query",
  2121. "affinity": "TEXT",
  2122. "notNull": true
  2123. },
  2124. {
  2125. "fieldPath": "time",
  2126. "columnName": "time",
  2127. "affinity": "INTEGER",
  2128. "notNull": true
  2129. }
  2130. ],
  2131. "primaryKey": {
  2132. "autoGenerate": true,
  2133. "columnNames": [
  2134. "id"
  2135. ]
  2136. },
  2137. "indices": [
  2138. {
  2139. "name": "index_search_content_history_bookName_bookAuthor_query",
  2140. "unique": true,
  2141. "columnNames": [
  2142. "bookName",
  2143. "bookAuthor",
  2144. "query"
  2145. ],
  2146. "orders": [],
  2147. "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_search_content_history_bookName_bookAuthor_query` ON `${TABLE_NAME}` (`bookName`, `bookAuthor`, `query`)"
  2148. }
  2149. ]
  2150. }
  2151. ],
  2152. "views": [
  2153. {
  2154. "viewName": "book_sources_part",
  2155. "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"
  2156. }
  2157. ],
  2158. "setupQueries": [
  2159. "CREATE TABLE IF NOT EXISTS room_master_table (id INTEGER PRIMARY KEY,identity_hash TEXT)",
  2160. "INSERT OR REPLACE INTO room_master_table (id,identity_hash) VALUES(42, 'c16fe9293b41f9d7d6771f3b37ec5e4d')"
  2161. ]
  2162. }
  2163. }