Slide 24
Slide 24 text
User Defined Types (UDT)
CREATE TABLE messages (
conversation_id uuid,
conversation_owner text STATIC,
message_id timeuuid,
content text,
sender text,
recipients set,
seen_by list,
attachments map,
PRIMARY KEY (conversation_id, message_id)
);
* New in Cassandra 2.1
* Let’s add more attributes to attachments
CREATE TYPE attachment (
size int,
mime text,
uri text
);