package easydo.technology.system.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import easydo.technology.annotation.NotTableField;
import easydo.technology.model.CommonModel;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.List;

@Data
@EqualsAndHashCode(callSuper = true)
public class SysUser extends CommonModel {
    @TableId(type = IdType.AUTO)
    private Long id;

    private Long deptId;

    private String username;

    private String nickName;

    private String gender;

    private String phone;

    private String email;

    private String password;

    private String pwdResetTime;

    private String features;

    private String tenantId;

    @NotTableField
    private SysDept dept;
    @NotTableField
    private List<SysRole> roleList;
    @NotTableField
    private Tenant tenant;
}
