package com.hzs.common.domain.member.detail;

import com.baomidou.mybatisplus.annotation.KeySequence;
import com.baomidou.mybatisplus.annotation.TableName;

import java.util.Date;

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("CU_REGION_ASSESS_SEQ")
@TableName("CU_REGION_ASSESS")
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class CuRegionAssess extends BaseEntity {

    private static final long serialVersionUID = 1L;

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

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

    /**
     * 会员区域主键
     */
    @TableField("PK_REGION")
    private Long pkRegion;

    /**
     * 考核期
     */
    @TableField("ASSESS_PERIOD")
    private Integer assessPeriod;

    /**
     * 考核开始日期
     */
    @TableField("ASSESS_START_DATE")
    private Date assessStartDate;

    /**
     * 考核期结束日期
     */
    @TableField("ASSESS_END_DATE")
    private Date assessEndDate;

    /**
     * 达标次数
     */
    @TableField("REACH_NUM")
    private Integer reachNum;

    /**
     * 来源（1=前台，2=后台） 后台的免考
     */
    @TableField("SOURCE")
    private Integer source;


}
