package com.cxyxiaomo.epp.common.pojo;

import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

// 数据库关系映射

@Data
@NoArgsConstructor
@Accessors(chain = true) // 链式写法
// 微服务必须要实现Serializable
public class User implements Serializable {
    private Integer id;
    private String username;
    private String password;
    private String realname;
    private String idNumber;
    private String phoneNumber;
    private Integer role;
    private String buildingId;
    private String doorplate;
    private String permission;
    private LocalDateTime permissionTime;
}
