2
0
mirror of https://github.com/status-im/status-go.git synced 2025-02-18 01:37:22 +00:00
2021-09-24 10:12:42 +01:00

6 lines
278 B
SQL

CREATE TABLE envelopes (id BYTEA NOT NULL UNIQUE, data BYTEA NOT NULL, topic BYTEA NOT NULL, bloom BIT(512) NOT NULL);
CREATE INDEX id_bloom_idx ON envelopes (id DESC, bloom);
CREATE INDEX id_topic_idx ON envelopes (id DESC, topic);
CREATE INDEX topic_idx ON envelopes(topic);