Files
server/src/Core/Models/Table/Organization.cs

27 lines
837 B
C#
Raw Normal View History

using System;
using Bit.Core.Utilities;
using Bit.Core.Enums;
2017-03-08 21:45:08 -05:00
namespace Bit.Core.Models.Table
{
public class Organization : IDataObject<Guid>
{
public Guid Id { get; set; }
public string Name { get; set; }
2017-04-04 12:57:50 -04:00
public string BusinessName { get; set; }
public string BillingEmail { get; set; }
public string Plan { get; set; }
public PlanType PlanType { get; set; }
public short MaxUsers { get; set; }
2017-04-04 12:57:50 -04:00
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();
}
}
}