CREATE TABLE IF NOT EXISTS `experience_gift_invite_grant_log` (
  `id`          bigint       NOT NULL AUTO_INCREMENT,
  `position_id` bigint       NOT NULL COMMENT '触发发放的合约仓位ID',
  `product_id`  bigint       NOT NULL COMMENT '体验金产品ID',
  `inviter_id`  bigint       NOT NULL COMMENT '被发放体验金的邀请人ID',
  `created_at`  datetime     NOT NULL DEFAULT CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  UNIQUE KEY `uk_position_product` (`position_id`, `product_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='体验金直邀发放去重日志';
