
TRUNCATE TABLE `was_openai_prompt`;


ALTER TABLE was_openai_prompt
ADD COLUMN `user_id` int(11) unsigned NOT NULL AFTER `openai_prompt_id`,
DROP KEY  `unq_prompt_slug`,
ADD UNIQUE KEY `unq_user_id_prompt_slug` (`user_id`, `prompt_slug`);


INSERT INTO `was_openai_prompt` (`user_id`, `prompt_slug`, `prompt_role`, `prompt_content`, `prompt_variables`) VALUES
(1, 'user-response-task', 'user', '', '{{name}} {{message}}'),
(1, 'user-response-pm', 'user', '', '{{name}} {{message}}'),
(37, 'user-response-task', 'user', '', '{{name}} {{message}}'),
(37, 'user-response-pm', 'user', '', '{{name}} {{message}}');
