backend/generate/database/cassandra/2026010611150001_chat_messa...

10 lines
270 B
MySQL
Raw Permalink Normal View History

2026-01-06 07:15:18 +00:00
CREATE TABLE messages (
room_id uuid,
bucket_day date,
ts bigint,
msg_id uuid,
uid text,
content text,
PRIMARY KEY ((room_id, bucket_day), ts, msg_id)
) WITH CLUSTERING ORDER BY (ts ASC);