mirror of https://github.com/sunface/rust-course
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
411 B
15 lines
411 B
6 years ago
|
CREATE KEYSPACE im_dev WITH replication = {'class': 'SimpleStrategy', 'replication_factor': '3'}
|
||
|
AND durable_writes = false;
|
||
|
|
||
|
USE im_dev;
|
||
|
|
||
|
CREATE TABLE IF NOT EXISTS user (
|
||
|
id text,
|
||
|
name text,
|
||
|
PRIMARY KEY (id)
|
||
|
) WITH gc_grace_seconds = 10800;
|
||
|
|
||
|
CREATE TABLE IF NOT EXISTS user_activity (
|
||
|
id text,
|
||
|
PRIMARY KEY (id)
|
||
|
) WITH gc_grace_seconds = 10800;
|