1
0
mirror of https://github.com/bitwarden/server synced 2026-01-08 03:23:20 +00:00

user premium validation job

This commit is contained in:
Kyle Spearrin
2017-08-22 15:27:29 -04:00
parent 8e5d541be6
commit 0ea87d1c1c
16 changed files with 162 additions and 56 deletions

View File

@@ -1,5 +1,4 @@
CREATE PROCEDURE [dbo].[Organization_Read]
@Id UNIQUEIDENTIFIER
CREATE PROCEDURE [dbo].[Organization_ReadByEnabled]
AS
BEGIN
SET NOCOUNT ON
@@ -8,4 +7,6 @@ BEGIN
*
FROM
[dbo].[OrganizationView]
WHERE
[Enabled] = 1
END

View File

@@ -0,0 +1,13 @@
CREATE PROCEDURE [dbo].[User_ReadByPremium]
@Premium BIT
AS
BEGIN
SET NOCOUNT ON
SELECT
*
FROM
[dbo].[UserView]
WHERE
[Premium] = @Premium
END