DamageAssessment_Backend/DamageAssesmentApi/DamageAssesment.Api.Attachments/Db/Attachment.cs

22 lines
579 B
C#
Raw Permalink Normal View History

2023-08-15 22:52:30 -05:00
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace DamageAssesment.Api.Attachments.Db
{
2023-10-12 15:01:24 -05:00
[Table("AnswerAttachments")]
2023-08-15 22:52:30 -05:00
public class Attachment
{
[Key]
public int Id { get; set; }
[Required]
public string URI { get; set; }
[ForeignKey("Answer")]
public int? AnswerId { get; set; }
[ForeignKey("SurveyResponse")]
public int ResponseId { get; set; }
public bool IsDeleted { get; set; }
public string FileName { get; set; }
}
}