synapse-old/synapse/storage/schema/delta/17/user_threepids.sql

10 lines
307 B
SQL

CREATE TABLE user_threepids (
user_id TEXT NOT NULL,
medium TEXT NOT NULL,
address TEXT NOT NULL,
validated_at BIGINT NOT NULL,
added_at BIGINT NOT NULL,
CONSTRAINT user_medium_address UNIQUE (user, medium, address)
);
CREATE INDEX user_threepids_user_id ON user_threepids(user_id);