29 lines
794 B
C#
29 lines
794 B
C#
using System.ComponentModel.DataAnnotations;
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
|
|
|
namespace TWASys_App.DBModels
|
|
{
|
|
public class StorageServer
|
|
{
|
|
[Key]
|
|
[DatabaseGenerated(DatabaseGeneratedOption.Identity)]
|
|
public long IdStorageServer { get; set; }
|
|
public long? IdEmp { get; set; }
|
|
|
|
[ForeignKey("IdTypeStorageServer")]
|
|
public long IdTypeStorageServer { get; set; }
|
|
|
|
public string StorageName { get; set; } = "";
|
|
|
|
public DateTime? CreateDate { get; set; }
|
|
|
|
public int? Size { get; set; } = null;
|
|
public string ControllerID { get; set; } = "";
|
|
|
|
public int Status { get; set; } = 0;
|
|
|
|
[NotMapped]
|
|
public TypeStorageServer TypeStorageServer { set; get; } = null!;
|
|
}
|
|
}
|