using System;
using System.Collections.Generic;

namespace HoneyBox.Model.Entities;

/// <summary>
/// 管理员表，存储后台管理员信息
/// </summary>
public partial class Admin
{
    /// <summary>
    /// 主键ID
    /// </summary>
    public int Id { get; set; }

    /// <summary>
    /// 用户名
    /// </summary>
    public string? Username { get; set; }

    /// <summary>
    /// 昵称
    /// </summary>
    public string Nickname { get; set; } = null!;

    /// <summary>
    /// 密码（加密）
    /// </summary>
    public string? Password { get; set; }

    /// <summary>
    /// 权限组ID
    /// </summary>
    public int? Qid { get; set; }

    /// <summary>
    /// 状态：0-正常
    /// </summary>
    public int? Status { get; set; }

    /// <summary>
    /// 获取时间
    /// </summary>
    public DateTime GetTime { get; set; }

    /// <summary>
    /// 随机字符串
    /// </summary>
    public string Random { get; set; } = null!;

    /// <summary>
    /// 登录令牌
    /// </summary>
    public string? Token { get; set; }

    /// <summary>
    /// 上级管理员ID
    /// </summary>
    public int AdminId { get; set; }

    /// <summary>
    /// 创建时间
    /// </summary>
    public DateTime CreatedAt { get; set; }

    /// <summary>
    /// 更新时间
    /// </summary>
    public DateTime UpdatedAt { get; set; }
}
