using System.ComponentModel.DataAnnotations;

namespace RealCV.Domain.Entities;

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; }
}
