20261021-refund-intent.sql 409 B

12345678
  1. CREATE TABLE IF NOT EXISTS payment_refund_intent (
  2. refund_no VARCHAR(32) CHARACTER SET ascii COLLATE ascii_bin NOT NULL PRIMARY KEY,
  3. order_id BIGINT NOT NULL,
  4. amount DECIMAL(20,0) NOT NULL,
  5. created_time DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,
  6. KEY idx_refund_intent_order(order_id)
  7. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
  8. -- Never delete an uncertain intent merely to retry with a different amount.