line-gestao-api/Dtos/AuditLogDtos.cs

35 lines
1011 B
C#

using System;
using System.Collections.Generic;
namespace line_gestao_api.Dtos;
public class AuditLogDto
{
public Guid Id { get; set; }
public DateTime OccurredAtUtc { get; set; }
public string Action { get; set; } = string.Empty;
public string Page { get; set; } = string.Empty;
public string EntityName { get; set; } = string.Empty;
public string? EntityId { get; set; }
public string? EntityLabel { get; set; }
public Guid? UserId { get; set; }
public string? UserName { get; set; }
public string? UserEmail { get; set; }
public string? RequestPath { get; set; }
public string? RequestMethod { get; set; }
public string? IpAddress { get; set; }
public List<AuditFieldChangeDto> Changes { get; set; } = new();
}
public class AuditFieldChangeDto
{
public string Field { get; set; } = string.Empty;
public string ChangeType { get; set; } = string.Empty;
public string? OldValue { get; set; }
public string? NewValue { get; set; }
}