54 lines
1.2 KiB
Java
54 lines
1.2 KiB
Java
package com.baiyue.auth.entity;
|
|
|
|
import lombok.Getter;
|
|
import lombok.Setter;
|
|
|
|
import com.baomidou.mybatisplus.annotation.TableId;
|
|
import com.baomidou.mybatisplus.annotation.TableLogic;
|
|
import com.baomidou.mybatisplus.annotation.TableName;
|
|
|
|
import java.time.LocalDateTime;
|
|
|
|
/**
|
|
* 认证账号持久化实体,对应表 {@code auth_account};保存统一登录账号、密码摘要、账号类型、租户归属和启停状态,是身份凭证的数据源。
|
|
*/
|
|
@Getter
|
|
@Setter
|
|
@TableName("auth_account")
|
|
public class AuthAccount {
|
|
@TableId private Long id;
|
|
private String username;
|
|
private String phone;
|
|
private String passwordHash;
|
|
private String displayName;
|
|
private String accountStatus;
|
|
private Integer failedLoginCount;
|
|
private LocalDateTime lockedUntil;
|
|
private Integer tokenVersion;
|
|
private Boolean passwordChangeRequired;
|
|
private Long defaultTenantId;
|
|
private Long operatorTenantId;
|
|
private Long defaultMembershipId;
|
|
private String defaultAppCode;
|
|
@TableLogic private Integer deleted;
|
|
private LocalDateTime lastLoginAt;
|
|
private LocalDateTime createdAt;
|
|
private LocalDateTime updatedAt;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|