Last active
December 22, 2018 22:53
-
-
Save vichu/92aca8c35126cee5125ede19830df8ee to your computer and use it in GitHub Desktop.
User keyspace
This file contains hidden or 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 KEYSPACE user_keyspace WITH replication = {'class': 'SimpleStrategy', 'replication_factor': '1'}; | |
CREATE TABLE user_keyspace.user_by_first_name ( | |
firstname text PRIMARY KEY, | |
email text, | |
id uuid, | |
lastname text | |
); | |
CREATE TABLE user_keyspace.user_by_id ( | |
id uuid PRIMARY KEY, | |
email text, | |
firstname text, | |
lastname text | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment