Database updates

This commit is contained in:
ivan-pelly
2026-02-21 14:46:48 -08:00
parent fb1eea6d08
commit b2114fbcd2
6 changed files with 40 additions and 72 deletions
+1 -5
View File
@@ -3,18 +3,14 @@ CREATE DEFINER=`root`@`%` PROCEDURE `sp_User_GetByEmail`(IN p_email VARCHAR(255)
BEGIN
SELECT
u.id_user,
u.id_role,
u.email,
u.name,
u.password_hash,
u.password_salt,
u.failed_login_attempts,
u.locked_until,
u.created_at,
r.internal_name AS role_internal_name,
r.name AS role_display_name
u.created_at
FROM `user` u
LEFT JOIN role r ON u.id_role = r.id_role
WHERE u.email = p_email
LIMIT 1;
END;;