2023-08-15 22:52:30 -05:00
|
|
|
|
using System.ComponentModel.DataAnnotations;
|
|
|
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
|
|
|
|
|
|
|
|
|
namespace DamageAssesment.Api.SurveyResponses.Db
|
|
|
|
|
{
|
|
|
|
|
public class SurveyResponse
|
|
|
|
|
{
|
|
|
|
|
[Key]
|
|
|
|
|
public int Id { get; set; }
|
|
|
|
|
|
|
|
|
|
[ForeignKey("Survey")]
|
|
|
|
|
public int SurveyId { get; set; }
|
|
|
|
|
[ForeignKey("Location")]
|
2023-09-13 00:28:24 -05:00
|
|
|
|
public int LocationId { get; set; }
|
2023-08-15 22:52:30 -05:00
|
|
|
|
|
|
|
|
|
[StringLength(6)]
|
|
|
|
|
[ForeignKey("Employee")]
|
2023-09-13 00:28:24 -05:00
|
|
|
|
public int EmployeeId { get; set; }
|
2023-08-15 22:52:30 -05:00
|
|
|
|
|
2023-09-04 20:31:41 -05:00
|
|
|
|
public DateTime? CreatedDate { get; set; } = DateTime.Now;
|
2023-08-15 22:52:30 -05:00
|
|
|
|
|
2023-09-04 20:31:41 -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
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
}
|