{ "formatVersion": 1, "database": { "version": 5, "identityHash": "2c41f8d9d0410459fcc084da3980fc07", "entities": [ { "tableName": "whatsapp_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, `phoneLastSeen` INTEGER NOT NULL, `phoneLastPinged` INTEGER NOT NULL, `businessName` TEXT 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 }, { "fieldPath": "phoneLastSeen", "columnName": "phoneLastSeen", "affinity": "INTEGER", "notNull": true }, { "fieldPath": "phoneLastPinged", "columnName": "phoneLastPinged", "affinity": "INTEGER", "notNull": true }, { "fieldPath": "businessName", "columnName": "businessName", "affinity": "TEXT", "notNull": true } ], "primaryKey": { "autoGenerate": false, "columnNames": [ "deviceId" ] } }, { "tableName": "whatsapp_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": "whatsapp_history_sync_conversation", "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`chatJid` TEXT NOT NULL, `userLoginId` TEXT NOT NULL, `lastMessageTimestamp` INTEGER NOT NULL, `archived` INTEGER NOT NULL, `pinned` INTEGER NOT NULL, `muteEndTime` INTEGER NOT NULL, `endOfHistoryTransferType` INTEGER NOT NULL, `ephemeralExpiration` INTEGER NOT NULL, `ephemeralSettingTimestamp` INTEGER NOT NULL, `markedAsUnread` INTEGER NOT NULL, `unreadCount` INTEGER NOT NULL, `isGroup` INTEGER NOT NULL, `name` TEXT, `participants` TEXT NOT NULL, PRIMARY KEY(`chatJid`))", "fields": [ { "fieldPath": "chatJid", "columnName": "chatJid", "affinity": "TEXT", "notNull": true }, { "fieldPath": "userLoginId", "columnName": "userLoginId", "affinity": "TEXT", "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": "muteEndTime", "columnName": "muteEndTime", "affinity": "INTEGER", "notNull": true }, { "fieldPath": "endOfHistoryTransferType", "columnName": "endOfHistoryTransferType", "affinity": "INTEGER", "notNull": true }, { "fieldPath": "ephemeralExpiration", "columnName": "ephemeralExpiration", "affinity": "INTEGER", "notNull": true }, { "fieldPath": "ephemeralSettingTimestamp", "columnName": "ephemeralSettingTimestamp", "affinity": "INTEGER", "notNull": true }, { "fieldPath": "markedAsUnread", "columnName": "markedAsUnread", "affinity": "INTEGER", "notNull": true }, { "fieldPath": "unreadCount", "columnName": "unreadCount", "affinity": "INTEGER", "notNull": true }, { "fieldPath": "isGroup", "columnName": "isGroup", "affinity": "INTEGER", "notNull": true }, { "fieldPath": "name", "columnName": "name", "affinity": "TEXT" }, { "fieldPath": "participants", "columnName": "participants", "affinity": "TEXT", "notNull": true } ], "primaryKey": { "autoGenerate": false, "columnNames": [ "chatJid" ] } }, { "tableName": "whatsapp_media_backfill_request", "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`messageId` TEXT NOT NULL, `userLoginId` TEXT NOT NULL, `portalId` TEXT NOT NULL, `portalReceiver` TEXT NOT NULL, `mediaKey` BLOB NOT NULL, `status` INTEGER NOT NULL, `error` TEXT NOT NULL, PRIMARY KEY(`messageId`))", "fields": [ { "fieldPath": "messageId", "columnName": "messageId", "affinity": "TEXT", "notNull": true }, { "fieldPath": "userLoginId", "columnName": "userLoginId", "affinity": "TEXT", "notNull": true }, { "fieldPath": "portalId", "columnName": "portalId", "affinity": "TEXT", "notNull": true }, { "fieldPath": "portalReceiver", "columnName": "portalReceiver", "affinity": "TEXT", "notNull": true }, { "fieldPath": "mediaKey", "columnName": "mediaKey", "affinity": "BLOB", "notNull": true }, { "fieldPath": "status", "columnName": "status", "affinity": "INTEGER", "notNull": true }, { "fieldPath": "error", "columnName": "error", "affinity": "TEXT", "notNull": true } ], "primaryKey": { "autoGenerate": false, "columnNames": [ "messageId" ] } }, { "tableName": "whatsapp_avatar_cache", "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`entityJid` TEXT NOT NULL, `avatarId` TEXT NOT NULL, `directPath` TEXT NOT NULL, `expiry` INTEGER NOT NULL, `gone` INTEGER NOT NULL, PRIMARY KEY(`entityJid`, `avatarId`))", "fields": [ { "fieldPath": "entityJid", "columnName": "entityJid", "affinity": "TEXT", "notNull": true }, { "fieldPath": "avatarId", "columnName": "avatarId", "affinity": "TEXT", "notNull": true }, { "fieldPath": "directPath", "columnName": "directPath", "affinity": "TEXT", "notNull": true }, { "fieldPath": "expiry", "columnName": "expiry", "affinity": "INTEGER", "notNull": true }, { "fieldPath": "gone", "columnName": "gone", "affinity": "INTEGER", "notNull": true } ], "primaryKey": { "autoGenerate": false, "columnNames": [ "entityJid", "avatarId" ] } }, { "tableName": "whatsapp_poll_option", "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`msgId` TEXT NOT NULL, `optionHash` TEXT NOT NULL, `optionName` TEXT NOT NULL, PRIMARY KEY(`msgId`, `optionHash`))", "fields": [ { "fieldPath": "msgId", "columnName": "msgId", "affinity": "TEXT", "notNull": true }, { "fieldPath": "optionHash", "columnName": "optionHash", "affinity": "TEXT", "notNull": true }, { "fieldPath": "optionName", "columnName": "optionName", "affinity": "TEXT", "notNull": true } ], "primaryKey": { "autoGenerate": false, "columnNames": [ "msgId", "optionHash" ] } }, { "tableName": "whatsapp_poll_secret", "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`msgId` TEXT NOT NULL, `secret` TEXT NOT NULL, PRIMARY KEY(`msgId`))", "fields": [ { "fieldPath": "msgId", "columnName": "msgId", "affinity": "TEXT", "notNull": true }, { "fieldPath": "secret", "columnName": "secret", "affinity": "TEXT", "notNull": true } ], "primaryKey": { "autoGenerate": false, "columnNames": [ "msgId" ] } }, { "tableName": "whatsapp_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": "whatsapp_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": "whatsapp_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": "whatsapp_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": "whatsapp_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": "whatsapp_cached_message", "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`messageId` TEXT NOT NULL, `conversationJid` TEXT NOT NULL, `body` TEXT NOT NULL, `timestamp` INTEGER NOT NULL, `outgoing` INTEGER NOT NULL, `senderJid` TEXT NOT NULL, `senderName` TEXT NOT NULL, `isEdited` INTEGER NOT NULL, `isRevoked` INTEGER NOT NULL, `quotedMessageId` TEXT, `mediaUrl` TEXT, `mediaMime` TEXT, `mediaName` TEXT, `serviceData` TEXT, `status` INTEGER NOT NULL, PRIMARY KEY(`messageId`))", "fields": [ { "fieldPath": "messageId", "columnName": "messageId", "affinity": "TEXT", "notNull": true }, { "fieldPath": "conversationJid", "columnName": "conversationJid", "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": "senderJid", "columnName": "senderJid", "affinity": "TEXT", "notNull": true }, { "fieldPath": "senderName", "columnName": "senderName", "affinity": "TEXT", "notNull": true }, { "fieldPath": "isEdited", "columnName": "isEdited", "affinity": "INTEGER", "notNull": true }, { "fieldPath": "isRevoked", "columnName": "isRevoked", "affinity": "INTEGER", "notNull": true }, { "fieldPath": "quotedMessageId", "columnName": "quotedMessageId", "affinity": "TEXT" }, { "fieldPath": "mediaUrl", "columnName": "mediaUrl", "affinity": "TEXT" }, { "fieldPath": "mediaMime", "columnName": "mediaMime", "affinity": "TEXT" }, { "fieldPath": "mediaName", "columnName": "mediaName", "affinity": "TEXT" }, { "fieldPath": "serviceData", "columnName": "serviceData", "affinity": "TEXT" }, { "fieldPath": "status", "columnName": "status", "affinity": "INTEGER", "notNull": true } ], "primaryKey": { "autoGenerate": false, "columnNames": [ "messageId" ] }, "indices": [ { "name": "index_whatsapp_cached_message_conversationJid_timestamp", "unique": false, "columnNames": [ "conversationJid", "timestamp" ], "orders": [], "createSql": "CREATE INDEX IF NOT EXISTS `index_whatsapp_cached_message_conversationJid_timestamp` ON `${TABLE_NAME}` (`conversationJid`, `timestamp`)" } ] }, { "tableName": "whatsapp_cached_reaction", "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`messageId` TEXT NOT NULL, `emoji` TEXT NOT NULL, `senderJid` TEXT NOT NULL, `timestamp` INTEGER NOT NULL, PRIMARY KEY(`messageId`, `senderJid`))", "fields": [ { "fieldPath": "messageId", "columnName": "messageId", "affinity": "TEXT", "notNull": true }, { "fieldPath": "emoji", "columnName": "emoji", "affinity": "TEXT", "notNull": true }, { "fieldPath": "senderJid", "columnName": "senderJid", "affinity": "TEXT", "notNull": true }, { "fieldPath": "timestamp", "columnName": "timestamp", "affinity": "INTEGER", "notNull": true } ], "primaryKey": { "autoGenerate": false, "columnNames": [ "messageId", "senderJid" ] } }, { "tableName": "whatsapp_contact", "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`phoneE164` TEXT NOT NULL, `lid` TEXT NOT NULL, `displayName` TEXT NOT NULL, `onWhatsApp` INTEGER NOT NULL, `updatedAt` INTEGER NOT NULL, PRIMARY KEY(`phoneE164`))", "fields": [ { "fieldPath": "phoneE164", "columnName": "phoneE164", "affinity": "TEXT", "notNull": true }, { "fieldPath": "lid", "columnName": "lid", "affinity": "TEXT", "notNull": true }, { "fieldPath": "displayName", "columnName": "displayName", "affinity": "TEXT", "notNull": true }, { "fieldPath": "onWhatsApp", "columnName": "onWhatsApp", "affinity": "INTEGER", "notNull": true }, { "fieldPath": "updatedAt", "columnName": "updatedAt", "affinity": "INTEGER", "notNull": true } ], "primaryKey": { "autoGenerate": false, "columnNames": [ "phoneE164" ] } }, { "tableName": "whatsapp_call_log", "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`callId` TEXT NOT NULL, `peerJid` 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": "peerJid", "columnName": "peerJid", "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, '2c41f8d9d0410459fcc084da3980fc07')" ] } }