CREATE TABLE IF NOT EXISTS meeting_expert_binding (
    id BIGINT UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY,
    tenant_id BIGINT UNSIGNED NOT NULL,
    meeting_id BIGINT UNSIGNED NOT NULL,
    expert_id BIGINT UNSIGNED NOT NULL,
    expert_name VARCHAR(128) NOT NULL,
    phone VARCHAR(32) DEFAULT NULL,
    title VARCHAR(128) DEFAULT NULL,
    organization VARCHAR(255) DEFAULT NULL,
    created_by BIGINT UNSIGNED NOT NULL DEFAULT 0,
    created_at DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,
    KEY idx_tenant_meeting (tenant_id, meeting_id),
    KEY idx_tenant_expert (tenant_id, expert_id),
    UNIQUE KEY uk_tenant_meeting_expert (tenant_id, meeting_id, expert_id)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
