IP : 52.14.187.224Hostname : host45.registrar-servers.comKernel : Linux host45.registrar-servers.com 4.18.0-513.18.1.lve.2.el8.x86_64 #1 SMP Sat Mar 30 15:36:11 UTC 2024 x86_64Disable Function : None :) OS : Linux
PATH:
/
home/
../
var/
softaculous/
hizup/
../
myweb/
../
sugar/
../
aef/
../
./
uvdesk/
uvdesk.sql/
/
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; /*!40101 SET NAMES utf8 */;
-- -- Dumping data for table `uv_email_templates` --
INSERT INTO `uv_email_templates` VALUES (1, NULL, 'User Forgot Password', 'Update your {%global.companyName%} helpdesk password', ' <p></p>\n <p></p>\n <p></p>\n <p></p>\n <p style="text-align: center; ">{%global.companyLogo%}</p>\n <p style="text-align: center; ">\n <br />\n </p>\n <p>Hi {%user.userName%},\n <br />\n </p>\n <p>\n <br />\n </p>\n <p>You recently requested to reset your password for your {%global.companyName%} account. Click the link to reset it {%user.forgotPasswordLink%}</p>\n <p>\n <br />\n </p>\n <p>If you did not request a password reset, please ignore this mail or revert back to let us know.</p>\n <div>\n <br />\n </div>\n <p>Thanks and Regards</p>\n <p>{%global.companyName%}</p>\n <p></p>\n <p></p>', 'user', 1), (2, NULL, 'Agent Reply To The Customer''s ticket', 'New Reply Added on ticket #{% ticket.id %}', ' <p></p>\n <p></p>\n <p></p>\n <p></p>\n <p style="text-align: center">{%global.companyLogo%}</p>\n <p style="text-align: center">\n <br>\n </p>\n <p style="text-align: center">\n <span style="font-size: 18px">\n <b style="font-weight:bold">New Response!!</b>\n </span>\n </p>\n <span style="font-size: 18px">\n <b style="font-weight:bold"> </b>\n </span>\n <p>\n <br>\n </p>\n <p></p>\n <p></p> Hello {%ticket.customerName%},\n <p></p>\n <p></p>\n <p>\n <span style="line-height: 1.42857">\n <br>\n </span>\n </p>\n <p>\n <span style="line-height: 1.42857">A reply has been added by the </span>{%ticket.agentName%} on your ticket {%ticket.id%}. Kindly follow this link {%ticket.customerLink%}\n to get the insight of the message.\n <span style="line-height: 1.42857"> </span>\n </p>\n <p>\n <span style="line-height: 1.42857">\n <br>\n </span>\n </p>\n <p>\n <span style="line-height: 1.42857">Here go the ticket message:</span>\n </p>\n <p>{%ticket.threadMessage%}{%ticket.attachments%}\n <br>\n </p>\n <p></p>\n <p></p>\n <p>\n <br>\n </p>\n <p></p>\n <p>Thanks and Regards</p>\n <p>{%global.companyName%}\n <br>\n </p>\n <br>\n <p></p>\n <p></p>\n <p></p>\n <p></p>\n <p></p>', 'ticket', 1), (3, NULL, 'Ticket generated by customer', 'A new ticket #{%ticket.id%} has been generated by {%ticket.customerName%}', '<p></p>\n<p></p>\n<p style="text-align: center; ">{%global.companyLogo%}</p>\n<p style="text-align: center; ">\n <br />\n</p>\n<p style="text-align: center; ">\n <b>\n <span style="font-size: 18px;">Ticket generated!!</span>\n </b>\n</p>\n<br />Hello {%ticket.agentName%},\n<p></p>\n<p>\n <br />\n</p>\n<p>A new ticket {%ticket.id%} has been generated by {%ticket.customerName%} from the id {%ticket.customerEmail%}. Hit on the link provided so that you can have the access to the ticket {%ticket.agentLink%}.</p>\n<p>\n <br />\n</p>\n<p>Here goes the ticket message:</p>\n<p>{%ticket.threadMessage%}\n {%ticket.attachments%}\n <br />\n</p>\n<p>\n <br />\n</p>\n<p>\n <br />\n</p> Thanks and Regards\n<p></p>\n<p>{%global.companyName%}\n <br />\n</p>\n<p></p>\n<p></p>', 'ticket', 1), (4, NULL, 'Agent Account Created', 'Welcome to {%global.companyName%} Helpdesk Support System', ' <p></p>\n <p></p>\n <p></p>\n <p style="text-align: center; ">{%global.companyLogo%}</p>\n <p style="text-align: center; ">\n <span style="font-size: 18px;">\n <b>Thank you for joining!!</b>\n </span>\n </p>\n <p style="text-align: center; ">\n <i>\n <br />\n </i>\n </p>\n <p style="margin-bottom: 0cm; line-height: 100%" align="left">Hello {%user.userName%},</p>\n <p style="margin-bottom: 0cm; line-height: 100%" align="left">\n <br />\n </p>\n <p style="margin-bottom: 0cm; line-height: 100%" align="left">Your account has been successfully created.</p>\n <p style="margin-bottom: 0cm; line-height: 100%"\n align="left">\n <br />\n </p>\n <p style="margin-bottom: 0cm; line-height: 100%" align="left">\n <span style="line-height: 100%;">Click on the link to set your password </span>{%user.accountValidationLink%}\n <span style="line-height: 100%;"> and get started with the </span>{%global.companyName%}\n <span style="line-height: 100%;"> services.</span>\n </p>\n <p style="margin-bottom: 0cm; line-height: 100%" align="left">\n <span style="line-height: 100%;">\n <br />\n </span>\n </p>\n <p style="margin-bottom: 0cm; line-height: 100%" align="left">Thanks and Regards\n <br />\n </p>\n <p>{%global.companyName%}</p>\n <p>\n <br />\n </p>\n <p></p>', 'user', 1), (5, NULL, 'Ticket Assign', 'Ticket #{% ticket.id %} assign to you', ' <p></p>\n <p style="text-align: center;">{%global.companyLogo%}</p>\n <p style="text-align: center;">\n <br />\n </p>\n <p style="text-align: center;">\n <b>\n <span style="font-size: 18px;">Ticket assigned- Get ready!!</span>\n </b>\n </p>\n <p style="text-align: center; ">\n <br />\n </p> Hello {%ticket.agentName%},\n <br />\n <br />\n <p></p>\n <p>A ticket {%ticket.id%} has been assigned to you. You are requested to follow this link {%ticket.agentLink%} to get the\n access of the ticket.</p>\n <p>\n <br />\n </p>\n <p>Here go the ticket message:</p>\n <p>{%ticket.message%}\n <br />\n </p>\n <p>\n <br />\n </p>\n <p>Thanks and Regards</p>\n <p>{%global.companyName%}\n <br />\n </p>\n <p></p>\n <p>\n <br />\n </p>\n <p></p>\n <p>\n <br />\n </p>\n <p></p>\n <p></p>\n <p></p>\n <p></p>', 'ticket', 1), (6, NULL, 'Customer Reply To The Agent', 'Customer Reply Ticket #{% ticket.id %}', ' <p></p>\n <p></p>\n <p style="text-align: center; ">{%global.companyLogo%}</p>\n <p style="text-align: center; ">\n <br />\n </p>\n <p style="text-align: center; ">\n <b>\n <span style="font-size: 18px;">New Response!!</span>\n </b>\n </p>\n <p style="text-align: center; ">\n <b>\n <span style="font-size: 18px;">\n <br />\n </span>\n </b>\n </p> Hello {%ticket.agentName%},</p>\n <p></p>\n <p>\n <br />\n </p>\n <p></p>\n <p></p>\n <p>\n <span style="line-height: 1.42857143;">New reply have been added to ticket #{%ticket.id%} you can login to ticket system through this link {%ticket.agentLink%}.</span>\n </p>\n <p>\n <span style="line-height: 1.42857143;"> </span>\n </p>\n <p>\n <span style="line-height: 1.42857143;">Customer reply:\n <br />\n </span>{%ticket.threadMessage%}{%ticket.attachments%}</p>\n <p>\n <br />\n </p>\n <p>Thanks and Regards</p>\n <p>{%global.companyName%}\n <br />\n </p>\n <p>\n <br />\n </p>\n <p></p>', 'ticket', 1), (7, NULL, 'Ticket generated success mail to customer', 'New ticket #{% ticket.id %} Received', '<p></p>\n<p></p>\n<p></p>\n<p></p>\n<p></p>\n<p></p>\n<p></p>\n<p style="text-align: center;">{%global.companyLogo%}</p>\n<p style="text-align: center;">\n <br />\n</p>\n<p style="text-align: center;">\n <b>\n <span style="font-size: 18px;">Ticket generated!!</span>\n </b>\n</p>\n<p style="text-align: center; ">\n <br />\n</p>\n<br />\n<p></p>\n<p>Hello {%ticket.customerName%},</p>\n<p>\n <br />\n</p>\n<p></p>\n<p>Thank you so much for taking the time to connect us!</p>\n<p>\n <br />\n</p>\n<p>Your ticket #{%ticket.id%} has been received. You can check ticket through this link {%ticket.customerLink%} and you can also reply via this email.</p>\n<p>\n<p>\n <br />\n</p>\n<p>Our support staff will get back to you shortly (it might take a bit longer on evenings and weekends). Feel free to ask for any support request we will be happy to help.</p>\n<p>\n<span style="line-height: 1.42857143;">\n</p>\n<p>Here go the ticket message:</p>\n<p>{%ticket.threadMessage%}\n {%ticket.attachments%}\n <br />\n</p>\n<p>\n <br />\n</p>\n<p>Thanks and Regards</p>\n<p>{%global.companyName%}\n <br />\n</p>\n<br />\n<p></p>\n<p></p>\n<p></p>\n<p></p>\n<p></p>\n<p></p>\n<p></p>\n<p></p>\n<p></p>\n<p></p>\n<p></p>', 'ticket', 1), (8, NULL, 'Customer Account Created', 'Welcome to {%global.companyName%} Helpdesk', ' <p></p>\n <p></p>\n <p></p>\n <p style="text-align: center; ">{%global.companyLogo%}</p>\n <p style="text-align: center; ">\n <br />\n </p>\n <p style="text-align: center; ">\n <span style="font-size: 18px;">\n <b>Thank you for joining!!</b>\n </span>\n </p>\n <p style="text-align: center; ">\n <i>\n <br />\n </i>\n </p>\n <p style="margin-bottom: 0cm; line-height: 100%" align="left">Hello {%user.userName%},</p>\n <p style="margin-bottom: 0cm; line-height: 100%" align="left">\n <br />\n </p>\n <p style="margin-bottom: 0cm; line-height: 100%" align="left">Your account has been successfully created. We welcome you to the community of {%global.companyName%}.</p>\n <p style="margin-bottom: 0cm; line-height: 100%"\n align="left">\n <br />\n </p>\n <p style="margin-bottom: 0cm; line-height: 100%" align="left">It is our privilege to have you as our customer. We are pretty much sure that you will love the fact that how simple it is\n to get started with the services. We are dedicated to making your working life simpler.</p>\n <p style="margin-bottom: 0cm; line-height: 100%"\n align="left">\n <br />\n </p>\n <p style="margin-bottom: 0cm; line-height: 100%" align="left">\n <span style="line-height: 100%;">Click on the link to set your password </span>{%user.accountValidationLink%}\n <span style="line-height: 100%;"> and get started with the </span>{%global.companyName%}\n <span style="line-height: 100%;"> services.</span>\n </p>\n <p style="margin-bottom: 0cm; line-height: 100%" align="left">\n <span style="line-height: 100%;">\n <br />\n </span>\n </p>\n <p style="margin-bottom: 0cm; line-height: 100%" align="left">Hoping that you will enjoy this experience.</p>\n <p style="margin-bottom: 0cm; line-height: 100%" align="left">\n <br />\n </p>\n <p style="margin-bottom: 0cm; line-height: 100%" align="left">Thanks and Regards\n <br />\n </p>\n <p>{%global.companyName%}</p>\n <p>\n <br />\n </p>\n <p></p>', 'user', 1), (9, NULL, 'Collaborator added to ticket', 'A new Collaborator have been added', ' <p> </p>\n <p> </p>\n <p> </p>\n <p style="text-align: center;">{%global.companyLogo%}</p>\n <p style="text-align: center;"> </p>\n <p style="text-align: center;"><span style="font-size: 18px;"> <strong>Thank you for joining!!</strong> </span></p>\n <p style="text-align: center;"><em> <br /> </em></p>\n <p style="margin-bottom: 0cm; line-height: 100%;" align="left">Hello {%ticket.collaboratorName%},</p>\n <p style="margin-bottom: 0cm; line-height: 100%;" align="left"> </p>\n <p> </p>\n <p>Collaborator of the ticket #{%ticket.id%} has added a reply. You can check the ticket from here {%ticket.customerLink%}</p>\n <p> </p>\n <p>Here go the message:</p>\n <p>{%ticket.threadMessage%}</p>\n <p> </p>\n <p>Thanks and Regards</p>\n <p>{%global.companyName%}</p>\n <p> </p>\n <p> </p>\n <p> </p>', 'ticket', 1), (10, NULL, 'Collaborator Reply To The Agent', 'Collaborator Reply Ticket #{% ticket.id %}', ' <p> </p>\n <p> </p>\n <p style="text-align: center;">{%global.companyLogo%}</p>\n <p style="text-align: center;"> </p>\n <p style="text-align: center;"><strong> <span style="font-size: 18px;">New Response!!</span> </strong></p>\n <p style="text-align: center;"><strong> <span style="font-size: 18px;"> <br /> </span> </strong></p>\n <p>Hello {%ticket.agentName%},</p>\n <p> </p>\n <p>Collaborator of the ticket #{%ticket.id%} has added a reply. You can check the ticket from here {%ticket.agentLink%}.</p>\n <p> </p>\n <p>Here go the message:</p>\n <p>{%ticket.threadMessage%}{%ticket.attachments%}</p>\n <p> </p>\n <p>Thanks and Regards</p>\n <p>{%global.companyName%}</p>\n <p> </p>', 'ticket', 1), (11, NULL, 'Collaborator Reply To The Customer', 'Collaborator Reply Ticket #{% ticket.id %}', ' <p> </p>\n <p> </p>\n <p style="text-align: center;">{%global.companyLogo%}</p>\n <p style="text-align: center;"> </p>\n <p style="text-align: center;"><strong> <span style="font-size: 18px;">New Response!!</span> </strong></p>\n <p style="text-align: center;"><strong> <span style="font-size: 18px;"> <br /> </span> </strong></p>\n <p>Hello {%ticket.agentName%},</p>\n <p> </p>\n <p>Collaborator of the ticket #{%ticket.id%} has added a reply. You can check the ticket from here {%ticket.customerLink%}.</p>\n <p> </p>\n <p>Here go the message:</p>\n <p>{%ticket.threadMessage%}{%ticket.attachments%}</p>\n <p> </p>\n <p>Thanks and Regards</p>\n <p>{%global.companyName%}</p>\n <p> </p>', 'ticket', 1);
CREATE TABLE `uv_workflow` ( `id` int(11) NOT NULL AUTO_INCREMENT, `name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `description` longtext COLLATE utf8mb4_unicode_ci, `conditions` longtext COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '(DC2Type:array)', `actions` longtext COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '(DC2Type:array)', `sort_order` int(11) DEFAULT NULL, `is_predefind` tinyint(1) NOT NULL DEFAULT '1', `status` tinyint(1) NOT NULL DEFAULT '1', `date_added` datetime NOT NULL, `date_updated` datetime NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci AUTO_INCREMENT=10 ;
-- -- Dumping data for table `uv_workflow` --
INSERT INTO `uv_workflow` VALUES (1, 'Customer Created', 'Send customer a welcome email after their account has been created.', 'a:0:{}', 'a:1:{i:2;a:2:{s:4:"type";s:29:"uvdesk.customer.mail_customer";s:5:"value";s:1:"8";}}', 1, 1, 1, '[[regtime]]', '[[regtime]]'), (2, 'Agent Created', 'Send agent a welcome email when their account is created.', 'a:0:{}', 'a:1:{i:0;a:2:{s:4:"type";s:23:"uvdesk.agent.mail_agent";s:5:"value";s:1:"4";}}', 2, 1, 1, '[[regtime]]', '[[regtime]]'), (3, 'User Forgot Password', 'Send an email to user with a link to reset their password.', 'a:0:{}', 'a:1:{i:1;a:2:{s:4:"type";s:21:"uvdesk.user.mail_user";s:5:"value";s:1:"1";}}', 2, 1, 1, '[[regtime]]', '[[regtime]]'), (4, 'Ticket Agent Update - Mail to Agent', 'Send an email to updated agent on ticket', 'a:0:{}', 'a:1:{i:1;a:2:{s:4:"type";s:24:"uvdesk.ticket.mail_agent";s:5:"value";a:2:{s:3:"for";a:1:{i:0;s:13:"assignedAgent";}s:5:"value";s:1:"5";}}}', 3, 1, 1, '[[regtime]]', '[[regtime]]'), (5, 'Ticket Created', 'Automate actions when ticket is created.', 'a:0:{}', 'a:3:{i:0;a:2:{s:4:"type";s:27:"uvdesk.ticket.mail_customer";s:5:"value";s:1:"7";}i:1;a:2:{s:4:"type";s:26:"uvdesk.ticket.assign_agent";s:5:"value";s:18:"responsePerforming";}i:2;a:2:{s:4:"type";s:24:"uvdesk.ticket.mail_agent";s:5:"value";a:2:{s:3:"for";a:2:{i:0;s:13:"assignedAgent";i:1;s:1:"5";}s:5:"value";s:1:"3";}}}', 4, 1, 1, '[[regtime]]', '[[regtime]]'), (6, 'Agent Replied on Ticket', 'Send customer an email when reply is added on ticket.', 'a:0:{}', 'a:1:{i:0;a:2:{s:4:"type";s:27:"uvdesk.ticket.mail_customer";s:5:"value";s:1:"2";}}', 5, 1, 1, '[[regtime]]', '[[regtime]]'), (7, 'Customer Replied on Ticket', 'Send agent an email when reply is added on ticket.', 'a:0:{}', 'a:1:{i:0;a:2:{s:4:"type";s:24:"uvdesk.ticket.mail_agent";s:5:"value";a:2:{s:3:"for";a:1:{i:0;s:13:"assignedAgent";}s:5:"value";s:1:"6";}}}', 6, 1, 1, '[[regtime]]', '[[regtime]]'), (8, 'Collaborator Replied on Ticket', 'Send agent & customer an email when reply is added on ticket.', 'a:0:{}', 'a:3:{i:0;a:2:{s:4:"type";s:26:"uvdesk.ticket.assign_agent";s:5:"value";s:18:"responsePerforming";}i:1;a:2:{s:4:"type";s:24:"uvdesk.ticket.mail_agent";s:5:"value";a:2:{s:3:"for";a:1:{i:0;s:13:"assignedAgent";}s:5:"value";s:2:"10";}}i:2;a:2:{s:4:"type";s:27:"uvdesk.ticket.mail_customer";s:5:"value";s:2:"11";}}', 7, 1, 1, '[[regtime]]', '[[regtime]]'), (9, 'Collaborator Added to ticket', 'Send collaborator a welcome email after their account has been Added.', 'a:0:{}', 'a:1:{i:0;a:2:{s:4:"type";s:36:"uvdesk.ticket.mail_last_collaborator";s:5:"value";s:1:"9";}}', 8, 1, 1, '[[regtime]]', '[[regtime]]');
-- -- Constraints for table `agent_activity` -- ALTER TABLE `agent_activity` ADD CONSTRAINT `FK_9AA510CE3414710B` FOREIGN KEY (`agent_id`) REFERENCES `uv_user` (`id`) ON DELETE CASCADE, ADD CONSTRAINT `FK_9AA510CE700047D2` FOREIGN KEY (`ticket_id`) REFERENCES `uv_ticket` (`id`) ON DELETE CASCADE;
-- -- Constraints for table `announcement` -- ALTER TABLE `announcement` ADD CONSTRAINT `FK_4DB9D91CFE54D947` FOREIGN KEY (`group_id`) REFERENCES `uv_support_group` (`id`);
-- -- Constraints for table `uv_admin_support_groups` -- ALTER TABLE `uv_admin_support_groups` ADD CONSTRAINT `FK_215FF93837B7A2F1` FOREIGN KEY (`adminUserInstanceId`) REFERENCES `uv_user_instance` (`id`) ON DELETE CASCADE, ADD CONSTRAINT `FK_215FF93853F5B65F` FOREIGN KEY (`supportGroupId`) REFERENCES `uv_support_group` (`id`) ON DELETE CASCADE;
-- -- Constraints for table `uv_article_feedback` -- ALTER TABLE `uv_article_feedback` ADD CONSTRAINT `FK_BCB7F9147294869C` FOREIGN KEY (`article_id`) REFERENCES `uv_article` (`id`) ON DELETE CASCADE, ADD CONSTRAINT `FK_BCB7F914A76ED395` FOREIGN KEY (`user_id`) REFERENCES `uv_user` (`id`) ON DELETE CASCADE;
-- -- Constraints for table `uv_article_view_log` -- ALTER TABLE `uv_article_view_log` ADD CONSTRAINT `FK_8F76FF117294869C` FOREIGN KEY (`article_id`) REFERENCES `uv_article` (`id`) ON DELETE CASCADE, ADD CONSTRAINT `FK_8F76FF11A76ED395` FOREIGN KEY (`user_id`) REFERENCES `uv_user` (`id`) ON DELETE CASCADE;
-- -- Constraints for table `uv_email_templates` -- ALTER TABLE `uv_email_templates` ADD CONSTRAINT `FK_784A0D85A76ED395` FOREIGN KEY (`user_id`) REFERENCES `uv_user_instance` (`id`) ON DELETE CASCADE;
-- -- Constraints for table `uv_lead_support_teams` -- ALTER TABLE `uv_lead_support_teams` ADD CONSTRAINT `FK_8B5F844DA77C7023` FOREIGN KEY (`supportTeamId`) REFERENCES `uv_support_team` (`id`) ON DELETE CASCADE, ADD CONSTRAINT `FK_8B5F844DD397BD7C` FOREIGN KEY (`leadUserInstanceId`) REFERENCES `uv_user_instance` (`id`) ON DELETE CASCADE;
-- -- Constraints for table `uv_prepared_responses` -- ALTER TABLE `uv_prepared_responses` ADD CONSTRAINT `FK_8AB5F066A76ED395` FOREIGN KEY (`user_id`) REFERENCES `uv_user_instance` (`id`) ON DELETE SET NULL;
-- -- Constraints for table `uv_prepared_response_support_groups` -- ALTER TABLE `uv_prepared_response_support_groups` ADD CONSTRAINT `FK_A22590198D3102C3` FOREIGN KEY (`savedReply_id`) REFERENCES `uv_prepared_responses` (`id`) ON DELETE CASCADE, ADD CONSTRAINT `FK_A2259019FE54D947` FOREIGN KEY (`group_id`) REFERENCES `uv_support_group` (`id`) ON DELETE CASCADE;
-- -- Constraints for table `uv_prepared_response_support_teams` -- ALTER TABLE `uv_prepared_response_support_teams` ADD CONSTRAINT `FK_B6897DEB8D3102C3` FOREIGN KEY (`savedReply_id`) REFERENCES `uv_prepared_responses` (`id`) ON DELETE CASCADE, ADD CONSTRAINT `FK_B6897DEBF5C464CE` FOREIGN KEY (`subgroup_id`) REFERENCES `uv_support_team` (`id`) ON DELETE CASCADE;
-- -- Constraints for table `uv_saved_filters` -- ALTER TABLE `uv_saved_filters` ADD CONSTRAINT `FK_E1BFBAF7A76ED395` FOREIGN KEY (`user_id`) REFERENCES `uv_user_instance` (`id`) ON DELETE CASCADE;
-- -- Constraints for table `uv_saved_replies` -- ALTER TABLE `uv_saved_replies` ADD CONSTRAINT `FK_39C8BA50A76ED395` FOREIGN KEY (`user_id`) REFERENCES `uv_user_instance` (`id`) ON DELETE CASCADE;
-- -- Constraints for table `uv_saved_replies_groups` -- ALTER TABLE `uv_saved_replies_groups` ADD CONSTRAINT `FK_C59C13668D3102C3` FOREIGN KEY (`savedReply_id`) REFERENCES `uv_saved_replies` (`id`) ON DELETE CASCADE, ADD CONSTRAINT `FK_C59C1366FE54D947` FOREIGN KEY (`group_id`) REFERENCES `uv_support_group` (`id`) ON DELETE CASCADE;
-- -- Constraints for table `uv_saved_replies_teams` -- ALTER TABLE `uv_saved_replies_teams` ADD CONSTRAINT `FK_D240CE708D3102C3` FOREIGN KEY (`savedReply_id`) REFERENCES `uv_saved_replies` (`id`) ON DELETE CASCADE, ADD CONSTRAINT `FK_D240CE70F5C464CE` FOREIGN KEY (`subgroup_id`) REFERENCES `uv_support_team` (`id`) ON DELETE CASCADE;
-- -- Constraints for table `uv_support_groups_teams` -- ALTER TABLE `uv_support_groups_teams` ADD CONSTRAINT `FK_761A315D9718E641` FOREIGN KEY (`supportTeam_id`) REFERENCES `uv_support_team` (`id`) ON DELETE CASCADE, ADD CONSTRAINT `FK_761A315DCE5F5290` FOREIGN KEY (`supportGroup_id`) REFERENCES `uv_support_group` (`id`) ON DELETE CASCADE;
-- -- Constraints for table `uv_support_label` -- ALTER TABLE `uv_support_label` ADD CONSTRAINT `FK_EFD454DDA76ED395` FOREIGN KEY (`user_id`) REFERENCES `uv_user` (`id`) ON DELETE CASCADE;
-- -- Constraints for table `uv_thread` -- ALTER TABLE `uv_thread` ADD CONSTRAINT `FK_637D7E5D700047D2` FOREIGN KEY (`ticket_id`) REFERENCES `uv_ticket` (`id`) ON DELETE CASCADE, ADD CONSTRAINT `FK_637D7E5DA76ED395` FOREIGN KEY (`user_id`) REFERENCES `uv_user` (`id`) ON DELETE SET NULL;
-- -- Constraints for table `uv_ticket` -- ALTER TABLE `uv_ticket` ADD CONSTRAINT `FK_C5FD9F7D3414710B` FOREIGN KEY (`agent_id`) REFERENCES `uv_user` (`id`) ON DELETE SET NULL, ADD CONSTRAINT `FK_C5FD9F7D497B19F9` FOREIGN KEY (`priority_id`) REFERENCES `uv_ticket_priority` (`id`), ADD CONSTRAINT `FK_C5FD9F7D6BF700BD` FOREIGN KEY (`status_id`) REFERENCES `uv_ticket_status` (`id`), ADD CONSTRAINT `FK_C5FD9F7D9395C3F3` FOREIGN KEY (`customer_id`) REFERENCES `uv_user` (`id`) ON DELETE CASCADE, ADD CONSTRAINT `FK_C5FD9F7DC54C8C93` FOREIGN KEY (`type_id`) REFERENCES `uv_ticket_type` (`id`) ON DELETE SET NULL, ADD CONSTRAINT `FK_C5FD9F7DCB20698` FOREIGN KEY (`subGroup_id`) REFERENCES `uv_support_team` (`id`) ON DELETE SET NULL, ADD CONSTRAINT `FK_C5FD9F7DFE54D947` FOREIGN KEY (`group_id`) REFERENCES `uv_support_group` (`id`) ON DELETE SET NULL;
-- -- Constraints for table `uv_tickets_collaborators` -- ALTER TABLE `uv_tickets_collaborators` ADD CONSTRAINT `FK_20764CBA700047D2` FOREIGN KEY (`ticket_id`) REFERENCES `uv_ticket` (`id`) ON DELETE CASCADE, ADD CONSTRAINT `FK_20764CBAA76ED395` FOREIGN KEY (`user_id`) REFERENCES `uv_user` (`id`) ON DELETE CASCADE;
-- -- Constraints for table `uv_tickets_labels` -- ALTER TABLE `uv_tickets_labels` ADD CONSTRAINT `FK_305F9C0E33B92F39` FOREIGN KEY (`label_id`) REFERENCES `uv_support_label` (`id`) ON DELETE CASCADE, ADD CONSTRAINT `FK_305F9C0E700047D2` FOREIGN KEY (`ticket_id`) REFERENCES `uv_ticket` (`id`) ON DELETE CASCADE;
-- -- Constraints for table `uv_tickets_tags` -- ALTER TABLE `uv_tickets_tags` ADD CONSTRAINT `FK_CF4DF9E3700047D2` FOREIGN KEY (`ticket_id`) REFERENCES `uv_ticket` (`id`) ON DELETE CASCADE, ADD CONSTRAINT `FK_CF4DF9E3BAD26311` FOREIGN KEY (`tag_id`) REFERENCES `uv_tag` (`id`) ON DELETE CASCADE;
-- -- Constraints for table `uv_ticket_attachments` -- ALTER TABLE `uv_ticket_attachments` ADD CONSTRAINT `FK_FE918C8EE2904019` FOREIGN KEY (`thread_id`) REFERENCES `uv_thread` (`id`) ON DELETE CASCADE;
-- -- Constraints for table `uv_ticket_rating` -- ALTER TABLE `uv_ticket_rating` ADD CONSTRAINT `FK_B1025E04700047D2` FOREIGN KEY (`ticket_id`) REFERENCES `uv_ticket` (`id`) ON DELETE CASCADE, ADD CONSTRAINT `FK_B1025E04A76ED395` FOREIGN KEY (`user_id`) REFERENCES `uv_user` (`id`) ON DELETE CASCADE;
-- -- Constraints for table `uv_user_instance` -- ALTER TABLE `uv_user_instance` ADD CONSTRAINT `FK_B174473368771C43` FOREIGN KEY (`supportRole_id`) REFERENCES `uv_support_role` (`id`) ON DELETE CASCADE, ADD CONSTRAINT `FK_B1744733A76ED395` FOREIGN KEY (`user_id`) REFERENCES `uv_user` (`id`) ON DELETE CASCADE;
-- -- Constraints for table `uv_user_support_groups` -- ALTER TABLE `uv_user_support_groups` ADD CONSTRAINT `FK_B6CD76C253F5B65F` FOREIGN KEY (`supportGroupId`) REFERENCES `uv_support_group` (`id`) ON DELETE CASCADE, ADD CONSTRAINT `FK_B6CD76C28B414560` FOREIGN KEY (`userInstanceId`) REFERENCES `uv_user_instance` (`id`) ON DELETE CASCADE;
-- -- Constraints for table `uv_user_support_privileges` -- ALTER TABLE `uv_user_support_privileges` ADD CONSTRAINT `FK_9550EDB289C60B89` FOREIGN KEY (`supportPrivilegeId`) REFERENCES `uv_support_privilege` (`id`) ON DELETE CASCADE, ADD CONSTRAINT `FK_9550EDB28B414560` FOREIGN KEY (`userInstanceId`) REFERENCES `uv_user_instance` (`id`) ON DELETE CASCADE;
-- -- Constraints for table `uv_user_support_teams` -- ALTER TABLE `uv_user_support_teams` ADD CONSTRAINT `FK_5F33E9F78B414560` FOREIGN KEY (`userInstanceId`) REFERENCES `uv_user_instance` (`id`) ON DELETE CASCADE, ADD CONSTRAINT `FK_5F33E9F7A77C7023` FOREIGN KEY (`supportTeamId`) REFERENCES `uv_support_team` (`id`) ON DELETE CASCADE;
-- -- Constraints for table `uv_website_knowledgebase` -- ALTER TABLE `uv_website_knowledgebase` ADD CONSTRAINT `FK_DFF10F0B476F5DE7` FOREIGN KEY (`website`) REFERENCES `uv_website` (`id`);
-- -- Constraints for table `uv_workflow_events` -- ALTER TABLE `uv_workflow_events` ADD CONSTRAINT `FK_6AEB02A92C7C2CBA` FOREIGN KEY (`workflow_id`) REFERENCES `uv_workflow` (`id`) ON DELETE CASCADE;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;