using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Text.Json.Serialization;
namespace Mirle.Component.Database.Model.WES
{
///
/// 歷史通訊紀錄類別
///
[Table("HIS_COMMUNICATION_LOG")]
public class HisCommunicationLogDto
{
///
/// 時間戳記
///
[Column(Name = "TIMETICK")]
[Required, JsonPropertyName("TIMETICK"), JsonPropertyOrder(1)]
public DateTime TIMETICK { get; set; }
///
/// 服務端
///
[Column(Name = "HOST")]
[Required, StringLength(7), JsonPropertyName("HOST"), JsonPropertyOrder(2)]
public string HOST { get; set; }
///
/// 客戶端
///
[Column(Name = "CLIENT")]
[Required, StringLength(7), JsonPropertyName("CLIENT"), JsonPropertyOrder(3)]
public string CLIENT { get; set; }
///
/// 訊息編號
///
[Column(Name = "MESSAGE_ID")]
[Required, JsonPropertyName("MESSAGE_ID"), JsonPropertyOrder(4)]
public string MESSAGE_ID { get; set; }
///
/// 訊息內容
///
[Column(Name = "MESSAGE_CONTENT")]
[JsonPropertyName("MESSAGE_CONTENT"), JsonPropertyOrder(5)]
public string MESSAGE_CONTENT { get; set; }
///
/// 傳送狀態
///
///
/// 0 = Success
/// 1 = Failed
///
[Column(Name = "STATUS")]
[Required, JsonPropertyName("STATUS"), JsonPropertyOrder(6)]
public int STATUS { get; set; }
///
/// 程式名稱
///
[Column(Name = "PROGRAM_NAME")]
[Required, StringLength(30), JsonPropertyName("PROGRAM_NAME"), JsonPropertyOrder(7)]
public string PROGRAM_NAME { get; set; }
}
}