-- v1 -> v2 (compatible with v1+): Devices of switched-on users as last seen trusted -- The devices each switched-on user's pinned identity cross-signed, by signing key, as the extension -- last saw them. A device that becomes trusted later gets the room keys from the next message on. CREATE TABLE xessenger_e2ee_device ( bridge_id TEXT NOT NULL, user_mxid TEXT NOT NULL, device_id TEXT NOT NULL, signing_key TEXT NOT NULL, PRIMARY KEY (bridge_id, user_mxid, device_id) );