29 lines
559 B
C#
29 lines
559 B
C#
|
|
using System.ComponentModel.DataAnnotations;
|
||
|
|
|
||
|
|
namespace TrueCV.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; }
|
||
|
|
}
|