START TRANSACTION;

INSERT INTO users (name, email) VALUES ('Reza', 'reza@example.com');
SET @user_id = LAST_INSERT_ID();

INSERT INTO profiles (user_id, bio) VALUES (@user_id, 'Developer');

COMMIT;