feat(transport): add BundleImportId column on AuditLogEntry
This commit is contained in:
@@ -10,6 +10,7 @@ public class AuditLogEntry
|
|||||||
public string EntityName { get; set; }
|
public string EntityName { get; set; }
|
||||||
public string? AfterStateJson { get; set; }
|
public string? AfterStateJson { get; set; }
|
||||||
public DateTimeOffset Timestamp { get; set; }
|
public DateTimeOffset Timestamp { get; set; }
|
||||||
|
public Guid? BundleImportId { get; set; }
|
||||||
|
|
||||||
public AuditLogEntry(string user, string action, string entityType, string entityId, string entityName)
|
public AuditLogEntry(string user, string action, string entityType, string entityId, string entityName)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -36,5 +36,6 @@ public class AuditLogEntryConfiguration : IEntityTypeConfiguration<AuditLogEntry
|
|||||||
builder.HasIndex(a => a.EntityType);
|
builder.HasIndex(a => a.EntityType);
|
||||||
builder.HasIndex(a => a.EntityId);
|
builder.HasIndex(a => a.EntityId);
|
||||||
builder.HasIndex(a => a.Action);
|
builder.HasIndex(a => a.Action);
|
||||||
|
builder.HasIndex(a => a.BundleImportId).HasDatabaseName("IX_AuditLogEntries_BundleImportId");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user