9 lines
211 B
MySQL
9 lines
211 B
MySQL
|
|
CREATE TABLE message_dedup (
|
||
|
|
room_id uuid,
|
||
|
|
uid text,
|
||
|
|
content_md5 text,
|
||
|
|
bucket_sec bigint,
|
||
|
|
PRIMARY KEY ((room_id, uid), bucket_sec, content_md5)
|
||
|
|
) WITH default_time_to_live = 2;
|
||
|
|
|