95.json 139 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518
  1. {
  2. "formatVersion": 1,
  3. "database": {
  4. "version": 95,
  5. "identityHash": "f5e225667da6bf6e50b9435bfb2ffb6d",
  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. "tableName": "cloud_tts_engines",
  4398. "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` TEXT NOT NULL, `name` TEXT NOT NULL, `provider` TEXT NOT NULL, `baseUrl` TEXT NOT NULL DEFAULT '', `apiKey` TEXT NOT NULL DEFAULT '', `secretKey` TEXT NOT NULL DEFAULT '', `region` TEXT NOT NULL DEFAULT '', `appId` TEXT NOT NULL DEFAULT '', `model` TEXT NOT NULL DEFAULT '', `optionsJson` TEXT NOT NULL DEFAULT '{}', `enabled` INTEGER NOT NULL DEFAULT 1, `createdAt` INTEGER NOT NULL, `updatedAt` INTEGER NOT NULL, PRIMARY KEY(`id`))",
  4399. "fields": [
  4400. {
  4401. "fieldPath": "id",
  4402. "columnName": "id",
  4403. "affinity": "TEXT",
  4404. "notNull": true
  4405. },
  4406. {
  4407. "fieldPath": "name",
  4408. "columnName": "name",
  4409. "affinity": "TEXT",
  4410. "notNull": true
  4411. },
  4412. {
  4413. "fieldPath": "provider",
  4414. "columnName": "provider",
  4415. "affinity": "TEXT",
  4416. "notNull": true
  4417. },
  4418. {
  4419. "fieldPath": "baseUrl",
  4420. "columnName": "baseUrl",
  4421. "affinity": "TEXT",
  4422. "notNull": true,
  4423. "defaultValue": "''"
  4424. },
  4425. {
  4426. "fieldPath": "apiKey",
  4427. "columnName": "apiKey",
  4428. "affinity": "TEXT",
  4429. "notNull": true,
  4430. "defaultValue": "''"
  4431. },
  4432. {
  4433. "fieldPath": "secretKey",
  4434. "columnName": "secretKey",
  4435. "affinity": "TEXT",
  4436. "notNull": true,
  4437. "defaultValue": "''"
  4438. },
  4439. {
  4440. "fieldPath": "region",
  4441. "columnName": "region",
  4442. "affinity": "TEXT",
  4443. "notNull": true,
  4444. "defaultValue": "''"
  4445. },
  4446. {
  4447. "fieldPath": "appId",
  4448. "columnName": "appId",
  4449. "affinity": "TEXT",
  4450. "notNull": true,
  4451. "defaultValue": "''"
  4452. },
  4453. {
  4454. "fieldPath": "model",
  4455. "columnName": "model",
  4456. "affinity": "TEXT",
  4457. "notNull": true,
  4458. "defaultValue": "''"
  4459. },
  4460. {
  4461. "fieldPath": "optionsJson",
  4462. "columnName": "optionsJson",
  4463. "affinity": "TEXT",
  4464. "notNull": true,
  4465. "defaultValue": "'{}'"
  4466. },
  4467. {
  4468. "fieldPath": "enabled",
  4469. "columnName": "enabled",
  4470. "affinity": "INTEGER",
  4471. "notNull": true,
  4472. "defaultValue": "1"
  4473. },
  4474. {
  4475. "fieldPath": "createdAt",
  4476. "columnName": "createdAt",
  4477. "affinity": "INTEGER",
  4478. "notNull": true
  4479. },
  4480. {
  4481. "fieldPath": "updatedAt",
  4482. "columnName": "updatedAt",
  4483. "affinity": "INTEGER",
  4484. "notNull": true
  4485. }
  4486. ],
  4487. "primaryKey": {
  4488. "autoGenerate": false,
  4489. "columnNames": [
  4490. "id"
  4491. ]
  4492. },
  4493. "indices": [
  4494. {
  4495. "name": "index_cloud_tts_engines_provider_enabled",
  4496. "unique": false,
  4497. "columnNames": [
  4498. "provider",
  4499. "enabled"
  4500. ],
  4501. "orders": [],
  4502. "createSql": "CREATE INDEX IF NOT EXISTS `index_cloud_tts_engines_provider_enabled` ON `${TABLE_NAME}` (`provider`, `enabled`)"
  4503. }
  4504. ]
  4505. }
  4506. ],
  4507. "views": [
  4508. {
  4509. "viewName": "book_sources_part",
  4510. "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"
  4511. }
  4512. ],
  4513. "setupQueries": [
  4514. "CREATE TABLE IF NOT EXISTS room_master_table (id INTEGER PRIMARY KEY,identity_hash TEXT)",
  4515. "INSERT OR REPLACE INTO room_master_table (id,identity_hash) VALUES(42, 'f5e225667da6bf6e50b9435bfb2ffb6d')"
  4516. ]
  4517. }
  4518. }