1
0
mirror of https://github.com/bitwarden/server synced 2025-12-14 15:23:42 +00:00

Organization integrations and configuration database schemas (#5553)

* Organization integrations and configuration database schemas

* Format EF files
This commit is contained in:
Matt Bishop
2025-03-26 11:44:05 -04:00
committed by GitHub
parent 6f227c31e2
commit d4b0058372
22 changed files with 10106 additions and 12 deletions

View File

@@ -0,0 +1,18 @@
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; }
public DateTime CreationDate { get; set; } = DateTime.UtcNow;
public DateTime RevisionDate { get; set; } = DateTime.UtcNow;
public void SetNewId() => Id = CoreHelpers.GenerateComb();
}