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 HBLConsole.Model
{
    /// <summary>
    /// 布尔量报警信息
    /// </summary>
    [Table(nameof(DiscreteAlarmInfo))]
    public class DiscreteAlarmInfo
    {
        [Key]
        public int Id { get; set; }

        /// <summary>
        /// 沿报警（上升沿，下降沿）
        /// </summary>
        public string TrigAlarm { get; set; }

        /// <summary>
        /// 报警信息
        /// </summary>
        public string AlarmInfo { get; set; }

        /// <summary>
        /// 设置外键
        /// </summary>
        [ForeignKey("AlarmSetId")]
        public int AlarmSetId { get; set; }

        /// <summary>
        /// 设置导航属性
        /// </summary>
        public AlarmSet AlarmSet { get; set; }
    }
}
