mirror of
https://github.com/status-im/status-go.git
synced 2025-01-09 06:12:55 +00:00
15 lines
426 B
SQL
15 lines
426 B
SQL
CREATE TABLE IF NOT EXISTS message_segments (
|
|
hash BLOB NOT NULL,
|
|
segment_index INTEGER NOT NULL,
|
|
segments_count INTEGER NOT NULL,
|
|
payload BLOB NOT NULL,
|
|
sig_pub_key BLOB NOT NULL,
|
|
PRIMARY KEY (hash, sig_pub_key, segment_index) ON CONFLICT REPLACE
|
|
);
|
|
|
|
CREATE TABLE IF NOT EXISTS message_segments_completed (
|
|
hash BLOB NOT NULL,
|
|
sig_pub_key BLOB NOT NULL,
|
|
PRIMARY KEY (hash, sig_pub_key)
|
|
);
|