86.json 65 KB

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