Skip to content

Instantly share code, notes, and snippets.

@ajsharp
Created April 4, 2014 21:50
Show Gist options
  • Select an option

  • Save ajsharp/9983782 to your computer and use it in GitHub Desktop.

Select an option

Save ajsharp/9983782 to your computer and use it in GitHub Desktop.
CREATE TABLE IF NOT EXISTS Timelines(
name text,
parent_id text,
event_id uuid,
PRIMARY KEY((parent_id, name), event_id)
) WITH CLUSTERING ORDER BY (event_id DESC)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment