package com.hzs.common.domain.activity.draw;

import com.baomidou.mybatisplus.annotation.KeySequence;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import com.hzs.common.core.web.domain.BaseEntity;
import lombok.*;
import lombok.experimental.Accessors;

/**
 * 会员可抽奖次数记录
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@KeySequence("AC_DRAW_REWARD_NUM_SEQ")
@TableName("AC_DRAW_REWARD_NUM")
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class AcDrawRewardNum extends BaseEntity {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId("PK_ID")
    private Long pkId;

    /**
     * 活动基本配置主键
     */
    @TableField("PK_BASE_ID")
    private Long pkBaseId;

    /**
     * 会员主键
     */
    @TableField("PK_MEMBER")
    private Long pkMember;

    /**
     * 总次数
     */
    @TableField("TOTAL_NUM")
    private Integer totalNum;

    /**
     * 已用总次数
     */
    @TableField("TOTAL_USED_NUM")
    private Integer totalUsedNum;

    /**
     * 剩余总次数
     */
    @TableField("TOTAL_SURPLUS_NUM")
    private Integer totalSurplusNum;

    /**
     * 可用总次数
     */
    @TableField("AVAILABLE_NUM")
    private Integer availableNum;

    /**
     * 已用可用总次数
     */
    @TableField("AVAILABLE_USED_NUM")
    private Integer availableUsedNum;

    /**
     * 剩余可用总次数
     */
    @TableField("AVAILABLE_SURPLUS_NUM")
    private Integer availableSurplusNum;


}
