52 lines
1.4 KiB
C#
52 lines
1.4 KiB
C#
using FreeSql.DataAnnotations;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace FATrace.Model
|
|
{
|
|
/// <summary>
|
|
/// 报警 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 = "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; }
|
|
}
|
|
}
|