mirror of
https://github.com/aaronpo97/the-biergarten-app.git
synced 2026-07-16 09:37:23 +00:00
20 lines
349 B
SQL
20 lines
349 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; |