Added maintenance attachments API
This commit is contained in:
@@ -0,0 +1,27 @@
|
||||
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("maintenance_file")]
|
||||
public class MaintenanceFileModel
|
||||
{
|
||||
[Key]
|
||||
[Column("id")]
|
||||
public int AttachmentId { get; set; }
|
||||
|
||||
[Column("file_name")]
|
||||
public string FileName { get; set; }
|
||||
|
||||
[Column("maintenance_id")]
|
||||
public int MaintenanceId { get; set; }
|
||||
|
||||
[ForeignKey("MaintenanceId")]
|
||||
public MaintenanceModel Maintenance { get; set; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user