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

10 lines
310 B
MySQL
Raw Normal View History

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