CREATE TABLE `acquirer_response` (
  `id` INT AUTO_INCREMENT PRIMARY KEY,
  `acquirer_id` INT NULL,
  `acquirer_name` VARCHAR(100) NOT NULL,
  `response_code` VARCHAR(10) NOT NULL,
  `response_message` VARCHAR(255) NOT NULL,
  `jpos_response_code` VARCHAR(10) NULL,
  `created_at` TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
  `updated_at` TIMESTAMP DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  INDEX `idx_acquirer_response` (`acquirer_name`, `response_code`),
  UNIQUE KEY `uk_acquirer_response` (`acquirer_name`, `response_code`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;