using System; namespace line_gestao_api.Models; public class AuditLog : ITenantEntity { public Guid Id { get; set; } = Guid.NewGuid(); // Compatibilidade com histórico atual + filtro global. public Guid TenantId { get; set; } public Guid? ActorUserId { get; set; } public Guid ActorTenantId { get; set; } public Guid TargetTenantId { get; set; } public DateTime OccurredAtUtc { get; set; } = DateTime.UtcNow; // Campos legados usados pela tela de histórico. public Guid? UserId { get; set; } public string? UserName { get; set; } public string? UserEmail { 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 string ChangesJson { get; set; } = "[]"; public string MetadataJson { get; set; } = "{}"; public string? RequestPath { get; set; } public string? RequestMethod { get; set; } public string? IpAddress { get; set; } }