package com.red.circle.console.infra.database.rds.entity.app.invite;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.red.circle.framework.mybatis.entity.TimestampBaseEntity;
import java.io.Serial;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * 邀请活动奖励规则.
 */
@Data
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@TableName("invite_campaign_reward_rule")
public class InviteCampaignRewardRule extends TimestampBaseEntity {

  @Serial
  private static final long serialVersionUID = 1L;

  @TableId(value = "id", type = IdType.INPUT)
  private Long id;

  @TableField("sys_origin")
  private String sysOrigin;

  @TableField("rule_type")
  private String ruleType;

  @TableField("threshold_value")
  private Long thresholdValue;

  @TableField("gold_amount")
  private Long goldAmount;

  @TableField("reward_group_id")
  private Long rewardGroupId;

  @TableField("enabled")
  private Boolean enabled;

  @TableField("sort")
  private Integer sort;
}
