package cn.reghao.tnb.sb.multi.mybatis.model.three;

import cn.reghao.jutil.jdk.web.db.BaseObject;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

/**
 * 用户账号
 *
 * @author reghao
 * @date 2021-10-30 17:49:07
 */
@NoArgsConstructor
@EqualsAndHashCode(callSuper = true)
@Data
public class UserAccount extends BaseObject<Integer> {
    private Long userId;
    private Integer accountType;
    private String username;
    private String email;
    private String mobile;
    private String encodedPassword;
    private String salt;
    private LocalDateTime createAt;
    private Boolean notify;

    // Spring Security 使用的字段
    private String role;
    private Boolean enabled;
    private Boolean locked;

    private String screenName;
    private String avatarUrl;
    private String signature;
    private Integer gender;
}
