mirror of
https://github.com/bitwarden/server.git
synced 2025-04-05 21:18:13 -05:00
reimport db
This commit is contained in:
parent
f101541ff8
commit
8051995cc7
@ -66,15 +66,21 @@
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Build Include="dbo\Tables\Cipher.sql" />
|
||||
<Build Include="dbo\Tables\Share.sql" />
|
||||
<Build Include="dbo\Tables\Device.sql" />
|
||||
<Build Include="dbo\Tables\History.sql" />
|
||||
<Build Include="dbo\Tables\Grant.sql" />
|
||||
<Build Include="dbo\Tables\User.sql" />
|
||||
<Build Include="dbo\Views\ShareView.sql" />
|
||||
<Build Include="dbo\Views\CipherView.sql" />
|
||||
<Build Include="dbo\Views\DeviceView.sql" />
|
||||
<Build Include="dbo\Views\HistoryView.sql" />
|
||||
<Build Include="dbo\Views\UserView.sql" />
|
||||
<Build Include="dbo\Views\GrantView.sql" />
|
||||
<Build Include="dbo\Stored Procedures\Share_Create.sql" />
|
||||
<Build Include="dbo\Stored Procedures\Share_DeleteById.sql" />
|
||||
<Build Include="dbo\Stored Procedures\Share_ReadById.sql" />
|
||||
<Build Include="dbo\Stored Procedures\Share_Update.sql" />
|
||||
<Build Include="dbo\Stored Procedures\Cipher_Create.sql" />
|
||||
<Build Include="dbo\Stored Procedures\Cipher_DeleteById.sql" />
|
||||
<Build Include="dbo\Stored Procedures\Cipher_ReadById.sql" />
|
||||
@ -103,11 +109,5 @@
|
||||
<Build Include="dbo\Stored Procedures\Grant_ReadBySubjectId.sql" />
|
||||
<Build Include="dbo\Stored Procedures\Grant_Save.sql" />
|
||||
<Build Include="dbo\Stored Procedures\User_ReadAccountRevisionDateById.sql" />
|
||||
<Build Include="dbo\Tables\Share.sql" />
|
||||
<Build Include="dbo\Views\ShareView.sql" />
|
||||
<Build Include="dbo\Stored Procedures\Share_Create.sql" />
|
||||
<Build Include="dbo\Stored Procedures\Share_DeleteById.sql" />
|
||||
<Build Include="dbo\Stored Procedures\Share_ReadById.sql" />
|
||||
<Build Include="dbo\Stored Procedures\Share_Update.sql" />
|
||||
</ItemGroup>
|
||||
</Project>
|
@ -33,4 +33,4 @@ BEGIN
|
||||
@CreationDate,
|
||||
@RevisionDate
|
||||
)
|
||||
END
|
||||
END
|
||||
|
@ -23,4 +23,4 @@ BEGIN
|
||||
[RevisionDate] = @RevisionDate
|
||||
WHERE
|
||||
[Id] = @Id
|
||||
END
|
||||
END
|
||||
|
@ -33,4 +33,4 @@ BEGIN
|
||||
@CreationDate,
|
||||
@RevisionDate
|
||||
)
|
||||
END
|
||||
END
|
||||
|
@ -9,4 +9,4 @@ BEGIN
|
||||
[dbo].[Share]
|
||||
WHERE
|
||||
[Id] = @Id
|
||||
END
|
||||
END
|
||||
|
@ -10,4 +10,4 @@ BEGIN
|
||||
[dbo].[ShareView]
|
||||
WHERE
|
||||
[Id] = @Id
|
||||
END
|
||||
END
|
||||
|
@ -23,4 +23,4 @@ BEGIN
|
||||
[RevisionDate] = @RevisionDate
|
||||
WHERE
|
||||
[Id] = @Id
|
||||
END
|
||||
END
|
||||
|
@ -1,12 +1,12 @@
|
||||
CREATE TABLE [dbo].[Share] (
|
||||
[Id] UNIQUEIDENTIFIER NOT NULL,
|
||||
[UserId] UNIQUEIDENTIFIER NOT NULL,
|
||||
[CipherId] UNIQUEIDENTIFIER NOT NULL,
|
||||
[Key] VARCHAR(MAX) NULL,
|
||||
[Permissions] VARCHAR(MAX) NULL,
|
||||
[Status] TINYINT NOT NULL,
|
||||
[CreationDate] DATETIME2 (7) NOT NULL,
|
||||
[RevisionDate] DATETIME2 (7) NOT NULL,
|
||||
[Id] UNIQUEIDENTIFIER NOT NULL,
|
||||
[UserId] UNIQUEIDENTIFIER NOT NULL,
|
||||
[CipherId] UNIQUEIDENTIFIER NOT NULL,
|
||||
[Key] VARCHAR (MAX) NULL,
|
||||
[Permissions] VARCHAR (MAX) NULL,
|
||||
[Status] TINYINT NOT NULL,
|
||||
[CreationDate] DATETIME2 (7) NOT NULL,
|
||||
[RevisionDate] DATETIME2 (7) NOT NULL,
|
||||
CONSTRAINT [PK_Share] PRIMARY KEY CLUSTERED ([Id] ASC),
|
||||
CONSTRAINT [FK_Share_Cipher] FOREIGN KEY ([CipherId]) REFERENCES [dbo].[Cipher] ([Id]),
|
||||
CONSTRAINT [FK_Share_User] FOREIGN KEY ([UserId]) REFERENCES [dbo].[User] ([Id])
|
||||
|
@ -3,4 +3,4 @@ AS
|
||||
SELECT
|
||||
*
|
||||
FROM
|
||||
[dbo].[Share]
|
||||
[dbo].[Share]
|
||||
|
Loading…
x
Reference in New Issue
Block a user