81.json 61 KB

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