10 lines
310 B
MySQL
Raw Normal View History

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