mirror of
https://github.com/aaronpo97/the-biergarten-app.git
synced 2026-10-14 17:54:42 +00:00
18 lines
385 B
SQL
18 lines
385 B
SQL
CREATE OR ALTER PROCEDURE dbo.USP_GetActiveUserCredentialByUserAccountId(
|
|
@UserAccountId UNIQUEIDENTIFIER
|
|
)
|
|
AS
|
|
BEGIN
|
|
SET
|
|
NOCOUNT ON;
|
|
|
|
SELECT UserCredentialId,
|
|
UserAccountId,
|
|
Hash,
|
|
IsRevoked,
|
|
CreatedAt,
|
|
RevokedAt
|
|
FROM dbo.UserCredential
|
|
WHERE UserAccountId = @UserAccountId
|
|
AND IsRevoked = 0;
|
|
END; |