mirror of
https://github.com/bitwarden/server
synced 2025-12-10 13:23:27 +00:00
* Organization integration creation, update, and deletion database logic * Additional procs and entity tweaks * Use check * Couple newlines * Forgot to script the two org procs
19 lines
575 B
C#
19 lines
575 B
C#
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; internal set; } = DateTime.UtcNow;
|
|
public DateTime RevisionDate { get; set; } = DateTime.UtcNow;
|
|
public void SetNewId() => Id = CoreHelpers.GenerateComb();
|
|
}
|