96.json 139 KB

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