{ "formatVersion": 1, "database": { "version": 1, "identityHash": "b40806fd03e11cc1094f31253e9432fb", "entities": [ { "tableName": "cached_sessions", "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`gatewayId` TEXT NOT NULL, `agentId` TEXT NOT NULL, `sessionKey` TEXT NOT NULL, `displayName` TEXT, `updatedAtMs` INTEGER, `rowOrder` INTEGER NOT NULL, PRIMARY KEY(`gatewayId`, `agentId`, `sessionKey`))", "fields": [ { "fieldPath": "gatewayId", "columnName": "gatewayId", "affinity": "TEXT", "notNull": true }, { "fieldPath": "agentId", "columnName": "agentId", "affinity": "TEXT", "notNull": true }, { "fieldPath": "sessionKey", "columnName": "sessionKey", "affinity": "TEXT", "notNull": true }, { "fieldPath": "displayName", "columnName": "displayName", "affinity": "TEXT" }, { "fieldPath": "updatedAtMs", "columnName": "updatedAtMs", "affinity": "INTEGER" }, { "fieldPath": "rowOrder", "columnName": "rowOrder", "affinity": "INTEGER", "notNull": true } ], "primaryKey": { "autoGenerate": false, "columnNames": [ "gatewayId", "agentId", "sessionKey" ] } }, { "tableName": "cached_messages", "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`gatewayId` TEXT NOT NULL, `agentId` TEXT NOT NULL, `sessionKey` TEXT NOT NULL, `rowOrder` INTEGER NOT NULL, `role` TEXT NOT NULL, `textPartsJson` TEXT NOT NULL, `timestampMs` INTEGER, `idempotencyKey` TEXT, PRIMARY KEY(`gatewayId`, `agentId`, `sessionKey`, `rowOrder`))", "fields": [ { "fieldPath": "gatewayId", "columnName": "gatewayId", "affinity": "TEXT", "notNull": true }, { "fieldPath": "agentId", "columnName": "agentId", "affinity": "TEXT", "notNull": true }, { "fieldPath": "sessionKey", "columnName": "sessionKey", "affinity": "TEXT", "notNull": true }, { "fieldPath": "rowOrder", "columnName": "rowOrder", "affinity": "INTEGER", "notNull": true }, { "fieldPath": "role", "columnName": "role", "affinity": "TEXT", "notNull": true }, { "fieldPath": "textPartsJson", "columnName": "textPartsJson", "affinity": "TEXT", "notNull": true }, { "fieldPath": "timestampMs", "columnName": "timestampMs", "affinity": "INTEGER" }, { "fieldPath": "idempotencyKey", "columnName": "idempotencyKey", "affinity": "TEXT" } ], "primaryKey": { "autoGenerate": false, "columnNames": [ "gatewayId", "agentId", "sessionKey", "rowOrder" ] } }, { "tableName": "cached_gateway_owners", "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`gatewayId` TEXT NOT NULL, `agentId` TEXT NOT NULL, PRIMARY KEY(`gatewayId`))", "fields": [ { "fieldPath": "gatewayId", "columnName": "gatewayId", "affinity": "TEXT", "notNull": true }, { "fieldPath": "agentId", "columnName": "agentId", "affinity": "TEXT", "notNull": true } ], "primaryKey": { "autoGenerate": false, "columnNames": [ "gatewayId" ] } } ], "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, 'b40806fd03e11cc1094f31253e9432fb')" ] } }