line-gestao-api/Models/AuditLog.cs

29 lines
819 B
C#

using System;
namespace line_gestao_api.Models;
public class AuditLog : ITenantEntity
{
public Guid Id { get; set; } = Guid.NewGuid();
public Guid TenantId { get; set; }
public DateTime OccurredAtUtc { get; set; } = DateTime.UtcNow;
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? RequestPath { get; set; }
public string? RequestMethod { get; set; }
public string? IpAddress { get; set; }
}