mirror of
https://github.com/aaronpo97/the-biergarten-app.git
synced 2026-06-01 10:04:00 +00:00
17 lines
365 B
SQL
17 lines
365 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; |