create database if not exists msb3;

create table if not exists msb3.events
(
    uuid UUID,
    player_name String(32),
    timestamp DateTime default now(),
    event_type LowCardinality(String),
    details Nullable(String)
) engine = ReplacingMergeTree partition by toYYYYMM(timestamp)
primary key (uuid, event_type, timestamp);
