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

10 lines
310 B
MySQL
Raw Normal View History

2015-04-29 11:49:44 -04:00
CREATE TABLE user_threepids (
2015-04-29 11:57:14 -04:00
user_id TEXT NOT NULL,
2015-04-29 11:49:44 -04:00
medium TEXT NOT NULL,
address TEXT NOT NULL,
2015-04-29 11:53:41 -04:00
validated_at BIGINT NOT NULL,
added_at BIGINT NOT NULL,
2015-04-29 11:58:42 -04:00
CONSTRAINT user_medium_address UNIQUE (user_id, medium, address)
2015-04-29 11:49:44 -04:00
);
2015-04-29 11:57:14 -04:00
CREATE INDEX user_threepids_user_id ON user_threepids(user_id);