mirror of
https://github.com/bitwarden/server.git
synced 2024-12-26 17:37:36 +01:00
sproc updates
This commit is contained in:
parent
3e183a74f4
commit
321183c570
@ -3,6 +3,7 @@
|
||||
@OrganizationId UNIQUEIDENTIFIER,
|
||||
@UserId UNIQUEIDENTIFIER,
|
||||
@Email NVARCHAR(50),
|
||||
@Key VARCHAR(MAX),
|
||||
@Status TINYINT,
|
||||
@Type TINYINT,
|
||||
@CreationDate DATETIME2(7),
|
||||
@ -17,6 +18,7 @@ BEGIN
|
||||
[OrganizationId],
|
||||
[UserId],
|
||||
[Email],
|
||||
[Key],
|
||||
[Status],
|
||||
[Type],
|
||||
[CreationDate],
|
||||
@ -28,6 +30,7 @@ BEGIN
|
||||
@OrganizationId,
|
||||
@UserId,
|
||||
@Email,
|
||||
@Key,
|
||||
@Status,
|
||||
@Type,
|
||||
@CreationDate,
|
||||
|
@ -3,6 +3,7 @@
|
||||
@OrganizationId UNIQUEIDENTIFIER,
|
||||
@UserId UNIQUEIDENTIFIER,
|
||||
@Email NVARCHAR(50),
|
||||
@Key VARCHAR(MAX),
|
||||
@Status TINYINT,
|
||||
@Type TINYINT,
|
||||
@CreationDate DATETIME2(7),
|
||||
@ -17,6 +18,7 @@ BEGIN
|
||||
[OrganizationId] = @OrganizationId,
|
||||
[UserId] = @UserId,
|
||||
[Email] = @Email,
|
||||
[Key] = @Key,
|
||||
[Status] = @Status,
|
||||
[Type] = @Type,
|
||||
[CreationDate] = @CreationDate,
|
||||
|
@ -2,7 +2,6 @@
|
||||
@Id UNIQUEIDENTIFIER,
|
||||
@SubvaultId UNIQUEIDENTIFIER,
|
||||
@UserId UNIQUEIDENTIFIER,
|
||||
@Key VARCHAR(MAX),
|
||||
@Admin BIT,
|
||||
@ReadOnly BIT,
|
||||
@CreationDate DATETIME2(7),
|
||||
@ -16,7 +15,6 @@ BEGIN
|
||||
[Id],
|
||||
[SubvaultId],
|
||||
[UserId],
|
||||
[Key],
|
||||
[Admin],
|
||||
[ReadOnly],
|
||||
[CreationDate],
|
||||
@ -27,7 +25,6 @@ BEGIN
|
||||
@Id,
|
||||
@SubvaultId,
|
||||
@UserId,
|
||||
@Key,
|
||||
@Admin,
|
||||
@ReadOnly,
|
||||
@CreationDate,
|
||||
|
@ -16,7 +16,6 @@ BEGIN
|
||||
SET
|
||||
[SubvaultId] = @SubvaultId,
|
||||
[UserId] = @UserId,
|
||||
[Key] = @Key,
|
||||
[Admin] = @Admin,
|
||||
[ReadOnly] = @ReadOnly,
|
||||
[CreationDate] = @CreationDate,
|
||||
|
@ -3,6 +3,7 @@
|
||||
[OrganizationId] UNIQUEIDENTIFIER NOT NULL,
|
||||
[UserId] UNIQUEIDENTIFIER NULL,
|
||||
[Email] NVARCHAR (50) NULL,
|
||||
[Key] VARCHAR (MAX) NULL,
|
||||
[Status] TINYINT NOT NULL,
|
||||
[Type] TINYINT NOT NULL,
|
||||
[CreationDate] DATETIME2 (7) NOT NULL,
|
||||
|
@ -2,11 +2,10 @@
|
||||
[Id] UNIQUEIDENTIFIER NOT NULL,
|
||||
[SubvaultId] 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,
|
||||
[ReadOnly] BIT NOT NULL,
|
||||
[CreationDate] DATETIME2 (7) NOT NULL,
|
||||
[RevisionDate] DATETIME2 (7) NOT NULL,
|
||||
CONSTRAINT [PK_SubvaultUser] PRIMARY KEY CLUSTERED ([Id] ASC),
|
||||
CONSTRAINT [FK_SubvaultUser_Subvault] FOREIGN KEY ([SubvaultId]) REFERENCES [dbo].[Subvault] ([Id]),
|
||||
CONSTRAINT [FK_SubvaultUser_User] FOREIGN KEY ([UserId]) REFERENCES [dbo].[User] ([Id])
|
||||
|
Loading…
Reference in New Issue
Block a user