48.json 48 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633
  1. {
  2. "formatVersion": 1,
  3. "database": {
  4. "version": 48,
  5. "identityHash": "6348b1307bb9fb4f5482fb94a723338a",
  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 '', `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, `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, 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": "''"
  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. "notNull": false
  58. },
  59. {
  60. "fieldPath": "customTag",
  61. "columnName": "customTag",
  62. "affinity": "TEXT",
  63. "notNull": false
  64. },
  65. {
  66. "fieldPath": "coverUrl",
  67. "columnName": "coverUrl",
  68. "affinity": "TEXT",
  69. "notNull": false
  70. },
  71. {
  72. "fieldPath": "customCoverUrl",
  73. "columnName": "customCoverUrl",
  74. "affinity": "TEXT",
  75. "notNull": false
  76. },
  77. {
  78. "fieldPath": "intro",
  79. "columnName": "intro",
  80. "affinity": "TEXT",
  81. "notNull": false
  82. },
  83. {
  84. "fieldPath": "customIntro",
  85. "columnName": "customIntro",
  86. "affinity": "TEXT",
  87. "notNull": false
  88. },
  89. {
  90. "fieldPath": "charset",
  91. "columnName": "charset",
  92. "affinity": "TEXT",
  93. "notNull": false
  94. },
  95. {
  96. "fieldPath": "type",
  97. "columnName": "type",
  98. "affinity": "INTEGER",
  99. "notNull": true,
  100. "defaultValue": "0"
  101. },
  102. {
  103. "fieldPath": "group",
  104. "columnName": "group",
  105. "affinity": "INTEGER",
  106. "notNull": true,
  107. "defaultValue": "0"
  108. },
  109. {
  110. "fieldPath": "latestChapterTitle",
  111. "columnName": "latestChapterTitle",
  112. "affinity": "TEXT",
  113. "notNull": false
  114. },
  115. {
  116. "fieldPath": "latestChapterTime",
  117. "columnName": "latestChapterTime",
  118. "affinity": "INTEGER",
  119. "notNull": true,
  120. "defaultValue": "0"
  121. },
  122. {
  123. "fieldPath": "lastCheckTime",
  124. "columnName": "lastCheckTime",
  125. "affinity": "INTEGER",
  126. "notNull": true,
  127. "defaultValue": "0"
  128. },
  129. {
  130. "fieldPath": "lastCheckCount",
  131. "columnName": "lastCheckCount",
  132. "affinity": "INTEGER",
  133. "notNull": true,
  134. "defaultValue": "0"
  135. },
  136. {
  137. "fieldPath": "totalChapterNum",
  138. "columnName": "totalChapterNum",
  139. "affinity": "INTEGER",
  140. "notNull": true,
  141. "defaultValue": "0"
  142. },
  143. {
  144. "fieldPath": "durChapterTitle",
  145. "columnName": "durChapterTitle",
  146. "affinity": "TEXT",
  147. "notNull": false
  148. },
  149. {
  150. "fieldPath": "durChapterIndex",
  151. "columnName": "durChapterIndex",
  152. "affinity": "INTEGER",
  153. "notNull": true,
  154. "defaultValue": "0"
  155. },
  156. {
  157. "fieldPath": "durChapterPos",
  158. "columnName": "durChapterPos",
  159. "affinity": "INTEGER",
  160. "notNull": true,
  161. "defaultValue": "0"
  162. },
  163. {
  164. "fieldPath": "durChapterTime",
  165. "columnName": "durChapterTime",
  166. "affinity": "INTEGER",
  167. "notNull": true,
  168. "defaultValue": "0"
  169. },
  170. {
  171. "fieldPath": "wordCount",
  172. "columnName": "wordCount",
  173. "affinity": "TEXT",
  174. "notNull": false
  175. },
  176. {
  177. "fieldPath": "canUpdate",
  178. "columnName": "canUpdate",
  179. "affinity": "INTEGER",
  180. "notNull": true,
  181. "defaultValue": "1"
  182. },
  183. {
  184. "fieldPath": "order",
  185. "columnName": "order",
  186. "affinity": "INTEGER",
  187. "notNull": true,
  188. "defaultValue": "0"
  189. },
  190. {
  191. "fieldPath": "originOrder",
  192. "columnName": "originOrder",
  193. "affinity": "INTEGER",
  194. "notNull": true,
  195. "defaultValue": "0"
  196. },
  197. {
  198. "fieldPath": "variable",
  199. "columnName": "variable",
  200. "affinity": "TEXT",
  201. "notNull": false
  202. },
  203. {
  204. "fieldPath": "readConfig",
  205. "columnName": "readConfig",
  206. "affinity": "TEXT",
  207. "notNull": false
  208. }
  209. ],
  210. "primaryKey": {
  211. "columnNames": [
  212. "bookUrl"
  213. ],
  214. "autoGenerate": false
  215. },
  216. "indices": [
  217. {
  218. "name": "index_books_name_author",
  219. "unique": true,
  220. "columnNames": [
  221. "name",
  222. "author"
  223. ],
  224. "orders": [],
  225. "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_books_name_author` ON `${TABLE_NAME}` (`name`, `author`)"
  226. }
  227. ],
  228. "foreignKeys": []
  229. },
  230. {
  231. "tableName": "book_groups",
  232. "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`groupId` INTEGER NOT NULL, `groupName` TEXT NOT NULL, `cover` TEXT, `order` INTEGER NOT NULL, `show` INTEGER NOT NULL, PRIMARY KEY(`groupId`))",
  233. "fields": [
  234. {
  235. "fieldPath": "groupId",
  236. "columnName": "groupId",
  237. "affinity": "INTEGER",
  238. "notNull": true
  239. },
  240. {
  241. "fieldPath": "groupName",
  242. "columnName": "groupName",
  243. "affinity": "TEXT",
  244. "notNull": true
  245. },
  246. {
  247. "fieldPath": "cover",
  248. "columnName": "cover",
  249. "affinity": "TEXT",
  250. "notNull": false
  251. },
  252. {
  253. "fieldPath": "order",
  254. "columnName": "order",
  255. "affinity": "INTEGER",
  256. "notNull": true
  257. },
  258. {
  259. "fieldPath": "show",
  260. "columnName": "show",
  261. "affinity": "INTEGER",
  262. "notNull": true
  263. }
  264. ],
  265. "primaryKey": {
  266. "columnNames": [
  267. "groupId"
  268. ],
  269. "autoGenerate": false
  270. },
  271. "indices": [],
  272. "foreignKeys": []
  273. },
  274. {
  275. "tableName": "book_sources",
  276. "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, `enabled` INTEGER NOT NULL, `enabledExplore` INTEGER NOT NULL, `concurrentRate` TEXT, `header` TEXT, `loginUrl` TEXT, `loginUi` TEXT, `loginCheckJs` TEXT, `bookSourceComment` TEXT, `lastUpdateTime` INTEGER NOT NULL, `respondTime` INTEGER NOT NULL, `weight` INTEGER NOT NULL, `exploreUrl` TEXT, `ruleExplore` TEXT, `searchUrl` TEXT, `ruleSearch` TEXT, `ruleBookInfo` TEXT, `ruleToc` TEXT, `ruleContent` TEXT, PRIMARY KEY(`bookSourceUrl`))",
  277. "fields": [
  278. {
  279. "fieldPath": "bookSourceUrl",
  280. "columnName": "bookSourceUrl",
  281. "affinity": "TEXT",
  282. "notNull": true
  283. },
  284. {
  285. "fieldPath": "bookSourceName",
  286. "columnName": "bookSourceName",
  287. "affinity": "TEXT",
  288. "notNull": true
  289. },
  290. {
  291. "fieldPath": "bookSourceGroup",
  292. "columnName": "bookSourceGroup",
  293. "affinity": "TEXT",
  294. "notNull": false
  295. },
  296. {
  297. "fieldPath": "bookSourceType",
  298. "columnName": "bookSourceType",
  299. "affinity": "INTEGER",
  300. "notNull": true
  301. },
  302. {
  303. "fieldPath": "bookUrlPattern",
  304. "columnName": "bookUrlPattern",
  305. "affinity": "TEXT",
  306. "notNull": false
  307. },
  308. {
  309. "fieldPath": "customOrder",
  310. "columnName": "customOrder",
  311. "affinity": "INTEGER",
  312. "notNull": true
  313. },
  314. {
  315. "fieldPath": "enabled",
  316. "columnName": "enabled",
  317. "affinity": "INTEGER",
  318. "notNull": true
  319. },
  320. {
  321. "fieldPath": "enabledExplore",
  322. "columnName": "enabledExplore",
  323. "affinity": "INTEGER",
  324. "notNull": true
  325. },
  326. {
  327. "fieldPath": "concurrentRate",
  328. "columnName": "concurrentRate",
  329. "affinity": "TEXT",
  330. "notNull": false
  331. },
  332. {
  333. "fieldPath": "header",
  334. "columnName": "header",
  335. "affinity": "TEXT",
  336. "notNull": false
  337. },
  338. {
  339. "fieldPath": "loginUrl",
  340. "columnName": "loginUrl",
  341. "affinity": "TEXT",
  342. "notNull": false
  343. },
  344. {
  345. "fieldPath": "loginUi",
  346. "columnName": "loginUi",
  347. "affinity": "TEXT",
  348. "notNull": false
  349. },
  350. {
  351. "fieldPath": "loginCheckJs",
  352. "columnName": "loginCheckJs",
  353. "affinity": "TEXT",
  354. "notNull": false
  355. },
  356. {
  357. "fieldPath": "bookSourceComment",
  358. "columnName": "bookSourceComment",
  359. "affinity": "TEXT",
  360. "notNull": false
  361. },
  362. {
  363. "fieldPath": "lastUpdateTime",
  364. "columnName": "lastUpdateTime",
  365. "affinity": "INTEGER",
  366. "notNull": true
  367. },
  368. {
  369. "fieldPath": "respondTime",
  370. "columnName": "respondTime",
  371. "affinity": "INTEGER",
  372. "notNull": true
  373. },
  374. {
  375. "fieldPath": "weight",
  376. "columnName": "weight",
  377. "affinity": "INTEGER",
  378. "notNull": true
  379. },
  380. {
  381. "fieldPath": "exploreUrl",
  382. "columnName": "exploreUrl",
  383. "affinity": "TEXT",
  384. "notNull": false
  385. },
  386. {
  387. "fieldPath": "ruleExplore",
  388. "columnName": "ruleExplore",
  389. "affinity": "TEXT",
  390. "notNull": false
  391. },
  392. {
  393. "fieldPath": "searchUrl",
  394. "columnName": "searchUrl",
  395. "affinity": "TEXT",
  396. "notNull": false
  397. },
  398. {
  399. "fieldPath": "ruleSearch",
  400. "columnName": "ruleSearch",
  401. "affinity": "TEXT",
  402. "notNull": false
  403. },
  404. {
  405. "fieldPath": "ruleBookInfo",
  406. "columnName": "ruleBookInfo",
  407. "affinity": "TEXT",
  408. "notNull": false
  409. },
  410. {
  411. "fieldPath": "ruleToc",
  412. "columnName": "ruleToc",
  413. "affinity": "TEXT",
  414. "notNull": false
  415. },
  416. {
  417. "fieldPath": "ruleContent",
  418. "columnName": "ruleContent",
  419. "affinity": "TEXT",
  420. "notNull": false
  421. }
  422. ],
  423. "primaryKey": {
  424. "columnNames": [
  425. "bookSourceUrl"
  426. ],
  427. "autoGenerate": false
  428. },
  429. "indices": [
  430. {
  431. "name": "index_book_sources_bookSourceUrl",
  432. "unique": false,
  433. "columnNames": [
  434. "bookSourceUrl"
  435. ],
  436. "orders": [],
  437. "createSql": "CREATE INDEX IF NOT EXISTS `index_book_sources_bookSourceUrl` ON `${TABLE_NAME}` (`bookSourceUrl`)"
  438. }
  439. ],
  440. "foreignKeys": []
  441. },
  442. {
  443. "tableName": "chapters",
  444. "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, `start` INTEGER, `end` INTEGER, `startFragmentId` TEXT, `endFragmentId` TEXT, `variable` TEXT, PRIMARY KEY(`url`, `bookUrl`), FOREIGN KEY(`bookUrl`) REFERENCES `books`(`bookUrl`) ON UPDATE NO ACTION ON DELETE CASCADE )",
  445. "fields": [
  446. {
  447. "fieldPath": "url",
  448. "columnName": "url",
  449. "affinity": "TEXT",
  450. "notNull": true
  451. },
  452. {
  453. "fieldPath": "title",
  454. "columnName": "title",
  455. "affinity": "TEXT",
  456. "notNull": true
  457. },
  458. {
  459. "fieldPath": "isVolume",
  460. "columnName": "isVolume",
  461. "affinity": "INTEGER",
  462. "notNull": true
  463. },
  464. {
  465. "fieldPath": "baseUrl",
  466. "columnName": "baseUrl",
  467. "affinity": "TEXT",
  468. "notNull": true
  469. },
  470. {
  471. "fieldPath": "bookUrl",
  472. "columnName": "bookUrl",
  473. "affinity": "TEXT",
  474. "notNull": true
  475. },
  476. {
  477. "fieldPath": "index",
  478. "columnName": "index",
  479. "affinity": "INTEGER",
  480. "notNull": true
  481. },
  482. {
  483. "fieldPath": "isVip",
  484. "columnName": "isVip",
  485. "affinity": "INTEGER",
  486. "notNull": true
  487. },
  488. {
  489. "fieldPath": "isPay",
  490. "columnName": "isPay",
  491. "affinity": "INTEGER",
  492. "notNull": true
  493. },
  494. {
  495. "fieldPath": "resourceUrl",
  496. "columnName": "resourceUrl",
  497. "affinity": "TEXT",
  498. "notNull": false
  499. },
  500. {
  501. "fieldPath": "tag",
  502. "columnName": "tag",
  503. "affinity": "TEXT",
  504. "notNull": false
  505. },
  506. {
  507. "fieldPath": "start",
  508. "columnName": "start",
  509. "affinity": "INTEGER",
  510. "notNull": false
  511. },
  512. {
  513. "fieldPath": "end",
  514. "columnName": "end",
  515. "affinity": "INTEGER",
  516. "notNull": false
  517. },
  518. {
  519. "fieldPath": "startFragmentId",
  520. "columnName": "startFragmentId",
  521. "affinity": "TEXT",
  522. "notNull": false
  523. },
  524. {
  525. "fieldPath": "endFragmentId",
  526. "columnName": "endFragmentId",
  527. "affinity": "TEXT",
  528. "notNull": false
  529. },
  530. {
  531. "fieldPath": "variable",
  532. "columnName": "variable",
  533. "affinity": "TEXT",
  534. "notNull": false
  535. }
  536. ],
  537. "primaryKey": {
  538. "columnNames": [
  539. "url",
  540. "bookUrl"
  541. ],
  542. "autoGenerate": false
  543. },
  544. "indices": [
  545. {
  546. "name": "index_chapters_bookUrl",
  547. "unique": false,
  548. "columnNames": [
  549. "bookUrl"
  550. ],
  551. "orders": [],
  552. "createSql": "CREATE INDEX IF NOT EXISTS `index_chapters_bookUrl` ON `${TABLE_NAME}` (`bookUrl`)"
  553. },
  554. {
  555. "name": "index_chapters_bookUrl_index",
  556. "unique": true,
  557. "columnNames": [
  558. "bookUrl",
  559. "index"
  560. ],
  561. "orders": [],
  562. "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_chapters_bookUrl_index` ON `${TABLE_NAME}` (`bookUrl`, `index`)"
  563. }
  564. ],
  565. "foreignKeys": [
  566. {
  567. "table": "books",
  568. "onDelete": "CASCADE",
  569. "onUpdate": "NO ACTION",
  570. "columns": [
  571. "bookUrl"
  572. ],
  573. "referencedColumns": [
  574. "bookUrl"
  575. ]
  576. }
  577. ]
  578. },
  579. {
  580. "tableName": "replace_rules",
  581. "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, `isEnabled` INTEGER NOT NULL DEFAULT 1, `isRegex` INTEGER NOT NULL DEFAULT 1, `timeoutMillisecond` INTEGER NOT NULL DEFAULT 3000, `sortOrder` INTEGER NOT NULL DEFAULT 0)",
  582. "fields": [
  583. {
  584. "fieldPath": "id",
  585. "columnName": "id",
  586. "affinity": "INTEGER",
  587. "notNull": true
  588. },
  589. {
  590. "fieldPath": "name",
  591. "columnName": "name",
  592. "affinity": "TEXT",
  593. "notNull": true,
  594. "defaultValue": "''"
  595. },
  596. {
  597. "fieldPath": "group",
  598. "columnName": "group",
  599. "affinity": "TEXT",
  600. "notNull": false
  601. },
  602. {
  603. "fieldPath": "pattern",
  604. "columnName": "pattern",
  605. "affinity": "TEXT",
  606. "notNull": true,
  607. "defaultValue": "''"
  608. },
  609. {
  610. "fieldPath": "replacement",
  611. "columnName": "replacement",
  612. "affinity": "TEXT",
  613. "notNull": true,
  614. "defaultValue": "''"
  615. },
  616. {
  617. "fieldPath": "scope",
  618. "columnName": "scope",
  619. "affinity": "TEXT",
  620. "notNull": false
  621. },
  622. {
  623. "fieldPath": "scopeTitle",
  624. "columnName": "scopeTitle",
  625. "affinity": "INTEGER",
  626. "notNull": true,
  627. "defaultValue": "0"
  628. },
  629. {
  630. "fieldPath": "scopeContent",
  631. "columnName": "scopeContent",
  632. "affinity": "INTEGER",
  633. "notNull": true,
  634. "defaultValue": "1"
  635. },
  636. {
  637. "fieldPath": "isEnabled",
  638. "columnName": "isEnabled",
  639. "affinity": "INTEGER",
  640. "notNull": true,
  641. "defaultValue": "1"
  642. },
  643. {
  644. "fieldPath": "isRegex",
  645. "columnName": "isRegex",
  646. "affinity": "INTEGER",
  647. "notNull": true,
  648. "defaultValue": "1"
  649. },
  650. {
  651. "fieldPath": "timeoutMillisecond",
  652. "columnName": "timeoutMillisecond",
  653. "affinity": "INTEGER",
  654. "notNull": true,
  655. "defaultValue": "3000"
  656. },
  657. {
  658. "fieldPath": "order",
  659. "columnName": "sortOrder",
  660. "affinity": "INTEGER",
  661. "notNull": true,
  662. "defaultValue": "0"
  663. }
  664. ],
  665. "primaryKey": {
  666. "columnNames": [
  667. "id"
  668. ],
  669. "autoGenerate": true
  670. },
  671. "indices": [
  672. {
  673. "name": "index_replace_rules_id",
  674. "unique": false,
  675. "columnNames": [
  676. "id"
  677. ],
  678. "orders": [],
  679. "createSql": "CREATE INDEX IF NOT EXISTS `index_replace_rules_id` ON `${TABLE_NAME}` (`id`)"
  680. }
  681. ],
  682. "foreignKeys": []
  683. },
  684. {
  685. "tableName": "searchBooks",
  686. "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, PRIMARY KEY(`bookUrl`), FOREIGN KEY(`origin`) REFERENCES `book_sources`(`bookSourceUrl`) ON UPDATE NO ACTION ON DELETE CASCADE )",
  687. "fields": [
  688. {
  689. "fieldPath": "bookUrl",
  690. "columnName": "bookUrl",
  691. "affinity": "TEXT",
  692. "notNull": true
  693. },
  694. {
  695. "fieldPath": "origin",
  696. "columnName": "origin",
  697. "affinity": "TEXT",
  698. "notNull": true
  699. },
  700. {
  701. "fieldPath": "originName",
  702. "columnName": "originName",
  703. "affinity": "TEXT",
  704. "notNull": true
  705. },
  706. {
  707. "fieldPath": "type",
  708. "columnName": "type",
  709. "affinity": "INTEGER",
  710. "notNull": true
  711. },
  712. {
  713. "fieldPath": "name",
  714. "columnName": "name",
  715. "affinity": "TEXT",
  716. "notNull": true
  717. },
  718. {
  719. "fieldPath": "author",
  720. "columnName": "author",
  721. "affinity": "TEXT",
  722. "notNull": true
  723. },
  724. {
  725. "fieldPath": "kind",
  726. "columnName": "kind",
  727. "affinity": "TEXT",
  728. "notNull": false
  729. },
  730. {
  731. "fieldPath": "coverUrl",
  732. "columnName": "coverUrl",
  733. "affinity": "TEXT",
  734. "notNull": false
  735. },
  736. {
  737. "fieldPath": "intro",
  738. "columnName": "intro",
  739. "affinity": "TEXT",
  740. "notNull": false
  741. },
  742. {
  743. "fieldPath": "wordCount",
  744. "columnName": "wordCount",
  745. "affinity": "TEXT",
  746. "notNull": false
  747. },
  748. {
  749. "fieldPath": "latestChapterTitle",
  750. "columnName": "latestChapterTitle",
  751. "affinity": "TEXT",
  752. "notNull": false
  753. },
  754. {
  755. "fieldPath": "tocUrl",
  756. "columnName": "tocUrl",
  757. "affinity": "TEXT",
  758. "notNull": true
  759. },
  760. {
  761. "fieldPath": "time",
  762. "columnName": "time",
  763. "affinity": "INTEGER",
  764. "notNull": true
  765. },
  766. {
  767. "fieldPath": "variable",
  768. "columnName": "variable",
  769. "affinity": "TEXT",
  770. "notNull": false
  771. },
  772. {
  773. "fieldPath": "originOrder",
  774. "columnName": "originOrder",
  775. "affinity": "INTEGER",
  776. "notNull": true
  777. }
  778. ],
  779. "primaryKey": {
  780. "columnNames": [
  781. "bookUrl"
  782. ],
  783. "autoGenerate": false
  784. },
  785. "indices": [
  786. {
  787. "name": "index_searchBooks_bookUrl",
  788. "unique": true,
  789. "columnNames": [
  790. "bookUrl"
  791. ],
  792. "orders": [],
  793. "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_searchBooks_bookUrl` ON `${TABLE_NAME}` (`bookUrl`)"
  794. },
  795. {
  796. "name": "index_searchBooks_origin",
  797. "unique": false,
  798. "columnNames": [
  799. "origin"
  800. ],
  801. "orders": [],
  802. "createSql": "CREATE INDEX IF NOT EXISTS `index_searchBooks_origin` ON `${TABLE_NAME}` (`origin`)"
  803. }
  804. ],
  805. "foreignKeys": [
  806. {
  807. "table": "book_sources",
  808. "onDelete": "CASCADE",
  809. "onUpdate": "NO ACTION",
  810. "columns": [
  811. "origin"
  812. ],
  813. "referencedColumns": [
  814. "bookSourceUrl"
  815. ]
  816. }
  817. ]
  818. },
  819. {
  820. "tableName": "search_keywords",
  821. "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`word` TEXT NOT NULL, `usage` INTEGER NOT NULL, `lastUseTime` INTEGER NOT NULL, PRIMARY KEY(`word`))",
  822. "fields": [
  823. {
  824. "fieldPath": "word",
  825. "columnName": "word",
  826. "affinity": "TEXT",
  827. "notNull": true
  828. },
  829. {
  830. "fieldPath": "usage",
  831. "columnName": "usage",
  832. "affinity": "INTEGER",
  833. "notNull": true
  834. },
  835. {
  836. "fieldPath": "lastUseTime",
  837. "columnName": "lastUseTime",
  838. "affinity": "INTEGER",
  839. "notNull": true
  840. }
  841. ],
  842. "primaryKey": {
  843. "columnNames": [
  844. "word"
  845. ],
  846. "autoGenerate": false
  847. },
  848. "indices": [
  849. {
  850. "name": "index_search_keywords_word",
  851. "unique": true,
  852. "columnNames": [
  853. "word"
  854. ],
  855. "orders": [],
  856. "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_search_keywords_word` ON `${TABLE_NAME}` (`word`)"
  857. }
  858. ],
  859. "foreignKeys": []
  860. },
  861. {
  862. "tableName": "cookies",
  863. "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`url` TEXT NOT NULL, `cookie` TEXT NOT NULL, PRIMARY KEY(`url`))",
  864. "fields": [
  865. {
  866. "fieldPath": "url",
  867. "columnName": "url",
  868. "affinity": "TEXT",
  869. "notNull": true
  870. },
  871. {
  872. "fieldPath": "cookie",
  873. "columnName": "cookie",
  874. "affinity": "TEXT",
  875. "notNull": true
  876. }
  877. ],
  878. "primaryKey": {
  879. "columnNames": [
  880. "url"
  881. ],
  882. "autoGenerate": false
  883. },
  884. "indices": [
  885. {
  886. "name": "index_cookies_url",
  887. "unique": true,
  888. "columnNames": [
  889. "url"
  890. ],
  891. "orders": [],
  892. "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_cookies_url` ON `${TABLE_NAME}` (`url`)"
  893. }
  894. ],
  895. "foreignKeys": []
  896. },
  897. {
  898. "tableName": "rssSources",
  899. "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, `concurrentRate` TEXT, `header` TEXT, `loginUrl` TEXT, `loginUi` TEXT, `loginCheckJs` TEXT, `sortUrl` TEXT, `singleUrl` INTEGER NOT NULL, `articleStyle` INTEGER NOT NULL, `ruleArticles` TEXT, `ruleNextPage` TEXT, `ruleTitle` TEXT, `rulePubDate` TEXT, `ruleDescription` TEXT, `ruleImage` TEXT, `ruleLink` TEXT, `ruleContent` TEXT, `style` TEXT, `enableJs` INTEGER NOT NULL, `loadWithBaseUrl` INTEGER NOT NULL, `customOrder` INTEGER NOT NULL, PRIMARY KEY(`sourceUrl`))",
  900. "fields": [
  901. {
  902. "fieldPath": "sourceUrl",
  903. "columnName": "sourceUrl",
  904. "affinity": "TEXT",
  905. "notNull": true
  906. },
  907. {
  908. "fieldPath": "sourceName",
  909. "columnName": "sourceName",
  910. "affinity": "TEXT",
  911. "notNull": true
  912. },
  913. {
  914. "fieldPath": "sourceIcon",
  915. "columnName": "sourceIcon",
  916. "affinity": "TEXT",
  917. "notNull": true
  918. },
  919. {
  920. "fieldPath": "sourceGroup",
  921. "columnName": "sourceGroup",
  922. "affinity": "TEXT",
  923. "notNull": false
  924. },
  925. {
  926. "fieldPath": "sourceComment",
  927. "columnName": "sourceComment",
  928. "affinity": "TEXT",
  929. "notNull": false
  930. },
  931. {
  932. "fieldPath": "enabled",
  933. "columnName": "enabled",
  934. "affinity": "INTEGER",
  935. "notNull": true
  936. },
  937. {
  938. "fieldPath": "concurrentRate",
  939. "columnName": "concurrentRate",
  940. "affinity": "TEXT",
  941. "notNull": false
  942. },
  943. {
  944. "fieldPath": "header",
  945. "columnName": "header",
  946. "affinity": "TEXT",
  947. "notNull": false
  948. },
  949. {
  950. "fieldPath": "loginUrl",
  951. "columnName": "loginUrl",
  952. "affinity": "TEXT",
  953. "notNull": false
  954. },
  955. {
  956. "fieldPath": "loginUi",
  957. "columnName": "loginUi",
  958. "affinity": "TEXT",
  959. "notNull": false
  960. },
  961. {
  962. "fieldPath": "loginCheckJs",
  963. "columnName": "loginCheckJs",
  964. "affinity": "TEXT",
  965. "notNull": false
  966. },
  967. {
  968. "fieldPath": "sortUrl",
  969. "columnName": "sortUrl",
  970. "affinity": "TEXT",
  971. "notNull": false
  972. },
  973. {
  974. "fieldPath": "singleUrl",
  975. "columnName": "singleUrl",
  976. "affinity": "INTEGER",
  977. "notNull": true
  978. },
  979. {
  980. "fieldPath": "articleStyle",
  981. "columnName": "articleStyle",
  982. "affinity": "INTEGER",
  983. "notNull": true
  984. },
  985. {
  986. "fieldPath": "ruleArticles",
  987. "columnName": "ruleArticles",
  988. "affinity": "TEXT",
  989. "notNull": false
  990. },
  991. {
  992. "fieldPath": "ruleNextPage",
  993. "columnName": "ruleNextPage",
  994. "affinity": "TEXT",
  995. "notNull": false
  996. },
  997. {
  998. "fieldPath": "ruleTitle",
  999. "columnName": "ruleTitle",
  1000. "affinity": "TEXT",
  1001. "notNull": false
  1002. },
  1003. {
  1004. "fieldPath": "rulePubDate",
  1005. "columnName": "rulePubDate",
  1006. "affinity": "TEXT",
  1007. "notNull": false
  1008. },
  1009. {
  1010. "fieldPath": "ruleDescription",
  1011. "columnName": "ruleDescription",
  1012. "affinity": "TEXT",
  1013. "notNull": false
  1014. },
  1015. {
  1016. "fieldPath": "ruleImage",
  1017. "columnName": "ruleImage",
  1018. "affinity": "TEXT",
  1019. "notNull": false
  1020. },
  1021. {
  1022. "fieldPath": "ruleLink",
  1023. "columnName": "ruleLink",
  1024. "affinity": "TEXT",
  1025. "notNull": false
  1026. },
  1027. {
  1028. "fieldPath": "ruleContent",
  1029. "columnName": "ruleContent",
  1030. "affinity": "TEXT",
  1031. "notNull": false
  1032. },
  1033. {
  1034. "fieldPath": "style",
  1035. "columnName": "style",
  1036. "affinity": "TEXT",
  1037. "notNull": false
  1038. },
  1039. {
  1040. "fieldPath": "enableJs",
  1041. "columnName": "enableJs",
  1042. "affinity": "INTEGER",
  1043. "notNull": true
  1044. },
  1045. {
  1046. "fieldPath": "loadWithBaseUrl",
  1047. "columnName": "loadWithBaseUrl",
  1048. "affinity": "INTEGER",
  1049. "notNull": true
  1050. },
  1051. {
  1052. "fieldPath": "customOrder",
  1053. "columnName": "customOrder",
  1054. "affinity": "INTEGER",
  1055. "notNull": true
  1056. }
  1057. ],
  1058. "primaryKey": {
  1059. "columnNames": [
  1060. "sourceUrl"
  1061. ],
  1062. "autoGenerate": false
  1063. },
  1064. "indices": [
  1065. {
  1066. "name": "index_rssSources_sourceUrl",
  1067. "unique": false,
  1068. "columnNames": [
  1069. "sourceUrl"
  1070. ],
  1071. "orders": [],
  1072. "createSql": "CREATE INDEX IF NOT EXISTS `index_rssSources_sourceUrl` ON `${TABLE_NAME}` (`sourceUrl`)"
  1073. }
  1074. ],
  1075. "foreignKeys": []
  1076. },
  1077. {
  1078. "tableName": "bookmarks",
  1079. "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`))",
  1080. "fields": [
  1081. {
  1082. "fieldPath": "time",
  1083. "columnName": "time",
  1084. "affinity": "INTEGER",
  1085. "notNull": true
  1086. },
  1087. {
  1088. "fieldPath": "bookName",
  1089. "columnName": "bookName",
  1090. "affinity": "TEXT",
  1091. "notNull": true
  1092. },
  1093. {
  1094. "fieldPath": "bookAuthor",
  1095. "columnName": "bookAuthor",
  1096. "affinity": "TEXT",
  1097. "notNull": true
  1098. },
  1099. {
  1100. "fieldPath": "chapterIndex",
  1101. "columnName": "chapterIndex",
  1102. "affinity": "INTEGER",
  1103. "notNull": true
  1104. },
  1105. {
  1106. "fieldPath": "chapterPos",
  1107. "columnName": "chapterPos",
  1108. "affinity": "INTEGER",
  1109. "notNull": true
  1110. },
  1111. {
  1112. "fieldPath": "chapterName",
  1113. "columnName": "chapterName",
  1114. "affinity": "TEXT",
  1115. "notNull": true
  1116. },
  1117. {
  1118. "fieldPath": "bookText",
  1119. "columnName": "bookText",
  1120. "affinity": "TEXT",
  1121. "notNull": true
  1122. },
  1123. {
  1124. "fieldPath": "content",
  1125. "columnName": "content",
  1126. "affinity": "TEXT",
  1127. "notNull": true
  1128. }
  1129. ],
  1130. "primaryKey": {
  1131. "columnNames": [
  1132. "time"
  1133. ],
  1134. "autoGenerate": false
  1135. },
  1136. "indices": [
  1137. {
  1138. "name": "index_bookmarks_bookName_bookAuthor",
  1139. "unique": false,
  1140. "columnNames": [
  1141. "bookName",
  1142. "bookAuthor"
  1143. ],
  1144. "orders": [],
  1145. "createSql": "CREATE INDEX IF NOT EXISTS `index_bookmarks_bookName_bookAuthor` ON `${TABLE_NAME}` (`bookName`, `bookAuthor`)"
  1146. }
  1147. ],
  1148. "foreignKeys": []
  1149. },
  1150. {
  1151. "tableName": "rssArticles",
  1152. "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, `read` INTEGER NOT NULL, `variable` TEXT, PRIMARY KEY(`origin`, `link`))",
  1153. "fields": [
  1154. {
  1155. "fieldPath": "origin",
  1156. "columnName": "origin",
  1157. "affinity": "TEXT",
  1158. "notNull": true
  1159. },
  1160. {
  1161. "fieldPath": "sort",
  1162. "columnName": "sort",
  1163. "affinity": "TEXT",
  1164. "notNull": true
  1165. },
  1166. {
  1167. "fieldPath": "title",
  1168. "columnName": "title",
  1169. "affinity": "TEXT",
  1170. "notNull": true
  1171. },
  1172. {
  1173. "fieldPath": "order",
  1174. "columnName": "order",
  1175. "affinity": "INTEGER",
  1176. "notNull": true
  1177. },
  1178. {
  1179. "fieldPath": "link",
  1180. "columnName": "link",
  1181. "affinity": "TEXT",
  1182. "notNull": true
  1183. },
  1184. {
  1185. "fieldPath": "pubDate",
  1186. "columnName": "pubDate",
  1187. "affinity": "TEXT",
  1188. "notNull": false
  1189. },
  1190. {
  1191. "fieldPath": "description",
  1192. "columnName": "description",
  1193. "affinity": "TEXT",
  1194. "notNull": false
  1195. },
  1196. {
  1197. "fieldPath": "content",
  1198. "columnName": "content",
  1199. "affinity": "TEXT",
  1200. "notNull": false
  1201. },
  1202. {
  1203. "fieldPath": "image",
  1204. "columnName": "image",
  1205. "affinity": "TEXT",
  1206. "notNull": false
  1207. },
  1208. {
  1209. "fieldPath": "read",
  1210. "columnName": "read",
  1211. "affinity": "INTEGER",
  1212. "notNull": true
  1213. },
  1214. {
  1215. "fieldPath": "variable",
  1216. "columnName": "variable",
  1217. "affinity": "TEXT",
  1218. "notNull": false
  1219. }
  1220. ],
  1221. "primaryKey": {
  1222. "columnNames": [
  1223. "origin",
  1224. "link"
  1225. ],
  1226. "autoGenerate": false
  1227. },
  1228. "indices": [],
  1229. "foreignKeys": []
  1230. },
  1231. {
  1232. "tableName": "rssReadRecords",
  1233. "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`record` TEXT NOT NULL, `read` INTEGER NOT NULL, PRIMARY KEY(`record`))",
  1234. "fields": [
  1235. {
  1236. "fieldPath": "record",
  1237. "columnName": "record",
  1238. "affinity": "TEXT",
  1239. "notNull": true
  1240. },
  1241. {
  1242. "fieldPath": "read",
  1243. "columnName": "read",
  1244. "affinity": "INTEGER",
  1245. "notNull": true
  1246. }
  1247. ],
  1248. "primaryKey": {
  1249. "columnNames": [
  1250. "record"
  1251. ],
  1252. "autoGenerate": false
  1253. },
  1254. "indices": [],
  1255. "foreignKeys": []
  1256. },
  1257. {
  1258. "tableName": "rssStars",
  1259. "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, `variable` TEXT, PRIMARY KEY(`origin`, `link`))",
  1260. "fields": [
  1261. {
  1262. "fieldPath": "origin",
  1263. "columnName": "origin",
  1264. "affinity": "TEXT",
  1265. "notNull": true
  1266. },
  1267. {
  1268. "fieldPath": "sort",
  1269. "columnName": "sort",
  1270. "affinity": "TEXT",
  1271. "notNull": true
  1272. },
  1273. {
  1274. "fieldPath": "title",
  1275. "columnName": "title",
  1276. "affinity": "TEXT",
  1277. "notNull": true
  1278. },
  1279. {
  1280. "fieldPath": "starTime",
  1281. "columnName": "starTime",
  1282. "affinity": "INTEGER",
  1283. "notNull": true
  1284. },
  1285. {
  1286. "fieldPath": "link",
  1287. "columnName": "link",
  1288. "affinity": "TEXT",
  1289. "notNull": true
  1290. },
  1291. {
  1292. "fieldPath": "pubDate",
  1293. "columnName": "pubDate",
  1294. "affinity": "TEXT",
  1295. "notNull": false
  1296. },
  1297. {
  1298. "fieldPath": "description",
  1299. "columnName": "description",
  1300. "affinity": "TEXT",
  1301. "notNull": false
  1302. },
  1303. {
  1304. "fieldPath": "content",
  1305. "columnName": "content",
  1306. "affinity": "TEXT",
  1307. "notNull": false
  1308. },
  1309. {
  1310. "fieldPath": "image",
  1311. "columnName": "image",
  1312. "affinity": "TEXT",
  1313. "notNull": false
  1314. },
  1315. {
  1316. "fieldPath": "variable",
  1317. "columnName": "variable",
  1318. "affinity": "TEXT",
  1319. "notNull": false
  1320. }
  1321. ],
  1322. "primaryKey": {
  1323. "columnNames": [
  1324. "origin",
  1325. "link"
  1326. ],
  1327. "autoGenerate": false
  1328. },
  1329. "indices": [],
  1330. "foreignKeys": []
  1331. },
  1332. {
  1333. "tableName": "txtTocRules",
  1334. "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER NOT NULL, `name` TEXT NOT NULL, `rule` TEXT NOT NULL, `serialNumber` INTEGER NOT NULL, `enable` INTEGER NOT NULL, PRIMARY KEY(`id`))",
  1335. "fields": [
  1336. {
  1337. "fieldPath": "id",
  1338. "columnName": "id",
  1339. "affinity": "INTEGER",
  1340. "notNull": true
  1341. },
  1342. {
  1343. "fieldPath": "name",
  1344. "columnName": "name",
  1345. "affinity": "TEXT",
  1346. "notNull": true
  1347. },
  1348. {
  1349. "fieldPath": "rule",
  1350. "columnName": "rule",
  1351. "affinity": "TEXT",
  1352. "notNull": true
  1353. },
  1354. {
  1355. "fieldPath": "serialNumber",
  1356. "columnName": "serialNumber",
  1357. "affinity": "INTEGER",
  1358. "notNull": true
  1359. },
  1360. {
  1361. "fieldPath": "enable",
  1362. "columnName": "enable",
  1363. "affinity": "INTEGER",
  1364. "notNull": true
  1365. }
  1366. ],
  1367. "primaryKey": {
  1368. "columnNames": [
  1369. "id"
  1370. ],
  1371. "autoGenerate": false
  1372. },
  1373. "indices": [],
  1374. "foreignKeys": []
  1375. },
  1376. {
  1377. "tableName": "readRecord",
  1378. "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`deviceId` TEXT NOT NULL, `bookName` TEXT NOT NULL, `readTime` INTEGER NOT NULL, PRIMARY KEY(`deviceId`, `bookName`))",
  1379. "fields": [
  1380. {
  1381. "fieldPath": "deviceId",
  1382. "columnName": "deviceId",
  1383. "affinity": "TEXT",
  1384. "notNull": true
  1385. },
  1386. {
  1387. "fieldPath": "bookName",
  1388. "columnName": "bookName",
  1389. "affinity": "TEXT",
  1390. "notNull": true
  1391. },
  1392. {
  1393. "fieldPath": "readTime",
  1394. "columnName": "readTime",
  1395. "affinity": "INTEGER",
  1396. "notNull": true
  1397. }
  1398. ],
  1399. "primaryKey": {
  1400. "columnNames": [
  1401. "deviceId",
  1402. "bookName"
  1403. ],
  1404. "autoGenerate": false
  1405. },
  1406. "indices": [],
  1407. "foreignKeys": []
  1408. },
  1409. {
  1410. "tableName": "httpTTS",
  1411. "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, `loginCheckJs` TEXT, `lastUpdateTime` INTEGER NOT NULL DEFAULT 0, PRIMARY KEY(`id`))",
  1412. "fields": [
  1413. {
  1414. "fieldPath": "id",
  1415. "columnName": "id",
  1416. "affinity": "INTEGER",
  1417. "notNull": true
  1418. },
  1419. {
  1420. "fieldPath": "name",
  1421. "columnName": "name",
  1422. "affinity": "TEXT",
  1423. "notNull": true
  1424. },
  1425. {
  1426. "fieldPath": "url",
  1427. "columnName": "url",
  1428. "affinity": "TEXT",
  1429. "notNull": true
  1430. },
  1431. {
  1432. "fieldPath": "contentType",
  1433. "columnName": "contentType",
  1434. "affinity": "TEXT",
  1435. "notNull": false
  1436. },
  1437. {
  1438. "fieldPath": "concurrentRate",
  1439. "columnName": "concurrentRate",
  1440. "affinity": "TEXT",
  1441. "notNull": false,
  1442. "defaultValue": "'0'"
  1443. },
  1444. {
  1445. "fieldPath": "loginUrl",
  1446. "columnName": "loginUrl",
  1447. "affinity": "TEXT",
  1448. "notNull": false
  1449. },
  1450. {
  1451. "fieldPath": "loginUi",
  1452. "columnName": "loginUi",
  1453. "affinity": "TEXT",
  1454. "notNull": false
  1455. },
  1456. {
  1457. "fieldPath": "header",
  1458. "columnName": "header",
  1459. "affinity": "TEXT",
  1460. "notNull": false
  1461. },
  1462. {
  1463. "fieldPath": "loginCheckJs",
  1464. "columnName": "loginCheckJs",
  1465. "affinity": "TEXT",
  1466. "notNull": false
  1467. },
  1468. {
  1469. "fieldPath": "lastUpdateTime",
  1470. "columnName": "lastUpdateTime",
  1471. "affinity": "INTEGER",
  1472. "notNull": true,
  1473. "defaultValue": "0"
  1474. }
  1475. ],
  1476. "primaryKey": {
  1477. "columnNames": [
  1478. "id"
  1479. ],
  1480. "autoGenerate": false
  1481. },
  1482. "indices": [],
  1483. "foreignKeys": []
  1484. },
  1485. {
  1486. "tableName": "caches",
  1487. "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`key` TEXT NOT NULL, `value` TEXT, `deadline` INTEGER NOT NULL, PRIMARY KEY(`key`))",
  1488. "fields": [
  1489. {
  1490. "fieldPath": "key",
  1491. "columnName": "key",
  1492. "affinity": "TEXT",
  1493. "notNull": true
  1494. },
  1495. {
  1496. "fieldPath": "value",
  1497. "columnName": "value",
  1498. "affinity": "TEXT",
  1499. "notNull": false
  1500. },
  1501. {
  1502. "fieldPath": "deadline",
  1503. "columnName": "deadline",
  1504. "affinity": "INTEGER",
  1505. "notNull": true
  1506. }
  1507. ],
  1508. "primaryKey": {
  1509. "columnNames": [
  1510. "key"
  1511. ],
  1512. "autoGenerate": false
  1513. },
  1514. "indices": [
  1515. {
  1516. "name": "index_caches_key",
  1517. "unique": true,
  1518. "columnNames": [
  1519. "key"
  1520. ],
  1521. "orders": [],
  1522. "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_caches_key` ON `${TABLE_NAME}` (`key`)"
  1523. }
  1524. ],
  1525. "foreignKeys": []
  1526. },
  1527. {
  1528. "tableName": "ruleSubs",
  1529. "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`))",
  1530. "fields": [
  1531. {
  1532. "fieldPath": "id",
  1533. "columnName": "id",
  1534. "affinity": "INTEGER",
  1535. "notNull": true
  1536. },
  1537. {
  1538. "fieldPath": "name",
  1539. "columnName": "name",
  1540. "affinity": "TEXT",
  1541. "notNull": true
  1542. },
  1543. {
  1544. "fieldPath": "url",
  1545. "columnName": "url",
  1546. "affinity": "TEXT",
  1547. "notNull": true
  1548. },
  1549. {
  1550. "fieldPath": "type",
  1551. "columnName": "type",
  1552. "affinity": "INTEGER",
  1553. "notNull": true
  1554. },
  1555. {
  1556. "fieldPath": "customOrder",
  1557. "columnName": "customOrder",
  1558. "affinity": "INTEGER",
  1559. "notNull": true
  1560. },
  1561. {
  1562. "fieldPath": "autoUpdate",
  1563. "columnName": "autoUpdate",
  1564. "affinity": "INTEGER",
  1565. "notNull": true
  1566. },
  1567. {
  1568. "fieldPath": "update",
  1569. "columnName": "update",
  1570. "affinity": "INTEGER",
  1571. "notNull": true
  1572. }
  1573. ],
  1574. "primaryKey": {
  1575. "columnNames": [
  1576. "id"
  1577. ],
  1578. "autoGenerate": false
  1579. },
  1580. "indices": [],
  1581. "foreignKeys": []
  1582. },
  1583. {
  1584. "tableName": "keyboardAssists",
  1585. "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`))",
  1586. "fields": [
  1587. {
  1588. "fieldPath": "type",
  1589. "columnName": "type",
  1590. "affinity": "INTEGER",
  1591. "notNull": true,
  1592. "defaultValue": "0"
  1593. },
  1594. {
  1595. "fieldPath": "key",
  1596. "columnName": "key",
  1597. "affinity": "TEXT",
  1598. "notNull": true,
  1599. "defaultValue": "''"
  1600. },
  1601. {
  1602. "fieldPath": "value",
  1603. "columnName": "value",
  1604. "affinity": "TEXT",
  1605. "notNull": true,
  1606. "defaultValue": "''"
  1607. },
  1608. {
  1609. "fieldPath": "serialNo",
  1610. "columnName": "serialNo",
  1611. "affinity": "INTEGER",
  1612. "notNull": true,
  1613. "defaultValue": "0"
  1614. }
  1615. ],
  1616. "primaryKey": {
  1617. "columnNames": [
  1618. "type",
  1619. "key"
  1620. ],
  1621. "autoGenerate": false
  1622. },
  1623. "indices": [],
  1624. "foreignKeys": []
  1625. }
  1626. ],
  1627. "views": [],
  1628. "setupQueries": [
  1629. "CREATE TABLE IF NOT EXISTS room_master_table (id INTEGER PRIMARY KEY,identity_hash TEXT)",
  1630. "INSERT OR REPLACE INTO room_master_table (id,identity_hash) VALUES(42, '6348b1307bb9fb4f5482fb94a723338a')"
  1631. ]
  1632. }
  1633. }