45.json 48 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618
  1. {
  2. "formatVersion": 1,
  3. "database": {
  4. "version": 45,
  5. "identityHash": "63272539e04e405abfd79e27ea55db75",
  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, `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": "order",
  652. "columnName": "sortOrder",
  653. "affinity": "INTEGER",
  654. "notNull": true,
  655. "defaultValue": "0"
  656. }
  657. ],
  658. "primaryKey": {
  659. "columnNames": [
  660. "id"
  661. ],
  662. "autoGenerate": true
  663. },
  664. "indices": [
  665. {
  666. "name": "index_replace_rules_id",
  667. "unique": false,
  668. "columnNames": [
  669. "id"
  670. ],
  671. "orders": [],
  672. "createSql": "CREATE INDEX IF NOT EXISTS `index_replace_rules_id` ON `${TABLE_NAME}` (`id`)"
  673. }
  674. ],
  675. "foreignKeys": []
  676. },
  677. {
  678. "tableName": "searchBooks",
  679. "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 )",
  680. "fields": [
  681. {
  682. "fieldPath": "bookUrl",
  683. "columnName": "bookUrl",
  684. "affinity": "TEXT",
  685. "notNull": true
  686. },
  687. {
  688. "fieldPath": "origin",
  689. "columnName": "origin",
  690. "affinity": "TEXT",
  691. "notNull": true
  692. },
  693. {
  694. "fieldPath": "originName",
  695. "columnName": "originName",
  696. "affinity": "TEXT",
  697. "notNull": true
  698. },
  699. {
  700. "fieldPath": "type",
  701. "columnName": "type",
  702. "affinity": "INTEGER",
  703. "notNull": true
  704. },
  705. {
  706. "fieldPath": "name",
  707. "columnName": "name",
  708. "affinity": "TEXT",
  709. "notNull": true
  710. },
  711. {
  712. "fieldPath": "author",
  713. "columnName": "author",
  714. "affinity": "TEXT",
  715. "notNull": true
  716. },
  717. {
  718. "fieldPath": "kind",
  719. "columnName": "kind",
  720. "affinity": "TEXT",
  721. "notNull": false
  722. },
  723. {
  724. "fieldPath": "coverUrl",
  725. "columnName": "coverUrl",
  726. "affinity": "TEXT",
  727. "notNull": false
  728. },
  729. {
  730. "fieldPath": "intro",
  731. "columnName": "intro",
  732. "affinity": "TEXT",
  733. "notNull": false
  734. },
  735. {
  736. "fieldPath": "wordCount",
  737. "columnName": "wordCount",
  738. "affinity": "TEXT",
  739. "notNull": false
  740. },
  741. {
  742. "fieldPath": "latestChapterTitle",
  743. "columnName": "latestChapterTitle",
  744. "affinity": "TEXT",
  745. "notNull": false
  746. },
  747. {
  748. "fieldPath": "tocUrl",
  749. "columnName": "tocUrl",
  750. "affinity": "TEXT",
  751. "notNull": true
  752. },
  753. {
  754. "fieldPath": "time",
  755. "columnName": "time",
  756. "affinity": "INTEGER",
  757. "notNull": true
  758. },
  759. {
  760. "fieldPath": "variable",
  761. "columnName": "variable",
  762. "affinity": "TEXT",
  763. "notNull": false
  764. },
  765. {
  766. "fieldPath": "originOrder",
  767. "columnName": "originOrder",
  768. "affinity": "INTEGER",
  769. "notNull": true
  770. }
  771. ],
  772. "primaryKey": {
  773. "columnNames": [
  774. "bookUrl"
  775. ],
  776. "autoGenerate": false
  777. },
  778. "indices": [
  779. {
  780. "name": "index_searchBooks_bookUrl",
  781. "unique": true,
  782. "columnNames": [
  783. "bookUrl"
  784. ],
  785. "orders": [],
  786. "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_searchBooks_bookUrl` ON `${TABLE_NAME}` (`bookUrl`)"
  787. },
  788. {
  789. "name": "index_searchBooks_origin",
  790. "unique": false,
  791. "columnNames": [
  792. "origin"
  793. ],
  794. "orders": [],
  795. "createSql": "CREATE INDEX IF NOT EXISTS `index_searchBooks_origin` ON `${TABLE_NAME}` (`origin`)"
  796. }
  797. ],
  798. "foreignKeys": [
  799. {
  800. "table": "book_sources",
  801. "onDelete": "CASCADE",
  802. "onUpdate": "NO ACTION",
  803. "columns": [
  804. "origin"
  805. ],
  806. "referencedColumns": [
  807. "bookSourceUrl"
  808. ]
  809. }
  810. ]
  811. },
  812. {
  813. "tableName": "search_keywords",
  814. "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`word` TEXT NOT NULL, `usage` INTEGER NOT NULL, `lastUseTime` INTEGER NOT NULL, PRIMARY KEY(`word`))",
  815. "fields": [
  816. {
  817. "fieldPath": "word",
  818. "columnName": "word",
  819. "affinity": "TEXT",
  820. "notNull": true
  821. },
  822. {
  823. "fieldPath": "usage",
  824. "columnName": "usage",
  825. "affinity": "INTEGER",
  826. "notNull": true
  827. },
  828. {
  829. "fieldPath": "lastUseTime",
  830. "columnName": "lastUseTime",
  831. "affinity": "INTEGER",
  832. "notNull": true
  833. }
  834. ],
  835. "primaryKey": {
  836. "columnNames": [
  837. "word"
  838. ],
  839. "autoGenerate": false
  840. },
  841. "indices": [
  842. {
  843. "name": "index_search_keywords_word",
  844. "unique": true,
  845. "columnNames": [
  846. "word"
  847. ],
  848. "orders": [],
  849. "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_search_keywords_word` ON `${TABLE_NAME}` (`word`)"
  850. }
  851. ],
  852. "foreignKeys": []
  853. },
  854. {
  855. "tableName": "cookies",
  856. "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`url` TEXT NOT NULL, `cookie` TEXT NOT NULL, PRIMARY KEY(`url`))",
  857. "fields": [
  858. {
  859. "fieldPath": "url",
  860. "columnName": "url",
  861. "affinity": "TEXT",
  862. "notNull": true
  863. },
  864. {
  865. "fieldPath": "cookie",
  866. "columnName": "cookie",
  867. "affinity": "TEXT",
  868. "notNull": true
  869. }
  870. ],
  871. "primaryKey": {
  872. "columnNames": [
  873. "url"
  874. ],
  875. "autoGenerate": false
  876. },
  877. "indices": [
  878. {
  879. "name": "index_cookies_url",
  880. "unique": true,
  881. "columnNames": [
  882. "url"
  883. ],
  884. "orders": [],
  885. "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_cookies_url` ON `${TABLE_NAME}` (`url`)"
  886. }
  887. ],
  888. "foreignKeys": []
  889. },
  890. {
  891. "tableName": "rssSources",
  892. "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`))",
  893. "fields": [
  894. {
  895. "fieldPath": "sourceUrl",
  896. "columnName": "sourceUrl",
  897. "affinity": "TEXT",
  898. "notNull": true
  899. },
  900. {
  901. "fieldPath": "sourceName",
  902. "columnName": "sourceName",
  903. "affinity": "TEXT",
  904. "notNull": true
  905. },
  906. {
  907. "fieldPath": "sourceIcon",
  908. "columnName": "sourceIcon",
  909. "affinity": "TEXT",
  910. "notNull": true
  911. },
  912. {
  913. "fieldPath": "sourceGroup",
  914. "columnName": "sourceGroup",
  915. "affinity": "TEXT",
  916. "notNull": false
  917. },
  918. {
  919. "fieldPath": "sourceComment",
  920. "columnName": "sourceComment",
  921. "affinity": "TEXT",
  922. "notNull": false
  923. },
  924. {
  925. "fieldPath": "enabled",
  926. "columnName": "enabled",
  927. "affinity": "INTEGER",
  928. "notNull": true
  929. },
  930. {
  931. "fieldPath": "concurrentRate",
  932. "columnName": "concurrentRate",
  933. "affinity": "TEXT",
  934. "notNull": false
  935. },
  936. {
  937. "fieldPath": "header",
  938. "columnName": "header",
  939. "affinity": "TEXT",
  940. "notNull": false
  941. },
  942. {
  943. "fieldPath": "loginUrl",
  944. "columnName": "loginUrl",
  945. "affinity": "TEXT",
  946. "notNull": false
  947. },
  948. {
  949. "fieldPath": "loginUi",
  950. "columnName": "loginUi",
  951. "affinity": "TEXT",
  952. "notNull": false
  953. },
  954. {
  955. "fieldPath": "loginCheckJs",
  956. "columnName": "loginCheckJs",
  957. "affinity": "TEXT",
  958. "notNull": false
  959. },
  960. {
  961. "fieldPath": "sortUrl",
  962. "columnName": "sortUrl",
  963. "affinity": "TEXT",
  964. "notNull": false
  965. },
  966. {
  967. "fieldPath": "singleUrl",
  968. "columnName": "singleUrl",
  969. "affinity": "INTEGER",
  970. "notNull": true
  971. },
  972. {
  973. "fieldPath": "articleStyle",
  974. "columnName": "articleStyle",
  975. "affinity": "INTEGER",
  976. "notNull": true
  977. },
  978. {
  979. "fieldPath": "ruleArticles",
  980. "columnName": "ruleArticles",
  981. "affinity": "TEXT",
  982. "notNull": false
  983. },
  984. {
  985. "fieldPath": "ruleNextPage",
  986. "columnName": "ruleNextPage",
  987. "affinity": "TEXT",
  988. "notNull": false
  989. },
  990. {
  991. "fieldPath": "ruleTitle",
  992. "columnName": "ruleTitle",
  993. "affinity": "TEXT",
  994. "notNull": false
  995. },
  996. {
  997. "fieldPath": "rulePubDate",
  998. "columnName": "rulePubDate",
  999. "affinity": "TEXT",
  1000. "notNull": false
  1001. },
  1002. {
  1003. "fieldPath": "ruleDescription",
  1004. "columnName": "ruleDescription",
  1005. "affinity": "TEXT",
  1006. "notNull": false
  1007. },
  1008. {
  1009. "fieldPath": "ruleImage",
  1010. "columnName": "ruleImage",
  1011. "affinity": "TEXT",
  1012. "notNull": false
  1013. },
  1014. {
  1015. "fieldPath": "ruleLink",
  1016. "columnName": "ruleLink",
  1017. "affinity": "TEXT",
  1018. "notNull": false
  1019. },
  1020. {
  1021. "fieldPath": "ruleContent",
  1022. "columnName": "ruleContent",
  1023. "affinity": "TEXT",
  1024. "notNull": false
  1025. },
  1026. {
  1027. "fieldPath": "style",
  1028. "columnName": "style",
  1029. "affinity": "TEXT",
  1030. "notNull": false
  1031. },
  1032. {
  1033. "fieldPath": "enableJs",
  1034. "columnName": "enableJs",
  1035. "affinity": "INTEGER",
  1036. "notNull": true
  1037. },
  1038. {
  1039. "fieldPath": "loadWithBaseUrl",
  1040. "columnName": "loadWithBaseUrl",
  1041. "affinity": "INTEGER",
  1042. "notNull": true
  1043. },
  1044. {
  1045. "fieldPath": "customOrder",
  1046. "columnName": "customOrder",
  1047. "affinity": "INTEGER",
  1048. "notNull": true
  1049. }
  1050. ],
  1051. "primaryKey": {
  1052. "columnNames": [
  1053. "sourceUrl"
  1054. ],
  1055. "autoGenerate": false
  1056. },
  1057. "indices": [
  1058. {
  1059. "name": "index_rssSources_sourceUrl",
  1060. "unique": false,
  1061. "columnNames": [
  1062. "sourceUrl"
  1063. ],
  1064. "orders": [],
  1065. "createSql": "CREATE INDEX IF NOT EXISTS `index_rssSources_sourceUrl` ON `${TABLE_NAME}` (`sourceUrl`)"
  1066. }
  1067. ],
  1068. "foreignKeys": []
  1069. },
  1070. {
  1071. "tableName": "bookmarks",
  1072. "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`))",
  1073. "fields": [
  1074. {
  1075. "fieldPath": "time",
  1076. "columnName": "time",
  1077. "affinity": "INTEGER",
  1078. "notNull": true
  1079. },
  1080. {
  1081. "fieldPath": "bookName",
  1082. "columnName": "bookName",
  1083. "affinity": "TEXT",
  1084. "notNull": true
  1085. },
  1086. {
  1087. "fieldPath": "bookAuthor",
  1088. "columnName": "bookAuthor",
  1089. "affinity": "TEXT",
  1090. "notNull": true
  1091. },
  1092. {
  1093. "fieldPath": "chapterIndex",
  1094. "columnName": "chapterIndex",
  1095. "affinity": "INTEGER",
  1096. "notNull": true
  1097. },
  1098. {
  1099. "fieldPath": "chapterPos",
  1100. "columnName": "chapterPos",
  1101. "affinity": "INTEGER",
  1102. "notNull": true
  1103. },
  1104. {
  1105. "fieldPath": "chapterName",
  1106. "columnName": "chapterName",
  1107. "affinity": "TEXT",
  1108. "notNull": true
  1109. },
  1110. {
  1111. "fieldPath": "bookText",
  1112. "columnName": "bookText",
  1113. "affinity": "TEXT",
  1114. "notNull": true
  1115. },
  1116. {
  1117. "fieldPath": "content",
  1118. "columnName": "content",
  1119. "affinity": "TEXT",
  1120. "notNull": true
  1121. }
  1122. ],
  1123. "primaryKey": {
  1124. "columnNames": [
  1125. "time"
  1126. ],
  1127. "autoGenerate": false
  1128. },
  1129. "indices": [
  1130. {
  1131. "name": "index_bookmarks_bookName_bookAuthor",
  1132. "unique": false,
  1133. "columnNames": [
  1134. "bookName",
  1135. "bookAuthor"
  1136. ],
  1137. "orders": [],
  1138. "createSql": "CREATE INDEX IF NOT EXISTS `index_bookmarks_bookName_bookAuthor` ON `${TABLE_NAME}` (`bookName`, `bookAuthor`)"
  1139. }
  1140. ],
  1141. "foreignKeys": []
  1142. },
  1143. {
  1144. "tableName": "rssArticles",
  1145. "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`))",
  1146. "fields": [
  1147. {
  1148. "fieldPath": "origin",
  1149. "columnName": "origin",
  1150. "affinity": "TEXT",
  1151. "notNull": true
  1152. },
  1153. {
  1154. "fieldPath": "sort",
  1155. "columnName": "sort",
  1156. "affinity": "TEXT",
  1157. "notNull": true
  1158. },
  1159. {
  1160. "fieldPath": "title",
  1161. "columnName": "title",
  1162. "affinity": "TEXT",
  1163. "notNull": true
  1164. },
  1165. {
  1166. "fieldPath": "order",
  1167. "columnName": "order",
  1168. "affinity": "INTEGER",
  1169. "notNull": true
  1170. },
  1171. {
  1172. "fieldPath": "link",
  1173. "columnName": "link",
  1174. "affinity": "TEXT",
  1175. "notNull": true
  1176. },
  1177. {
  1178. "fieldPath": "pubDate",
  1179. "columnName": "pubDate",
  1180. "affinity": "TEXT",
  1181. "notNull": false
  1182. },
  1183. {
  1184. "fieldPath": "description",
  1185. "columnName": "description",
  1186. "affinity": "TEXT",
  1187. "notNull": false
  1188. },
  1189. {
  1190. "fieldPath": "content",
  1191. "columnName": "content",
  1192. "affinity": "TEXT",
  1193. "notNull": false
  1194. },
  1195. {
  1196. "fieldPath": "image",
  1197. "columnName": "image",
  1198. "affinity": "TEXT",
  1199. "notNull": false
  1200. },
  1201. {
  1202. "fieldPath": "read",
  1203. "columnName": "read",
  1204. "affinity": "INTEGER",
  1205. "notNull": true
  1206. },
  1207. {
  1208. "fieldPath": "variable",
  1209. "columnName": "variable",
  1210. "affinity": "TEXT",
  1211. "notNull": false
  1212. }
  1213. ],
  1214. "primaryKey": {
  1215. "columnNames": [
  1216. "origin",
  1217. "link"
  1218. ],
  1219. "autoGenerate": false
  1220. },
  1221. "indices": [],
  1222. "foreignKeys": []
  1223. },
  1224. {
  1225. "tableName": "rssReadRecords",
  1226. "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`record` TEXT NOT NULL, `read` INTEGER NOT NULL, PRIMARY KEY(`record`))",
  1227. "fields": [
  1228. {
  1229. "fieldPath": "record",
  1230. "columnName": "record",
  1231. "affinity": "TEXT",
  1232. "notNull": true
  1233. },
  1234. {
  1235. "fieldPath": "read",
  1236. "columnName": "read",
  1237. "affinity": "INTEGER",
  1238. "notNull": true
  1239. }
  1240. ],
  1241. "primaryKey": {
  1242. "columnNames": [
  1243. "record"
  1244. ],
  1245. "autoGenerate": false
  1246. },
  1247. "indices": [],
  1248. "foreignKeys": []
  1249. },
  1250. {
  1251. "tableName": "rssStars",
  1252. "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`))",
  1253. "fields": [
  1254. {
  1255. "fieldPath": "origin",
  1256. "columnName": "origin",
  1257. "affinity": "TEXT",
  1258. "notNull": true
  1259. },
  1260. {
  1261. "fieldPath": "sort",
  1262. "columnName": "sort",
  1263. "affinity": "TEXT",
  1264. "notNull": true
  1265. },
  1266. {
  1267. "fieldPath": "title",
  1268. "columnName": "title",
  1269. "affinity": "TEXT",
  1270. "notNull": true
  1271. },
  1272. {
  1273. "fieldPath": "starTime",
  1274. "columnName": "starTime",
  1275. "affinity": "INTEGER",
  1276. "notNull": true
  1277. },
  1278. {
  1279. "fieldPath": "link",
  1280. "columnName": "link",
  1281. "affinity": "TEXT",
  1282. "notNull": true
  1283. },
  1284. {
  1285. "fieldPath": "pubDate",
  1286. "columnName": "pubDate",
  1287. "affinity": "TEXT",
  1288. "notNull": false
  1289. },
  1290. {
  1291. "fieldPath": "description",
  1292. "columnName": "description",
  1293. "affinity": "TEXT",
  1294. "notNull": false
  1295. },
  1296. {
  1297. "fieldPath": "content",
  1298. "columnName": "content",
  1299. "affinity": "TEXT",
  1300. "notNull": false
  1301. },
  1302. {
  1303. "fieldPath": "image",
  1304. "columnName": "image",
  1305. "affinity": "TEXT",
  1306. "notNull": false
  1307. },
  1308. {
  1309. "fieldPath": "variable",
  1310. "columnName": "variable",
  1311. "affinity": "TEXT",
  1312. "notNull": false
  1313. }
  1314. ],
  1315. "primaryKey": {
  1316. "columnNames": [
  1317. "origin",
  1318. "link"
  1319. ],
  1320. "autoGenerate": false
  1321. },
  1322. "indices": [],
  1323. "foreignKeys": []
  1324. },
  1325. {
  1326. "tableName": "txtTocRules",
  1327. "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`))",
  1328. "fields": [
  1329. {
  1330. "fieldPath": "id",
  1331. "columnName": "id",
  1332. "affinity": "INTEGER",
  1333. "notNull": true
  1334. },
  1335. {
  1336. "fieldPath": "name",
  1337. "columnName": "name",
  1338. "affinity": "TEXT",
  1339. "notNull": true
  1340. },
  1341. {
  1342. "fieldPath": "rule",
  1343. "columnName": "rule",
  1344. "affinity": "TEXT",
  1345. "notNull": true
  1346. },
  1347. {
  1348. "fieldPath": "serialNumber",
  1349. "columnName": "serialNumber",
  1350. "affinity": "INTEGER",
  1351. "notNull": true
  1352. },
  1353. {
  1354. "fieldPath": "enable",
  1355. "columnName": "enable",
  1356. "affinity": "INTEGER",
  1357. "notNull": true
  1358. }
  1359. ],
  1360. "primaryKey": {
  1361. "columnNames": [
  1362. "id"
  1363. ],
  1364. "autoGenerate": false
  1365. },
  1366. "indices": [],
  1367. "foreignKeys": []
  1368. },
  1369. {
  1370. "tableName": "readRecord",
  1371. "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`deviceId` TEXT NOT NULL, `bookName` TEXT NOT NULL, `readTime` INTEGER NOT NULL, PRIMARY KEY(`deviceId`, `bookName`))",
  1372. "fields": [
  1373. {
  1374. "fieldPath": "deviceId",
  1375. "columnName": "deviceId",
  1376. "affinity": "TEXT",
  1377. "notNull": true
  1378. },
  1379. {
  1380. "fieldPath": "bookName",
  1381. "columnName": "bookName",
  1382. "affinity": "TEXT",
  1383. "notNull": true
  1384. },
  1385. {
  1386. "fieldPath": "readTime",
  1387. "columnName": "readTime",
  1388. "affinity": "INTEGER",
  1389. "notNull": true
  1390. }
  1391. ],
  1392. "primaryKey": {
  1393. "columnNames": [
  1394. "deviceId",
  1395. "bookName"
  1396. ],
  1397. "autoGenerate": false
  1398. },
  1399. "indices": [],
  1400. "foreignKeys": []
  1401. },
  1402. {
  1403. "tableName": "httpTTS",
  1404. "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER NOT NULL, `name` TEXT NOT NULL, `url` TEXT NOT NULL, `contentType` TEXT, `concurrentRate` TEXT, `loginUrl` TEXT, `loginUi` TEXT, `header` TEXT, `loginCheckJs` TEXT, PRIMARY KEY(`id`))",
  1405. "fields": [
  1406. {
  1407. "fieldPath": "id",
  1408. "columnName": "id",
  1409. "affinity": "INTEGER",
  1410. "notNull": true
  1411. },
  1412. {
  1413. "fieldPath": "name",
  1414. "columnName": "name",
  1415. "affinity": "TEXT",
  1416. "notNull": true
  1417. },
  1418. {
  1419. "fieldPath": "url",
  1420. "columnName": "url",
  1421. "affinity": "TEXT",
  1422. "notNull": true
  1423. },
  1424. {
  1425. "fieldPath": "contentType",
  1426. "columnName": "contentType",
  1427. "affinity": "TEXT",
  1428. "notNull": false
  1429. },
  1430. {
  1431. "fieldPath": "concurrentRate",
  1432. "columnName": "concurrentRate",
  1433. "affinity": "TEXT",
  1434. "notNull": false
  1435. },
  1436. {
  1437. "fieldPath": "loginUrl",
  1438. "columnName": "loginUrl",
  1439. "affinity": "TEXT",
  1440. "notNull": false
  1441. },
  1442. {
  1443. "fieldPath": "loginUi",
  1444. "columnName": "loginUi",
  1445. "affinity": "TEXT",
  1446. "notNull": false
  1447. },
  1448. {
  1449. "fieldPath": "header",
  1450. "columnName": "header",
  1451. "affinity": "TEXT",
  1452. "notNull": false
  1453. },
  1454. {
  1455. "fieldPath": "loginCheckJs",
  1456. "columnName": "loginCheckJs",
  1457. "affinity": "TEXT",
  1458. "notNull": false
  1459. }
  1460. ],
  1461. "primaryKey": {
  1462. "columnNames": [
  1463. "id"
  1464. ],
  1465. "autoGenerate": false
  1466. },
  1467. "indices": [],
  1468. "foreignKeys": []
  1469. },
  1470. {
  1471. "tableName": "caches",
  1472. "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`key` TEXT NOT NULL, `value` TEXT, `deadline` INTEGER NOT NULL, PRIMARY KEY(`key`))",
  1473. "fields": [
  1474. {
  1475. "fieldPath": "key",
  1476. "columnName": "key",
  1477. "affinity": "TEXT",
  1478. "notNull": true
  1479. },
  1480. {
  1481. "fieldPath": "value",
  1482. "columnName": "value",
  1483. "affinity": "TEXT",
  1484. "notNull": false
  1485. },
  1486. {
  1487. "fieldPath": "deadline",
  1488. "columnName": "deadline",
  1489. "affinity": "INTEGER",
  1490. "notNull": true
  1491. }
  1492. ],
  1493. "primaryKey": {
  1494. "columnNames": [
  1495. "key"
  1496. ],
  1497. "autoGenerate": false
  1498. },
  1499. "indices": [
  1500. {
  1501. "name": "index_caches_key",
  1502. "unique": true,
  1503. "columnNames": [
  1504. "key"
  1505. ],
  1506. "orders": [],
  1507. "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_caches_key` ON `${TABLE_NAME}` (`key`)"
  1508. }
  1509. ],
  1510. "foreignKeys": []
  1511. },
  1512. {
  1513. "tableName": "ruleSubs",
  1514. "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`))",
  1515. "fields": [
  1516. {
  1517. "fieldPath": "id",
  1518. "columnName": "id",
  1519. "affinity": "INTEGER",
  1520. "notNull": true
  1521. },
  1522. {
  1523. "fieldPath": "name",
  1524. "columnName": "name",
  1525. "affinity": "TEXT",
  1526. "notNull": true
  1527. },
  1528. {
  1529. "fieldPath": "url",
  1530. "columnName": "url",
  1531. "affinity": "TEXT",
  1532. "notNull": true
  1533. },
  1534. {
  1535. "fieldPath": "type",
  1536. "columnName": "type",
  1537. "affinity": "INTEGER",
  1538. "notNull": true
  1539. },
  1540. {
  1541. "fieldPath": "customOrder",
  1542. "columnName": "customOrder",
  1543. "affinity": "INTEGER",
  1544. "notNull": true
  1545. },
  1546. {
  1547. "fieldPath": "autoUpdate",
  1548. "columnName": "autoUpdate",
  1549. "affinity": "INTEGER",
  1550. "notNull": true
  1551. },
  1552. {
  1553. "fieldPath": "update",
  1554. "columnName": "update",
  1555. "affinity": "INTEGER",
  1556. "notNull": true
  1557. }
  1558. ],
  1559. "primaryKey": {
  1560. "columnNames": [
  1561. "id"
  1562. ],
  1563. "autoGenerate": false
  1564. },
  1565. "indices": [],
  1566. "foreignKeys": []
  1567. },
  1568. {
  1569. "tableName": "keyboardAssists",
  1570. "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`))",
  1571. "fields": [
  1572. {
  1573. "fieldPath": "type",
  1574. "columnName": "type",
  1575. "affinity": "INTEGER",
  1576. "notNull": true,
  1577. "defaultValue": "0"
  1578. },
  1579. {
  1580. "fieldPath": "key",
  1581. "columnName": "key",
  1582. "affinity": "TEXT",
  1583. "notNull": true,
  1584. "defaultValue": "''"
  1585. },
  1586. {
  1587. "fieldPath": "value",
  1588. "columnName": "value",
  1589. "affinity": "TEXT",
  1590. "notNull": true,
  1591. "defaultValue": "''"
  1592. },
  1593. {
  1594. "fieldPath": "serialNo",
  1595. "columnName": "serialNo",
  1596. "affinity": "INTEGER",
  1597. "notNull": true,
  1598. "defaultValue": "0"
  1599. }
  1600. ],
  1601. "primaryKey": {
  1602. "columnNames": [
  1603. "type",
  1604. "key"
  1605. ],
  1606. "autoGenerate": false
  1607. },
  1608. "indices": [],
  1609. "foreignKeys": []
  1610. }
  1611. ],
  1612. "views": [],
  1613. "setupQueries": [
  1614. "CREATE TABLE IF NOT EXISTS room_master_table (id INTEGER PRIMARY KEY,identity_hash TEXT)",
  1615. "INSERT OR REPLACE INTO room_master_table (id,identity_hash) VALUES(42, '63272539e04e405abfd79e27ea55db75')"
  1616. ]
  1617. }
  1618. }