09-decryption-buffer.sql 434 B

12345678910
  1. -- v9 (compatible with v8+): Add decrypted event buffer
  2. CREATE TABLE whatsmeow_event_buffer (
  3. our_jid TEXT NOT NULL,
  4. ciphertext_hash bytea NOT NULL CHECK ( length(ciphertext_hash) = 32 ),
  5. plaintext bytea,
  6. server_timestamp BIGINT NOT NULL,
  7. insert_timestamp BIGINT NOT NULL,
  8. PRIMARY KEY (our_jid, ciphertext_hash),
  9. FOREIGN KEY (our_jid) REFERENCES whatsmeow_device(jid) ON DELETE CASCADE ON UPDATE CASCADE
  10. );