update news & events
This commit is contained in:
73
TWASys-App/DBModels/LocalServer.cs
Normal file
73
TWASys-App/DBModels/LocalServer.cs
Normal file
@ -0,0 +1,73 @@
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
|
||||
namespace TWASys_App.DBModels
|
||||
{
|
||||
public class LocalServer
|
||||
{
|
||||
[Key]
|
||||
[DatabaseGenerated(DatabaseGeneratedOption.Identity)]
|
||||
[Column("idLocalServer")]
|
||||
public int IdLocalServer { get; set; } = 0;
|
||||
|
||||
[StringLength(20)]
|
||||
[Column("ipPrivateServer")]
|
||||
public string IpPrivateServer { get; set; } = "";
|
||||
|
||||
[StringLength(100)]
|
||||
[Column("ipPrivateServer6")]
|
||||
public string IpPrivateServer6 { get; set; } = "";
|
||||
|
||||
[StringLength(100)]
|
||||
[Column("ipPublicServer")]
|
||||
public string IpPublicServer { get; set; } = "";
|
||||
|
||||
[StringLength(45)]
|
||||
[Column("pathServer")]
|
||||
public string PathServer { get; set; } = "";
|
||||
|
||||
[StringLength(100)]
|
||||
[Column("serialNumber")]
|
||||
public string SerialNumber { get; set; } = "";
|
||||
|
||||
// Ảnh gốc ghi "osVesion" (sai chính tả). Giữ nguyên để khớp DB.
|
||||
[StringLength(100)]
|
||||
[Column("osVesion")]
|
||||
public string OsVersion { get; set; } = "";
|
||||
|
||||
[StringLength(100)]
|
||||
[Column("osName")]
|
||||
public string OsName { get; set; } = "";
|
||||
|
||||
[StringLength(45)]
|
||||
[Column("osArch")]
|
||||
public string OsArch { get; set; } = "";
|
||||
|
||||
// Ảnh gốc ghi "osKernal". Giữ nguyên để khớp DB.
|
||||
[StringLength(100)]
|
||||
[Column("osKernal")]
|
||||
public string OsKernel { get; set; } = "";
|
||||
|
||||
[Column("socketNum")]
|
||||
public int SocketNum { get; set; } = 0;
|
||||
|
||||
[StringLength(150)]
|
||||
[Column("cpuName")]
|
||||
public string CpuName { get; set; } = "";
|
||||
|
||||
[Column("totalRam")]
|
||||
public int TotalRam { get; set; } = 0;
|
||||
|
||||
[StringLength(100)]
|
||||
[Column("biosVendor")]
|
||||
public string BiosVendor { get; set; } = "";
|
||||
|
||||
[StringLength(100)]
|
||||
[Column("productUUID")]
|
||||
public string ProductUuid { get; set; } = "";
|
||||
|
||||
[Column("status")]
|
||||
public int Status { get; set; } = 0;
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user