package com.gxwebsoft.apps.entity;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableLogic;
import java.io.Serializable;
import java.util.Date;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 *
 *
 * @author 科技小王子
 * @since 2023-01-08 12:22:50
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "HualalaCard对象", description = "")
@TableName("apps_hualala_card")
public class HualalaCard implements Serializable {
    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "groupID")
    private String groupId;

    @ApiModelProperty(value = "shopID")
    private String shopId;

    @ApiModelProperty(value = "网速会员id")
    private Integer userId;

    @ApiModelProperty(value = "会员卡ID")
    private String cardId;

    private String cardTypeId;

    @ApiModelProperty(value = "会员卡等级ID")
    private String cardLevelId;

    @ApiModelProperty(value = "会员卡等级名称")
    private String cardLevelName;

    @ApiModelProperty(value = "卡状态　10：正常　20：挂失中　30：冻结　40：注销（作废）50：已过期")
    private String cardStatus;

    private String customerId;

    @ApiModelProperty(value = "会员卡入会店铺字段")
    private String createShopId;

    @ApiModelProperty(value = "入会店铺名称")
    private String createShopName;

    @ApiModelProperty(value = "卡号")
    private String cardNo;

    @ApiModelProperty(value = "姓名")
    private String customerName;

    @ApiModelProperty(value = "	手机号")
    private String customerMobile;

    @ApiModelProperty(value = "性别 0：女 1：男 2：未知")
    private Integer customerSex;

    @ApiModelProperty(value = "生日")
    private String customerBirthday;

    @ApiModelProperty(value = "卡余额")
    private BigDecimal cardBalance;

    @ApiModelProperty(value = "积分余额")
    private BigDecimal pointBalance;

    @ApiModelProperty(value = "累计储值金额")
    private BigDecimal saveMoneyTotal;

    @ApiModelProperty(value = "累计消费金额")
    private BigDecimal consumptionTotal;

    @ApiModelProperty(value = "累计消费次数")
    private Integer consumptionCount;

    @ApiModelProperty(value = "当前等级积分")
    private Integer grade;

    @ApiModelProperty(value = "下一等级积分")
    private Integer nextLevelGrade;

    @ApiModelProperty(value = "有效期至(yyyyMMddHHmmss) 0：表示永久有效")
    private String expireTime;

    @ApiModelProperty(value = "最后一次交易时间")
    private String lastTransTime;

    @ApiModelProperty(value = "排序(数字越小越靠前)")
    private Integer sortNumber;

    @ApiModelProperty(value = "备注")
    private String comments;

    @ApiModelProperty(value = "状态, 0正常, 1冻结")
    private Integer status;

    @ApiModelProperty(value = "是否删除, 0否, 1是")
    @TableLogic
    private Integer deleted;

    @ApiModelProperty(value = "商户编码")
    private String merchantCode;

    @ApiModelProperty(value = "租户id")
    private Integer tenantId;

    @ApiModelProperty(value = "注册时间")
    private Date createTime;

    @ApiModelProperty(value = "修改时间")
    private Date updateTime;

}
