{ "formatVersion": 1, "database": { "version": 5, "identityHash": "f18779167ff0e30f8ecf68b4d2a320b3", "entities": [ { "tableName": "Message", "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, `conversationId` INTEGER NOT NULL, `role` TEXT NOT NULL, `textContent` TEXT NOT NULL, `displayContent` TEXT, `images` TEXT NOT NULL, `toolCallId` TEXT, `toolCalls` TEXT NOT NULL, `timestamp` INTEGER NOT NULL, FOREIGN KEY(`conversationId`) REFERENCES `Conversation`(`id`) ON UPDATE NO ACTION ON DELETE CASCADE )", "fields": [ { "fieldPath": "id", "columnName": "id", "affinity": "INTEGER", "notNull": true }, { "fieldPath": "conversationId", "columnName": "conversationId", "affinity": "INTEGER", "notNull": true }, { "fieldPath": "role", "columnName": "role", "affinity": "TEXT", "notNull": true }, { "fieldPath": "textContent", "columnName": "textContent", "affinity": "TEXT", "notNull": true }, { "fieldPath": "displayContent", "columnName": "displayContent", "affinity": "TEXT" }, { "fieldPath": "images", "columnName": "images", "affinity": "TEXT", "notNull": true }, { "fieldPath": "toolCallId", "columnName": "toolCallId", "affinity": "TEXT" }, { "fieldPath": "toolCalls", "columnName": "toolCalls", "affinity": "TEXT", "notNull": true }, { "fieldPath": "timestamp", "columnName": "timestamp", "affinity": "INTEGER", "notNull": true } ], "primaryKey": { "autoGenerate": true, "columnNames": [ "id" ] }, "indices": [ { "name": "index_Message_conversationId", "unique": false, "columnNames": [ "conversationId" ], "orders": [], "createSql": "CREATE INDEX IF NOT EXISTS `index_Message_conversationId` ON `${TABLE_NAME}` (`conversationId`)" } ], "foreignKeys": [ { "table": "Conversation", "onDelete": "CASCADE", "onUpdate": "NO ACTION", "columns": [ "conversationId" ], "referencedColumns": [ "id" ] } ] }, { "tableName": "Conversation", "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, `title` TEXT NOT NULL, `createdAt` INTEGER NOT NULL)", "fields": [ { "fieldPath": "id", "columnName": "id", "affinity": "INTEGER", "notNull": true }, { "fieldPath": "title", "columnName": "title", "affinity": "TEXT", "notNull": true }, { "fieldPath": "createdAt", "columnName": "createdAt", "affinity": "INTEGER", "notNull": true } ], "primaryKey": { "autoGenerate": true, "columnNames": [ "id" ] } } ], "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, 'f18779167ff0e30f8ecf68b4d2a320b3')" ] } }