shoc-backend/Data.SeaHavenIndustries/Models/WorkOrderAuditLog.cs

24 lines
880 B
C#

using System.ComponentModel.DataAnnotations.Schema;
namespace Data.SeaHavenIndustries
{
public class WorkOrderAuditLog
{
public int Id { get; set; }
public int WorkOrderId { get; set; }
[ForeignKey(nameof(WorkOrderId))]
public virtual WorkOrder? WorkOrder { get; set; }
public string? UserId { get; set; }
[ForeignKey(nameof(UserId))]
public virtual ApplicationUser? User { get; set; }
public string? FieldName { get; set; }
public string? OldValue { get; set; }
public string? NewValue { get; set; }
public string? Action { get; set; }
public string? EventType { get; set; }
public string? ActorType { get; set; }
public int? DispatchId { get; set; }
public string? CorrelationId { get; set; }
public DateTime CreatedAt { get; set; }
}
}