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

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)
@TableName("CU_MEMBER_GRADE")
@KeySequence("CU_MEMBER_GRADE_SEQ")
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class CuMemberGrade extends BaseEntity {

    private static final long serialVersionUID = 1L;

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

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

    /**
     * 结算期间
     */
    @TableField("PERIOD")
    private Integer period;

    /**
     * 升级类型 (1=自动升级,2=手动升级,3=购买赠予)
     */
    @TableField("UP_TYPE")
    private Integer upType;

    /**
     * 原等级
     */
    @TableField("OLD_LEVEL")
    private Integer oldLevel;

    /**
     * 新等级
     */
    @TableField("NEW_LEVEL")
    private Integer newLevel;

    /**
     * 备注
     */
    @TableField("REMARK")
    private String remark;


}
