CREATE TABLE IF NOT EXISTS `experience_gift_risk_alert` (
  `id`            bigint       NOT NULL AUTO_INCREMENT,
  `member_id`     bigint       NOT NULL COMMENT '预警用户ID',
  `receipt_count` int          NOT NULL COMMENT '4h内领取体验金次数',
  `profit_amount` decimal(20,8) NOT NULL COMMENT '4h内体验金平仓收益(USDT)',
  `status`        tinyint      NOT NULL DEFAULT 0 COMMENT '状态: 0=告警, 1=已取消',
  `created_at`    datetime     NOT NULL COMMENT '预警时间',
  `handled_at`    datetime     DEFAULT NULL COMMENT '处理时间',
  `handled_by`    bigint       DEFAULT NULL COMMENT '处理管理员ID',
  PRIMARY KEY (`id`),
  KEY `idx_member_created` (`member_id`, `created_at`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='体验金防刷预警记录';
