增加报警
This commit is contained in:
59
CapMachine.Model/Alarm/HistoryAlarm.cs
Normal file
59
CapMachine.Model/Alarm/HistoryAlarm.cs
Normal file
@@ -0,0 +1,59 @@
|
||||
using FreeSql.DataAnnotations;
|
||||
using System;
|
||||
|
||||
namespace CapMachine.Model.Alarm
|
||||
{
|
||||
/// <summary>
|
||||
/// PLC报警 HistoryAlarm
|
||||
/// </summary>
|
||||
[Table(Name = "HistoryAlarm")]
|
||||
public class HistoryAlarm
|
||||
{
|
||||
/// <summary>
|
||||
/// 主键
|
||||
/// </summary>
|
||||
[Column(IsPrimary = true, IsIdentity = true)]
|
||||
public long Id { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 报警消息分类
|
||||
/// </summary>
|
||||
[Column(Name = "Category", IsNullable = false, StringLength = 20)]
|
||||
public string? Category { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 报警等级
|
||||
/// </summary>
|
||||
[Column(Name = "AlarmLevel", IsNullable = false)]
|
||||
public AlarmLevel AlarmLevel { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 报警名称
|
||||
/// </summary>
|
||||
[Column(Name = "Name", IsNullable = false, StringLength = 50)]
|
||||
public string? Name { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 报警消息
|
||||
/// </summary>
|
||||
[Column(Name = "Message", IsNullable = false, StringLength = 150)]
|
||||
public string? Message { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 报警时长
|
||||
/// 秒
|
||||
/// </summary>
|
||||
[Column(Name = "Duration")]
|
||||
public long Duration { get; set; }
|
||||
|
||||
[Column(Name = "CreateTime")]
|
||||
public DateTime CreateTime { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// ///////////////////////////////////////////导航属性///////////////////////////////////////////////////////
|
||||
/// </summary>
|
||||
|
||||
//public Guid? AlarmAddressId { get; set; }
|
||||
//public AlarmAddress AlarmAddress { get; set; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user