Skip to content

Instantly share code, notes, and snippets.

@Gueka
Created August 1, 2019 01:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Gueka/1ad184e10f3d3b4f7aa6ff303ec8a1cd to your computer and use it in GitHub Desktop.
Save Gueka/1ad184e10f3d3b4f7aa6ff303ec8a1cd to your computer and use it in GitHub Desktop.
Select tutorial keyspace and create a custom type 'location' and a table using location named 'users'
USE tutorial;
CREATE TYPE location (city TEXT, zip_code TEXT, address TEXT);
CREATE TABLE users (id UUID PRIMARY KEY, name TEXT, surname TEXT, creation_timestamp TIMESTAMP, tags list<TEXT>, location LOCATION);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment