Created
May 22, 2015 15:56
-
-
Save wkharold/53ffb16685affb297de9 to your computer and use it in GitHub Desktop.
db create script
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 if not exists honestdollar with replication = {'class': 'SimpleStrategy', 'replication_factor': 1} ; | |
use honestdollar ; | |
create table if not exists users ( | |
id uuid, | |
firstname text, | |
lastname text, | |
email text, | |
phone text, | |
primary key (id, lastname)) ; | |
create table if not exists user_from_email ( | |
email text, | |
id uuid, | |
firstname text, | |
lastname text, | |
primary key (email, id)) ; | |
create table if not exists user_from_phone ( | |
phone text, | |
id uuid, | |
firstname text, | |
lastname text, | |
primary key (phone, id)) ; | |
exit ; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment