using System.ComponentModel.DataAnnotations;
using System.Text.Json.Serialization;
namespace Mirle.Component.Database.Model.WES.Config
{
///
/// Class for peripheral equipment config
///
public class CfgPeripheralEquipmentDto
{
///
/// Warhouse's storage ID
///
[Column(Name = "STORAGE_ID")]
[Required, Key, StringLength(7), JsonPropertyName("STORAGE_ID"), JsonPropertyOrder(1)]
public string STORAGE_ID { get; set; }
///
/// Station type
///
///
/// 0: Port
/// 1: Lifter
/// 2: Repair door
///
[Column(Name = "STATION_TYPE")]
[Required, Key, StringLength(9), JsonPropertyName("STATION_TYPE"), JsonPropertyOrder(2)]
public int STATION_TYPE { get; set; }
///
/// Station ID
///
[Column(Name = "PLCC_STATION_ID")]
[Required, Key, StringLength(9), JsonPropertyName("PLCC_STATION_ID"), JsonPropertyOrder(3)]
public string PLCC_STATION_ID { get; set; }
///
/// Porgrammable logic controller software ID
///
[Column(Name = "PLCC_SOFTWARE_ID")]
[Required, StringLength(6), JsonPropertyName("PLCC_SOFTWARE_ID"), JsonPropertyOrder(4)]
public string PLCC_SOFTWARE_ID { get; set; }
///
/// Shuttle car controller station ID
///
[Column(Name = "SHTC_STATION_ID")]
[StringLength(10), JsonPropertyName("SHTC_STATION_ID"), JsonPropertyOrder(5)]
public string SHTC_STATION_ID { get; set; }
///
/// Shuttle car controller software ID
///
[Column(Name = "SHTC_SOFTWARE_ID")]
[StringLength(10), JsonPropertyName("SHTC_SOFTWARE_ID"), JsonPropertyOrder(6)]
public string SHTC_SOFTWARE_ID { get; set; }
///
/// Shuttle car controller station ID
///
[Column(Name = "AGVC_STATION_ID")]
[StringLength(10), JsonPropertyName("AGVC_STATION_ID"), JsonPropertyOrder(7)]
public string AGVC_STATION_ID { get; set; }
///
/// Shuttle car controller software ID
///
[Column(Name = "AGVC_SOFTWARE_ID")]
[StringLength(10), JsonPropertyName("AGVC_SOFTWARE_ID"), JsonPropertyOrder(8)]
public string AGVC_SOFTWARE_ID { get; set; }
///
/// Storage lock/unlock status
///
[Column(Name = "STORAGE_LOCK_STATUS")]
[Required, JsonPropertyName("STORAGE_LOCK_STATUS"), JsonPropertyOrder(9)]
public int STORAGE_LOCK_STATUS { get; set; }
}
}