82.json 62 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046
  1. {
  2. "formatVersion": 1,
  3. "database": {
  4. "version": 82,
  5. "identityHash": "285a81996bc58258f99a2f67fb5cf84e",
  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, `lastUpdateTime` INTEGER NOT NULL DEFAULT 0, `customOrder` INTEGER NOT NULL DEFAULT 0, `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": "lastUpdateTime",
  1139. "columnName": "lastUpdateTime",
  1140. "affinity": "INTEGER",
  1141. "notNull": true,
  1142. "defaultValue": "0"
  1143. },
  1144. {
  1145. "fieldPath": "customOrder",
  1146. "columnName": "customOrder",
  1147. "affinity": "INTEGER",
  1148. "notNull": true,
  1149. "defaultValue": "0"
  1150. },
  1151. {
  1152. "fieldPath": "redirectPolicy",
  1153. "columnName": "redirectPolicy",
  1154. "affinity": "TEXT",
  1155. "notNull": true,
  1156. "defaultValue": "'ASK_CROSS_ORIGIN'"
  1157. }
  1158. ],
  1159. "primaryKey": {
  1160. "autoGenerate": false,
  1161. "columnNames": [
  1162. "sourceUrl"
  1163. ]
  1164. },
  1165. "indices": [
  1166. {
  1167. "name": "index_rssSources_sourceUrl",
  1168. "unique": false,
  1169. "columnNames": [
  1170. "sourceUrl"
  1171. ],
  1172. "orders": [],
  1173. "createSql": "CREATE INDEX IF NOT EXISTS `index_rssSources_sourceUrl` ON `${TABLE_NAME}` (`sourceUrl`)"
  1174. }
  1175. ]
  1176. },
  1177. {
  1178. "tableName": "bookmarks",
  1179. "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`))",
  1180. "fields": [
  1181. {
  1182. "fieldPath": "time",
  1183. "columnName": "time",
  1184. "affinity": "INTEGER",
  1185. "notNull": true
  1186. },
  1187. {
  1188. "fieldPath": "bookName",
  1189. "columnName": "bookName",
  1190. "affinity": "TEXT",
  1191. "notNull": true
  1192. },
  1193. {
  1194. "fieldPath": "bookAuthor",
  1195. "columnName": "bookAuthor",
  1196. "affinity": "TEXT",
  1197. "notNull": true,
  1198. "defaultValue": "''"
  1199. },
  1200. {
  1201. "fieldPath": "chapterIndex",
  1202. "columnName": "chapterIndex",
  1203. "affinity": "INTEGER",
  1204. "notNull": true
  1205. },
  1206. {
  1207. "fieldPath": "chapterPos",
  1208. "columnName": "chapterPos",
  1209. "affinity": "INTEGER",
  1210. "notNull": true
  1211. },
  1212. {
  1213. "fieldPath": "chapterName",
  1214. "columnName": "chapterName",
  1215. "affinity": "TEXT",
  1216. "notNull": true
  1217. },
  1218. {
  1219. "fieldPath": "bookText",
  1220. "columnName": "bookText",
  1221. "affinity": "TEXT",
  1222. "notNull": true
  1223. },
  1224. {
  1225. "fieldPath": "content",
  1226. "columnName": "content",
  1227. "affinity": "TEXT",
  1228. "notNull": true
  1229. }
  1230. ],
  1231. "primaryKey": {
  1232. "autoGenerate": false,
  1233. "columnNames": [
  1234. "time"
  1235. ]
  1236. },
  1237. "indices": [
  1238. {
  1239. "name": "index_bookmarks_bookName_bookAuthor",
  1240. "unique": false,
  1241. "columnNames": [
  1242. "bookName",
  1243. "bookAuthor"
  1244. ],
  1245. "orders": [],
  1246. "createSql": "CREATE INDEX IF NOT EXISTS `index_bookmarks_bookName_bookAuthor` ON `${TABLE_NAME}` (`bookName`, `bookAuthor`)"
  1247. }
  1248. ]
  1249. },
  1250. {
  1251. "tableName": "rssArticles",
  1252. "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`))",
  1253. "fields": [
  1254. {
  1255. "fieldPath": "origin",
  1256. "columnName": "origin",
  1257. "affinity": "TEXT",
  1258. "notNull": true
  1259. },
  1260. {
  1261. "fieldPath": "sort",
  1262. "columnName": "sort",
  1263. "affinity": "TEXT",
  1264. "notNull": true
  1265. },
  1266. {
  1267. "fieldPath": "title",
  1268. "columnName": "title",
  1269. "affinity": "TEXT",
  1270. "notNull": true
  1271. },
  1272. {
  1273. "fieldPath": "order",
  1274. "columnName": "order",
  1275. "affinity": "INTEGER",
  1276. "notNull": true
  1277. },
  1278. {
  1279. "fieldPath": "link",
  1280. "columnName": "link",
  1281. "affinity": "TEXT",
  1282. "notNull": true
  1283. },
  1284. {
  1285. "fieldPath": "pubDate",
  1286. "columnName": "pubDate",
  1287. "affinity": "TEXT"
  1288. },
  1289. {
  1290. "fieldPath": "description",
  1291. "columnName": "description",
  1292. "affinity": "TEXT"
  1293. },
  1294. {
  1295. "fieldPath": "content",
  1296. "columnName": "content",
  1297. "affinity": "TEXT"
  1298. },
  1299. {
  1300. "fieldPath": "image",
  1301. "columnName": "image",
  1302. "affinity": "TEXT"
  1303. },
  1304. {
  1305. "fieldPath": "group",
  1306. "columnName": "group",
  1307. "affinity": "TEXT",
  1308. "notNull": true,
  1309. "defaultValue": "'默认分组'"
  1310. },
  1311. {
  1312. "fieldPath": "read",
  1313. "columnName": "read",
  1314. "affinity": "INTEGER",
  1315. "notNull": true
  1316. },
  1317. {
  1318. "fieldPath": "variable",
  1319. "columnName": "variable",
  1320. "affinity": "TEXT"
  1321. },
  1322. {
  1323. "fieldPath": "type",
  1324. "columnName": "type",
  1325. "affinity": "INTEGER",
  1326. "notNull": true,
  1327. "defaultValue": "0"
  1328. },
  1329. {
  1330. "fieldPath": "durPos",
  1331. "columnName": "durPos",
  1332. "affinity": "INTEGER",
  1333. "notNull": true,
  1334. "defaultValue": "0"
  1335. }
  1336. ],
  1337. "primaryKey": {
  1338. "autoGenerate": false,
  1339. "columnNames": [
  1340. "origin",
  1341. "link",
  1342. "sort"
  1343. ]
  1344. }
  1345. },
  1346. {
  1347. "tableName": "rssReadRecords",
  1348. "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`))",
  1349. "fields": [
  1350. {
  1351. "fieldPath": "record",
  1352. "columnName": "record",
  1353. "affinity": "TEXT",
  1354. "notNull": true
  1355. },
  1356. {
  1357. "fieldPath": "title",
  1358. "columnName": "title",
  1359. "affinity": "TEXT"
  1360. },
  1361. {
  1362. "fieldPath": "readTime",
  1363. "columnName": "readTime",
  1364. "affinity": "INTEGER"
  1365. },
  1366. {
  1367. "fieldPath": "read",
  1368. "columnName": "read",
  1369. "affinity": "INTEGER",
  1370. "notNull": true
  1371. },
  1372. {
  1373. "fieldPath": "origin",
  1374. "columnName": "origin",
  1375. "affinity": "TEXT",
  1376. "notNull": true,
  1377. "defaultValue": "''"
  1378. },
  1379. {
  1380. "fieldPath": "sort",
  1381. "columnName": "sort",
  1382. "affinity": "TEXT",
  1383. "notNull": true,
  1384. "defaultValue": "''"
  1385. },
  1386. {
  1387. "fieldPath": "image",
  1388. "columnName": "image",
  1389. "affinity": "TEXT"
  1390. },
  1391. {
  1392. "fieldPath": "type",
  1393. "columnName": "type",
  1394. "affinity": "INTEGER",
  1395. "notNull": true,
  1396. "defaultValue": "0"
  1397. },
  1398. {
  1399. "fieldPath": "durPos",
  1400. "columnName": "durPos",
  1401. "affinity": "INTEGER",
  1402. "notNull": true,
  1403. "defaultValue": "0"
  1404. },
  1405. {
  1406. "fieldPath": "pubDate",
  1407. "columnName": "pubDate",
  1408. "affinity": "TEXT"
  1409. }
  1410. ],
  1411. "primaryKey": {
  1412. "autoGenerate": false,
  1413. "columnNames": [
  1414. "record"
  1415. ]
  1416. },
  1417. "indices": [
  1418. {
  1419. "name": "index_rssReadRecords_origin",
  1420. "unique": false,
  1421. "columnNames": [
  1422. "origin"
  1423. ],
  1424. "orders": [],
  1425. "createSql": "CREATE INDEX IF NOT EXISTS `index_rssReadRecords_origin` ON `${TABLE_NAME}` (`origin`)"
  1426. }
  1427. ]
  1428. },
  1429. {
  1430. "tableName": "readRecordDetail",
  1431. "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`))",
  1432. "fields": [
  1433. {
  1434. "fieldPath": "deviceId",
  1435. "columnName": "deviceId",
  1436. "affinity": "TEXT",
  1437. "notNull": true
  1438. },
  1439. {
  1440. "fieldPath": "bookName",
  1441. "columnName": "bookName",
  1442. "affinity": "TEXT",
  1443. "notNull": true
  1444. },
  1445. {
  1446. "fieldPath": "bookAuthor",
  1447. "columnName": "bookAuthor",
  1448. "affinity": "TEXT",
  1449. "notNull": true,
  1450. "defaultValue": "''"
  1451. },
  1452. {
  1453. "fieldPath": "date",
  1454. "columnName": "date",
  1455. "affinity": "TEXT",
  1456. "notNull": true
  1457. },
  1458. {
  1459. "fieldPath": "readTime",
  1460. "columnName": "readTime",
  1461. "affinity": "INTEGER",
  1462. "notNull": true,
  1463. "defaultValue": "0"
  1464. },
  1465. {
  1466. "fieldPath": "readWords",
  1467. "columnName": "readWords",
  1468. "affinity": "INTEGER",
  1469. "notNull": true,
  1470. "defaultValue": "0"
  1471. },
  1472. {
  1473. "fieldPath": "firstReadTime",
  1474. "columnName": "firstReadTime",
  1475. "affinity": "INTEGER",
  1476. "notNull": true,
  1477. "defaultValue": "0"
  1478. },
  1479. {
  1480. "fieldPath": "lastReadTime",
  1481. "columnName": "lastReadTime",
  1482. "affinity": "INTEGER",
  1483. "notNull": true,
  1484. "defaultValue": "0"
  1485. }
  1486. ],
  1487. "primaryKey": {
  1488. "autoGenerate": false,
  1489. "columnNames": [
  1490. "deviceId",
  1491. "bookName",
  1492. "bookAuthor",
  1493. "date"
  1494. ]
  1495. }
  1496. },
  1497. {
  1498. "tableName": "readRecordSession",
  1499. "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)",
  1500. "fields": [
  1501. {
  1502. "fieldPath": "id",
  1503. "columnName": "id",
  1504. "affinity": "INTEGER",
  1505. "notNull": true
  1506. },
  1507. {
  1508. "fieldPath": "deviceId",
  1509. "columnName": "deviceId",
  1510. "affinity": "TEXT",
  1511. "notNull": true
  1512. },
  1513. {
  1514. "fieldPath": "bookName",
  1515. "columnName": "bookName",
  1516. "affinity": "TEXT",
  1517. "notNull": true
  1518. },
  1519. {
  1520. "fieldPath": "bookAuthor",
  1521. "columnName": "bookAuthor",
  1522. "affinity": "TEXT",
  1523. "notNull": true,
  1524. "defaultValue": "''"
  1525. },
  1526. {
  1527. "fieldPath": "startTime",
  1528. "columnName": "startTime",
  1529. "affinity": "INTEGER",
  1530. "notNull": true
  1531. },
  1532. {
  1533. "fieldPath": "endTime",
  1534. "columnName": "endTime",
  1535. "affinity": "INTEGER",
  1536. "notNull": true
  1537. },
  1538. {
  1539. "fieldPath": "words",
  1540. "columnName": "words",
  1541. "affinity": "INTEGER",
  1542. "notNull": true
  1543. }
  1544. ],
  1545. "primaryKey": {
  1546. "autoGenerate": true,
  1547. "columnNames": [
  1548. "id"
  1549. ]
  1550. }
  1551. },
  1552. {
  1553. "tableName": "rssStars",
  1554. "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`))",
  1555. "fields": [
  1556. {
  1557. "fieldPath": "origin",
  1558. "columnName": "origin",
  1559. "affinity": "TEXT",
  1560. "notNull": true
  1561. },
  1562. {
  1563. "fieldPath": "sort",
  1564. "columnName": "sort",
  1565. "affinity": "TEXT",
  1566. "notNull": true
  1567. },
  1568. {
  1569. "fieldPath": "title",
  1570. "columnName": "title",
  1571. "affinity": "TEXT",
  1572. "notNull": true
  1573. },
  1574. {
  1575. "fieldPath": "starTime",
  1576. "columnName": "starTime",
  1577. "affinity": "INTEGER",
  1578. "notNull": true
  1579. },
  1580. {
  1581. "fieldPath": "link",
  1582. "columnName": "link",
  1583. "affinity": "TEXT",
  1584. "notNull": true
  1585. },
  1586. {
  1587. "fieldPath": "pubDate",
  1588. "columnName": "pubDate",
  1589. "affinity": "TEXT"
  1590. },
  1591. {
  1592. "fieldPath": "description",
  1593. "columnName": "description",
  1594. "affinity": "TEXT"
  1595. },
  1596. {
  1597. "fieldPath": "content",
  1598. "columnName": "content",
  1599. "affinity": "TEXT"
  1600. },
  1601. {
  1602. "fieldPath": "image",
  1603. "columnName": "image",
  1604. "affinity": "TEXT"
  1605. },
  1606. {
  1607. "fieldPath": "group",
  1608. "columnName": "group",
  1609. "affinity": "TEXT",
  1610. "notNull": true,
  1611. "defaultValue": "'默认分组'"
  1612. },
  1613. {
  1614. "fieldPath": "variable",
  1615. "columnName": "variable",
  1616. "affinity": "TEXT"
  1617. },
  1618. {
  1619. "fieldPath": "type",
  1620. "columnName": "type",
  1621. "affinity": "INTEGER",
  1622. "notNull": true,
  1623. "defaultValue": "0"
  1624. },
  1625. {
  1626. "fieldPath": "durPos",
  1627. "columnName": "durPos",
  1628. "affinity": "INTEGER",
  1629. "notNull": true,
  1630. "defaultValue": "0"
  1631. }
  1632. ],
  1633. "primaryKey": {
  1634. "autoGenerate": false,
  1635. "columnNames": [
  1636. "origin",
  1637. "link"
  1638. ]
  1639. }
  1640. },
  1641. {
  1642. "tableName": "txtTocRules",
  1643. "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`))",
  1644. "fields": [
  1645. {
  1646. "fieldPath": "id",
  1647. "columnName": "id",
  1648. "affinity": "INTEGER",
  1649. "notNull": true
  1650. },
  1651. {
  1652. "fieldPath": "name",
  1653. "columnName": "name",
  1654. "affinity": "TEXT",
  1655. "notNull": true
  1656. },
  1657. {
  1658. "fieldPath": "rule",
  1659. "columnName": "rule",
  1660. "affinity": "TEXT",
  1661. "notNull": true
  1662. },
  1663. {
  1664. "fieldPath": "example",
  1665. "columnName": "example",
  1666. "affinity": "TEXT"
  1667. },
  1668. {
  1669. "fieldPath": "serialNumber",
  1670. "columnName": "serialNumber",
  1671. "affinity": "INTEGER",
  1672. "notNull": true
  1673. },
  1674. {
  1675. "fieldPath": "enable",
  1676. "columnName": "enable",
  1677. "affinity": "INTEGER",
  1678. "notNull": true
  1679. }
  1680. ],
  1681. "primaryKey": {
  1682. "autoGenerate": false,
  1683. "columnNames": [
  1684. "id"
  1685. ]
  1686. }
  1687. },
  1688. {
  1689. "tableName": "readRecord",
  1690. "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`))",
  1691. "fields": [
  1692. {
  1693. "fieldPath": "deviceId",
  1694. "columnName": "deviceId",
  1695. "affinity": "TEXT",
  1696. "notNull": true
  1697. },
  1698. {
  1699. "fieldPath": "bookName",
  1700. "columnName": "bookName",
  1701. "affinity": "TEXT",
  1702. "notNull": true
  1703. },
  1704. {
  1705. "fieldPath": "bookAuthor",
  1706. "columnName": "bookAuthor",
  1707. "affinity": "TEXT",
  1708. "notNull": true,
  1709. "defaultValue": "''"
  1710. },
  1711. {
  1712. "fieldPath": "readTime",
  1713. "columnName": "readTime",
  1714. "affinity": "INTEGER",
  1715. "notNull": true,
  1716. "defaultValue": "0"
  1717. },
  1718. {
  1719. "fieldPath": "lastRead",
  1720. "columnName": "lastRead",
  1721. "affinity": "INTEGER",
  1722. "notNull": true,
  1723. "defaultValue": "0"
  1724. }
  1725. ],
  1726. "primaryKey": {
  1727. "autoGenerate": false,
  1728. "columnNames": [
  1729. "deviceId",
  1730. "bookName",
  1731. "bookAuthor"
  1732. ]
  1733. }
  1734. },
  1735. {
  1736. "tableName": "httpTTS",
  1737. "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`))",
  1738. "fields": [
  1739. {
  1740. "fieldPath": "id",
  1741. "columnName": "id",
  1742. "affinity": "INTEGER",
  1743. "notNull": true
  1744. },
  1745. {
  1746. "fieldPath": "name",
  1747. "columnName": "name",
  1748. "affinity": "TEXT",
  1749. "notNull": true
  1750. },
  1751. {
  1752. "fieldPath": "url",
  1753. "columnName": "url",
  1754. "affinity": "TEXT",
  1755. "notNull": true
  1756. },
  1757. {
  1758. "fieldPath": "contentType",
  1759. "columnName": "contentType",
  1760. "affinity": "TEXT"
  1761. },
  1762. {
  1763. "fieldPath": "concurrentRate",
  1764. "columnName": "concurrentRate",
  1765. "affinity": "TEXT",
  1766. "defaultValue": "'0'"
  1767. },
  1768. {
  1769. "fieldPath": "loginUrl",
  1770. "columnName": "loginUrl",
  1771. "affinity": "TEXT"
  1772. },
  1773. {
  1774. "fieldPath": "loginUi",
  1775. "columnName": "loginUi",
  1776. "affinity": "TEXT"
  1777. },
  1778. {
  1779. "fieldPath": "header",
  1780. "columnName": "header",
  1781. "affinity": "TEXT"
  1782. },
  1783. {
  1784. "fieldPath": "jsLib",
  1785. "columnName": "jsLib",
  1786. "affinity": "TEXT"
  1787. },
  1788. {
  1789. "fieldPath": "enabledCookieJar",
  1790. "columnName": "enabledCookieJar",
  1791. "affinity": "INTEGER",
  1792. "defaultValue": "0"
  1793. },
  1794. {
  1795. "fieldPath": "loginCheckJs",
  1796. "columnName": "loginCheckJs",
  1797. "affinity": "TEXT"
  1798. },
  1799. {
  1800. "fieldPath": "lastUpdateTime",
  1801. "columnName": "lastUpdateTime",
  1802. "affinity": "INTEGER",
  1803. "notNull": true,
  1804. "defaultValue": "0"
  1805. }
  1806. ],
  1807. "primaryKey": {
  1808. "autoGenerate": false,
  1809. "columnNames": [
  1810. "id"
  1811. ]
  1812. }
  1813. },
  1814. {
  1815. "tableName": "caches",
  1816. "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`key` TEXT NOT NULL, `value` TEXT, `deadline` INTEGER NOT NULL, PRIMARY KEY(`key`))",
  1817. "fields": [
  1818. {
  1819. "fieldPath": "key",
  1820. "columnName": "key",
  1821. "affinity": "TEXT",
  1822. "notNull": true
  1823. },
  1824. {
  1825. "fieldPath": "value",
  1826. "columnName": "value",
  1827. "affinity": "TEXT"
  1828. },
  1829. {
  1830. "fieldPath": "deadline",
  1831. "columnName": "deadline",
  1832. "affinity": "INTEGER",
  1833. "notNull": true
  1834. }
  1835. ],
  1836. "primaryKey": {
  1837. "autoGenerate": false,
  1838. "columnNames": [
  1839. "key"
  1840. ]
  1841. },
  1842. "indices": [
  1843. {
  1844. "name": "index_caches_key",
  1845. "unique": true,
  1846. "columnNames": [
  1847. "key"
  1848. ],
  1849. "orders": [],
  1850. "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_caches_key` ON `${TABLE_NAME}` (`key`)"
  1851. }
  1852. ]
  1853. },
  1854. {
  1855. "tableName": "ruleSubs",
  1856. "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`))",
  1857. "fields": [
  1858. {
  1859. "fieldPath": "id",
  1860. "columnName": "id",
  1861. "affinity": "INTEGER",
  1862. "notNull": true
  1863. },
  1864. {
  1865. "fieldPath": "name",
  1866. "columnName": "name",
  1867. "affinity": "TEXT",
  1868. "notNull": true
  1869. },
  1870. {
  1871. "fieldPath": "url",
  1872. "columnName": "url",
  1873. "affinity": "TEXT",
  1874. "notNull": true
  1875. },
  1876. {
  1877. "fieldPath": "type",
  1878. "columnName": "type",
  1879. "affinity": "INTEGER",
  1880. "notNull": true
  1881. },
  1882. {
  1883. "fieldPath": "customOrder",
  1884. "columnName": "customOrder",
  1885. "affinity": "INTEGER",
  1886. "notNull": true
  1887. },
  1888. {
  1889. "fieldPath": "autoUpdate",
  1890. "columnName": "autoUpdate",
  1891. "affinity": "INTEGER",
  1892. "notNull": true
  1893. },
  1894. {
  1895. "fieldPath": "update",
  1896. "columnName": "update",
  1897. "affinity": "INTEGER",
  1898. "notNull": true
  1899. }
  1900. ],
  1901. "primaryKey": {
  1902. "autoGenerate": false,
  1903. "columnNames": [
  1904. "id"
  1905. ]
  1906. }
  1907. },
  1908. {
  1909. "tableName": "dictRules",
  1910. "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`))",
  1911. "fields": [
  1912. {
  1913. "fieldPath": "name",
  1914. "columnName": "name",
  1915. "affinity": "TEXT",
  1916. "notNull": true
  1917. },
  1918. {
  1919. "fieldPath": "urlRule",
  1920. "columnName": "urlRule",
  1921. "affinity": "TEXT",
  1922. "notNull": true
  1923. },
  1924. {
  1925. "fieldPath": "showRule",
  1926. "columnName": "showRule",
  1927. "affinity": "TEXT",
  1928. "notNull": true
  1929. },
  1930. {
  1931. "fieldPath": "enabled",
  1932. "columnName": "enabled",
  1933. "affinity": "INTEGER",
  1934. "notNull": true,
  1935. "defaultValue": "1"
  1936. },
  1937. {
  1938. "fieldPath": "sortNumber",
  1939. "columnName": "sortNumber",
  1940. "affinity": "INTEGER",
  1941. "notNull": true,
  1942. "defaultValue": "0"
  1943. }
  1944. ],
  1945. "primaryKey": {
  1946. "autoGenerate": false,
  1947. "columnNames": [
  1948. "name"
  1949. ]
  1950. }
  1951. },
  1952. {
  1953. "tableName": "keyboardAssists",
  1954. "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`))",
  1955. "fields": [
  1956. {
  1957. "fieldPath": "type",
  1958. "columnName": "type",
  1959. "affinity": "INTEGER",
  1960. "notNull": true,
  1961. "defaultValue": "0"
  1962. },
  1963. {
  1964. "fieldPath": "key",
  1965. "columnName": "key",
  1966. "affinity": "TEXT",
  1967. "notNull": true,
  1968. "defaultValue": "''"
  1969. },
  1970. {
  1971. "fieldPath": "value",
  1972. "columnName": "value",
  1973. "affinity": "TEXT",
  1974. "notNull": true,
  1975. "defaultValue": "''"
  1976. },
  1977. {
  1978. "fieldPath": "serialNo",
  1979. "columnName": "serialNo",
  1980. "affinity": "INTEGER",
  1981. "notNull": true,
  1982. "defaultValue": "0"
  1983. }
  1984. ],
  1985. "primaryKey": {
  1986. "autoGenerate": false,
  1987. "columnNames": [
  1988. "type",
  1989. "key"
  1990. ]
  1991. }
  1992. },
  1993. {
  1994. "tableName": "servers",
  1995. "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`))",
  1996. "fields": [
  1997. {
  1998. "fieldPath": "id",
  1999. "columnName": "id",
  2000. "affinity": "INTEGER",
  2001. "notNull": true
  2002. },
  2003. {
  2004. "fieldPath": "name",
  2005. "columnName": "name",
  2006. "affinity": "TEXT",
  2007. "notNull": true
  2008. },
  2009. {
  2010. "fieldPath": "type",
  2011. "columnName": "type",
  2012. "affinity": "TEXT",
  2013. "notNull": true
  2014. },
  2015. {
  2016. "fieldPath": "config",
  2017. "columnName": "config",
  2018. "affinity": "TEXT"
  2019. },
  2020. {
  2021. "fieldPath": "sortNumber",
  2022. "columnName": "sortNumber",
  2023. "affinity": "INTEGER",
  2024. "notNull": true
  2025. }
  2026. ],
  2027. "primaryKey": {
  2028. "autoGenerate": false,
  2029. "columnNames": [
  2030. "id"
  2031. ]
  2032. }
  2033. }
  2034. ],
  2035. "views": [
  2036. {
  2037. "viewName": "book_sources_part",
  2038. "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"
  2039. }
  2040. ],
  2041. "setupQueries": [
  2042. "CREATE TABLE IF NOT EXISTS room_master_table (id INTEGER PRIMARY KEY,identity_hash TEXT)",
  2043. "INSERT OR REPLACE INTO room_master_table (id,identity_hash) VALUES(42, '285a81996bc58258f99a2f67fb5cf84e')"
  2044. ]
  2045. }
  2046. }