package com.jeequan.jeepay.db.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.jeequan.jeepay.core.model.BaseModel;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.util.Date;

/**
 * <p>
 * 会员信息表
 * </p>
 *
 * @author [mybatis plus generator]
 * @since 2023-04-12
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("t_member_info")
public class MemberInfo extends BaseModel {

    public static final LambdaQueryWrapper<MemberInfo> gw(){
        return new LambdaQueryWrapper<>();
    }

    private static final long serialVersionUID=1L;

    /**
     * 会员ID
     */
    @TableId(value = "mbr_id", type = IdType.INPUT)
    private String mbrId;

    /**
     * 会员名称
     */
    private String mbrName;

    /**
     * 会员手机号
     */
    private String mbrTel;

    /**
     * 微信公众号用户标识open_id
     */
    private String wxMpOpenId;

    /**
     * 微信小程序用户标识open_id
     */
    private String wxLiteOpenId;

    /**
     * 支付宝用户标识user_id
     */
    private String aliUserId;

    /**
     * 云闪付用户标识user_id
     */
    private String ysfUserId;

    /**
     * 所属商户
     */
    private String mchNo;

    /**
     * 账户余额 单位:分
     */
    private Long balance;

    /**
     * 数据安全保护秘钥
     */
    private String safeKey;

    /**
     * 状态: 0-停用, 1-正常
     */
    private Byte state;

    /**
     * 头像地址
     */
    private String avatarUrl;

    /**
     * 会员备注
     */
    private String remark;

    /**
     * 创建时间
     */
    private Date createdAt;

    /**
     * 更新时间
     */
    private Date updatedAt;


}
