96.json 136 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408
  1. {
  2. "formatVersion": 1,
  3. "database": {
  4. "version": 96,
  5. "identityHash": "e0461f0c22e57cbd4ed01c2628df8a71",
  6. "entities": [
  7. {
  8. "tableName": "books",
  9. "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`bookUrl` TEXT NOT NULL DEFAULT '', `tocUrl` TEXT NOT NULL DEFAULT '', `origin` TEXT NOT NULL DEFAULT 'loc_book', `originName` TEXT NOT NULL DEFAULT '', `name` TEXT NOT NULL DEFAULT '', `author` TEXT NOT NULL DEFAULT '', `kind` TEXT, `customTag` TEXT, `coverUrl` TEXT, `customCoverUrl` TEXT, `intro` TEXT, `customIntro` TEXT, `remark` TEXT, `charset` TEXT, `type` INTEGER NOT NULL DEFAULT 0, `group` INTEGER NOT NULL DEFAULT 0, `latestChapterTitle` TEXT, `latestChapterTime` INTEGER NOT NULL DEFAULT 0, `lastCheckTime` INTEGER NOT NULL DEFAULT 0, `lastCheckCount` INTEGER NOT NULL DEFAULT 0, `totalChapterNum` INTEGER NOT NULL DEFAULT 0, `durChapterTitle` TEXT, `durChapterIndex` INTEGER NOT NULL DEFAULT 0, `durChapterPos` INTEGER NOT NULL DEFAULT 0, `durChapterTime` INTEGER NOT NULL DEFAULT 0, `wordCount` TEXT, `canUpdate` INTEGER NOT NULL DEFAULT 1, `order` INTEGER NOT NULL DEFAULT 0, `originOrder` INTEGER NOT NULL DEFAULT 0, `variable` TEXT, `readConfig` TEXT, `syncTime` INTEGER NOT NULL DEFAULT 0, PRIMARY KEY(`bookUrl`))",
  10. "fields": [
  11. {
  12. "fieldPath": "bookUrl",
  13. "columnName": "bookUrl",
  14. "affinity": "TEXT",
  15. "notNull": true,
  16. "defaultValue": "''"
  17. },
  18. {
  19. "fieldPath": "tocUrl",
  20. "columnName": "tocUrl",
  21. "affinity": "TEXT",
  22. "notNull": true,
  23. "defaultValue": "''"
  24. },
  25. {
  26. "fieldPath": "origin",
  27. "columnName": "origin",
  28. "affinity": "TEXT",
  29. "notNull": true,
  30. "defaultValue": "'loc_book'"
  31. },
  32. {
  33. "fieldPath": "originName",
  34. "columnName": "originName",
  35. "affinity": "TEXT",
  36. "notNull": true,
  37. "defaultValue": "''"
  38. },
  39. {
  40. "fieldPath": "name",
  41. "columnName": "name",
  42. "affinity": "TEXT",
  43. "notNull": true,
  44. "defaultValue": "''"
  45. },
  46. {
  47. "fieldPath": "author",
  48. "columnName": "author",
  49. "affinity": "TEXT",
  50. "notNull": true,
  51. "defaultValue": "''"
  52. },
  53. {
  54. "fieldPath": "kind",
  55. "columnName": "kind",
  56. "affinity": "TEXT"
  57. },
  58. {
  59. "fieldPath": "customTag",
  60. "columnName": "customTag",
  61. "affinity": "TEXT"
  62. },
  63. {
  64. "fieldPath": "coverUrl",
  65. "columnName": "coverUrl",
  66. "affinity": "TEXT"
  67. },
  68. {
  69. "fieldPath": "customCoverUrl",
  70. "columnName": "customCoverUrl",
  71. "affinity": "TEXT"
  72. },
  73. {
  74. "fieldPath": "intro",
  75. "columnName": "intro",
  76. "affinity": "TEXT"
  77. },
  78. {
  79. "fieldPath": "customIntro",
  80. "columnName": "customIntro",
  81. "affinity": "TEXT"
  82. },
  83. {
  84. "fieldPath": "remark",
  85. "columnName": "remark",
  86. "affinity": "TEXT"
  87. },
  88. {
  89. "fieldPath": "charset",
  90. "columnName": "charset",
  91. "affinity": "TEXT"
  92. },
  93. {
  94. "fieldPath": "type",
  95. "columnName": "type",
  96. "affinity": "INTEGER",
  97. "notNull": true,
  98. "defaultValue": "0"
  99. },
  100. {
  101. "fieldPath": "group",
  102. "columnName": "group",
  103. "affinity": "INTEGER",
  104. "notNull": true,
  105. "defaultValue": "0"
  106. },
  107. {
  108. "fieldPath": "latestChapterTitle",
  109. "columnName": "latestChapterTitle",
  110. "affinity": "TEXT"
  111. },
  112. {
  113. "fieldPath": "latestChapterTime",
  114. "columnName": "latestChapterTime",
  115. "affinity": "INTEGER",
  116. "notNull": true,
  117. "defaultValue": "0"
  118. },
  119. {
  120. "fieldPath": "lastCheckTime",
  121. "columnName": "lastCheckTime",
  122. "affinity": "INTEGER",
  123. "notNull": true,
  124. "defaultValue": "0"
  125. },
  126. {
  127. "fieldPath": "lastCheckCount",
  128. "columnName": "lastCheckCount",
  129. "affinity": "INTEGER",
  130. "notNull": true,
  131. "defaultValue": "0"
  132. },
  133. {
  134. "fieldPath": "totalChapterNum",
  135. "columnName": "totalChapterNum",
  136. "affinity": "INTEGER",
  137. "notNull": true,
  138. "defaultValue": "0"
  139. },
  140. {
  141. "fieldPath": "durChapterTitle",
  142. "columnName": "durChapterTitle",
  143. "affinity": "TEXT"
  144. },
  145. {
  146. "fieldPath": "durChapterIndex",
  147. "columnName": "durChapterIndex",
  148. "affinity": "INTEGER",
  149. "notNull": true,
  150. "defaultValue": "0"
  151. },
  152. {
  153. "fieldPath": "durChapterPos",
  154. "columnName": "durChapterPos",
  155. "affinity": "INTEGER",
  156. "notNull": true,
  157. "defaultValue": "0"
  158. },
  159. {
  160. "fieldPath": "durChapterTime",
  161. "columnName": "durChapterTime",
  162. "affinity": "INTEGER",
  163. "notNull": true,
  164. "defaultValue": "0"
  165. },
  166. {
  167. "fieldPath": "wordCount",
  168. "columnName": "wordCount",
  169. "affinity": "TEXT"
  170. },
  171. {
  172. "fieldPath": "canUpdate",
  173. "columnName": "canUpdate",
  174. "affinity": "INTEGER",
  175. "notNull": true,
  176. "defaultValue": "1"
  177. },
  178. {
  179. "fieldPath": "order",
  180. "columnName": "order",
  181. "affinity": "INTEGER",
  182. "notNull": true,
  183. "defaultValue": "0"
  184. },
  185. {
  186. "fieldPath": "originOrder",
  187. "columnName": "originOrder",
  188. "affinity": "INTEGER",
  189. "notNull": true,
  190. "defaultValue": "0"
  191. },
  192. {
  193. "fieldPath": "variable",
  194. "columnName": "variable",
  195. "affinity": "TEXT"
  196. },
  197. {
  198. "fieldPath": "readConfig",
  199. "columnName": "readConfig",
  200. "affinity": "TEXT"
  201. },
  202. {
  203. "fieldPath": "syncTime",
  204. "columnName": "syncTime",
  205. "affinity": "INTEGER",
  206. "notNull": true,
  207. "defaultValue": "0"
  208. }
  209. ],
  210. "primaryKey": {
  211. "autoGenerate": false,
  212. "columnNames": [
  213. "bookUrl"
  214. ]
  215. },
  216. "indices": [
  217. {
  218. "name": "index_books_name_author",
  219. "unique": false,
  220. "columnNames": [
  221. "name",
  222. "author"
  223. ],
  224. "orders": [],
  225. "createSql": "CREATE INDEX IF NOT EXISTS `index_books_name_author` ON `${TABLE_NAME}` (`name`, `author`)"
  226. },
  227. {
  228. "name": "index_books_durChapterTime",
  229. "unique": false,
  230. "columnNames": [
  231. "durChapterTime"
  232. ],
  233. "orders": [],
  234. "createSql": "CREATE INDEX IF NOT EXISTS `index_books_durChapterTime` ON `${TABLE_NAME}` (`durChapterTime`)"
  235. }
  236. ]
  237. },
  238. {
  239. "tableName": "book_groups",
  240. "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`groupId` INTEGER NOT NULL, `groupName` TEXT NOT NULL, `cover` TEXT, `order` INTEGER NOT NULL, `enableRefresh` INTEGER NOT NULL DEFAULT 1, `show` INTEGER NOT NULL DEFAULT 1, `bookSort` INTEGER NOT NULL DEFAULT -1, `isPrivate` INTEGER NOT NULL DEFAULT 0, PRIMARY KEY(`groupId`))",
  241. "fields": [
  242. {
  243. "fieldPath": "groupId",
  244. "columnName": "groupId",
  245. "affinity": "INTEGER",
  246. "notNull": true
  247. },
  248. {
  249. "fieldPath": "groupName",
  250. "columnName": "groupName",
  251. "affinity": "TEXT",
  252. "notNull": true
  253. },
  254. {
  255. "fieldPath": "cover",
  256. "columnName": "cover",
  257. "affinity": "TEXT"
  258. },
  259. {
  260. "fieldPath": "order",
  261. "columnName": "order",
  262. "affinity": "INTEGER",
  263. "notNull": true
  264. },
  265. {
  266. "fieldPath": "enableRefresh",
  267. "columnName": "enableRefresh",
  268. "affinity": "INTEGER",
  269. "notNull": true,
  270. "defaultValue": "1"
  271. },
  272. {
  273. "fieldPath": "show",
  274. "columnName": "show",
  275. "affinity": "INTEGER",
  276. "notNull": true,
  277. "defaultValue": "1"
  278. },
  279. {
  280. "fieldPath": "bookSort",
  281. "columnName": "bookSort",
  282. "affinity": "INTEGER",
  283. "notNull": true,
  284. "defaultValue": "-1"
  285. },
  286. {
  287. "fieldPath": "isPrivate",
  288. "columnName": "isPrivate",
  289. "affinity": "INTEGER",
  290. "notNull": true,
  291. "defaultValue": "0"
  292. }
  293. ],
  294. "primaryKey": {
  295. "autoGenerate": false,
  296. "columnNames": [
  297. "groupId"
  298. ]
  299. }
  300. },
  301. {
  302. "tableName": "book_sources",
  303. "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`bookSourceUrl` TEXT NOT NULL, `bookSourceName` TEXT NOT NULL, `bookSourceGroup` TEXT, `bookSourceType` INTEGER NOT NULL, `bookUrlPattern` TEXT, `customOrder` INTEGER NOT NULL DEFAULT 0, `enabled` INTEGER NOT NULL DEFAULT 1, `enabledExplore` INTEGER NOT NULL DEFAULT 1, `jsLib` TEXT, `enabledCookieJar` INTEGER DEFAULT 0, `concurrentRate` TEXT, `header` TEXT, `loginUrl` TEXT, `loginUi` TEXT, `loginCheckJs` TEXT, `coverDecodeJs` TEXT, `bookSourceComment` TEXT, `variableComment` TEXT, `lastUpdateTime` INTEGER NOT NULL, `respondTime` INTEGER NOT NULL, `weight` INTEGER NOT NULL, `exploreUrl` TEXT, `exploreScreen` TEXT, `ruleExplore` TEXT, `searchUrl` TEXT, `ruleSearch` TEXT, `ruleBookInfo` TEXT, `ruleToc` TEXT, `ruleContent` TEXT, `ruleReview` TEXT, `eventListener` INTEGER NOT NULL DEFAULT 0, `customButton` INTEGER NOT NULL DEFAULT 0, `homepageModules` TEXT, PRIMARY KEY(`bookSourceUrl`))",
  304. "fields": [
  305. {
  306. "fieldPath": "bookSourceUrl",
  307. "columnName": "bookSourceUrl",
  308. "affinity": "TEXT",
  309. "notNull": true
  310. },
  311. {
  312. "fieldPath": "bookSourceName",
  313. "columnName": "bookSourceName",
  314. "affinity": "TEXT",
  315. "notNull": true
  316. },
  317. {
  318. "fieldPath": "bookSourceGroup",
  319. "columnName": "bookSourceGroup",
  320. "affinity": "TEXT"
  321. },
  322. {
  323. "fieldPath": "bookSourceType",
  324. "columnName": "bookSourceType",
  325. "affinity": "INTEGER",
  326. "notNull": true
  327. },
  328. {
  329. "fieldPath": "bookUrlPattern",
  330. "columnName": "bookUrlPattern",
  331. "affinity": "TEXT"
  332. },
  333. {
  334. "fieldPath": "customOrder",
  335. "columnName": "customOrder",
  336. "affinity": "INTEGER",
  337. "notNull": true,
  338. "defaultValue": "0"
  339. },
  340. {
  341. "fieldPath": "enabled",
  342. "columnName": "enabled",
  343. "affinity": "INTEGER",
  344. "notNull": true,
  345. "defaultValue": "1"
  346. },
  347. {
  348. "fieldPath": "enabledExplore",
  349. "columnName": "enabledExplore",
  350. "affinity": "INTEGER",
  351. "notNull": true,
  352. "defaultValue": "1"
  353. },
  354. {
  355. "fieldPath": "jsLib",
  356. "columnName": "jsLib",
  357. "affinity": "TEXT"
  358. },
  359. {
  360. "fieldPath": "enabledCookieJar",
  361. "columnName": "enabledCookieJar",
  362. "affinity": "INTEGER",
  363. "defaultValue": "0"
  364. },
  365. {
  366. "fieldPath": "concurrentRate",
  367. "columnName": "concurrentRate",
  368. "affinity": "TEXT"
  369. },
  370. {
  371. "fieldPath": "header",
  372. "columnName": "header",
  373. "affinity": "TEXT"
  374. },
  375. {
  376. "fieldPath": "loginUrl",
  377. "columnName": "loginUrl",
  378. "affinity": "TEXT"
  379. },
  380. {
  381. "fieldPath": "loginUi",
  382. "columnName": "loginUi",
  383. "affinity": "TEXT"
  384. },
  385. {
  386. "fieldPath": "loginCheckJs",
  387. "columnName": "loginCheckJs",
  388. "affinity": "TEXT"
  389. },
  390. {
  391. "fieldPath": "coverDecodeJs",
  392. "columnName": "coverDecodeJs",
  393. "affinity": "TEXT"
  394. },
  395. {
  396. "fieldPath": "bookSourceComment",
  397. "columnName": "bookSourceComment",
  398. "affinity": "TEXT"
  399. },
  400. {
  401. "fieldPath": "variableComment",
  402. "columnName": "variableComment",
  403. "affinity": "TEXT"
  404. },
  405. {
  406. "fieldPath": "lastUpdateTime",
  407. "columnName": "lastUpdateTime",
  408. "affinity": "INTEGER",
  409. "notNull": true
  410. },
  411. {
  412. "fieldPath": "respondTime",
  413. "columnName": "respondTime",
  414. "affinity": "INTEGER",
  415. "notNull": true
  416. },
  417. {
  418. "fieldPath": "weight",
  419. "columnName": "weight",
  420. "affinity": "INTEGER",
  421. "notNull": true
  422. },
  423. {
  424. "fieldPath": "exploreUrl",
  425. "columnName": "exploreUrl",
  426. "affinity": "TEXT"
  427. },
  428. {
  429. "fieldPath": "exploreScreen",
  430. "columnName": "exploreScreen",
  431. "affinity": "TEXT"
  432. },
  433. {
  434. "fieldPath": "ruleExplore",
  435. "columnName": "ruleExplore",
  436. "affinity": "TEXT"
  437. },
  438. {
  439. "fieldPath": "searchUrl",
  440. "columnName": "searchUrl",
  441. "affinity": "TEXT"
  442. },
  443. {
  444. "fieldPath": "ruleSearch",
  445. "columnName": "ruleSearch",
  446. "affinity": "TEXT"
  447. },
  448. {
  449. "fieldPath": "ruleBookInfo",
  450. "columnName": "ruleBookInfo",
  451. "affinity": "TEXT"
  452. },
  453. {
  454. "fieldPath": "ruleToc",
  455. "columnName": "ruleToc",
  456. "affinity": "TEXT"
  457. },
  458. {
  459. "fieldPath": "ruleContent",
  460. "columnName": "ruleContent",
  461. "affinity": "TEXT"
  462. },
  463. {
  464. "fieldPath": "ruleReview",
  465. "columnName": "ruleReview",
  466. "affinity": "TEXT"
  467. },
  468. {
  469. "fieldPath": "eventListener",
  470. "columnName": "eventListener",
  471. "affinity": "INTEGER",
  472. "notNull": true,
  473. "defaultValue": "0"
  474. },
  475. {
  476. "fieldPath": "customButton",
  477. "columnName": "customButton",
  478. "affinity": "INTEGER",
  479. "notNull": true,
  480. "defaultValue": "0"
  481. },
  482. {
  483. "fieldPath": "homepageModules",
  484. "columnName": "homepageModules",
  485. "affinity": "TEXT"
  486. }
  487. ],
  488. "primaryKey": {
  489. "autoGenerate": false,
  490. "columnNames": [
  491. "bookSourceUrl"
  492. ]
  493. },
  494. "indices": [
  495. {
  496. "name": "index_book_sources_bookSourceUrl",
  497. "unique": false,
  498. "columnNames": [
  499. "bookSourceUrl"
  500. ],
  501. "orders": [],
  502. "createSql": "CREATE INDEX IF NOT EXISTS `index_book_sources_bookSourceUrl` ON `${TABLE_NAME}` (`bookSourceUrl`)"
  503. }
  504. ]
  505. },
  506. {
  507. "tableName": "chapters",
  508. "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`url` TEXT NOT NULL, `title` TEXT NOT NULL, `isVolume` INTEGER NOT NULL, `baseUrl` TEXT NOT NULL, `bookUrl` TEXT NOT NULL, `index` INTEGER NOT NULL, `isVip` INTEGER NOT NULL, `isPay` INTEGER NOT NULL, `resourceUrl` TEXT, `tag` TEXT, `wordCount` TEXT, `start` INTEGER, `end` INTEGER, `startFragmentId` TEXT, `endFragmentId` TEXT, `variable` TEXT, `reviewImg` TEXT, PRIMARY KEY(`url`, `bookUrl`), FOREIGN KEY(`bookUrl`) REFERENCES `books`(`bookUrl`) ON UPDATE NO ACTION ON DELETE CASCADE )",
  509. "fields": [
  510. {
  511. "fieldPath": "url",
  512. "columnName": "url",
  513. "affinity": "TEXT",
  514. "notNull": true
  515. },
  516. {
  517. "fieldPath": "title",
  518. "columnName": "title",
  519. "affinity": "TEXT",
  520. "notNull": true
  521. },
  522. {
  523. "fieldPath": "isVolume",
  524. "columnName": "isVolume",
  525. "affinity": "INTEGER",
  526. "notNull": true
  527. },
  528. {
  529. "fieldPath": "baseUrl",
  530. "columnName": "baseUrl",
  531. "affinity": "TEXT",
  532. "notNull": true
  533. },
  534. {
  535. "fieldPath": "bookUrl",
  536. "columnName": "bookUrl",
  537. "affinity": "TEXT",
  538. "notNull": true
  539. },
  540. {
  541. "fieldPath": "index",
  542. "columnName": "index",
  543. "affinity": "INTEGER",
  544. "notNull": true
  545. },
  546. {
  547. "fieldPath": "isVip",
  548. "columnName": "isVip",
  549. "affinity": "INTEGER",
  550. "notNull": true
  551. },
  552. {
  553. "fieldPath": "isPay",
  554. "columnName": "isPay",
  555. "affinity": "INTEGER",
  556. "notNull": true
  557. },
  558. {
  559. "fieldPath": "resourceUrl",
  560. "columnName": "resourceUrl",
  561. "affinity": "TEXT"
  562. },
  563. {
  564. "fieldPath": "tag",
  565. "columnName": "tag",
  566. "affinity": "TEXT"
  567. },
  568. {
  569. "fieldPath": "wordCount",
  570. "columnName": "wordCount",
  571. "affinity": "TEXT"
  572. },
  573. {
  574. "fieldPath": "start",
  575. "columnName": "start",
  576. "affinity": "INTEGER"
  577. },
  578. {
  579. "fieldPath": "end",
  580. "columnName": "end",
  581. "affinity": "INTEGER"
  582. },
  583. {
  584. "fieldPath": "startFragmentId",
  585. "columnName": "startFragmentId",
  586. "affinity": "TEXT"
  587. },
  588. {
  589. "fieldPath": "endFragmentId",
  590. "columnName": "endFragmentId",
  591. "affinity": "TEXT"
  592. },
  593. {
  594. "fieldPath": "variable",
  595. "columnName": "variable",
  596. "affinity": "TEXT"
  597. },
  598. {
  599. "fieldPath": "reviewImg",
  600. "columnName": "reviewImg",
  601. "affinity": "TEXT"
  602. }
  603. ],
  604. "primaryKey": {
  605. "autoGenerate": false,
  606. "columnNames": [
  607. "url",
  608. "bookUrl"
  609. ]
  610. },
  611. "indices": [
  612. {
  613. "name": "index_chapters_bookUrl",
  614. "unique": false,
  615. "columnNames": [
  616. "bookUrl"
  617. ],
  618. "orders": [],
  619. "createSql": "CREATE INDEX IF NOT EXISTS `index_chapters_bookUrl` ON `${TABLE_NAME}` (`bookUrl`)"
  620. },
  621. {
  622. "name": "index_chapters_bookUrl_index",
  623. "unique": true,
  624. "columnNames": [
  625. "bookUrl",
  626. "index"
  627. ],
  628. "orders": [],
  629. "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_chapters_bookUrl_index` ON `${TABLE_NAME}` (`bookUrl`, `index`)"
  630. }
  631. ],
  632. "foreignKeys": [
  633. {
  634. "table": "books",
  635. "onDelete": "CASCADE",
  636. "onUpdate": "NO ACTION",
  637. "columns": [
  638. "bookUrl"
  639. ],
  640. "referencedColumns": [
  641. "bookUrl"
  642. ]
  643. }
  644. ]
  645. },
  646. {
  647. "tableName": "replace_rules",
  648. "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, `name` TEXT NOT NULL DEFAULT '', `group` TEXT, `pattern` TEXT NOT NULL DEFAULT '', `replacement` TEXT NOT NULL DEFAULT '', `scope` TEXT, `scopeTitle` INTEGER NOT NULL DEFAULT 0, `scopeContent` INTEGER NOT NULL DEFAULT 1, `excludeScope` TEXT, `isEnabled` INTEGER NOT NULL DEFAULT 1, `isRegex` INTEGER NOT NULL DEFAULT 1, `timeoutMillisecond` INTEGER NOT NULL DEFAULT 3000, `sortOrder` INTEGER NOT NULL DEFAULT 0)",
  649. "fields": [
  650. {
  651. "fieldPath": "id",
  652. "columnName": "id",
  653. "affinity": "INTEGER",
  654. "notNull": true
  655. },
  656. {
  657. "fieldPath": "name",
  658. "columnName": "name",
  659. "affinity": "TEXT",
  660. "notNull": true,
  661. "defaultValue": "''"
  662. },
  663. {
  664. "fieldPath": "group",
  665. "columnName": "group",
  666. "affinity": "TEXT"
  667. },
  668. {
  669. "fieldPath": "pattern",
  670. "columnName": "pattern",
  671. "affinity": "TEXT",
  672. "notNull": true,
  673. "defaultValue": "''"
  674. },
  675. {
  676. "fieldPath": "replacement",
  677. "columnName": "replacement",
  678. "affinity": "TEXT",
  679. "notNull": true,
  680. "defaultValue": "''"
  681. },
  682. {
  683. "fieldPath": "scope",
  684. "columnName": "scope",
  685. "affinity": "TEXT"
  686. },
  687. {
  688. "fieldPath": "scopeTitle",
  689. "columnName": "scopeTitle",
  690. "affinity": "INTEGER",
  691. "notNull": true,
  692. "defaultValue": "0"
  693. },
  694. {
  695. "fieldPath": "scopeContent",
  696. "columnName": "scopeContent",
  697. "affinity": "INTEGER",
  698. "notNull": true,
  699. "defaultValue": "1"
  700. },
  701. {
  702. "fieldPath": "excludeScope",
  703. "columnName": "excludeScope",
  704. "affinity": "TEXT"
  705. },
  706. {
  707. "fieldPath": "isEnabled",
  708. "columnName": "isEnabled",
  709. "affinity": "INTEGER",
  710. "notNull": true,
  711. "defaultValue": "1"
  712. },
  713. {
  714. "fieldPath": "isRegex",
  715. "columnName": "isRegex",
  716. "affinity": "INTEGER",
  717. "notNull": true,
  718. "defaultValue": "1"
  719. },
  720. {
  721. "fieldPath": "timeoutMillisecond",
  722. "columnName": "timeoutMillisecond",
  723. "affinity": "INTEGER",
  724. "notNull": true,
  725. "defaultValue": "3000"
  726. },
  727. {
  728. "fieldPath": "order",
  729. "columnName": "sortOrder",
  730. "affinity": "INTEGER",
  731. "notNull": true,
  732. "defaultValue": "0"
  733. }
  734. ],
  735. "primaryKey": {
  736. "autoGenerate": true,
  737. "columnNames": [
  738. "id"
  739. ]
  740. },
  741. "indices": [
  742. {
  743. "name": "index_replace_rules_id",
  744. "unique": false,
  745. "columnNames": [
  746. "id"
  747. ],
  748. "orders": [],
  749. "createSql": "CREATE INDEX IF NOT EXISTS `index_replace_rules_id` ON `${TABLE_NAME}` (`id`)"
  750. }
  751. ]
  752. },
  753. {
  754. "tableName": "searchBooks",
  755. "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`bookUrl` TEXT NOT NULL, `origin` TEXT NOT NULL, `originName` TEXT NOT NULL, `type` INTEGER NOT NULL, `name` TEXT NOT NULL, `author` TEXT NOT NULL, `kind` TEXT, `coverUrl` TEXT, `intro` TEXT, `wordCount` TEXT, `latestChapterTitle` TEXT, `tocUrl` TEXT NOT NULL, `time` INTEGER NOT NULL, `variable` TEXT, `originOrder` INTEGER NOT NULL, `chapterWordCountText` TEXT, `chapterWordCount` INTEGER NOT NULL DEFAULT -1, `respondTime` INTEGER NOT NULL DEFAULT -1, PRIMARY KEY(`bookUrl`), FOREIGN KEY(`origin`) REFERENCES `book_sources`(`bookSourceUrl`) ON UPDATE NO ACTION ON DELETE CASCADE )",
  756. "fields": [
  757. {
  758. "fieldPath": "bookUrl",
  759. "columnName": "bookUrl",
  760. "affinity": "TEXT",
  761. "notNull": true
  762. },
  763. {
  764. "fieldPath": "origin",
  765. "columnName": "origin",
  766. "affinity": "TEXT",
  767. "notNull": true
  768. },
  769. {
  770. "fieldPath": "originName",
  771. "columnName": "originName",
  772. "affinity": "TEXT",
  773. "notNull": true
  774. },
  775. {
  776. "fieldPath": "type",
  777. "columnName": "type",
  778. "affinity": "INTEGER",
  779. "notNull": true
  780. },
  781. {
  782. "fieldPath": "name",
  783. "columnName": "name",
  784. "affinity": "TEXT",
  785. "notNull": true
  786. },
  787. {
  788. "fieldPath": "author",
  789. "columnName": "author",
  790. "affinity": "TEXT",
  791. "notNull": true
  792. },
  793. {
  794. "fieldPath": "kind",
  795. "columnName": "kind",
  796. "affinity": "TEXT"
  797. },
  798. {
  799. "fieldPath": "coverUrl",
  800. "columnName": "coverUrl",
  801. "affinity": "TEXT"
  802. },
  803. {
  804. "fieldPath": "intro",
  805. "columnName": "intro",
  806. "affinity": "TEXT"
  807. },
  808. {
  809. "fieldPath": "wordCount",
  810. "columnName": "wordCount",
  811. "affinity": "TEXT"
  812. },
  813. {
  814. "fieldPath": "latestChapterTitle",
  815. "columnName": "latestChapterTitle",
  816. "affinity": "TEXT"
  817. },
  818. {
  819. "fieldPath": "tocUrl",
  820. "columnName": "tocUrl",
  821. "affinity": "TEXT",
  822. "notNull": true
  823. },
  824. {
  825. "fieldPath": "time",
  826. "columnName": "time",
  827. "affinity": "INTEGER",
  828. "notNull": true
  829. },
  830. {
  831. "fieldPath": "variable",
  832. "columnName": "variable",
  833. "affinity": "TEXT"
  834. },
  835. {
  836. "fieldPath": "originOrder",
  837. "columnName": "originOrder",
  838. "affinity": "INTEGER",
  839. "notNull": true
  840. },
  841. {
  842. "fieldPath": "chapterWordCountText",
  843. "columnName": "chapterWordCountText",
  844. "affinity": "TEXT"
  845. },
  846. {
  847. "fieldPath": "chapterWordCount",
  848. "columnName": "chapterWordCount",
  849. "affinity": "INTEGER",
  850. "notNull": true,
  851. "defaultValue": "-1"
  852. },
  853. {
  854. "fieldPath": "respondTime",
  855. "columnName": "respondTime",
  856. "affinity": "INTEGER",
  857. "notNull": true,
  858. "defaultValue": "-1"
  859. }
  860. ],
  861. "primaryKey": {
  862. "autoGenerate": false,
  863. "columnNames": [
  864. "bookUrl"
  865. ]
  866. },
  867. "indices": [
  868. {
  869. "name": "index_searchBooks_bookUrl",
  870. "unique": true,
  871. "columnNames": [
  872. "bookUrl"
  873. ],
  874. "orders": [],
  875. "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_searchBooks_bookUrl` ON `${TABLE_NAME}` (`bookUrl`)"
  876. },
  877. {
  878. "name": "index_searchBooks_origin",
  879. "unique": false,
  880. "columnNames": [
  881. "origin"
  882. ],
  883. "orders": [],
  884. "createSql": "CREATE INDEX IF NOT EXISTS `index_searchBooks_origin` ON `${TABLE_NAME}` (`origin`)"
  885. }
  886. ],
  887. "foreignKeys": [
  888. {
  889. "table": "book_sources",
  890. "onDelete": "CASCADE",
  891. "onUpdate": "NO ACTION",
  892. "columns": [
  893. "origin"
  894. ],
  895. "referencedColumns": [
  896. "bookSourceUrl"
  897. ]
  898. }
  899. ]
  900. },
  901. {
  902. "tableName": "search_keywords",
  903. "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`word` TEXT NOT NULL, `usage` INTEGER NOT NULL, `lastUseTime` INTEGER NOT NULL, PRIMARY KEY(`word`))",
  904. "fields": [
  905. {
  906. "fieldPath": "word",
  907. "columnName": "word",
  908. "affinity": "TEXT",
  909. "notNull": true
  910. },
  911. {
  912. "fieldPath": "usage",
  913. "columnName": "usage",
  914. "affinity": "INTEGER",
  915. "notNull": true
  916. },
  917. {
  918. "fieldPath": "lastUseTime",
  919. "columnName": "lastUseTime",
  920. "affinity": "INTEGER",
  921. "notNull": true
  922. }
  923. ],
  924. "primaryKey": {
  925. "autoGenerate": false,
  926. "columnNames": [
  927. "word"
  928. ]
  929. },
  930. "indices": [
  931. {
  932. "name": "index_search_keywords_word",
  933. "unique": true,
  934. "columnNames": [
  935. "word"
  936. ],
  937. "orders": [],
  938. "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_search_keywords_word` ON `${TABLE_NAME}` (`word`)"
  939. }
  940. ]
  941. },
  942. {
  943. "tableName": "cookies",
  944. "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`url` TEXT NOT NULL, `cookie` TEXT NOT NULL, PRIMARY KEY(`url`))",
  945. "fields": [
  946. {
  947. "fieldPath": "url",
  948. "columnName": "url",
  949. "affinity": "TEXT",
  950. "notNull": true
  951. },
  952. {
  953. "fieldPath": "cookie",
  954. "columnName": "cookie",
  955. "affinity": "TEXT",
  956. "notNull": true
  957. }
  958. ],
  959. "primaryKey": {
  960. "autoGenerate": false,
  961. "columnNames": [
  962. "url"
  963. ]
  964. },
  965. "indices": [
  966. {
  967. "name": "index_cookies_url",
  968. "unique": true,
  969. "columnNames": [
  970. "url"
  971. ],
  972. "orders": [],
  973. "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_cookies_url` ON `${TABLE_NAME}` (`url`)"
  974. }
  975. ]
  976. },
  977. {
  978. "tableName": "rssSources",
  979. "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`sourceUrl` TEXT NOT NULL, `sourceName` TEXT NOT NULL, `sourceIcon` TEXT NOT NULL, `sourceGroup` TEXT, `sourceComment` TEXT, `enabled` INTEGER NOT NULL, `variableComment` TEXT, `jsLib` TEXT, `enabledCookieJar` INTEGER DEFAULT 0, `concurrentRate` TEXT, `header` TEXT, `loginUrl` TEXT, `loginUi` TEXT, `loginCheckJs` TEXT, `coverDecodeJs` TEXT, `sortUrl` TEXT, `singleUrl` INTEGER NOT NULL, `articleStyle` INTEGER NOT NULL DEFAULT 0, `ruleArticles` TEXT, `ruleNextPage` TEXT, `ruleTitle` TEXT, `rulePubDate` TEXT, `ruleDescription` TEXT, `ruleImage` TEXT, `ruleLink` TEXT, `ruleContent` TEXT, `contentWhitelist` TEXT, `contentBlacklist` TEXT, `shouldOverrideUrlLoading` TEXT, `style` TEXT, `enableJs` INTEGER NOT NULL DEFAULT 1, `loadWithBaseUrl` INTEGER NOT NULL DEFAULT 1, `injectJs` TEXT, `preloadJs` TEXT, `startHtml` TEXT, `startStyle` TEXT, `startJs` TEXT, `showWebLog` INTEGER NOT NULL DEFAULT 0, `lastUpdateTime` INTEGER NOT NULL DEFAULT 0, `customOrder` INTEGER NOT NULL DEFAULT 0, `type` INTEGER NOT NULL DEFAULT 0, `preload` INTEGER NOT NULL DEFAULT 0, `cacheFirst` INTEGER NOT NULL DEFAULT 0, `searchUrl` TEXT, `redirectPolicy` TEXT NOT NULL DEFAULT 'ASK_CROSS_ORIGIN', PRIMARY KEY(`sourceUrl`))",
  980. "fields": [
  981. {
  982. "fieldPath": "sourceUrl",
  983. "columnName": "sourceUrl",
  984. "affinity": "TEXT",
  985. "notNull": true
  986. },
  987. {
  988. "fieldPath": "sourceName",
  989. "columnName": "sourceName",
  990. "affinity": "TEXT",
  991. "notNull": true
  992. },
  993. {
  994. "fieldPath": "sourceIcon",
  995. "columnName": "sourceIcon",
  996. "affinity": "TEXT",
  997. "notNull": true
  998. },
  999. {
  1000. "fieldPath": "sourceGroup",
  1001. "columnName": "sourceGroup",
  1002. "affinity": "TEXT"
  1003. },
  1004. {
  1005. "fieldPath": "sourceComment",
  1006. "columnName": "sourceComment",
  1007. "affinity": "TEXT"
  1008. },
  1009. {
  1010. "fieldPath": "enabled",
  1011. "columnName": "enabled",
  1012. "affinity": "INTEGER",
  1013. "notNull": true
  1014. },
  1015. {
  1016. "fieldPath": "variableComment",
  1017. "columnName": "variableComment",
  1018. "affinity": "TEXT"
  1019. },
  1020. {
  1021. "fieldPath": "jsLib",
  1022. "columnName": "jsLib",
  1023. "affinity": "TEXT"
  1024. },
  1025. {
  1026. "fieldPath": "enabledCookieJar",
  1027. "columnName": "enabledCookieJar",
  1028. "affinity": "INTEGER",
  1029. "defaultValue": "0"
  1030. },
  1031. {
  1032. "fieldPath": "concurrentRate",
  1033. "columnName": "concurrentRate",
  1034. "affinity": "TEXT"
  1035. },
  1036. {
  1037. "fieldPath": "header",
  1038. "columnName": "header",
  1039. "affinity": "TEXT"
  1040. },
  1041. {
  1042. "fieldPath": "loginUrl",
  1043. "columnName": "loginUrl",
  1044. "affinity": "TEXT"
  1045. },
  1046. {
  1047. "fieldPath": "loginUi",
  1048. "columnName": "loginUi",
  1049. "affinity": "TEXT"
  1050. },
  1051. {
  1052. "fieldPath": "loginCheckJs",
  1053. "columnName": "loginCheckJs",
  1054. "affinity": "TEXT"
  1055. },
  1056. {
  1057. "fieldPath": "coverDecodeJs",
  1058. "columnName": "coverDecodeJs",
  1059. "affinity": "TEXT"
  1060. },
  1061. {
  1062. "fieldPath": "sortUrl",
  1063. "columnName": "sortUrl",
  1064. "affinity": "TEXT"
  1065. },
  1066. {
  1067. "fieldPath": "singleUrl",
  1068. "columnName": "singleUrl",
  1069. "affinity": "INTEGER",
  1070. "notNull": true
  1071. },
  1072. {
  1073. "fieldPath": "articleStyle",
  1074. "columnName": "articleStyle",
  1075. "affinity": "INTEGER",
  1076. "notNull": true,
  1077. "defaultValue": "0"
  1078. },
  1079. {
  1080. "fieldPath": "ruleArticles",
  1081. "columnName": "ruleArticles",
  1082. "affinity": "TEXT"
  1083. },
  1084. {
  1085. "fieldPath": "ruleNextPage",
  1086. "columnName": "ruleNextPage",
  1087. "affinity": "TEXT"
  1088. },
  1089. {
  1090. "fieldPath": "ruleTitle",
  1091. "columnName": "ruleTitle",
  1092. "affinity": "TEXT"
  1093. },
  1094. {
  1095. "fieldPath": "rulePubDate",
  1096. "columnName": "rulePubDate",
  1097. "affinity": "TEXT"
  1098. },
  1099. {
  1100. "fieldPath": "ruleDescription",
  1101. "columnName": "ruleDescription",
  1102. "affinity": "TEXT"
  1103. },
  1104. {
  1105. "fieldPath": "ruleImage",
  1106. "columnName": "ruleImage",
  1107. "affinity": "TEXT"
  1108. },
  1109. {
  1110. "fieldPath": "ruleLink",
  1111. "columnName": "ruleLink",
  1112. "affinity": "TEXT"
  1113. },
  1114. {
  1115. "fieldPath": "ruleContent",
  1116. "columnName": "ruleContent",
  1117. "affinity": "TEXT"
  1118. },
  1119. {
  1120. "fieldPath": "contentWhitelist",
  1121. "columnName": "contentWhitelist",
  1122. "affinity": "TEXT"
  1123. },
  1124. {
  1125. "fieldPath": "contentBlacklist",
  1126. "columnName": "contentBlacklist",
  1127. "affinity": "TEXT"
  1128. },
  1129. {
  1130. "fieldPath": "shouldOverrideUrlLoading",
  1131. "columnName": "shouldOverrideUrlLoading",
  1132. "affinity": "TEXT"
  1133. },
  1134. {
  1135. "fieldPath": "style",
  1136. "columnName": "style",
  1137. "affinity": "TEXT"
  1138. },
  1139. {
  1140. "fieldPath": "enableJs",
  1141. "columnName": "enableJs",
  1142. "affinity": "INTEGER",
  1143. "notNull": true,
  1144. "defaultValue": "1"
  1145. },
  1146. {
  1147. "fieldPath": "loadWithBaseUrl",
  1148. "columnName": "loadWithBaseUrl",
  1149. "affinity": "INTEGER",
  1150. "notNull": true,
  1151. "defaultValue": "1"
  1152. },
  1153. {
  1154. "fieldPath": "injectJs",
  1155. "columnName": "injectJs",
  1156. "affinity": "TEXT"
  1157. },
  1158. {
  1159. "fieldPath": "preloadJs",
  1160. "columnName": "preloadJs",
  1161. "affinity": "TEXT"
  1162. },
  1163. {
  1164. "fieldPath": "startHtml",
  1165. "columnName": "startHtml",
  1166. "affinity": "TEXT"
  1167. },
  1168. {
  1169. "fieldPath": "startStyle",
  1170. "columnName": "startStyle",
  1171. "affinity": "TEXT"
  1172. },
  1173. {
  1174. "fieldPath": "startJs",
  1175. "columnName": "startJs",
  1176. "affinity": "TEXT"
  1177. },
  1178. {
  1179. "fieldPath": "showWebLog",
  1180. "columnName": "showWebLog",
  1181. "affinity": "INTEGER",
  1182. "notNull": true,
  1183. "defaultValue": "0"
  1184. },
  1185. {
  1186. "fieldPath": "lastUpdateTime",
  1187. "columnName": "lastUpdateTime",
  1188. "affinity": "INTEGER",
  1189. "notNull": true,
  1190. "defaultValue": "0"
  1191. },
  1192. {
  1193. "fieldPath": "customOrder",
  1194. "columnName": "customOrder",
  1195. "affinity": "INTEGER",
  1196. "notNull": true,
  1197. "defaultValue": "0"
  1198. },
  1199. {
  1200. "fieldPath": "type",
  1201. "columnName": "type",
  1202. "affinity": "INTEGER",
  1203. "notNull": true,
  1204. "defaultValue": "0"
  1205. },
  1206. {
  1207. "fieldPath": "preload",
  1208. "columnName": "preload",
  1209. "affinity": "INTEGER",
  1210. "notNull": true,
  1211. "defaultValue": "0"
  1212. },
  1213. {
  1214. "fieldPath": "cacheFirst",
  1215. "columnName": "cacheFirst",
  1216. "affinity": "INTEGER",
  1217. "notNull": true,
  1218. "defaultValue": "0"
  1219. },
  1220. {
  1221. "fieldPath": "searchUrl",
  1222. "columnName": "searchUrl",
  1223. "affinity": "TEXT"
  1224. },
  1225. {
  1226. "fieldPath": "redirectPolicy",
  1227. "columnName": "redirectPolicy",
  1228. "affinity": "TEXT",
  1229. "notNull": true,
  1230. "defaultValue": "'ASK_CROSS_ORIGIN'"
  1231. }
  1232. ],
  1233. "primaryKey": {
  1234. "autoGenerate": false,
  1235. "columnNames": [
  1236. "sourceUrl"
  1237. ]
  1238. },
  1239. "indices": [
  1240. {
  1241. "name": "index_rssSources_sourceUrl",
  1242. "unique": false,
  1243. "columnNames": [
  1244. "sourceUrl"
  1245. ],
  1246. "orders": [],
  1247. "createSql": "CREATE INDEX IF NOT EXISTS `index_rssSources_sourceUrl` ON `${TABLE_NAME}` (`sourceUrl`)"
  1248. }
  1249. ]
  1250. },
  1251. {
  1252. "tableName": "bookmarks",
  1253. "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`time` INTEGER NOT NULL, `bookName` TEXT NOT NULL, `bookAuthor` TEXT NOT NULL DEFAULT '', `chapterIndex` INTEGER NOT NULL, `chapterPos` INTEGER NOT NULL, `chapterName` TEXT NOT NULL, `bookText` TEXT NOT NULL, `content` TEXT NOT NULL, PRIMARY KEY(`time`))",
  1254. "fields": [
  1255. {
  1256. "fieldPath": "time",
  1257. "columnName": "time",
  1258. "affinity": "INTEGER",
  1259. "notNull": true
  1260. },
  1261. {
  1262. "fieldPath": "bookName",
  1263. "columnName": "bookName",
  1264. "affinity": "TEXT",
  1265. "notNull": true
  1266. },
  1267. {
  1268. "fieldPath": "bookAuthor",
  1269. "columnName": "bookAuthor",
  1270. "affinity": "TEXT",
  1271. "notNull": true,
  1272. "defaultValue": "''"
  1273. },
  1274. {
  1275. "fieldPath": "chapterIndex",
  1276. "columnName": "chapterIndex",
  1277. "affinity": "INTEGER",
  1278. "notNull": true
  1279. },
  1280. {
  1281. "fieldPath": "chapterPos",
  1282. "columnName": "chapterPos",
  1283. "affinity": "INTEGER",
  1284. "notNull": true
  1285. },
  1286. {
  1287. "fieldPath": "chapterName",
  1288. "columnName": "chapterName",
  1289. "affinity": "TEXT",
  1290. "notNull": true
  1291. },
  1292. {
  1293. "fieldPath": "bookText",
  1294. "columnName": "bookText",
  1295. "affinity": "TEXT",
  1296. "notNull": true
  1297. },
  1298. {
  1299. "fieldPath": "content",
  1300. "columnName": "content",
  1301. "affinity": "TEXT",
  1302. "notNull": true
  1303. }
  1304. ],
  1305. "primaryKey": {
  1306. "autoGenerate": false,
  1307. "columnNames": [
  1308. "time"
  1309. ]
  1310. },
  1311. "indices": [
  1312. {
  1313. "name": "index_bookmarks_bookName_bookAuthor",
  1314. "unique": false,
  1315. "columnNames": [
  1316. "bookName",
  1317. "bookAuthor"
  1318. ],
  1319. "orders": [],
  1320. "createSql": "CREATE INDEX IF NOT EXISTS `index_bookmarks_bookName_bookAuthor` ON `${TABLE_NAME}` (`bookName`, `bookAuthor`)"
  1321. }
  1322. ]
  1323. },
  1324. {
  1325. "tableName": "rssArticles",
  1326. "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`origin` TEXT NOT NULL, `sort` TEXT NOT NULL, `title` TEXT NOT NULL, `order` INTEGER NOT NULL, `link` TEXT NOT NULL, `pubDate` TEXT, `description` TEXT, `content` TEXT, `image` TEXT, `group` TEXT NOT NULL DEFAULT '默认分组', `read` INTEGER NOT NULL, `variable` TEXT, `type` INTEGER NOT NULL DEFAULT 0, `durPos` INTEGER NOT NULL DEFAULT 0, PRIMARY KEY(`origin`, `link`, `sort`))",
  1327. "fields": [
  1328. {
  1329. "fieldPath": "origin",
  1330. "columnName": "origin",
  1331. "affinity": "TEXT",
  1332. "notNull": true
  1333. },
  1334. {
  1335. "fieldPath": "sort",
  1336. "columnName": "sort",
  1337. "affinity": "TEXT",
  1338. "notNull": true
  1339. },
  1340. {
  1341. "fieldPath": "title",
  1342. "columnName": "title",
  1343. "affinity": "TEXT",
  1344. "notNull": true
  1345. },
  1346. {
  1347. "fieldPath": "order",
  1348. "columnName": "order",
  1349. "affinity": "INTEGER",
  1350. "notNull": true
  1351. },
  1352. {
  1353. "fieldPath": "link",
  1354. "columnName": "link",
  1355. "affinity": "TEXT",
  1356. "notNull": true
  1357. },
  1358. {
  1359. "fieldPath": "pubDate",
  1360. "columnName": "pubDate",
  1361. "affinity": "TEXT"
  1362. },
  1363. {
  1364. "fieldPath": "description",
  1365. "columnName": "description",
  1366. "affinity": "TEXT"
  1367. },
  1368. {
  1369. "fieldPath": "content",
  1370. "columnName": "content",
  1371. "affinity": "TEXT"
  1372. },
  1373. {
  1374. "fieldPath": "image",
  1375. "columnName": "image",
  1376. "affinity": "TEXT"
  1377. },
  1378. {
  1379. "fieldPath": "group",
  1380. "columnName": "group",
  1381. "affinity": "TEXT",
  1382. "notNull": true,
  1383. "defaultValue": "'默认分组'"
  1384. },
  1385. {
  1386. "fieldPath": "read",
  1387. "columnName": "read",
  1388. "affinity": "INTEGER",
  1389. "notNull": true
  1390. },
  1391. {
  1392. "fieldPath": "variable",
  1393. "columnName": "variable",
  1394. "affinity": "TEXT"
  1395. },
  1396. {
  1397. "fieldPath": "type",
  1398. "columnName": "type",
  1399. "affinity": "INTEGER",
  1400. "notNull": true,
  1401. "defaultValue": "0"
  1402. },
  1403. {
  1404. "fieldPath": "durPos",
  1405. "columnName": "durPos",
  1406. "affinity": "INTEGER",
  1407. "notNull": true,
  1408. "defaultValue": "0"
  1409. }
  1410. ],
  1411. "primaryKey": {
  1412. "autoGenerate": false,
  1413. "columnNames": [
  1414. "origin",
  1415. "link",
  1416. "sort"
  1417. ]
  1418. }
  1419. },
  1420. {
  1421. "tableName": "rssReadRecords",
  1422. "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`record` TEXT NOT NULL, `title` TEXT, `readTime` INTEGER, `read` INTEGER NOT NULL, `origin` TEXT NOT NULL DEFAULT '', `sort` TEXT NOT NULL DEFAULT '', `image` TEXT, `type` INTEGER NOT NULL DEFAULT 0, `durPos` INTEGER NOT NULL DEFAULT 0, `pubDate` TEXT, PRIMARY KEY(`record`))",
  1423. "fields": [
  1424. {
  1425. "fieldPath": "record",
  1426. "columnName": "record",
  1427. "affinity": "TEXT",
  1428. "notNull": true
  1429. },
  1430. {
  1431. "fieldPath": "title",
  1432. "columnName": "title",
  1433. "affinity": "TEXT"
  1434. },
  1435. {
  1436. "fieldPath": "readTime",
  1437. "columnName": "readTime",
  1438. "affinity": "INTEGER"
  1439. },
  1440. {
  1441. "fieldPath": "read",
  1442. "columnName": "read",
  1443. "affinity": "INTEGER",
  1444. "notNull": true
  1445. },
  1446. {
  1447. "fieldPath": "origin",
  1448. "columnName": "origin",
  1449. "affinity": "TEXT",
  1450. "notNull": true,
  1451. "defaultValue": "''"
  1452. },
  1453. {
  1454. "fieldPath": "sort",
  1455. "columnName": "sort",
  1456. "affinity": "TEXT",
  1457. "notNull": true,
  1458. "defaultValue": "''"
  1459. },
  1460. {
  1461. "fieldPath": "image",
  1462. "columnName": "image",
  1463. "affinity": "TEXT"
  1464. },
  1465. {
  1466. "fieldPath": "type",
  1467. "columnName": "type",
  1468. "affinity": "INTEGER",
  1469. "notNull": true,
  1470. "defaultValue": "0"
  1471. },
  1472. {
  1473. "fieldPath": "durPos",
  1474. "columnName": "durPos",
  1475. "affinity": "INTEGER",
  1476. "notNull": true,
  1477. "defaultValue": "0"
  1478. },
  1479. {
  1480. "fieldPath": "pubDate",
  1481. "columnName": "pubDate",
  1482. "affinity": "TEXT"
  1483. }
  1484. ],
  1485. "primaryKey": {
  1486. "autoGenerate": false,
  1487. "columnNames": [
  1488. "record"
  1489. ]
  1490. },
  1491. "indices": [
  1492. {
  1493. "name": "index_rssReadRecords_origin",
  1494. "unique": false,
  1495. "columnNames": [
  1496. "origin"
  1497. ],
  1498. "orders": [],
  1499. "createSql": "CREATE INDEX IF NOT EXISTS `index_rssReadRecords_origin` ON `${TABLE_NAME}` (`origin`)"
  1500. }
  1501. ]
  1502. },
  1503. {
  1504. "tableName": "readRecordDetail",
  1505. "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`deviceId` TEXT NOT NULL, `bookName` TEXT NOT NULL, `bookAuthor` TEXT NOT NULL DEFAULT '', `date` TEXT NOT NULL, `readTime` INTEGER NOT NULL DEFAULT 0, `readWords` INTEGER NOT NULL DEFAULT 0, `firstReadTime` INTEGER NOT NULL DEFAULT 0, `lastReadTime` INTEGER NOT NULL DEFAULT 0, PRIMARY KEY(`deviceId`, `bookName`, `bookAuthor`, `date`))",
  1506. "fields": [
  1507. {
  1508. "fieldPath": "deviceId",
  1509. "columnName": "deviceId",
  1510. "affinity": "TEXT",
  1511. "notNull": true
  1512. },
  1513. {
  1514. "fieldPath": "bookName",
  1515. "columnName": "bookName",
  1516. "affinity": "TEXT",
  1517. "notNull": true
  1518. },
  1519. {
  1520. "fieldPath": "bookAuthor",
  1521. "columnName": "bookAuthor",
  1522. "affinity": "TEXT",
  1523. "notNull": true,
  1524. "defaultValue": "''"
  1525. },
  1526. {
  1527. "fieldPath": "date",
  1528. "columnName": "date",
  1529. "affinity": "TEXT",
  1530. "notNull": true
  1531. },
  1532. {
  1533. "fieldPath": "readTime",
  1534. "columnName": "readTime",
  1535. "affinity": "INTEGER",
  1536. "notNull": true,
  1537. "defaultValue": "0"
  1538. },
  1539. {
  1540. "fieldPath": "readWords",
  1541. "columnName": "readWords",
  1542. "affinity": "INTEGER",
  1543. "notNull": true,
  1544. "defaultValue": "0"
  1545. },
  1546. {
  1547. "fieldPath": "firstReadTime",
  1548. "columnName": "firstReadTime",
  1549. "affinity": "INTEGER",
  1550. "notNull": true,
  1551. "defaultValue": "0"
  1552. },
  1553. {
  1554. "fieldPath": "lastReadTime",
  1555. "columnName": "lastReadTime",
  1556. "affinity": "INTEGER",
  1557. "notNull": true,
  1558. "defaultValue": "0"
  1559. }
  1560. ],
  1561. "primaryKey": {
  1562. "autoGenerate": false,
  1563. "columnNames": [
  1564. "deviceId",
  1565. "bookName",
  1566. "bookAuthor",
  1567. "date"
  1568. ]
  1569. }
  1570. },
  1571. {
  1572. "tableName": "readRecordSession",
  1573. "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, `deviceId` TEXT NOT NULL, `bookName` TEXT NOT NULL, `bookAuthor` TEXT NOT NULL DEFAULT '', `startTime` INTEGER NOT NULL, `endTime` INTEGER NOT NULL, `words` INTEGER NOT NULL)",
  1574. "fields": [
  1575. {
  1576. "fieldPath": "id",
  1577. "columnName": "id",
  1578. "affinity": "INTEGER",
  1579. "notNull": true
  1580. },
  1581. {
  1582. "fieldPath": "deviceId",
  1583. "columnName": "deviceId",
  1584. "affinity": "TEXT",
  1585. "notNull": true
  1586. },
  1587. {
  1588. "fieldPath": "bookName",
  1589. "columnName": "bookName",
  1590. "affinity": "TEXT",
  1591. "notNull": true
  1592. },
  1593. {
  1594. "fieldPath": "bookAuthor",
  1595. "columnName": "bookAuthor",
  1596. "affinity": "TEXT",
  1597. "notNull": true,
  1598. "defaultValue": "''"
  1599. },
  1600. {
  1601. "fieldPath": "startTime",
  1602. "columnName": "startTime",
  1603. "affinity": "INTEGER",
  1604. "notNull": true
  1605. },
  1606. {
  1607. "fieldPath": "endTime",
  1608. "columnName": "endTime",
  1609. "affinity": "INTEGER",
  1610. "notNull": true
  1611. },
  1612. {
  1613. "fieldPath": "words",
  1614. "columnName": "words",
  1615. "affinity": "INTEGER",
  1616. "notNull": true
  1617. }
  1618. ],
  1619. "primaryKey": {
  1620. "autoGenerate": true,
  1621. "columnNames": [
  1622. "id"
  1623. ]
  1624. }
  1625. },
  1626. {
  1627. "tableName": "rssStars",
  1628. "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`origin` TEXT NOT NULL, `sort` TEXT NOT NULL, `title` TEXT NOT NULL, `starTime` INTEGER NOT NULL, `link` TEXT NOT NULL, `pubDate` TEXT, `description` TEXT, `content` TEXT, `image` TEXT, `group` TEXT NOT NULL DEFAULT '默认分组', `variable` TEXT, `type` INTEGER NOT NULL DEFAULT 0, `durPos` INTEGER NOT NULL DEFAULT 0, PRIMARY KEY(`origin`, `link`))",
  1629. "fields": [
  1630. {
  1631. "fieldPath": "origin",
  1632. "columnName": "origin",
  1633. "affinity": "TEXT",
  1634. "notNull": true
  1635. },
  1636. {
  1637. "fieldPath": "sort",
  1638. "columnName": "sort",
  1639. "affinity": "TEXT",
  1640. "notNull": true
  1641. },
  1642. {
  1643. "fieldPath": "title",
  1644. "columnName": "title",
  1645. "affinity": "TEXT",
  1646. "notNull": true
  1647. },
  1648. {
  1649. "fieldPath": "starTime",
  1650. "columnName": "starTime",
  1651. "affinity": "INTEGER",
  1652. "notNull": true
  1653. },
  1654. {
  1655. "fieldPath": "link",
  1656. "columnName": "link",
  1657. "affinity": "TEXT",
  1658. "notNull": true
  1659. },
  1660. {
  1661. "fieldPath": "pubDate",
  1662. "columnName": "pubDate",
  1663. "affinity": "TEXT"
  1664. },
  1665. {
  1666. "fieldPath": "description",
  1667. "columnName": "description",
  1668. "affinity": "TEXT"
  1669. },
  1670. {
  1671. "fieldPath": "content",
  1672. "columnName": "content",
  1673. "affinity": "TEXT"
  1674. },
  1675. {
  1676. "fieldPath": "image",
  1677. "columnName": "image",
  1678. "affinity": "TEXT"
  1679. },
  1680. {
  1681. "fieldPath": "group",
  1682. "columnName": "group",
  1683. "affinity": "TEXT",
  1684. "notNull": true,
  1685. "defaultValue": "'默认分组'"
  1686. },
  1687. {
  1688. "fieldPath": "variable",
  1689. "columnName": "variable",
  1690. "affinity": "TEXT"
  1691. },
  1692. {
  1693. "fieldPath": "type",
  1694. "columnName": "type",
  1695. "affinity": "INTEGER",
  1696. "notNull": true,
  1697. "defaultValue": "0"
  1698. },
  1699. {
  1700. "fieldPath": "durPos",
  1701. "columnName": "durPos",
  1702. "affinity": "INTEGER",
  1703. "notNull": true,
  1704. "defaultValue": "0"
  1705. }
  1706. ],
  1707. "primaryKey": {
  1708. "autoGenerate": false,
  1709. "columnNames": [
  1710. "origin",
  1711. "link"
  1712. ]
  1713. }
  1714. },
  1715. {
  1716. "tableName": "txtTocRules",
  1717. "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER NOT NULL, `name` TEXT NOT NULL, `rule` TEXT NOT NULL, `example` TEXT, `serialNumber` INTEGER NOT NULL, `enable` INTEGER NOT NULL, PRIMARY KEY(`id`))",
  1718. "fields": [
  1719. {
  1720. "fieldPath": "id",
  1721. "columnName": "id",
  1722. "affinity": "INTEGER",
  1723. "notNull": true
  1724. },
  1725. {
  1726. "fieldPath": "name",
  1727. "columnName": "name",
  1728. "affinity": "TEXT",
  1729. "notNull": true
  1730. },
  1731. {
  1732. "fieldPath": "rule",
  1733. "columnName": "rule",
  1734. "affinity": "TEXT",
  1735. "notNull": true
  1736. },
  1737. {
  1738. "fieldPath": "example",
  1739. "columnName": "example",
  1740. "affinity": "TEXT"
  1741. },
  1742. {
  1743. "fieldPath": "serialNumber",
  1744. "columnName": "serialNumber",
  1745. "affinity": "INTEGER",
  1746. "notNull": true
  1747. },
  1748. {
  1749. "fieldPath": "enable",
  1750. "columnName": "enable",
  1751. "affinity": "INTEGER",
  1752. "notNull": true
  1753. }
  1754. ],
  1755. "primaryKey": {
  1756. "autoGenerate": false,
  1757. "columnNames": [
  1758. "id"
  1759. ]
  1760. }
  1761. },
  1762. {
  1763. "tableName": "readRecord",
  1764. "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`deviceId` TEXT NOT NULL, `bookName` TEXT NOT NULL, `bookAuthor` TEXT NOT NULL DEFAULT '', `readTime` INTEGER NOT NULL DEFAULT 0, `lastRead` INTEGER NOT NULL DEFAULT 0, PRIMARY KEY(`deviceId`, `bookName`, `bookAuthor`))",
  1765. "fields": [
  1766. {
  1767. "fieldPath": "deviceId",
  1768. "columnName": "deviceId",
  1769. "affinity": "TEXT",
  1770. "notNull": true
  1771. },
  1772. {
  1773. "fieldPath": "bookName",
  1774. "columnName": "bookName",
  1775. "affinity": "TEXT",
  1776. "notNull": true
  1777. },
  1778. {
  1779. "fieldPath": "bookAuthor",
  1780. "columnName": "bookAuthor",
  1781. "affinity": "TEXT",
  1782. "notNull": true,
  1783. "defaultValue": "''"
  1784. },
  1785. {
  1786. "fieldPath": "readTime",
  1787. "columnName": "readTime",
  1788. "affinity": "INTEGER",
  1789. "notNull": true,
  1790. "defaultValue": "0"
  1791. },
  1792. {
  1793. "fieldPath": "lastRead",
  1794. "columnName": "lastRead",
  1795. "affinity": "INTEGER",
  1796. "notNull": true,
  1797. "defaultValue": "0"
  1798. }
  1799. ],
  1800. "primaryKey": {
  1801. "autoGenerate": false,
  1802. "columnNames": [
  1803. "deviceId",
  1804. "bookName",
  1805. "bookAuthor"
  1806. ]
  1807. }
  1808. },
  1809. {
  1810. "tableName": "httpTTS",
  1811. "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER NOT NULL, `name` TEXT NOT NULL, `url` TEXT NOT NULL, `contentType` TEXT, `concurrentRate` TEXT DEFAULT '0', `loginUrl` TEXT, `loginUi` TEXT, `header` TEXT, `jsLib` TEXT, `enabledCookieJar` INTEGER DEFAULT 0, `loginCheckJs` TEXT, `lastUpdateTime` INTEGER NOT NULL DEFAULT 0, PRIMARY KEY(`id`))",
  1812. "fields": [
  1813. {
  1814. "fieldPath": "id",
  1815. "columnName": "id",
  1816. "affinity": "INTEGER",
  1817. "notNull": true
  1818. },
  1819. {
  1820. "fieldPath": "name",
  1821. "columnName": "name",
  1822. "affinity": "TEXT",
  1823. "notNull": true
  1824. },
  1825. {
  1826. "fieldPath": "url",
  1827. "columnName": "url",
  1828. "affinity": "TEXT",
  1829. "notNull": true
  1830. },
  1831. {
  1832. "fieldPath": "contentType",
  1833. "columnName": "contentType",
  1834. "affinity": "TEXT"
  1835. },
  1836. {
  1837. "fieldPath": "concurrentRate",
  1838. "columnName": "concurrentRate",
  1839. "affinity": "TEXT",
  1840. "defaultValue": "'0'"
  1841. },
  1842. {
  1843. "fieldPath": "loginUrl",
  1844. "columnName": "loginUrl",
  1845. "affinity": "TEXT"
  1846. },
  1847. {
  1848. "fieldPath": "loginUi",
  1849. "columnName": "loginUi",
  1850. "affinity": "TEXT"
  1851. },
  1852. {
  1853. "fieldPath": "header",
  1854. "columnName": "header",
  1855. "affinity": "TEXT"
  1856. },
  1857. {
  1858. "fieldPath": "jsLib",
  1859. "columnName": "jsLib",
  1860. "affinity": "TEXT"
  1861. },
  1862. {
  1863. "fieldPath": "enabledCookieJar",
  1864. "columnName": "enabledCookieJar",
  1865. "affinity": "INTEGER",
  1866. "defaultValue": "0"
  1867. },
  1868. {
  1869. "fieldPath": "loginCheckJs",
  1870. "columnName": "loginCheckJs",
  1871. "affinity": "TEXT"
  1872. },
  1873. {
  1874. "fieldPath": "lastUpdateTime",
  1875. "columnName": "lastUpdateTime",
  1876. "affinity": "INTEGER",
  1877. "notNull": true,
  1878. "defaultValue": "0"
  1879. }
  1880. ],
  1881. "primaryKey": {
  1882. "autoGenerate": false,
  1883. "columnNames": [
  1884. "id"
  1885. ]
  1886. }
  1887. },
  1888. {
  1889. "tableName": "caches",
  1890. "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`key` TEXT NOT NULL, `value` TEXT, `deadline` INTEGER NOT NULL, PRIMARY KEY(`key`))",
  1891. "fields": [
  1892. {
  1893. "fieldPath": "key",
  1894. "columnName": "key",
  1895. "affinity": "TEXT",
  1896. "notNull": true
  1897. },
  1898. {
  1899. "fieldPath": "value",
  1900. "columnName": "value",
  1901. "affinity": "TEXT"
  1902. },
  1903. {
  1904. "fieldPath": "deadline",
  1905. "columnName": "deadline",
  1906. "affinity": "INTEGER",
  1907. "notNull": true
  1908. }
  1909. ],
  1910. "primaryKey": {
  1911. "autoGenerate": false,
  1912. "columnNames": [
  1913. "key"
  1914. ]
  1915. },
  1916. "indices": [
  1917. {
  1918. "name": "index_caches_key",
  1919. "unique": true,
  1920. "columnNames": [
  1921. "key"
  1922. ],
  1923. "orders": [],
  1924. "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_caches_key` ON `${TABLE_NAME}` (`key`)"
  1925. }
  1926. ]
  1927. },
  1928. {
  1929. "tableName": "ruleSubs",
  1930. "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`))",
  1931. "fields": [
  1932. {
  1933. "fieldPath": "id",
  1934. "columnName": "id",
  1935. "affinity": "INTEGER",
  1936. "notNull": true
  1937. },
  1938. {
  1939. "fieldPath": "name",
  1940. "columnName": "name",
  1941. "affinity": "TEXT",
  1942. "notNull": true
  1943. },
  1944. {
  1945. "fieldPath": "url",
  1946. "columnName": "url",
  1947. "affinity": "TEXT",
  1948. "notNull": true
  1949. },
  1950. {
  1951. "fieldPath": "type",
  1952. "columnName": "type",
  1953. "affinity": "INTEGER",
  1954. "notNull": true
  1955. },
  1956. {
  1957. "fieldPath": "customOrder",
  1958. "columnName": "customOrder",
  1959. "affinity": "INTEGER",
  1960. "notNull": true
  1961. },
  1962. {
  1963. "fieldPath": "autoUpdate",
  1964. "columnName": "autoUpdate",
  1965. "affinity": "INTEGER",
  1966. "notNull": true
  1967. },
  1968. {
  1969. "fieldPath": "update",
  1970. "columnName": "update",
  1971. "affinity": "INTEGER",
  1972. "notNull": true
  1973. }
  1974. ],
  1975. "primaryKey": {
  1976. "autoGenerate": false,
  1977. "columnNames": [
  1978. "id"
  1979. ]
  1980. }
  1981. },
  1982. {
  1983. "tableName": "dictRules",
  1984. "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`name` TEXT NOT NULL, `urlRule` TEXT NOT NULL, `showRule` TEXT NOT NULL, `enabled` INTEGER NOT NULL DEFAULT 1, `sortNumber` INTEGER NOT NULL DEFAULT 0, PRIMARY KEY(`name`))",
  1985. "fields": [
  1986. {
  1987. "fieldPath": "name",
  1988. "columnName": "name",
  1989. "affinity": "TEXT",
  1990. "notNull": true
  1991. },
  1992. {
  1993. "fieldPath": "urlRule",
  1994. "columnName": "urlRule",
  1995. "affinity": "TEXT",
  1996. "notNull": true
  1997. },
  1998. {
  1999. "fieldPath": "showRule",
  2000. "columnName": "showRule",
  2001. "affinity": "TEXT",
  2002. "notNull": true
  2003. },
  2004. {
  2005. "fieldPath": "enabled",
  2006. "columnName": "enabled",
  2007. "affinity": "INTEGER",
  2008. "notNull": true,
  2009. "defaultValue": "1"
  2010. },
  2011. {
  2012. "fieldPath": "sortNumber",
  2013. "columnName": "sortNumber",
  2014. "affinity": "INTEGER",
  2015. "notNull": true,
  2016. "defaultValue": "0"
  2017. }
  2018. ],
  2019. "primaryKey": {
  2020. "autoGenerate": false,
  2021. "columnNames": [
  2022. "name"
  2023. ]
  2024. }
  2025. },
  2026. {
  2027. "tableName": "keyboardAssists",
  2028. "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`))",
  2029. "fields": [
  2030. {
  2031. "fieldPath": "type",
  2032. "columnName": "type",
  2033. "affinity": "INTEGER",
  2034. "notNull": true,
  2035. "defaultValue": "0"
  2036. },
  2037. {
  2038. "fieldPath": "key",
  2039. "columnName": "key",
  2040. "affinity": "TEXT",
  2041. "notNull": true,
  2042. "defaultValue": "''"
  2043. },
  2044. {
  2045. "fieldPath": "value",
  2046. "columnName": "value",
  2047. "affinity": "TEXT",
  2048. "notNull": true,
  2049. "defaultValue": "''"
  2050. },
  2051. {
  2052. "fieldPath": "serialNo",
  2053. "columnName": "serialNo",
  2054. "affinity": "INTEGER",
  2055. "notNull": true,
  2056. "defaultValue": "0"
  2057. }
  2058. ],
  2059. "primaryKey": {
  2060. "autoGenerate": false,
  2061. "columnNames": [
  2062. "type",
  2063. "key"
  2064. ]
  2065. }
  2066. },
  2067. {
  2068. "tableName": "servers",
  2069. "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER NOT NULL, `name` TEXT NOT NULL, `type` TEXT NOT NULL, `config` TEXT, `sortNumber` INTEGER NOT NULL, PRIMARY KEY(`id`))",
  2070. "fields": [
  2071. {
  2072. "fieldPath": "id",
  2073. "columnName": "id",
  2074. "affinity": "INTEGER",
  2075. "notNull": true
  2076. },
  2077. {
  2078. "fieldPath": "name",
  2079. "columnName": "name",
  2080. "affinity": "TEXT",
  2081. "notNull": true
  2082. },
  2083. {
  2084. "fieldPath": "type",
  2085. "columnName": "type",
  2086. "affinity": "TEXT",
  2087. "notNull": true
  2088. },
  2089. {
  2090. "fieldPath": "config",
  2091. "columnName": "config",
  2092. "affinity": "TEXT"
  2093. },
  2094. {
  2095. "fieldPath": "sortNumber",
  2096. "columnName": "sortNumber",
  2097. "affinity": "INTEGER",
  2098. "notNull": true
  2099. }
  2100. ],
  2101. "primaryKey": {
  2102. "autoGenerate": false,
  2103. "columnNames": [
  2104. "id"
  2105. ]
  2106. }
  2107. },
  2108. {
  2109. "tableName": "search_content_history",
  2110. "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, `bookName` TEXT DEFAULT '', `bookAuthor` TEXT DEFAULT '', `query` TEXT NOT NULL, `time` INTEGER NOT NULL)",
  2111. "fields": [
  2112. {
  2113. "fieldPath": "id",
  2114. "columnName": "id",
  2115. "affinity": "INTEGER",
  2116. "notNull": true
  2117. },
  2118. {
  2119. "fieldPath": "bookName",
  2120. "columnName": "bookName",
  2121. "affinity": "TEXT",
  2122. "defaultValue": "''"
  2123. },
  2124. {
  2125. "fieldPath": "bookAuthor",
  2126. "columnName": "bookAuthor",
  2127. "affinity": "TEXT",
  2128. "defaultValue": "''"
  2129. },
  2130. {
  2131. "fieldPath": "query",
  2132. "columnName": "query",
  2133. "affinity": "TEXT",
  2134. "notNull": true
  2135. },
  2136. {
  2137. "fieldPath": "time",
  2138. "columnName": "time",
  2139. "affinity": "INTEGER",
  2140. "notNull": true
  2141. }
  2142. ],
  2143. "primaryKey": {
  2144. "autoGenerate": true,
  2145. "columnNames": [
  2146. "id"
  2147. ]
  2148. },
  2149. "indices": [
  2150. {
  2151. "name": "index_search_content_history_bookName_bookAuthor_query",
  2152. "unique": true,
  2153. "columnNames": [
  2154. "bookName",
  2155. "bookAuthor",
  2156. "query"
  2157. ],
  2158. "orders": [],
  2159. "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_search_content_history_bookName_bookAuthor_query` ON `${TABLE_NAME}` (`bookName`, `bookAuthor`, `query`)"
  2160. }
  2161. ]
  2162. },
  2163. {
  2164. "tableName": "homepage_modules",
  2165. "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` TEXT NOT NULL, `sourceUrl` TEXT NOT NULL, `moduleKey` TEXT NOT NULL, `type` TEXT NOT NULL, `title` TEXT NOT NULL, `args` TEXT, `layoutConfig` TEXT, `url` TEXT, `isEnabled` INTEGER NOT NULL, `sortOrder` INTEGER NOT NULL, `customSetId` TEXT, `isUserCreated` INTEGER NOT NULL, `customTitle` TEXT, `customSetTitle` TEXT, `sourceJsonHash` TEXT, `syncedAt` INTEGER NOT NULL, PRIMARY KEY(`id`))",
  2166. "fields": [
  2167. {
  2168. "fieldPath": "id",
  2169. "columnName": "id",
  2170. "affinity": "TEXT",
  2171. "notNull": true
  2172. },
  2173. {
  2174. "fieldPath": "sourceUrl",
  2175. "columnName": "sourceUrl",
  2176. "affinity": "TEXT",
  2177. "notNull": true
  2178. },
  2179. {
  2180. "fieldPath": "moduleKey",
  2181. "columnName": "moduleKey",
  2182. "affinity": "TEXT",
  2183. "notNull": true
  2184. },
  2185. {
  2186. "fieldPath": "type",
  2187. "columnName": "type",
  2188. "affinity": "TEXT",
  2189. "notNull": true
  2190. },
  2191. {
  2192. "fieldPath": "title",
  2193. "columnName": "title",
  2194. "affinity": "TEXT",
  2195. "notNull": true
  2196. },
  2197. {
  2198. "fieldPath": "args",
  2199. "columnName": "args",
  2200. "affinity": "TEXT"
  2201. },
  2202. {
  2203. "fieldPath": "layoutConfig",
  2204. "columnName": "layoutConfig",
  2205. "affinity": "TEXT"
  2206. },
  2207. {
  2208. "fieldPath": "url",
  2209. "columnName": "url",
  2210. "affinity": "TEXT"
  2211. },
  2212. {
  2213. "fieldPath": "isEnabled",
  2214. "columnName": "isEnabled",
  2215. "affinity": "INTEGER",
  2216. "notNull": true
  2217. },
  2218. {
  2219. "fieldPath": "sortOrder",
  2220. "columnName": "sortOrder",
  2221. "affinity": "INTEGER",
  2222. "notNull": true
  2223. },
  2224. {
  2225. "fieldPath": "customSetId",
  2226. "columnName": "customSetId",
  2227. "affinity": "TEXT"
  2228. },
  2229. {
  2230. "fieldPath": "isUserCreated",
  2231. "columnName": "isUserCreated",
  2232. "affinity": "INTEGER",
  2233. "notNull": true
  2234. },
  2235. {
  2236. "fieldPath": "customTitle",
  2237. "columnName": "customTitle",
  2238. "affinity": "TEXT"
  2239. },
  2240. {
  2241. "fieldPath": "customSetTitle",
  2242. "columnName": "customSetTitle",
  2243. "affinity": "TEXT"
  2244. },
  2245. {
  2246. "fieldPath": "sourceJsonHash",
  2247. "columnName": "sourceJsonHash",
  2248. "affinity": "TEXT"
  2249. },
  2250. {
  2251. "fieldPath": "syncedAt",
  2252. "columnName": "syncedAt",
  2253. "affinity": "INTEGER",
  2254. "notNull": true
  2255. }
  2256. ],
  2257. "primaryKey": {
  2258. "autoGenerate": false,
  2259. "columnNames": [
  2260. "id"
  2261. ]
  2262. }
  2263. },
  2264. {
  2265. "tableName": "homepage_custom_sets",
  2266. "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` TEXT NOT NULL, `name` TEXT NOT NULL, `sortOrder` INTEGER NOT NULL, PRIMARY KEY(`id`))",
  2267. "fields": [
  2268. {
  2269. "fieldPath": "id",
  2270. "columnName": "id",
  2271. "affinity": "TEXT",
  2272. "notNull": true
  2273. },
  2274. {
  2275. "fieldPath": "name",
  2276. "columnName": "name",
  2277. "affinity": "TEXT",
  2278. "notNull": true
  2279. },
  2280. {
  2281. "fieldPath": "sortOrder",
  2282. "columnName": "sortOrder",
  2283. "affinity": "INTEGER",
  2284. "notNull": true
  2285. }
  2286. ],
  2287. "primaryKey": {
  2288. "autoGenerate": false,
  2289. "columnNames": [
  2290. "id"
  2291. ]
  2292. }
  2293. },
  2294. {
  2295. "tableName": "highlightRules",
  2296. "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` TEXT NOT NULL, `name` TEXT NOT NULL, `pattern` TEXT NOT NULL, `sampleText` TEXT NOT NULL, `targetScope` INTEGER NOT NULL, `enabled` INTEGER NOT NULL, `position` INTEGER NOT NULL, `textColor` INTEGER, `bgColor` INTEGER, `underlineMode` INTEGER NOT NULL, `underlineColor` INTEGER, `underlineWidth` REAL NOT NULL, `underlineOffset` REAL NOT NULL, `underlineSvgPath` TEXT, `bgImage` TEXT, `bgImageFit` INTEGER NOT NULL, `bgImageScale` REAL NOT NULL, `configName` TEXT, `fontPath` TEXT, PRIMARY KEY(`id`))",
  2297. "fields": [
  2298. {
  2299. "fieldPath": "id",
  2300. "columnName": "id",
  2301. "affinity": "TEXT",
  2302. "notNull": true
  2303. },
  2304. {
  2305. "fieldPath": "name",
  2306. "columnName": "name",
  2307. "affinity": "TEXT",
  2308. "notNull": true
  2309. },
  2310. {
  2311. "fieldPath": "pattern",
  2312. "columnName": "pattern",
  2313. "affinity": "TEXT",
  2314. "notNull": true
  2315. },
  2316. {
  2317. "fieldPath": "sampleText",
  2318. "columnName": "sampleText",
  2319. "affinity": "TEXT",
  2320. "notNull": true
  2321. },
  2322. {
  2323. "fieldPath": "targetScope",
  2324. "columnName": "targetScope",
  2325. "affinity": "INTEGER",
  2326. "notNull": true
  2327. },
  2328. {
  2329. "fieldPath": "enabled",
  2330. "columnName": "enabled",
  2331. "affinity": "INTEGER",
  2332. "notNull": true
  2333. },
  2334. {
  2335. "fieldPath": "position",
  2336. "columnName": "position",
  2337. "affinity": "INTEGER",
  2338. "notNull": true
  2339. },
  2340. {
  2341. "fieldPath": "textColor",
  2342. "columnName": "textColor",
  2343. "affinity": "INTEGER"
  2344. },
  2345. {
  2346. "fieldPath": "bgColor",
  2347. "columnName": "bgColor",
  2348. "affinity": "INTEGER"
  2349. },
  2350. {
  2351. "fieldPath": "underlineMode",
  2352. "columnName": "underlineMode",
  2353. "affinity": "INTEGER",
  2354. "notNull": true
  2355. },
  2356. {
  2357. "fieldPath": "underlineColor",
  2358. "columnName": "underlineColor",
  2359. "affinity": "INTEGER"
  2360. },
  2361. {
  2362. "fieldPath": "underlineWidth",
  2363. "columnName": "underlineWidth",
  2364. "affinity": "REAL",
  2365. "notNull": true
  2366. },
  2367. {
  2368. "fieldPath": "underlineOffset",
  2369. "columnName": "underlineOffset",
  2370. "affinity": "REAL",
  2371. "notNull": true
  2372. },
  2373. {
  2374. "fieldPath": "underlineSvgPath",
  2375. "columnName": "underlineSvgPath",
  2376. "affinity": "TEXT"
  2377. },
  2378. {
  2379. "fieldPath": "bgImage",
  2380. "columnName": "bgImage",
  2381. "affinity": "TEXT"
  2382. },
  2383. {
  2384. "fieldPath": "bgImageFit",
  2385. "columnName": "bgImageFit",
  2386. "affinity": "INTEGER",
  2387. "notNull": true
  2388. },
  2389. {
  2390. "fieldPath": "bgImageScale",
  2391. "columnName": "bgImageScale",
  2392. "affinity": "REAL",
  2393. "notNull": true
  2394. },
  2395. {
  2396. "fieldPath": "configName",
  2397. "columnName": "configName",
  2398. "affinity": "TEXT"
  2399. },
  2400. {
  2401. "fieldPath": "fontPath",
  2402. "columnName": "fontPath",
  2403. "affinity": "TEXT"
  2404. }
  2405. ],
  2406. "primaryKey": {
  2407. "autoGenerate": false,
  2408. "columnNames": [
  2409. "id"
  2410. ]
  2411. }
  2412. },
  2413. {
  2414. "tableName": "ai_provider_profiles",
  2415. "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` TEXT NOT NULL, `name` TEXT NOT NULL, `protocol` TEXT NOT NULL, `baseUrl` TEXT NOT NULL, `modelsUrl` TEXT, `apiKey` TEXT NOT NULL, `authType` TEXT NOT NULL, `secretRef` TEXT, `headersJson` TEXT, `chatPath` TEXT, `responsesPath` TEXT, `messagesPath` TEXT, `modelsPath` TEXT, `customHeadersJson` TEXT, `enabled` INTEGER NOT NULL, `createdAt` INTEGER NOT NULL, `updatedAt` INTEGER NOT NULL, PRIMARY KEY(`id`))",
  2416. "fields": [
  2417. {
  2418. "fieldPath": "id",
  2419. "columnName": "id",
  2420. "affinity": "TEXT",
  2421. "notNull": true
  2422. },
  2423. {
  2424. "fieldPath": "name",
  2425. "columnName": "name",
  2426. "affinity": "TEXT",
  2427. "notNull": true
  2428. },
  2429. {
  2430. "fieldPath": "protocol",
  2431. "columnName": "protocol",
  2432. "affinity": "TEXT",
  2433. "notNull": true
  2434. },
  2435. {
  2436. "fieldPath": "baseUrl",
  2437. "columnName": "baseUrl",
  2438. "affinity": "TEXT",
  2439. "notNull": true
  2440. },
  2441. {
  2442. "fieldPath": "modelsUrl",
  2443. "columnName": "modelsUrl",
  2444. "affinity": "TEXT"
  2445. },
  2446. {
  2447. "fieldPath": "apiKey",
  2448. "columnName": "apiKey",
  2449. "affinity": "TEXT",
  2450. "notNull": true
  2451. },
  2452. {
  2453. "fieldPath": "authType",
  2454. "columnName": "authType",
  2455. "affinity": "TEXT",
  2456. "notNull": true
  2457. },
  2458. {
  2459. "fieldPath": "secretRef",
  2460. "columnName": "secretRef",
  2461. "affinity": "TEXT"
  2462. },
  2463. {
  2464. "fieldPath": "headersJson",
  2465. "columnName": "headersJson",
  2466. "affinity": "TEXT"
  2467. },
  2468. {
  2469. "fieldPath": "chatPath",
  2470. "columnName": "chatPath",
  2471. "affinity": "TEXT"
  2472. },
  2473. {
  2474. "fieldPath": "responsesPath",
  2475. "columnName": "responsesPath",
  2476. "affinity": "TEXT"
  2477. },
  2478. {
  2479. "fieldPath": "messagesPath",
  2480. "columnName": "messagesPath",
  2481. "affinity": "TEXT"
  2482. },
  2483. {
  2484. "fieldPath": "modelsPath",
  2485. "columnName": "modelsPath",
  2486. "affinity": "TEXT"
  2487. },
  2488. {
  2489. "fieldPath": "customHeadersJson",
  2490. "columnName": "customHeadersJson",
  2491. "affinity": "TEXT"
  2492. },
  2493. {
  2494. "fieldPath": "enabled",
  2495. "columnName": "enabled",
  2496. "affinity": "INTEGER",
  2497. "notNull": true
  2498. },
  2499. {
  2500. "fieldPath": "createdAt",
  2501. "columnName": "createdAt",
  2502. "affinity": "INTEGER",
  2503. "notNull": true
  2504. },
  2505. {
  2506. "fieldPath": "updatedAt",
  2507. "columnName": "updatedAt",
  2508. "affinity": "INTEGER",
  2509. "notNull": true
  2510. }
  2511. ],
  2512. "primaryKey": {
  2513. "autoGenerate": false,
  2514. "columnNames": [
  2515. "id"
  2516. ]
  2517. }
  2518. },
  2519. {
  2520. "tableName": "ai_model_profiles",
  2521. "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` TEXT NOT NULL, `providerId` TEXT NOT NULL, `displayName` TEXT NOT NULL, `modelId` TEXT NOT NULL, `contextWindow` INTEGER NOT NULL, `maxOutputTokens` INTEGER NOT NULL, `capabilities` TEXT NOT NULL, `defaultParamsJson` TEXT, `enabled` INTEGER NOT NULL, `sortNumber` INTEGER NOT NULL, `createdAt` INTEGER NOT NULL, `updatedAt` INTEGER NOT NULL, PRIMARY KEY(`id`))",
  2522. "fields": [
  2523. {
  2524. "fieldPath": "id",
  2525. "columnName": "id",
  2526. "affinity": "TEXT",
  2527. "notNull": true
  2528. },
  2529. {
  2530. "fieldPath": "providerId",
  2531. "columnName": "providerId",
  2532. "affinity": "TEXT",
  2533. "notNull": true
  2534. },
  2535. {
  2536. "fieldPath": "displayName",
  2537. "columnName": "displayName",
  2538. "affinity": "TEXT",
  2539. "notNull": true
  2540. },
  2541. {
  2542. "fieldPath": "modelId",
  2543. "columnName": "modelId",
  2544. "affinity": "TEXT",
  2545. "notNull": true
  2546. },
  2547. {
  2548. "fieldPath": "contextWindow",
  2549. "columnName": "contextWindow",
  2550. "affinity": "INTEGER",
  2551. "notNull": true
  2552. },
  2553. {
  2554. "fieldPath": "maxOutputTokens",
  2555. "columnName": "maxOutputTokens",
  2556. "affinity": "INTEGER",
  2557. "notNull": true
  2558. },
  2559. {
  2560. "fieldPath": "capabilities",
  2561. "columnName": "capabilities",
  2562. "affinity": "TEXT",
  2563. "notNull": true
  2564. },
  2565. {
  2566. "fieldPath": "defaultParamsJson",
  2567. "columnName": "defaultParamsJson",
  2568. "affinity": "TEXT"
  2569. },
  2570. {
  2571. "fieldPath": "enabled",
  2572. "columnName": "enabled",
  2573. "affinity": "INTEGER",
  2574. "notNull": true
  2575. },
  2576. {
  2577. "fieldPath": "sortNumber",
  2578. "columnName": "sortNumber",
  2579. "affinity": "INTEGER",
  2580. "notNull": true
  2581. },
  2582. {
  2583. "fieldPath": "createdAt",
  2584. "columnName": "createdAt",
  2585. "affinity": "INTEGER",
  2586. "notNull": true
  2587. },
  2588. {
  2589. "fieldPath": "updatedAt",
  2590. "columnName": "updatedAt",
  2591. "affinity": "INTEGER",
  2592. "notNull": true
  2593. }
  2594. ],
  2595. "primaryKey": {
  2596. "autoGenerate": false,
  2597. "columnNames": [
  2598. "id"
  2599. ]
  2600. },
  2601. "indices": [
  2602. {
  2603. "name": "index_ai_model_profiles_providerId",
  2604. "unique": false,
  2605. "columnNames": [
  2606. "providerId"
  2607. ],
  2608. "orders": [],
  2609. "createSql": "CREATE INDEX IF NOT EXISTS `index_ai_model_profiles_providerId` ON `${TABLE_NAME}` (`providerId`)"
  2610. }
  2611. ]
  2612. },
  2613. {
  2614. "tableName": "ai_task_presets",
  2615. "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` TEXT NOT NULL, `taskType` TEXT NOT NULL, `name` TEXT NOT NULL, `modelProfileId` TEXT NOT NULL, `promptTemplate` TEXT NOT NULL, `paramsJson` TEXT, `chunkPolicyJson` TEXT, `enabled` INTEGER NOT NULL, `isDefault` INTEGER NOT NULL, `sortNumber` INTEGER NOT NULL, `createdAt` INTEGER NOT NULL, `updatedAt` INTEGER NOT NULL, PRIMARY KEY(`id`))",
  2616. "fields": [
  2617. {
  2618. "fieldPath": "id",
  2619. "columnName": "id",
  2620. "affinity": "TEXT",
  2621. "notNull": true
  2622. },
  2623. {
  2624. "fieldPath": "taskType",
  2625. "columnName": "taskType",
  2626. "affinity": "TEXT",
  2627. "notNull": true
  2628. },
  2629. {
  2630. "fieldPath": "name",
  2631. "columnName": "name",
  2632. "affinity": "TEXT",
  2633. "notNull": true
  2634. },
  2635. {
  2636. "fieldPath": "modelProfileId",
  2637. "columnName": "modelProfileId",
  2638. "affinity": "TEXT",
  2639. "notNull": true
  2640. },
  2641. {
  2642. "fieldPath": "promptTemplate",
  2643. "columnName": "promptTemplate",
  2644. "affinity": "TEXT",
  2645. "notNull": true
  2646. },
  2647. {
  2648. "fieldPath": "paramsJson",
  2649. "columnName": "paramsJson",
  2650. "affinity": "TEXT"
  2651. },
  2652. {
  2653. "fieldPath": "chunkPolicyJson",
  2654. "columnName": "chunkPolicyJson",
  2655. "affinity": "TEXT"
  2656. },
  2657. {
  2658. "fieldPath": "enabled",
  2659. "columnName": "enabled",
  2660. "affinity": "INTEGER",
  2661. "notNull": true
  2662. },
  2663. {
  2664. "fieldPath": "isDefault",
  2665. "columnName": "isDefault",
  2666. "affinity": "INTEGER",
  2667. "notNull": true
  2668. },
  2669. {
  2670. "fieldPath": "sortNumber",
  2671. "columnName": "sortNumber",
  2672. "affinity": "INTEGER",
  2673. "notNull": true
  2674. },
  2675. {
  2676. "fieldPath": "createdAt",
  2677. "columnName": "createdAt",
  2678. "affinity": "INTEGER",
  2679. "notNull": true
  2680. },
  2681. {
  2682. "fieldPath": "updatedAt",
  2683. "columnName": "updatedAt",
  2684. "affinity": "INTEGER",
  2685. "notNull": true
  2686. }
  2687. ],
  2688. "primaryKey": {
  2689. "autoGenerate": false,
  2690. "columnNames": [
  2691. "id"
  2692. ]
  2693. },
  2694. "indices": [
  2695. {
  2696. "name": "index_ai_task_presets_taskType",
  2697. "unique": false,
  2698. "columnNames": [
  2699. "taskType"
  2700. ],
  2701. "orders": [],
  2702. "createSql": "CREATE INDEX IF NOT EXISTS `index_ai_task_presets_taskType` ON `${TABLE_NAME}` (`taskType`)"
  2703. },
  2704. {
  2705. "name": "index_ai_task_presets_modelProfileId",
  2706. "unique": false,
  2707. "columnNames": [
  2708. "modelProfileId"
  2709. ],
  2710. "orders": [],
  2711. "createSql": "CREATE INDEX IF NOT EXISTS `index_ai_task_presets_modelProfileId` ON `${TABLE_NAME}` (`modelProfileId`)"
  2712. }
  2713. ]
  2714. },
  2715. {
  2716. "tableName": "ai_artifacts",
  2717. "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` TEXT NOT NULL, `taskType` TEXT NOT NULL, `bookUrl` TEXT NOT NULL, `chapterIndex` INTEGER, `contentHash` TEXT NOT NULL, `promptHash` TEXT NOT NULL, `modelProfileId` TEXT NOT NULL, `status` INTEGER NOT NULL, `output` TEXT, `errorMessage` TEXT, `schemaVersion` INTEGER NOT NULL, `createdAt` INTEGER NOT NULL, `updatedAt` INTEGER NOT NULL, PRIMARY KEY(`id`))",
  2718. "fields": [
  2719. {
  2720. "fieldPath": "id",
  2721. "columnName": "id",
  2722. "affinity": "TEXT",
  2723. "notNull": true
  2724. },
  2725. {
  2726. "fieldPath": "taskType",
  2727. "columnName": "taskType",
  2728. "affinity": "TEXT",
  2729. "notNull": true
  2730. },
  2731. {
  2732. "fieldPath": "bookUrl",
  2733. "columnName": "bookUrl",
  2734. "affinity": "TEXT",
  2735. "notNull": true
  2736. },
  2737. {
  2738. "fieldPath": "chapterIndex",
  2739. "columnName": "chapterIndex",
  2740. "affinity": "INTEGER"
  2741. },
  2742. {
  2743. "fieldPath": "contentHash",
  2744. "columnName": "contentHash",
  2745. "affinity": "TEXT",
  2746. "notNull": true
  2747. },
  2748. {
  2749. "fieldPath": "promptHash",
  2750. "columnName": "promptHash",
  2751. "affinity": "TEXT",
  2752. "notNull": true
  2753. },
  2754. {
  2755. "fieldPath": "modelProfileId",
  2756. "columnName": "modelProfileId",
  2757. "affinity": "TEXT",
  2758. "notNull": true
  2759. },
  2760. {
  2761. "fieldPath": "status",
  2762. "columnName": "status",
  2763. "affinity": "INTEGER",
  2764. "notNull": true
  2765. },
  2766. {
  2767. "fieldPath": "output",
  2768. "columnName": "output",
  2769. "affinity": "TEXT"
  2770. },
  2771. {
  2772. "fieldPath": "errorMessage",
  2773. "columnName": "errorMessage",
  2774. "affinity": "TEXT"
  2775. },
  2776. {
  2777. "fieldPath": "schemaVersion",
  2778. "columnName": "schemaVersion",
  2779. "affinity": "INTEGER",
  2780. "notNull": true
  2781. },
  2782. {
  2783. "fieldPath": "createdAt",
  2784. "columnName": "createdAt",
  2785. "affinity": "INTEGER",
  2786. "notNull": true
  2787. },
  2788. {
  2789. "fieldPath": "updatedAt",
  2790. "columnName": "updatedAt",
  2791. "affinity": "INTEGER",
  2792. "notNull": true
  2793. }
  2794. ],
  2795. "primaryKey": {
  2796. "autoGenerate": false,
  2797. "columnNames": [
  2798. "id"
  2799. ]
  2800. },
  2801. "indices": [
  2802. {
  2803. "name": "index_ai_artifacts_bookUrl_chapterIndex_taskType",
  2804. "unique": false,
  2805. "columnNames": [
  2806. "bookUrl",
  2807. "chapterIndex",
  2808. "taskType"
  2809. ],
  2810. "orders": [],
  2811. "createSql": "CREATE INDEX IF NOT EXISTS `index_ai_artifacts_bookUrl_chapterIndex_taskType` ON `${TABLE_NAME}` (`bookUrl`, `chapterIndex`, `taskType`)"
  2812. },
  2813. {
  2814. "name": "index_ai_artifacts_contentHash_promptHash_modelProfileId",
  2815. "unique": false,
  2816. "columnNames": [
  2817. "contentHash",
  2818. "promptHash",
  2819. "modelProfileId"
  2820. ],
  2821. "orders": [],
  2822. "createSql": "CREATE INDEX IF NOT EXISTS `index_ai_artifacts_contentHash_promptHash_modelProfileId` ON `${TABLE_NAME}` (`contentHash`, `promptHash`, `modelProfileId`)"
  2823. }
  2824. ]
  2825. },
  2826. {
  2827. "tableName": "ai_chat_conversations",
  2828. "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` TEXT NOT NULL, `title` TEXT NOT NULL, `reasoningLevel` TEXT NOT NULL, `modelProfileId` TEXT, `createdAt` INTEGER NOT NULL, `updatedAt` INTEGER NOT NULL, PRIMARY KEY(`id`))",
  2829. "fields": [
  2830. {
  2831. "fieldPath": "id",
  2832. "columnName": "id",
  2833. "affinity": "TEXT",
  2834. "notNull": true
  2835. },
  2836. {
  2837. "fieldPath": "title",
  2838. "columnName": "title",
  2839. "affinity": "TEXT",
  2840. "notNull": true
  2841. },
  2842. {
  2843. "fieldPath": "reasoningLevel",
  2844. "columnName": "reasoningLevel",
  2845. "affinity": "TEXT",
  2846. "notNull": true
  2847. },
  2848. {
  2849. "fieldPath": "modelProfileId",
  2850. "columnName": "modelProfileId",
  2851. "affinity": "TEXT"
  2852. },
  2853. {
  2854. "fieldPath": "createdAt",
  2855. "columnName": "createdAt",
  2856. "affinity": "INTEGER",
  2857. "notNull": true
  2858. },
  2859. {
  2860. "fieldPath": "updatedAt",
  2861. "columnName": "updatedAt",
  2862. "affinity": "INTEGER",
  2863. "notNull": true
  2864. }
  2865. ],
  2866. "primaryKey": {
  2867. "autoGenerate": false,
  2868. "columnNames": [
  2869. "id"
  2870. ]
  2871. }
  2872. },
  2873. {
  2874. "tableName": "ai_chat_messages",
  2875. "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` TEXT NOT NULL, `conversationId` TEXT NOT NULL, `role` TEXT NOT NULL, `partsJson` TEXT NOT NULL, `createdAt` INTEGER NOT NULL, `branchIndex` INTEGER NOT NULL, `isSelected` INTEGER NOT NULL, `parentMessageId` TEXT, `thinkingDuration` INTEGER NOT NULL DEFAULT 0, PRIMARY KEY(`id`))",
  2876. "fields": [
  2877. {
  2878. "fieldPath": "id",
  2879. "columnName": "id",
  2880. "affinity": "TEXT",
  2881. "notNull": true
  2882. },
  2883. {
  2884. "fieldPath": "conversationId",
  2885. "columnName": "conversationId",
  2886. "affinity": "TEXT",
  2887. "notNull": true
  2888. },
  2889. {
  2890. "fieldPath": "role",
  2891. "columnName": "role",
  2892. "affinity": "TEXT",
  2893. "notNull": true
  2894. },
  2895. {
  2896. "fieldPath": "partsJson",
  2897. "columnName": "partsJson",
  2898. "affinity": "TEXT",
  2899. "notNull": true
  2900. },
  2901. {
  2902. "fieldPath": "createdAt",
  2903. "columnName": "createdAt",
  2904. "affinity": "INTEGER",
  2905. "notNull": true
  2906. },
  2907. {
  2908. "fieldPath": "branchIndex",
  2909. "columnName": "branchIndex",
  2910. "affinity": "INTEGER",
  2911. "notNull": true
  2912. },
  2913. {
  2914. "fieldPath": "isSelected",
  2915. "columnName": "isSelected",
  2916. "affinity": "INTEGER",
  2917. "notNull": true
  2918. },
  2919. {
  2920. "fieldPath": "parentMessageId",
  2921. "columnName": "parentMessageId",
  2922. "affinity": "TEXT"
  2923. },
  2924. {
  2925. "fieldPath": "thinkingDuration",
  2926. "columnName": "thinkingDuration",
  2927. "affinity": "INTEGER",
  2928. "notNull": true,
  2929. "defaultValue": "0"
  2930. }
  2931. ],
  2932. "primaryKey": {
  2933. "autoGenerate": false,
  2934. "columnNames": [
  2935. "id"
  2936. ]
  2937. },
  2938. "indices": [
  2939. {
  2940. "name": "index_ai_chat_messages_conversationId_createdAt",
  2941. "unique": false,
  2942. "columnNames": [
  2943. "conversationId",
  2944. "createdAt"
  2945. ],
  2946. "orders": [],
  2947. "createSql": "CREATE INDEX IF NOT EXISTS `index_ai_chat_messages_conversationId_createdAt` ON `${TABLE_NAME}` (`conversationId`, `createdAt`)"
  2948. }
  2949. ]
  2950. },
  2951. {
  2952. "tableName": "ai_memory",
  2953. "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`conversationId` TEXT NOT NULL, `key` TEXT NOT NULL, `value` TEXT NOT NULL, `updatedAt` INTEGER NOT NULL, PRIMARY KEY(`conversationId`, `key`))",
  2954. "fields": [
  2955. {
  2956. "fieldPath": "conversationId",
  2957. "columnName": "conversationId",
  2958. "affinity": "TEXT",
  2959. "notNull": true
  2960. },
  2961. {
  2962. "fieldPath": "key",
  2963. "columnName": "key",
  2964. "affinity": "TEXT",
  2965. "notNull": true
  2966. },
  2967. {
  2968. "fieldPath": "value",
  2969. "columnName": "value",
  2970. "affinity": "TEXT",
  2971. "notNull": true
  2972. },
  2973. {
  2974. "fieldPath": "updatedAt",
  2975. "columnName": "updatedAt",
  2976. "affinity": "INTEGER",
  2977. "notNull": true
  2978. }
  2979. ],
  2980. "primaryKey": {
  2981. "autoGenerate": false,
  2982. "columnNames": [
  2983. "conversationId",
  2984. "key"
  2985. ]
  2986. },
  2987. "indices": [
  2988. {
  2989. "name": "index_ai_memory_conversationId",
  2990. "unique": false,
  2991. "columnNames": [
  2992. "conversationId"
  2993. ],
  2994. "orders": [],
  2995. "createSql": "CREATE INDEX IF NOT EXISTS `index_ai_memory_conversationId` ON `${TABLE_NAME}` (`conversationId`)"
  2996. }
  2997. ]
  2998. },
  2999. {
  3000. "tableName": "highlight_tag_rules",
  3001. "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER NOT NULL, `title` TEXT NOT NULL, `pattern` TEXT NOT NULL, `enabled` INTEGER NOT NULL, `order` INTEGER NOT NULL, PRIMARY KEY(`id`))",
  3002. "fields": [
  3003. {
  3004. "fieldPath": "id",
  3005. "columnName": "id",
  3006. "affinity": "INTEGER",
  3007. "notNull": true
  3008. },
  3009. {
  3010. "fieldPath": "title",
  3011. "columnName": "title",
  3012. "affinity": "TEXT",
  3013. "notNull": true
  3014. },
  3015. {
  3016. "fieldPath": "pattern",
  3017. "columnName": "pattern",
  3018. "affinity": "TEXT",
  3019. "notNull": true
  3020. },
  3021. {
  3022. "fieldPath": "enabled",
  3023. "columnName": "enabled",
  3024. "affinity": "INTEGER",
  3025. "notNull": true
  3026. },
  3027. {
  3028. "fieldPath": "order",
  3029. "columnName": "order",
  3030. "affinity": "INTEGER",
  3031. "notNull": true
  3032. }
  3033. ],
  3034. "primaryKey": {
  3035. "autoGenerate": false,
  3036. "columnNames": [
  3037. "id"
  3038. ]
  3039. }
  3040. },
  3041. {
  3042. "tableName": "tag_group_rules",
  3043. "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER NOT NULL, `pattern` TEXT NOT NULL, `groupName` TEXT NOT NULL, `order` INTEGER NOT NULL, PRIMARY KEY(`id`))",
  3044. "fields": [
  3045. {
  3046. "fieldPath": "id",
  3047. "columnName": "id",
  3048. "affinity": "INTEGER",
  3049. "notNull": true
  3050. },
  3051. {
  3052. "fieldPath": "pattern",
  3053. "columnName": "pattern",
  3054. "affinity": "TEXT",
  3055. "notNull": true
  3056. },
  3057. {
  3058. "fieldPath": "groupName",
  3059. "columnName": "groupName",
  3060. "affinity": "TEXT",
  3061. "notNull": true
  3062. },
  3063. {
  3064. "fieldPath": "order",
  3065. "columnName": "order",
  3066. "affinity": "INTEGER",
  3067. "notNull": true
  3068. }
  3069. ],
  3070. "primaryKey": {
  3071. "autoGenerate": false,
  3072. "columnNames": [
  3073. "id"
  3074. ]
  3075. }
  3076. },
  3077. {
  3078. "tableName": "book_content_processes",
  3079. "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` TEXT NOT NULL, `bookUrl` TEXT NOT NULL, `chapterIndex` INTEGER, `kind` TEXT NOT NULL, `stage` TEXT NOT NULL, `target` TEXT NOT NULL, `anchorJson` TEXT NOT NULL, `actionJson` TEXT NOT NULL, `styleJson` TEXT, `source` TEXT NOT NULL, `aiArtifactId` TEXT, `sourceContentHash` TEXT, `enabled` INTEGER NOT NULL, `sortOrder` INTEGER NOT NULL, `status` INTEGER NOT NULL, `schemaVersion` INTEGER NOT NULL, `createdAt` INTEGER NOT NULL, `updatedAt` INTEGER NOT NULL, PRIMARY KEY(`id`))",
  3080. "fields": [
  3081. {
  3082. "fieldPath": "id",
  3083. "columnName": "id",
  3084. "affinity": "TEXT",
  3085. "notNull": true
  3086. },
  3087. {
  3088. "fieldPath": "bookUrl",
  3089. "columnName": "bookUrl",
  3090. "affinity": "TEXT",
  3091. "notNull": true
  3092. },
  3093. {
  3094. "fieldPath": "chapterIndex",
  3095. "columnName": "chapterIndex",
  3096. "affinity": "INTEGER"
  3097. },
  3098. {
  3099. "fieldPath": "kind",
  3100. "columnName": "kind",
  3101. "affinity": "TEXT",
  3102. "notNull": true
  3103. },
  3104. {
  3105. "fieldPath": "stage",
  3106. "columnName": "stage",
  3107. "affinity": "TEXT",
  3108. "notNull": true
  3109. },
  3110. {
  3111. "fieldPath": "target",
  3112. "columnName": "target",
  3113. "affinity": "TEXT",
  3114. "notNull": true
  3115. },
  3116. {
  3117. "fieldPath": "anchorJson",
  3118. "columnName": "anchorJson",
  3119. "affinity": "TEXT",
  3120. "notNull": true
  3121. },
  3122. {
  3123. "fieldPath": "actionJson",
  3124. "columnName": "actionJson",
  3125. "affinity": "TEXT",
  3126. "notNull": true
  3127. },
  3128. {
  3129. "fieldPath": "styleJson",
  3130. "columnName": "styleJson",
  3131. "affinity": "TEXT"
  3132. },
  3133. {
  3134. "fieldPath": "source",
  3135. "columnName": "source",
  3136. "affinity": "TEXT",
  3137. "notNull": true
  3138. },
  3139. {
  3140. "fieldPath": "aiArtifactId",
  3141. "columnName": "aiArtifactId",
  3142. "affinity": "TEXT"
  3143. },
  3144. {
  3145. "fieldPath": "sourceContentHash",
  3146. "columnName": "sourceContentHash",
  3147. "affinity": "TEXT"
  3148. },
  3149. {
  3150. "fieldPath": "enabled",
  3151. "columnName": "enabled",
  3152. "affinity": "INTEGER",
  3153. "notNull": true
  3154. },
  3155. {
  3156. "fieldPath": "sortOrder",
  3157. "columnName": "sortOrder",
  3158. "affinity": "INTEGER",
  3159. "notNull": true
  3160. },
  3161. {
  3162. "fieldPath": "status",
  3163. "columnName": "status",
  3164. "affinity": "INTEGER",
  3165. "notNull": true
  3166. },
  3167. {
  3168. "fieldPath": "schemaVersion",
  3169. "columnName": "schemaVersion",
  3170. "affinity": "INTEGER",
  3171. "notNull": true
  3172. },
  3173. {
  3174. "fieldPath": "createdAt",
  3175. "columnName": "createdAt",
  3176. "affinity": "INTEGER",
  3177. "notNull": true
  3178. },
  3179. {
  3180. "fieldPath": "updatedAt",
  3181. "columnName": "updatedAt",
  3182. "affinity": "INTEGER",
  3183. "notNull": true
  3184. }
  3185. ],
  3186. "primaryKey": {
  3187. "autoGenerate": false,
  3188. "columnNames": [
  3189. "id"
  3190. ]
  3191. },
  3192. "indices": [
  3193. {
  3194. "name": "index_book_content_processes_bookUrl_chapterIndex_enabled_sortOrder",
  3195. "unique": false,
  3196. "columnNames": [
  3197. "bookUrl",
  3198. "chapterIndex",
  3199. "enabled",
  3200. "sortOrder"
  3201. ],
  3202. "orders": [],
  3203. "createSql": "CREATE INDEX IF NOT EXISTS `index_book_content_processes_bookUrl_chapterIndex_enabled_sortOrder` ON `${TABLE_NAME}` (`bookUrl`, `chapterIndex`, `enabled`, `sortOrder`)"
  3204. },
  3205. {
  3206. "name": "index_book_content_processes_bookUrl_kind",
  3207. "unique": false,
  3208. "columnNames": [
  3209. "bookUrl",
  3210. "kind"
  3211. ],
  3212. "orders": [],
  3213. "createSql": "CREATE INDEX IF NOT EXISTS `index_book_content_processes_bookUrl_kind` ON `${TABLE_NAME}` (`bookUrl`, `kind`)"
  3214. },
  3215. {
  3216. "name": "index_book_content_processes_aiArtifactId",
  3217. "unique": false,
  3218. "columnNames": [
  3219. "aiArtifactId"
  3220. ],
  3221. "orders": [],
  3222. "createSql": "CREATE INDEX IF NOT EXISTS `index_book_content_processes_aiArtifactId` ON `${TABLE_NAME}` (`aiArtifactId`)"
  3223. }
  3224. ]
  3225. },
  3226. {
  3227. "tableName": "ai_prompt_presets",
  3228. "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` TEXT NOT NULL, `taskType` TEXT NOT NULL, `name` TEXT NOT NULL, `instruction` TEXT NOT NULL, `enabled` INTEGER NOT NULL, `builtIn` INTEGER NOT NULL, `sortNumber` INTEGER NOT NULL, `createdAt` INTEGER NOT NULL, `updatedAt` INTEGER NOT NULL, PRIMARY KEY(`id`))",
  3229. "fields": [
  3230. {
  3231. "fieldPath": "id",
  3232. "columnName": "id",
  3233. "affinity": "TEXT",
  3234. "notNull": true
  3235. },
  3236. {
  3237. "fieldPath": "taskType",
  3238. "columnName": "taskType",
  3239. "affinity": "TEXT",
  3240. "notNull": true
  3241. },
  3242. {
  3243. "fieldPath": "name",
  3244. "columnName": "name",
  3245. "affinity": "TEXT",
  3246. "notNull": true
  3247. },
  3248. {
  3249. "fieldPath": "instruction",
  3250. "columnName": "instruction",
  3251. "affinity": "TEXT",
  3252. "notNull": true
  3253. },
  3254. {
  3255. "fieldPath": "enabled",
  3256. "columnName": "enabled",
  3257. "affinity": "INTEGER",
  3258. "notNull": true
  3259. },
  3260. {
  3261. "fieldPath": "builtIn",
  3262. "columnName": "builtIn",
  3263. "affinity": "INTEGER",
  3264. "notNull": true
  3265. },
  3266. {
  3267. "fieldPath": "sortNumber",
  3268. "columnName": "sortNumber",
  3269. "affinity": "INTEGER",
  3270. "notNull": true
  3271. },
  3272. {
  3273. "fieldPath": "createdAt",
  3274. "columnName": "createdAt",
  3275. "affinity": "INTEGER",
  3276. "notNull": true
  3277. },
  3278. {
  3279. "fieldPath": "updatedAt",
  3280. "columnName": "updatedAt",
  3281. "affinity": "INTEGER",
  3282. "notNull": true
  3283. }
  3284. ],
  3285. "primaryKey": {
  3286. "autoGenerate": false,
  3287. "columnNames": [
  3288. "id"
  3289. ]
  3290. },
  3291. "indices": [
  3292. {
  3293. "name": "index_ai_prompt_presets_taskType_enabled_sortNumber",
  3294. "unique": false,
  3295. "columnNames": [
  3296. "taskType",
  3297. "enabled",
  3298. "sortNumber"
  3299. ],
  3300. "orders": [],
  3301. "createSql": "CREATE INDEX IF NOT EXISTS `index_ai_prompt_presets_taskType_enabled_sortNumber` ON `${TABLE_NAME}` (`taskType`, `enabled`, `sortNumber`)"
  3302. }
  3303. ]
  3304. },
  3305. {
  3306. "tableName": "book_character_profiles",
  3307. "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` TEXT NOT NULL, `bookUrl` TEXT NOT NULL, `name` TEXT NOT NULL, `aliasesJson` TEXT NOT NULL, `avatarUri` TEXT, `tagsJson` TEXT NOT NULL, `role` TEXT NOT NULL, `personality` TEXT NOT NULL, `summary` TEXT NOT NULL, `status` INTEGER NOT NULL, `source` TEXT NOT NULL, `confidence` REAL NOT NULL, `schemaVersion` INTEGER NOT NULL, `createdAt` INTEGER NOT NULL, `updatedAt` INTEGER NOT NULL, PRIMARY KEY(`id`))",
  3308. "fields": [
  3309. {
  3310. "fieldPath": "id",
  3311. "columnName": "id",
  3312. "affinity": "TEXT",
  3313. "notNull": true
  3314. },
  3315. {
  3316. "fieldPath": "bookUrl",
  3317. "columnName": "bookUrl",
  3318. "affinity": "TEXT",
  3319. "notNull": true
  3320. },
  3321. {
  3322. "fieldPath": "name",
  3323. "columnName": "name",
  3324. "affinity": "TEXT",
  3325. "notNull": true
  3326. },
  3327. {
  3328. "fieldPath": "aliasesJson",
  3329. "columnName": "aliasesJson",
  3330. "affinity": "TEXT",
  3331. "notNull": true
  3332. },
  3333. {
  3334. "fieldPath": "avatarUri",
  3335. "columnName": "avatarUri",
  3336. "affinity": "TEXT"
  3337. },
  3338. {
  3339. "fieldPath": "tagsJson",
  3340. "columnName": "tagsJson",
  3341. "affinity": "TEXT",
  3342. "notNull": true
  3343. },
  3344. {
  3345. "fieldPath": "role",
  3346. "columnName": "role",
  3347. "affinity": "TEXT",
  3348. "notNull": true
  3349. },
  3350. {
  3351. "fieldPath": "personality",
  3352. "columnName": "personality",
  3353. "affinity": "TEXT",
  3354. "notNull": true
  3355. },
  3356. {
  3357. "fieldPath": "summary",
  3358. "columnName": "summary",
  3359. "affinity": "TEXT",
  3360. "notNull": true
  3361. },
  3362. {
  3363. "fieldPath": "status",
  3364. "columnName": "status",
  3365. "affinity": "INTEGER",
  3366. "notNull": true
  3367. },
  3368. {
  3369. "fieldPath": "source",
  3370. "columnName": "source",
  3371. "affinity": "TEXT",
  3372. "notNull": true
  3373. },
  3374. {
  3375. "fieldPath": "confidence",
  3376. "columnName": "confidence",
  3377. "affinity": "REAL",
  3378. "notNull": true
  3379. },
  3380. {
  3381. "fieldPath": "schemaVersion",
  3382. "columnName": "schemaVersion",
  3383. "affinity": "INTEGER",
  3384. "notNull": true
  3385. },
  3386. {
  3387. "fieldPath": "createdAt",
  3388. "columnName": "createdAt",
  3389. "affinity": "INTEGER",
  3390. "notNull": true
  3391. },
  3392. {
  3393. "fieldPath": "updatedAt",
  3394. "columnName": "updatedAt",
  3395. "affinity": "INTEGER",
  3396. "notNull": true
  3397. }
  3398. ],
  3399. "primaryKey": {
  3400. "autoGenerate": false,
  3401. "columnNames": [
  3402. "id"
  3403. ]
  3404. },
  3405. "indices": [
  3406. {
  3407. "name": "index_book_character_profiles_bookUrl_name",
  3408. "unique": true,
  3409. "columnNames": [
  3410. "bookUrl",
  3411. "name"
  3412. ],
  3413. "orders": [],
  3414. "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_book_character_profiles_bookUrl_name` ON `${TABLE_NAME}` (`bookUrl`, `name`)"
  3415. },
  3416. {
  3417. "name": "index_book_character_profiles_bookUrl_updatedAt",
  3418. "unique": false,
  3419. "columnNames": [
  3420. "bookUrl",
  3421. "updatedAt"
  3422. ],
  3423. "orders": [],
  3424. "createSql": "CREATE INDEX IF NOT EXISTS `index_book_character_profiles_bookUrl_updatedAt` ON `${TABLE_NAME}` (`bookUrl`, `updatedAt`)"
  3425. }
  3426. ]
  3427. },
  3428. {
  3429. "tableName": "book_character_events",
  3430. "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` TEXT NOT NULL, `bookUrl` TEXT NOT NULL, `characterId` TEXT NOT NULL, `chapterIndex` INTEGER, `chapterTitle` TEXT NOT NULL, `eventTimeText` TEXT NOT NULL, `content` TEXT NOT NULL, `importance` INTEGER NOT NULL, `sourceTextHash` TEXT, `evidenceJson` TEXT NOT NULL, `source` TEXT NOT NULL, `confidence` REAL NOT NULL, `schemaVersion` INTEGER NOT NULL, `createdAt` INTEGER NOT NULL, `updatedAt` INTEGER NOT NULL, PRIMARY KEY(`id`))",
  3431. "fields": [
  3432. {
  3433. "fieldPath": "id",
  3434. "columnName": "id",
  3435. "affinity": "TEXT",
  3436. "notNull": true
  3437. },
  3438. {
  3439. "fieldPath": "bookUrl",
  3440. "columnName": "bookUrl",
  3441. "affinity": "TEXT",
  3442. "notNull": true
  3443. },
  3444. {
  3445. "fieldPath": "characterId",
  3446. "columnName": "characterId",
  3447. "affinity": "TEXT",
  3448. "notNull": true
  3449. },
  3450. {
  3451. "fieldPath": "chapterIndex",
  3452. "columnName": "chapterIndex",
  3453. "affinity": "INTEGER"
  3454. },
  3455. {
  3456. "fieldPath": "chapterTitle",
  3457. "columnName": "chapterTitle",
  3458. "affinity": "TEXT",
  3459. "notNull": true
  3460. },
  3461. {
  3462. "fieldPath": "eventTimeText",
  3463. "columnName": "eventTimeText",
  3464. "affinity": "TEXT",
  3465. "notNull": true
  3466. },
  3467. {
  3468. "fieldPath": "content",
  3469. "columnName": "content",
  3470. "affinity": "TEXT",
  3471. "notNull": true
  3472. },
  3473. {
  3474. "fieldPath": "importance",
  3475. "columnName": "importance",
  3476. "affinity": "INTEGER",
  3477. "notNull": true
  3478. },
  3479. {
  3480. "fieldPath": "sourceTextHash",
  3481. "columnName": "sourceTextHash",
  3482. "affinity": "TEXT"
  3483. },
  3484. {
  3485. "fieldPath": "evidenceJson",
  3486. "columnName": "evidenceJson",
  3487. "affinity": "TEXT",
  3488. "notNull": true
  3489. },
  3490. {
  3491. "fieldPath": "source",
  3492. "columnName": "source",
  3493. "affinity": "TEXT",
  3494. "notNull": true
  3495. },
  3496. {
  3497. "fieldPath": "confidence",
  3498. "columnName": "confidence",
  3499. "affinity": "REAL",
  3500. "notNull": true
  3501. },
  3502. {
  3503. "fieldPath": "schemaVersion",
  3504. "columnName": "schemaVersion",
  3505. "affinity": "INTEGER",
  3506. "notNull": true
  3507. },
  3508. {
  3509. "fieldPath": "createdAt",
  3510. "columnName": "createdAt",
  3511. "affinity": "INTEGER",
  3512. "notNull": true
  3513. },
  3514. {
  3515. "fieldPath": "updatedAt",
  3516. "columnName": "updatedAt",
  3517. "affinity": "INTEGER",
  3518. "notNull": true
  3519. }
  3520. ],
  3521. "primaryKey": {
  3522. "autoGenerate": false,
  3523. "columnNames": [
  3524. "id"
  3525. ]
  3526. },
  3527. "indices": [
  3528. {
  3529. "name": "index_book_character_events_bookUrl_characterId_chapterIndex",
  3530. "unique": false,
  3531. "columnNames": [
  3532. "bookUrl",
  3533. "characterId",
  3534. "chapterIndex"
  3535. ],
  3536. "orders": [],
  3537. "createSql": "CREATE INDEX IF NOT EXISTS `index_book_character_events_bookUrl_characterId_chapterIndex` ON `${TABLE_NAME}` (`bookUrl`, `characterId`, `chapterIndex`)"
  3538. },
  3539. {
  3540. "name": "index_book_character_events_bookUrl_chapterIndex",
  3541. "unique": false,
  3542. "columnNames": [
  3543. "bookUrl",
  3544. "chapterIndex"
  3545. ],
  3546. "orders": [],
  3547. "createSql": "CREATE INDEX IF NOT EXISTS `index_book_character_events_bookUrl_chapterIndex` ON `${TABLE_NAME}` (`bookUrl`, `chapterIndex`)"
  3548. }
  3549. ]
  3550. },
  3551. {
  3552. "tableName": "book_character_relations",
  3553. "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` TEXT NOT NULL, `bookUrl` TEXT NOT NULL, `fromCharacterId` TEXT NOT NULL, `toCharacterId` TEXT NOT NULL, `relationType` TEXT NOT NULL, `summary` TEXT NOT NULL, `attitude` TEXT NOT NULL, `evidenceJson` TEXT NOT NULL, `chapterIndex` INTEGER, `status` INTEGER NOT NULL, `source` TEXT NOT NULL, `confidence` REAL NOT NULL, `schemaVersion` INTEGER NOT NULL, `createdAt` INTEGER NOT NULL, `updatedAt` INTEGER NOT NULL, PRIMARY KEY(`id`))",
  3554. "fields": [
  3555. {
  3556. "fieldPath": "id",
  3557. "columnName": "id",
  3558. "affinity": "TEXT",
  3559. "notNull": true
  3560. },
  3561. {
  3562. "fieldPath": "bookUrl",
  3563. "columnName": "bookUrl",
  3564. "affinity": "TEXT",
  3565. "notNull": true
  3566. },
  3567. {
  3568. "fieldPath": "fromCharacterId",
  3569. "columnName": "fromCharacterId",
  3570. "affinity": "TEXT",
  3571. "notNull": true
  3572. },
  3573. {
  3574. "fieldPath": "toCharacterId",
  3575. "columnName": "toCharacterId",
  3576. "affinity": "TEXT",
  3577. "notNull": true
  3578. },
  3579. {
  3580. "fieldPath": "relationType",
  3581. "columnName": "relationType",
  3582. "affinity": "TEXT",
  3583. "notNull": true
  3584. },
  3585. {
  3586. "fieldPath": "summary",
  3587. "columnName": "summary",
  3588. "affinity": "TEXT",
  3589. "notNull": true
  3590. },
  3591. {
  3592. "fieldPath": "attitude",
  3593. "columnName": "attitude",
  3594. "affinity": "TEXT",
  3595. "notNull": true
  3596. },
  3597. {
  3598. "fieldPath": "evidenceJson",
  3599. "columnName": "evidenceJson",
  3600. "affinity": "TEXT",
  3601. "notNull": true
  3602. },
  3603. {
  3604. "fieldPath": "chapterIndex",
  3605. "columnName": "chapterIndex",
  3606. "affinity": "INTEGER"
  3607. },
  3608. {
  3609. "fieldPath": "status",
  3610. "columnName": "status",
  3611. "affinity": "INTEGER",
  3612. "notNull": true
  3613. },
  3614. {
  3615. "fieldPath": "source",
  3616. "columnName": "source",
  3617. "affinity": "TEXT",
  3618. "notNull": true
  3619. },
  3620. {
  3621. "fieldPath": "confidence",
  3622. "columnName": "confidence",
  3623. "affinity": "REAL",
  3624. "notNull": true
  3625. },
  3626. {
  3627. "fieldPath": "schemaVersion",
  3628. "columnName": "schemaVersion",
  3629. "affinity": "INTEGER",
  3630. "notNull": true
  3631. },
  3632. {
  3633. "fieldPath": "createdAt",
  3634. "columnName": "createdAt",
  3635. "affinity": "INTEGER",
  3636. "notNull": true
  3637. },
  3638. {
  3639. "fieldPath": "updatedAt",
  3640. "columnName": "updatedAt",
  3641. "affinity": "INTEGER",
  3642. "notNull": true
  3643. }
  3644. ],
  3645. "primaryKey": {
  3646. "autoGenerate": false,
  3647. "columnNames": [
  3648. "id"
  3649. ]
  3650. },
  3651. "indices": [
  3652. {
  3653. "name": "index_book_character_relations_bookUrl_fromCharacterId_toCharacterId",
  3654. "unique": true,
  3655. "columnNames": [
  3656. "bookUrl",
  3657. "fromCharacterId",
  3658. "toCharacterId"
  3659. ],
  3660. "orders": [],
  3661. "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_book_character_relations_bookUrl_fromCharacterId_toCharacterId` ON `${TABLE_NAME}` (`bookUrl`, `fromCharacterId`, `toCharacterId`)"
  3662. },
  3663. {
  3664. "name": "index_book_character_relations_bookUrl_fromCharacterId",
  3665. "unique": false,
  3666. "columnNames": [
  3667. "bookUrl",
  3668. "fromCharacterId"
  3669. ],
  3670. "orders": [],
  3671. "createSql": "CREATE INDEX IF NOT EXISTS `index_book_character_relations_bookUrl_fromCharacterId` ON `${TABLE_NAME}` (`bookUrl`, `fromCharacterId`)"
  3672. },
  3673. {
  3674. "name": "index_book_character_relations_bookUrl_toCharacterId",
  3675. "unique": false,
  3676. "columnNames": [
  3677. "bookUrl",
  3678. "toCharacterId"
  3679. ],
  3680. "orders": [],
  3681. "createSql": "CREATE INDEX IF NOT EXISTS `index_book_character_relations_bookUrl_toCharacterId` ON `${TABLE_NAME}` (`bookUrl`, `toCharacterId`)"
  3682. }
  3683. ]
  3684. },
  3685. {
  3686. "tableName": "book_knowledge_entries",
  3687. "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` TEXT NOT NULL, `bookUrl` TEXT NOT NULL, `type` TEXT NOT NULL, `title` TEXT NOT NULL, `keywordsJson` TEXT NOT NULL, `content` TEXT NOT NULL, `scopeStartChapter` INTEGER, `scopeEndChapter` INTEGER, `priority` INTEGER NOT NULL, `source` TEXT NOT NULL, `confidence` REAL NOT NULL, `evidenceJson` TEXT NOT NULL, `schemaVersion` INTEGER NOT NULL, `createdAt` INTEGER NOT NULL, `updatedAt` INTEGER NOT NULL, PRIMARY KEY(`id`))",
  3688. "fields": [
  3689. {
  3690. "fieldPath": "id",
  3691. "columnName": "id",
  3692. "affinity": "TEXT",
  3693. "notNull": true
  3694. },
  3695. {
  3696. "fieldPath": "bookUrl",
  3697. "columnName": "bookUrl",
  3698. "affinity": "TEXT",
  3699. "notNull": true
  3700. },
  3701. {
  3702. "fieldPath": "type",
  3703. "columnName": "type",
  3704. "affinity": "TEXT",
  3705. "notNull": true
  3706. },
  3707. {
  3708. "fieldPath": "title",
  3709. "columnName": "title",
  3710. "affinity": "TEXT",
  3711. "notNull": true
  3712. },
  3713. {
  3714. "fieldPath": "keywordsJson",
  3715. "columnName": "keywordsJson",
  3716. "affinity": "TEXT",
  3717. "notNull": true
  3718. },
  3719. {
  3720. "fieldPath": "content",
  3721. "columnName": "content",
  3722. "affinity": "TEXT",
  3723. "notNull": true
  3724. },
  3725. {
  3726. "fieldPath": "scopeStartChapter",
  3727. "columnName": "scopeStartChapter",
  3728. "affinity": "INTEGER"
  3729. },
  3730. {
  3731. "fieldPath": "scopeEndChapter",
  3732. "columnName": "scopeEndChapter",
  3733. "affinity": "INTEGER"
  3734. },
  3735. {
  3736. "fieldPath": "priority",
  3737. "columnName": "priority",
  3738. "affinity": "INTEGER",
  3739. "notNull": true
  3740. },
  3741. {
  3742. "fieldPath": "source",
  3743. "columnName": "source",
  3744. "affinity": "TEXT",
  3745. "notNull": true
  3746. },
  3747. {
  3748. "fieldPath": "confidence",
  3749. "columnName": "confidence",
  3750. "affinity": "REAL",
  3751. "notNull": true
  3752. },
  3753. {
  3754. "fieldPath": "evidenceJson",
  3755. "columnName": "evidenceJson",
  3756. "affinity": "TEXT",
  3757. "notNull": true
  3758. },
  3759. {
  3760. "fieldPath": "schemaVersion",
  3761. "columnName": "schemaVersion",
  3762. "affinity": "INTEGER",
  3763. "notNull": true
  3764. },
  3765. {
  3766. "fieldPath": "createdAt",
  3767. "columnName": "createdAt",
  3768. "affinity": "INTEGER",
  3769. "notNull": true
  3770. },
  3771. {
  3772. "fieldPath": "updatedAt",
  3773. "columnName": "updatedAt",
  3774. "affinity": "INTEGER",
  3775. "notNull": true
  3776. }
  3777. ],
  3778. "primaryKey": {
  3779. "autoGenerate": false,
  3780. "columnNames": [
  3781. "id"
  3782. ]
  3783. },
  3784. "indices": [
  3785. {
  3786. "name": "index_book_knowledge_entries_bookUrl_type_priority",
  3787. "unique": false,
  3788. "columnNames": [
  3789. "bookUrl",
  3790. "type",
  3791. "priority"
  3792. ],
  3793. "orders": [],
  3794. "createSql": "CREATE INDEX IF NOT EXISTS `index_book_knowledge_entries_bookUrl_type_priority` ON `${TABLE_NAME}` (`bookUrl`, `type`, `priority`)"
  3795. },
  3796. {
  3797. "name": "index_book_knowledge_entries_bookUrl_title",
  3798. "unique": false,
  3799. "columnNames": [
  3800. "bookUrl",
  3801. "title"
  3802. ],
  3803. "orders": [],
  3804. "createSql": "CREATE INDEX IF NOT EXISTS `index_book_knowledge_entries_bookUrl_title` ON `${TABLE_NAME}` (`bookUrl`, `title`)"
  3805. }
  3806. ]
  3807. },
  3808. {
  3809. "tableName": "book_outline_nodes",
  3810. "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` TEXT NOT NULL, `bookUrl` TEXT NOT NULL, `parentId` TEXT, `nodeType` TEXT NOT NULL, `title` TEXT NOT NULL, `summary` TEXT NOT NULL, `startChapterIndex` INTEGER, `endChapterIndex` INTEGER, `order` INTEGER NOT NULL, `source` TEXT NOT NULL, `confidence` REAL NOT NULL, `schemaVersion` INTEGER NOT NULL, `createdAt` INTEGER NOT NULL, `updatedAt` INTEGER NOT NULL, PRIMARY KEY(`id`))",
  3811. "fields": [
  3812. {
  3813. "fieldPath": "id",
  3814. "columnName": "id",
  3815. "affinity": "TEXT",
  3816. "notNull": true
  3817. },
  3818. {
  3819. "fieldPath": "bookUrl",
  3820. "columnName": "bookUrl",
  3821. "affinity": "TEXT",
  3822. "notNull": true
  3823. },
  3824. {
  3825. "fieldPath": "parentId",
  3826. "columnName": "parentId",
  3827. "affinity": "TEXT"
  3828. },
  3829. {
  3830. "fieldPath": "nodeType",
  3831. "columnName": "nodeType",
  3832. "affinity": "TEXT",
  3833. "notNull": true
  3834. },
  3835. {
  3836. "fieldPath": "title",
  3837. "columnName": "title",
  3838. "affinity": "TEXT",
  3839. "notNull": true
  3840. },
  3841. {
  3842. "fieldPath": "summary",
  3843. "columnName": "summary",
  3844. "affinity": "TEXT",
  3845. "notNull": true
  3846. },
  3847. {
  3848. "fieldPath": "startChapterIndex",
  3849. "columnName": "startChapterIndex",
  3850. "affinity": "INTEGER"
  3851. },
  3852. {
  3853. "fieldPath": "endChapterIndex",
  3854. "columnName": "endChapterIndex",
  3855. "affinity": "INTEGER"
  3856. },
  3857. {
  3858. "fieldPath": "order",
  3859. "columnName": "order",
  3860. "affinity": "INTEGER",
  3861. "notNull": true
  3862. },
  3863. {
  3864. "fieldPath": "source",
  3865. "columnName": "source",
  3866. "affinity": "TEXT",
  3867. "notNull": true
  3868. },
  3869. {
  3870. "fieldPath": "confidence",
  3871. "columnName": "confidence",
  3872. "affinity": "REAL",
  3873. "notNull": true
  3874. },
  3875. {
  3876. "fieldPath": "schemaVersion",
  3877. "columnName": "schemaVersion",
  3878. "affinity": "INTEGER",
  3879. "notNull": true
  3880. },
  3881. {
  3882. "fieldPath": "createdAt",
  3883. "columnName": "createdAt",
  3884. "affinity": "INTEGER",
  3885. "notNull": true
  3886. },
  3887. {
  3888. "fieldPath": "updatedAt",
  3889. "columnName": "updatedAt",
  3890. "affinity": "INTEGER",
  3891. "notNull": true
  3892. }
  3893. ],
  3894. "primaryKey": {
  3895. "autoGenerate": false,
  3896. "columnNames": [
  3897. "id"
  3898. ]
  3899. },
  3900. "indices": [
  3901. {
  3902. "name": "index_book_outline_nodes_bookUrl_nodeType_startChapterIndex_endChapterIndex",
  3903. "unique": false,
  3904. "columnNames": [
  3905. "bookUrl",
  3906. "nodeType",
  3907. "startChapterIndex",
  3908. "endChapterIndex"
  3909. ],
  3910. "orders": [],
  3911. "createSql": "CREATE INDEX IF NOT EXISTS `index_book_outline_nodes_bookUrl_nodeType_startChapterIndex_endChapterIndex` ON `${TABLE_NAME}` (`bookUrl`, `nodeType`, `startChapterIndex`, `endChapterIndex`)"
  3912. },
  3913. {
  3914. "name": "index_book_outline_nodes_bookUrl_parentId_order",
  3915. "unique": false,
  3916. "columnNames": [
  3917. "bookUrl",
  3918. "parentId",
  3919. "order"
  3920. ],
  3921. "orders": [],
  3922. "createSql": "CREATE INDEX IF NOT EXISTS `index_book_outline_nodes_bookUrl_parentId_order` ON `${TABLE_NAME}` (`bookUrl`, `parentId`, `order`)"
  3923. }
  3924. ]
  3925. },
  3926. {
  3927. "tableName": "read_aloud_voices",
  3928. "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` TEXT NOT NULL, `engineType` TEXT NOT NULL, `engineId` TEXT NOT NULL DEFAULT '', `speakerId` TEXT NOT NULL DEFAULT '', `displayName` TEXT NOT NULL, `traitsJson` TEXT NOT NULL DEFAULT '[]', `emotionCatalogJson` TEXT NOT NULL DEFAULT '[]', `managedBy` TEXT NOT NULL DEFAULT 'user', `enabled` INTEGER NOT NULL DEFAULT 1, `available` INTEGER NOT NULL DEFAULT 1, `revision` INTEGER NOT NULL DEFAULT 0, `createdAt` INTEGER NOT NULL, `updatedAt` INTEGER NOT NULL, PRIMARY KEY(`id`))",
  3929. "fields": [
  3930. {
  3931. "fieldPath": "id",
  3932. "columnName": "id",
  3933. "affinity": "TEXT",
  3934. "notNull": true
  3935. },
  3936. {
  3937. "fieldPath": "engineType",
  3938. "columnName": "engineType",
  3939. "affinity": "TEXT",
  3940. "notNull": true
  3941. },
  3942. {
  3943. "fieldPath": "engineId",
  3944. "columnName": "engineId",
  3945. "affinity": "TEXT",
  3946. "notNull": true,
  3947. "defaultValue": "''"
  3948. },
  3949. {
  3950. "fieldPath": "speakerId",
  3951. "columnName": "speakerId",
  3952. "affinity": "TEXT",
  3953. "notNull": true,
  3954. "defaultValue": "''"
  3955. },
  3956. {
  3957. "fieldPath": "displayName",
  3958. "columnName": "displayName",
  3959. "affinity": "TEXT",
  3960. "notNull": true
  3961. },
  3962. {
  3963. "fieldPath": "traitsJson",
  3964. "columnName": "traitsJson",
  3965. "affinity": "TEXT",
  3966. "notNull": true,
  3967. "defaultValue": "'[]'"
  3968. },
  3969. {
  3970. "fieldPath": "emotionCatalogJson",
  3971. "columnName": "emotionCatalogJson",
  3972. "affinity": "TEXT",
  3973. "notNull": true,
  3974. "defaultValue": "'[]'"
  3975. },
  3976. {
  3977. "fieldPath": "managedBy",
  3978. "columnName": "managedBy",
  3979. "affinity": "TEXT",
  3980. "notNull": true,
  3981. "defaultValue": "'user'"
  3982. },
  3983. {
  3984. "fieldPath": "enabled",
  3985. "columnName": "enabled",
  3986. "affinity": "INTEGER",
  3987. "notNull": true,
  3988. "defaultValue": "1"
  3989. },
  3990. {
  3991. "fieldPath": "available",
  3992. "columnName": "available",
  3993. "affinity": "INTEGER",
  3994. "notNull": true,
  3995. "defaultValue": "1"
  3996. },
  3997. {
  3998. "fieldPath": "revision",
  3999. "columnName": "revision",
  4000. "affinity": "INTEGER",
  4001. "notNull": true,
  4002. "defaultValue": "0"
  4003. },
  4004. {
  4005. "fieldPath": "createdAt",
  4006. "columnName": "createdAt",
  4007. "affinity": "INTEGER",
  4008. "notNull": true
  4009. },
  4010. {
  4011. "fieldPath": "updatedAt",
  4012. "columnName": "updatedAt",
  4013. "affinity": "INTEGER",
  4014. "notNull": true
  4015. }
  4016. ],
  4017. "primaryKey": {
  4018. "autoGenerate": false,
  4019. "columnNames": [
  4020. "id"
  4021. ]
  4022. },
  4023. "indices": [
  4024. {
  4025. "name": "index_read_aloud_voices_engineType_engineId_speakerId",
  4026. "unique": true,
  4027. "columnNames": [
  4028. "engineType",
  4029. "engineId",
  4030. "speakerId"
  4031. ],
  4032. "orders": [],
  4033. "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_read_aloud_voices_engineType_engineId_speakerId` ON `${TABLE_NAME}` (`engineType`, `engineId`, `speakerId`)"
  4034. },
  4035. {
  4036. "name": "index_read_aloud_voices_enabled_displayName",
  4037. "unique": false,
  4038. "columnNames": [
  4039. "enabled",
  4040. "displayName"
  4041. ],
  4042. "orders": [],
  4043. "createSql": "CREATE INDEX IF NOT EXISTS `index_read_aloud_voices_enabled_displayName` ON `${TABLE_NAME}` (`enabled`, `displayName`)"
  4044. }
  4045. ]
  4046. },
  4047. {
  4048. "tableName": "book_voice_bindings",
  4049. "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`bookUrl` TEXT NOT NULL, `subjectType` TEXT NOT NULL, `subjectId` TEXT NOT NULL, `voiceId` TEXT NOT NULL, `locked` INTEGER NOT NULL DEFAULT 0, `source` TEXT NOT NULL DEFAULT 'user', `confidence` REAL NOT NULL DEFAULT 1, `createdAt` INTEGER NOT NULL, `updatedAt` INTEGER NOT NULL, PRIMARY KEY(`bookUrl`, `subjectType`, `subjectId`))",
  4050. "fields": [
  4051. {
  4052. "fieldPath": "bookUrl",
  4053. "columnName": "bookUrl",
  4054. "affinity": "TEXT",
  4055. "notNull": true
  4056. },
  4057. {
  4058. "fieldPath": "subjectType",
  4059. "columnName": "subjectType",
  4060. "affinity": "TEXT",
  4061. "notNull": true
  4062. },
  4063. {
  4064. "fieldPath": "subjectId",
  4065. "columnName": "subjectId",
  4066. "affinity": "TEXT",
  4067. "notNull": true
  4068. },
  4069. {
  4070. "fieldPath": "voiceId",
  4071. "columnName": "voiceId",
  4072. "affinity": "TEXT",
  4073. "notNull": true
  4074. },
  4075. {
  4076. "fieldPath": "locked",
  4077. "columnName": "locked",
  4078. "affinity": "INTEGER",
  4079. "notNull": true,
  4080. "defaultValue": "0"
  4081. },
  4082. {
  4083. "fieldPath": "source",
  4084. "columnName": "source",
  4085. "affinity": "TEXT",
  4086. "notNull": true,
  4087. "defaultValue": "'user'"
  4088. },
  4089. {
  4090. "fieldPath": "confidence",
  4091. "columnName": "confidence",
  4092. "affinity": "REAL",
  4093. "notNull": true,
  4094. "defaultValue": "1"
  4095. },
  4096. {
  4097. "fieldPath": "createdAt",
  4098. "columnName": "createdAt",
  4099. "affinity": "INTEGER",
  4100. "notNull": true
  4101. },
  4102. {
  4103. "fieldPath": "updatedAt",
  4104. "columnName": "updatedAt",
  4105. "affinity": "INTEGER",
  4106. "notNull": true
  4107. }
  4108. ],
  4109. "primaryKey": {
  4110. "autoGenerate": false,
  4111. "columnNames": [
  4112. "bookUrl",
  4113. "subjectType",
  4114. "subjectId"
  4115. ]
  4116. },
  4117. "indices": [
  4118. {
  4119. "name": "index_book_voice_bindings_bookUrl_subjectType",
  4120. "unique": false,
  4121. "columnNames": [
  4122. "bookUrl",
  4123. "subjectType"
  4124. ],
  4125. "orders": [],
  4126. "createSql": "CREATE INDEX IF NOT EXISTS `index_book_voice_bindings_bookUrl_subjectType` ON `${TABLE_NAME}` (`bookUrl`, `subjectType`)"
  4127. },
  4128. {
  4129. "name": "index_book_voice_bindings_voiceId",
  4130. "unique": false,
  4131. "columnNames": [
  4132. "voiceId"
  4133. ],
  4134. "orders": [],
  4135. "createSql": "CREATE INDEX IF NOT EXISTS `index_book_voice_bindings_voiceId` ON `${TABLE_NAME}` (`voiceId`)"
  4136. }
  4137. ]
  4138. },
  4139. {
  4140. "tableName": "chapter_speech_analysis",
  4141. "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` TEXT NOT NULL, `bookUrl` TEXT NOT NULL, `chapterIndex` INTEGER NOT NULL, `contentHash` TEXT NOT NULL, `resolverVersion` TEXT NOT NULL, `characterRevision` TEXT NOT NULL DEFAULT '', `status` TEXT NOT NULL DEFAULT 'pending', `error` TEXT NOT NULL DEFAULT '', `createdAt` INTEGER NOT NULL, `updatedAt` INTEGER NOT NULL, PRIMARY KEY(`id`))",
  4142. "fields": [
  4143. {
  4144. "fieldPath": "id",
  4145. "columnName": "id",
  4146. "affinity": "TEXT",
  4147. "notNull": true
  4148. },
  4149. {
  4150. "fieldPath": "bookUrl",
  4151. "columnName": "bookUrl",
  4152. "affinity": "TEXT",
  4153. "notNull": true
  4154. },
  4155. {
  4156. "fieldPath": "chapterIndex",
  4157. "columnName": "chapterIndex",
  4158. "affinity": "INTEGER",
  4159. "notNull": true
  4160. },
  4161. {
  4162. "fieldPath": "contentHash",
  4163. "columnName": "contentHash",
  4164. "affinity": "TEXT",
  4165. "notNull": true
  4166. },
  4167. {
  4168. "fieldPath": "resolverVersion",
  4169. "columnName": "resolverVersion",
  4170. "affinity": "TEXT",
  4171. "notNull": true
  4172. },
  4173. {
  4174. "fieldPath": "characterRevision",
  4175. "columnName": "characterRevision",
  4176. "affinity": "TEXT",
  4177. "notNull": true,
  4178. "defaultValue": "''"
  4179. },
  4180. {
  4181. "fieldPath": "status",
  4182. "columnName": "status",
  4183. "affinity": "TEXT",
  4184. "notNull": true,
  4185. "defaultValue": "'pending'"
  4186. },
  4187. {
  4188. "fieldPath": "error",
  4189. "columnName": "error",
  4190. "affinity": "TEXT",
  4191. "notNull": true,
  4192. "defaultValue": "''"
  4193. },
  4194. {
  4195. "fieldPath": "createdAt",
  4196. "columnName": "createdAt",
  4197. "affinity": "INTEGER",
  4198. "notNull": true
  4199. },
  4200. {
  4201. "fieldPath": "updatedAt",
  4202. "columnName": "updatedAt",
  4203. "affinity": "INTEGER",
  4204. "notNull": true
  4205. }
  4206. ],
  4207. "primaryKey": {
  4208. "autoGenerate": false,
  4209. "columnNames": [
  4210. "id"
  4211. ]
  4212. },
  4213. "indices": [
  4214. {
  4215. "name": "index_chapter_speech_analysis_bookUrl_chapterIndex_contentHash_resolverVersion",
  4216. "unique": true,
  4217. "columnNames": [
  4218. "bookUrl",
  4219. "chapterIndex",
  4220. "contentHash",
  4221. "resolverVersion"
  4222. ],
  4223. "orders": [],
  4224. "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_chapter_speech_analysis_bookUrl_chapterIndex_contentHash_resolverVersion` ON `${TABLE_NAME}` (`bookUrl`, `chapterIndex`, `contentHash`, `resolverVersion`)"
  4225. },
  4226. {
  4227. "name": "index_chapter_speech_analysis_bookUrl_chapterIndex_updatedAt",
  4228. "unique": false,
  4229. "columnNames": [
  4230. "bookUrl",
  4231. "chapterIndex",
  4232. "updatedAt"
  4233. ],
  4234. "orders": [],
  4235. "createSql": "CREATE INDEX IF NOT EXISTS `index_chapter_speech_analysis_bookUrl_chapterIndex_updatedAt` ON `${TABLE_NAME}` (`bookUrl`, `chapterIndex`, `updatedAt`)"
  4236. }
  4237. ]
  4238. },
  4239. {
  4240. "tableName": "chapter_speech_segments",
  4241. "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` TEXT NOT NULL, `analysisId` TEXT NOT NULL, `bookUrl` TEXT NOT NULL, `chapterIndex` INTEGER NOT NULL, `paragraphIndex` INTEGER NOT NULL, `start` INTEGER NOT NULL, `end` INTEGER NOT NULL, `chapterPosition` INTEGER NOT NULL, `text` TEXT NOT NULL, `roleType` TEXT NOT NULL, `characterId` TEXT, `characterName` TEXT NOT NULL DEFAULT '', `emotion` TEXT NOT NULL DEFAULT '', `confidence` REAL NOT NULL DEFAULT 0, `source` TEXT NOT NULL, `userLocked` INTEGER NOT NULL DEFAULT 0, `createdAt` INTEGER NOT NULL, `updatedAt` INTEGER NOT NULL, PRIMARY KEY(`id`))",
  4242. "fields": [
  4243. {
  4244. "fieldPath": "id",
  4245. "columnName": "id",
  4246. "affinity": "TEXT",
  4247. "notNull": true
  4248. },
  4249. {
  4250. "fieldPath": "analysisId",
  4251. "columnName": "analysisId",
  4252. "affinity": "TEXT",
  4253. "notNull": true
  4254. },
  4255. {
  4256. "fieldPath": "bookUrl",
  4257. "columnName": "bookUrl",
  4258. "affinity": "TEXT",
  4259. "notNull": true
  4260. },
  4261. {
  4262. "fieldPath": "chapterIndex",
  4263. "columnName": "chapterIndex",
  4264. "affinity": "INTEGER",
  4265. "notNull": true
  4266. },
  4267. {
  4268. "fieldPath": "paragraphIndex",
  4269. "columnName": "paragraphIndex",
  4270. "affinity": "INTEGER",
  4271. "notNull": true
  4272. },
  4273. {
  4274. "fieldPath": "start",
  4275. "columnName": "start",
  4276. "affinity": "INTEGER",
  4277. "notNull": true
  4278. },
  4279. {
  4280. "fieldPath": "end",
  4281. "columnName": "end",
  4282. "affinity": "INTEGER",
  4283. "notNull": true
  4284. },
  4285. {
  4286. "fieldPath": "chapterPosition",
  4287. "columnName": "chapterPosition",
  4288. "affinity": "INTEGER",
  4289. "notNull": true
  4290. },
  4291. {
  4292. "fieldPath": "text",
  4293. "columnName": "text",
  4294. "affinity": "TEXT",
  4295. "notNull": true
  4296. },
  4297. {
  4298. "fieldPath": "roleType",
  4299. "columnName": "roleType",
  4300. "affinity": "TEXT",
  4301. "notNull": true
  4302. },
  4303. {
  4304. "fieldPath": "characterId",
  4305. "columnName": "characterId",
  4306. "affinity": "TEXT"
  4307. },
  4308. {
  4309. "fieldPath": "characterName",
  4310. "columnName": "characterName",
  4311. "affinity": "TEXT",
  4312. "notNull": true,
  4313. "defaultValue": "''"
  4314. },
  4315. {
  4316. "fieldPath": "emotion",
  4317. "columnName": "emotion",
  4318. "affinity": "TEXT",
  4319. "notNull": true,
  4320. "defaultValue": "''"
  4321. },
  4322. {
  4323. "fieldPath": "confidence",
  4324. "columnName": "confidence",
  4325. "affinity": "REAL",
  4326. "notNull": true,
  4327. "defaultValue": "0"
  4328. },
  4329. {
  4330. "fieldPath": "source",
  4331. "columnName": "source",
  4332. "affinity": "TEXT",
  4333. "notNull": true
  4334. },
  4335. {
  4336. "fieldPath": "userLocked",
  4337. "columnName": "userLocked",
  4338. "affinity": "INTEGER",
  4339. "notNull": true,
  4340. "defaultValue": "0"
  4341. },
  4342. {
  4343. "fieldPath": "createdAt",
  4344. "columnName": "createdAt",
  4345. "affinity": "INTEGER",
  4346. "notNull": true
  4347. },
  4348. {
  4349. "fieldPath": "updatedAt",
  4350. "columnName": "updatedAt",
  4351. "affinity": "INTEGER",
  4352. "notNull": true
  4353. }
  4354. ],
  4355. "primaryKey": {
  4356. "autoGenerate": false,
  4357. "columnNames": [
  4358. "id"
  4359. ]
  4360. },
  4361. "indices": [
  4362. {
  4363. "name": "index_chapter_speech_segments_analysisId_paragraphIndex_start_end",
  4364. "unique": true,
  4365. "columnNames": [
  4366. "analysisId",
  4367. "paragraphIndex",
  4368. "start",
  4369. "end"
  4370. ],
  4371. "orders": [],
  4372. "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_chapter_speech_segments_analysisId_paragraphIndex_start_end` ON `${TABLE_NAME}` (`analysisId`, `paragraphIndex`, `start`, `end`)"
  4373. },
  4374. {
  4375. "name": "index_chapter_speech_segments_bookUrl_chapterIndex_paragraphIndex",
  4376. "unique": false,
  4377. "columnNames": [
  4378. "bookUrl",
  4379. "chapterIndex",
  4380. "paragraphIndex"
  4381. ],
  4382. "orders": [],
  4383. "createSql": "CREATE INDEX IF NOT EXISTS `index_chapter_speech_segments_bookUrl_chapterIndex_paragraphIndex` ON `${TABLE_NAME}` (`bookUrl`, `chapterIndex`, `paragraphIndex`)"
  4384. },
  4385. {
  4386. "name": "index_chapter_speech_segments_characterId",
  4387. "unique": false,
  4388. "columnNames": [
  4389. "characterId"
  4390. ],
  4391. "orders": [],
  4392. "createSql": "CREATE INDEX IF NOT EXISTS `index_chapter_speech_segments_characterId` ON `${TABLE_NAME}` (`characterId`)"
  4393. }
  4394. ]
  4395. }
  4396. ],
  4397. "views": [
  4398. {
  4399. "viewName": "book_sources_part",
  4400. "createSql": "CREATE VIEW `${VIEW_NAME}` AS select bookSourceUrl, bookSourceName, bookSourceGroup, customOrder, enabled, enabledExplore, \n (loginUrl is not null and trim(loginUrl) <> '') hasLoginUrl, lastUpdateTime, respondTime, weight, \n (exploreUrl is not null and trim(exploreUrl) <> '') hasExploreUrl \n from book_sources"
  4401. }
  4402. ],
  4403. "setupQueries": [
  4404. "CREATE TABLE IF NOT EXISTS room_master_table (id INTEGER PRIMARY KEY,identity_hash TEXT)",
  4405. "INSERT OR REPLACE INTO room_master_table (id,identity_hash) VALUES(42, 'e0461f0c22e57cbd4ed01c2628df8a71')"
  4406. ]
  4407. }
  4408. }