Created
August 1, 2019 01:12
-
-
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'
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
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