1
0
mirror of https://github.com/bitwarden/server.git synced 2025-02-22 02:51:33 +01:00

add enabled bit to organization

This commit is contained in:
Kyle Spearrin 2017-04-10 22:33:39 -04:00
parent ae1ff37e72
commit 340f6f03c5
4 changed files with 7 additions and 0 deletions

View File

@ -16,6 +16,7 @@ namespace Bit.Core.Models.Table
public short? MaxSubvaults { get; set; }
public string StripeCustomerId { get; set; }
public string StripeSubscriptionId { get; set; }
public bool Enabled { get; set; } = true;
public DateTime CreationDate { get; internal set; } = DateTime.UtcNow;
public DateTime RevisionDate { get; internal set; } = DateTime.UtcNow;

View File

@ -9,6 +9,7 @@
@MaxSubvaults SMALLINT,
@StripeCustomerId VARCHAR(50),
@StripeSubscriptionId VARCHAR(50),
@Enabled BIT,
@CreationDate DATETIME2(7),
@RevisionDate DATETIME2(7)
AS
@ -27,6 +28,7 @@ BEGIN
[MaxSubvaults],
[StripeCustomerId],
[StripeSubscriptionId],
[Enabled],
[CreationDate],
[RevisionDate]
)
@ -42,6 +44,7 @@ BEGIN
@MaxSubvaults,
@StripeCustomerId,
@StripeSubscriptionId,
@Enabled,
@CreationDate,
@RevisionDate
)

View File

@ -9,6 +9,7 @@
@MaxSubvaults SMALLINT,
@StripeCustomerId VARCHAR(50),
@StripeSubscriptionId VARCHAR(50),
@Enabled BIT,
@CreationDate DATETIME2(7),
@RevisionDate DATETIME2(7)
@ -28,6 +29,7 @@ BEGIN
[MaxSubvaults] = @MaxSubvaults,
[StripeCustomerId] = @StripeCustomerId,
[StripeSubscriptionId] = @StripeSubscriptionId,
[Enabled] = @Enabled,
[CreationDate] = @CreationDate,
[RevisionDate] = @RevisionDate
WHERE

View File

@ -9,6 +9,7 @@
[MaxSubvaults] SMALLINT NULL,
[StripeCustomerId] VARCHAR (50) NULL,
[StripeSubscriptionId] VARCHAR (50) NULL,
[Enabled] BIT NOT NULL,
[CreationDate] DATETIME2 (7) NOT NULL,
[RevisionDate] DATETIME2 (7) NOT NULL,
CONSTRAINT [PK_Organization] PRIMARY KEY CLUSTERED ([Id] ASC)