1
0
mirror of https://github.com/bitwarden/server.git synced 2024-12-26 17:37:36 +01:00

sproc updates

This commit is contained in:
Kyle Spearrin 2017-02-28 22:42:52 -05:00
parent 3e183a74f4
commit 321183c570
6 changed files with 8 additions and 7 deletions

View File

@ -3,6 +3,7 @@
@OrganizationId UNIQUEIDENTIFIER, @OrganizationId UNIQUEIDENTIFIER,
@UserId UNIQUEIDENTIFIER, @UserId UNIQUEIDENTIFIER,
@Email NVARCHAR(50), @Email NVARCHAR(50),
@Key VARCHAR(MAX),
@Status TINYINT, @Status TINYINT,
@Type TINYINT, @Type TINYINT,
@CreationDate DATETIME2(7), @CreationDate DATETIME2(7),
@ -17,6 +18,7 @@ BEGIN
[OrganizationId], [OrganizationId],
[UserId], [UserId],
[Email], [Email],
[Key],
[Status], [Status],
[Type], [Type],
[CreationDate], [CreationDate],
@ -28,6 +30,7 @@ BEGIN
@OrganizationId, @OrganizationId,
@UserId, @UserId,
@Email, @Email,
@Key,
@Status, @Status,
@Type, @Type,
@CreationDate, @CreationDate,

View File

@ -3,6 +3,7 @@
@OrganizationId UNIQUEIDENTIFIER, @OrganizationId UNIQUEIDENTIFIER,
@UserId UNIQUEIDENTIFIER, @UserId UNIQUEIDENTIFIER,
@Email NVARCHAR(50), @Email NVARCHAR(50),
@Key VARCHAR(MAX),
@Status TINYINT, @Status TINYINT,
@Type TINYINT, @Type TINYINT,
@CreationDate DATETIME2(7), @CreationDate DATETIME2(7),
@ -17,6 +18,7 @@ BEGIN
[OrganizationId] = @OrganizationId, [OrganizationId] = @OrganizationId,
[UserId] = @UserId, [UserId] = @UserId,
[Email] = @Email, [Email] = @Email,
[Key] = @Key,
[Status] = @Status, [Status] = @Status,
[Type] = @Type, [Type] = @Type,
[CreationDate] = @CreationDate, [CreationDate] = @CreationDate,

View File

@ -2,7 +2,6 @@
@Id UNIQUEIDENTIFIER, @Id UNIQUEIDENTIFIER,
@SubvaultId UNIQUEIDENTIFIER, @SubvaultId UNIQUEIDENTIFIER,
@UserId UNIQUEIDENTIFIER, @UserId UNIQUEIDENTIFIER,
@Key VARCHAR(MAX),
@Admin BIT, @Admin BIT,
@ReadOnly BIT, @ReadOnly BIT,
@CreationDate DATETIME2(7), @CreationDate DATETIME2(7),
@ -16,7 +15,6 @@ BEGIN
[Id], [Id],
[SubvaultId], [SubvaultId],
[UserId], [UserId],
[Key],
[Admin], [Admin],
[ReadOnly], [ReadOnly],
[CreationDate], [CreationDate],
@ -27,7 +25,6 @@ BEGIN
@Id, @Id,
@SubvaultId, @SubvaultId,
@UserId, @UserId,
@Key,
@Admin, @Admin,
@ReadOnly, @ReadOnly,
@CreationDate, @CreationDate,

View File

@ -16,7 +16,6 @@ BEGIN
SET SET
[SubvaultId] = @SubvaultId, [SubvaultId] = @SubvaultId,
[UserId] = @UserId, [UserId] = @UserId,
[Key] = @Key,
[Admin] = @Admin, [Admin] = @Admin,
[ReadOnly] = @ReadOnly, [ReadOnly] = @ReadOnly,
[CreationDate] = @CreationDate, [CreationDate] = @CreationDate,

View File

@ -3,6 +3,7 @@
[OrganizationId] UNIQUEIDENTIFIER NOT NULL, [OrganizationId] UNIQUEIDENTIFIER NOT NULL,
[UserId] UNIQUEIDENTIFIER NULL, [UserId] UNIQUEIDENTIFIER NULL,
[Email] NVARCHAR (50) NULL, [Email] NVARCHAR (50) NULL,
[Key] VARCHAR (MAX) NULL,
[Status] TINYINT NOT NULL, [Status] TINYINT NOT NULL,
[Type] TINYINT NOT NULL, [Type] TINYINT NOT NULL,
[CreationDate] DATETIME2 (7) NOT NULL, [CreationDate] DATETIME2 (7) NOT NULL,

View File

@ -2,11 +2,10 @@
[Id] UNIQUEIDENTIFIER NOT NULL, [Id] UNIQUEIDENTIFIER NOT NULL,
[SubvaultId] UNIQUEIDENTIFIER NOT NULL, [SubvaultId] UNIQUEIDENTIFIER NOT NULL,
[UserId] UNIQUEIDENTIFIER NOT NULL, [UserId] UNIQUEIDENTIFIER NOT NULL,
[Key] VARCHAR (MAX) NOT NULL,
[CreationDate] DATETIME2 (7) NOT NULL,
[RevisionDate] DATETIME2 (7) NOT NULL,
[Admin] BIT NOT NULL, [Admin] BIT NOT NULL,
[ReadOnly] BIT NOT NULL, [ReadOnly] BIT NOT NULL,
[CreationDate] DATETIME2 (7) NOT NULL,
[RevisionDate] DATETIME2 (7) NOT NULL,
CONSTRAINT [PK_SubvaultUser] PRIMARY KEY CLUSTERED ([Id] ASC), CONSTRAINT [PK_SubvaultUser] PRIMARY KEY CLUSTERED ([Id] ASC),
CONSTRAINT [FK_SubvaultUser_Subvault] FOREIGN KEY ([SubvaultId]) REFERENCES [dbo].[Subvault] ([Id]), CONSTRAINT [FK_SubvaultUser_Subvault] FOREIGN KEY ([SubvaultId]) REFERENCES [dbo].[Subvault] ([Id]),
CONSTRAINT [FK_SubvaultUser_User] FOREIGN KEY ([UserId]) REFERENCES [dbo].[User] ([Id]) CONSTRAINT [FK_SubvaultUser_User] FOREIGN KEY ([UserId]) REFERENCES [dbo].[User] ([Id])