65 lines
1.5 KiB
C#
65 lines
1.5 KiB
C#
using System.ComponentModel.DataAnnotations;
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
|
|
|
namespace AmtScanner.Api.Models;
|
|
|
|
[Table("AgentDevices_new")]
|
|
public class AgentDevice
|
|
{
|
|
[Key]
|
|
[MaxLength(36)]
|
|
public string Uuid { get; set; } = "";
|
|
|
|
[MaxLength(100)]
|
|
public string Hostname { get; set; } = "";
|
|
|
|
[MaxLength(45)]
|
|
public string IpAddress { get; set; } = "";
|
|
|
|
[MaxLength(17)]
|
|
public string MacAddress { get; set; } = "";
|
|
|
|
[MaxLength(15)]
|
|
public string SubnetMask { get; set; } = "";
|
|
|
|
[MaxLength(45)]
|
|
public string Gateway { get; set; } = "";
|
|
|
|
[MaxLength(200)]
|
|
public string OsName { get; set; } = "";
|
|
|
|
[MaxLength(100)]
|
|
public string OsVersion { get; set; } = "";
|
|
|
|
[MaxLength(20)]
|
|
public string OsArchitecture { get; set; } = "";
|
|
|
|
[MaxLength(200)]
|
|
public string CpuName { get; set; } = "";
|
|
|
|
public long TotalMemoryMB { get; set; }
|
|
|
|
[MaxLength(100)]
|
|
public string Manufacturer { get; set; } = "";
|
|
|
|
[MaxLength(100)]
|
|
public string Model { get; set; } = "";
|
|
|
|
[MaxLength(100)]
|
|
public string SerialNumber { get; set; } = "";
|
|
|
|
[MaxLength(100)]
|
|
public string CurrentUser { get; set; } = "";
|
|
|
|
[MaxLength(100)]
|
|
public string UserDomain { get; set; } = "";
|
|
|
|
public DateTime? BootTime { get; set; }
|
|
|
|
public DateTime? LastReportAt { get; set; }
|
|
|
|
public bool IsOnline { get; set; }
|
|
|
|
public DateTime CreatedAt { get; set; }
|
|
}
|