using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Text.Json.Serialization;
namespace Mirle.Component.Database.Model.WES
{
///
/// 即時軟體控制模式類別
///
[Table("CUR_SOFTWARE_OPERATION_MODE")]
public class CurSoftwareOperationModeDto
{
///
/// 軟體編號
///
/// [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; }
///
/// 起始時間
///
[Column(Name = "START_TIME")]
[Required, Key, JsonPropertyName("START_TIME"), JsonPropertyOrder(2)]
public DateTime START_TIME { get; set; }
///
/// 結束時間
///
[Column(Name = "END_TIME")]
[JsonPropertyName("END_TIME"), JsonPropertyOrder(3)]
public DateTime? END_TIME { get; set; }
///
/// 控制模式
///
///
/// 0 = Online Remote
/// 1 = Online Local
/// 2 = Offline
/// 3 = Unknown
///
[Column(Name = "OPERATION_MODE")]
[Required, JsonPropertyName("OPERATION_MODE"), JsonPropertyOrder(4)]
public int OPERATION_MODE { get; set; }
///
/// 程式名稱
///
[Column(Name = "PROGRAM_NAME")]
[Required, StringLength(30), JsonPropertyName("PROGRAM_NAME"), JsonPropertyOrder(5)]
public string PROGRAM_NAME { get; set; }
}
}