using FreeSql.DataAnnotations; using System; namespace CapMachine.Model.Alarm { /// /// 报警配置信息 /// [Table(Name = "AlarmConfig")] public class AlarmConfig { /// /// 主键 /// [Column(IsPrimary = true, IsIdentity = true)] public long Id { get; set; } /// /// 报警配置类别 /// [Column(Name = "Category", IsNullable = false, StringLength = 20)] public string? Category { get; set; } /// /// 报警的地址 /// [Column(Name = "Address", IsNullable = false, StringLength = 20)] public string? Address { get; set; } /// /// 报警等级 /// [Column(Name = "AlarmLevel", IsNullable = false)] public AlarmLevel AlarmLevel { get; set; } /// /// 激活类型 /// [Column(Name = "ActiveType", IsNullable = false)] public ActiveType ActiveType { get; set; } /// /// 报警配置名称 /// [Column(Name = "Name", IsNullable = false, StringLength = 50)] public string? Name { get; set; } /// /// 报警消息 /// [Column(Name = "Message", IsNullable = false, StringLength = 150)] public string? Message { get; set; } /// /// 布尔激活的阀值 /// [Column(Name = "BoolActiveValue", IsNullable = false)] public bool BoolActiveValue { get; set; } /// /// 报警上限阀值 /// [Column(Name = "ThresholdUp", DbType = "decimal(8, 3)", IsNullable = true)] public decimal ThresholdUp { get; set; } /// /// 报警下限阀值 /// [Column(Name = "ThresholdDown", DbType = "decimal(8, 3)", IsNullable = true)] public decimal ThresholdDown { get; set; } [Column(ServerTime = DateTimeKind.Local, CanUpdate = false)] public DateTime CreateTime { get; set; } } }