mirror of
https://github.com/bitwarden/server.git
synced 2025-04-06 05:28:15 -05:00
28 lines
884 B
C#
28 lines
884 B
C#
using System;
|
|
using Bit.Core.Utilities;
|
|
using Bit.Core.Enums;
|
|
|
|
namespace Bit.Core.Models.Table
|
|
{
|
|
public class Organization : IDataObject<Guid>
|
|
{
|
|
public Guid Id { get; set; }
|
|
public string Name { get; set; }
|
|
public string BusinessName { get; set; }
|
|
public string BillingEmail { get; set; }
|
|
public string Plan { get; set; }
|
|
public PlanType PlanType { get; set; }
|
|
public short? Seats { get; set; }
|
|
public short? MaxSubvaults { get; set; }
|
|
public string StripeCustomerId { get; set; }
|
|
public string StripeSubscriptionId { get; set; }
|
|
public DateTime CreationDate { get; internal set; } = DateTime.UtcNow;
|
|
public DateTime RevisionDate { get; internal set; } = DateTime.UtcNow;
|
|
|
|
public void SetNewId()
|
|
{
|
|
Id = CoreHelpers.GenerateComb();
|
|
}
|
|
}
|
|
}
|