| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674 |
- {
- "formatVersion": 1,
- "database": {
- "version": 51,
- "identityHash": "028c189be828501449b61b32ab47a36f",
- "entities": [
- {
- "tableName": "books",
- "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`bookUrl` TEXT NOT NULL DEFAULT '', `tocUrl` TEXT NOT NULL DEFAULT '', `origin` TEXT NOT NULL DEFAULT '', `originName` TEXT NOT NULL DEFAULT '', `name` TEXT NOT NULL DEFAULT '', `author` TEXT NOT NULL DEFAULT '', `kind` TEXT, `customTag` TEXT, `coverUrl` TEXT, `customCoverUrl` TEXT, `intro` TEXT, `customIntro` TEXT, `charset` TEXT, `type` INTEGER NOT NULL DEFAULT 0, `group` INTEGER NOT NULL DEFAULT 0, `latestChapterTitle` TEXT, `latestChapterTime` INTEGER NOT NULL DEFAULT 0, `lastCheckTime` INTEGER NOT NULL DEFAULT 0, `lastCheckCount` INTEGER NOT NULL DEFAULT 0, `totalChapterNum` INTEGER NOT NULL DEFAULT 0, `durChapterTitle` TEXT, `durChapterIndex` INTEGER NOT NULL DEFAULT 0, `durChapterPos` INTEGER NOT NULL DEFAULT 0, `durChapterTime` INTEGER NOT NULL DEFAULT 0, `wordCount` TEXT, `canUpdate` INTEGER NOT NULL DEFAULT 1, `order` INTEGER NOT NULL DEFAULT 0, `originOrder` INTEGER NOT NULL DEFAULT 0, `variable` TEXT, `readConfig` TEXT, PRIMARY KEY(`bookUrl`))",
- "fields": [
- {
- "fieldPath": "bookUrl",
- "columnName": "bookUrl",
- "affinity": "TEXT",
- "notNull": true,
- "defaultValue": "''"
- },
- {
- "fieldPath": "tocUrl",
- "columnName": "tocUrl",
- "affinity": "TEXT",
- "notNull": true,
- "defaultValue": "''"
- },
- {
- "fieldPath": "origin",
- "columnName": "origin",
- "affinity": "TEXT",
- "notNull": true,
- "defaultValue": "''"
- },
- {
- "fieldPath": "originName",
- "columnName": "originName",
- "affinity": "TEXT",
- "notNull": true,
- "defaultValue": "''"
- },
- {
- "fieldPath": "name",
- "columnName": "name",
- "affinity": "TEXT",
- "notNull": true,
- "defaultValue": "''"
- },
- {
- "fieldPath": "author",
- "columnName": "author",
- "affinity": "TEXT",
- "notNull": true,
- "defaultValue": "''"
- },
- {
- "fieldPath": "kind",
- "columnName": "kind",
- "affinity": "TEXT",
- "notNull": false
- },
- {
- "fieldPath": "customTag",
- "columnName": "customTag",
- "affinity": "TEXT",
- "notNull": false
- },
- {
- "fieldPath": "coverUrl",
- "columnName": "coverUrl",
- "affinity": "TEXT",
- "notNull": false
- },
- {
- "fieldPath": "customCoverUrl",
- "columnName": "customCoverUrl",
- "affinity": "TEXT",
- "notNull": false
- },
- {
- "fieldPath": "intro",
- "columnName": "intro",
- "affinity": "TEXT",
- "notNull": false
- },
- {
- "fieldPath": "customIntro",
- "columnName": "customIntro",
- "affinity": "TEXT",
- "notNull": false
- },
- {
- "fieldPath": "charset",
- "columnName": "charset",
- "affinity": "TEXT",
- "notNull": false
- },
- {
- "fieldPath": "type",
- "columnName": "type",
- "affinity": "INTEGER",
- "notNull": true,
- "defaultValue": "0"
- },
- {
- "fieldPath": "group",
- "columnName": "group",
- "affinity": "INTEGER",
- "notNull": true,
- "defaultValue": "0"
- },
- {
- "fieldPath": "latestChapterTitle",
- "columnName": "latestChapterTitle",
- "affinity": "TEXT",
- "notNull": false
- },
- {
- "fieldPath": "latestChapterTime",
- "columnName": "latestChapterTime",
- "affinity": "INTEGER",
- "notNull": true,
- "defaultValue": "0"
- },
- {
- "fieldPath": "lastCheckTime",
- "columnName": "lastCheckTime",
- "affinity": "INTEGER",
- "notNull": true,
- "defaultValue": "0"
- },
- {
- "fieldPath": "lastCheckCount",
- "columnName": "lastCheckCount",
- "affinity": "INTEGER",
- "notNull": true,
- "defaultValue": "0"
- },
- {
- "fieldPath": "totalChapterNum",
- "columnName": "totalChapterNum",
- "affinity": "INTEGER",
- "notNull": true,
- "defaultValue": "0"
- },
- {
- "fieldPath": "durChapterTitle",
- "columnName": "durChapterTitle",
- "affinity": "TEXT",
- "notNull": false
- },
- {
- "fieldPath": "durChapterIndex",
- "columnName": "durChapterIndex",
- "affinity": "INTEGER",
- "notNull": true,
- "defaultValue": "0"
- },
- {
- "fieldPath": "durChapterPos",
- "columnName": "durChapterPos",
- "affinity": "INTEGER",
- "notNull": true,
- "defaultValue": "0"
- },
- {
- "fieldPath": "durChapterTime",
- "columnName": "durChapterTime",
- "affinity": "INTEGER",
- "notNull": true,
- "defaultValue": "0"
- },
- {
- "fieldPath": "wordCount",
- "columnName": "wordCount",
- "affinity": "TEXT",
- "notNull": false
- },
- {
- "fieldPath": "canUpdate",
- "columnName": "canUpdate",
- "affinity": "INTEGER",
- "notNull": true,
- "defaultValue": "1"
- },
- {
- "fieldPath": "order",
- "columnName": "order",
- "affinity": "INTEGER",
- "notNull": true,
- "defaultValue": "0"
- },
- {
- "fieldPath": "originOrder",
- "columnName": "originOrder",
- "affinity": "INTEGER",
- "notNull": true,
- "defaultValue": "0"
- },
- {
- "fieldPath": "variable",
- "columnName": "variable",
- "affinity": "TEXT",
- "notNull": false
- },
- {
- "fieldPath": "readConfig",
- "columnName": "readConfig",
- "affinity": "TEXT",
- "notNull": false
- }
- ],
- "primaryKey": {
- "autoGenerate": false,
- "columnNames": [
- "bookUrl"
- ]
- },
- "indices": [
- {
- "name": "index_books_name_author",
- "unique": true,
- "columnNames": [
- "name",
- "author"
- ],
- "orders": [],
- "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_books_name_author` ON `${TABLE_NAME}` (`name`, `author`)"
- }
- ],
- "foreignKeys": []
- },
- {
- "tableName": "book_groups",
- "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`groupId` INTEGER NOT NULL, `groupName` TEXT NOT NULL, `cover` TEXT, `order` INTEGER NOT NULL, `show` INTEGER NOT NULL, PRIMARY KEY(`groupId`))",
- "fields": [
- {
- "fieldPath": "groupId",
- "columnName": "groupId",
- "affinity": "INTEGER",
- "notNull": true
- },
- {
- "fieldPath": "groupName",
- "columnName": "groupName",
- "affinity": "TEXT",
- "notNull": true
- },
- {
- "fieldPath": "cover",
- "columnName": "cover",
- "affinity": "TEXT",
- "notNull": false
- },
- {
- "fieldPath": "order",
- "columnName": "order",
- "affinity": "INTEGER",
- "notNull": true
- },
- {
- "fieldPath": "show",
- "columnName": "show",
- "affinity": "INTEGER",
- "notNull": true
- }
- ],
- "primaryKey": {
- "autoGenerate": false,
- "columnNames": [
- "groupId"
- ]
- },
- "indices": [],
- "foreignKeys": []
- },
- {
- "tableName": "book_sources",
- "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`bookSourceUrl` TEXT NOT NULL, `bookSourceName` TEXT NOT NULL, `bookSourceGroup` TEXT, `bookSourceType` INTEGER NOT NULL, `bookUrlPattern` TEXT, `customOrder` INTEGER NOT NULL, `enabled` INTEGER NOT NULL, `enabledExplore` INTEGER NOT NULL, `enabledCookieJar` INTEGER DEFAULT 0, `concurrentRate` TEXT, `header` TEXT, `loginUrl` TEXT, `loginUi` TEXT, `loginCheckJs` TEXT, `bookSourceComment` TEXT, `variableComment` TEXT, `lastUpdateTime` INTEGER NOT NULL, `respondTime` INTEGER NOT NULL, `weight` INTEGER NOT NULL, `exploreUrl` TEXT, `ruleExplore` TEXT, `searchUrl` TEXT, `ruleSearch` TEXT, `ruleBookInfo` TEXT, `ruleToc` TEXT, `ruleContent` TEXT, PRIMARY KEY(`bookSourceUrl`))",
- "fields": [
- {
- "fieldPath": "bookSourceUrl",
- "columnName": "bookSourceUrl",
- "affinity": "TEXT",
- "notNull": true
- },
- {
- "fieldPath": "bookSourceName",
- "columnName": "bookSourceName",
- "affinity": "TEXT",
- "notNull": true
- },
- {
- "fieldPath": "bookSourceGroup",
- "columnName": "bookSourceGroup",
- "affinity": "TEXT",
- "notNull": false
- },
- {
- "fieldPath": "bookSourceType",
- "columnName": "bookSourceType",
- "affinity": "INTEGER",
- "notNull": true
- },
- {
- "fieldPath": "bookUrlPattern",
- "columnName": "bookUrlPattern",
- "affinity": "TEXT",
- "notNull": false
- },
- {
- "fieldPath": "customOrder",
- "columnName": "customOrder",
- "affinity": "INTEGER",
- "notNull": true
- },
- {
- "fieldPath": "enabled",
- "columnName": "enabled",
- "affinity": "INTEGER",
- "notNull": true
- },
- {
- "fieldPath": "enabledExplore",
- "columnName": "enabledExplore",
- "affinity": "INTEGER",
- "notNull": true
- },
- {
- "fieldPath": "enabledCookieJar",
- "columnName": "enabledCookieJar",
- "affinity": "INTEGER",
- "notNull": false,
- "defaultValue": "0"
- },
- {
- "fieldPath": "concurrentRate",
- "columnName": "concurrentRate",
- "affinity": "TEXT",
- "notNull": false
- },
- {
- "fieldPath": "header",
- "columnName": "header",
- "affinity": "TEXT",
- "notNull": false
- },
- {
- "fieldPath": "loginUrl",
- "columnName": "loginUrl",
- "affinity": "TEXT",
- "notNull": false
- },
- {
- "fieldPath": "loginUi",
- "columnName": "loginUi",
- "affinity": "TEXT",
- "notNull": false
- },
- {
- "fieldPath": "loginCheckJs",
- "columnName": "loginCheckJs",
- "affinity": "TEXT",
- "notNull": false
- },
- {
- "fieldPath": "bookSourceComment",
- "columnName": "bookSourceComment",
- "affinity": "TEXT",
- "notNull": false
- },
- {
- "fieldPath": "variableComment",
- "columnName": "variableComment",
- "affinity": "TEXT",
- "notNull": false
- },
- {
- "fieldPath": "lastUpdateTime",
- "columnName": "lastUpdateTime",
- "affinity": "INTEGER",
- "notNull": true
- },
- {
- "fieldPath": "respondTime",
- "columnName": "respondTime",
- "affinity": "INTEGER",
- "notNull": true
- },
- {
- "fieldPath": "weight",
- "columnName": "weight",
- "affinity": "INTEGER",
- "notNull": true
- },
- {
- "fieldPath": "exploreUrl",
- "columnName": "exploreUrl",
- "affinity": "TEXT",
- "notNull": false
- },
- {
- "fieldPath": "ruleExplore",
- "columnName": "ruleExplore",
- "affinity": "TEXT",
- "notNull": false
- },
- {
- "fieldPath": "searchUrl",
- "columnName": "searchUrl",
- "affinity": "TEXT",
- "notNull": false
- },
- {
- "fieldPath": "ruleSearch",
- "columnName": "ruleSearch",
- "affinity": "TEXT",
- "notNull": false
- },
- {
- "fieldPath": "ruleBookInfo",
- "columnName": "ruleBookInfo",
- "affinity": "TEXT",
- "notNull": false
- },
- {
- "fieldPath": "ruleToc",
- "columnName": "ruleToc",
- "affinity": "TEXT",
- "notNull": false
- },
- {
- "fieldPath": "ruleContent",
- "columnName": "ruleContent",
- "affinity": "TEXT",
- "notNull": false
- }
- ],
- "primaryKey": {
- "autoGenerate": false,
- "columnNames": [
- "bookSourceUrl"
- ]
- },
- "indices": [
- {
- "name": "index_book_sources_bookSourceUrl",
- "unique": false,
- "columnNames": [
- "bookSourceUrl"
- ],
- "orders": [],
- "createSql": "CREATE INDEX IF NOT EXISTS `index_book_sources_bookSourceUrl` ON `${TABLE_NAME}` (`bookSourceUrl`)"
- }
- ],
- "foreignKeys": []
- },
- {
- "tableName": "chapters",
- "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`url` TEXT NOT NULL, `title` TEXT NOT NULL, `isVolume` INTEGER NOT NULL, `baseUrl` TEXT NOT NULL, `bookUrl` TEXT NOT NULL, `index` INTEGER NOT NULL, `isVip` INTEGER NOT NULL, `isPay` INTEGER NOT NULL, `resourceUrl` TEXT, `tag` TEXT, `start` INTEGER, `end` INTEGER, `startFragmentId` TEXT, `endFragmentId` TEXT, `variable` TEXT, PRIMARY KEY(`url`, `bookUrl`), FOREIGN KEY(`bookUrl`) REFERENCES `books`(`bookUrl`) ON UPDATE NO ACTION ON DELETE CASCADE )",
- "fields": [
- {
- "fieldPath": "url",
- "columnName": "url",
- "affinity": "TEXT",
- "notNull": true
- },
- {
- "fieldPath": "title",
- "columnName": "title",
- "affinity": "TEXT",
- "notNull": true
- },
- {
- "fieldPath": "isVolume",
- "columnName": "isVolume",
- "affinity": "INTEGER",
- "notNull": true
- },
- {
- "fieldPath": "baseUrl",
- "columnName": "baseUrl",
- "affinity": "TEXT",
- "notNull": true
- },
- {
- "fieldPath": "bookUrl",
- "columnName": "bookUrl",
- "affinity": "TEXT",
- "notNull": true
- },
- {
- "fieldPath": "index",
- "columnName": "index",
- "affinity": "INTEGER",
- "notNull": true
- },
- {
- "fieldPath": "isVip",
- "columnName": "isVip",
- "affinity": "INTEGER",
- "notNull": true
- },
- {
- "fieldPath": "isPay",
- "columnName": "isPay",
- "affinity": "INTEGER",
- "notNull": true
- },
- {
- "fieldPath": "resourceUrl",
- "columnName": "resourceUrl",
- "affinity": "TEXT",
- "notNull": false
- },
- {
- "fieldPath": "tag",
- "columnName": "tag",
- "affinity": "TEXT",
- "notNull": false
- },
- {
- "fieldPath": "start",
- "columnName": "start",
- "affinity": "INTEGER",
- "notNull": false
- },
- {
- "fieldPath": "end",
- "columnName": "end",
- "affinity": "INTEGER",
- "notNull": false
- },
- {
- "fieldPath": "startFragmentId",
- "columnName": "startFragmentId",
- "affinity": "TEXT",
- "notNull": false
- },
- {
- "fieldPath": "endFragmentId",
- "columnName": "endFragmentId",
- "affinity": "TEXT",
- "notNull": false
- },
- {
- "fieldPath": "variable",
- "columnName": "variable",
- "affinity": "TEXT",
- "notNull": false
- }
- ],
- "primaryKey": {
- "autoGenerate": false,
- "columnNames": [
- "url",
- "bookUrl"
- ]
- },
- "indices": [
- {
- "name": "index_chapters_bookUrl",
- "unique": false,
- "columnNames": [
- "bookUrl"
- ],
- "orders": [],
- "createSql": "CREATE INDEX IF NOT EXISTS `index_chapters_bookUrl` ON `${TABLE_NAME}` (`bookUrl`)"
- },
- {
- "name": "index_chapters_bookUrl_index",
- "unique": true,
- "columnNames": [
- "bookUrl",
- "index"
- ],
- "orders": [],
- "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_chapters_bookUrl_index` ON `${TABLE_NAME}` (`bookUrl`, `index`)"
- }
- ],
- "foreignKeys": [
- {
- "table": "books",
- "onDelete": "CASCADE",
- "onUpdate": "NO ACTION",
- "columns": [
- "bookUrl"
- ],
- "referencedColumns": [
- "bookUrl"
- ]
- }
- ]
- },
- {
- "tableName": "replace_rules",
- "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, `name` TEXT NOT NULL DEFAULT '', `group` TEXT, `pattern` TEXT NOT NULL DEFAULT '', `replacement` TEXT NOT NULL DEFAULT '', `scope` TEXT, `scopeTitle` INTEGER NOT NULL DEFAULT 0, `scopeContent` INTEGER NOT NULL DEFAULT 1, `isEnabled` INTEGER NOT NULL DEFAULT 1, `isRegex` INTEGER NOT NULL DEFAULT 1, `timeoutMillisecond` INTEGER NOT NULL DEFAULT 3000, `sortOrder` INTEGER NOT NULL DEFAULT 0)",
- "fields": [
- {
- "fieldPath": "id",
- "columnName": "id",
- "affinity": "INTEGER",
- "notNull": true
- },
- {
- "fieldPath": "name",
- "columnName": "name",
- "affinity": "TEXT",
- "notNull": true,
- "defaultValue": "''"
- },
- {
- "fieldPath": "group",
- "columnName": "group",
- "affinity": "TEXT",
- "notNull": false
- },
- {
- "fieldPath": "pattern",
- "columnName": "pattern",
- "affinity": "TEXT",
- "notNull": true,
- "defaultValue": "''"
- },
- {
- "fieldPath": "replacement",
- "columnName": "replacement",
- "affinity": "TEXT",
- "notNull": true,
- "defaultValue": "''"
- },
- {
- "fieldPath": "scope",
- "columnName": "scope",
- "affinity": "TEXT",
- "notNull": false
- },
- {
- "fieldPath": "scopeTitle",
- "columnName": "scopeTitle",
- "affinity": "INTEGER",
- "notNull": true,
- "defaultValue": "0"
- },
- {
- "fieldPath": "scopeContent",
- "columnName": "scopeContent",
- "affinity": "INTEGER",
- "notNull": true,
- "defaultValue": "1"
- },
- {
- "fieldPath": "isEnabled",
- "columnName": "isEnabled",
- "affinity": "INTEGER",
- "notNull": true,
- "defaultValue": "1"
- },
- {
- "fieldPath": "isRegex",
- "columnName": "isRegex",
- "affinity": "INTEGER",
- "notNull": true,
- "defaultValue": "1"
- },
- {
- "fieldPath": "timeoutMillisecond",
- "columnName": "timeoutMillisecond",
- "affinity": "INTEGER",
- "notNull": true,
- "defaultValue": "3000"
- },
- {
- "fieldPath": "order",
- "columnName": "sortOrder",
- "affinity": "INTEGER",
- "notNull": true,
- "defaultValue": "0"
- }
- ],
- "primaryKey": {
- "autoGenerate": true,
- "columnNames": [
- "id"
- ]
- },
- "indices": [
- {
- "name": "index_replace_rules_id",
- "unique": false,
- "columnNames": [
- "id"
- ],
- "orders": [],
- "createSql": "CREATE INDEX IF NOT EXISTS `index_replace_rules_id` ON `${TABLE_NAME}` (`id`)"
- }
- ],
- "foreignKeys": []
- },
- {
- "tableName": "searchBooks",
- "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`bookUrl` TEXT NOT NULL, `origin` TEXT NOT NULL, `originName` TEXT NOT NULL, `type` INTEGER NOT NULL, `name` TEXT NOT NULL, `author` TEXT NOT NULL, `kind` TEXT, `coverUrl` TEXT, `intro` TEXT, `wordCount` TEXT, `latestChapterTitle` TEXT, `tocUrl` TEXT NOT NULL, `time` INTEGER NOT NULL, `variable` TEXT, `originOrder` INTEGER NOT NULL, PRIMARY KEY(`bookUrl`), FOREIGN KEY(`origin`) REFERENCES `book_sources`(`bookSourceUrl`) ON UPDATE NO ACTION ON DELETE CASCADE )",
- "fields": [
- {
- "fieldPath": "bookUrl",
- "columnName": "bookUrl",
- "affinity": "TEXT",
- "notNull": true
- },
- {
- "fieldPath": "origin",
- "columnName": "origin",
- "affinity": "TEXT",
- "notNull": true
- },
- {
- "fieldPath": "originName",
- "columnName": "originName",
- "affinity": "TEXT",
- "notNull": true
- },
- {
- "fieldPath": "type",
- "columnName": "type",
- "affinity": "INTEGER",
- "notNull": true
- },
- {
- "fieldPath": "name",
- "columnName": "name",
- "affinity": "TEXT",
- "notNull": true
- },
- {
- "fieldPath": "author",
- "columnName": "author",
- "affinity": "TEXT",
- "notNull": true
- },
- {
- "fieldPath": "kind",
- "columnName": "kind",
- "affinity": "TEXT",
- "notNull": false
- },
- {
- "fieldPath": "coverUrl",
- "columnName": "coverUrl",
- "affinity": "TEXT",
- "notNull": false
- },
- {
- "fieldPath": "intro",
- "columnName": "intro",
- "affinity": "TEXT",
- "notNull": false
- },
- {
- "fieldPath": "wordCount",
- "columnName": "wordCount",
- "affinity": "TEXT",
- "notNull": false
- },
- {
- "fieldPath": "latestChapterTitle",
- "columnName": "latestChapterTitle",
- "affinity": "TEXT",
- "notNull": false
- },
- {
- "fieldPath": "tocUrl",
- "columnName": "tocUrl",
- "affinity": "TEXT",
- "notNull": true
- },
- {
- "fieldPath": "time",
- "columnName": "time",
- "affinity": "INTEGER",
- "notNull": true
- },
- {
- "fieldPath": "variable",
- "columnName": "variable",
- "affinity": "TEXT",
- "notNull": false
- },
- {
- "fieldPath": "originOrder",
- "columnName": "originOrder",
- "affinity": "INTEGER",
- "notNull": true
- }
- ],
- "primaryKey": {
- "autoGenerate": false,
- "columnNames": [
- "bookUrl"
- ]
- },
- "indices": [
- {
- "name": "index_searchBooks_bookUrl",
- "unique": true,
- "columnNames": [
- "bookUrl"
- ],
- "orders": [],
- "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_searchBooks_bookUrl` ON `${TABLE_NAME}` (`bookUrl`)"
- },
- {
- "name": "index_searchBooks_origin",
- "unique": false,
- "columnNames": [
- "origin"
- ],
- "orders": [],
- "createSql": "CREATE INDEX IF NOT EXISTS `index_searchBooks_origin` ON `${TABLE_NAME}` (`origin`)"
- }
- ],
- "foreignKeys": [
- {
- "table": "book_sources",
- "onDelete": "CASCADE",
- "onUpdate": "NO ACTION",
- "columns": [
- "origin"
- ],
- "referencedColumns": [
- "bookSourceUrl"
- ]
- }
- ]
- },
- {
- "tableName": "search_keywords",
- "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`word` TEXT NOT NULL, `usage` INTEGER NOT NULL, `lastUseTime` INTEGER NOT NULL, PRIMARY KEY(`word`))",
- "fields": [
- {
- "fieldPath": "word",
- "columnName": "word",
- "affinity": "TEXT",
- "notNull": true
- },
- {
- "fieldPath": "usage",
- "columnName": "usage",
- "affinity": "INTEGER",
- "notNull": true
- },
- {
- "fieldPath": "lastUseTime",
- "columnName": "lastUseTime",
- "affinity": "INTEGER",
- "notNull": true
- }
- ],
- "primaryKey": {
- "autoGenerate": false,
- "columnNames": [
- "word"
- ]
- },
- "indices": [
- {
- "name": "index_search_keywords_word",
- "unique": true,
- "columnNames": [
- "word"
- ],
- "orders": [],
- "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_search_keywords_word` ON `${TABLE_NAME}` (`word`)"
- }
- ],
- "foreignKeys": []
- },
- {
- "tableName": "cookies",
- "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`url` TEXT NOT NULL, `cookie` TEXT NOT NULL, PRIMARY KEY(`url`))",
- "fields": [
- {
- "fieldPath": "url",
- "columnName": "url",
- "affinity": "TEXT",
- "notNull": true
- },
- {
- "fieldPath": "cookie",
- "columnName": "cookie",
- "affinity": "TEXT",
- "notNull": true
- }
- ],
- "primaryKey": {
- "autoGenerate": false,
- "columnNames": [
- "url"
- ]
- },
- "indices": [
- {
- "name": "index_cookies_url",
- "unique": true,
- "columnNames": [
- "url"
- ],
- "orders": [],
- "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_cookies_url` ON `${TABLE_NAME}` (`url`)"
- }
- ],
- "foreignKeys": []
- },
- {
- "tableName": "rssSources",
- "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, `enabledCookieJar` INTEGER DEFAULT 0, `concurrentRate` TEXT, `header` TEXT, `loginUrl` TEXT, `loginUi` TEXT, `loginCheckJs` TEXT, `sortUrl` TEXT, `singleUrl` INTEGER NOT NULL, `articleStyle` INTEGER NOT NULL, `ruleArticles` TEXT, `ruleNextPage` TEXT, `ruleTitle` TEXT, `rulePubDate` TEXT, `ruleDescription` TEXT, `ruleImage` TEXT, `ruleLink` TEXT, `ruleContent` TEXT, `style` TEXT, `enableJs` INTEGER NOT NULL, `loadWithBaseUrl` INTEGER NOT NULL, `customOrder` INTEGER NOT NULL, PRIMARY KEY(`sourceUrl`))",
- "fields": [
- {
- "fieldPath": "sourceUrl",
- "columnName": "sourceUrl",
- "affinity": "TEXT",
- "notNull": true
- },
- {
- "fieldPath": "sourceName",
- "columnName": "sourceName",
- "affinity": "TEXT",
- "notNull": true
- },
- {
- "fieldPath": "sourceIcon",
- "columnName": "sourceIcon",
- "affinity": "TEXT",
- "notNull": true
- },
- {
- "fieldPath": "sourceGroup",
- "columnName": "sourceGroup",
- "affinity": "TEXT",
- "notNull": false
- },
- {
- "fieldPath": "sourceComment",
- "columnName": "sourceComment",
- "affinity": "TEXT",
- "notNull": false
- },
- {
- "fieldPath": "enabled",
- "columnName": "enabled",
- "affinity": "INTEGER",
- "notNull": true
- },
- {
- "fieldPath": "variableComment",
- "columnName": "variableComment",
- "affinity": "TEXT",
- "notNull": false
- },
- {
- "fieldPath": "enabledCookieJar",
- "columnName": "enabledCookieJar",
- "affinity": "INTEGER",
- "notNull": false,
- "defaultValue": "0"
- },
- {
- "fieldPath": "concurrentRate",
- "columnName": "concurrentRate",
- "affinity": "TEXT",
- "notNull": false
- },
- {
- "fieldPath": "header",
- "columnName": "header",
- "affinity": "TEXT",
- "notNull": false
- },
- {
- "fieldPath": "loginUrl",
- "columnName": "loginUrl",
- "affinity": "TEXT",
- "notNull": false
- },
- {
- "fieldPath": "loginUi",
- "columnName": "loginUi",
- "affinity": "TEXT",
- "notNull": false
- },
- {
- "fieldPath": "loginCheckJs",
- "columnName": "loginCheckJs",
- "affinity": "TEXT",
- "notNull": false
- },
- {
- "fieldPath": "sortUrl",
- "columnName": "sortUrl",
- "affinity": "TEXT",
- "notNull": false
- },
- {
- "fieldPath": "singleUrl",
- "columnName": "singleUrl",
- "affinity": "INTEGER",
- "notNull": true
- },
- {
- "fieldPath": "articleStyle",
- "columnName": "articleStyle",
- "affinity": "INTEGER",
- "notNull": true
- },
- {
- "fieldPath": "ruleArticles",
- "columnName": "ruleArticles",
- "affinity": "TEXT",
- "notNull": false
- },
- {
- "fieldPath": "ruleNextPage",
- "columnName": "ruleNextPage",
- "affinity": "TEXT",
- "notNull": false
- },
- {
- "fieldPath": "ruleTitle",
- "columnName": "ruleTitle",
- "affinity": "TEXT",
- "notNull": false
- },
- {
- "fieldPath": "rulePubDate",
- "columnName": "rulePubDate",
- "affinity": "TEXT",
- "notNull": false
- },
- {
- "fieldPath": "ruleDescription",
- "columnName": "ruleDescription",
- "affinity": "TEXT",
- "notNull": false
- },
- {
- "fieldPath": "ruleImage",
- "columnName": "ruleImage",
- "affinity": "TEXT",
- "notNull": false
- },
- {
- "fieldPath": "ruleLink",
- "columnName": "ruleLink",
- "affinity": "TEXT",
- "notNull": false
- },
- {
- "fieldPath": "ruleContent",
- "columnName": "ruleContent",
- "affinity": "TEXT",
- "notNull": false
- },
- {
- "fieldPath": "style",
- "columnName": "style",
- "affinity": "TEXT",
- "notNull": false
- },
- {
- "fieldPath": "enableJs",
- "columnName": "enableJs",
- "affinity": "INTEGER",
- "notNull": true
- },
- {
- "fieldPath": "loadWithBaseUrl",
- "columnName": "loadWithBaseUrl",
- "affinity": "INTEGER",
- "notNull": true
- },
- {
- "fieldPath": "customOrder",
- "columnName": "customOrder",
- "affinity": "INTEGER",
- "notNull": true
- }
- ],
- "primaryKey": {
- "autoGenerate": false,
- "columnNames": [
- "sourceUrl"
- ]
- },
- "indices": [
- {
- "name": "index_rssSources_sourceUrl",
- "unique": false,
- "columnNames": [
- "sourceUrl"
- ],
- "orders": [],
- "createSql": "CREATE INDEX IF NOT EXISTS `index_rssSources_sourceUrl` ON `${TABLE_NAME}` (`sourceUrl`)"
- }
- ],
- "foreignKeys": []
- },
- {
- "tableName": "bookmarks",
- "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`time` INTEGER NOT NULL, `bookName` TEXT NOT NULL, `bookAuthor` TEXT NOT NULL, `chapterIndex` INTEGER NOT NULL, `chapterPos` INTEGER NOT NULL, `chapterName` TEXT NOT NULL, `bookText` TEXT NOT NULL, `content` TEXT NOT NULL, PRIMARY KEY(`time`))",
- "fields": [
- {
- "fieldPath": "time",
- "columnName": "time",
- "affinity": "INTEGER",
- "notNull": true
- },
- {
- "fieldPath": "bookName",
- "columnName": "bookName",
- "affinity": "TEXT",
- "notNull": true
- },
- {
- "fieldPath": "bookAuthor",
- "columnName": "bookAuthor",
- "affinity": "TEXT",
- "notNull": true
- },
- {
- "fieldPath": "chapterIndex",
- "columnName": "chapterIndex",
- "affinity": "INTEGER",
- "notNull": true
- },
- {
- "fieldPath": "chapterPos",
- "columnName": "chapterPos",
- "affinity": "INTEGER",
- "notNull": true
- },
- {
- "fieldPath": "chapterName",
- "columnName": "chapterName",
- "affinity": "TEXT",
- "notNull": true
- },
- {
- "fieldPath": "bookText",
- "columnName": "bookText",
- "affinity": "TEXT",
- "notNull": true
- },
- {
- "fieldPath": "content",
- "columnName": "content",
- "affinity": "TEXT",
- "notNull": true
- }
- ],
- "primaryKey": {
- "autoGenerate": false,
- "columnNames": [
- "time"
- ]
- },
- "indices": [
- {
- "name": "index_bookmarks_bookName_bookAuthor",
- "unique": false,
- "columnNames": [
- "bookName",
- "bookAuthor"
- ],
- "orders": [],
- "createSql": "CREATE INDEX IF NOT EXISTS `index_bookmarks_bookName_bookAuthor` ON `${TABLE_NAME}` (`bookName`, `bookAuthor`)"
- }
- ],
- "foreignKeys": []
- },
- {
- "tableName": "rssArticles",
- "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`origin` TEXT NOT NULL, `sort` TEXT NOT NULL, `title` TEXT NOT NULL, `order` INTEGER NOT NULL, `link` TEXT NOT NULL, `pubDate` TEXT, `description` TEXT, `content` TEXT, `image` TEXT, `read` INTEGER NOT NULL, `variable` TEXT, PRIMARY KEY(`origin`, `link`))",
- "fields": [
- {
- "fieldPath": "origin",
- "columnName": "origin",
- "affinity": "TEXT",
- "notNull": true
- },
- {
- "fieldPath": "sort",
- "columnName": "sort",
- "affinity": "TEXT",
- "notNull": true
- },
- {
- "fieldPath": "title",
- "columnName": "title",
- "affinity": "TEXT",
- "notNull": true
- },
- {
- "fieldPath": "order",
- "columnName": "order",
- "affinity": "INTEGER",
- "notNull": true
- },
- {
- "fieldPath": "link",
- "columnName": "link",
- "affinity": "TEXT",
- "notNull": true
- },
- {
- "fieldPath": "pubDate",
- "columnName": "pubDate",
- "affinity": "TEXT",
- "notNull": false
- },
- {
- "fieldPath": "description",
- "columnName": "description",
- "affinity": "TEXT",
- "notNull": false
- },
- {
- "fieldPath": "content",
- "columnName": "content",
- "affinity": "TEXT",
- "notNull": false
- },
- {
- "fieldPath": "image",
- "columnName": "image",
- "affinity": "TEXT",
- "notNull": false
- },
- {
- "fieldPath": "read",
- "columnName": "read",
- "affinity": "INTEGER",
- "notNull": true
- },
- {
- "fieldPath": "variable",
- "columnName": "variable",
- "affinity": "TEXT",
- "notNull": false
- }
- ],
- "primaryKey": {
- "autoGenerate": false,
- "columnNames": [
- "origin",
- "link"
- ]
- },
- "indices": [],
- "foreignKeys": []
- },
- {
- "tableName": "rssReadRecords",
- "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`record` TEXT NOT NULL, `read` INTEGER NOT NULL, PRIMARY KEY(`record`))",
- "fields": [
- {
- "fieldPath": "record",
- "columnName": "record",
- "affinity": "TEXT",
- "notNull": true
- },
- {
- "fieldPath": "read",
- "columnName": "read",
- "affinity": "INTEGER",
- "notNull": true
- }
- ],
- "primaryKey": {
- "autoGenerate": false,
- "columnNames": [
- "record"
- ]
- },
- "indices": [],
- "foreignKeys": []
- },
- {
- "tableName": "rssStars",
- "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`origin` TEXT NOT NULL, `sort` TEXT NOT NULL, `title` TEXT NOT NULL, `starTime` INTEGER NOT NULL, `link` TEXT NOT NULL, `pubDate` TEXT, `description` TEXT, `content` TEXT, `image` TEXT, `variable` TEXT, PRIMARY KEY(`origin`, `link`))",
- "fields": [
- {
- "fieldPath": "origin",
- "columnName": "origin",
- "affinity": "TEXT",
- "notNull": true
- },
- {
- "fieldPath": "sort",
- "columnName": "sort",
- "affinity": "TEXT",
- "notNull": true
- },
- {
- "fieldPath": "title",
- "columnName": "title",
- "affinity": "TEXT",
- "notNull": true
- },
- {
- "fieldPath": "starTime",
- "columnName": "starTime",
- "affinity": "INTEGER",
- "notNull": true
- },
- {
- "fieldPath": "link",
- "columnName": "link",
- "affinity": "TEXT",
- "notNull": true
- },
- {
- "fieldPath": "pubDate",
- "columnName": "pubDate",
- "affinity": "TEXT",
- "notNull": false
- },
- {
- "fieldPath": "description",
- "columnName": "description",
- "affinity": "TEXT",
- "notNull": false
- },
- {
- "fieldPath": "content",
- "columnName": "content",
- "affinity": "TEXT",
- "notNull": false
- },
- {
- "fieldPath": "image",
- "columnName": "image",
- "affinity": "TEXT",
- "notNull": false
- },
- {
- "fieldPath": "variable",
- "columnName": "variable",
- "affinity": "TEXT",
- "notNull": false
- }
- ],
- "primaryKey": {
- "autoGenerate": false,
- "columnNames": [
- "origin",
- "link"
- ]
- },
- "indices": [],
- "foreignKeys": []
- },
- {
- "tableName": "txtTocRules",
- "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER NOT NULL, `name` TEXT NOT NULL, `rule` TEXT NOT NULL, `serialNumber` INTEGER NOT NULL, `enable` INTEGER NOT NULL, PRIMARY KEY(`id`))",
- "fields": [
- {
- "fieldPath": "id",
- "columnName": "id",
- "affinity": "INTEGER",
- "notNull": true
- },
- {
- "fieldPath": "name",
- "columnName": "name",
- "affinity": "TEXT",
- "notNull": true
- },
- {
- "fieldPath": "rule",
- "columnName": "rule",
- "affinity": "TEXT",
- "notNull": true
- },
- {
- "fieldPath": "serialNumber",
- "columnName": "serialNumber",
- "affinity": "INTEGER",
- "notNull": true
- },
- {
- "fieldPath": "enable",
- "columnName": "enable",
- "affinity": "INTEGER",
- "notNull": true
- }
- ],
- "primaryKey": {
- "autoGenerate": false,
- "columnNames": [
- "id"
- ]
- },
- "indices": [],
- "foreignKeys": []
- },
- {
- "tableName": "readRecord",
- "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`deviceId` TEXT NOT NULL, `bookName` TEXT NOT NULL, `readTime` INTEGER NOT NULL DEFAULT 0, `lastRead` INTEGER NOT NULL DEFAULT 0, PRIMARY KEY(`deviceId`, `bookName`))",
- "fields": [
- {
- "fieldPath": "deviceId",
- "columnName": "deviceId",
- "affinity": "TEXT",
- "notNull": true
- },
- {
- "fieldPath": "bookName",
- "columnName": "bookName",
- "affinity": "TEXT",
- "notNull": true
- },
- {
- "fieldPath": "readTime",
- "columnName": "readTime",
- "affinity": "INTEGER",
- "notNull": true,
- "defaultValue": "0"
- },
- {
- "fieldPath": "lastRead",
- "columnName": "lastRead",
- "affinity": "INTEGER",
- "notNull": true,
- "defaultValue": "0"
- }
- ],
- "primaryKey": {
- "autoGenerate": false,
- "columnNames": [
- "deviceId",
- "bookName"
- ]
- },
- "indices": [],
- "foreignKeys": []
- },
- {
- "tableName": "httpTTS",
- "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, `enabledCookieJar` INTEGER DEFAULT 0, `loginCheckJs` TEXT, `lastUpdateTime` INTEGER NOT NULL DEFAULT 0, PRIMARY KEY(`id`))",
- "fields": [
- {
- "fieldPath": "id",
- "columnName": "id",
- "affinity": "INTEGER",
- "notNull": true
- },
- {
- "fieldPath": "name",
- "columnName": "name",
- "affinity": "TEXT",
- "notNull": true
- },
- {
- "fieldPath": "url",
- "columnName": "url",
- "affinity": "TEXT",
- "notNull": true
- },
- {
- "fieldPath": "contentType",
- "columnName": "contentType",
- "affinity": "TEXT",
- "notNull": false
- },
- {
- "fieldPath": "concurrentRate",
- "columnName": "concurrentRate",
- "affinity": "TEXT",
- "notNull": false,
- "defaultValue": "'0'"
- },
- {
- "fieldPath": "loginUrl",
- "columnName": "loginUrl",
- "affinity": "TEXT",
- "notNull": false
- },
- {
- "fieldPath": "loginUi",
- "columnName": "loginUi",
- "affinity": "TEXT",
- "notNull": false
- },
- {
- "fieldPath": "header",
- "columnName": "header",
- "affinity": "TEXT",
- "notNull": false
- },
- {
- "fieldPath": "enabledCookieJar",
- "columnName": "enabledCookieJar",
- "affinity": "INTEGER",
- "notNull": false,
- "defaultValue": "0"
- },
- {
- "fieldPath": "loginCheckJs",
- "columnName": "loginCheckJs",
- "affinity": "TEXT",
- "notNull": false
- },
- {
- "fieldPath": "lastUpdateTime",
- "columnName": "lastUpdateTime",
- "affinity": "INTEGER",
- "notNull": true,
- "defaultValue": "0"
- }
- ],
- "primaryKey": {
- "autoGenerate": false,
- "columnNames": [
- "id"
- ]
- },
- "indices": [],
- "foreignKeys": []
- },
- {
- "tableName": "caches",
- "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`key` TEXT NOT NULL, `value` TEXT, `deadline` INTEGER NOT NULL, PRIMARY KEY(`key`))",
- "fields": [
- {
- "fieldPath": "key",
- "columnName": "key",
- "affinity": "TEXT",
- "notNull": true
- },
- {
- "fieldPath": "value",
- "columnName": "value",
- "affinity": "TEXT",
- "notNull": false
- },
- {
- "fieldPath": "deadline",
- "columnName": "deadline",
- "affinity": "INTEGER",
- "notNull": true
- }
- ],
- "primaryKey": {
- "autoGenerate": false,
- "columnNames": [
- "key"
- ]
- },
- "indices": [
- {
- "name": "index_caches_key",
- "unique": true,
- "columnNames": [
- "key"
- ],
- "orders": [],
- "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_caches_key` ON `${TABLE_NAME}` (`key`)"
- }
- ],
- "foreignKeys": []
- },
- {
- "tableName": "ruleSubs",
- "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`))",
- "fields": [
- {
- "fieldPath": "id",
- "columnName": "id",
- "affinity": "INTEGER",
- "notNull": true
- },
- {
- "fieldPath": "name",
- "columnName": "name",
- "affinity": "TEXT",
- "notNull": true
- },
- {
- "fieldPath": "url",
- "columnName": "url",
- "affinity": "TEXT",
- "notNull": true
- },
- {
- "fieldPath": "type",
- "columnName": "type",
- "affinity": "INTEGER",
- "notNull": true
- },
- {
- "fieldPath": "customOrder",
- "columnName": "customOrder",
- "affinity": "INTEGER",
- "notNull": true
- },
- {
- "fieldPath": "autoUpdate",
- "columnName": "autoUpdate",
- "affinity": "INTEGER",
- "notNull": true
- },
- {
- "fieldPath": "update",
- "columnName": "update",
- "affinity": "INTEGER",
- "notNull": true
- }
- ],
- "primaryKey": {
- "autoGenerate": false,
- "columnNames": [
- "id"
- ]
- },
- "indices": [],
- "foreignKeys": []
- },
- {
- "tableName": "keyboardAssists",
- "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`))",
- "fields": [
- {
- "fieldPath": "type",
- "columnName": "type",
- "affinity": "INTEGER",
- "notNull": true,
- "defaultValue": "0"
- },
- {
- "fieldPath": "key",
- "columnName": "key",
- "affinity": "TEXT",
- "notNull": true,
- "defaultValue": "''"
- },
- {
- "fieldPath": "value",
- "columnName": "value",
- "affinity": "TEXT",
- "notNull": true,
- "defaultValue": "''"
- },
- {
- "fieldPath": "serialNo",
- "columnName": "serialNo",
- "affinity": "INTEGER",
- "notNull": true,
- "defaultValue": "0"
- }
- ],
- "primaryKey": {
- "autoGenerate": false,
- "columnNames": [
- "type",
- "key"
- ]
- },
- "indices": [],
- "foreignKeys": []
- }
- ],
- "views": [],
- "setupQueries": [
- "CREATE TABLE IF NOT EXISTS room_master_table (id INTEGER PRIMARY KEY,identity_hash TEXT)",
- "INSERT OR REPLACE INTO room_master_table (id,identity_hash) VALUES(42, '028c189be828501449b61b32ab47a36f')"
- ]
- }
- }
|