Merge "Portal Spring Boot Development"
[portal.git] / deliveries / portal.cql
1 CREATE KEYSPACE IF NOT EXISTS portal
2     WITH REPLICATION = {
3         'class' : 'SimpleStrategy',
4         'replication_factor': 1
5     }
6     AND DURABLE_WRITES = true;
7  
8
9 CREATE TABLE portal.spring_session (
10     primary_id text PRIMARY KEY,
11     creation_time text,
12     expiry_time text,
13     last_access_time text,
14     max_inactive_interval text,
15     principal_name text,
16     session_id text,
17     vector_ts text
18 ) WITH bloom_filter_fp_chance = 0.01
19     AND caching = {'keys': 'ALL', 'rows_per_partition': '10'}
20     AND comment = ''
21     AND compaction = {'class': 'org.apache.cassandra.db.compaction.SizeTieredCompactionStrategy', 'max_threshold': '32', 'min_threshold': '4'}
22     AND compression = {'chunk_length_in_kb': '64', 'class': 'org.apache.cassandra.io.compress.LZ4Compressor'}
23     AND crc_check_chance = 1.0
24     AND dclocal_read_repair_chance = 0.1
25     AND default_time_to_live = 0
26     AND gc_grace_seconds = 864000
27     AND max_index_interval = 2048
28     AND memtable_flush_period_in_ms = 0
29     AND min_index_interval = 128
30     AND read_repair_chance = 0.0
31     AND speculative_retry = '99PERCENTILE';
32     
33   
34 CREATE TABLE portal.spring_session_attributes (
35     primary_id text,
36     attribute_name text,
37     attribute_bytes blob,
38     vector_ts text,
39     PRIMARY KEY (primary_id, attribute_name)
40 ) WITH CLUSTERING ORDER BY (attribute_name ASC)
41     AND bloom_filter_fp_chance = 0.01
42     AND caching = {'keys': 'ALL', 'rows_per_partition': '1'}
43     AND comment = ''
44     AND compaction = {'class': 'org.apache.cassandra.db.compaction.SizeTieredCompactionStrategy', 'max_threshold': '32', 'min_threshold': '4'}
45     AND compression = {'chunk_length_in_kb': '64', 'class': 'org.apache.cassandra.io.compress.LZ4Compressor'}
46     AND crc_check_chance = 1.0
47     AND dclocal_read_repair_chance = 0.1
48     AND default_time_to_live = 0
49     AND gc_grace_seconds = 864000
50     AND max_index_interval = 2048
51     AND memtable_flush_period_in_ms = 0
52     AND min_index_interval = 128
53     AND read_repair_chance = 0.0
54     AND speculative_retry = '99PERCENTILE';  
55
56 CREATE TABLE portal.health_check (primary_id text PRIMARY KEY, creation_time text);
57 insert into portal.health_check (primary_id,creation_time) values ('ECOMPPortal-25927','2018-05-25T20:14:39.408Z');