74 lines
1.6 KiB
C#
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace AmtScanner.Api.Models;
/// <summary>
/// 已接管的AMT设备配置完成有UUID
/// </summary>
[Table("AmtDevices_new")]
public class AmtDevice_new
{
/// <summary>
/// UUID作为主键从AMT获取
/// </summary>
[Key]
[MaxLength(36)]
public string Uuid { get; set; } = string.Empty;
/// <summary>
/// IP地址
/// </summary>
[Required]
[MaxLength(45)]
public string IpAddress { get; set; } = string.Empty;
/// <summary>
/// 子网掩码
/// </summary>
[MaxLength(45)]
public string? SubnetMask { get; set; }
/// <summary>
/// 网关
/// </summary>
[MaxLength(45)]
public string? Gateway { get; set; }
/// <summary>
/// AMT用户名
/// </summary>
[Required]
[MaxLength(64)]
public string AmtUsername { get; set; } = string.Empty;
/// <summary>
/// AMT密码加密存储
/// </summary>
[Required]
[MaxLength(256)]
public string AmtPassword { get; set; } = string.Empty;
/// <summary>
/// AMT版本
/// </summary>
[MaxLength(20)]
public string? AmtVersion { get; set; }
/// <summary>
/// 主机名
/// </summary>
[MaxLength(100)]
public string? Hostname { get; set; }
/// <summary>
/// 创建时间
/// </summary>
public DateTime CreatedAt { get; set; } = DateTime.UtcNow;
/// <summary>
/// 更新时间
/// </summary>
public DateTime UpdatedAt { get; set; } = DateTime.UtcNow;
}