41 lines
1.1 KiB
C#
41 lines
1.1 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.ComponentModel.DataAnnotations;
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
|
using static Thermo.Active.Model.Constants;
|
|
|
|
namespace Thermo.Active.Model.DatabaseModels
|
|
{
|
|
[Table("alarm_occurrence")]
|
|
public class AlarmOccurrencesModel
|
|
{
|
|
[Key]
|
|
[Column("id")]
|
|
public int AlarmOccurrenceId { get; set; }
|
|
|
|
[Column("alarm_id")]
|
|
public int AlarmId { get; set; }
|
|
|
|
[Column("alarm_description_id")]
|
|
[ForeignKey("AlarmDescription")]
|
|
public int? AlarmDescriptionId { get; set; }
|
|
|
|
[Column("source")]
|
|
public ALARM_SOURCE Source { get; set; }
|
|
|
|
[Column("type")]
|
|
public ALARM_TYPE Type { get; set; }
|
|
|
|
[Column("processes")]
|
|
public int Processes { get; set; }
|
|
|
|
[Column("timestamp")]
|
|
public DateTime TimeStamp { get; set; }
|
|
|
|
//[Column("plc_message_id")]
|
|
//public int? PlcMessageId { get; set; }
|
|
|
|
public AlarmDescriptionsModel AlarmDescription { get; set; }
|
|
public List<AlarmUserModel> Users { get; set; }
|
|
}
|
|
} |