package com.ruoyi.system.domain;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import lombok.Data;

import java.time.LocalDate;
import java.util.Date;

/**
 * app登录对象 yj_app_user
 *
 * @author zcc
 */
//"会员信息对象")
@Data
@TableName("yj_app_user")
public class AppUser {
    private static final long serialVersionUID = 1L;


    //"ID")
    @TableId(value = "app_user_id")
    private Long id;

    //"昵称")
    private String nickName;

    //"名称")
    private String userName;

    //"密码")
    private String password;

    //"手机号")
    private String phoneNumber;

    //"帐号启用状态:0->禁用；1->启用")
    private Integer status;

    //"头像")
    private String avatar;

    private Integer sex;

    //"用户所在城市")
    private String city;

    //"用户所在省份")
    private String province;

    //"用户所在国家")
    private String country;

    //"生日")
    @Excel(name = "生日", width = 30, dateFormat = "yyyy-MM-dd")
    private LocalDate birthday;

    //"设备id")
    private String registerId;

    //"访问/浏览门店id")
    private Long visitStore;
    //"小程序unionid")
    private String unionid;

    //"小程序openid")
    private String openid;

    /** 员工所属门店id */

//    private Long deptId;

    /** 员工所属商户id */
//    private String tenantId;


    /** 最后登录IP */
    private String loginIp;
    //个性签名（140字）
    private String signature;

    /** 最后登录时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date loginDate;

    /**后台账户`sys_user`的user_id*/

    @TableField(value = "manage_account_id",updateStrategy = FieldStrategy.IGNORED)
    private Long manageAccountId;

    @TableField(exist = false)
    private String newPassword;




}
