mirror of
https://mau.dev/maunium/synapse.git
synced 2024-09-19 15:57:05 +00:00
25f43faa70
The hope here is that by moving all the schema files into synapse/storage/schema, it gets a bit easier for newcomers to navigate. It certainly got easier for me to write a helpful README. There's more to do on that front, but I'll follow up with other PRs for that.
10 lines
310 B
SQL
10 lines
310 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_id, medium, address)
|
|
);
|
|
CREATE INDEX user_threepids_user_id ON user_threepids(user_id);
|