{ "formatVersion": 1, "database": { "version": 5, "identityHash": "505f56466a63a89d23b485fb0c8e88f6", "entities": [ { "tableName": "signal_devices", "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`deviceId` TEXT NOT NULL, `phoneNumber` TEXT NOT NULL, `pushName` TEXT NOT NULL, `platform` TEXT NOT NULL, `lastSeen` INTEGER NOT NULL, `jid` TEXT NOT NULL, `timezone` TEXT NOT NULL, `loggedInAt` INTEGER NOT NULL, PRIMARY KEY(`deviceId`))", "fields": [ { "fieldPath": "deviceId", "columnName": "deviceId", "affinity": "TEXT", "notNull": true }, { "fieldPath": "phoneNumber", "columnName": "phoneNumber", "affinity": "TEXT", "notNull": true }, { "fieldPath": "pushName", "columnName": "pushName", "affinity": "TEXT", "notNull": true }, { "fieldPath": "platform", "columnName": "platform", "affinity": "TEXT", "notNull": true }, { "fieldPath": "lastSeen", "columnName": "lastSeen", "affinity": "INTEGER", "notNull": true }, { "fieldPath": "jid", "columnName": "jid", "affinity": "TEXT", "notNull": true }, { "fieldPath": "timezone", "columnName": "timezone", "affinity": "TEXT", "notNull": true }, { "fieldPath": "loggedInAt", "columnName": "loggedInAt", "affinity": "INTEGER", "notNull": true } ], "primaryKey": { "autoGenerate": false, "columnNames": [ "deviceId" ] } }, { "tableName": "signal_sessions", "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`jid` TEXT NOT NULL, `sessionData` BLOB NOT NULL, `timestamp` INTEGER NOT NULL, `isPreKey` INTEGER NOT NULL, PRIMARY KEY(`jid`))", "fields": [ { "fieldPath": "jid", "columnName": "jid", "affinity": "TEXT", "notNull": true }, { "fieldPath": "sessionData", "columnName": "sessionData", "affinity": "BLOB", "notNull": true }, { "fieldPath": "timestamp", "columnName": "timestamp", "affinity": "INTEGER", "notNull": true }, { "fieldPath": "isPreKey", "columnName": "isPreKey", "affinity": "INTEGER", "notNull": true } ], "primaryKey": { "autoGenerate": false, "columnNames": [ "jid" ] } }, { "tableName": "signal_conversation", "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`chatId` TEXT NOT NULL, `isGroup` INTEGER NOT NULL, `name` TEXT, `participants` TEXT NOT NULL, `unreadCount` INTEGER NOT NULL, `lastMessageTimestamp` INTEGER NOT NULL, `archived` INTEGER NOT NULL, `pinned` INTEGER NOT NULL, `groupMasterKey` BLOB, `groupRevision` INTEGER NOT NULL DEFAULT 0, PRIMARY KEY(`chatId`))", "fields": [ { "fieldPath": "chatId", "columnName": "chatId", "affinity": "TEXT", "notNull": true }, { "fieldPath": "isGroup", "columnName": "isGroup", "affinity": "INTEGER", "notNull": true }, { "fieldPath": "name", "columnName": "name", "affinity": "TEXT" }, { "fieldPath": "participants", "columnName": "participants", "affinity": "TEXT", "notNull": true }, { "fieldPath": "unreadCount", "columnName": "unreadCount", "affinity": "INTEGER", "notNull": true }, { "fieldPath": "lastMessageTimestamp", "columnName": "lastMessageTimestamp", "affinity": "INTEGER", "notNull": true }, { "fieldPath": "archived", "columnName": "archived", "affinity": "INTEGER", "notNull": true }, { "fieldPath": "pinned", "columnName": "pinned", "affinity": "INTEGER", "notNull": true }, { "fieldPath": "groupMasterKey", "columnName": "groupMasterKey", "affinity": "BLOB" }, { "fieldPath": "groupRevision", "columnName": "groupRevision", "affinity": "INTEGER", "notNull": true, "defaultValue": "0" } ], "primaryKey": { "autoGenerate": false, "columnNames": [ "chatId" ] } }, { "tableName": "signal_cached_message", "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`messageId` TEXT NOT NULL, `conversationId` TEXT NOT NULL, `body` TEXT NOT NULL, `timestamp` INTEGER NOT NULL, `outgoing` INTEGER NOT NULL, `senderId` TEXT NOT NULL, `isEdited` INTEGER NOT NULL, `isRevoked` INTEGER NOT NULL, `mediaUrl` TEXT, `mediaMime` TEXT, `serviceData` TEXT, `status` INTEGER NOT NULL, PRIMARY KEY(`messageId`))", "fields": [ { "fieldPath": "messageId", "columnName": "messageId", "affinity": "TEXT", "notNull": true }, { "fieldPath": "conversationId", "columnName": "conversationId", "affinity": "TEXT", "notNull": true }, { "fieldPath": "body", "columnName": "body", "affinity": "TEXT", "notNull": true }, { "fieldPath": "timestamp", "columnName": "timestamp", "affinity": "INTEGER", "notNull": true }, { "fieldPath": "outgoing", "columnName": "outgoing", "affinity": "INTEGER", "notNull": true }, { "fieldPath": "senderId", "columnName": "senderId", "affinity": "TEXT", "notNull": true }, { "fieldPath": "isEdited", "columnName": "isEdited", "affinity": "INTEGER", "notNull": true }, { "fieldPath": "isRevoked", "columnName": "isRevoked", "affinity": "INTEGER", "notNull": true }, { "fieldPath": "mediaUrl", "columnName": "mediaUrl", "affinity": "TEXT" }, { "fieldPath": "mediaMime", "columnName": "mediaMime", "affinity": "TEXT" }, { "fieldPath": "serviceData", "columnName": "serviceData", "affinity": "TEXT" }, { "fieldPath": "status", "columnName": "status", "affinity": "INTEGER", "notNull": true } ], "primaryKey": { "autoGenerate": false, "columnNames": [ "messageId" ] } }, { "tableName": "signal_cached_reaction", "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`messageId` TEXT NOT NULL, `emoji` TEXT NOT NULL, `senderId` TEXT NOT NULL, `timestamp` INTEGER NOT NULL, PRIMARY KEY(`messageId`, `senderId`))", "fields": [ { "fieldPath": "messageId", "columnName": "messageId", "affinity": "TEXT", "notNull": true }, { "fieldPath": "emoji", "columnName": "emoji", "affinity": "TEXT", "notNull": true }, { "fieldPath": "senderId", "columnName": "senderId", "affinity": "TEXT", "notNull": true }, { "fieldPath": "timestamp", "columnName": "timestamp", "affinity": "INTEGER", "notNull": true } ], "primaryKey": { "autoGenerate": false, "columnNames": [ "messageId", "senderId" ] } }, { "tableName": "signal_contact", "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`aci` TEXT NOT NULL, `phoneE164` TEXT NOT NULL, `displayName` TEXT NOT NULL, `onSignal` INTEGER NOT NULL, `updatedAt` INTEGER NOT NULL, `pni` TEXT NOT NULL DEFAULT '', PRIMARY KEY(`aci`))", "fields": [ { "fieldPath": "aci", "columnName": "aci", "affinity": "TEXT", "notNull": true }, { "fieldPath": "phoneE164", "columnName": "phoneE164", "affinity": "TEXT", "notNull": true }, { "fieldPath": "displayName", "columnName": "displayName", "affinity": "TEXT", "notNull": true }, { "fieldPath": "onSignal", "columnName": "onSignal", "affinity": "INTEGER", "notNull": true }, { "fieldPath": "updatedAt", "columnName": "updatedAt", "affinity": "INTEGER", "notNull": true }, { "fieldPath": "pni", "columnName": "pni", "affinity": "TEXT", "notNull": true, "defaultValue": "''" } ], "primaryKey": { "autoGenerate": false, "columnNames": [ "aci" ] } }, { "tableName": "signal_e2e_sessions", "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`address` TEXT NOT NULL, `deviceId` INTEGER NOT NULL, `record` BLOB NOT NULL, PRIMARY KEY(`address`, `deviceId`))", "fields": [ { "fieldPath": "address", "columnName": "address", "affinity": "TEXT", "notNull": true }, { "fieldPath": "deviceId", "columnName": "deviceId", "affinity": "INTEGER", "notNull": true }, { "fieldPath": "record", "columnName": "record", "affinity": "BLOB", "notNull": true } ], "primaryKey": { "autoGenerate": false, "columnNames": [ "address", "deviceId" ] } }, { "tableName": "signal_e2e_identities", "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`address` TEXT NOT NULL, `identityKey` BLOB NOT NULL, PRIMARY KEY(`address`))", "fields": [ { "fieldPath": "address", "columnName": "address", "affinity": "TEXT", "notNull": true }, { "fieldPath": "identityKey", "columnName": "identityKey", "affinity": "BLOB", "notNull": true } ], "primaryKey": { "autoGenerate": false, "columnNames": [ "address" ] } }, { "tableName": "signal_e2e_pre_keys", "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER NOT NULL, `record` BLOB NOT NULL, `uploaded` INTEGER NOT NULL, PRIMARY KEY(`id`))", "fields": [ { "fieldPath": "id", "columnName": "id", "affinity": "INTEGER", "notNull": true }, { "fieldPath": "record", "columnName": "record", "affinity": "BLOB", "notNull": true }, { "fieldPath": "uploaded", "columnName": "uploaded", "affinity": "INTEGER", "notNull": true } ], "primaryKey": { "autoGenerate": false, "columnNames": [ "id" ] } }, { "tableName": "signal_e2e_signed_pre_keys", "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER NOT NULL, `record` BLOB NOT NULL, PRIMARY KEY(`id`))", "fields": [ { "fieldPath": "id", "columnName": "id", "affinity": "INTEGER", "notNull": true }, { "fieldPath": "record", "columnName": "record", "affinity": "BLOB", "notNull": true } ], "primaryKey": { "autoGenerate": false, "columnNames": [ "id" ] } }, { "tableName": "signal_e2e_kyber_pre_keys", "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER NOT NULL, `record` BLOB NOT NULL, `lastResort` INTEGER NOT NULL, `uploaded` INTEGER NOT NULL, PRIMARY KEY(`id`))", "fields": [ { "fieldPath": "id", "columnName": "id", "affinity": "INTEGER", "notNull": true }, { "fieldPath": "record", "columnName": "record", "affinity": "BLOB", "notNull": true }, { "fieldPath": "lastResort", "columnName": "lastResort", "affinity": "INTEGER", "notNull": true }, { "fieldPath": "uploaded", "columnName": "uploaded", "affinity": "INTEGER", "notNull": true } ], "primaryKey": { "autoGenerate": false, "columnNames": [ "id" ] } }, { "tableName": "signal_e2e_kyber_used_base_keys", "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`kyberPreKeyId` INTEGER NOT NULL, `signedPreKeyId` INTEGER NOT NULL, `baseKeyB64` TEXT NOT NULL, PRIMARY KEY(`kyberPreKeyId`, `signedPreKeyId`, `baseKeyB64`))", "fields": [ { "fieldPath": "kyberPreKeyId", "columnName": "kyberPreKeyId", "affinity": "INTEGER", "notNull": true }, { "fieldPath": "signedPreKeyId", "columnName": "signedPreKeyId", "affinity": "INTEGER", "notNull": true }, { "fieldPath": "baseKeyB64", "columnName": "baseKeyB64", "affinity": "TEXT", "notNull": true } ], "primaryKey": { "autoGenerate": false, "columnNames": [ "kyberPreKeyId", "signedPreKeyId", "baseKeyB64" ] } }, { "tableName": "signal_e2e_sender_keys", "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`address` TEXT NOT NULL, `deviceId` INTEGER NOT NULL, `distributionId` TEXT NOT NULL, `record` BLOB NOT NULL, PRIMARY KEY(`address`, `deviceId`, `distributionId`))", "fields": [ { "fieldPath": "address", "columnName": "address", "affinity": "TEXT", "notNull": true }, { "fieldPath": "deviceId", "columnName": "deviceId", "affinity": "INTEGER", "notNull": true }, { "fieldPath": "distributionId", "columnName": "distributionId", "affinity": "TEXT", "notNull": true }, { "fieldPath": "record", "columnName": "record", "affinity": "BLOB", "notNull": true } ], "primaryKey": { "autoGenerate": false, "columnNames": [ "address", "deviceId", "distributionId" ] } }, { "tableName": "signal_sender_certificate", "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER NOT NULL, `record` BLOB NOT NULL, `expiration` INTEGER NOT NULL, `includesE164` INTEGER NOT NULL, PRIMARY KEY(`id`))", "fields": [ { "fieldPath": "id", "columnName": "id", "affinity": "INTEGER", "notNull": true }, { "fieldPath": "record", "columnName": "record", "affinity": "BLOB", "notNull": true }, { "fieldPath": "expiration", "columnName": "expiration", "affinity": "INTEGER", "notNull": true }, { "fieldPath": "includesE164", "columnName": "includesE164", "affinity": "INTEGER", "notNull": true } ], "primaryKey": { "autoGenerate": false, "columnNames": [ "id" ] } }, { "tableName": "signal_profile_keys", "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`address` TEXT NOT NULL, `profileKey` BLOB NOT NULL, PRIMARY KEY(`address`))", "fields": [ { "fieldPath": "address", "columnName": "address", "affinity": "TEXT", "notNull": true }, { "fieldPath": "profileKey", "columnName": "profileKey", "affinity": "BLOB", "notNull": true } ], "primaryKey": { "autoGenerate": false, "columnNames": [ "address" ] } }, { "tableName": "signal_call_log", "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`callId` TEXT NOT NULL, `peerId` TEXT NOT NULL, `peerName` TEXT NOT NULL, `outgoing` INTEGER NOT NULL, `video` INTEGER NOT NULL, `startTime` INTEGER NOT NULL, `durationSeconds` INTEGER NOT NULL, `outcome` TEXT NOT NULL, PRIMARY KEY(`callId`))", "fields": [ { "fieldPath": "callId", "columnName": "callId", "affinity": "TEXT", "notNull": true }, { "fieldPath": "peerId", "columnName": "peerId", "affinity": "TEXT", "notNull": true }, { "fieldPath": "peerName", "columnName": "peerName", "affinity": "TEXT", "notNull": true }, { "fieldPath": "outgoing", "columnName": "outgoing", "affinity": "INTEGER", "notNull": true }, { "fieldPath": "video", "columnName": "video", "affinity": "INTEGER", "notNull": true }, { "fieldPath": "startTime", "columnName": "startTime", "affinity": "INTEGER", "notNull": true }, { "fieldPath": "durationSeconds", "columnName": "durationSeconds", "affinity": "INTEGER", "notNull": true }, { "fieldPath": "outcome", "columnName": "outcome", "affinity": "TEXT", "notNull": true } ], "primaryKey": { "autoGenerate": false, "columnNames": [ "callId" ] } } ], "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, '505f56466a63a89d23b485fb0c8e88f6')" ] } }