Files
coco 723ce1af5c a
2026-07-03 15:12:48 +08:00

859 lines
25 KiB
JSON

{
"formatVersion": 1,
"database": {
"version": 14,
"identityHash": "4bf78b15be492955a8fae9d75e03997d",
"entities": [
{
"ftsVersion": "FTS4",
"ftsOptions": {
"tokenizer": "simple",
"tokenizerArgs": [],
"contentTable": "",
"languageIdColumnName": "",
"matchInfo": "FTS4",
"notIndexedColumns": [],
"prefixSizes": [],
"preferredOrder": "ASC"
},
"contentSyncTriggers": [],
"tableName": "chinese_knowledge",
"createSql": "CREATE VIRTUAL TABLE IF NOT EXISTS `${TABLE_NAME}` USING FTS4(`content` TEXT NOT NULL, `label` TEXT NOT NULL, `url` TEXT)",
"fields": [
{
"fieldPath": "content",
"columnName": "content",
"affinity": "TEXT",
"notNull": true
},
{
"fieldPath": "label",
"columnName": "label",
"affinity": "TEXT",
"notNull": true
},
{
"fieldPath": "url",
"columnName": "url",
"affinity": "TEXT",
"notNull": false
}
],
"primaryKey": {
"autoGenerate": true,
"columnNames": [
"rowid"
]
},
"indices": [],
"foreignKeys": []
},
{
"tableName": "chinese_wisecrack_collections",
"createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER NOT NULL, `collected_at` INTEGER NOT NULL, PRIMARY KEY(`id`))",
"fields": [
{
"fieldPath": "id",
"columnName": "id",
"affinity": "INTEGER",
"notNull": true
},
{
"fieldPath": "collectedAt",
"columnName": "collected_at",
"affinity": "INTEGER",
"notNull": true
}
],
"primaryKey": {
"autoGenerate": false,
"columnNames": [
"id"
]
},
"indices": [
{
"name": "index_chinese_wisecrack_collections_collected_at",
"unique": false,
"columnNames": [
"collected_at"
],
"orders": [],
"createSql": "CREATE INDEX IF NOT EXISTS `index_chinese_wisecrack_collections_collected_at` ON `${TABLE_NAME}` (`collected_at`)"
}
],
"foreignKeys": []
},
{
"tableName": "chinese_wisecracks",
"createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER NOT NULL, `riddle` TEXT NOT NULL, `answer` TEXT NOT NULL, `first_word` TEXT NOT NULL, `first_letter` TEXT NOT NULL, PRIMARY KEY(`id`))",
"fields": [
{
"fieldPath": "id",
"columnName": "id",
"affinity": "INTEGER",
"notNull": true
},
{
"fieldPath": "riddle",
"columnName": "riddle",
"affinity": "TEXT",
"notNull": true
},
{
"fieldPath": "answer",
"columnName": "answer",
"affinity": "TEXT",
"notNull": true
},
{
"fieldPath": "firstWord",
"columnName": "first_word",
"affinity": "TEXT",
"notNull": true
},
{
"fieldPath": "firstLetter",
"columnName": "first_letter",
"affinity": "TEXT",
"notNull": true
}
],
"primaryKey": {
"autoGenerate": false,
"columnNames": [
"id"
]
},
"indices": [],
"foreignKeys": []
},
{
"tableName": "classic_poem_collections",
"createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER NOT NULL, `collected_at` INTEGER NOT NULL, PRIMARY KEY(`id`))",
"fields": [
{
"fieldPath": "id",
"columnName": "id",
"affinity": "INTEGER",
"notNull": true
},
{
"fieldPath": "collectedAt",
"columnName": "collected_at",
"affinity": "INTEGER",
"notNull": true
}
],
"primaryKey": {
"autoGenerate": false,
"columnNames": [
"id"
]
},
"indices": [],
"foreignKeys": []
},
{
"tableName": "classic_poems",
"createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER NOT NULL, `dynasty` TEXT NOT NULL, `writer` TEXT NOT NULL, `writer_introduction` TEXT, `title` TEXT NOT NULL, `subtitle` TEXT, `preface` TEXT, `content` TEXT NOT NULL, `annotation` TEXT, `translation` TEXT, `creative_background` TEXT, `explain` TEXT, `comment` TEXT, `collection` TEXT NOT NULL, `category` TEXT, PRIMARY KEY(`id`))",
"fields": [
{
"fieldPath": "id",
"columnName": "id",
"affinity": "INTEGER",
"notNull": true
},
{
"fieldPath": "dynasty",
"columnName": "dynasty",
"affinity": "TEXT",
"notNull": true
},
{
"fieldPath": "writer",
"columnName": "writer",
"affinity": "TEXT",
"notNull": true
},
{
"fieldPath": "writerIntroduction",
"columnName": "writer_introduction",
"affinity": "TEXT",
"notNull": false
},
{
"fieldPath": "title",
"columnName": "title",
"affinity": "TEXT",
"notNull": true
},
{
"fieldPath": "subtitle",
"columnName": "subtitle",
"affinity": "TEXT",
"notNull": false
},
{
"fieldPath": "preface",
"columnName": "preface",
"affinity": "TEXT",
"notNull": false
},
{
"fieldPath": "content",
"columnName": "content",
"affinity": "TEXT",
"notNull": true
},
{
"fieldPath": "annotation",
"columnName": "annotation",
"affinity": "TEXT",
"notNull": false
},
{
"fieldPath": "translation",
"columnName": "translation",
"affinity": "TEXT",
"notNull": false
},
{
"fieldPath": "creativeBackground",
"columnName": "creative_background",
"affinity": "TEXT",
"notNull": false
},
{
"fieldPath": "explain",
"columnName": "explain",
"affinity": "TEXT",
"notNull": false
},
{
"fieldPath": "comment",
"columnName": "comment",
"affinity": "TEXT",
"notNull": false
},
{
"fieldPath": "collection",
"columnName": "collection",
"affinity": "TEXT",
"notNull": true
},
{
"fieldPath": "category",
"columnName": "category",
"affinity": "TEXT",
"notNull": false
}
],
"primaryKey": {
"autoGenerate": false,
"columnNames": [
"id"
]
},
"indices": [],
"foreignKeys": []
},
{
"ftsVersion": "FTS4",
"ftsOptions": {
"tokenizer": "icu",
"tokenizerArgs": [],
"contentTable": "classic_poems",
"languageIdColumnName": "",
"matchInfo": "FTS4",
"notIndexedColumns": [],
"prefixSizes": [],
"preferredOrder": "ASC"
},
"contentSyncTriggers": [
"CREATE TRIGGER IF NOT EXISTS room_fts_content_sync_classic_poems_fts_BEFORE_UPDATE BEFORE UPDATE ON `classic_poems` BEGIN DELETE FROM `classic_poems_fts` WHERE `docid`=OLD.`rowid`; END",
"CREATE TRIGGER IF NOT EXISTS room_fts_content_sync_classic_poems_fts_BEFORE_DELETE BEFORE DELETE ON `classic_poems` BEGIN DELETE FROM `classic_poems_fts` WHERE `docid`=OLD.`rowid`; END",
"CREATE TRIGGER IF NOT EXISTS room_fts_content_sync_classic_poems_fts_AFTER_UPDATE AFTER UPDATE ON `classic_poems` BEGIN INSERT INTO `classic_poems_fts`(`docid`, `writer`, `title`, `content`) VALUES (NEW.`rowid`, NEW.`writer`, NEW.`title`, NEW.`content`); END",
"CREATE TRIGGER IF NOT EXISTS room_fts_content_sync_classic_poems_fts_AFTER_INSERT AFTER INSERT ON `classic_poems` BEGIN INSERT INTO `classic_poems_fts`(`docid`, `writer`, `title`, `content`) VALUES (NEW.`rowid`, NEW.`writer`, NEW.`title`, NEW.`content`); END"
],
"tableName": "classic_poems_fts",
"createSql": "CREATE VIRTUAL TABLE IF NOT EXISTS `${TABLE_NAME}` USING FTS4(`writer` TEXT NOT NULL, `title` TEXT NOT NULL, `content` TEXT NOT NULL, tokenize=icu, content=`classic_poems`)",
"fields": [
{
"fieldPath": "writer",
"columnName": "writer",
"affinity": "TEXT",
"notNull": true
},
{
"fieldPath": "title",
"columnName": "title",
"affinity": "TEXT",
"notNull": true
},
{
"fieldPath": "content",
"columnName": "content",
"affinity": "TEXT",
"notNull": true
}
],
"primaryKey": {
"autoGenerate": true,
"columnNames": [
"rowid"
]
},
"indices": [],
"foreignKeys": []
},
{
"tableName": "dictionary",
"createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER NOT NULL, `char` TEXT NOT NULL, `wubi` TEXT, `radical` TEXT, `stroke` INTEGER NOT NULL, `pinyin` TEXT, `simple_explanation` TEXT, `explanation` TEXT, `loanword` INTEGER NOT NULL, PRIMARY KEY(`id`))",
"fields": [
{
"fieldPath": "id",
"columnName": "id",
"affinity": "INTEGER",
"notNull": true
},
{
"fieldPath": "char",
"columnName": "char",
"affinity": "TEXT",
"notNull": true
},
{
"fieldPath": "wubi",
"columnName": "wubi",
"affinity": "TEXT",
"notNull": false
},
{
"fieldPath": "radical",
"columnName": "radical",
"affinity": "TEXT",
"notNull": false
},
{
"fieldPath": "stroke",
"columnName": "stroke",
"affinity": "INTEGER",
"notNull": true
},
{
"fieldPath": "pinyin",
"columnName": "pinyin",
"affinity": "TEXT",
"notNull": false
},
{
"fieldPath": "simpleExplanation",
"columnName": "simple_explanation",
"affinity": "TEXT",
"notNull": false
},
{
"fieldPath": "explanation",
"columnName": "explanation",
"affinity": "TEXT",
"notNull": false
},
{
"fieldPath": "loanword",
"columnName": "loanword",
"affinity": "INTEGER",
"notNull": true
}
],
"primaryKey": {
"autoGenerate": false,
"columnNames": [
"id"
]
},
"indices": [],
"foreignKeys": []
},
{
"tableName": "dictionary_pinyin",
"createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER PRIMARY KEY AUTOINCREMENT, `dictionary_id` INTEGER NOT NULL, `pinyin` TEXT NOT NULL)",
"fields": [
{
"fieldPath": "id",
"columnName": "id",
"affinity": "INTEGER",
"notNull": false
},
{
"fieldPath": "dictionaryId",
"columnName": "dictionary_id",
"affinity": "INTEGER",
"notNull": true
},
{
"fieldPath": "pinyin",
"columnName": "pinyin",
"affinity": "TEXT",
"notNull": true
}
],
"primaryKey": {
"autoGenerate": true,
"columnNames": [
"id"
]
},
"indices": [],
"foreignKeys": []
},
{
"tableName": "people",
"createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER NOT NULL, `name` TEXT NOT NULL, `birth_year` TEXT, `birth_day` TEXT, `death_year` TEXT, `death_day` TEXT, `dynasty` TEXT NOT NULL, `aliases` TEXT, `titles` TEXT, `hometown` TEXT, `details` TEXT, PRIMARY KEY(`id`))",
"fields": [
{
"fieldPath": "id",
"columnName": "id",
"affinity": "INTEGER",
"notNull": true
},
{
"fieldPath": "name",
"columnName": "name",
"affinity": "TEXT",
"notNull": true
},
{
"fieldPath": "birthYear",
"columnName": "birth_year",
"affinity": "TEXT",
"notNull": false
},
{
"fieldPath": "birthDay",
"columnName": "birth_day",
"affinity": "TEXT",
"notNull": false
},
{
"fieldPath": "deathYear",
"columnName": "death_year",
"affinity": "TEXT",
"notNull": false
},
{
"fieldPath": "deathDay",
"columnName": "death_day",
"affinity": "TEXT",
"notNull": false
},
{
"fieldPath": "dynasty",
"columnName": "dynasty",
"affinity": "TEXT",
"notNull": true
},
{
"fieldPath": "aliases",
"columnName": "aliases",
"affinity": "TEXT",
"notNull": false
},
{
"fieldPath": "titles",
"columnName": "titles",
"affinity": "TEXT",
"notNull": false
},
{
"fieldPath": "hometown",
"columnName": "hometown",
"affinity": "TEXT",
"notNull": false
},
{
"fieldPath": "details",
"columnName": "details",
"affinity": "TEXT",
"notNull": false
}
],
"primaryKey": {
"autoGenerate": false,
"columnNames": [
"id"
]
},
"indices": [],
"foreignKeys": []
},
{
"tableName": "poem_sentence_collections",
"createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER NOT NULL, `collected_at` INTEGER NOT NULL, PRIMARY KEY(`id`))",
"fields": [
{
"fieldPath": "id",
"columnName": "id",
"affinity": "INTEGER",
"notNull": true
},
{
"fieldPath": "collectedAt",
"columnName": "collected_at",
"affinity": "INTEGER",
"notNull": true
}
],
"primaryKey": {
"autoGenerate": false,
"columnNames": [
"id"
]
},
"indices": [
{
"name": "index_poem_sentence_collections_collected_at",
"unique": false,
"columnNames": [
"collected_at"
],
"orders": [],
"createSql": "CREATE INDEX IF NOT EXISTS `index_poem_sentence_collections_collected_at` ON `${TABLE_NAME}` (`collected_at`)"
}
],
"foreignKeys": []
},
{
"tableName": "poem_sentences",
"createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER NOT NULL, `content` TEXT NOT NULL, `from` TEXT NOT NULL, `poem_id` INTEGER, PRIMARY KEY(`id`))",
"fields": [
{
"fieldPath": "id",
"columnName": "id",
"affinity": "INTEGER",
"notNull": true
},
{
"fieldPath": "content",
"columnName": "content",
"affinity": "TEXT",
"notNull": true
},
{
"fieldPath": "from",
"columnName": "from",
"affinity": "TEXT",
"notNull": true
},
{
"fieldPath": "poemId",
"columnName": "poem_id",
"affinity": "INTEGER",
"notNull": false
}
],
"primaryKey": {
"autoGenerate": false,
"columnNames": [
"id"
]
},
"indices": [],
"foreignKeys": []
},
{
"tableName": "riddles",
"createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER NOT NULL, `puzzle` TEXT NOT NULL, `answer` TEXT NOT NULL, PRIMARY KEY(`id`))",
"fields": [
{
"fieldPath": "id",
"columnName": "id",
"affinity": "INTEGER",
"notNull": true
},
{
"fieldPath": "puzzle",
"columnName": "puzzle",
"affinity": "TEXT",
"notNull": true
},
{
"fieldPath": "answer",
"columnName": "answer",
"affinity": "TEXT",
"notNull": true
}
],
"primaryKey": {
"autoGenerate": false,
"columnNames": [
"id"
]
},
"indices": [],
"foreignKeys": []
},
{
"tableName": "tongue_twisters",
"createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER NOT NULL, `title` TEXT NOT NULL, `content` TEXT NOT NULL, `content2` TEXT, PRIMARY KEY(`id`))",
"fields": [
{
"fieldPath": "id",
"columnName": "id",
"affinity": "INTEGER",
"notNull": true
},
{
"fieldPath": "title",
"columnName": "title",
"affinity": "TEXT",
"notNull": true
},
{
"fieldPath": "content",
"columnName": "content",
"affinity": "TEXT",
"notNull": true
},
{
"fieldPath": "content2",
"columnName": "content2",
"affinity": "TEXT",
"notNull": false
}
],
"primaryKey": {
"autoGenerate": false,
"columnNames": [
"id"
]
},
"indices": [],
"foreignKeys": []
},
{
"tableName": "writing_collections",
"createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER NOT NULL, `collected_at` INTEGER NOT NULL, PRIMARY KEY(`id`))",
"fields": [
{
"fieldPath": "id",
"columnName": "id",
"affinity": "INTEGER",
"notNull": true
},
{
"fieldPath": "collectedAt",
"columnName": "collected_at",
"affinity": "INTEGER",
"notNull": true
}
],
"primaryKey": {
"autoGenerate": false,
"columnNames": [
"id"
]
},
"indices": [
{
"name": "index_writing_collections_collected_at",
"unique": false,
"columnNames": [
"collected_at"
],
"orders": [],
"createSql": "CREATE INDEX IF NOT EXISTS `index_writing_collections_collected_at` ON `${TABLE_NAME}` (`collected_at`)"
}
],
"foreignKeys": []
},
{
"ftsVersion": "FTS4",
"ftsOptions": {
"tokenizer": "simple",
"tokenizerArgs": [],
"contentTable": "",
"languageIdColumnName": "",
"matchInfo": "FTS4",
"notIndexedColumns": [],
"prefixSizes": [],
"preferredOrder": "ASC"
},
"contentSyncTriggers": [],
"tableName": "writings",
"createSql": "CREATE VIRTUAL TABLE IF NOT EXISTS `${TABLE_NAME}` USING FTS4(`group_index` INTEGER, `classes` TEXT, `froms` TEXT, `allusions` TEXT, `pictures` TEXT, `dynasty` TEXT NOT NULL, `author` TEXT NOT NULL, `author_id` INTEGER, `author_date` TEXT, `author_place` TEXT, `type` TEXT NOT NULL, `type_detail` TEXT NOT NULL, `rhyme` TEXT, `preface` TEXT, `clauses` TEXT NOT NULL, `note` TEXT, `comments` TEXT, `content` TEXT, `title_content` TEXT NOT NULL, `title_comments` TEXT, `title_breakAfter` INTEGER, `subtitle_content` TEXT, `subtitle_comments` TEXT, `subtitle_breakAfter` INTEGER, `tune_name` TEXT, `tune_id` INTEGER)",
"fields": [
{
"fieldPath": "groupIndex",
"columnName": "group_index",
"affinity": "INTEGER",
"notNull": false
},
{
"fieldPath": "classes",
"columnName": "classes",
"affinity": "TEXT",
"notNull": false
},
{
"fieldPath": "froms",
"columnName": "froms",
"affinity": "TEXT",
"notNull": false
},
{
"fieldPath": "allusions",
"columnName": "allusions",
"affinity": "TEXT",
"notNull": false
},
{
"fieldPath": "pictures",
"columnName": "pictures",
"affinity": "TEXT",
"notNull": false
},
{
"fieldPath": "dynasty",
"columnName": "dynasty",
"affinity": "TEXT",
"notNull": true
},
{
"fieldPath": "author",
"columnName": "author",
"affinity": "TEXT",
"notNull": true
},
{
"fieldPath": "authorId",
"columnName": "author_id",
"affinity": "INTEGER",
"notNull": false
},
{
"fieldPath": "authorDate",
"columnName": "author_date",
"affinity": "TEXT",
"notNull": false
},
{
"fieldPath": "authorPlace",
"columnName": "author_place",
"affinity": "TEXT",
"notNull": false
},
{
"fieldPath": "type",
"columnName": "type",
"affinity": "TEXT",
"notNull": true
},
{
"fieldPath": "typeDetail",
"columnName": "type_detail",
"affinity": "TEXT",
"notNull": true
},
{
"fieldPath": "rhyme",
"columnName": "rhyme",
"affinity": "TEXT",
"notNull": false
},
{
"fieldPath": "preface",
"columnName": "preface",
"affinity": "TEXT",
"notNull": false
},
{
"fieldPath": "clauses",
"columnName": "clauses",
"affinity": "TEXT",
"notNull": true
},
{
"fieldPath": "note",
"columnName": "note",
"affinity": "TEXT",
"notNull": false
},
{
"fieldPath": "comments",
"columnName": "comments",
"affinity": "TEXT",
"notNull": false
},
{
"fieldPath": "content",
"columnName": "content",
"affinity": "TEXT",
"notNull": false
},
{
"fieldPath": "title.content",
"columnName": "title_content",
"affinity": "TEXT",
"notNull": true
},
{
"fieldPath": "title.comments",
"columnName": "title_comments",
"affinity": "TEXT",
"notNull": false
},
{
"fieldPath": "title.breakAfter",
"columnName": "title_breakAfter",
"affinity": "INTEGER",
"notNull": false
},
{
"fieldPath": "subtitle.content",
"columnName": "subtitle_content",
"affinity": "TEXT",
"notNull": false
},
{
"fieldPath": "subtitle.comments",
"columnName": "subtitle_comments",
"affinity": "TEXT",
"notNull": false
},
{
"fieldPath": "subtitle.breakAfter",
"columnName": "subtitle_breakAfter",
"affinity": "INTEGER",
"notNull": false
},
{
"fieldPath": "tuneId.name",
"columnName": "tune_name",
"affinity": "TEXT",
"notNull": false
},
{
"fieldPath": "tuneId.id",
"columnName": "tune_id",
"affinity": "INTEGER",
"notNull": false
}
],
"primaryKey": {
"autoGenerate": true,
"columnNames": [
"rowid"
]
},
"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, '4bf78b15be492955a8fae9d75e03997d')"
]
}
}