Added alarm notes
WIP Fanuc tool table WIP Siemens Active program fix
This commit is contained in:
@@ -0,0 +1,32 @@
|
||||
using System;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
|
||||
namespace Step.Model.DatabaseModels
|
||||
{
|
||||
[Table("alarm_note")]
|
||||
public class AlarmNoteModel
|
||||
{
|
||||
[Key]
|
||||
[Column("id")]
|
||||
public int NoteId { get; set; }
|
||||
|
||||
[Column("message")]
|
||||
public string Message { get; set; }
|
||||
|
||||
[Column("user_id")]
|
||||
public int UserId { get; set; }
|
||||
|
||||
[ForeignKey("UserId")]
|
||||
public UserModel User { get; set; }
|
||||
|
||||
[Column("alarm_desc_id")]
|
||||
public int AlarmDescriptionId { get; set; }
|
||||
|
||||
[ForeignKey("AlarmDescriptionId")]
|
||||
public virtual AlarmDescriptionsModel AlarmDescription { get; set; }
|
||||
|
||||
[Column("timestamp")]
|
||||
public DateTime DateTime { get; set; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user