Last active
August 29, 2015 14:07
-
-
Save kafaichoi/aac9865ae19fa20666c7 to your computer and use it in GitHub Desktop.
CQL create table
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CREATE TABLE shake_magnitudes ( | |
event_id int, | |
user_id int, | |
recorded_at timestamp, | |
magnitude float, | |
PRIMARY KEY (event_id, user_id, recorded_at) | |
) | |
WITH CLUSTERING ORDER BY (user_id ASC, recorded_at ASC); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment