36 lines
1.1 KiB
C#

using Marco.Pms.Model.Employees;
using Marco.Pms.Model.Utilities;
using Microsoft.AspNetCore.Mvc.ModelBinding.Validation;
using System.ComponentModel.DataAnnotations.Schema;
namespace Marco.Pms.Model.ServiceProject
{
public class JobUpdateLog : TenantRelation
{
public Guid Id { get; set; }
public Guid JobTicketId { get; set; }
[ValidateNever]
[ForeignKey("JobTicketId")]
public JobTicket? JobTicket { get; set; }
public Guid? StatusId { get; set; }
[ValidateNever]
[ForeignKey("StatusId")]
public JobStatus? Status { get; set; }
public Guid? NextStatusId { get; set; } // Current status
[ValidateNever]
[ForeignKey("NextStatusId")]
public JobStatus? NextStatus { get; set; }
public string Comment { get; set; } = string.Empty;
public string Description { get; set; } = string.Empty;
public DateTime UpdatedAt { get; set; }
public Guid UpdatedById { get; set; }
[ValidateNever]
[ForeignKey("UpdatedById")]
public Employee? UpdatedBy { get; set; }
}
}