mirror of
https://github.com/bitwarden/server.git
synced 2025-07-04 01:22:50 -05:00
Folder APIs to new tables
This commit is contained in:
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