using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace Khd.Core.Domain.Models
{
    [Table("dms_record_alarm_info")]
    public class DmsRecordAlarmInfo
    {
        [Key]
        [Column("alarm_id")]
        public long AlarmId { get; set; }

        [Column("device_id")]
        public long DeviceId { get; set; }

        [Column("alarm_rule_id")]
        public long AlarmRuleId { get; set; }

        [Column("alarm_begin_time")]
        public DateTime AlarmBeginTime { get; set; }

        [Column("alarm_end_time")]
        public DateTime AlarmEndTime { get; set; }

        [Column("continue_time")]
        public long ContinueTime { get; set; }

        [Column("alarm_reason")]
        public string AlarmReason { get; set; }

        [Column("alarm_data")]
        public string AlarmData { get; set; }

        [Column("alarm_status")]
        public string AlarmStatus { get; set; }

        [Column("handle_suggest")]
        public string HandleSuggest { get; set; }

        [Column("notice_status")]
        public string NoticeStatus { get; set; }

        [Column("handle_user")]
        public string HandleUser { get; set; }

        [Column("handle_time")]
        public DateTime HandleTime { get; set; }

        [Column("cause_analysis")]
        public string CauseAnalysis { get; set; }

        [Column("remark")]
        public string Remark { get; set; }

        [Column("create_by")]
        public string CreateBy { get; set; }

        [Column("create_time")]
        public DateTime CreateTime { get; set; }

        [Column("update_by")]
        public string UpdateBy { get; set; }

        [Column("update_time")]
        public DateTime UpdateTime { get; set; }
    }
}
