CREATE DATABASE IF NOT EXISTS phasm_platform;
USE phasm_platform;


CREATE TABLE routing_logs
(
	timestamp DateTime64(6, 'UTC'),
	thread_id String,
	from_container String,
	to_service String,
	to_container String,
	to_method String,
	result String,
)
ENGINE = MergeTree
ORDER BY timestamp;


CREATE TABLE container_logs
(
	timestamp DateTime64(6, 'UTC'),
	name String,
	thread_id String,
	msg String,
)
ENGINE = MergeTree
ORDER BY timestamp;
