mirror of
https://github.com/bitwarden/server
synced 2025-12-22 11:13:27 +00:00
* Use extended cache for caching integration configuration details * Alter strategy to use one cache / database call to retrieve all configurations for an event (including wildcards) * Renamed migration per @withinfocus suggestion
19 lines
664 B
C#
19 lines
664 B
C#
using Bit.Core.Entities;
|
|
using Bit.Core.Enums;
|
|
using Bit.Core.Utilities;
|
|
|
|
namespace Bit.Core.AdminConsole.Entities;
|
|
|
|
public class OrganizationIntegrationConfiguration : ITableObject<Guid>
|
|
{
|
|
public Guid Id { get; set; }
|
|
public Guid OrganizationIntegrationId { get; set; }
|
|
public EventType? EventType { get; set; }
|
|
public string? Configuration { get; set; }
|
|
public string? Template { get; set; }
|
|
public DateTime CreationDate { get; internal set; } = DateTime.UtcNow;
|
|
public DateTime RevisionDate { get; set; } = DateTime.UtcNow;
|
|
public string? Filters { get; set; }
|
|
public void SetNewId() => Id = CoreHelpers.GenerateComb();
|
|
}
|