Skip to content

Instantly share code, notes, and snippets.

@wkharold
Created May 22, 2015 15:56
Show Gist options
  • Save wkharold/53ffb16685affb297de9 to your computer and use it in GitHub Desktop.
Save wkharold/53ffb16685affb297de9 to your computer and use it in GitHub Desktop.
db create script
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