-
Notifications
You must be signed in to change notification settings - Fork 0
/
schema.json
17 lines (13 loc) · 1.39 KB
/
schema.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
{
"drop_carriers_table": "DROP TABLE IF EXISTS carriers",
"create_carriers_table": "CREATE TABLE IF NOT EXISTS carriers (id UInt32 NOT NULL, name VARCHAR NOT NULL, gsk VARCHAR NOT NULL, PRIMARY KEY id) ENGINE = MergeTree()",
"drop ct_records table": "DROP TABLE IF EXISTS ct_records",
"create ct_records table": "CREATE TABLE IF NOT EXISTS ct_records (label VARCHAR NOT NULL, sigma VARCHAR NOT NULL, ct VARCHAR NOT NULL, PRIMARY KEY (label, sigma)) ENGINE = MergeTree()",
"add_index_on_label_column": "ALTER TABLE ct_records ADD INDEX label_index label TYPE minmax GRANULARITY 4",
"drop raw_cdrs table": "DROP TABLE IF EXISTS raw_cdrs",
"create raw_cdrs table": "CREATE TABLE IF NOT EXISTS raw_cdrs (id VARCHAR NOT NULL, status TinyInt DEFAULT 0, src VARCHAR NOT NULL, dst VARCHAR NOT NULL, ts VARCHAR NOT NULL, prev VARCHAR NOT NULL, curr VARCHAR NOT NULL, next VARCHAR NOT NULL, PRIMARY KEY id) ENGINE = MergeTree()",
"drop subscribers table": "DROP TABLE IF EXISTS subscribers",
"create subscribers table": "CREATE TABLE IF NOT EXISTS subscribers (id UInt32 NOT NULL, phone VARCHAR NOT NULL, carrier UInt32 NOT NULL, PRIMARY KEY id) ENGINE = MergeTree()",
"drop edges table": "DROP TABLE IF EXISTS edges",
"create edges table": "CREATE TABLE IF NOT EXISTS edges (id VARCHAR NOT NULL, src UInt32 NOT NULL, dst UInt32 NOT NULL, PRIMARY KEY id) ENGINE = MergeTree()"
}