2025-03-26 11:44:05 -04:00
|
|
|
|
using Bit.Core.Entities;
|
|
|
|
|
|
using Bit.Core.Enums;
|
|
|
|
|
|
using Bit.Core.Utilities;
|
|
|
|
|
|
|
|
|
|
|
|
#nullable enable
|
|
|
|
|
|
|
|
|
|
|
|
namespace Bit.Core.AdminConsole.Entities;
|
|
|
|
|
|
|
|
|
|
|
|
public class OrganizationIntegration : ITableObject<Guid>
|
|
|
|
|
|
{
|
|
|
|
|
|
public Guid Id { get; set; }
|
|
|
|
|
|
public Guid OrganizationId { get; set; }
|
|
|
|
|
|
public IntegrationType Type { get; set; }
|
|
|
|
|
|
public string? Configuration { get; set; }
|
2025-04-07 07:20:18 -07:00
|
|
|
|
public DateTime CreationDate { get; internal set; } = DateTime.UtcNow;
|
2025-03-26 11:44:05 -04:00
|
|
|
|
public DateTime RevisionDate { get; set; } = DateTime.UtcNow;
|
|
|
|
|
|
public void SetNewId() => Id = CoreHelpers.GenerateComb();
|
|
|
|
|
|
}
|