CREATE TABLE IF NOT EXISTS mci_channel_event_record (
    event_id VARCHAR(64) PRIMARY KEY,
    account_id VARCHAR(64) NOT NULL,
    event_type VARCHAR(32) NOT NULL,
    create_time DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP
);

CREATE INDEX idx_channel_event_account_time ON mci_channel_event_record(account_id, create_time);
