20 lines
612 B
C#
20 lines
612 B
C#
using System;
|
|
using Microsoft.EntityFrameworkCore;
|
|
|
|
namespace ManagerService.Data
|
|
{
|
|
[Index(nameof(InstanceId))]
|
|
public class AuditLog
|
|
{
|
|
public string Id { get; set; } = Guid.NewGuid().ToString();
|
|
public string EntityType { get; set; }
|
|
public string EntityId { get; set; }
|
|
public string Action { get; set; }
|
|
public string? UserId { get; set; }
|
|
public string? InstanceId { get; set; }
|
|
public DateTime Timestamp { get; set; } = DateTime.UtcNow;
|
|
public string? OldValues { get; set; }
|
|
public string? NewValues { get; set; }
|
|
}
|
|
}
|