CREATE TABLE IF NOT EXISTS bulk_delete_jobs (
    id INT UNSIGNED AUTO_INCREMENT PRIMARY KEY,
    total_count INT UNSIGNED NOT NULL DEFAULT 0,
    deleted_count INT UNSIGNED NOT NULL DEFAULT 0,
    status ENUM('pending','processing','completed','cancelled') NOT NULL DEFAULT 'pending',
    filters JSON DEFAULT NULL,
    created_at TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
    started_at TIMESTAMP NULL DEFAULT NULL,
    completed_at TIMESTAMP NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
