mirror of
https://github.com/bitwarden/server.git
synced 2025-07-02 16:42:50 -05:00
Folder APIs to new tables
This commit is contained in:
@ -163,5 +163,7 @@
|
||||
<Build Include="dbo\Stored Procedures\SubvaultCipher_ReadByUserId.sql" />
|
||||
<Build Include="dbo\Views\CipherView.sql" />
|
||||
<Build Include="dbo\Stored Procedures\CipherDetails_ReadById.sql" />
|
||||
<Build Include="dbo\Views\FolderView.sql" />
|
||||
<Build Include="dbo\Stored Procedures\Folder_ReadByUserId.sql" />
|
||||
</ItemGroup>
|
||||
</Project>
|
13
src/Sql/dbo/Stored Procedures/Folder_ReadByUserId.sql
Normal file
13
src/Sql/dbo/Stored Procedures/Folder_ReadByUserId.sql
Normal file
@ -0,0 +1,13 @@
|
||||
CREATE PROCEDURE [dbo].[Folder_ReadByUserId]
|
||||
@UserId UNIQUEIDENTIFIER
|
||||
AS
|
||||
BEGIN
|
||||
SET NOCOUNT ON
|
||||
|
||||
SELECT
|
||||
*
|
||||
FROM
|
||||
[dbo].[FolderView]
|
||||
WHERE
|
||||
[UserId] = @UserId
|
||||
END
|
6
src/Sql/dbo/Views/FolderView.sql
Normal file
6
src/Sql/dbo/Views/FolderView.sql
Normal file
@ -0,0 +1,6 @@
|
||||
CREATE VIEW [dbo].[FolderView]
|
||||
AS
|
||||
SELECT
|
||||
*
|
||||
FROM
|
||||
[dbo].[Folder]
|
Reference in New Issue
Block a user