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