26 lines
653 B
C#
26 lines
653 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 string ControllerID { get; set; } = "";
|
|
|
|
public int Status { get; set; } = 0;
|
|
}
|
|
}
|