using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Text.Json.Serialization;
namespace Mirle.Component.Database.Model.WES
{
///
/// 軟體基本資料類別
///
[Table("CFG_SOFTWARE")]
public class CfgSoftwareDto : CommonDto
{
///
/// 軟體編號
///
/// [Sofeware Type]C[Floor][Sequence * 2]
[Column(Name = "SOFTWARE_ID")]
[Required, Key, StringLength(7), JsonPropertyName("SOFTWARE_ID"), JsonPropertyOrder(1)]
public string SOFTWARE_ID { get; set; }
///
/// 軟體類別
///
///
/// AGV
/// SHT
/// PLC
///
[Column(Name = "SOFTWARE_TYPE")]
[Required, StringLength(3), JsonPropertyName("SOFTWARE_TYPE"), JsonPropertyOrder(2)]
public string SOFTWARE_TYPE { get; set; }
///
/// 軟體名稱
///
[Column(Name = "SOFTWARE_NAME")]
[StringLength(30), JsonPropertyName("SOFTWARE_NAME"), JsonPropertyOrder(3)]
public string SOFTWARE_NAME { get; set; }
///
/// 軟體敘述
///
[Column(Name = "SOFTWARE_DESC")]
[StringLength(50), JsonPropertyName("SOFTWARE_DESC"), JsonPropertyOrder(4)]
public string SOFTWARE_DESC { get; set; }
///
/// 軟體網路位址
///
/// 127.0.0.1
[Column(Name = "SOFTWARE_ADDRESS")]
[Required, StringLength(15), JsonPropertyName("SOFTWARE_ADDRESS"), JsonPropertyOrder(5)]
public string SOFTWARE_ADDRESS { get; set; }
///
/// 軟體通訊埠口
///
/// 8080
[Column(Name = "SOFTWARE_PORT")]
[Required, JsonPropertyName("SOFTWARE_PORT"), JsonPropertyOrder(6)]
public int SOFTWARE_PORT { get; set; }
}
}