package cn.van.business.model.user;

import jakarta.persistence.Column;
import jakarta.persistence.Entity;
import jakarta.persistence.GeneratedValue;
import jakarta.persistence.GenerationType;
import lombok.Getter;
import lombok.Setter;
import jakarta.persistence.*;


import java.time.LocalDateTime;

/**
 * @author Leo
 * @version 1.0
 * @create 2025/6/16 10:55
 * @description：
 */
@Getter
@Setter
@Entity
@Table(name = "admin_users")
public class AdminUser {
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Long id;

    @Column(unique = true, nullable = false)
    private String username;

    private String password;

    private String nickname;

    private String avatarUrl;

    private String roles; // 角色列表，可用逗号分隔

    private LocalDateTime lastLoginTime;

    private LocalDateTime createTime;

    private LocalDateTime updateTime;
}

