25 lines
629 B
C#
25 lines
629 B
C#
using System.ComponentModel.DataAnnotations.Schema;
|
|
|
|
namespace TWASys_App.DBModels
|
|
{
|
|
public class StorageArea_has_StorageServer
|
|
{
|
|
|
|
[ForeignKey("IdStorage")]
|
|
public long IdStorage { get; set; }
|
|
|
|
[ForeignKey("IdStorageServer")]
|
|
public long IdStorageServer { get; set; }
|
|
|
|
[Column("priority", TypeName = "int")]
|
|
public int Priority { get; set; } = 0;
|
|
|
|
[Column("createDate", TypeName = "datetime")]
|
|
public DateTime CreateDate { get; set; } = DateTime.UtcNow;
|
|
|
|
[Column("status", TypeName = "int")]
|
|
public int Status { get; set; } = 0;
|
|
|
|
}
|
|
}
|