Alarm attachments
This commit is contained in:
@@ -0,0 +1,36 @@
|
||||
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 Step.Model.DatabaseModels
|
||||
{
|
||||
[Table("alarm_file")]
|
||||
public class AlarmFileModel
|
||||
{
|
||||
[Key]
|
||||
[Column("id")]
|
||||
public int AttachmentId { get; set; }
|
||||
|
||||
[Column("file_name")]
|
||||
public string FileName { get; set; }
|
||||
|
||||
[Column("local_file_name")]
|
||||
public string LocalFileName { get; set; }
|
||||
|
||||
[Column("alarm_desc_id")]
|
||||
public int AlarmDescriptionId { get; set; }
|
||||
|
||||
[ForeignKey("AlarmDescriptionId")]
|
||||
public virtual AlarmDescriptionsModel AlarmDescription { get; set; }
|
||||
|
||||
[Column("user_id")]
|
||||
public int? UserId { get; set; }
|
||||
|
||||
[ForeignKey("UserId")]
|
||||
public UserModel User { get; set; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user