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)
@KeySequence("CU_MEMBER_AWARDS_SEQ")
@TableName("CU_MEMBER_AWARDS")
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class CuMemberAwards 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;

    /**
     * 复购免考（0=是,1=否）
     */
    @TableField("PURCHASE_STATUS")
    private Integer purchaseStatus;

    /**
     * 订单，购买赠予的时候保存，用于撤单时撤销等级
     */
    @TableField("PK_ORDER")
    private Long pkOrder;

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


}
