2026-01-20 20:58:12 +01:00
|
|
|
using System.ComponentModel.DataAnnotations;
|
|
|
|
|
|
2026-01-22 20:47:55 +00:00
|
|
|
namespace RealCV.Domain.Entities;
|
2026-01-20 20:58:12 +01:00
|
|
|
|
|
|
|
|
public class AuditLog
|
|
|
|
|
{
|
|
|
|
|
[Key]
|
|
|
|
|
public Guid Id { get; set; }
|
|
|
|
|
|
|
|
|
|
public Guid UserId { get; set; }
|
|
|
|
|
|
|
|
|
|
[Required]
|
|
|
|
|
[MaxLength(64)]
|
|
|
|
|
public string Action { get; set; } = string.Empty;
|
|
|
|
|
|
|
|
|
|
[MaxLength(128)]
|
|
|
|
|
public string? EntityType { get; set; }
|
|
|
|
|
|
|
|
|
|
public Guid? EntityId { get; set; }
|
|
|
|
|
|
|
|
|
|
[MaxLength(1024)]
|
|
|
|
|
public string? Details { get; set; }
|
|
|
|
|
|
|
|
|
|
[MaxLength(64)]
|
|
|
|
|
public string? IpAddress { get; set; }
|
|
|
|
|
|
|
|
|
|
public DateTime CreatedAt { get; set; }
|
|
|
|
|
}
|