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

111 lines
3.2 KiB
JSON

{
"formatVersion": 1,
"database": {
"version": 2,
"identityHash": "0fbda8d3e93ee04727f5dca729685d72",
"entities": [
{
"tableName": "draft",
"createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`_id` TEXT NOT NULL, `content` TEXT NOT NULL, `media` TEXT NOT NULL, `createdAt` INTEGER NOT NULL, `composeType` TEXT NOT NULL, `statusKey` TEXT, `excludedReplyUserIds` TEXT, PRIMARY KEY(`_id`))",
"fields": [
{
"fieldPath": "_id",
"columnName": "_id",
"affinity": "TEXT",
"notNull": true
},
{
"fieldPath": "content",
"columnName": "content",
"affinity": "TEXT",
"notNull": true
},
{
"fieldPath": "media",
"columnName": "media",
"affinity": "TEXT",
"notNull": true
},
{
"fieldPath": "createdAt",
"columnName": "createdAt",
"affinity": "INTEGER",
"notNull": true
},
{
"fieldPath": "composeType",
"columnName": "composeType",
"affinity": "TEXT",
"notNull": true
},
{
"fieldPath": "statusKey",
"columnName": "statusKey",
"affinity": "TEXT",
"notNull": false
},
{
"fieldPath": "excludedReplyUserIds",
"columnName": "excludedReplyUserIds",
"affinity": "TEXT",
"notNull": false
}
],
"primaryKey": {
"columnNames": [
"_id"
],
"autoGenerate": false
},
"indices": [],
"foreignKeys": []
},
{
"tableName": "search",
"createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`_id` TEXT NOT NULL, `content` TEXT NOT NULL, `lastActive` INTEGER NOT NULL, PRIMARY KEY(`_id`))",
"fields": [
{
"fieldPath": "_id",
"columnName": "_id",
"affinity": "TEXT",
"notNull": true
},
{
"fieldPath": "content",
"columnName": "content",
"affinity": "TEXT",
"notNull": true
},
{
"fieldPath": "lastActive",
"columnName": "lastActive",
"affinity": "INTEGER",
"notNull": true
}
],
"primaryKey": {
"columnNames": [
"_id"
],
"autoGenerate": false
},
"indices": [
{
"name": "index_search_content",
"unique": true,
"columnNames": [
"content"
],
"createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_search_content` ON `${TABLE_NAME}` (`content`)"
}
],
"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, '0fbda8d3e93ee04727f5dca729685d72')"
]
}
}