DamageAssessment_Backend/DamageAssesmentApi/DamageAssesment.Api.Responses/Db/SurveyResponse.cs

33 lines
850 B
C#
Raw Normal View History

2023-08-15 22:52:30 -05:00
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
2023-10-04 17:45:51 -05:00
namespace DamageAssesment.Api.Responses.Db
2023-08-15 22:52:30 -05:00
{
2023-10-12 15:01:24 -05:00
[Table("SurveyResponses")]
2023-08-15 22:52:30 -05:00
public class SurveyResponse
{
[Key]
public int Id { get; set; }
[ForeignKey("Survey")]
public int SurveyId { get; set; }
[ForeignKey("Location")]
public int LocationId { get; set; }
2023-08-15 22:52:30 -05:00
[StringLength(6)]
[ForeignKey("Employee")]
public int EmployeeId { get; set; }
2023-08-15 22:52:30 -05:00
public DateTime? CreatedDate { get; set; } = DateTime.Now;
2023-08-15 22:52:30 -05:00
[StringLength(50)]
public string? ClientDevice { get; set; }
[StringLength(250)]
public string? KeyAnswerResult { get; set; }
public double? Longitute { get; set; }
public double? Latitude { get; set; }
2023-08-15 22:52:30 -05:00
}
}