mirror of
https://github.com/bitwarden/server.git
synced 2026-02-04 16:13:12 +08:00
28 lines
870 B
C#
28 lines
870 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 Guid UserId { get; set; }
|
|
public string Name { get; set; }
|
|
public string Plan { get; set; }
|
|
public PlanType PlanType { get; set; }
|
|
public decimal PlanPrice { get; set; }
|
|
public decimal PlanRenewalPrice { get; set; }
|
|
public DateTime? PlanRenewalDate { get; set; }
|
|
public bool PlanTrial { get; set; }
|
|
public short MaxUsers { get; set; }
|
|
public DateTime CreationDate { get; internal set; } = DateTime.UtcNow;
|
|
public DateTime RevisionDate { get; internal set; } = DateTime.UtcNow;
|
|
|
|
public void SetNewId()
|
|
{
|
|
Id = CoreHelpers.GenerateComb();
|
|
}
|
|
}
|
|
}
|