83.json 62 KB

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