package com.sf.entity;


import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

/**
 * @author WanJl
 * @version 1.0
 * @title SysUser
 * @description
 * @create 2025/11/16
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class SysUser {
    private Integer userId;
    private String username;
    private String password;
    private Integer status;
    private LocalDateTime createTime;
    /**
     * 一对一：用户包含一个详情
     */
    private SysUserInfo userInfo;
    /**
     * 多对一：用户属于一个角色
     */
    private SysRole role;
}
