1
0
mirror of https://github.com/bitwarden/server synced 2026-01-06 18:43:36 +00:00

WIP: Organization sponsorship flow

This commit is contained in:
Matt Gibson
2021-10-29 18:43:45 -04:00
parent 0cbeb75b29
commit b8fdbbcb9f
11 changed files with 333 additions and 0 deletions

View File

@@ -0,0 +1,24 @@
using System;
using Bit.Core.Utilities;
namespace Bit.Core.Models.Table
{
public class OrganizationSponsorship : ITableObject<Guid>
{
public Guid Id { get; set; }
public Guid InstallationId { get; set; }
public Guid SponsoringOrganizationId { get; set; }
public Guid SponsoringOrganizationUserId { get; set; }
public Guid SponsoringUserId { get; set; }
public Guid? SponsoredOrganizationId { get; set; }
public bool CloudSponsor { get; set; }
public DateTime? LastSyncDate { get; set; }
public byte TimesRenewedWithoutValidation { get; set; }
public DateTime? SponsorshipLapsedDate { get; set; }
public void SetNewId()
{
Id = CoreHelpers.GenerateComb();
}
}
}