package com.czg.account.entity;

import com.mybatisflex.annotation.Column;
import com.mybatisflex.annotation.Id;
import com.mybatisflex.annotation.KeyType;
import com.mybatisflex.annotation.Table;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serial;
import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 *  实体类。
 *
 * @author Administrator
 * @since 2025-02-11
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Table("tb_user_info")
public class UserInfo implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    @Id(keyType = KeyType.Auto)
    private Long id;

    /**
     * 用户头像
     */
    private String headImg;

    /**
     * 用户昵称
     */
    private String nickName;

    /**
     * 电话号码
     */
    private String phone;

    /**
     * 会员生日
     */
    private String birthDay;

    /**
     * 0-女 1男
     */
    private Integer sex;

    /**
     * 微信 openid
     */
    private String wechatOpenId;
    /**
     * 微信公众号 openid
     */
    private String wechatAcOpenId;

    /**
     * 支付宝 openid
     */
    private String alipayOpenId;

    /**
     * 1正常
     */
    private Integer status;

    /**
     * 最近登录时间
     */
    private LocalDateTime lastLoginTime;

    /**
     * 登录密码
     */
    private String password;
     /**
     * 是否关注微信公众号 0-未绑定 1-已绑定
     */
    private Integer isAc;
    // 微信公众号二维码有效时间
    private LocalDateTime acQrcodeValidTime;
    // 微信公众号二维码
    private String wechatAcQrcode;

    /**
     * 支付密码
     */
    private String payPwd;

    @Column(onInsertValue = "now()")
    private LocalDateTime createTime;

    @Column(onInsertValue = "now()", onUpdateValue = "now()")
    private LocalDateTime updateTime;
    private Integer usePayPwd;

    private String realName;
    private String idCard;

    private BigDecimal distributionAmount;

}
