47.json 48 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625
  1. {
  2. "formatVersion": 1,
  3. "database": {
  4. "version": 47,
  5. "identityHash": "985b7a8fbf3f49e6eb444e4f4472bdee",
  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, `loginUrl` TEXT, `loginUi` TEXT, `header` TEXT, `loginCheckJs` TEXT, 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. },
  1443. {
  1444. "fieldPath": "loginUrl",
  1445. "columnName": "loginUrl",
  1446. "affinity": "TEXT",
  1447. "notNull": false
  1448. },
  1449. {
  1450. "fieldPath": "loginUi",
  1451. "columnName": "loginUi",
  1452. "affinity": "TEXT",
  1453. "notNull": false
  1454. },
  1455. {
  1456. "fieldPath": "header",
  1457. "columnName": "header",
  1458. "affinity": "TEXT",
  1459. "notNull": false
  1460. },
  1461. {
  1462. "fieldPath": "loginCheckJs",
  1463. "columnName": "loginCheckJs",
  1464. "affinity": "TEXT",
  1465. "notNull": false
  1466. }
  1467. ],
  1468. "primaryKey": {
  1469. "columnNames": [
  1470. "id"
  1471. ],
  1472. "autoGenerate": false
  1473. },
  1474. "indices": [],
  1475. "foreignKeys": []
  1476. },
  1477. {
  1478. "tableName": "caches",
  1479. "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`key` TEXT NOT NULL, `value` TEXT, `deadline` INTEGER NOT NULL, PRIMARY KEY(`key`))",
  1480. "fields": [
  1481. {
  1482. "fieldPath": "key",
  1483. "columnName": "key",
  1484. "affinity": "TEXT",
  1485. "notNull": true
  1486. },
  1487. {
  1488. "fieldPath": "value",
  1489. "columnName": "value",
  1490. "affinity": "TEXT",
  1491. "notNull": false
  1492. },
  1493. {
  1494. "fieldPath": "deadline",
  1495. "columnName": "deadline",
  1496. "affinity": "INTEGER",
  1497. "notNull": true
  1498. }
  1499. ],
  1500. "primaryKey": {
  1501. "columnNames": [
  1502. "key"
  1503. ],
  1504. "autoGenerate": false
  1505. },
  1506. "indices": [
  1507. {
  1508. "name": "index_caches_key",
  1509. "unique": true,
  1510. "columnNames": [
  1511. "key"
  1512. ],
  1513. "orders": [],
  1514. "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_caches_key` ON `${TABLE_NAME}` (`key`)"
  1515. }
  1516. ],
  1517. "foreignKeys": []
  1518. },
  1519. {
  1520. "tableName": "ruleSubs",
  1521. "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`))",
  1522. "fields": [
  1523. {
  1524. "fieldPath": "id",
  1525. "columnName": "id",
  1526. "affinity": "INTEGER",
  1527. "notNull": true
  1528. },
  1529. {
  1530. "fieldPath": "name",
  1531. "columnName": "name",
  1532. "affinity": "TEXT",
  1533. "notNull": true
  1534. },
  1535. {
  1536. "fieldPath": "url",
  1537. "columnName": "url",
  1538. "affinity": "TEXT",
  1539. "notNull": true
  1540. },
  1541. {
  1542. "fieldPath": "type",
  1543. "columnName": "type",
  1544. "affinity": "INTEGER",
  1545. "notNull": true
  1546. },
  1547. {
  1548. "fieldPath": "customOrder",
  1549. "columnName": "customOrder",
  1550. "affinity": "INTEGER",
  1551. "notNull": true
  1552. },
  1553. {
  1554. "fieldPath": "autoUpdate",
  1555. "columnName": "autoUpdate",
  1556. "affinity": "INTEGER",
  1557. "notNull": true
  1558. },
  1559. {
  1560. "fieldPath": "update",
  1561. "columnName": "update",
  1562. "affinity": "INTEGER",
  1563. "notNull": true
  1564. }
  1565. ],
  1566. "primaryKey": {
  1567. "columnNames": [
  1568. "id"
  1569. ],
  1570. "autoGenerate": false
  1571. },
  1572. "indices": [],
  1573. "foreignKeys": []
  1574. },
  1575. {
  1576. "tableName": "keyboardAssists",
  1577. "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`))",
  1578. "fields": [
  1579. {
  1580. "fieldPath": "type",
  1581. "columnName": "type",
  1582. "affinity": "INTEGER",
  1583. "notNull": true,
  1584. "defaultValue": "0"
  1585. },
  1586. {
  1587. "fieldPath": "key",
  1588. "columnName": "key",
  1589. "affinity": "TEXT",
  1590. "notNull": true,
  1591. "defaultValue": "''"
  1592. },
  1593. {
  1594. "fieldPath": "value",
  1595. "columnName": "value",
  1596. "affinity": "TEXT",
  1597. "notNull": true,
  1598. "defaultValue": "''"
  1599. },
  1600. {
  1601. "fieldPath": "serialNo",
  1602. "columnName": "serialNo",
  1603. "affinity": "INTEGER",
  1604. "notNull": true,
  1605. "defaultValue": "0"
  1606. }
  1607. ],
  1608. "primaryKey": {
  1609. "columnNames": [
  1610. "type",
  1611. "key"
  1612. ],
  1613. "autoGenerate": false
  1614. },
  1615. "indices": [],
  1616. "foreignKeys": []
  1617. }
  1618. ],
  1619. "views": [],
  1620. "setupQueries": [
  1621. "CREATE TABLE IF NOT EXISTS room_master_table (id INTEGER PRIMARY KEY,identity_hash TEXT)",
  1622. "INSERT OR REPLACE INTO room_master_table (id,identity_hash) VALUES(42, '985b7a8fbf3f49e6eb444e4f4472bdee')"
  1623. ]
  1624. }
  1625. }