Skip to content

Instantly share code, notes, and snippets.

@mkurian
Created May 17, 2019 23:13
Show Gist options
  • Save mkurian/579a34e4db958c7c3000abaec8322cfa to your computer and use it in GitHub Desktop.
Save mkurian/579a34e4db958c7c3000abaec8322cfa to your computer and use it in GitHub Desktop.
CREATE TABLE Invoice(
business_id bigint,
customer_id timeuuid,
invoice_id timeuuid,
created timestamp,
……
PRIMARY KEY (business_id, customer_id, invoice_id)
) WITH CLUSTERING ORDER BY (invoice_id DESC)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment