1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586 |
- using System;
- using System.Collections.Generic;
- using System.ComponentModel.DataAnnotations;
- using System.ComponentModel.DataAnnotations.Schema;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- namespace EVCB_OCPP.Domain.Models.Database
- {
- /// <summary>
- /// 電樁操作紀錄
- /// </summary>
- [Table("MachineOperateRecord")]
- public class MachineOperateRecord
- {
- public MachineOperateRecord()
- {
- EVSE_Value = string.Empty;
- FinishedOn = new DateTime(1991, 1, 1);
- }
- [DatabaseGenerated(DatabaseGeneratedOption.Identity)]
- [Key]
- public int Id { get; set; }
- /// <summary>
- /// 機器的客戶自訂ID
- /// </summary>
- [StringLength(25)]
- public string ChargePointSerialNumber { get; set; }
- /// <summary>
- /// 隨機序號 和ServerCommand是同一個組序號
- /// </summary>
- [StringLength(36)]
- public string SerialNo { get; set; }
- /// <summary>
- /// 請求類型
- /// </summary>
- public int RequestType { get; set; }
- /// <summary>
- /// 請求內容
- /// </summary>
- [StringLength(36)]
- public string RequestContent { get; set; }
- /// <summary>
- /// 狀態
- /// </summary>
- public int Status { get; set; }
- /// <summary>
- /// EVSE狀態
- /// </summary>
- [StringLength(250)]
- public string EVSE_Value { get; set; }
-
- /// <summary>
- /// EVSE狀態
- /// </summary>
- public int EVSE_Status { get; set; }
- /// <summary>
- /// 建立時間
- /// </summary>
- public DateTime CreatedOn { set; get; }
- /// <summary>
- /// 結束時間
- /// </summary>
- public DateTime FinishedOn { set; get; }
- }
- }
|