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

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_MEMBER_UPGRADE_SEQ")
@TableName("CU_MEMBER_UPGRADE")
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class CuMemberUpgrade extends BaseEntity {

    private static final long serialVersionUID = 1L;

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

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

    /**
     * 数量
     */
    @TableField("QUANTITY")
    private Integer quantity;

    /**
     * 来源订单主键
     */
    @TableField("PK_ORDER")
    private Long pkOrder;

    /**
     * 失效时间
     */
    @TableField("EXPIRES_DATE")
    private Date expiresDate;


}
