package shop.alien.entity.store;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 活动规则明细表
 * </p>
 *
 * @author ssk
 * @since 2025-05-19
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="StoreActivityRuleDetail对象", description="活动规则明细表")
public class StoreActivityRuleDetail extends Model<StoreActivityRuleDetail> {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键ID")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "活动ID")
    @TableField("activity_id")
    private Long activityId;

    @ApiModelProperty(value = "活动详情id")
    @TableField("activity_rule_id")
    private Long activityRuleId;

    @ApiModelProperty(value = "明细类型（1：连续签到奖励；2：任务类型）")
    @TableField("detail_type")
    private Integer detailType;

    @ApiModelProperty(value = "连续签到天数")
    @TableField("days_number")
    private Integer daysNumber;

    @ApiModelProperty(value = "连续签到奖励金额（元）")
    @TableField("days_money")
    private BigDecimal daysMoney;

    @ApiModelProperty(value = "任务类型(1:浏览团购 2:购买团购 3:邀请好友)")
    @TableField("task_type")
    private Integer taskType;

    @ApiModelProperty(value = "领取次数")
    @TableField("claims_number")
    private Integer claimsNumber;

    @ApiModelProperty(value = "任务详情")
    @TableField("task_detail")
    private String taskDetail;

    @ApiModelProperty(value = "浏览时长(分钟)")
    @TableField("browse_time")
    private Integer browseTime;

    @ApiModelProperty(value = "最小金额")
    @TableField("min_amount")
    private BigDecimal minAmount;

    @ApiModelProperty(value = "最大金额")
    @TableField("max_amount")
    private BigDecimal maxAmount;

    @ApiModelProperty(value = "删除状态")
    @TableField("delete_flag")
    @TableLogic
    private Integer deleteFlag;

    @ApiModelProperty(value = "创建时间")
    @TableField(value = "created_time", fill = FieldFill.INSERT)
    private Date createdTime;

    @ApiModelProperty(value = "更新时间")
    @TableField(value = "updated_time", fill = FieldFill.INSERT_UPDATE)
    private Date updatedTime;

    @ApiModelProperty(value = "创建人ID")
    @TableField(value = "created_user_id", fill = FieldFill.INSERT)
    private Integer createdUserId;

    @ApiModelProperty(value = "修改人ID")
    @TableField(value = "updated_user_id", fill = FieldFill.INSERT_UPDATE)
    private Integer updatedUserId;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
