mirror of
https://github.com/opelly27/WinStudentGoalTracker.git
synced 2026-05-20 01:47:41 +00:00
Latest
This commit is contained in:
@@ -0,0 +1,32 @@
|
||||
DELIMITER ;;
|
||||
CREATE DEFINER=`root`@`%` PROCEDURE `sp_UserProgram_Insert`(
|
||||
IN p_id_user_program CHAR(36),
|
||||
IN p_id_user CHAR(36),
|
||||
IN p_id_program CHAR(36),
|
||||
IN p_id_role CHAR(36),
|
||||
IN p_is_primary TINYINT
|
||||
)
|
||||
BEGIN
|
||||
INSERT INTO user_program
|
||||
(
|
||||
id_user_program,
|
||||
id_user,
|
||||
id_program,
|
||||
id_role,
|
||||
is_primary,
|
||||
status,
|
||||
joined_at
|
||||
)
|
||||
VALUES
|
||||
(
|
||||
p_id_user_program,
|
||||
p_id_user,
|
||||
p_id_program,
|
||||
p_id_role,
|
||||
p_is_primary,
|
||||
'active',
|
||||
UTC_TIMESTAMP()
|
||||
);
|
||||
SELECT ROW_COUNT() AS rows_affected;
|
||||
END;;
|
||||
DELIMITER ;
|
||||
Reference in New Issue
Block a user