mirror of
https://github.com/mautrix/signal.git
synced 2026-05-16 06:06:54 -04:00
11 lines
423 B
MySQL
11 lines
423 B
MySQL
|
|
-- v21 (compatible with v13+): Add event buffer
|
||
|
|
CREATE TABLE signalmeow_event_buffer (
|
||
|
|
account_id TEXT NOT NULL,
|
||
|
|
ciphertext_hash bytea NOT NULL,
|
||
|
|
plaintext bytea,
|
||
|
|
server_timestamp BIGINT NOT NULL,
|
||
|
|
insert_timestamp BIGINT NOT NULL,
|
||
|
|
|
||
|
|
PRIMARY KEY (account_id, ciphertext_hash),
|
||
|
|
FOREIGN KEY (account_id) REFERENCES signalmeow_device (aci_uuid) ON DELETE CASCADE ON UPDATE CASCADE
|
||
|
|
);
|