-- https://www.phpmyadmin.net/
--

START TRANSACTION;



--
-- Database: `gooyachat`
--
DROP DATABASE IF EXISTS `gooyachat`;
CREATE DATABASE IF NOT EXISTS `gooyachat` DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_persian_ci;
USE `gooyachat`;

-- --------------------------------------------------------

--
-- Table structure for table `gooyaacc_chat_access`
--

CREATE TABLE `gooyaacc_chat_access` (
  `user_id` int(11) NOT NULL,
  `is_enabled` tinyint(1) NOT NULL DEFAULT 0,
  `chat_role` enum('user','operator','admin') NOT NULL DEFAULT 'user',
  `can_start_direct` tinyint(1) NOT NULL DEFAULT 1,
  `display_name` varchar(150) DEFAULT NULL,
  `avatar_path` varchar(255) DEFAULT NULL,
  `is_online` tinyint(1) NOT NULL DEFAULT 0,
  `last_seen_at` datetime DEFAULT NULL,
  `enabled_by` int(11) DEFAULT NULL,
  `enabled_at` datetime DEFAULT NULL,
  `updated_at` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_persian_ci;

--
-- Dumping data for table `gooyaacc_chat_access`
--

INSERT IGNORE INTO `gooyaacc_chat_access` (`user_id`, `is_enabled`, `chat_role`, `can_start_direct`, `display_name`, `avatar_path`, `is_online`, `last_seen_at`, `enabled_by`, `enabled_at`, `updated_at`) VALUES
(1, 1, 'admin', 1, 'حسین فغان پور', NULL, 1, '2026-08-17 15:01:15', NULL, '2026-08-10 14:10:15', '2026-08-10 14:10:15'),
(2, 1, 'user', 1, 'علی محمدی', NULL, 1, '2026-08-11 11:26:34', 1, NULL, '2026-08-11 11:26:34'),
(3, 1, 'user', 1, 'سارا احمدی', NULL, 1, '2026-08-11 11:26:34', 1, NULL, '2026-08-11 11:26:34'),
(4, 1, 'user', 1, 'رضا کریمی', NULL, 0, NULL, 1, NULL, '2026-08-11 11:26:34'),
(5, 0, 'user', 1, 'عیسی زارع', NULL, 0, NULL, NULL, NULL, '2026-08-10 14:10:15'),
(6, 0, 'user', 1, 'رضا محمدیان', NULL, 0, NULL, NULL, NULL, '2026-08-10 14:10:15'),
(7, 0, 'user', 1, 'علی کریمی', NULL, 0, NULL, NULL, NULL, '2026-08-10 14:10:15'),
(8, 0, 'user', 1, 'نیما قاسمی', NULL, 0, NULL, NULL, NULL, '2026-08-10 14:10:15'),
(9, 0, 'user', 1, 'زهرا مرادی', NULL, 0, NULL, NULL, NULL, '2026-08-10 14:10:15'),
(10, 0, 'user', 1, 'امیر صادقی', NULL, 0, NULL, NULL, NULL, '2026-08-10 14:10:15'),
(11, 0, 'user', 1, 'سارا احمدی', NULL, 0, NULL, NULL, NULL, '2026-08-10 14:10:15'),
(12, 0, 'user', 1, 'فاطمه کاظمی', NULL, 0, NULL, NULL, NULL, '2026-08-10 14:10:15'),
(13, 0, 'user', 1, 'سینا یوسفی', NULL, 0, NULL, NULL, NULL, '2026-08-10 14:10:15'),
(14, 0, 'user', 1, 'الهام جعفری', NULL, 0, NULL, NULL, NULL, '2026-08-10 14:10:15'),
(15, 0, 'user', 1, 'حسن رضایی', NULL, 0, NULL, NULL, NULL, '2026-08-10 14:10:15'),
(16, 0, 'user', 1, 'بهرام اکبری', NULL, 0, NULL, NULL, NULL, '2026-08-10 14:10:15'),
(17, 0, 'user', 1, 'نگار شریفی', NULL, 0, NULL, NULL, NULL, '2026-08-10 14:10:15'),
(18, 0, 'user', 1, 'پیمان بابایی', NULL, 0, NULL, NULL, NULL, '2026-08-10 14:10:15'),
(19, 0, 'user', 1, 'مریم حسینی', NULL, 0, NULL, NULL, NULL, '2026-08-10 14:10:15'),
(20, 0, 'user', 1, 'مینا رستمی', NULL, 0, NULL, NULL, NULL, '2026-08-10 14:10:15'),
(21, 0, 'user', 1, 'کیان عباسی', NULL, 0, NULL, NULL, NULL, '2026-08-10 14:10:15'),
(22, 0, 'user', 1, 'رها نادری', NULL, 0, NULL, NULL, NULL, '2026-08-10 14:10:15'),
(23, 0, 'user', 1, 'کاوه نوری', NULL, 0, NULL, NULL, NULL, '2026-08-10 14:10:15'),
(24, 0, 'user', 1, 'آرش فلاحی', NULL, 0, NULL, 1, NULL, '2026-08-10 14:46:50'),
(25, 0, 'user', 1, 'سحر زارع', NULL, 0, NULL, NULL, NULL, '2026-08-10 14:10:15'),
(26, 0, 'user', 1, 'وحید محمودی', NULL, 0, NULL, NULL, NULL, '2026-08-10 14:10:15');

-- --------------------------------------------------------

--
-- Table structure for table `gooyaacc_chat_archive_attachments`
--

CREATE TABLE `gooyaacc_chat_archive_attachments` (
  `id` int(11) NOT NULL,
  `message_id` int(11) NOT NULL,
  `room_id` int(11) NOT NULL,
  `storage_attachment_id` bigint(20) UNSIGNED NOT NULL,
  `kind` enum('file','image','voice') NOT NULL DEFAULT 'file',
  `orig_name` varchar(255) DEFAULT NULL,
  `ext` varchar(12) DEFAULT NULL,
  `mime` varchar(120) DEFAULT NULL,
  `size_bytes` bigint(20) NOT NULL DEFAULT 0,
  `duration_sec` int(11) DEFAULT NULL,
  `width` int(11) DEFAULT NULL,
  `height` int(11) DEFAULT NULL,
  `sha256` char(64) DEFAULT NULL,
  `storage_status` enum('pending','ready','deleted','failed') NOT NULL DEFAULT 'pending',
  `created_at` datetime DEFAULT NULL,
  `archive_run_id` int(11) NOT NULL,
  `archived_at` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_persian_ci;

-- --------------------------------------------------------

--
-- Table structure for table `gooyaacc_chat_archive_messages`
--

CREATE TABLE `gooyaacc_chat_archive_messages` (
  `id` int(11) NOT NULL,
  `room_id` int(11) NOT NULL,
  `sender_id` int(11) NOT NULL,
  `msg_type` enum('text','file','image','voice','system') NOT NULL DEFAULT 'text',
  `body` text DEFAULT NULL,
  `reply_to_id` int(11) DEFAULT NULL,
  `client_uid` varchar(40) DEFAULT NULL,
  `is_edited` tinyint(1) NOT NULL DEFAULT 0,
  `edited_at` datetime DEFAULT NULL,
  `deleted` tinyint(1) NOT NULL DEFAULT 0,
  `deleted_by` int(11) DEFAULT NULL,
  `deleted_at` datetime DEFAULT NULL,
  `created_at` datetime DEFAULT NULL,
  `archive_run_id` int(11) NOT NULL,
  `archived_at` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_persian_ci;

-- --------------------------------------------------------

--
-- Table structure for table `gooyaacc_chat_archive_runs`
--

CREATE TABLE `gooyaacc_chat_archive_runs` (
  `id` int(11) NOT NULL,
  `run_type` enum('auto','manual') NOT NULL DEFAULT 'manual',
  `cutoff_date` date NOT NULL,
  `months_setting` int(11) NOT NULL DEFAULT 6,
  `rooms_count` int(11) NOT NULL DEFAULT 0,
  `messages_count` int(11) NOT NULL DEFAULT 0,
  `attachments_count` int(11) NOT NULL DEFAULT 0,
  `bytes_moved` bigint(20) NOT NULL DEFAULT 0,
  `status` enum('running','done','failed','rolled_back') NOT NULL DEFAULT 'running',
  `error_text` text DEFAULT NULL,
  `cloud_export_status` enum('pending','exporting','ready','failed','disabled') NOT NULL DEFAULT 'pending',
  `cloud_file_id` bigint(20) UNSIGNED DEFAULT NULL,
  `cloud_attachment_id` bigint(20) UNSIGNED DEFAULT NULL,
  `cloud_sha256` char(64) DEFAULT NULL,
  `cloud_exported_at` datetime DEFAULT NULL,
  `cloud_error_text` text DEFAULT NULL,
  `run_by` int(11) DEFAULT NULL,
  `started_at` datetime DEFAULT NULL,
  `finished_at` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_persian_ci;

-- --------------------------------------------------------

--
-- Table structure for table `gooyaacc_chat_attachments`
--

CREATE TABLE `gooyaacc_chat_attachments` (
  `id` int(11) NOT NULL,
  `message_id` int(11) NOT NULL,
  `room_id` int(11) NOT NULL,
  `storage_attachment_id` bigint(20) UNSIGNED NOT NULL,
  `kind` enum('file','image','voice') NOT NULL DEFAULT 'file',
  `orig_name` varchar(255) DEFAULT NULL,
  `ext` varchar(12) DEFAULT NULL,
  `mime` varchar(120) DEFAULT NULL,
  `size_bytes` bigint(20) NOT NULL DEFAULT 0,
  `duration_sec` int(11) DEFAULT NULL,
  `width` int(11) DEFAULT NULL,
  `height` int(11) DEFAULT NULL,
  `sha256` char(64) DEFAULT NULL,
  `storage_status` enum('pending','ready','deleted','failed') NOT NULL DEFAULT 'pending',
  `created_at` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_persian_ci;

--
-- Dumping data for table `gooyaacc_chat_attachments`
--

INSERT IGNORE INTO `gooyaacc_chat_attachments` (`id`, `message_id`, `room_id`, `storage_attachment_id`, `kind`, `orig_name`, `ext`, `mime`, `size_bytes`, `duration_sec`, `width`, `height`, `sha256`, `storage_status`, `created_at`) VALUES
(28, 102, 1, 2569, 'voice', 'voice-1786437748206.webm', 'webm', 'video/webm', 162737, 11, NULL, NULL, 'bed146fcc639b657c990b79f0b72d1cda716c81c198e6b25b8b7d60c373c2e7b', 'ready', '2026-08-11 12:12:28'),
(29, 106, 1, 2714, 'voice', 'voice-1786962651679.webm', 'webm', 'video/webm', 67893, 5, NULL, NULL, 'cb1d8980229345f533233ed70a7032c2dd25a2d873788ce58f67acfed9d507e8', 'ready', '2026-08-17 14:00:52');

-- --------------------------------------------------------

--
-- Table structure for table `gooyaacc_chat_log`
--

CREATE TABLE `gooyaacc_chat_log` (
  `id` int(11) NOT NULL,
  `actor_id` int(11) DEFAULT NULL,
  `action` varchar(50) NOT NULL,
  `room_id` int(11) DEFAULT NULL,
  `message_id` int(11) DEFAULT NULL,
  `target_user_id` int(11) DEFAULT NULL,
  `detail` varchar(500) DEFAULT NULL,
  `ip` varchar(45) DEFAULT NULL,
  `ua` varchar(255) DEFAULT NULL,
  `created_at` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_persian_ci;

--
-- Dumping data for table `gooyaacc_chat_log`
--

INSERT IGNORE INTO `gooyaacc_chat_log` (`id`, `actor_id`, `action`, `room_id`, `message_id`, `target_user_id`, `detail`, `ip`, `ua`, `created_at`) VALUES
(34, 1, 'update_settings', NULL, NULL, NULL, '{\"chat_globally_enabled\":1,\"allow_direct_chat\":1,\"max_file_size_mb\":10,\"archive_mode\":\"auto\",\"archive_after_months\":6,\"archive_hour\":2,\"retain_attachments_on_archive\":1}', '', 'GooyaChat admin', '2026-08-11 09:21:41'),
(316, 1, 'archive_export', NULL, NULL, NULL, '{\"run_id\":1,\"cloud_file_id\":114,\"sha256\":\"fdebce7a8c1b076ebbf3a16f712b35ce984fe8170615d35dec8f69c2fb093dc6\",\"format\":\"zip-jsonl-v1\"}', '', 'GooyaChat archive', '2026-08-11 11:29:24'),
(317, 1, 'archive_restore', NULL, NULL, NULL, '{\"run_id\":1,\"messages\":1,\"attachments\":1}', '', 'GooyaChat archive', '2026-08-11 11:29:24'),
(319, 1, 'archive_purge', NULL, NULL, NULL, '{\"run_id\":2,\"attachments\":1,\"via\":\"GooyaStorage\"}', '', 'GooyaChat archive', '2026-08-11 11:29:25'),
(375, 1, 'archive_export', NULL, NULL, NULL, '{\"run_id\":7,\"cloud_file_id\":115,\"sha256\":\"eaff99c75d9cad08e13fcfee2ca0f40cecf571a1b9ebf75cfd7bda29ad685ee3\",\"format\":\"zip-jsonl-v1\"}', '', 'GooyaChat archive', '2026-08-11 11:56:42'),
(376, 1, 'archive_restore', NULL, NULL, NULL, '{\"run_id\":7,\"messages\":1,\"attachments\":1}', '', 'GooyaChat archive', '2026-08-11 11:56:42'),
(378, 1, 'archive_export', NULL, NULL, NULL, '{\"run_id\":8,\"cloud_file_id\":116,\"sha256\":\"cbad4f5d5f11aeb2b55334f811d22dc88b73eb1095926727ca163807279331c1\",\"format\":\"zip-jsonl-v1\"}', '', 'GooyaChat archive', '2026-08-11 11:56:43'),
(379, 1, 'archive_purge', NULL, NULL, NULL, '{\"run_id\":8,\"attachments\":1,\"via\":\"GooyaStorage\"}', '', 'GooyaChat archive', '2026-08-11 11:56:43'),
(425, 1, 'archive_export', NULL, NULL, NULL, '{\"run_id\":9,\"cloud_file_id\":117,\"sha256\":\"588588d78b4325d4fdcf31ab6a39151fe6e3ead533b8ae126113f7cae04bd181\",\"format\":\"zip-jsonl-v1\"}', '', 'GooyaChat archive', '2026-08-11 11:57:07'),
(426, 1, 'archive_restore', NULL, NULL, NULL, '{\"run_id\":9,\"messages\":1,\"attachments\":1}', '', 'GooyaChat archive', '2026-08-11 11:57:07'),
(428, 1, 'archive_export', NULL, NULL, NULL, '{\"run_id\":10,\"cloud_file_id\":118,\"sha256\":\"68b3f303abc6415e24aff2dd17f08d9c0de2a66791dfca4414e3cf36b1065d93\",\"format\":\"zip-jsonl-v1\"}', '', 'GooyaChat archive', '2026-08-11 11:57:09'),
(429, 1, 'archive_purge', NULL, NULL, NULL, '{\"run_id\":10,\"attachments\":1,\"via\":\"GooyaStorage\"}', '', 'GooyaChat archive', '2026-08-11 11:57:09'),
(439, 1, 'send_attachment', 1, 102, NULL, '{\"storage_attachment_id\":2569,\"kind\":\"voice\",\"sha256\":\"bed146fcc639b657c990b79f0b72d1cda716c81c198e6b25b8b7d60c373c2e7b\"}', '::1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/150.0.0.0 Safari/537.36', '2026-08-11 12:12:28'),
(447, 1, 'send_attachment', 1, 106, NULL, '{\"storage_attachment_id\":2714,\"kind\":\"voice\",\"sha256\":\"cb1d8980229345f533233ed70a7032c2dd25a2d873788ce58f67acfed9d507e8\"}', '::1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/151.0.0.0 Safari/537.36', '2026-08-17 14:00:52');

-- --------------------------------------------------------

--
-- Table structure for table `gooyaacc_chat_members`
--

CREATE TABLE `gooyaacc_chat_members` (
  `id` int(11) NOT NULL,
  `room_id` int(11) NOT NULL,
  `user_id` int(11) NOT NULL,
  `member_role` enum('member','operator','owner') NOT NULL DEFAULT 'member',
  `last_read_message_id` int(11) NOT NULL DEFAULT 0,
  `unread_count` int(11) NOT NULL DEFAULT 0,
  `is_muted` tinyint(1) NOT NULL DEFAULT 0,
  `is_pinned` tinyint(1) NOT NULL DEFAULT 0,
  `joined_at` datetime DEFAULT NULL,
  `left_at` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_persian_ci;

--
-- Dumping data for table `gooyaacc_chat_members`
--

INSERT IGNORE INTO `gooyaacc_chat_members` (`id`, `room_id`, `user_id`, `member_role`, `last_read_message_id`, `unread_count`, `is_muted`, `is_pinned`, `joined_at`, `left_at`) VALUES
(1, 1, 1, 'operator', 106, 0, 0, 0, '2026-08-10 14:10:15', NULL),
(2, 2, 1, 'operator', 0, 0, 0, 0, '2026-08-10 14:10:15', NULL),
(12, 1, 24, 'operator', 0, 0, 0, 0, '2026-08-10 14:29:39', '2026-08-10 14:46:50'),
(13, 2, 24, 'operator', 0, 0, 0, 0, '2026-08-10 14:29:39', '2026-08-10 14:46:50'),
(546, 1, 2, 'member', 0, 5, 0, 0, '2026-08-11 11:26:34', NULL),
(547, 2, 2, 'member', 0, 0, 0, 0, '2026-08-11 11:26:34', NULL),
(549, 108, 2, 'owner', 0, 0, 0, 0, '2026-08-11 11:26:34', NULL),
(551, 1, 3, 'member', 0, 5, 0, 0, '2026-08-11 11:26:34', NULL),
(552, 2, 3, 'member', 0, 0, 0, 0, '2026-08-11 11:26:34', NULL),
(554, 109, 3, 'owner', 0, 0, 0, 0, '2026-08-11 11:26:34', NULL),
(556, 1, 4, 'member', 0, 5, 0, 0, '2026-08-11 11:26:34', NULL),
(557, 2, 4, 'member', 0, 0, 0, 0, '2026-08-11 11:26:34', NULL),
(559, 110, 4, 'owner', 0, 0, 0, 0, '2026-08-11 11:26:34', NULL);

-- --------------------------------------------------------

--
-- Table structure for table `gooyaacc_chat_messages`
--

CREATE TABLE `gooyaacc_chat_messages` (
  `id` int(11) NOT NULL,
  `room_id` int(11) NOT NULL,
  `sender_id` int(11) NOT NULL,
  `msg_type` enum('text','file','image','voice','system') NOT NULL DEFAULT 'text',
  `body` text DEFAULT NULL,
  `reply_to_id` int(11) DEFAULT NULL,
  `client_uid` varchar(40) DEFAULT NULL,
  `is_edited` tinyint(1) NOT NULL DEFAULT 0,
  `edited_at` datetime DEFAULT NULL,
  `deleted` tinyint(1) NOT NULL DEFAULT 0,
  `deleted_by` int(11) DEFAULT NULL,
  `deleted_at` datetime DEFAULT NULL,
  `created_at` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_persian_ci;

--
-- Dumping data for table `gooyaacc_chat_messages`
--

INSERT IGNORE INTO `gooyaacc_chat_messages` (`id`, `room_id`, `sender_id`, `msg_type`, `body`, `reply_to_id`, `client_uid`, `is_edited`, `edited_at`, `deleted`, `deleted_by`, `deleted_at`, `created_at`) VALUES
(100, 1, 1, 'text', 'سلام', NULL, 'b9e583e4f5b244d49b0ff0bae7ec1fc3', 0, NULL, 0, NULL, NULL, '2026-08-11 12:10:07'),
(101, 1, 1, 'text', 'سیسیس', 100, '72e34a1d6d9849da9baf02e5b5f53734', 0, NULL, 0, NULL, NULL, '2026-08-11 12:11:05'),
(102, 1, 1, 'voice', 'voice-1786437748206.webm', NULL, '49e3a412659747fd9b903d73cdaae496', 0, NULL, 0, NULL, NULL, '2026-08-11 12:12:28'),
(105, 1, 1, 'text', 'cvcvcvcvc', NULL, '031d30d9ed604e088e35cbcafabc36ff', 0, NULL, 0, NULL, NULL, '2026-08-17 13:59:57'),
(106, 1, 1, 'voice', 'voice-1786962651679.webm', NULL, 'dd8d88da1c324aae987d674114cf1037', 0, NULL, 0, NULL, NULL, '2026-08-17 14:00:52');

-- --------------------------------------------------------

--
-- Table structure for table `gooyaacc_chat_receipts`
--

CREATE TABLE `gooyaacc_chat_receipts` (
  `message_id` int(11) NOT NULL,
  `user_id` int(11) NOT NULL,
  `delivered_at` datetime DEFAULT NULL,
  `read_at` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_persian_ci;

--
-- Dumping data for table `gooyaacc_chat_receipts`
--

INSERT IGNORE INTO `gooyaacc_chat_receipts` (`message_id`, `user_id`, `delivered_at`, `read_at`) VALUES
(100, 2, NULL, NULL),
(100, 3, NULL, NULL),
(100, 4, NULL, NULL),
(101, 2, NULL, NULL),
(101, 3, NULL, NULL),
(101, 4, NULL, NULL),
(102, 2, NULL, NULL),
(102, 3, NULL, NULL),
(102, 4, NULL, NULL),
(105, 2, NULL, NULL),
(105, 3, NULL, NULL),
(105, 4, NULL, NULL),
(106, 2, NULL, NULL),
(106, 3, NULL, NULL),
(106, 4, NULL, NULL);

-- --------------------------------------------------------

--
-- Table structure for table `gooyaacc_chat_rooms`
--

CREATE TABLE `gooyaacc_chat_rooms` (
  `id` int(11) NOT NULL,
  `room_type` enum('public','support','direct') NOT NULL,
  `title` varchar(200) DEFAULT NULL,
  `slug` varchar(100) DEFAULT NULL,
  `description` varchar(500) DEFAULT NULL,
  `owner_user_id` int(11) DEFAULT NULL,
  `dm_key` varchar(40) DEFAULT NULL,
  `is_readonly` tinyint(1) NOT NULL DEFAULT 0,
  `status` enum('open','closed') NOT NULL DEFAULT 'open',
  `assigned_op_id` int(11) DEFAULT NULL,
  `is_archived` tinyint(1) NOT NULL DEFAULT 0,
  `last_message_id` int(11) DEFAULT NULL,
  `last_message_at` datetime DEFAULT NULL,
  `deleted` tinyint(1) NOT NULL DEFAULT 0,
  `created_by` int(11) DEFAULT NULL,
  `created_at` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_persian_ci;

--
-- Dumping data for table `gooyaacc_chat_rooms`
--

INSERT IGNORE INTO `gooyaacc_chat_rooms` (`id`, `room_type`, `title`, `slug`, `description`, `owner_user_id`, `dm_key`, `is_readonly`, `status`, `assigned_op_id`, `is_archived`, `last_message_id`, `last_message_at`, `deleted`, `created_by`, `created_at`) VALUES
(1, 'public', 'گفتگوی عمومی', 'general', 'کانال عمومی همهٔ همکاران', NULL, NULL, 0, 'open', NULL, 0, 106, '2026-08-17 14:00:52', 0, 1, '2026-08-10 14:10:15'),
(2, 'public', 'اطلاعیه‌ها', 'announcements', 'اطلاعیه‌های مدیریت — فقط خواندنی', NULL, NULL, 1, 'open', NULL, 0, NULL, NULL, 0, 1, '2026-08-10 14:10:15');

-- --------------------------------------------------------

--
-- Table structure for table `gooyaacc_chat_settings`
--

CREATE TABLE `gooyaacc_chat_settings` (
  `skey` varchar(64) NOT NULL,
  `svalue` text DEFAULT NULL,
  `updated_at` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_persian_ci;

--
-- Dumping data for table `gooyaacc_chat_settings`
--

INSERT IGNORE INTO `gooyaacc_chat_settings` (`skey`, `svalue`, `updated_at`) VALUES
('allow_direct_chat', '1', '2026-08-11 09:21:41'),
('allowed_ext', 'jpg,jpeg,png,gif,webp,pdf,doc,docx,xls,xlsx,ppt,pptx,csv,zip', '2026-08-10 14:10:15'),
('archive_after_months', '6', '2026-08-11 09:21:41'),
('archive_chunk_size', '5000', '2026-08-10 14:10:15'),
('archive_cloud_folder_name', 'آرشیو چت‌های گویا', '2026-08-10 14:10:15'),
('archive_cloud_format', 'zip-jsonl-v1', '2026-08-10 14:10:15'),
('archive_cloud_owner_user_id', '0', '2026-08-10 14:10:15'),
('archive_cloud_public_links', '0', '2026-08-11 09:21:41'),
('archive_hour', '2', '2026-08-11 09:21:41'),
('archive_mode', 'auto', '2026-08-11 09:21:41'),
('archive_package_encryption_required', '1', '2026-08-11 09:21:41'),
('archive_to_gooya_cloud', '1', '2026-08-11 09:21:41'),
('chat_globally_enabled', '1', '2026-08-11 11:26:34'),
('edit_window_seconds', '300', '2026-08-10 14:10:15'),
('max_file_size', '10485760', '2026-08-11 09:21:41'),
('poll_idle_ms', '20000', '2026-08-10 14:10:15'),
('poll_interval_ms', '4000', '2026-08-10 14:10:15'),
('rate_messages_per_min', '30', '2026-08-10 14:10:15'),
('rate_uploads_per_min', '10', '2026-08-10 14:10:15'),
('retain_attachments_on_archive', '1', '2026-08-11 09:21:41'),
('schema_version', '2.0-contract', '2026-08-10 14:10:15'),
('storage_gateway', 'GooyaStorage', '2026-08-11 09:21:41'),
('storage_source_module', 'GooyaChat', '2026-08-10 14:10:15'),
('typing_1', '{\"room_id\":0,\"typing\":0,\"at\":1786962596}', '2026-08-17 13:59:56'),
('user_sync_ttl_minutes', '60', '2026-08-10 14:10:15'),
('voice_ext', 'webm,ogg,oga,m4a,mp3,wav', '2026-08-10 14:10:15'),
('voice_max_seconds', '120', '2026-08-10 14:10:15'),
('voice_max_size', '5242880', '2026-08-10 14:10:15');

-- --------------------------------------------------------

--
-- Table structure for table `gooyaacc_chat_users`
--

CREATE TABLE `gooyaacc_chat_users` (
  `user_id` int(11) NOT NULL,
  `user_name` varchar(100) DEFAULT NULL,
  `first_name` varchar(100) DEFAULT NULL,
  `last_name` varchar(100) DEFAULT NULL,
  `full_name` varchar(220) DEFAULT NULL,
  `email` varchar(180) DEFAULT NULL,
  `is_crm_admin` tinyint(1) NOT NULL DEFAULT 0,
  `crm_status` varchar(25) DEFAULT NULL,
  `crm_deleted` tinyint(1) NOT NULL DEFAULT 0,
  `synced_at` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_persian_ci;

--
-- Dumping data for table `gooyaacc_chat_users`
--

INSERT IGNORE INTO `gooyaacc_chat_users` (`user_id`, `user_name`, `first_name`, `last_name`, `full_name`, `email`, `is_crm_admin`, `crm_status`, `crm_deleted`, `synced_at`) VALUES
(1, 'admin', 'فرهاد', 'داداشی', 'فرهاد داداشی', '', 1, 'Active', 0, '2026-08-25 09:46:59'),
(2, 'ali', 'خانم', 'حسنی', 'خانم حسنی', '', 0, 'Active', 0, '2026-08-25 09:46:59'),
(3, 'sara', 'خانم', 'رمضانپور', 'خانم رمضانپور', '', 0, 'Active', 0, '2026-08-25 09:46:59'),
(4, 'reza', 'خانم', 'تقی پور', 'خانم تقی پور', '', 0, 'Active', 0, '2026-08-25 09:46:59'),
(5, 'a.zare', 'خانم', 'رامی', 'خانم رامی', '', 0, 'Active', 0, '2026-08-25 09:46:59'),
(6, 'kpiseed_mgr', 'خانم', 'سعادتی', 'خانم سعادتی', '', 0, 'Active', 0, '2026-08-25 09:46:59'),
(7, 'kpiseed_sup1', 'خانم', 'صادق نیا', 'خانم صادق نیا', '', 0, 'Active', 0, '2026-08-25 09:46:59'),
(8, 'kpiseed_emp1', 'نیما', 'قاسمی', 'نیما قاسمی', 'kpiseed_emp1@example.local', 0, 'Active', 0, '2026-08-25 09:46:59'),
(9, 'kpiseed_emp2', 'زهرا', 'مرادی', 'زهرا مرادی', 'kpiseed_emp2@example.local', 0, 'Active', 0, '2026-08-25 09:46:59'),
(10, 'kpiseed_emp3', 'امیر', 'صادقی', 'امیر صادقی', 'kpiseed_emp3@example.local', 0, 'Active', 0, '2026-08-25 09:46:59'),
(11, 'kpiseed_sup2', 'سارا', 'احمدی', 'سارا احمدی', 'kpiseed_sup2@example.local', 0, 'Active', 0, '2026-08-25 09:46:59'),
(12, 'kpiseed_emp4', 'فاطمه', 'کاظمی', 'فاطمه کاظمی', 'kpiseed_emp4@example.local', 0, 'Active', 0, '2026-08-25 09:46:59'),
(13, 'kpiseed_emp5', 'سینا', 'یوسفی', 'سینا یوسفی', 'kpiseed_emp5@example.local', 0, 'Active', 0, '2026-08-25 09:46:59'),
(14, 'kpiseed_emp6', 'الهام', 'جعفری', 'الهام جعفری', 'kpiseed_emp6@example.local', 0, 'Active', 0, '2026-08-25 09:46:59'),
(15, 'kpiseed_sup3', 'حسن', 'رضایی', 'حسن رضایی', 'kpiseed_sup3@example.local', 0, 'Active', 0, '2026-08-25 09:46:59'),
(16, 'kpiseed_emp7', 'بهرام', 'اکبری', 'بهرام اکبری', 'kpiseed_emp7@example.local', 0, 'Active', 0, '2026-08-25 09:46:59'),
(17, 'kpiseed_emp8', 'نگار', 'شریفی', 'نگار شریفی', 'kpiseed_emp8@example.local', 0, 'Active', 0, '2026-08-25 09:46:59'),
(18, 'kpiseed_emp9', 'پیمان', 'بابایی', 'پیمان بابایی', 'kpiseed_emp9@example.local', 0, 'Active', 0, '2026-08-25 09:46:59'),
(19, 'kpiseed_sup4', 'مریم', 'حسینی', 'مریم حسینی', 'kpiseed_sup4@example.local', 0, 'Active', 0, '2026-08-25 09:46:59'),
(20, 'kpiseed_emp10', 'مینا', 'رستمی', 'مینا رستمی', 'kpiseed_emp10@example.local', 0, 'Active', 0, '2026-08-25 09:46:59'),
(21, 'kpiseed_emp11', 'کیان', 'عباسی', 'کیان عباسی', 'kpiseed_emp11@example.local', 0, 'Active', 0, '2026-08-25 09:46:59'),
(22, 'kpiseed_emp12', 'رها', 'نادری', 'رها نادری', 'kpiseed_emp12@example.local', 0, 'Active', 0, '2026-08-25 09:46:59'),
(23, 'kpiseed_sup5', 'کاوه', 'نوری', 'کاوه نوری', 'kpiseed_sup5@example.local', 0, 'Active', 0, '2026-08-25 09:46:59'),
(24, 'kpiseed_emp13', 'آرش', 'فلاحی', 'آرش فلاحی', 'kpiseed_emp13@example.local', 0, 'Active', 0, '2026-08-25 09:46:59'),
(25, 'kpiseed_emp14', 'سحر', 'زارع', 'سحر زارع', 'kpiseed_emp14@example.local', 0, 'Active', 0, '2026-08-25 09:46:59'),
(26, 'kpiseed_emp15', 'وحید', 'محمودی', 'وحید محمودی', 'kpiseed_emp15@example.local', 0, 'Active', 0, '2026-08-25 09:46:59');

--
-- Indexes for dumped tables
--

--
-- Indexes for table `gooyaacc_chat_access`
--
ALTER TABLE `gooyaacc_chat_access`
  ADD PRIMARY KEY (`user_id`),
  ADD KEY `idx_enabled` (`is_enabled`),
  ADD KEY `idx_role` (`chat_role`);

--
-- Indexes for table `gooyaacc_chat_archive_attachments`
--
ALTER TABLE `gooyaacc_chat_archive_attachments`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `uq_archive_storage_attachment` (`storage_attachment_id`),
  ADD KEY `idx_run` (`archive_run_id`),
  ADD KEY `idx_msg` (`message_id`),
  ADD KEY `idx_room` (`room_id`),
  ADD KEY `idx_storage_status` (`storage_status`);

--
-- Indexes for table `gooyaacc_chat_archive_messages`
--
ALTER TABLE `gooyaacc_chat_archive_messages`
  ADD PRIMARY KEY (`id`),
  ADD KEY `idx_run` (`archive_run_id`),
  ADD KEY `idx_room` (`room_id`,`id`),
  ADD KEY `idx_created` (`created_at`),
  ADD KEY `idx_sender` (`sender_id`);

--
-- Indexes for table `gooyaacc_chat_archive_runs`
--
ALTER TABLE `gooyaacc_chat_archive_runs`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `uq_cloud_file` (`cloud_file_id`),
  ADD KEY `idx_status` (`status`),
  ADD KEY `idx_cutoff` (`cutoff_date`),
  ADD KEY `idx_cloud_export` (`cloud_export_status`);

--
-- Indexes for table `gooyaacc_chat_attachments`
--
ALTER TABLE `gooyaacc_chat_attachments`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `uq_storage_attachment` (`storage_attachment_id`),
  ADD KEY `idx_msg` (`message_id`),
  ADD KEY `idx_room` (`room_id`),
  ADD KEY `idx_kind` (`kind`),
  ADD KEY `idx_storage_status` (`storage_status`);

--
-- Indexes for table `gooyaacc_chat_log`
--
ALTER TABLE `gooyaacc_chat_log`
  ADD PRIMARY KEY (`id`),
  ADD KEY `idx_actor` (`actor_id`),
  ADD KEY `idx_action` (`action`),
  ADD KEY `idx_created` (`created_at`);

--
-- Indexes for table `gooyaacc_chat_members`
--
ALTER TABLE `gooyaacc_chat_members`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `uq_room_user` (`room_id`,`user_id`),
  ADD KEY `idx_user` (`user_id`),
  ADD KEY `idx_unread` (`user_id`,`unread_count`);

--
-- Indexes for table `gooyaacc_chat_messages`
--
ALTER TABLE `gooyaacc_chat_messages`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `uq_client` (`room_id`,`client_uid`),
  ADD KEY `idx_room_id` (`room_id`,`id`),
  ADD KEY `idx_created` (`created_at`),
  ADD KEY `idx_sender` (`sender_id`);

--
-- Indexes for table `gooyaacc_chat_receipts`
--
ALTER TABLE `gooyaacc_chat_receipts`
  ADD PRIMARY KEY (`message_id`,`user_id`),
  ADD KEY `idx_user` (`user_id`);

--
-- Indexes for table `gooyaacc_chat_rooms`
--
ALTER TABLE `gooyaacc_chat_rooms`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `uq_slug` (`slug`),
  ADD UNIQUE KEY `uq_dm` (`dm_key`),
  ADD KEY `idx_type` (`room_type`),
  ADD KEY `idx_owner` (`owner_user_id`),
  ADD KEY `idx_last` (`last_message_at`),
  ADD KEY `idx_arch` (`is_archived`);

--
-- Indexes for table `gooyaacc_chat_settings`
--
ALTER TABLE `gooyaacc_chat_settings`
  ADD PRIMARY KEY (`skey`);

--
-- Indexes for table `gooyaacc_chat_users`
--
ALTER TABLE `gooyaacc_chat_users`
  ADD PRIMARY KEY (`user_id`),
  ADD KEY `idx_active` (`crm_deleted`,`crm_status`),
  ADD KEY `idx_admin` (`is_crm_admin`),
  ADD KEY `idx_name` (`full_name`);

--
-- AUTO_INCREMENT for dumped tables
--

--
-- AUTO_INCREMENT for table `gooyaacc_chat_archive_runs`
--
ALTER TABLE `gooyaacc_chat_archive_runs`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=11;

--
-- AUTO_INCREMENT for table `gooyaacc_chat_attachments`
--
ALTER TABLE `gooyaacc_chat_attachments`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=30;

--
-- AUTO_INCREMENT for table `gooyaacc_chat_log`
--
ALTER TABLE `gooyaacc_chat_log`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=448;

--
-- AUTO_INCREMENT for table `gooyaacc_chat_members`
--
ALTER TABLE `gooyaacc_chat_members`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=881;

--
-- AUTO_INCREMENT for table `gooyaacc_chat_messages`
--
ALTER TABLE `gooyaacc_chat_messages`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=107;

--
-- AUTO_INCREMENT for table `gooyaacc_chat_rooms`
--
ALTER TABLE `gooyaacc_chat_rooms`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=196;
--
-- Database: `gooyanegar`
--
DROP DATABASE IF EXISTS `gooyanegar`;
CREATE DATABASE IF NOT EXISTS `gooyanegar` DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_persian_ci;
USE `gooyanegar`;

-- --------------------------------------------------------

--
-- Table structure for table `gooyaacc_negar_access`
--

CREATE TABLE `gooyaacc_negar_access` (
  `user_id` int(11) NOT NULL,
  `is_enabled` tinyint(1) NOT NULL DEFAULT 0,
  `access_role` enum('user','secretary','manager','admin') NOT NULL DEFAULT 'user',
  `view_scope` enum('own','org_unit','assigned','all') NOT NULL DEFAULT 'own',
  `can_create` tinyint(1) NOT NULL DEFAULT 1,
  `can_send` tinyint(1) NOT NULL DEFAULT 0,
  `can_register` tinyint(1) NOT NULL DEFAULT 0,
  `can_approve` tinyint(1) NOT NULL DEFAULT 0,
  `can_sign` tinyint(1) NOT NULL DEFAULT 0,
  `can_manage_templates` tinyint(1) NOT NULL DEFAULT 0,
  `can_view_confidential` tinyint(1) NOT NULL DEFAULT 0,
  `can_use_ai` tinyint(1) NOT NULL DEFAULT 0,
  `can_export` tinyint(1) NOT NULL DEFAULT 0,
  `can_manage_archive` tinyint(1) NOT NULL DEFAULT 0,
  `can_purge` tinyint(1) NOT NULL DEFAULT 0,
  `can_view_audit` tinyint(1) NOT NULL DEFAULT 0,
  `can_manage_users` tinyint(1) NOT NULL DEFAULT 0,
  `max_file_size_bytes` bigint(20) UNSIGNED DEFAULT NULL,
  `enabled_by` int(11) DEFAULT NULL,
  `enabled_at` datetime DEFAULT NULL,
  `updated_at` datetime DEFAULT NULL,
  `temporary_substitute_user_id` int(11) DEFAULT NULL,
  `temporary_substitute_from` datetime DEFAULT NULL,
  `temporary_substitute_until` datetime DEFAULT NULL,
  `temporary_substitute_set_by` int(11) DEFAULT NULL,
  `temporary_substitute_reason` varchar(500) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_persian_ci;

--
-- Dumping data for table `gooyaacc_negar_access`
--

INSERT IGNORE INTO `gooyaacc_negar_access` (`user_id`, `is_enabled`, `access_role`, `view_scope`, `can_create`, `can_send`, `can_register`, `can_approve`, `can_sign`, `can_manage_templates`, `can_view_confidential`, `can_use_ai`, `can_export`, `can_manage_archive`, `can_purge`, `can_view_audit`, `can_manage_users`, `max_file_size_bytes`, `enabled_by`, `enabled_at`, `updated_at`, `temporary_substitute_user_id`, `temporary_substitute_from`, `temporary_substitute_until`, `temporary_substitute_set_by`, `temporary_substitute_reason`) VALUES
(1, 1, 'admin', 'all', 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, NULL, 1, '2026-08-15 10:57:24', '2026-08-25 09:48:21', NULL, NULL, NULL, NULL, NULL),
(2, 0, 'user', 'own', 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, NULL, NULL, NULL, '2026-08-25 09:48:21', NULL, NULL, NULL, NULL, NULL),
(3, 0, 'user', 'own', 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, NULL, NULL, NULL, '2026-08-25 09:48:21', NULL, NULL, NULL, NULL, NULL),
(4, 0, 'user', 'own', 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, NULL, NULL, NULL, '2026-08-25 09:48:21', NULL, NULL, NULL, NULL, NULL),
(5, 0, 'user', 'own', 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, NULL, NULL, NULL, '2026-08-25 09:48:21', NULL, NULL, NULL, NULL, NULL),
(6, 1, 'manager', 'own', 1, 1, 0, 1, 1, 0, 0, 0, 1, 0, 0, 0, 0, NULL, 1, '2026-08-15 10:57:24', '2026-08-25 09:48:21', NULL, NULL, NULL, NULL, NULL),
(7, 1, 'user', 'own', 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, NULL, 1, '2026-08-15 10:57:24', '2026-08-25 09:48:21', NULL, NULL, NULL, NULL, NULL),
(8, 1, 'user', 'own', 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, NULL, 1, '2026-08-15 10:57:24', '2026-08-25 09:48:21', NULL, NULL, NULL, NULL, NULL),
(9, 0, 'user', 'own', 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, NULL, NULL, NULL, '2026-08-25 09:48:21', NULL, NULL, NULL, NULL, NULL),
(10, 0, 'user', 'own', 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, NULL, NULL, NULL, '2026-08-25 09:48:21', NULL, NULL, NULL, NULL, NULL),
(11, 0, 'user', 'own', 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, NULL, NULL, NULL, '2026-08-25 09:48:21', NULL, NULL, NULL, NULL, NULL),
(12, 0, 'user', 'own', 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, NULL, NULL, NULL, '2026-08-25 09:48:21', NULL, NULL, NULL, NULL, NULL),
(13, 0, 'user', 'own', 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, NULL, NULL, NULL, '2026-08-25 09:48:21', NULL, NULL, NULL, NULL, NULL),
(14, 0, 'user', 'own', 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, NULL, NULL, NULL, '2026-08-25 09:48:21', NULL, NULL, NULL, NULL, NULL),
(15, 0, 'user', 'own', 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, NULL, NULL, NULL, '2026-08-25 09:48:21', NULL, NULL, NULL, NULL, NULL),
(16, 0, 'user', 'own', 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, NULL, NULL, NULL, '2026-08-25 09:48:21', NULL, NULL, NULL, NULL, NULL),
(17, 0, 'user', 'own', 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, NULL, NULL, NULL, '2026-08-25 09:48:21', NULL, NULL, NULL, NULL, NULL),
(18, 0, 'user', 'own', 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, NULL, NULL, NULL, '2026-08-25 09:48:21', NULL, NULL, NULL, NULL, NULL),
(19, 0, 'user', 'own', 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, NULL, NULL, NULL, '2026-08-25 09:48:21', NULL, NULL, NULL, NULL, NULL),
(20, 0, 'user', 'own', 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, NULL, NULL, NULL, '2026-08-25 09:48:21', NULL, NULL, NULL, NULL, NULL),
(21, 0, 'user', 'own', 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, NULL, NULL, NULL, '2026-08-25 09:48:21', NULL, NULL, NULL, NULL, NULL),
(22, 0, 'user', 'own', 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, NULL, NULL, NULL, '2026-08-25 09:48:21', NULL, NULL, NULL, NULL, NULL),
(23, 0, 'user', 'own', 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, NULL, NULL, NULL, '2026-08-25 09:48:21', NULL, NULL, NULL, NULL, NULL),
(24, 0, 'user', 'own', 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, NULL, NULL, NULL, '2026-08-25 09:48:21', NULL, NULL, NULL, NULL, NULL),
(25, 0, 'user', 'own', 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, NULL, NULL, NULL, '2026-08-25 09:48:21', NULL, NULL, NULL, NULL, NULL),
(26, 0, 'user', 'own', 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, NULL, NULL, NULL, '2026-08-25 09:48:21', NULL, NULL, NULL, NULL, NULL);

-- --------------------------------------------------------

--
-- Table structure for table `gooyaacc_negar_ai_audit`
--

CREATE TABLE `gooyaacc_negar_ai_audit` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `request_uuid` char(36) NOT NULL,
  `letter_id` bigint(20) UNSIGNED DEFAULT NULL,
  `version_id` bigint(20) UNSIGNED DEFAULT NULL,
  `user_id` int(11) NOT NULL,
  `operation` enum('draft','rewrite','grammar','shorten','expand','subject','summary','action_extract','reply') NOT NULL,
  `provider_name` varchar(100) DEFAULT NULL,
  `model_name` varchar(120) DEFAULT NULL,
  `data_policy` enum('internal','external_allowed','blocked_confidential') NOT NULL DEFAULT 'internal',
  `prompt_sha256` char(64) DEFAULT NULL,
  `input_sha256` char(64) DEFAULT NULL,
  `output_sha256` char(64) DEFAULT NULL,
  `input_tokens` int(10) UNSIGNED NOT NULL DEFAULT 0,
  `output_tokens` int(10) UNSIGNED NOT NULL DEFAULT 0,
  `request_status` enum('pending','completed','failed','blocked','cancelled') NOT NULL DEFAULT 'pending',
  `error_code` varchar(80) DEFAULT NULL,
  `error_message` varchar(500) DEFAULT NULL,
  `created_at` datetime NOT NULL,
  `finished_at` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_persian_ci;

-- --------------------------------------------------------

--
-- Table structure for table `gooyaacc_negar_attachments`
--

CREATE TABLE `gooyaacc_negar_attachments` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `letter_id` bigint(20) UNSIGNED DEFAULT NULL,
  `version_id` bigint(20) UNSIGNED DEFAULT NULL,
  `attachment_kind` enum('attachment','draft_pdf','final_pdf','letterhead') NOT NULL DEFAULT 'attachment',
  `storage_attachment_id` bigint(20) UNSIGNED DEFAULT NULL,
  `display_name` varchar(255) NOT NULL,
  `extension` varchar(16) DEFAULT NULL,
  `mime_type` varchar(150) DEFAULT NULL,
  `size_bytes` bigint(20) UNSIGNED NOT NULL DEFAULT 0,
  `checksum_sha256` char(64) DEFAULT NULL,
  `visibility` enum('all_recipients','primary_only','internal_only') NOT NULL DEFAULT 'all_recipients',
  `storage_status` enum('pending','ready','quarantined','deleted','failed') NOT NULL DEFAULT 'pending',
  `purge_status` enum('none','pending','purged','failed') NOT NULL DEFAULT 'none',
  `created_by` int(11) NOT NULL,
  `created_at` datetime NOT NULL,
  `deleted_by` int(11) DEFAULT NULL,
  `deleted_at` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_persian_ci;

--
-- Dumping data for table `gooyaacc_negar_attachments`
--

INSERT IGNORE INTO `gooyaacc_negar_attachments` (`id`, `letter_id`, `version_id`, `attachment_kind`, `storage_attachment_id`, `display_name`, `extension`, `mime_type`, `size_bytes`, `checksum_sha256`, `visibility`, `storage_status`, `purge_status`, `created_by`, `created_at`, `deleted_by`, `deleted_at`) VALUES
(74, 102, 111, 'final_pdf', 2700, 'official-GNT-1405-000001.pdf', 'pdf', 'application/pdf', 129557, '3be3cd442e2be50de77e94fe301ef352fc20f71014b008f6728b1d13acefed22', 'all_recipients', 'ready', 'none', 6, '2026-08-15 10:57:25', NULL, NULL),
(75, 102, 111, 'final_pdf', 2701, 'registry-GNT-1405-000001.pdf', 'pdf', 'application/pdf', 130709, 'da73b4ad8f4b5b13f14565c07d59a4c75db43e6b1cc290436f8406ee4553d4c2', 'internal_only', 'ready', 'none', 6, '2026-08-15 10:57:25', NULL, NULL),
(76, 103, 112, 'final_pdf', 2702, 'official-GNT-1405-000002.pdf', 'pdf', 'application/pdf', 128980, '3af060413a62adcdc2a100a349de8fbeef11159fb3f60141820d49f609542fef', 'all_recipients', 'ready', 'none', 6, '2026-08-15 10:57:26', NULL, NULL),
(77, 103, 112, 'final_pdf', 2703, 'registry-GNT-1405-000002.pdf', 'pdf', 'application/pdf', 129776, 'b9708296490b6487bf83c2163880061dc69d11b74197ca3b1409fb78adfc462e', 'internal_only', 'ready', 'none', 6, '2026-08-15 10:57:26', NULL, NULL),
(78, 104, 113, 'attachment', 2704, 'پیوست-آزمایشی-گویانگار.txt', 'txt', 'text/plain', 80, 'd850c79103b2fb0dffc3b1512e0bae1e5e5acd17a6d2a05248f5c774ea64ddf8', 'all_recipients', 'ready', 'none', 1, '2026-08-15 10:57:26', NULL, NULL);

-- --------------------------------------------------------

--
-- Table structure for table `gooyaacc_negar_audit_log`
--

CREATE TABLE `gooyaacc_negar_audit_log` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `event_uuid` char(36) NOT NULL,
  `actor_user_id` int(11) DEFAULT NULL,
  `action` varchar(100) NOT NULL,
  `outcome` enum('success','denied','failed') NOT NULL DEFAULT 'success',
  `letter_id` bigint(20) UNSIGNED DEFAULT NULL,
  `version_id` bigint(20) UNSIGNED DEFAULT NULL,
  `recipient_id` bigint(20) UNSIGNED DEFAULT NULL,
  `referral_id` bigint(20) UNSIGNED DEFAULT NULL,
  `target_user_id` int(11) DEFAULT NULL,
  `request_id` varchar(100) DEFAULT NULL,
  `ip_address` varchar(45) DEFAULT NULL,
  `user_agent_sha256` char(64) DEFAULT NULL,
  `detail_json` mediumtext DEFAULT NULL,
  `previous_hash` char(64) DEFAULT NULL,
  `event_hash` char(64) NOT NULL,
  `created_at` datetime NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_persian_ci;

--
-- Dumping data for table `gooyaacc_negar_audit_log`
--

INSERT IGNORE INTO `gooyaacc_negar_audit_log` (`id`, `event_uuid`, `actor_user_id`, `action`, `outcome`, `letter_id`, `version_id`, `recipient_id`, `referral_id`, `target_user_id`, `request_id`, `ip_address`, `user_agent_sha256`, `detail_json`, `previous_hash`, `event_hash`, `created_at`) VALUES
(686, '8ef5401d-2341-4b88-87e0-0b91e4c7f4c7', 1, 'access_denied', 'denied', NULL, NULL, NULL, NULL, NULL, '8ef5401d-2341-4b88-87e0-0b91e4c7f4c7', '::1', '6235d36597d64fc0e0c3883911a8fb2f9451d0254ab3379d980f5a3426585d87', '{\"capability\":\"view\",\"reason\":\"module_disabled\"}', '0000000000000000000000000000000000000000000000000000000000000000', '0f07948e60c444a0042b8f1b1c3e829287998440445ca8395176a055d062b5c5', '2026-08-15 06:14:43'),
(687, 'f81907fa-bb29-4e02-94cb-2c3da7c3ac71', 1, 'access_denied', 'denied', NULL, NULL, NULL, NULL, NULL, 'f81907fa-bb29-4e02-94cb-2c3da7c3ac71', '::1', '6235d36597d64fc0e0c3883911a8fb2f9451d0254ab3379d980f5a3426585d87', '{\"capability\":\"view\",\"reason\":\"module_disabled\"}', '0f07948e60c444a0042b8f1b1c3e829287998440445ca8395176a055d062b5c5', 'e57573113e7a5523dd90f4f7dfdcccd8d93bc38946a00d93b729f76ca452d347', '2026-08-15 06:25:58'),
(695, '74867044-1e5f-4b21-94e0-b4747d4e8d70', 1, 'access_denied', 'denied', NULL, NULL, NULL, NULL, NULL, '74867044-1e5f-4b21-94e0-b4747d4e8d70', '::1', '6235d36597d64fc0e0c3883911a8fb2f9451d0254ab3379d980f5a3426585d87', '{\"capability\":\"view\",\"reason\":\"module_disabled\"}', 'e57573113e7a5523dd90f4f7dfdcccd8d93bc38946a00d93b729f76ca452d347', '8408e66e2f778225a96a571b2888d48627383a2cea16ae6f33285ea8d583cbc4', '2026-08-15 06:30:14'),
(696, '08be3278-6e02-4cff-b641-8e32d89fccc9', 1, 'access_denied', 'denied', NULL, NULL, NULL, NULL, NULL, '08be3278-6e02-4cff-b641-8e32d89fccc9', '::1', '6235d36597d64fc0e0c3883911a8fb2f9451d0254ab3379d980f5a3426585d87', '{\"capability\":\"view\",\"reason\":\"module_disabled\"}', '8408e66e2f778225a96a571b2888d48627383a2cea16ae6f33285ea8d583cbc4', '06965ac08e0832cb57b4aa6fc76b4eb8c07ae240b35ccb76b3ee63a40ac190d7', '2026-08-15 06:31:27'),
(697, '04de62c4-292e-4778-afa7-ff45c9d8b191', 1, 'access_denied', 'denied', NULL, NULL, NULL, NULL, NULL, '04de62c4-292e-4778-afa7-ff45c9d8b191', '::1', '6235d36597d64fc0e0c3883911a8fb2f9451d0254ab3379d980f5a3426585d87', '{\"capability\":\"create\",\"reason\":\"module_disabled\"}', '06965ac08e0832cb57b4aa6fc76b4eb8c07ae240b35ccb76b3ee63a40ac190d7', '20be1e8d4b1a06aae5cb17880f029502717454be612f9923aebf0a9b48ed6fa7', '2026-08-15 06:31:31'),
(698, '593eca93-e72d-4b73-9c67-a09d9231da5d', 1, 'access_denied', 'denied', NULL, NULL, NULL, NULL, NULL, '593eca93-e72d-4b73-9c67-a09d9231da5d', '::1', '6235d36597d64fc0e0c3883911a8fb2f9451d0254ab3379d980f5a3426585d87', '{\"capability\":\"view\",\"reason\":\"module_disabled\"}', '20be1e8d4b1a06aae5cb17880f029502717454be612f9923aebf0a9b48ed6fa7', '15596b55cb25296098bf60a305460f90956be14f09478e2992469659b4a75686', '2026-08-15 06:43:05'),
(699, '0f2a57f7-b75e-4b9a-8e06-a65c71eed6f7', 1, 'access_denied', 'denied', NULL, NULL, NULL, NULL, NULL, '0f2a57f7-b75e-4b9a-8e06-a65c71eed6f7', '::1', '6235d36597d64fc0e0c3883911a8fb2f9451d0254ab3379d980f5a3426585d87', '{\"capability\":\"create\",\"reason\":\"module_disabled\"}', '15596b55cb25296098bf60a305460f90956be14f09478e2992469659b4a75686', 'f2e4eb58ba7eb7ddc27241f67535862ee331af6f34c838a13a5537bd259cfde4', '2026-08-15 06:43:07'),
(700, 'bdad0654-69c5-4df3-90a4-1b29ce2d45a8', 1, 'access_denied', 'denied', NULL, NULL, NULL, NULL, NULL, 'bdad0654-69c5-4df3-90a4-1b29ce2d45a8', '::1', '6235d36597d64fc0e0c3883911a8fb2f9451d0254ab3379d980f5a3426585d87', '{\"capability\":\"view\",\"reason\":\"module_disabled\"}', 'f2e4eb58ba7eb7ddc27241f67535862ee331af6f34c838a13a5537bd259cfde4', '50e0fcddf4949187df450e7df8135063a8a139e6f509bc8f3cd9c3d111f684b1', '2026-08-15 06:48:52'),
(863, '1c9e2bdf-ee72-4667-bdb6-79e82c9d7d1e', 1, 'access_denied', 'denied', NULL, NULL, NULL, NULL, NULL, '1c9e2bdf-ee72-4667-bdb6-79e82c9d7d1e', '::1', '6235d36597d64fc0e0c3883911a8fb2f9451d0254ab3379d980f5a3426585d87', '{\"capability\":\"view\",\"reason\":\"module_disabled\"}', '50e0fcddf4949187df450e7df8135063a8a139e6f509bc8f3cd9c3d111f684b1', 'ccb1cecbdd41de86ae951761e60aa0f19e02f33d787ae80bf2cd01bc0fcb6212', '2026-08-15 07:18:08'),
(864, '12411d2b-1b79-43ca-bb78-bd206d54dd5e', 6, 'signature_register', 'success', NULL, NULL, NULL, NULL, 6, '12411d2b-1b79-43ca-bb78-bd206d54dd5e', '', '1b58e7c73ad6e179d8dc924dcec823f8ff4ec0cb80c7453bfcb5a045301515db', '{\"auth_method\":\"password\",\"checksum_sha256\":\"9cf6793740d9b53764b0393e1db65f3e33440408ba1a72455c0d5e9712640779\",\"storage_attachment_id\":2699,\"version_no\":1}', 'ccb1cecbdd41de86ae951761e60aa0f19e02f33d787ae80bf2cd01bc0fcb6212', '8e0e056b2bb7362c7e2957840bb372a6a086e2581f6b9accf52eb66db76aec60', '2026-08-15 07:27:24'),
(865, '5ae5e690-c4cf-4161-bc5c-60cb253fd73f', 1, 'draft_created', 'success', 102, 111, NULL, NULL, NULL, '5ae5e690-c4cf-4161-bc5c-60cb253fd73f', '', '1b58e7c73ad6e179d8dc924dcec823f8ff4ec0cb80c7453bfcb5a045301515db', '{\"content_sha256\":\"bf28d4f286e51b984fe0fddf6c7210ad3b72386d7cc2462b52c8e2907b00dab9\",\"link_count\":0,\"recipient_count\":3,\"row_version\":1,\"save_reason\":\"manual\"}', '8e0e056b2bb7362c7e2957840bb372a6a086e2581f6b9accf52eb66db76aec60', '523e0af5283e0ac598757a017e336ebf55da1eae39a7e2c011909a768c8928f6', '2026-08-15 07:27:25'),
(866, 'e770b98b-0895-44d2-8f9a-395396d467f1', 1, 'workflow_review_requested', 'success', 102, 111, NULL, NULL, 1, 'e770b98b-0895-44d2-8f9a-395396d467f1', '', '1b58e7c73ad6e179d8dc924dcec823f8ff4ec0cb80c7453bfcb5a045301515db', '{\"due_at\":null,\"step_id\":150}', '523e0af5283e0ac598757a017e336ebf55da1eae39a7e2c011909a768c8928f6', 'ea0aa975d3002ea72b3cf150256b21e7507369fa3b354f0a196a9923d348e659', '2026-08-15 07:27:25'),
(867, '9599fe1d-c4db-446e-a4c2-490accdd34dc', 1, 'workflow_review_approved', 'success', 102, 111, NULL, NULL, 1, '9599fe1d-c4db-446e-a4c2-490accdd34dc', '', '1b58e7c73ad6e179d8dc924dcec823f8ff4ec0cb80c7453bfcb5a045301515db', '{\"delegated\":false,\"next_step_id\":151,\"note\":\"\",\"principal_user_id\":1}', 'ea0aa975d3002ea72b3cf150256b21e7507369fa3b354f0a196a9923d348e659', '0c87f0858ddc572bbc706eaa65b237e2467bdf4adc5b8f4cf72ade38428ac26f', '2026-08-15 07:27:25'),
(868, '2430a37f-2569-4713-9c71-82b5f8f4f09a', 1, 'workflow_approved', 'success', 102, 111, NULL, NULL, 1, '2430a37f-2569-4713-9c71-82b5f8f4f09a', '', '1b58e7c73ad6e179d8dc924dcec823f8ff4ec0cb80c7453bfcb5a045301515db', '{\"delegated\":false,\"note\":\"\",\"principal_user_id\":1}', '0c87f0858ddc572bbc706eaa65b237e2467bdf4adc5b8f4cf72ade38428ac26f', '463f95979031a46fbcdf5dee313e2d6e3599e21a9fbb81e4b33b878c51ec06ae', '2026-08-15 07:27:25'),
(869, '92facca2-e789-4a1c-87e1-0cf772830f2b', 1, 'workflow_registration_requested', 'success', 102, NULL, NULL, NULL, 1, '92facca2-e789-4a1c-87e1-0cf772830f2b', '', '1b58e7c73ad6e179d8dc924dcec823f8ff4ec0cb80c7453bfcb5a045301515db', '{\"step_id\":152}', '463f95979031a46fbcdf5dee313e2d6e3599e21a9fbb81e4b33b878c51ec06ae', 'f01a90d1d0da44e54abf2bf21ae10979495112a5c4d85952727cef3255ac228c', '2026-08-15 07:27:25'),
(870, 'c142bc95-8210-4ff1-942a-58511e89dca1', 1, 'letter_registered', 'success', 102, 111, NULL, NULL, 1, 'c142bc95-8210-4ff1-942a-58511e89dca1', '', '1b58e7c73ad6e179d8dc924dcec823f8ff4ec0cb80c7453bfcb5a045301515db', '{\"delegated\":false,\"letter_no\":\"GNT-1405-000001\",\"principal_user_id\":1,\"sequence_id\":24,\"transaction_attempt\":1}', 'f01a90d1d0da44e54abf2bf21ae10979495112a5c4d85952727cef3255ac228c', '1a8e540ff764ba873b0e6627c6ed9edefcb4a8fcfcedd6726348fc5b3addf53e', '2026-08-15 07:27:25'),
(871, '335c7a73-9e5a-4eda-9ee2-45407b24c5a1', 1, 'workflow_signature_requested', 'success', 102, NULL, NULL, NULL, 6, '335c7a73-9e5a-4eda-9ee2-45407b24c5a1', '', '1b58e7c73ad6e179d8dc924dcec823f8ff4ec0cb80c7453bfcb5a045301515db', '{\"step_id\":153}', '1a8e540ff764ba873b0e6627c6ed9edefcb4a8fcfcedd6726348fc5b3addf53e', 'cb6a39c009c38130630ee6d00e1ebebc4b02c3e79d10595ef5239b3bb4bc5362', '2026-08-15 07:27:25'),
(872, '1dfb0df5-d5c6-4e7d-9697-9a9d5aa16a10', 6, 'letter_final_pdf_created', 'success', 102, 111, NULL, NULL, 6, '1dfb0df5-d5c6-4e7d-9697-9a9d5aa16a10', '', '1b58e7c73ad6e179d8dc924dcec823f8ff4ec0cb80c7453bfcb5a045301515db', '{\"blind_copy_count\":1,\"public_attachment_id\":74,\"public_sha256\":\"3be3cd442e2be50de77e94fe301ef352fc20f71014b008f6728b1d13acefed22\",\"public_storage_attachment_id\":2700,\"registry_attachment_id\":75,\"registry_sha256\":\"da73b4ad8f4b5b13f14565c07d59a4c75db43e6b1cc290436f8406ee4553d4c2\",\"renderer\":\"TCPDF 6.10.0\"}', 'cb6a39c009c38130630ee6d00e1ebebc4b02c3e79d10595ef5239b3bb4bc5362', 'a535dff9119576e109504ba7bb7643628b6e551f2aa57ddbfb3fafd4c688c118', '2026-08-15 07:27:25'),
(873, '69841c61-abe0-4acf-90a2-1fa693320a27', 6, 'letter_signed', 'success', 102, 111, NULL, NULL, 6, '69841c61-abe0-4acf-90a2-1fa693320a27', '', '1b58e7c73ad6e179d8dc924dcec823f8ff4ec0cb80c7453bfcb5a045301515db', '{\"acceptance_path\":true,\"auth_method\":\"password\",\"final_pdf_sha256\":\"3be3cd442e2be50de77e94fe301ef352fc20f71014b008f6728b1d13acefed22\",\"signature_checksum\":\"9cf6793740d9b53764b0393e1db65f3e33440408ba1a72455c0d5e9712640779\",\"signature_id\":33}', 'a535dff9119576e109504ba7bb7643628b6e551f2aa57ddbfb3fafd4c688c118', '49c2b8bdeba3657f94ca502ac99c68911a2151dbb9b308f3cd89d1fbfbc764a0', '2026-08-15 07:27:25'),
(874, '7329d898-b12f-41e7-8ca9-d2f863597293', 1, 'letter_sent_final', 'success', 102, 111, NULL, NULL, NULL, '7329d898-b12f-41e7-8ca9-d2f863597293', '', '1b58e7c73ad6e179d8dc924dcec823f8ff4ec0cb80c7453bfcb5a045301515db', '{\"final_pdf_sha256\":\"3be3cd442e2be50de77e94fe301ef352fc20f71014b008f6728b1d13acefed22\",\"letter_no\":\"GNT-1405-000001\",\"sms_copy_enabled\":0,\"sms_queued\":1}', '49c2b8bdeba3657f94ca502ac99c68911a2151dbb9b308f3cd89d1fbfbc764a0', 'dfa8b5a322677a71fc7c018388270a9faac89d9f791255b4d30e79be697e98a2', '2026-08-15 07:27:25'),
(875, '7742ba9d-d9d9-4b94-a3d3-469bc131025b', 6, 'letter_viewed_full', 'success', 102, 111, 140, NULL, 6, '7742ba9d-d9d9-4b94-a3d3-469bc131025b', '', '1b58e7c73ad6e179d8dc924dcec823f8ff4ec0cb80c7453bfcb5a045301515db', '{\"session_fingerprint\":\"d8796e00b03e2a41\",\"session_id_sha256\":\"d8796e00b03e2a418eea2aeee09f9ad66428980d5eec6130c93738aaa7e8156a\"}', 'dfa8b5a322677a71fc7c018388270a9faac89d9f791255b4d30e79be697e98a2', 'e008aa135974ac17a55f0b2a4b338d48040ef29190098bf46d4caa326c342ca1', '2026-08-15 07:27:25'),
(876, '733e9293-eb32-4a85-a906-7f83e7159b16', 6, 'letter_receipt_acknowledged', 'success', 102, NULL, 140, NULL, 6, '733e9293-eb32-4a85-a906-7f83e7159b16', '', '1b58e7c73ad6e179d8dc924dcec823f8ff4ec0cb80c7453bfcb5a045301515db', '[]', 'e008aa135974ac17a55f0b2a4b338d48040ef29190098bf46d4caa326c342ca1', '3991f72ad18190a036ec0b8b8bdf4773bf8f5155ef9bb0ad0be69421d54afa85', '2026-08-15 07:27:25'),
(877, 'a2769b70-faa4-4c47-8d83-a636e6d40851', 1, 'draft_created', 'success', 103, 112, NULL, NULL, NULL, 'a2769b70-faa4-4c47-8d83-a636e6d40851', '', '1b58e7c73ad6e179d8dc924dcec823f8ff4ec0cb80c7453bfcb5a045301515db', '{\"content_sha256\":\"704423af465b20a501252a631dc5f31b34134a1f4898f54f03df803a3ac75002\",\"link_count\":0,\"recipient_count\":3,\"row_version\":1,\"save_reason\":\"manual\"}', '3991f72ad18190a036ec0b8b8bdf4773bf8f5155ef9bb0ad0be69421d54afa85', '82d578332296ac0f7a77ac69409281072e6af76303fdf4e4257d675e9a7eb60d', '2026-08-15 07:27:25'),
(878, '0b6a1b65-12c2-44a5-9b48-6b87d4218fe5', 1, 'workflow_review_requested', 'success', 103, 112, NULL, NULL, 1, '0b6a1b65-12c2-44a5-9b48-6b87d4218fe5', '', '1b58e7c73ad6e179d8dc924dcec823f8ff4ec0cb80c7453bfcb5a045301515db', '{\"due_at\":null,\"step_id\":155}', '82d578332296ac0f7a77ac69409281072e6af76303fdf4e4257d675e9a7eb60d', '6ae6b554b2ee4ab85ee295a09a7f7a8f2bd75dfdd353ac391dc6eea56b248e9c', '2026-08-15 07:27:25'),
(879, 'fbbc8593-da93-4325-b5af-e988f121c7e7', 1, 'workflow_review_approved', 'success', 103, 112, NULL, NULL, 1, 'fbbc8593-da93-4325-b5af-e988f121c7e7', '', '1b58e7c73ad6e179d8dc924dcec823f8ff4ec0cb80c7453bfcb5a045301515db', '{\"delegated\":false,\"next_step_id\":156,\"note\":\"\",\"principal_user_id\":1}', '6ae6b554b2ee4ab85ee295a09a7f7a8f2bd75dfdd353ac391dc6eea56b248e9c', 'c1941b6ebff99ac7726f956a8a976812606f74fa9e5d020fd74ef0fa9fa35a6c', '2026-08-15 07:27:26'),
(880, 'e0a0534a-0452-460b-9105-c79a535e762a', 1, 'workflow_approved', 'success', 103, 112, NULL, NULL, 1, 'e0a0534a-0452-460b-9105-c79a535e762a', '', '1b58e7c73ad6e179d8dc924dcec823f8ff4ec0cb80c7453bfcb5a045301515db', '{\"delegated\":false,\"note\":\"\",\"principal_user_id\":1}', 'c1941b6ebff99ac7726f956a8a976812606f74fa9e5d020fd74ef0fa9fa35a6c', 'cf5bd2e5e565b274428c2064d7ec25caa66426f41cb3f4db4a9ef6bc5415dae1', '2026-08-15 07:27:26'),
(881, '93b169f5-ab8a-4ae0-9d76-b49540a74eed', 1, 'workflow_registration_requested', 'success', 103, NULL, NULL, NULL, 1, '93b169f5-ab8a-4ae0-9d76-b49540a74eed', '', '1b58e7c73ad6e179d8dc924dcec823f8ff4ec0cb80c7453bfcb5a045301515db', '{\"step_id\":157}', 'cf5bd2e5e565b274428c2064d7ec25caa66426f41cb3f4db4a9ef6bc5415dae1', '70666d90eaadd0d7584a747c1e7a23deb6fafbe814da37966b4cc2125bfdf88a', '2026-08-15 07:27:26'),
(882, '86fced0e-571d-4161-ac3b-8062db8000f5', 1, 'letter_registered', 'success', 103, 112, NULL, NULL, 1, '86fced0e-571d-4161-ac3b-8062db8000f5', '', '1b58e7c73ad6e179d8dc924dcec823f8ff4ec0cb80c7453bfcb5a045301515db', '{\"delegated\":false,\"letter_no\":\"GNT-1405-000002\",\"principal_user_id\":1,\"sequence_id\":24,\"transaction_attempt\":1}', '70666d90eaadd0d7584a747c1e7a23deb6fafbe814da37966b4cc2125bfdf88a', '83a5ad71e7976903d5f2721cc2488824c17cfe0c4ec40e4cfa45cc3dd1c9a226', '2026-08-15 07:27:26'),
(883, '70822187-337e-4167-afc2-aaf4d91553b0', 1, 'workflow_signature_requested', 'success', 103, NULL, NULL, NULL, 6, '70822187-337e-4167-afc2-aaf4d91553b0', '', '1b58e7c73ad6e179d8dc924dcec823f8ff4ec0cb80c7453bfcb5a045301515db', '{\"step_id\":158}', '83a5ad71e7976903d5f2721cc2488824c17cfe0c4ec40e4cfa45cc3dd1c9a226', '9ceaca0cac9c00b91a8d37b79050801b0c4840e8b2f320c2950cd01f75a05133', '2026-08-15 07:27:26'),
(884, 'beac2ed8-aa43-4e28-91ab-8912cbd63558', 6, 'letter_final_pdf_created', 'success', 103, 112, NULL, NULL, 6, 'beac2ed8-aa43-4e28-91ab-8912cbd63558', '', '1b58e7c73ad6e179d8dc924dcec823f8ff4ec0cb80c7453bfcb5a045301515db', '{\"blind_copy_count\":1,\"public_attachment_id\":76,\"public_sha256\":\"3af060413a62adcdc2a100a349de8fbeef11159fb3f60141820d49f609542fef\",\"public_storage_attachment_id\":2702,\"registry_attachment_id\":77,\"registry_sha256\":\"b9708296490b6487bf83c2163880061dc69d11b74197ca3b1409fb78adfc462e\",\"renderer\":\"TCPDF 6.10.0\"}', '9ceaca0cac9c00b91a8d37b79050801b0c4840e8b2f320c2950cd01f75a05133', 'aaea5529f632568ce05f163ba118bfaf4f431b0897ace41d32660669d23ae82b', '2026-08-15 07:27:26'),
(885, '882ca028-1211-4e40-b85d-a17e72e2be87', 6, 'letter_signed', 'success', 103, 112, NULL, NULL, 6, '882ca028-1211-4e40-b85d-a17e72e2be87', '', '1b58e7c73ad6e179d8dc924dcec823f8ff4ec0cb80c7453bfcb5a045301515db', '{\"acceptance_path\":true,\"auth_method\":\"password\",\"final_pdf_sha256\":\"3af060413a62adcdc2a100a349de8fbeef11159fb3f60141820d49f609542fef\",\"signature_checksum\":\"9cf6793740d9b53764b0393e1db65f3e33440408ba1a72455c0d5e9712640779\",\"signature_id\":33}', 'aaea5529f632568ce05f163ba118bfaf4f431b0897ace41d32660669d23ae82b', 'e41795bc692e5026e61d03a2a41af01a7770092b9e48c73ca477d977b2c5e22d', '2026-08-15 07:27:26'),
(886, '21d3e397-bfc3-4877-ae61-528c30f9b805', 1, 'letter_sent_final', 'success', 103, 112, NULL, NULL, NULL, '21d3e397-bfc3-4877-ae61-528c30f9b805', '', '1b58e7c73ad6e179d8dc924dcec823f8ff4ec0cb80c7453bfcb5a045301515db', '{\"final_pdf_sha256\":\"3af060413a62adcdc2a100a349de8fbeef11159fb3f60141820d49f609542fef\",\"letter_no\":\"GNT-1405-000002\",\"sms_copy_enabled\":0,\"sms_queued\":0}', 'e41795bc692e5026e61d03a2a41af01a7770092b9e48c73ca477d977b2c5e22d', 'cc76808a2c8afe8c906c2ec90d93555de69265519c5256ca13c94310b9ac87bb', '2026-08-15 07:27:26'),
(887, '3f1f6465-3067-4d03-b594-ddbf49aad400', 1, 'draft_created', 'success', 104, 113, NULL, NULL, NULL, '3f1f6465-3067-4d03-b594-ddbf49aad400', '', '1b58e7c73ad6e179d8dc924dcec823f8ff4ec0cb80c7453bfcb5a045301515db', '{\"content_sha256\":\"0925bd121aaf1efc78122dccbf38c8b344267a4f7123557dd77630058d91977e\",\"link_count\":0,\"recipient_count\":1,\"row_version\":1,\"save_reason\":\"manual\"}', 'cc76808a2c8afe8c906c2ec90d93555de69265519c5256ca13c94310b9ac87bb', '51c1f6c7b6157f1afa943c352a175c988b76dfb6a2d88895a22b5fddb02fbc59', '2026-08-15 07:27:26'),
(888, '4827d6fe-6aa9-49f5-9490-8df76de1ffab', 1, 'draft_attachment_uploaded', 'success', 104, 113, NULL, NULL, NULL, '4827d6fe-6aa9-49f5-9490-8df76de1ffab', '', '1b58e7c73ad6e179d8dc924dcec823f8ff4ec0cb80c7453bfcb5a045301515db', '{\"checksum_sha256\":\"d850c79103b2fb0dffc3b1512e0bae1e5e5acd17a6d2a05248f5c774ea64ddf8\",\"display_name\":\"پیوست-آزمایشی-گویانگار.txt\",\"mime_type\":\"text/plain\",\"size_bytes\":80,\"visibility\":\"all_recipients\"}', '51c1f6c7b6157f1afa943c352a175c988b76dfb6a2d88895a22b5fddb02fbc59', '5765b51e56e0159c687751d75098234cc2c3518a2facb94236090a89f502dfff', '2026-08-15 07:27:27'),
(889, '6f783294-3e6a-4bda-a74a-e30cd8debf0f', 1, 'letter_viewed_full', 'success', 102, 111, NULL, NULL, 1, '6f783294-3e6a-4bda-a74a-e30cd8debf0f', '::1', '6235d36597d64fc0e0c3883911a8fb2f9451d0254ab3379d980f5a3426585d87', '{\"session_fingerprint\":\"0cd5592725ff7e80\",\"session_id_sha256\":\"0cd5592725ff7e8024248685bc0635a82da118cbd704d9da7e130dc453bef1e8\"}', '5765b51e56e0159c687751d75098234cc2c3518a2facb94236090a89f502dfff', '374ebc715d39089825f844aed1ec5c196ad62c351462edfceb7c0c3fb06b3b4e', '2026-08-15 07:33:26'),
(890, '4164449a-55ce-46b9-96b8-b7426723908c', 1, 'letter_viewed_full', 'success', 103, 112, NULL, NULL, 1, '4164449a-55ce-46b9-96b8-b7426723908c', '::1', '6235d36597d64fc0e0c3883911a8fb2f9451d0254ab3379d980f5a3426585d87', '{\"session_fingerprint\":\"0cd5592725ff7e80\",\"session_id_sha256\":\"0cd5592725ff7e8024248685bc0635a82da118cbd704d9da7e130dc453bef1e8\"}', '374ebc715d39089825f844aed1ec5c196ad62c351462edfceb7c0c3fb06b3b4e', 'ba24076669d4fe67932cc84e980b6574e540df9ac23636f639693f4e90cb99a1', '2026-08-15 07:33:31'),
(891, '35a4e7d8-435d-46d2-8fd5-177f395145a0', 1, 'letter_pdf_accessed', 'success', 103, 112, NULL, NULL, 1, '35a4e7d8-435d-46d2-8fd5-177f395145a0', '::1', '6235d36597d64fc0e0c3883911a8fb2f9451d0254ab3379d980f5a3426585d87', '{\"sha256\":\"3af060413a62adcdc2a100a349de8fbeef11159fb3f60141820d49f609542fef\",\"variant\":\"official\"}', 'ba24076669d4fe67932cc84e980b6574e540df9ac23636f639693f4e90cb99a1', '54be6f1a91f84ca5cc4f65a8e018617456437dc8d423e539b3118ad3e312e5be', '2026-08-15 07:33:50'),
(892, 'd8825b10-a7d4-49cd-9565-307f555812ba', 1, 'letter_viewed_full', 'success', 102, 111, NULL, NULL, 1, 'd8825b10-a7d4-49cd-9565-307f555812ba', '::1', '6235d36597d64fc0e0c3883911a8fb2f9451d0254ab3379d980f5a3426585d87', '{\"session_fingerprint\":\"0cd5592725ff7e80\",\"session_id_sha256\":\"0cd5592725ff7e8024248685bc0635a82da118cbd704d9da7e130dc453bef1e8\"}', '54be6f1a91f84ca5cc4f65a8e018617456437dc8d423e539b3118ad3e312e5be', 'def7fdc549666d38372f28f5fd5b1213a5cb92cbbf4ad06d595cb6b09f334acf', '2026-08-15 07:34:32'),
(893, '460f4e40-0cde-434b-8fb9-d1d221f952d5', 1, 'letter_viewed_full', 'success', 102, 111, NULL, NULL, 1, '460f4e40-0cde-434b-8fb9-d1d221f952d5', '::1', '6235d36597d64fc0e0c3883911a8fb2f9451d0254ab3379d980f5a3426585d87', '{\"session_fingerprint\":\"0cd5592725ff7e80\",\"session_id_sha256\":\"0cd5592725ff7e8024248685bc0635a82da118cbd704d9da7e130dc453bef1e8\"}', 'def7fdc549666d38372f28f5fd5b1213a5cb92cbbf4ad06d595cb6b09f334acf', '0166c027b9ace4a58634d6dbe1aa443ac2056883801f4c342333e8facfecb98c', '2026-08-15 07:34:48'),
(894, 'edabd0de-d04d-4a9f-b42c-68215fcfbe9d', 1, 'letter_pdf_accessed', 'success', 102, 111, NULL, NULL, 1, 'edabd0de-d04d-4a9f-b42c-68215fcfbe9d', '::1', '6235d36597d64fc0e0c3883911a8fb2f9451d0254ab3379d980f5a3426585d87', '{\"sha256\":\"3be3cd442e2be50de77e94fe301ef352fc20f71014b008f6728b1d13acefed22\",\"variant\":\"official\"}', '0166c027b9ace4a58634d6dbe1aa443ac2056883801f4c342333e8facfecb98c', 'f0acd0e288ffd1ffe23ca3471ccc172e04099a9b804be878f1541df53fea782f', '2026-08-15 07:35:16'),
(895, 'a99dbf5b-bc00-47e6-b9ae-3381a3805290', 1, 'admin_enable_user', 'success', NULL, NULL, NULL, NULL, 1, 'a99dbf5b-bc00-47e6-b9ae-3381a3805290', '::1', '6235d36597d64fc0e0c3883911a8fb2f9451d0254ab3379d980f5a3426585d87', '{\"capabilities\":{\"can_approve\":1,\"can_create\":1,\"can_export\":1,\"can_manage_archive\":1,\"can_manage_templates\":1,\"can_manage_users\":1,\"can_purge\":0,\"can_register\":1,\"can_send\":1,\"can_sign\":1,\"can_use_ai\":0,\"can_view_audit\":1,\"can_view_confidential\":1},\"max_file_size_mb\":0,\"role\":\"admin\",\"scope\":\"all\"}', 'f0acd0e288ffd1ffe23ca3471ccc172e04099a9b804be878f1541df53fea782f', '53075dbf979064584cd363f413ea22a5b5f5c66990e6a8a749ca29999ab20778', '2026-08-15 07:37:19'),
(896, '3c5b4977-91c4-4617-820a-e8346d89acbc', 1, 'letter_pdf_accessed', 'success', 102, 111, NULL, NULL, 1, '3c5b4977-91c4-4617-820a-e8346d89acbc', '::1', '6235d36597d64fc0e0c3883911a8fb2f9451d0254ab3379d980f5a3426585d87', '{\"sha256\":\"3be3cd442e2be50de77e94fe301ef352fc20f71014b008f6728b1d13acefed22\",\"variant\":\"official\"}', '53075dbf979064584cd363f413ea22a5b5f5c66990e6a8a749ca29999ab20778', '0c69729e4ff0cdd6f02ae9def2ca1d3808b22c7915a7c1ea44b574f69486f0ab', '2026-08-15 07:37:28'),
(922, 'cfaa7120-a305-4d30-b876-90173a1471ad', NULL, 'sms_sent', 'success', 102, NULL, 140, NULL, 6, 'cfaa7120-a305-4d30-b876-90173a1471ad', '', '1b58e7c73ad6e179d8dc924dcec823f8ff4ec0cb80c7453bfcb5a045301515db', '{\"attempt\":1,\"provider_message_id_sha256\":\"75c90caa7fed24b8358206d5ca430bb5a020c0e38b2759eaf1d20843bd73979b\"}', '0c69729e4ff0cdd6f02ae9def2ca1d3808b22c7915a7c1ea44b574f69486f0ab', '95e9eda7150f6ba3f6c26ab13acf241f4294fd97497a32cd0da1f1348468db0d', '2026-08-15 09:54:38'),
(930, '0af6ae82-e1dc-4d0e-ac0f-890ee9cb8e59', 1, 'letter_viewed_full', 'success', 103, 112, NULL, NULL, 1, '0af6ae82-e1dc-4d0e-ac0f-890ee9cb8e59', '::1', '6235d36597d64fc0e0c3883911a8fb2f9451d0254ab3379d980f5a3426585d87', '{\"session_fingerprint\":\"0cd5592725ff7e80\",\"session_id_sha256\":\"0cd5592725ff7e8024248685bc0635a82da118cbd704d9da7e130dc453bef1e8\"}', '95e9eda7150f6ba3f6c26ab13acf241f4294fd97497a32cd0da1f1348468db0d', '55960a471f4514e63f62e4ae29c41c2883acae37abf1c20ac685abb3a44c954a', '2026-08-15 10:12:33'),
(937, 'ea9d229f-ee3c-45ca-9806-de3e78acd3b6', 1, 'identity_password_verify', 'success', NULL, NULL, NULL, NULL, NULL, 'ea9d229f-ee3c-45ca-9806-de3e78acd3b6', '::1', '40956f08f6c9af83802ecd226385c678a06f995e8a19f59cd575a9a4c6acc287', '{\"purpose\":\"manage_signature\"}', '55960a471f4514e63f62e4ae29c41c2883acae37abf1c20ac685abb3a44c954a', 'a3e798fb7c4bd1842c1ddb44058343d701693320fccec90bae2dc8f4ac3132f3', '2026-08-17 10:39:36'),
(938, '6d4003d9-d9bc-4935-98b9-6da24630780f', 1, 'signature_register', 'success', NULL, NULL, NULL, NULL, 1, '6d4003d9-d9bc-4935-98b9-6da24630780f', '::1', '40956f08f6c9af83802ecd226385c678a06f995e8a19f59cd575a9a4c6acc287', '{\"auth_method\":\"password\",\"checksum_sha256\":\"c0d3d67c84871e19ea43668806c39fa6c80f5db5d602f0388704fb51ff97626a\",\"storage_attachment_id\":2716,\"version_no\":1}', 'a3e798fb7c4bd1842c1ddb44058343d701693320fccec90bae2dc8f4ac3132f3', '2708fefc69bd40fc55f91841f3020805396a1ac64f2bacfa72edee0be81bbdf4', '2026-08-17 10:39:37');

-- --------------------------------------------------------

--
-- Table structure for table `gooyaacc_negar_letters`
--

CREATE TABLE `gooyaacc_negar_letters` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `public_uuid` char(36) NOT NULL,
  `direction` enum('internal','incoming','outgoing') NOT NULL DEFAULT 'internal',
  `status` enum('draft','pending_review','changes_requested','pending_approval','approved','rejected','pending_registration','registered','pending_signature','signed','sent','closed','archived','cancelled') NOT NULL DEFAULT 'draft',
  `confidentiality` enum('normal','confidential','secret') NOT NULL DEFAULT 'normal',
  `priority` enum('normal','urgent','immediate') NOT NULL DEFAULT 'normal',
  `org_unit_id` int(11) DEFAULT NULL,
  `sender_user_id` int(11) NOT NULL,
  `sender_name_snapshot` varchar(220) NOT NULL,
  `sender_title_snapshot` varchar(180) DEFAULT NULL,
  `subject` varchar(500) NOT NULL,
  `sequence_id` bigint(20) UNSIGNED DEFAULT NULL,
  `letter_year` smallint(5) UNSIGNED DEFAULT NULL,
  `letter_no` varchar(100) DEFAULT NULL,
  `registered_at` datetime DEFAULT NULL,
  `current_version_id` bigint(20) UNSIGNED DEFAULT NULL,
  `final_pdf_attachment_id` bigint(20) UNSIGNED DEFAULT NULL,
  `final_pdf_sha256` char(64) DEFAULT NULL,
  `requires_ack` tinyint(1) NOT NULL DEFAULT 0,
  `due_at` datetime DEFAULT NULL,
  `signed_at` datetime DEFAULT NULL,
  `sent_at` datetime DEFAULT NULL,
  `closed_at` datetime DEFAULT NULL,
  `archived_at` datetime DEFAULT NULL,
  `legal_hold` tinyint(1) NOT NULL DEFAULT 0,
  `draft_deleted_at` datetime DEFAULT NULL,
  `cancelled_by` int(11) DEFAULT NULL,
  `cancelled_at` datetime DEFAULT NULL,
  `cancellation_reason` varchar(1000) DEFAULT NULL,
  `row_version` int(10) UNSIGNED NOT NULL DEFAULT 1,
  `created_by` int(11) NOT NULL,
  `created_at` datetime NOT NULL,
  `updated_at` datetime DEFAULT NULL,
  `sender_starred` tinyint(1) NOT NULL DEFAULT 0,
  `sender_personal_archived_at` datetime DEFAULT NULL,
  `sender_follow_up_at` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_persian_ci;

--
-- Dumping data for table `gooyaacc_negar_letters`
--

INSERT IGNORE INTO `gooyaacc_negar_letters` (`id`, `public_uuid`, `direction`, `status`, `confidentiality`, `priority`, `org_unit_id`, `sender_user_id`, `sender_name_snapshot`, `sender_title_snapshot`, `subject`, `sequence_id`, `letter_year`, `letter_no`, `registered_at`, `current_version_id`, `final_pdf_attachment_id`, `final_pdf_sha256`, `requires_ack`, `due_at`, `signed_at`, `sent_at`, `closed_at`, `archived_at`, `legal_hold`, `draft_deleted_at`, `cancelled_by`, `cancelled_at`, `cancellation_reason`, `row_version`, `created_by`, `created_at`, `updated_at`, `sender_starred`, `sender_personal_archived_at`, `sender_follow_up_at`) VALUES
(102, '960cb303-bbd7-4575-a381-4a66f2c854f4', 'internal', 'sent', 'normal', 'urgent', 2, 1, 'حسین فغان پور', '', '[آزمون عملی گویانگار ۱۴۰۵/۰۵/۲۴] نامه رسمی امضاشده و مشاهده‌شده', 24, 1405, 'GNT-1405-000001', '2026-08-15 10:57:25', 111, 2700, '3be3cd442e2be50de77e94fe301ef352fc20f71014b008f6728b1d13acefed22', 1, NULL, '2026-08-15 10:57:25', '2026-08-15 10:57:25', NULL, NULL, 0, NULL, NULL, NULL, NULL, 6, 1, '2026-08-15 10:57:24', '2026-08-15 10:57:25', 0, NULL, NULL),
(103, 'ca18d983-8673-463c-a5b6-93e72591c416', 'internal', 'sent', 'confidential', 'normal', 2, 1, 'حسین فغان پور', '', '[آزمون عملی گویانگار ۱۴۰۵/۰۵/۲۴] نامه خوانده‌نشده با رونوشت', 24, 1405, 'GNT-1405-000002', '2026-08-15 10:57:26', 112, 2702, '3af060413a62adcdc2a100a349de8fbeef11159fb3f60141820d49f609542fef', 0, NULL, '2026-08-15 10:57:26', '2026-08-15 10:57:26', NULL, NULL, 0, NULL, NULL, NULL, NULL, 6, 1, '2026-08-15 10:57:25', '2026-08-15 10:57:26', 0, NULL, NULL),
(104, '2df4eecb-6174-4f03-bf74-4ba20dcaf50b', 'internal', 'draft', 'normal', 'normal', 2, 1, 'حسین فغان پور', '', '[آزمون عملی گویانگار ۱۴۰۵/۰۵/۲۴] پیش‌نویس دارای پیوست', NULL, NULL, NULL, NULL, 113, NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL, 0, NULL, NULL, NULL, NULL, 1, 1, '2026-08-15 10:57:26', '2026-08-15 10:57:26', 0, NULL, NULL);

-- --------------------------------------------------------

--
-- Table structure for table `gooyaacc_negar_letter_versions`
--

CREATE TABLE `gooyaacc_negar_letter_versions` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `letter_id` bigint(20) UNSIGNED NOT NULL,
  `version_no` int(10) UNSIGNED NOT NULL,
  `subject` varchar(500) NOT NULL,
  `summary` text DEFAULT NULL,
  `greeting` varchar(500) DEFAULT NULL,
  `body_html` longtext NOT NULL,
  `body_text` longtext NOT NULL,
  `closing_text` varchar(500) DEFAULT NULL,
  `content_sha256` char(64) NOT NULL,
  `change_reason` varchar(1000) DEFAULT NULL,
  `is_final` tinyint(1) NOT NULL DEFAULT 0,
  `immutable_at` datetime DEFAULT NULL,
  `created_by` int(11) NOT NULL,
  `created_at` datetime NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_persian_ci;

--
-- Dumping data for table `gooyaacc_negar_letter_versions`
--

INSERT IGNORE INTO `gooyaacc_negar_letter_versions` (`id`, `letter_id`, `version_no`, `subject`, `summary`, `greeting`, `body_html`, `body_text`, `closing_text`, `content_sha256`, `change_reason`, `is_final`, `immutable_at`, `created_by`, `created_at`) VALUES
(111, 102, 1, '[آزمون عملی گویانگار ۱۴۰۵/۰۵/۲۴] نامه رسمی امضاشده و مشاهده‌شده', '', '', 'با سلام و احترام<br />\n<br />\nاین نامه برای آزمون عملی چرخه کامل مکاتبات سازمانی گویانگار ایجاد شده است. لطفاً دریافت، مشاهده و وضعیت پیگیری آن بررسی شود.<br />\n<br />\nبا احترام', 'با سلام و احترام\n\nاین نامه برای آزمون عملی چرخه کامل مکاتبات سازمانی گویانگار ایجاد شده است. لطفاً دریافت، مشاهده و وضعیت پیگیری آن بررسی شود.\n\nبا احترام', '', 'bf28d4f286e51b984fe0fddf6c7210ad3b72386d7cc2462b52c8e2907b00dab9', 'manual', 1, '2026-08-15 10:57:25', 1, '2026-08-15 10:57:24'),
(112, 103, 1, '[آزمون عملی گویانگار ۱۴۰۵/۰۵/۲۴] نامه خوانده‌نشده با رونوشت', '', '', 'با سلام<br />\n<br />\nاین نامه برای بررسی صندوق ورودی، رونوشت دریافتی و وضعیت خوانده‌نشده ایجاد شده است.<br />\n<br />\nبا احترام', 'با سلام\n\nاین نامه برای بررسی صندوق ورودی، رونوشت دریافتی و وضعیت خوانده‌نشده ایجاد شده است.\n\nبا احترام', '', '704423af465b20a501252a631dc5f31b34134a1f4898f54f03df803a3ac75002', 'manual', 1, '2026-08-15 10:57:25', 1, '2026-08-15 10:57:25'),
(113, 104, 1, '[آزمون عملی گویانگار ۱۴۰۵/۰۵/۲۴] پیش‌نویس دارای پیوست', '', '', 'این پیش‌نویس برای آزمون ویرایش خودکار، Drag &amp; Drop و پیوست متمرکز نگهداری شده است.', 'این پیش‌نویس برای آزمون ویرایش خودکار، Drag & Drop و پیوست متمرکز نگهداری شده است.', '', '0925bd121aaf1efc78122dccbf38c8b344267a4f7123557dd77630058d91977e', 'manual', 0, NULL, 1, '2026-08-15 10:57:26');

-- --------------------------------------------------------

--
-- Table structure for table `gooyaacc_negar_links`
--

CREATE TABLE `gooyaacc_negar_links` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `letter_id` bigint(20) UNSIGNED NOT NULL,
  `link_type` enum('reply_to','parent_letter','related_letter','crm_record') NOT NULL,
  `related_letter_id` bigint(20) UNSIGNED DEFAULT NULL,
  `crm_module` varchar(80) DEFAULT NULL,
  `crm_record_id` varchar(100) DEFAULT NULL,
  `label_snapshot` varchar(255) DEFAULT NULL,
  `created_by` int(11) NOT NULL,
  `created_at` datetime NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_persian_ci;

-- --------------------------------------------------------

--
-- Table structure for table `gooyaacc_negar_org_members`
--

CREATE TABLE `gooyaacc_negar_org_members` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `org_unit_id` int(11) NOT NULL,
  `user_id` int(11) NOT NULL,
  `member_role` enum('member','manager','secretary') NOT NULL DEFAULT 'member',
  `is_primary` tinyint(1) NOT NULL DEFAULT 0,
  `is_active` tinyint(1) NOT NULL DEFAULT 1,
  `valid_from` datetime DEFAULT NULL,
  `valid_until` datetime DEFAULT NULL,
  `synced_at` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_persian_ci;

--
-- Dumping data for table `gooyaacc_negar_org_members`
--

INSERT IGNORE INTO `gooyaacc_negar_org_members` (`id`, `org_unit_id`, `user_id`, `member_role`, `is_primary`, `is_active`, `valid_from`, `valid_until`, `synced_at`) VALUES
(1, 2, 1, 'member', 1, 1, '2026-08-11 13:43:04', NULL, '2026-08-25 09:48:21'),
(2, 2, 5, 'member', 1, 0, '2026-08-11 13:43:04', NULL, '2026-08-25 09:48:21'),
(3, 3, 4, 'member', 1, 0, '2026-08-11 13:43:04', NULL, '2026-08-25 09:48:21'),
(4, 3, 8, 'member', 1, 1, '2026-08-11 13:43:04', NULL, '2026-08-25 09:48:21'),
(5, 3, 13, 'member', 1, 1, '2026-08-11 13:43:04', NULL, '2026-08-25 09:48:21'),
(6, 3, 14, 'member', 1, 1, '2026-08-11 13:43:04', NULL, '2026-08-25 09:48:21'),
(7, 3, 17, 'member', 1, 1, '2026-08-11 13:43:04', NULL, '2026-08-25 09:48:21'),
(8, 3, 18, 'member', 1, 1, '2026-08-11 13:43:04', NULL, '2026-08-25 09:48:21'),
(9, 3, 19, 'member', 1, 1, '2026-08-11 13:43:04', NULL, '2026-08-25 09:48:21'),
(10, 3, 20, 'member', 1, 1, '2026-08-11 13:43:04', NULL, '2026-08-25 09:48:21'),
(11, 5, 7, 'member', 1, 0, '2026-08-11 13:43:04', NULL, '2026-08-25 09:48:21'),
(12, 5, 9, 'member', 1, 1, '2026-08-11 13:43:04', NULL, '2026-08-25 09:48:21'),
(13, 5, 10, 'member', 1, 1, '2026-08-11 13:43:04', NULL, '2026-08-25 09:48:21'),
(14, 5, 12, 'member', 1, 1, '2026-08-11 13:43:04', NULL, '2026-08-25 09:48:21'),
(15, 5, 16, 'member', 1, 1, '2026-08-11 13:43:04', NULL, '2026-08-25 09:48:21'),
(16, 5, 24, 'member', 1, 1, '2026-08-11 13:43:04', NULL, '2026-08-25 09:48:21'),
(17, 5, 25, 'member', 1, 1, '2026-08-11 13:43:04', NULL, '2026-08-25 09:48:21'),
(18, 5, 26, 'member', 1, 1, '2026-08-11 13:43:04', NULL, '2026-08-25 09:48:21'),
(19, 6, 2, 'member', 1, 0, '2026-08-11 13:43:04', NULL, '2026-08-25 09:48:21'),
(20, 6, 3, 'member', 1, 0, '2026-08-11 13:43:04', NULL, '2026-08-25 09:48:21'),
(21, 6, 6, 'member', 1, 0, '2026-08-11 13:43:04', NULL, '2026-08-25 09:48:21'),
(22, 6, 11, 'member', 1, 1, '2026-08-11 13:43:04', NULL, '2026-08-25 09:48:21'),
(23, 6, 15, 'member', 1, 1, '2026-08-11 13:43:04', NULL, '2026-08-25 09:48:21'),
(24, 6, 21, 'member', 1, 1, '2026-08-11 13:43:04', NULL, '2026-08-25 09:48:21'),
(25, 6, 22, 'member', 1, 1, '2026-08-11 13:43:04', NULL, '2026-08-25 09:48:21'),
(26, 6, 23, 'member', 1, 1, '2026-08-11 13:43:04', NULL, '2026-08-25 09:48:21'),
(27, 10, 1, 'member', 0, 1, '2026-08-11 13:43:04', NULL, '2026-08-25 09:48:21'),
(279, 4, 2, 'member', 1, 1, '2026-08-25 09:45:26', NULL, '2026-08-25 09:48:21'),
(280, 4, 6, 'member', 1, 1, '2026-08-25 09:45:26', NULL, '2026-08-25 09:48:21'),
(293, 7, 5, 'member', 1, 1, '2026-08-25 09:45:26', NULL, '2026-08-25 09:48:21'),
(294, 8, 3, 'member', 1, 1, '2026-08-25 09:45:26', NULL, '2026-08-25 09:48:21'),
(295, 8, 4, 'member', 1, 1, '2026-08-25 09:45:26', NULL, '2026-08-25 09:48:21'),
(296, 8, 7, 'member', 1, 1, '2026-08-25 09:45:26', NULL, '2026-08-25 09:48:21');

-- --------------------------------------------------------

--
-- Table structure for table `gooyaacc_negar_org_units`
--

CREATE TABLE `gooyaacc_negar_org_units` (
  `id` int(11) NOT NULL,
  `external_key` varchar(100) NOT NULL,
  `source_kind` enum('crm_role','crm_group','manual') NOT NULL DEFAULT 'manual',
  `parent_id` int(11) DEFAULT NULL,
  `unit_code` varchar(50) DEFAULT NULL,
  `unit_name` varchar(180) NOT NULL,
  `manager_user_id` int(11) DEFAULT NULL,
  `is_active` tinyint(1) NOT NULL DEFAULT 1,
  `synced_at` datetime DEFAULT NULL,
  `created_at` datetime DEFAULT NULL,
  `updated_at` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_persian_ci;

--
-- Dumping data for table `gooyaacc_negar_org_units`
--

INSERT IGNORE INTO `gooyaacc_negar_org_units` (`id`, `external_key`, `source_kind`, `parent_id`, `unit_code`, `unit_name`, `manager_user_id`, `is_active`, `synced_at`, `created_at`, `updated_at`) VALUES
(1, 'role:H1', 'crm_role', NULL, 'H1', 'Organization', NULL, 1, '2026-08-25 09:48:21', '2026-08-11 13:43:04', '2026-08-25 09:48:21'),
(2, 'role:H2', 'crm_role', 1, 'H2', 'مدیرعامل', NULL, 1, '2026-08-25 09:48:21', '2026-08-11 13:43:04', '2026-08-25 09:48:21'),
(3, 'role:H29', 'crm_role', 1, 'H29', 'آزمون گویا - مجاز - 20260801-073004', NULL, 1, '2026-08-25 09:48:21', '2026-08-11 13:43:04', '2026-08-25 09:48:21'),
(4, 'role:H3', 'crm_role', 2, 'H3', 'مدیر پروژه', NULL, 1, '2026-08-25 09:48:21', '2026-08-11 13:43:04', '2026-08-25 09:48:21'),
(5, 'role:H30', 'crm_role', 1, 'H30', 'آزمون گویا - ارث‌بری - 20260801-073004', NULL, 1, '2026-08-25 09:48:21', '2026-08-11 13:43:04', '2026-08-25 09:48:21'),
(6, 'role:H31', 'crm_role', 1, 'H31', 'آزمون گویا - محدود - 20260801-073004', NULL, 1, '2026-08-25 09:48:21', '2026-08-11 13:43:04', '2026-08-25 09:48:21'),
(7, 'role:H4', 'crm_role', 2, 'H4', 'سرپرست و مدیر دفتر', NULL, 1, '2026-08-25 09:48:21', '2026-08-11 13:43:04', '2026-08-25 09:48:21'),
(8, 'role:H5', 'crm_role', 2, 'H5', 'کارشناس', NULL, 1, '2026-08-25 09:48:21', '2026-08-11 13:43:04', '2026-08-25 09:48:21'),
(9, 'group:2', 'crm_group', NULL, '2', 'Team Selling', NULL, 1, '2026-08-25 09:48:21', '2026-08-11 13:43:04', '2026-08-25 09:48:21'),
(10, 'group:3', 'crm_group', NULL, '3', 'Marketing Group', NULL, 1, '2026-08-25 09:48:21', '2026-08-11 13:43:04', '2026-08-25 09:48:21'),
(11, 'group:4', 'crm_group', NULL, '4', 'Support Group', NULL, 1, '2026-08-25 09:48:21', '2026-08-11 13:43:04', '2026-08-25 09:48:21');

-- --------------------------------------------------------

--
-- Table structure for table `gooyaacc_negar_recipients`
--

CREATE TABLE `gooyaacc_negar_recipients` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `letter_id` bigint(20) UNSIGNED NOT NULL,
  `recipient_user_id` int(11) NOT NULL,
  `selected_org_unit_id` int(11) DEFAULT NULL,
  `recipient_type` enum('primary','copy','blind_copy') NOT NULL DEFAULT 'primary',
  `recipient_name_snapshot` varchar(220) NOT NULL,
  `recipient_title_snapshot` varchar(180) DEFAULT NULL,
  `copy_purpose` enum('none','information','action','review','archive','custom') NOT NULL DEFAULT 'none',
  `purpose_text` varchar(500) DEFAULT NULL,
  `delivery_status` enum('pending','queued','sent','failed','cancelled') NOT NULL DEFAULT 'pending',
  `delivered_at` datetime DEFAULT NULL,
  `first_opened_at` datetime DEFAULT NULL,
  `last_opened_at` datetime DEFAULT NULL,
  `open_count` int(10) UNSIGNED NOT NULL DEFAULT 0,
  `acknowledged_at` datetime DEFAULT NULL,
  `sms_status` enum('not_required','pending','sending','sent','delivered','failed') NOT NULL DEFAULT 'not_required',
  `sms_attempts` smallint(5) UNSIGNED NOT NULL DEFAULT 0,
  `sms_last_attempt_at` datetime DEFAULT NULL,
  `sms_next_attempt_at` datetime DEFAULT NULL,
  `sms_sent_at` datetime DEFAULT NULL,
  `sms_delivered_at` datetime DEFAULT NULL,
  `sms_provider_message_id` varchar(150) DEFAULT NULL,
  `sms_last_error` varchar(500) DEFAULT NULL,
  `created_at` datetime NOT NULL,
  `is_starred` tinyint(1) NOT NULL DEFAULT 0,
  `personal_archived_at` datetime DEFAULT NULL,
  `follow_up_at` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_persian_ci;

--
-- Dumping data for table `gooyaacc_negar_recipients`
--

INSERT IGNORE INTO `gooyaacc_negar_recipients` (`id`, `letter_id`, `recipient_user_id`, `selected_org_unit_id`, `recipient_type`, `recipient_name_snapshot`, `recipient_title_snapshot`, `copy_purpose`, `purpose_text`, `delivery_status`, `delivered_at`, `first_opened_at`, `last_opened_at`, `open_count`, `acknowledged_at`, `sms_status`, `sms_attempts`, `sms_last_attempt_at`, `sms_next_attempt_at`, `sms_sent_at`, `sms_delivered_at`, `sms_provider_message_id`, `sms_last_error`, `created_at`, `is_starred`, `personal_archived_at`, `follow_up_at`) VALUES
(140, 102, 6, NULL, 'primary', 'رضا محمدیان', '', 'none', '', 'sent', '2026-08-15 10:57:25', '2026-08-15 10:57:25', '2026-08-15 10:57:25', 1, '2026-08-15 10:57:25', 'sent', 1, '2026-08-15 13:24:37', NULL, '2026-08-15 13:24:38', NULL, '27535007', NULL, '2026-08-15 10:57:24', 0, NULL, NULL),
(141, 102, 7, NULL, 'copy', 'علی کریمی', '', 'information', '', 'sent', '2026-08-15 10:57:25', NULL, NULL, 0, NULL, 'not_required', 0, NULL, NULL, NULL, NULL, NULL, NULL, '2026-08-15 10:57:25', 0, NULL, NULL),
(142, 102, 8, NULL, 'blind_copy', 'نیما قاسمی', '', 'archive', '', 'sent', '2026-08-15 10:57:25', NULL, NULL, 0, NULL, 'not_required', 0, NULL, NULL, NULL, NULL, NULL, NULL, '2026-08-15 10:57:25', 0, NULL, NULL),
(143, 103, 7, NULL, 'primary', 'علی کریمی', '', 'none', '', 'sent', '2026-08-15 10:57:26', NULL, NULL, 0, NULL, 'not_required', 0, NULL, NULL, NULL, NULL, NULL, NULL, '2026-08-15 10:57:25', 0, NULL, NULL),
(144, 103, 6, NULL, 'copy', 'رضا محمدیان', '', 'action', '', 'sent', '2026-08-15 10:57:26', NULL, NULL, 0, NULL, 'not_required', 0, NULL, NULL, NULL, NULL, NULL, NULL, '2026-08-15 10:57:25', 0, NULL, NULL),
(145, 103, 8, NULL, 'blind_copy', 'نیما قاسمی', '', 'review', '', 'sent', '2026-08-15 10:57:26', NULL, NULL, 0, NULL, 'not_required', 0, NULL, NULL, NULL, NULL, NULL, NULL, '2026-08-15 10:57:25', 0, NULL, NULL),
(146, 104, 6, NULL, 'primary', 'رضا محمدیان', '', 'none', '', 'pending', NULL, NULL, NULL, 0, NULL, 'not_required', 0, NULL, NULL, NULL, NULL, NULL, NULL, '2026-08-15 10:57:26', 0, NULL, NULL);

-- --------------------------------------------------------

--
-- Table structure for table `gooyaacc_negar_referrals`
--

CREATE TABLE `gooyaacc_negar_referrals` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `letter_id` bigint(20) UNSIGNED NOT NULL,
  `parent_referral_id` bigint(20) UNSIGNED DEFAULT NULL,
  `from_user_id` int(11) NOT NULL,
  `to_user_id` int(11) DEFAULT NULL,
  `to_org_unit_id` int(11) DEFAULT NULL,
  `instruction_text` text NOT NULL,
  `priority` enum('normal','urgent','immediate') NOT NULL DEFAULT 'normal',
  `referral_status` enum('new','opened','in_progress','completed','returned','cancelled') NOT NULL DEFAULT 'new',
  `due_at` datetime DEFAULT NULL,
  `first_opened_at` datetime DEFAULT NULL,
  `last_opened_at` datetime DEFAULT NULL,
  `result_text` text DEFAULT NULL,
  `completed_by` int(11) DEFAULT NULL,
  `completed_at` datetime DEFAULT NULL,
  `created_at` datetime NOT NULL,
  `is_starred` tinyint(1) NOT NULL DEFAULT 0,
  `personal_archived_at` datetime DEFAULT NULL,
  `follow_up_at` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_persian_ci;

-- --------------------------------------------------------

--
-- Table structure for table `gooyaacc_negar_sequences`
--

CREATE TABLE `gooyaacc_negar_sequences` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `org_unit_id` int(11) NOT NULL DEFAULT 0,
  `calendar_year` smallint(5) UNSIGNED NOT NULL,
  `direction` enum('internal','incoming','outgoing') NOT NULL,
  `prefix` varchar(40) NOT NULL DEFAULT '',
  `number_pattern` varchar(120) NOT NULL DEFAULT '{prefix}-{year}-{number}',
  `current_no` bigint(20) UNSIGNED NOT NULL DEFAULT 0,
  `lock_version` int(10) UNSIGNED NOT NULL DEFAULT 0,
  `is_active` tinyint(1) NOT NULL DEFAULT 1,
  `updated_by` int(11) DEFAULT NULL,
  `updated_at` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_persian_ci;

--
-- Dumping data for table `gooyaacc_negar_sequences`
--

INSERT IGNORE INTO `gooyaacc_negar_sequences` (`id`, `org_unit_id`, `calendar_year`, `direction`, `prefix`, `number_pattern`, `current_no`, `lock_version`, `is_active`, `updated_by`, `updated_at`) VALUES
(24, 2, 1405, 'internal', 'GNT', '{prefix}-{year}-{number}', 2, 2, 1, NULL, '2026-08-15 10:57:26');

-- --------------------------------------------------------

--
-- Table structure for table `gooyaacc_negar_settings`
--

CREATE TABLE `gooyaacc_negar_settings` (
  `skey` varchar(80) NOT NULL,
  `svalue` text DEFAULT NULL,
  `updated_by` int(11) DEFAULT NULL,
  `updated_at` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_persian_ci;

--
-- Dumping data for table `gooyaacc_negar_settings`
--

INSERT IGNORE INTO `gooyaacc_negar_settings` (`skey`, `svalue`, `updated_by`, `updated_at`) VALUES
('ai_enabled', '0', 0, '2026-08-11 13:43:03'),
('allowed_extensions', 'pdf,doc,docx,xls,xlsx,ppt,pptx,jpg,jpeg,png,webp,txt', 0, '2026-08-11 13:43:03'),
('archive_cloud_folder_name', 'آرشیو گویانگار', 0, '2026-08-11 13:43:03'),
('archive_cloud_public_links', '0', 0, '2026-08-11 13:43:03'),
('archive_enabled', '0', 0, '2026-08-11 13:43:03'),
('archive_to_gooya_cloud', '1', 0, '2026-08-11 13:43:03'),
('backup_enabled', '0', 0, '2026-08-11 13:43:03'),
('default_retention_months', '12', 0, '2026-08-11 13:43:03'),
('max_file_size_bytes', '20971520', 0, '2026-08-11 13:43:03'),
('module_enabled', '1', 1, '2026-08-15 10:57:24'),
('purge_enabled', '0', 0, '2026-08-11 13:43:03'),
('schema_version', '1.0-contract', 0, '2026-08-11 13:43:03'),
('signed_url_ttl_seconds', '180', 0, '2026-08-11 13:43:03'),
('sms_confidential_content', '0', 0, '2026-08-11 13:43:03'),
('sms_confidential_template', 'شما از طرف «{sender}» یک نامه سازمانی محرمانه جدید در سامانه گویا دارید. شماره نامه: {number}', 1, '2026-08-13 13:24:51'),
('sms_copy_enabled', '0', 1, '2026-08-15 10:57:24'),
('sms_letter_template', 'شما از طرف «{sender}» یک نامه سازمانی جدید در سامانه گویا دارید. شماره نامه: {number}', 1, '2026-08-13 13:24:51'),
('sms_max_attempts', '3', 1, '2026-08-13 13:24:51'),
('sms_notifications_enabled', '1', 1, '2026-08-15 10:57:26'),
('sms_retry_minutes', '5', 1, '2026-08-13 13:24:51'),
('storage_gateway', 'GooyaStorage', 0, '2026-08-11 13:43:03'),
('storage_source_module', 'GooyaNegar', 0, '2026-08-11 13:43:03'),
('supported_directions', 'internal,incoming,outgoing', 0, '2026-08-11 13:43:03'),
('user_sync_ttl_minutes', '60', 0, '2026-08-11 13:43:03');

-- --------------------------------------------------------

--
-- Table structure for table `gooyaacc_negar_signatures`
--





-- --------------------------------------------------------

--
-- Table structure for table `gooyaacc_negar_templates`
--

CREATE TABLE `gooyaacc_negar_templates` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `template_code` varchar(80) NOT NULL,
  `template_name` varchar(180) NOT NULL,
  `org_unit_id` int(11) DEFAULT NULL,
  `direction` enum('internal','incoming','outgoing','any') NOT NULL DEFAULT 'any',
  `template_type` enum('body','letterhead','full') NOT NULL DEFAULT 'full',
  `header_html` mediumtext DEFAULT NULL,
  `body_html` longtext DEFAULT NULL,
  `footer_html` mediumtext DEFAULT NULL,
  `print_css` mediumtext DEFAULT NULL,
  `letterhead_storage_attachment_id` bigint(20) UNSIGNED DEFAULT NULL,
  `version_no` int(10) UNSIGNED NOT NULL DEFAULT 1,
  `is_active` tinyint(1) NOT NULL DEFAULT 1,
  `created_by` int(11) NOT NULL,
  `created_at` datetime NOT NULL,
  `updated_by` int(11) DEFAULT NULL,
  `updated_at` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_persian_ci;

-- --------------------------------------------------------

--
-- Table structure for table `gooyaacc_negar_users`
--

CREATE TABLE `gooyaacc_negar_users` (
  `user_id` int(11) NOT NULL,
  `user_name` varchar(100) DEFAULT NULL,
  `first_name` varchar(100) DEFAULT NULL,
  `last_name` varchar(100) DEFAULT NULL,
  `full_name` varchar(220) DEFAULT NULL,
  `email` varchar(180) DEFAULT NULL,
  `mobile` varchar(40) DEFAULT NULL,
  `job_title` varchar(180) DEFAULT NULL,
  `is_crm_admin` tinyint(1) NOT NULL DEFAULT 0,
  `crm_status` varchar(25) DEFAULT NULL,
  `crm_deleted` tinyint(1) NOT NULL DEFAULT 0,
  `synced_at` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_persian_ci;

--
-- Dumping data for table `gooyaacc_negar_users`
--

INSERT IGNORE INTO `gooyaacc_negar_users` (`user_id`, `user_name`, `first_name`, `last_name`, `full_name`, `email`, `mobile`, `job_title`, `is_crm_admin`, `crm_status`, `crm_deleted`, `synced_at`) VALUES
(1, 'admin', 'فرهاد', 'داداشی', 'فرهاد داداشی', '', '09111007370', 'مدیرعامل', 1, 'Active', 0, '2026-08-25 09:48:21'),
(2, 'ali', 'خانم', 'حسنی', 'خانم حسنی', '', '', 'مدیر پروژه', 0, 'Active', 0, '2026-08-25 09:48:21'),
(3, 'sara', 'خانم', 'رمضانپور', 'خانم رمضانپور', '', '', 'کارشناس', 0, 'Active', 0, '2026-08-25 09:48:21'),
(4, 'reza', 'خانم', 'تقی پور', 'خانم تقی پور', '', '', 'کارشناس', 0, 'Active', 0, '2026-08-25 09:48:21'),
(5, 'a.zare', 'خانم', 'رامی', 'خانم رامی', '', '', 'سرپرست و مدیر دفتر', 0, 'Active', 0, '2026-08-25 09:48:21'),
(6, 'kpiseed_mgr', 'خانم', 'سعادتی', 'خانم سعادتی', '', '', 'مدیر پروژه', 0, 'Active', 0, '2026-08-25 09:48:21'),
(7, 'kpiseed_sup1', 'خانم', 'صادق نیا', 'خانم صادق نیا', '', '', 'کارشناس', 0, 'Active', 0, '2026-08-25 09:48:21'),
(8, 'kpiseed_emp1', 'نیما', 'قاسمی', 'نیما قاسمی', 'kpiseed_emp1@example.local', '09119090378', '', 0, 'Active', 0, '2026-08-25 09:48:21'),
(9, 'kpiseed_emp2', 'زهرا', 'مرادی', 'زهرا مرادی', 'kpiseed_emp2@example.local', '09119090378', '', 0, 'Active', 0, '2026-08-25 09:48:21'),
(10, 'kpiseed_emp3', 'امیر', 'صادقی', 'امیر صادقی', 'kpiseed_emp3@example.local', '09119090378', '', 0, 'Active', 0, '2026-08-25 09:48:21'),
(11, 'kpiseed_sup2', 'سارا', 'احمدی', 'سارا احمدی', 'kpiseed_sup2@example.local', '09119090378', '', 0, 'Active', 0, '2026-08-25 09:48:21'),
(12, 'kpiseed_emp4', 'فاطمه', 'کاظمی', 'فاطمه کاظمی', 'kpiseed_emp4@example.local', '09119090378', '', 0, 'Active', 0, '2026-08-25 09:48:21'),
(13, 'kpiseed_emp5', 'سینا', 'یوسفی', 'سینا یوسفی', 'kpiseed_emp5@example.local', '09119090378', '', 0, 'Active', 0, '2026-08-25 09:48:21'),
(14, 'kpiseed_emp6', 'الهام', 'جعفری', 'الهام جعفری', 'kpiseed_emp6@example.local', '09119090378', '', 0, 'Active', 0, '2026-08-25 09:48:21'),
(15, 'kpiseed_sup3', 'حسن', 'رضایی', 'حسن رضایی', 'kpiseed_sup3@example.local', '09119090378', '', 0, 'Active', 0, '2026-08-25 09:48:21'),
(16, 'kpiseed_emp7', 'بهرام', 'اکبری', 'بهرام اکبری', 'kpiseed_emp7@example.local', '09119090378', '', 0, 'Active', 0, '2026-08-25 09:48:21'),
(17, 'kpiseed_emp8', 'نگار', 'شریفی', 'نگار شریفی', 'kpiseed_emp8@example.local', '09119090378', '', 0, 'Active', 0, '2026-08-25 09:48:21'),
(18, 'kpiseed_emp9', 'پیمان', 'بابایی', 'پیمان بابایی', 'kpiseed_emp9@example.local', '09119090378', '', 0, 'Active', 0, '2026-08-25 09:48:21'),
(19, 'kpiseed_sup4', 'مریم', 'حسینی', 'مریم حسینی', 'kpiseed_sup4@example.local', '09119090378', '', 0, 'Active', 0, '2026-08-25 09:48:21'),
(20, 'kpiseed_emp10', 'مینا', 'رستمی', 'مینا رستمی', 'kpiseed_emp10@example.local', '09119090378', '', 0, 'Active', 0, '2026-08-25 09:48:21'),
(21, 'kpiseed_emp11', 'کیان', 'عباسی', 'کیان عباسی', 'kpiseed_emp11@example.local', '09119090378', '', 0, 'Active', 0, '2026-08-25 09:48:21'),
(22, 'kpiseed_emp12', 'رها', 'نادری', 'رها نادری', 'kpiseed_emp12@example.local', '09119090378', '', 0, 'Active', 0, '2026-08-25 09:48:21'),
(23, 'kpiseed_sup5', 'کاوه', 'نوری', 'کاوه نوری', 'kpiseed_sup5@example.local', '09119090378', '', 0, 'Active', 0, '2026-08-25 09:48:21'),
(24, 'kpiseed_emp13', 'آرش', 'فلاحی', 'آرش فلاحی', 'kpiseed_emp13@example.local', '09119090378', '', 0, 'Active', 0, '2026-08-25 09:48:21'),
(25, 'kpiseed_emp14', 'سحر', 'زارع', 'سحر زارع', 'kpiseed_emp14@example.local', '09119090378', '', 0, 'Active', 0, '2026-08-25 09:48:21'),
(26, 'kpiseed_emp15', 'وحید', 'محمودی', 'وحید محمودی', 'kpiseed_emp15@example.local', '09119090378', '', 0, 'Active', 0, '2026-08-25 09:48:21');

-- --------------------------------------------------------

--
-- Table structure for table `gooyaacc_negar_workflow_steps`
--

CREATE TABLE `gooyaacc_negar_workflow_steps` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `letter_id` bigint(20) UNSIGNED NOT NULL,
  `step_no` int(10) UNSIGNED NOT NULL,
  `step_type` enum('review','approval','registration','signature','dispatch','acknowledgement','close') NOT NULL,
  `assigned_user_id` int(11) DEFAULT NULL,
  `assigned_org_unit_id` int(11) DEFAULT NULL,
  `step_status` enum('pending','in_progress','approved','rejected','changes_requested','completed','cancelled','skipped') NOT NULL DEFAULT 'pending',
  `is_required` tinyint(1) NOT NULL DEFAULT 1,
  `decision_note` varchar(2000) DEFAULT NULL,
  `signature_id` bigint(20) UNSIGNED DEFAULT NULL,
  `due_at` datetime DEFAULT NULL,
  `acted_by` int(11) DEFAULT NULL,
  `acted_at` datetime DEFAULT NULL,
  `created_at` datetime NOT NULL,
  `is_starred` tinyint(1) NOT NULL DEFAULT 0,
  `personal_archived_at` datetime DEFAULT NULL,
  `follow_up_at` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_persian_ci;



--
-- Indexes for dumped tables
--

--
-- Indexes for table `gooyaacc_negar_access`
--
ALTER TABLE `gooyaacc_negar_access`
  ADD PRIMARY KEY (`user_id`),
  ADD KEY `idx_negar_access_enabled` (`is_enabled`,`access_role`),
  ADD KEY `idx_negar_access_substitute` (`temporary_substitute_user_id`,`temporary_substitute_from`,`temporary_substitute_until`);

--
-- Indexes for table `gooyaacc_negar_ai_audit`
--
ALTER TABLE `gooyaacc_negar_ai_audit`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `uq_negar_ai_request` (`request_uuid`),
  ADD KEY `idx_negar_ai_letter` (`letter_id`,`created_at`),
  ADD KEY `idx_negar_ai_user` (`user_id`,`created_at`),
  ADD KEY `idx_negar_ai_status` (`request_status`,`created_at`);

--
-- Indexes for table `gooyaacc_negar_attachments`
--
ALTER TABLE `gooyaacc_negar_attachments`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `uq_negar_storage_attachment` (`storage_attachment_id`),
  ADD KEY `idx_negar_attachment_letter` (`letter_id`,`attachment_kind`,`storage_status`),
  ADD KEY `idx_negar_attachment_version` (`version_id`),
  ADD KEY `idx_negar_attachment_purge` (`purge_status`,`deleted_at`);

--
-- Indexes for table `gooyaacc_negar_audit_log`
--
ALTER TABLE `gooyaacc_negar_audit_log`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `uq_negar_audit_event` (`event_uuid`),
  ADD KEY `idx_negar_audit_letter` (`letter_id`,`created_at`),
  ADD KEY `idx_negar_audit_actor` (`actor_user_id`,`created_at`),
  ADD KEY `idx_negar_audit_action` (`action`,`created_at`),
  ADD KEY `idx_negar_audit_hash` (`event_hash`);

--
-- Indexes for table `gooyaacc_negar_letters`
--
ALTER TABLE `gooyaacc_negar_letters`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `uq_negar_letter_uuid` (`public_uuid`),
  ADD UNIQUE KEY `uq_negar_registered_number` (`sequence_id`,`letter_year`,`letter_no`),
  ADD KEY `idx_negar_letter_box` (`sender_user_id`,`status`,`sent_at`),
  ADD KEY `idx_negar_letter_org` (`org_unit_id`,`status`,`created_at`),
  ADD KEY `idx_negar_letter_subject` (`subject`(191)),
  ADD KEY `idx_negar_letter_archive` (`status`,`archived_at`),
  ADD KEY `idx_negar_sender_personal` (`sender_user_id`,`sender_starred`,`sender_personal_archived_at`,`sender_follow_up_at`);

--
-- Indexes for table `gooyaacc_negar_letter_versions`
--
ALTER TABLE `gooyaacc_negar_letter_versions`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `uq_negar_letter_version` (`letter_id`,`version_no`),
  ADD KEY `idx_negar_version_hash` (`content_sha256`),
  ADD KEY `idx_negar_version_creator` (`created_by`,`created_at`);

--
-- Indexes for table `gooyaacc_negar_links`
--
ALTER TABLE `gooyaacc_negar_links`
  ADD PRIMARY KEY (`id`),
  ADD KEY `idx_negar_link_letter` (`letter_id`,`link_type`),
  ADD KEY `idx_negar_link_related` (`related_letter_id`),
  ADD KEY `idx_negar_link_crm` (`crm_module`,`crm_record_id`);

--
-- Indexes for table `gooyaacc_negar_org_members`
--
ALTER TABLE `gooyaacc_negar_org_members`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `uq_negar_org_member_role` (`org_unit_id`,`user_id`,`member_role`),
  ADD KEY `idx_negar_org_member_user` (`user_id`,`is_active`),
  ADD KEY `idx_negar_org_member_unit` (`org_unit_id`,`is_active`);

--
-- Indexes for table `gooyaacc_negar_org_units`
--
ALTER TABLE `gooyaacc_negar_org_units`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `uq_negar_org_external` (`external_key`),
  ADD UNIQUE KEY `uq_negar_org_code` (`unit_code`),
  ADD KEY `idx_negar_org_parent` (`parent_id`),
  ADD KEY `idx_negar_org_active` (`is_active`);

--
-- Indexes for table `gooyaacc_negar_recipients`
--
ALTER TABLE `gooyaacc_negar_recipients`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `uq_negar_recipient_user` (`letter_id`,`recipient_user_id`),
  ADD KEY `idx_negar_recipient_inbox` (`recipient_user_id`,`delivery_status`,`delivered_at`),
  ADD KEY `idx_negar_recipient_sms` (`sms_status`,`sms_next_attempt_at`),
  ADD KEY `idx_negar_recipient_opened` (`letter_id`,`first_opened_at`),
  ADD KEY `idx_negar_recipient_personal` (`recipient_user_id`,`is_starred`,`personal_archived_at`,`follow_up_at`);

--
-- Indexes for table `gooyaacc_negar_referrals`
--
ALTER TABLE `gooyaacc_negar_referrals`
  ADD PRIMARY KEY (`id`),
  ADD KEY `idx_negar_referral_user` (`to_user_id`,`referral_status`,`due_at`),
  ADD KEY `idx_negar_referral_unit` (`to_org_unit_id`,`referral_status`),
  ADD KEY `idx_negar_referral_letter` (`letter_id`,`created_at`),
  ADD KEY `idx_negar_referral_personal` (`to_user_id`,`is_starred`,`personal_archived_at`,`follow_up_at`);

--
-- Indexes for table `gooyaacc_negar_sequences`
--
ALTER TABLE `gooyaacc_negar_sequences`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `uq_negar_sequence` (`org_unit_id`,`calendar_year`,`direction`,`prefix`),
  ADD KEY `idx_negar_sequence_active` (`is_active`);

--
-- Indexes for table `gooyaacc_negar_settings`
--
ALTER TABLE `gooyaacc_negar_settings`
  ADD PRIMARY KEY (`skey`);

--
-- Indexes for table `gooyaacc_negar_signatures`
--
ALTER TABLE `gooyaacc_negar_signatures`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `uq_negar_signature_version` (`user_id`,`version_no`),
  ADD UNIQUE KEY `uq_negar_signature_storage` (`storage_attachment_id`),
  ADD KEY `idx_negar_signature_active` (`user_id`,`signature_status`);

--
-- Indexes for table `gooyaacc_negar_templates`
--
ALTER TABLE `gooyaacc_negar_templates`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `uq_negar_template_code_version` (`template_code`,`version_no`),
  ADD KEY `idx_negar_template_active` (`is_active`,`org_unit_id`,`direction`);

--
-- Indexes for table `gooyaacc_negar_users`
--
ALTER TABLE `gooyaacc_negar_users`
  ADD PRIMARY KEY (`user_id`),
  ADD KEY `idx_negar_users_active` (`crm_deleted`,`crm_status`),
  ADD KEY `idx_negar_users_name` (`full_name`);

--
-- Indexes for table `gooyaacc_negar_workflow_steps`
--
ALTER TABLE `gooyaacc_negar_workflow_steps`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `uq_negar_workflow_step` (`letter_id`,`step_no`),
  ADD KEY `idx_negar_workflow_assignee` (`assigned_user_id`,`step_status`,`due_at`),
  ADD KEY `idx_negar_workflow_letter` (`letter_id`,`step_status`),
  ADD KEY `idx_negar_workflow_personal` (`assigned_user_id`,`is_starred`,`personal_archived_at`,`follow_up_at`);

--
-- AUTO_INCREMENT for dumped tables
--

--
-- AUTO_INCREMENT for table `gooyaacc_negar_ai_audit`
--
ALTER TABLE `gooyaacc_negar_ai_audit`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=62;

--
-- AUTO_INCREMENT for table `gooyaacc_negar_attachments`
--
ALTER TABLE `gooyaacc_negar_attachments`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=83;

--
-- AUTO_INCREMENT for table `gooyaacc_negar_audit_log`
--
ALTER TABLE `gooyaacc_negar_audit_log`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=939;

--
-- AUTO_INCREMENT for table `gooyaacc_negar_letters`
--
ALTER TABLE `gooyaacc_negar_letters`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=108;

--
-- AUTO_INCREMENT for table `gooyaacc_negar_letter_versions`
--
ALTER TABLE `gooyaacc_negar_letter_versions`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=117;

--
-- AUTO_INCREMENT for table `gooyaacc_negar_links`
--
ALTER TABLE `gooyaacc_negar_links`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=39;

--
-- AUTO_INCREMENT for table `gooyaacc_negar_org_members`
--
ALTER TABLE `gooyaacc_negar_org_members`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=352;

--
-- AUTO_INCREMENT for table `gooyaacc_negar_org_units`
--
ALTER TABLE `gooyaacc_negar_org_units`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=144;

--
-- AUTO_INCREMENT for table `gooyaacc_negar_recipients`
--
ALTER TABLE `gooyaacc_negar_recipients`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=156;

--
-- AUTO_INCREMENT for table `gooyaacc_negar_referrals`
--
ALTER TABLE `gooyaacc_negar_referrals`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=18;

--
-- AUTO_INCREMENT for table `gooyaacc_negar_sequences`
--
ALTER TABLE `gooyaacc_negar_sequences`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=25;

--
-- AUTO_INCREMENT for table `gooyaacc_negar_signatures`
--
ALTER TABLE `gooyaacc_negar_signatures`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=40;

--
-- AUTO_INCREMENT for table `gooyaacc_negar_templates`
--
ALTER TABLE `gooyaacc_negar_templates`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;

--
-- AUTO_INCREMENT for table `gooyaacc_negar_workflow_steps`
--
ALTER TABLE `gooyaacc_negar_workflow_steps`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=163;
--
-- Database: `vtigercrm`
--
DROP DATABASE IF EXISTS `vtigercrm`;
CREATE DATABASE IF NOT EXISTS `vtigercrm` DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci;
USE `vtigercrm`;

-- --------------------------------------------------------

--
-- Table structure for table `com_vtiger_workflows`
--

CREATE TABLE `com_vtiger_workflows` (
  `workflow_id` int(11) NOT NULL,
  `module_name` varchar(100) DEFAULT NULL,
  `summary` varchar(400) NOT NULL,
  `test` text NOT NULL,
  `execution_condition` int(11) NOT NULL,
  `defaultworkflow` int(1) DEFAULT NULL,
  `type` varchar(255) DEFAULT NULL,
  `filtersavedinnew` int(1) DEFAULT NULL,
  `schtypeid` int(10) DEFAULT NULL,
  `schdayofmonth` varchar(100) DEFAULT NULL,
  `schdayofweek` varchar(100) DEFAULT NULL,
  `schannualdates` varchar(500) DEFAULT NULL,
  `schtime` varchar(50) DEFAULT NULL,
  `nexttrigger_time` datetime DEFAULT NULL,
  `status` tinyint(1) DEFAULT 1,
  `workflowname` varchar(100) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_general_ci;

--
-- Dumping data for table `com_vtiger_workflows`
--

INSERT IGNORE INTO `com_vtiger_workflows` (`workflow_id`, `module_name`, `summary`, `test`, `execution_condition`, `defaultworkflow`, `type`, `filtersavedinnew`, `schtypeid`, `schdayofmonth`, `schdayofweek`, `schannualdates`, `schtime`, `nexttrigger_time`, `status`, `workflowname`) VALUES
(1, 'Invoice', 'UpdateInventoryProducts On Every Save', '[{\"fieldname\":\"subject\",\"operation\":\"does not contain\",\"value\":\"`!`\"}]', 3, 1, 'basic', 5, NULL, NULL, NULL, NULL, NULL, NULL, 1, 'UpdateInventoryProducts On Every Save'),
(2, 'Accounts', 'Send Email to user when Notifyowner is True', '[{\"fieldname\":\"notify_owner\",\"operation\":\"is\",\"value\":\"true:boolean\"}]', 2, 1, 'basic', 5, NULL, NULL, NULL, NULL, NULL, NULL, 1, 'Send Email to user when Notifyowner is True'),
(3, 'Contacts', 'Send Email to user when Notifyowner is True', '[{\"fieldname\":\"notify_owner\",\"operation\":\"is\",\"value\":\"true:boolean\"}]', 2, 1, 'basic', 5, NULL, NULL, NULL, NULL, NULL, NULL, 1, 'Send Email to user when Notifyowner is True'),
(4, 'Contacts', 'Send Email to user when Portal User is True', '[{\"fieldname\":\"portal\",\"operation\":\"is\",\"value\":\"1\",\"valuetype\":\"rawtext\",\"joincondition\":\"and\",\"groupjoin\":\"and\",\"groupid\":\"0\"},{\"fieldname\":\"email\",\"operation\":\"is not empty\",\"value\":\"\",\"valuetype\":\"rawtext\",\"joincondition\":\"\",\"groupjoin\":\"and\",\"groupid\":\"0\"}]', 3, 1, 'basic', 6, NULL, NULL, NULL, NULL, NULL, NULL, 0, 'Send Email to user when Portal User is True'),
(5, 'Potentials', 'Send Email to users on Potential creation', '[]', 1, 1, 'basic', 5, NULL, NULL, NULL, NULL, NULL, NULL, 1, 'Send Email to users on Potential creation'),
(6, 'Contacts', 'Workflow for Contact Creation or Modification', '[]', 3, 1, 'basic', 5, NULL, NULL, NULL, NULL, NULL, NULL, 1, 'Workflow for Contact Creation or Modification'),
(7, 'HelpDesk', 'Ticket Creation From Portal : Send Email to Record Owner and Contact', '[{\"fieldname\":\"from_portal\",\"operation\":\"is\",\"value\":1,\"valuetype\":\"rawtext\",\"joincondition\":\"and\",\"groupjoin\":\"and\",\"groupid\":0}]', 1, 1, 'basic', 6, NULL, NULL, NULL, NULL, NULL, NULL, 0, 'Ticket Creation From Portal : Send Email to Record Owner and Contact'),
(9, 'HelpDesk', 'Send Email to Contact on Ticket Update', '[{\"fieldname\":\"(contact_id : (Contacts) emailoptout)\",\"operation\":\"is\",\"value\":\"0\",\"valuetype\":\"rawtext\",\"joincondition\":\"and\",\"groupjoin\":\"and\",\"groupid\":\"0\"},{\"fieldname\":\"from_portal\",\"operation\":\"is\",\"value\":0,\"valuetype\":\"rawtext\",\"joincondition\":\"and\",\"groupjoin\":\"and\",\"groupid\":0},{\"fieldname\":\"ticketstatus\",\"operation\":\"has changed to\",\"value\":\"Closed\",\"valuetype\":\"rawtext\",\"joincondition\":\"or\",\"groupjoin\":\"and\",\"groupid\":\"1\"},{\"fieldname\":\"solution\",\"operation\":\"has changed\",\"value\":\"\",\"valuetype\":\"\",\"joincondition\":\"or\",\"groupjoin\":\"and\",\"groupid\":\"1\"},{\"fieldname\":\"description\",\"operation\":\"has changed\",\"value\":\"\",\"valuetype\":\"\",\"joincondition\":\"or\",\"groupjoin\":\"and\",\"groupid\":\"1\"}]', 3, 1, 'basic', 6, NULL, NULL, NULL, NULL, NULL, NULL, 1, 'Send Email to Contact on Ticket Update'),
(10, 'Events', 'Workflow for Events when Send Notification is True', '[{\"fieldname\":\"sendnotification\",\"operation\":\"is\",\"value\":\"true:boolean\"}]', 3, 1, 'basic', 5, NULL, NULL, NULL, NULL, NULL, NULL, 1, 'Workflow for Events when Send Notification is True'),
(11, 'Calendar', 'Workflow for Calendar Todos when Send Notification is True', '[{\"fieldname\":\"sendnotification\",\"operation\":\"is\",\"value\":\"true:boolean\"}]', 3, 1, 'basic', 5, NULL, NULL, NULL, NULL, NULL, NULL, 1, 'Workflow for Calendar Todos when Send Notification is True'),
(12, 'Potentials', 'Calculate or Update forecast amount', '[]', 3, 1, 'basic', 5, NULL, NULL, NULL, NULL, NULL, NULL, 1, 'Calculate or Update forecast amount'),
(13, 'Events', 'Workflow for Events when Send Notification is True', '[{\"fieldname\":\"sendnotification\",\"operation\":\"is\",\"value\":\"true:boolean\"}]', 3, 1, 'basic', 5, NULL, NULL, NULL, NULL, NULL, NULL, 1, 'Workflow for Events when Send Notification is True'),
(14, 'Calendar', 'Workflow for Calendar Todos when Send Notification is True', '[{\"fieldname\":\"sendnotification\",\"operation\":\"is\",\"value\":\"true:boolean\"}]', 3, 1, 'basic', 5, NULL, NULL, NULL, NULL, NULL, NULL, 1, 'Workflow for Calendar Todos when Send Notification is True'),
(15, 'HelpDesk', 'Comment Added From CRM : Send Email to Organization', '[{\"fieldname\":\"_VT_add_comment\",\"operation\":\"is added\",\"value\":\"\",\"valuetype\":\"rawtext\",\"joincondition\":\"\",\"groupjoin\":\"and\",\"groupid\":\"0\"},{\"fieldname\":\"from_portal\",\"operation\":\"is\",\"value\":\"0\",\"valuetype\":\"rawtext\",\"joincondition\":\"\",\"groupjoin\":\"and\",\"groupid\":\"0\"},{\"fieldname\":\"(parent_id : (Accounts) emailoptout)\",\"operation\":\"is\",\"value\":\"0\",\"valuetype\":\"rawtext\",\"joincondition\":\"and\",\"groupjoin\":\"and\",\"groupid\":\"0\"}]', 3, 1, 'basic', 6, NULL, NULL, NULL, NULL, NULL, NULL, 1, 'Comment Added From CRM : Send Email to Organization'),
(16, 'PurchaseOrder', 'Update Inventory Products On Every Save', '[]', 3, 1, 'basic', 5, NULL, NULL, NULL, NULL, NULL, NULL, 1, 'Update Inventory Products On Every Save'),
(17, 'HelpDesk', 'Comment Added From Portal : Send Email to Record Owner', '[{\"fieldname\":\"_VT_add_comment\",\"operation\":\"is added\",\"value\":\"\",\"valuetype\":\"rawtext\",\"joincondition\":\"\",\"groupjoin\":\"and\",\"groupid\":\"0\"},{\"fieldname\":\"from_portal\",\"operation\":\"is\",\"value\":\"1\",\"valuetype\":\"rawtext\",\"joincondition\":\"\",\"groupjoin\":\"and\",\"groupid\":\"0\"}]', 3, 1, 'basic', 6, NULL, NULL, NULL, NULL, NULL, NULL, 0, 'Comment Added From Portal : Send Email to Record Owner'),
(18, 'HelpDesk', 'Comment Added From CRM : Send Email to Contact, where Contact is not a Portal User', '[{\"fieldname\":\"(contact_id : (Contacts) portal)\",\"operation\":\"is\",\"value\":\"0\",\"valuetype\":\"rawtext\",\"joincondition\":\"and\",\"groupjoin\":\"and\",\"groupid\":\"0\"},{\"fieldname\":\"_VT_add_comment\",\"operation\":\"is added\",\"value\":\"\",\"valuetype\":\"rawtext\",\"joincondition\":\"\",\"groupjoin\":\"and\",\"groupid\":\"0\"},{\"fieldname\":\"from_portal\",\"operation\":\"is\",\"value\":\"0\",\"valuetype\":\"rawtext\",\"joincondition\":\"\",\"groupjoin\":\"and\",\"groupid\":\"0\"},{\"fieldname\":\"(contact_id : (Contacts) emailoptout)\",\"operation\":\"is\",\"value\":\"0\",\"valuetype\":\"rawtext\",\"joincondition\":\"and\",\"groupjoin\":\"and\",\"groupid\":\"0\"}]', 3, 1, 'basic', 6, NULL, NULL, NULL, NULL, NULL, NULL, 1, 'Comment Added From CRM : Send Email to Contact, where Contact is not a Portal User'),
(19, 'HelpDesk', 'Comment Added From CRM : Send Email to Contact, where Contact is Portal User', '[{\"fieldname\":\"(contact_id : (Contacts) portal)\",\"operation\":\"is\",\"value\":\"1\",\"valuetype\":\"rawtext\",\"joincondition\":\"and\",\"groupjoin\":\"and\",\"groupid\":\"0\"},{\"fieldname\":\"_VT_add_comment\",\"operation\":\"is added\",\"value\":\"\",\"valuetype\":\"rawtext\",\"joincondition\":\"\",\"groupjoin\":\"and\",\"groupid\":\"0\"},{\"fieldname\":\"from_portal\",\"operation\":\"is\",\"value\":\"0\",\"valuetype\":\"rawtext\",\"joincondition\":\"\",\"groupjoin\":\"and\",\"groupid\":\"0\"},{\"fieldname\":\"(contact_id : (Contacts) emailoptout)\",\"operation\":\"is\",\"value\":\"0\",\"valuetype\":\"rawtext\",\"joincondition\":\"and\",\"groupjoin\":\"and\",\"groupid\":\"0\"}]', 3, 1, 'basic', 6, NULL, NULL, NULL, NULL, NULL, NULL, 0, 'Comment Added From CRM : Send Email to Contact, where Contact is Portal User'),
(20, 'HelpDesk', 'Send Email to Record Owner on Ticket Update', '[{\"fieldname\":\"from_portal\",\"operation\":\"is\",\"value\":0,\"valuetype\":\"rawtext\",\"joincondition\":\"and\",\"groupjoin\":\"and\",\"groupid\":0},{\"fieldname\":\"ticketstatus\",\"operation\":\"has changed to\",\"value\":\"Closed\",\"valuetype\":\"rawtext\",\"joincondition\":\"or\",\"groupjoin\":\"and\",\"groupid\":\"1\"},{\"fieldname\":\"solution\",\"operation\":\"has changed\",\"value\":\"\",\"valuetype\":\"\",\"joincondition\":\"or\",\"groupjoin\":\"and\",\"groupid\":\"1\"},{\"fieldname\":\"assigned_user_id\",\"operation\":\"has changed\",\"value\":\"\",\"valuetype\":\"\",\"joincondition\":\"or\",\"groupjoin\":\"and\",\"groupid\":\"1\"},{\"fieldname\":\"description\",\"operation\":\"has changed\",\"value\":\"\",\"valuetype\":\"\",\"joincondition\":\"or\",\"groupjoin\":\"and\",\"groupid\":\"1\"}]', 3, 1, 'basic', 6, NULL, NULL, NULL, NULL, NULL, NULL, 1, 'Send Email to Record Owner on Ticket Update'),
(21, 'HelpDesk', 'Ticket Creation From CRM : Send Email to Record Owner', '[{\"fieldname\":\"from_portal\",\"operation\":\"is\",\"value\":\"0\",\"valuetype\":\"rawtext\",\"joincondition\":\"\",\"groupjoin\":\"and\",\"groupid\":\"0\"}]', 1, 1, 'basic', 6, NULL, NULL, NULL, NULL, NULL, NULL, 1, 'Ticket Creation From CRM : Send Email to Record Owner'),
(22, 'HelpDesk', 'Send Email to Organization on Ticket Update', '[{\"fieldname\":\"(parent_id : (Accounts) emailoptout)\",\"operation\":\"is\",\"value\":\"0\",\"valuetype\":\"rawtext\",\"joincondition\":\"and\",\"groupjoin\":\"and\",\"groupid\":\"0\"},{\"fieldname\":\"from_portal\",\"operation\":\"is\",\"value\":0,\"valuetype\":\"rawtext\",\"joincondition\":\"and\",\"groupjoin\":\"and\",\"groupid\":0},{\"fieldname\":\"ticketstatus\",\"operation\":\"has changed to\",\"value\":\"Closed\",\"valuetype\":\"rawtext\",\"joincondition\":\"or\",\"groupjoin\":\"and\",\"groupid\":\"1\"},{\"fieldname\":\"solution\",\"operation\":\"has changed\",\"value\":\"\",\"valuetype\":\"\",\"joincondition\":\"or\",\"groupjoin\":\"and\",\"groupid\":\"1\"},{\"fieldname\":\"description\",\"operation\":\"has changed\",\"value\":\"\",\"valuetype\":\"\",\"joincondition\":\"or\",\"groupjoin\":\"and\",\"groupid\":\"1\"}]', 3, 1, 'basic', 6, NULL, NULL, NULL, NULL, NULL, NULL, 1, 'Send Email to Organization on Ticket Update'),
(23, 'HelpDesk', 'Ticket Creation From CRM : Send Email to Organization', '[{\"fieldname\":\"(parent_id : (Accounts) emailoptout)\",\"operation\":\"is\",\"value\":\"0\",\"valuetype\":\"rawtext\",\"joincondition\":\"and\",\"groupjoin\":\"and\",\"groupid\":\"0\"},{\"fieldname\":\"from_portal\",\"operation\":\"is\",\"value\":\"0\",\"valuetype\":\"rawtext\",\"joincondition\":\"\",\"groupjoin\":\"and\",\"groupid\":\"0\"}]', 1, 1, 'basic', 6, NULL, NULL, NULL, NULL, NULL, NULL, 1, 'Ticket Creation From CRM : Send Email to Organization'),
(24, 'HelpDesk', 'Ticket Creation From CRM : Send Email to Contact', '[{\"fieldname\":\"(contact_id : (Contacts) emailoptout)\",\"operation\":\"is\",\"value\":\"0\",\"valuetype\":\"rawtext\",\"joincondition\":\"and\",\"groupjoin\":\"and\",\"groupid\":\"0\"},{\"fieldname\":\"from_portal\",\"operation\":\"is\",\"value\":\"0\",\"valuetype\":\"rawtext\",\"joincondition\":\"\",\"groupjoin\":\"and\",\"groupid\":\"0\"}]', 1, 1, 'basic', 6, NULL, NULL, NULL, NULL, NULL, NULL, 1, 'Ticket Creation From CRM : Send Email to Contact');

-- --------------------------------------------------------

--
-- Table structure for table `com_vtiger_workflows_seq`
--

CREATE TABLE `com_vtiger_workflows_seq` (
  `id` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

--
-- Dumping data for table `com_vtiger_workflows_seq`
--

INSERT IGNORE INTO `com_vtiger_workflows_seq` (`id`) VALUES
(24);

-- --------------------------------------------------------

--
-- Table structure for table `com_vtiger_workflowtasks`
--

CREATE TABLE `com_vtiger_workflowtasks` (
  `task_id` int(11) NOT NULL,
  `workflow_id` int(11) DEFAULT NULL,
  `summary` varchar(400) NOT NULL,
  `task` text NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_general_ci;

--
-- Dumping data for table `com_vtiger_workflowtasks`
--

INSERT IGNORE INTO `com_vtiger_workflowtasks` (`task_id`, `workflow_id`, `summary`, `task`) VALUES
(1, 1, '', 'O:18:\"VTEntityMethodTask\":6:{s:18:\"executeImmediately\";b:1;s:10:\"workflowId\";i:1;s:7:\"summary\";s:0:\"\";s:6:\"active\";b:1;s:10:\"methodName\";s:15:\"UpdateInventory\";s:2:\"id\";i:1;}'),
(2, 2, 'An account has been created ', 'O:11:\"VTEmailTask\":9:{s:18:\"executeImmediately\";s:0:\"\";s:10:\"workflowId\";s:1:\"2\";s:7:\"summary\";s:28:\"An account has been created \";s:6:\"active\";s:1:\"1\";s:10:\"methodName\";s:11:\"NotifyOwner\";s:9:\"recepient\";s:36:\"$(assigned_user_id : (Users) email1)\";s:7:\"subject\";s:26:\"Regarding Account Creation\";s:7:\"content\";s:297:\"An Account has been assigned to you on Gouya<br>Details of account are :<br><br>AccountId:<b>$account_no</b><br>AccountName:<b>$accountname</b><br>Rating:<b>$rating</b><br>Industry:<b>$industry</b><br>AccountType:<b>$accounttype</b><br>Description:<b>$description</b><br><br><br>Thank You<br>Admin\";s:2:\"id\";s:1:\"2\";}'),
(3, 3, 'An contact has been created ', 'O:11:\"VTEmailTask\":9:{s:18:\"executeImmediately\";s:0:\"\";s:10:\"workflowId\";s:1:\"3\";s:7:\"summary\";s:28:\"An contact has been created \";s:6:\"active\";s:1:\"1\";s:10:\"methodName\";s:11:\"NotifyOwner\";s:9:\"recepient\";s:36:\"$(assigned_user_id : (Users) email1)\";s:7:\"subject\";s:26:\"Regarding Contact Creation\";s:7:\"content\";s:301:\"An Contact has been assigned to you on Gouya<br>Details of Contact are :<br><br>Contact Id:<b>$contact_no</b><br>LastName:<b>$lastname</b><br>FirstName:<b>$firstname</b><br>Lead Source:<b>$leadsource</b><br>Department:<b>$department</b><br>Description:<b>$description</b><br><br><br>Thank You<br>Admin\";s:2:\"id\";s:1:\"3\";}'),
(4, 4, 'Email Customer Portal Login Details', 'O:18:\"VTEntityMethodTask\":6:{s:18:\"executeImmediately\";b:1;s:10:\"workflowId\";i:4;s:7:\"summary\";s:35:\"Email Customer Portal Login Details\";s:6:\"active\";b:1;s:10:\"methodName\";s:22:\"SendPortalLoginDetails\";s:2:\"id\";i:4;}'),
(5, 5, 'An Potential has been created ', 'O:11:\"VTEmailTask\":8:{s:18:\"executeImmediately\";s:0:\"\";s:10:\"workflowId\";s:1:\"5\";s:7:\"summary\";s:30:\"An Potential has been created \";s:6:\"active\";s:1:\"1\";s:9:\"recepient\";s:36:\"$(assigned_user_id : (Users) email1)\";s:7:\"subject\";s:30:\"Regarding Potential Assignment\";s:7:\"content\";s:338:\"An Potential has been assigned to you on Gouya<br>Details of Potential are :<br><br>Potential No:<b>$potential_no</b><br>Potential Name:<b>$potentialname</b><br>Amount:<b>$amount</b><br>Expected Close Date:<b>$closingdate ($_DATE_FORMAT_)</b><br>Type:<b>$opportunity_type</b><br><br><br>Description :$description<br><br>Thank You<br>Admin\";s:2:\"id\";s:1:\"5\";}'),
(6, 6, 'An contact has been created ', 'O:11:\"VTEmailTask\":8:{s:18:\"executeImmediately\";s:0:\"\";s:10:\"workflowId\";s:1:\"6\";s:7:\"summary\";s:28:\"An contact has been created \";s:6:\"active\";s:1:\"1\";s:9:\"recepient\";s:36:\"$(assigned_user_id : (Users) email1)\";s:7:\"subject\";s:28:\"Regarding Contact Assignment\";s:7:\"content\";s:380:\"An Contact has been assigned to you on Gouya<br>Details of Contact are :<br><br>Contact Id:<b>$contact_no</b><br>LastName:<b>$lastname</b><br>FirstName:<b>$firstname</b><br>Lead Source:<b>$leadsource</b><br>Department:<b>$department</b><br>Description:<b>$description</b><br><br><br>And <b>CustomerPortal Login Details</b> is sent to the EmailID :-$email<br><br>Thank You<br>Admin\";s:2:\"id\";s:1:\"6\";}'),
(7, 7, 'Notify Related Contact when Ticket is created from Portal', 'O:11:\"VTEmailTask\":9:{s:18:\"executeImmediately\";s:1:\"0\";s:7:\"summary\";s:57:\"Notify Related Contact when Ticket is created from Portal\";s:6:\"active\";s:1:\"1\";s:2:\"id\";s:1:\"7\";s:10:\"workflowId\";s:1:\"7\";s:9:\"fromEmail\";s:93:\"$(general : (__VtigerMeta__) supportName)&lt;$(general : (__VtigerMeta__) supportEmailId)&gt;\";s:9:\"recepient\";s:33:\",$(contact_id : (Contacts) email)\";s:7:\"subject\";s:93:\"[From Portal] $ticket_no [ Ticket Id : $(general : (__VtigerMeta__) recordId) ] $ticket_title\";s:7:\"content\";s:158:\"Ticket No : $ticket_no<br>\n							  Ticket ID : $(general : (__VtigerMeta__) recordId)<br>\n							  Ticket Title : $ticket_title<br><br>\n							  $description\";}'),
(10, 9, 'Send Email to Contact on Ticket Update', 'O:11:\"VTEmailTask\":9:{s:18:\"executeImmediately\";s:1:\"0\";s:7:\"summary\";s:38:\"Send Email to Contact on Ticket Update\";s:6:\"active\";s:1:\"1\";s:2:\"id\";s:2:\"10\";s:9:\"fromEmail\";s:93:\"$(general : (__VtigerMeta__) supportName)&lt;$(general : (__VtigerMeta__) supportEmailId)&gt;\";s:9:\"recepient\";s:33:\",$(contact_id : (Contacts) email)\";s:7:\"subject\";s:79:\"$ticket_no [ Ticket Id : $(general : (__VtigerMeta__) recordId) ] $ticket_title\";s:7:\"content\";s:624:\"Ticket ID : $(general : (__VtigerMeta__) recordId)<br>Ticket Title : $ticket_title<br><br>\n								Dear $(contact_id : (Contacts) lastname) $(contact_id : (Contacts) firstname),<br><br>\n								The Ticket is replied the details are :<br><br>\n								Ticket No : $ticket_no<br>\n								Status : $ticketstatus<br>\n								Category : $ticketcategories<br>\n								Severity : $ticketseverities<br>\n								Priority : $ticketpriorities<br><br>\n								Description : <br>$description<br><br>\n								Solution : <br>$solution<br>\n								The comments are : <br>\n								$allComments<br><br>\n								Regards<br>Support Administrator\";s:10:\"workflowId\";s:1:\"9\";}'),
(13, 12, 'update forecast amount', 'O:18:\"VTUpdateFieldsTask\":7:{s:18:\"executeImmediately\";b:1;s:43:\"\0VTUpdateFieldsTask\0referenceFieldFocusList\";a:0:{}s:10:\"workflowId\";i:12;s:7:\"summary\";s:22:\"update forecast amount\";s:6:\"active\";b:1;s:19:\"field_value_mapping\";s:95:\"[{\"fieldname\":\"forecast_amount\",\"valuetype\":\"expression\",\"value\":\"amount * probability / 100\"}]\";s:2:\"id\";i:13;}'),
(14, 13, 'Send Notification Email to Record Owner', 'O:11:\"VTEmailTask\":8:{s:18:\"executeImmediately\";s:0:\"\";s:10:\"workflowId\";s:2:\"13\";s:7:\"summary\";s:39:\"Send Notification Email to Record Owner\";s:6:\"active\";s:1:\"1\";s:9:\"recepient\";s:36:\"$(assigned_user_id : (Users) email1)\";s:7:\"subject\";s:17:\"Event :  $subject\";s:7:\"content\";s:771:\"$(assigned_user_id : (Users) last_name) $(assigned_user_id : (Users) first_name) ,<br/><b>Activity Notification Details:</b><br/>Subject             : $subject<br/>Start date and time : $date_start ($(general : (__VtigerMeta__) usertimezone))<br/>End date and time   : $due_date ($(general : (__VtigerMeta__) usertimezone)) <br/>Status              : $eventstatus <br/>Priority            : $taskpriority <br/>Related To          : $(parent_id : (Leads) lastname) $(parent_id : (Leads) firstname) $(parent_id : (Accounts) accountname) $(parent_id : (Potentials) potentialname) $(parent_id : (HelpDesk) ticket_title) $(parent_id : (Campaigns) campaignname) <br/>Contacts List       : $contact_id <br/>Location            : $location <br/>Description         : $description\";s:2:\"id\";s:2:\"14\";}'),
(15, 14, 'Send Notification Email to Record Owner', 'O:11:\"VTEmailTask\":8:{s:18:\"executeImmediately\";s:0:\"\";s:10:\"workflowId\";s:2:\"14\";s:7:\"summary\";s:39:\"Send Notification Email to Record Owner\";s:6:\"active\";s:1:\"1\";s:9:\"recepient\";s:36:\"$(assigned_user_id : (Users) email1)\";s:7:\"subject\";s:16:\"Task :  $subject\";s:7:\"content\";s:689:\"$(assigned_user_id : (Users) last_name) $(assigned_user_id : (Users) first_name) ,<br/><b>Task Notification Details:</b><br/>Subject : $subject<br/>Start date and time : $date_start ($(general : (__VtigerMeta__) usertimezone))<br/>End date and time   : $due_date ($_DATE_FORMAT_) <br/>Status              : $taskstatus <br/>Priority            : $taskpriority <br/>Related To          : $(parent_id : (Leads) lastname) $(parent_id : (Leads) firstname) $(parent_id : (Accounts) accountname) $(parent_id : (Potentials) potentialname) $(parent_id : (HelpDesk) ticket_title) $(parent_id : (Campaigns) campaignname) <br/>Contacts List       : $contact_id <br/>Description         : $description\";s:2:\"id\";s:2:\"15\";}'),
(18, 16, 'Update Inventory Products', 'O:18:\"VTEntityMethodTask\":6:{s:18:\"executeImmediately\";b:1;s:10:\"workflowId\";i:16;s:7:\"summary\";s:25:\"Update Inventory Products\";s:6:\"active\";b:1;s:10:\"methodName\";s:15:\"UpdateInventory\";s:2:\"id\";i:18;}'),
(19, 17, 'Comment Added From Portal : Send Email to Record Owner', 'O:11:\"VTEmailTask\":9:{s:18:\"executeImmediately\";s:1:\"0\";s:7:\"summary\";s:54:\"Comment Added From Portal : Send Email to Record Owner\";s:6:\"active\";s:1:\"1\";s:2:\"id\";s:2:\"19\";s:10:\"workflowId\";s:2:\"17\";s:9:\"fromEmail\";s:112:\"$(contact_id : (Contacts) lastname) $(contact_id : (Contacts) firstname)&lt;$(contact_id : (Contacts) email)&gt;\";s:9:\"recepient\";s:37:\",$(assigned_user_id : (Users) email1)\";s:7:\"subject\";s:92:\"Respond to Ticket ID## $(general : (__VtigerMeta__) recordId) ## in Customer Portal - URGENT\";s:7:\"content\";s:325:\"Dear $(assigned_user_id : (Users) last_name) $(assigned_user_id : (Users) first_name),<br><br>\n								Customer has provided the following additional information to your reply:<br><br>\n								<b>$lastComment</b><br><br>\n								Kindly respond to above ticket at the earliest.<br><br>\n								Regards<br>Support Administrator\";}'),
(20, 18, 'Comment Added From CRM : Send Email to Contact, where Contact is not a Portal User', 'O:11:\"VTEmailTask\":9:{s:18:\"executeImmediately\";s:1:\"0\";s:7:\"summary\";s:82:\"Comment Added From CRM : Send Email to Contact, where Contact is not a Portal User\";s:6:\"active\";s:1:\"1\";s:2:\"id\";s:2:\"20\";s:10:\"workflowId\";s:2:\"18\";s:9:\"fromEmail\";s:93:\"$(general : (__VtigerMeta__) supportName)&lt;$(general : (__VtigerMeta__) supportEmailId)&gt;\";s:9:\"recepient\";s:33:\",$(contact_id : (Contacts) email)\";s:7:\"subject\";s:79:\"$ticket_no [ Ticket Id : $(general : (__VtigerMeta__) recordId) ] $ticket_title\";s:7:\"content\";s:514:\"Dear $(contact_id : (Contacts) lastname) $(contact_id : (Contacts) firstname),<br><br>\n							The Ticket is replied the details are :<br><br>\n							Ticket No : $ticket_no<br>\n							Status : $ticketstatus<br>\n							Category : $ticketcategories<br>\n							Severity : $ticketseverities<br>\n							Priority : $ticketpriorities<br><br>\n							Description : <br>$description<br><br>\n							Solution : <br>$solution<br>\n							The comments are : <br>\n							$allComments<br><br>\n							Regards<br>Support Administrator\";}'),
(21, 19, 'Comment Added From CRM : Send Email to Contact, where Contact is Portal User', 'O:11:\"VTEmailTask\":9:{s:18:\"executeImmediately\";s:1:\"0\";s:7:\"summary\";s:76:\"Comment Added From CRM : Send Email to Contact, where Contact is Portal User\";s:6:\"active\";s:1:\"1\";s:2:\"id\";s:2:\"21\";s:10:\"workflowId\";s:2:\"19\";s:9:\"fromEmail\";s:93:\"$(general : (__VtigerMeta__) supportName)&lt;$(general : (__VtigerMeta__) supportEmailId)&gt;\";s:9:\"recepient\";s:33:\",$(contact_id : (Contacts) email)\";s:7:\"subject\";s:79:\"$ticket_no [ Ticket Id : $(general : (__VtigerMeta__) recordId) ] $ticket_title\";s:7:\"content\";s:547:\"Ticket No : $ticket_no<br>\n										Ticket Id : $(general : (__VtigerMeta__) recordId)<br>\n										Subject : $ticket_title<br><br>\n										Dear $(contact_id : (Contacts) lastname) $(contact_id : (Contacts) firstname),<br><br>\n										There is a reply to <b>$ticket_title</b> in the \"Customer Portal\" at VTiger.\n										You can use the following link to view the replies made:<br>\n										<a href=\"$(general : (__VtigerMeta__) portaldetailviewurl)\">Ticket Details</a><br><br>\n										Thanks<br>$(general : (__VtigerMeta__) supportName)\";}'),
(22, 15, 'Comment Added From CRM : Send Email to Organization', 'O:11:\"VTEmailTask\":9:{s:18:\"executeImmediately\";s:1:\"0\";s:7:\"summary\";s:51:\"Comment Added From CRM : Send Email to Organization\";s:6:\"active\";s:1:\"1\";s:2:\"id\";s:2:\"22\";s:10:\"workflowId\";s:2:\"15\";s:9:\"fromEmail\";s:93:\"$(general : (__VtigerMeta__) supportName)&lt;$(general : (__VtigerMeta__) supportEmailId)&gt;\";s:9:\"recepient\";s:34:\",$(parent_id : (Accounts) email1),\";s:7:\"subject\";s:79:\"$ticket_no [ Ticket Id : $(general : (__VtigerMeta__) recordId) ] $ticket_title\";s:7:\"content\";s:589:\"Ticket ID : $(general : (__VtigerMeta__) recordId)<br>Ticket Title : $ticket_title<br><br>\n								Dear $(parent_id : (Accounts) accountname),<br><br>\n								The Ticket is replied the details are :<br><br>\n								Ticket No : $ticket_no<br>\n								Status : $ticketstatus<br>\n								Category : $ticketcategories<br>\n								Severity : $ticketseverities<br>\n								Priority : $ticketpriorities<br><br>\n								Description : <br>$description<br><br>\n								Solution : <br>$solution<br>\n								The comments are : <br>\n								$allComments<br><br>\n								Regards<br>Support Administrator\";}'),
(23, 7, 'Notify Record Owner when Ticket is created from Portal', 'O:11:\"VTEmailTask\":9:{s:18:\"executeImmediately\";s:1:\"0\";s:7:\"summary\";s:54:\"Notify Record Owner when Ticket is created from Portal\";s:6:\"active\";s:1:\"1\";s:2:\"id\";s:2:\"23\";s:10:\"workflowId\";s:1:\"7\";s:9:\"fromEmail\";s:124:\"$(contact_id : (Contacts) lastname) $(contact_id : (Contacts) firstname)&lt;$(general : (__VtigerMeta__) supportEmailId)&gt;\";s:9:\"recepient\";s:37:\",$(assigned_user_id : (Users) email1)\";s:7:\"subject\";s:93:\"[From Portal] $ticket_no [ Ticket Id : $(general : (__VtigerMeta__) recordId) ] $ticket_title\";s:7:\"content\";s:158:\"Ticket No : $ticket_no<br>\n							  Ticket ID : $(general : (__VtigerMeta__) recordId)<br>\n							  Ticket Title : $ticket_title<br><br>\n							  $description\";}'),
(24, 20, 'Send Email to Record Owner on Ticket Update', 'O:11:\"VTEmailTask\":9:{s:18:\"executeImmediately\";s:1:\"0\";s:7:\"summary\";s:43:\"Send Email to Record Owner on Ticket Update\";s:6:\"active\";s:1:\"1\";s:2:\"id\";s:2:\"24\";s:10:\"workflowId\";s:2:\"20\";s:9:\"fromEmail\";s:93:\"$(general : (__VtigerMeta__) supportName)&lt;$(general : (__VtigerMeta__) supportEmailId)&gt;\";s:9:\"recepient\";s:37:\",$(assigned_user_id : (Users) email1)\";s:7:\"subject\";s:40:\"Ticket Number : $ticket_no $ticket_title\";s:7:\"content\";s:596:\"Ticket ID : $(general : (__VtigerMeta__) recordId)<br>Ticket Title : $ticket_title<br><br>\n								Dear $(assigned_user_id : (Users) last_name) $(assigned_user_id : (Users) first_name),<br><br>\n								The Ticket is replied the details are :<br><br>\n								Ticket No : $ticket_no<br>\n								Status : $ticketstatus<br>\n								Category : $ticketcategories<br>\n								Severity : $ticketseverities<br>\n								Priority : $ticketpriorities<br><br>\n								Description : <br>$description<br><br>\n								Solution : <br>$solution\n								$allComments<br><br>\n								Regards<br>Support Administrator\";}'),
(25, 21, 'Ticket Creation From CRM : Send Email to Record Owner', 'O:11:\"VTEmailTask\":9:{s:18:\"executeImmediately\";s:1:\"0\";s:7:\"summary\";s:53:\"Ticket Creation From CRM : Send Email to Record Owner\";s:6:\"active\";s:1:\"1\";s:2:\"id\";s:2:\"25\";s:10:\"workflowId\";s:2:\"21\";s:9:\"fromEmail\";s:93:\"$(general : (__VtigerMeta__) supportName)&lt;$(general : (__VtigerMeta__) supportEmailId)&gt;\";s:9:\"recepient\";s:37:\",$(assigned_user_id : (Users) email1)\";s:7:\"subject\";s:40:\"Ticket Number : $ticket_no $ticket_title\";s:7:\"content\";s:596:\"Ticket ID : $(general : (__VtigerMeta__) recordId)<br>Ticket Title : $ticket_title<br><br>\n								Dear $(assigned_user_id : (Users) last_name) $(assigned_user_id : (Users) first_name),<br><br>\n								The Ticket is replied the details are :<br><br>\n								Ticket No : $ticket_no<br>\n								Status : $ticketstatus<br>\n								Category : $ticketcategories<br>\n								Severity : $ticketseverities<br>\n								Priority : $ticketpriorities<br><br>\n								Description : <br>$description<br><br>\n								Solution : <br>$solution\n								$allComments<br><br>\n								Regards<br>Support Administrator\";}'),
(26, 22, 'Send Email to Organization on Ticket Update', 'O:11:\"VTEmailTask\":9:{s:18:\"executeImmediately\";s:1:\"0\";s:7:\"summary\";s:43:\"Send Email to Organization on Ticket Update\";s:6:\"active\";s:1:\"1\";s:2:\"id\";s:2:\"26\";s:9:\"fromEmail\";s:93:\"$(general : (__VtigerMeta__) supportName)&lt;$(general : (__VtigerMeta__) supportEmailId)&gt;\";s:9:\"recepient\";s:33:\",$(parent_id : (Accounts) email1)\";s:7:\"subject\";s:79:\"$ticket_no [ Ticket Id : $(general : (__VtigerMeta__) recordId) ] $ticket_title\";s:7:\"content\";s:589:\"Ticket ID : $(general : (__VtigerMeta__) recordId)<br>Ticket Title : $ticket_title<br><br>\n								Dear $(parent_id : (Accounts) accountname),<br><br>\n								The Ticket is replied the details are :<br><br>\n								Ticket No : $ticket_no<br>\n								Status : $ticketstatus<br>\n								Category : $ticketcategories<br>\n								Severity : $ticketseverities<br>\n								Priority : $ticketpriorities<br><br>\n								Description : <br>$description<br><br>\n								Solution : <br>$solution<br>\n								The comments are : <br>\n								$allComments<br><br>\n								Regards<br>Support Administrator\";s:10:\"workflowId\";s:2:\"22\";}'),
(27, 23, 'Ticket Creation From CRM : Send Email to Organization', 'O:11:\"VTEmailTask\":9:{s:18:\"executeImmediately\";s:1:\"0\";s:7:\"summary\";s:53:\"Ticket Creation From CRM : Send Email to Organization\";s:6:\"active\";s:1:\"1\";s:2:\"id\";s:2:\"27\";s:9:\"fromEmail\";s:93:\"$(general : (__VtigerMeta__) supportName)&lt;$(general : (__VtigerMeta__) supportEmailId)&gt;\";s:9:\"recepient\";s:33:\",$(parent_id : (Accounts) email1)\";s:7:\"subject\";s:79:\"$ticket_no [ Ticket Id : $(general : (__VtigerMeta__) recordId) ] $ticket_title\";s:7:\"content\";s:589:\"Ticket ID : $(general : (__VtigerMeta__) recordId)<br>Ticket Title : $ticket_title<br><br>\n								Dear $(parent_id : (Accounts) accountname),<br><br>\n								The Ticket is replied the details are :<br><br>\n								Ticket No : $ticket_no<br>\n								Status : $ticketstatus<br>\n								Category : $ticketcategories<br>\n								Severity : $ticketseverities<br>\n								Priority : $ticketpriorities<br><br>\n								Description : <br>$description<br><br>\n								Solution : <br>$solution<br>\n								The comments are : <br>\n								$allComments<br><br>\n								Regards<br>Support Administrator\";s:10:\"workflowId\";s:2:\"23\";}'),
(28, 24, 'Ticket Creation From CRM : Send Email to Contact', 'O:11:\"VTEmailTask\":9:{s:18:\"executeImmediately\";s:1:\"0\";s:7:\"summary\";s:48:\"Ticket Creation From CRM : Send Email to Contact\";s:6:\"active\";s:1:\"1\";s:2:\"id\";s:2:\"28\";s:9:\"fromEmail\";s:93:\"$(general : (__VtigerMeta__) supportName)&lt;$(general : (__VtigerMeta__) supportEmailId)&gt;\";s:9:\"recepient\";s:33:\",$(contact_id : (Contacts) email)\";s:7:\"subject\";s:79:\"$ticket_no [ Ticket Id : $(general : (__VtigerMeta__) recordId) ] $ticket_title\";s:7:\"content\";s:624:\"Ticket ID : $(general : (__VtigerMeta__) recordId)<br>Ticket Title : $ticket_title<br><br>\n								Dear $(contact_id : (Contacts) lastname) $(contact_id : (Contacts) firstname),<br><br>\n								The Ticket is replied the details are :<br><br>\n								Ticket No : $ticket_no<br>\n								Status : $ticketstatus<br>\n								Category : $ticketcategories<br>\n								Severity : $ticketseverities<br>\n								Priority : $ticketpriorities<br><br>\n								Description : <br>$description<br><br>\n								Solution : <br>$solution<br>\n								The comments are : <br>\n								$allComments<br><br>\n								Regards<br>Support Administrator\";s:10:\"workflowId\";s:2:\"24\";}');

-- --------------------------------------------------------

--
-- Table structure for table `com_vtiger_workflowtasks_entitymethod`
--

CREATE TABLE `com_vtiger_workflowtasks_entitymethod` (
  `workflowtasks_entitymethod_id` int(11) NOT NULL,
  `module_name` varchar(100) DEFAULT NULL,
  `method_name` varchar(100) DEFAULT NULL,
  `function_path` varchar(400) DEFAULT NULL,
  `function_name` varchar(100) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_general_ci;

--
-- Dumping data for table `com_vtiger_workflowtasks_entitymethod`
--

INSERT IGNORE INTO `com_vtiger_workflowtasks_entitymethod` (`workflowtasks_entitymethod_id`, `module_name`, `method_name`, `function_path`, `function_name`) VALUES
(1, 'SalesOrder', 'UpdateInventory', 'include/InventoryHandler.php', 'handleInventoryProductRel'),
(2, 'Invoice', 'UpdateInventory', 'include/InventoryHandler.php', 'handleInventoryProductRel'),
(3, 'Contacts', 'SendPortalLoginDetails', 'modules/Contacts/ContactsHandler.php', 'Contacts_sendCustomerPortalLoginDetails'),
(4, 'HelpDesk', 'NotifyOnPortalTicketCreation', 'modules/HelpDesk/HelpDeskHandler.php', 'HelpDesk_nofifyOnPortalTicketCreation'),
(5, 'HelpDesk', 'NotifyOnPortalTicketComment', 'modules/HelpDesk/HelpDeskHandler.php', 'HelpDesk_notifyOnPortalTicketComment'),
(6, 'HelpDesk', 'NotifyOwnerOnTicketChange', 'modules/HelpDesk/HelpDeskHandler.php', 'HelpDesk_notifyOwnerOnTicketChange'),
(7, 'HelpDesk', 'NotifyParentOnTicketChange', 'modules/HelpDesk/HelpDeskHandler.php', 'HelpDesk_notifyParentOnTicketChange'),
(8, 'ModComments', 'CustomerCommentFromPortal', 'modules/ModComments/ModCommentsHandler.php', 'CustomerCommentFromPortal'),
(9, 'ModComments', 'TicketOwnerComments', 'modules/ModComments/ModCommentsHandler.php', 'TicketOwnerComments'),
(10, 'PurchaseOrder', 'UpdateInventory', 'include/InventoryHandler.php', 'handleInventoryProductRel');

-- --------------------------------------------------------

--
-- Table structure for table `com_vtiger_workflowtasks_entitymethod_seq`
--

CREATE TABLE `com_vtiger_workflowtasks_entitymethod_seq` (
  `id` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

--
-- Dumping data for table `com_vtiger_workflowtasks_entitymethod_seq`
--

INSERT IGNORE INTO `com_vtiger_workflowtasks_entitymethod_seq` (`id`) VALUES
(10);

-- --------------------------------------------------------

--
-- Table structure for table `com_vtiger_workflowtasks_seq`
--

CREATE TABLE `com_vtiger_workflowtasks_seq` (
  `id` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

--
-- Dumping data for table `com_vtiger_workflowtasks_seq`
--

INSERT IGNORE INTO `com_vtiger_workflowtasks_seq` (`id`) VALUES
(28);

-- --------------------------------------------------------

--
-- Table structure for table `com_vtiger_workflowtask_queue`
--

CREATE TABLE `com_vtiger_workflowtask_queue` (
  `task_id` int(11) DEFAULT NULL,
  `entity_id` varchar(100) DEFAULT NULL,
  `do_after` int(11) DEFAULT NULL,
  `relatedinfo` varchar(255) DEFAULT NULL,
  `task_contents` text DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_general_ci;

--
-- Dumping data for table `com_vtiger_workflowtask_queue`
--

INSERT IGNORE INTO `com_vtiger_workflowtask_queue` (`task_id`, `entity_id`, `do_after`, `relatedinfo`, `task_contents`) VALUES
(6, '12x11', 0, 'false', '{\"fromEmail\":\"hossein.fgh@gmail.com\",\"fromName\":\"hujiko Administrator\",\"replyTo\":\"hossein.fgh@gmail.com\",\"toEmail\":\"hossein.fgh@gmail.com\",\"ccEmail\":\"\",\"bccEmail\":\"\",\"subject\":\"Regarding Contact Assignment\",\"content\":\"An Contact has been assigned to you on vtigerCRM<br>Details of Contact are :<br><br>Contact Id:<b>CON1<\\/b><br>LastName:<b>\\u0632\\u0627\\u0631\\u0639<\\/b><br>FirstName:<b>\\u0639\\u06cc\\u0633\\u06cc<\\/b><br>Lead Source:<b><\\/b><br>Department:<b><\\/b><br>Description:<b><\\/b><br><br><br>And <b>CustomerPortal Login Details<\\/b> is sent to the EmailID :-<br><br>Thank You<br>Admin<br><br>\"}'),
(5, '13x2046', 0, 'false', '{\"fromEmail\":\"hossein.fgh@gmail.com\",\"fromName\":\"\\u062d\\u0633\\u06cc\\u0646 \\u0641\\u063a\\u0627\\u0646 \\u067e\\u0648\\u0631\",\"replyTo\":\"hossein.fgh@gmail.com\",\"toEmail\":\"hossein.fgh@gmail.com\",\"ccEmail\":\"\",\"bccEmail\":\"\",\"subject\":\"Regarding Potential Assignment\",\"content\":\"An Potential has been assigned to you on vtigerCRM<br>Details of Potential are :<br><br>Potential No:<b>POT9<\\/b><br>Potential Name:<b>\\u062a\\u0633\\u062a \\u0633\\u06cc\\u0633\\u062a\\u0645 - \\u0641\\u0631\\u0635\\u062a \\u06af\\u0648\\u06cc\\u0627<\\/b><br>Amount:<b>$45,000,000<\\/b><br>Expected Close Date:<b>07-27-2026 (mm-dd-yyyy)<\\/b><br>Type:<b><\\/b><br><br><br>Description :<br><br>Thank You<br>Admin<br><br>\"}'),
(5, '13x2049', 0, 'false', '{\"fromEmail\":\"hossein.fgh@gmail.com\",\"fromName\":\"\\u062d\\u0633\\u06cc\\u0646 \\u0641\\u063a\\u0627\\u0646 \\u067e\\u0648\\u0631\",\"replyTo\":\"hossein.fgh@gmail.com\",\"toEmail\":\"hossein.fgh@gmail.com\",\"ccEmail\":\"\",\"bccEmail\":\"\",\"subject\":\"Regarding Potential Assignment\",\"content\":\"An Potential has been assigned to you on vtigerCRM<br>Details of Potential are :<br><br>Potential No:<b>POT12<\\/b><br>Potential Name:<b>\\u0646\\u0645\\u0648\\u0646\\u0647 \\u062a\\u0633\\u062a B - \\u0641\\u0631\\u0648\\u0634 \\u0645\\u0648\\u0641\\u0642 \\u062a\\u06cc\\u0631<\\/b><br>Amount:<b>$60,000,000<\\/b><br>Expected Close Date:<b>07-11-2026 (mm-dd-yyyy)<\\/b><br>Type:<b>\\u0645\\u0634\\u062a\\u0631\\u06cc \\u0645\\u0648\\u062c\\u0648\\u062f \\/ \\u062a\\u0645\\u062f\\u06cc\\u062f<\\/b><br><br><br>Description :<br><br>Thank You<br>Admin<br><br>\"}'),
(5, '13x2050', 0, 'false', '{\"fromEmail\":\"hossein.fgh@gmail.com\",\"fromName\":\"\\u062d\\u0633\\u06cc\\u0646 \\u0641\\u063a\\u0627\\u0646 \\u067e\\u0648\\u0631\",\"replyTo\":\"hossein.fgh@gmail.com\",\"toEmail\":\"hossein.fgh@gmail.com\",\"ccEmail\":\"\",\"bccEmail\":\"\",\"subject\":\"Regarding Potential Assignment\",\"content\":\"An Potential has been assigned to you on vtigerCRM<br>Details of Potential are :<br><br>Potential No:<b>POT13<\\/b><br>Potential Name:<b>\\u0646\\u0645\\u0648\\u0646\\u0647 \\u062a\\u0633\\u062a C - \\u0633\\u0631\\u0631\\u0633\\u06cc\\u062f \\u06af\\u0630\\u0634\\u062a\\u0647<\\/b><br>Amount:<b>$33,000,000<\\/b><br>Expected Close Date:<b>05-31-2026 (mm-dd-yyyy)<\\/b><br>Type:<b><\\/b><br><br><br>Description :\\u0646\\u0645\\u0648\\u0646\\u0647 \\u0628\\u0631\\u0627\\u06cc \\u062a\\u0633\\u062a \\u0647\\u0634\\u062f\\u0627\\u0631 \\u0633\\u0631\\u0631\\u0633\\u06cc\\u062f<br><br>Thank You<br>Admin<br><br>\"}'),
(6, '12x2066', 0, 'false', '{\"fromEmail\":\"hossein.fgh@gmail.com\",\"fromName\":\"\\u062d\\u0633\\u06cc\\u0646 \\u0641\\u063a\\u0627\\u0646 \\u067e\\u0648\\u0631\",\"replyTo\":\"hossein.fgh@gmail.com\",\"toEmail\":\"hossein.fgh@gmail.com\",\"ccEmail\":\"\",\"bccEmail\":\"\",\"subject\":\"Regarding Contact Assignment\",\"content\":\"An Contact has been assigned to you on vtigerCRM<br>Details of Contact are :<br><br>Contact Id:<b>CON2<\\/b><br>LastName:<b>\\u0645\\u062d\\u0645\\u062f\\u06cc<\\/b><br>FirstName:<b>\\u0639\\u0644\\u06cc<\\/b><br>Lead Source:<b><\\/b><br>Department:<b><\\/b><br>Description:<b>SYNC_FROM_USERS v1<\\/b><br><br><br>And <b>CustomerPortal Login Details<\\/b> is sent to the EmailID :-<br><br>Thank You<br>Admin<br><br>\"}'),
(6, '12x2067', 0, 'false', '{\"fromEmail\":\"hossein.fgh@gmail.com\",\"fromName\":\"\\u062d\\u0633\\u06cc\\u0646 \\u0641\\u063a\\u0627\\u0646 \\u067e\\u0648\\u0631\",\"replyTo\":\"hossein.fgh@gmail.com\",\"toEmail\":\"hossein.fgh@gmail.com\",\"ccEmail\":\"\",\"bccEmail\":\"\",\"subject\":\"Regarding Contact Assignment\",\"content\":\"An Contact has been assigned to you on vtigerCRM<br>Details of Contact are :<br><br>Contact Id:<b>CON3<\\/b><br>LastName:<b>\\u0627\\u062d\\u0645\\u062f\\u06cc<\\/b><br>FirstName:<b>\\u0633\\u0627\\u0631\\u0627<\\/b><br>Lead Source:<b><\\/b><br>Department:<b><\\/b><br>Description:<b>SYNC_FROM_USERS v1<\\/b><br><br><br>And <b>CustomerPortal Login Details<\\/b> is sent to the EmailID :-<br><br>Thank You<br>Admin<br><br>\"}'),
(6, '12x2068', 0, 'false', '{\"fromEmail\":\"hossein.fgh@gmail.com\",\"fromName\":\"\\u062d\\u0633\\u06cc\\u0646 \\u0641\\u063a\\u0627\\u0646 \\u067e\\u0648\\u0631\",\"replyTo\":\"hossein.fgh@gmail.com\",\"toEmail\":\"hossein.fgh@gmail.com\",\"ccEmail\":\"\",\"bccEmail\":\"\",\"subject\":\"Regarding Contact Assignment\",\"content\":\"An Contact has been assigned to you on vtigerCRM<br>Details of Contact are :<br><br>Contact Id:<b>CON4<\\/b><br>LastName:<b>\\u06a9\\u0631\\u06cc\\u0645\\u06cc<\\/b><br>FirstName:<b>\\u0631\\u0636\\u0627<\\/b><br>Lead Source:<b><\\/b><br>Department:<b><\\/b><br>Description:<b>SYNC_FROM_USERS v1<\\/b><br><br><br>And <b>CustomerPortal Login Details<\\/b> is sent to the EmailID :-<br><br>Thank You<br>Admin<br><br>\"}'),
(6, '12x2069', 0, 'false', '{\"fromEmail\":\"hossein.fgh@gmail.com\",\"fromName\":\"\\u062d\\u0633\\u06cc\\u0646 \\u0641\\u063a\\u0627\\u0646 \\u067e\\u0648\\u0631\",\"replyTo\":\"hossein.fgh@gmail.com\",\"toEmail\":\"hossein.fgh@gmail.com\",\"ccEmail\":\"\",\"bccEmail\":\"\",\"subject\":\"Regarding Contact Assignment\",\"content\":\"An Contact has been assigned to you on vtigerCRM<br>Details of Contact are :<br><br>Contact Id:<b>CON5<\\/b><br>LastName:<b>\\u0645\\u062d\\u0645\\u062f\\u06cc\\u0627\\u0646<\\/b><br>FirstName:<b>\\u0631\\u0636\\u0627<\\/b><br>Lead Source:<b><\\/b><br>Department:<b><\\/b><br>Description:<b>SYNC_FROM_USERS v1<\\/b><br><br><br>And <b>CustomerPortal Login Details<\\/b> is sent to the EmailID :-kpiseed_mgr@example.local<br><br>Thank You<br>Admin<br><br>\"}'),
(6, '12x2070', 0, 'false', '{\"fromEmail\":\"hossein.fgh@gmail.com\",\"fromName\":\"\\u062d\\u0633\\u06cc\\u0646 \\u0641\\u063a\\u0627\\u0646 \\u067e\\u0648\\u0631\",\"replyTo\":\"hossein.fgh@gmail.com\",\"toEmail\":\"hossein.fgh@gmail.com\",\"ccEmail\":\"\",\"bccEmail\":\"\",\"subject\":\"Regarding Contact Assignment\",\"content\":\"An Contact has been assigned to you on vtigerCRM<br>Details of Contact are :<br><br>Contact Id:<b>CON6<\\/b><br>LastName:<b>\\u06a9\\u0631\\u06cc\\u0645\\u06cc<\\/b><br>FirstName:<b>\\u0639\\u0644\\u06cc<\\/b><br>Lead Source:<b><\\/b><br>Department:<b><\\/b><br>Description:<b>SYNC_FROM_USERS v1<\\/b><br><br><br>And <b>CustomerPortal Login Details<\\/b> is sent to the EmailID :-kpiseed_sup1@example.local<br><br>Thank You<br>Admin<br><br>\"}'),
(6, '12x2071', 0, 'false', '{\"fromEmail\":\"hossein.fgh@gmail.com\",\"fromName\":\"\\u062d\\u0633\\u06cc\\u0646 \\u0641\\u063a\\u0627\\u0646 \\u067e\\u0648\\u0631\",\"replyTo\":\"hossein.fgh@gmail.com\",\"toEmail\":\"hossein.fgh@gmail.com\",\"ccEmail\":\"\",\"bccEmail\":\"\",\"subject\":\"Regarding Contact Assignment\",\"content\":\"An Contact has been assigned to you on vtigerCRM<br>Details of Contact are :<br><br>Contact Id:<b>CON7<\\/b><br>LastName:<b>\\u0642\\u0627\\u0633\\u0645\\u06cc<\\/b><br>FirstName:<b>\\u0646\\u06cc\\u0645\\u0627<\\/b><br>Lead Source:<b><\\/b><br>Department:<b><\\/b><br>Description:<b>SYNC_FROM_USERS v1<\\/b><br><br><br>And <b>CustomerPortal Login Details<\\/b> is sent to the EmailID :-kpiseed_emp1@example.local<br><br>Thank You<br>Admin<br><br>\"}'),
(6, '12x2072', 0, 'false', '{\"fromEmail\":\"hossein.fgh@gmail.com\",\"fromName\":\"\\u062d\\u0633\\u06cc\\u0646 \\u0641\\u063a\\u0627\\u0646 \\u067e\\u0648\\u0631\",\"replyTo\":\"hossein.fgh@gmail.com\",\"toEmail\":\"hossein.fgh@gmail.com\",\"ccEmail\":\"\",\"bccEmail\":\"\",\"subject\":\"Regarding Contact Assignment\",\"content\":\"An Contact has been assigned to you on vtigerCRM<br>Details of Contact are :<br><br>Contact Id:<b>CON8<\\/b><br>LastName:<b>\\u0645\\u0631\\u0627\\u062f\\u06cc<\\/b><br>FirstName:<b>\\u0632\\u0647\\u0631\\u0627<\\/b><br>Lead Source:<b><\\/b><br>Department:<b><\\/b><br>Description:<b>SYNC_FROM_USERS v1<\\/b><br><br><br>And <b>CustomerPortal Login Details<\\/b> is sent to the EmailID :-kpiseed_emp2@example.local<br><br>Thank You<br>Admin<br><br>\"}'),
(6, '12x2073', 0, 'false', '{\"fromEmail\":\"hossein.fgh@gmail.com\",\"fromName\":\"\\u062d\\u0633\\u06cc\\u0646 \\u0641\\u063a\\u0627\\u0646 \\u067e\\u0648\\u0631\",\"replyTo\":\"hossein.fgh@gmail.com\",\"toEmail\":\"hossein.fgh@gmail.com\",\"ccEmail\":\"\",\"bccEmail\":\"\",\"subject\":\"Regarding Contact Assignment\",\"content\":\"An Contact has been assigned to you on vtigerCRM<br>Details of Contact are :<br><br>Contact Id:<b>CON9<\\/b><br>LastName:<b>\\u0635\\u0627\\u062f\\u0642\\u06cc<\\/b><br>FirstName:<b>\\u0627\\u0645\\u06cc\\u0631<\\/b><br>Lead Source:<b><\\/b><br>Department:<b><\\/b><br>Description:<b>SYNC_FROM_USERS v1<\\/b><br><br><br>And <b>CustomerPortal Login Details<\\/b> is sent to the EmailID :-kpiseed_emp3@example.local<br><br>Thank You<br>Admin<br><br>\"}'),
(6, '12x2074', 0, 'false', '{\"fromEmail\":\"hossein.fgh@gmail.com\",\"fromName\":\"\\u062d\\u0633\\u06cc\\u0646 \\u0641\\u063a\\u0627\\u0646 \\u067e\\u0648\\u0631\",\"replyTo\":\"hossein.fgh@gmail.com\",\"toEmail\":\"hossein.fgh@gmail.com\",\"ccEmail\":\"\",\"bccEmail\":\"\",\"subject\":\"Regarding Contact Assignment\",\"content\":\"An Contact has been assigned to you on vtigerCRM<br>Details of Contact are :<br><br>Contact Id:<b>CON10<\\/b><br>LastName:<b>\\u06a9\\u0627\\u0638\\u0645\\u06cc<\\/b><br>FirstName:<b>\\u0641\\u0627\\u0637\\u0645\\u0647<\\/b><br>Lead Source:<b><\\/b><br>Department:<b><\\/b><br>Description:<b>SYNC_FROM_USERS v1<\\/b><br><br><br>And <b>CustomerPortal Login Details<\\/b> is sent to the EmailID :-kpiseed_emp4@example.local<br><br>Thank You<br>Admin<br><br>\"}'),
(6, '12x2075', 0, 'false', '{\"fromEmail\":\"hossein.fgh@gmail.com\",\"fromName\":\"\\u062d\\u0633\\u06cc\\u0646 \\u0641\\u063a\\u0627\\u0646 \\u067e\\u0648\\u0631\",\"replyTo\":\"hossein.fgh@gmail.com\",\"toEmail\":\"hossein.fgh@gmail.com\",\"ccEmail\":\"\",\"bccEmail\":\"\",\"subject\":\"Regarding Contact Assignment\",\"content\":\"An Contact has been assigned to you on vtigerCRM<br>Details of Contact are :<br><br>Contact Id:<b>CON11<\\/b><br>LastName:<b>\\u06cc\\u0648\\u0633\\u0641\\u06cc<\\/b><br>FirstName:<b>\\u0633\\u06cc\\u0646\\u0627<\\/b><br>Lead Source:<b><\\/b><br>Department:<b><\\/b><br>Description:<b>SYNC_FROM_USERS v1<\\/b><br><br><br>And <b>CustomerPortal Login Details<\\/b> is sent to the EmailID :-kpiseed_emp5@example.local<br><br>Thank You<br>Admin<br><br>\"}'),
(6, '12x2076', 0, 'false', '{\"fromEmail\":\"hossein.fgh@gmail.com\",\"fromName\":\"\\u062d\\u0633\\u06cc\\u0646 \\u0641\\u063a\\u0627\\u0646 \\u067e\\u0648\\u0631\",\"replyTo\":\"hossein.fgh@gmail.com\",\"toEmail\":\"hossein.fgh@gmail.com\",\"ccEmail\":\"\",\"bccEmail\":\"\",\"subject\":\"Regarding Contact Assignment\",\"content\":\"An Contact has been assigned to you on vtigerCRM<br>Details of Contact are :<br><br>Contact Id:<b>CON12<\\/b><br>LastName:<b>\\u062c\\u0639\\u0641\\u0631\\u06cc<\\/b><br>FirstName:<b>\\u0627\\u0644\\u0647\\u0627\\u0645<\\/b><br>Lead Source:<b><\\/b><br>Department:<b><\\/b><br>Description:<b>SYNC_FROM_USERS v1<\\/b><br><br><br>And <b>CustomerPortal Login Details<\\/b> is sent to the EmailID :-kpiseed_emp6@example.local<br><br>Thank You<br>Admin<br><br>\"}'),
(6, '12x2077', 0, 'false', '{\"fromEmail\":\"hossein.fgh@gmail.com\",\"fromName\":\"\\u062d\\u0633\\u06cc\\u0646 \\u0641\\u063a\\u0627\\u0646 \\u067e\\u0648\\u0631\",\"replyTo\":\"hossein.fgh@gmail.com\",\"toEmail\":\"hossein.fgh@gmail.com\",\"ccEmail\":\"\",\"bccEmail\":\"\",\"subject\":\"Regarding Contact Assignment\",\"content\":\"An Contact has been assigned to you on vtigerCRM<br>Details of Contact are :<br><br>Contact Id:<b>CON13<\\/b><br>LastName:<b>\\u0631\\u0636\\u0627\\u06cc\\u06cc<\\/b><br>FirstName:<b>\\u062d\\u0633\\u0646<\\/b><br>Lead Source:<b><\\/b><br>Department:<b><\\/b><br>Description:<b>SYNC_FROM_USERS v1<\\/b><br><br><br>And <b>CustomerPortal Login Details<\\/b> is sent to the EmailID :-kpiseed_sup3@example.local<br><br>Thank You<br>Admin<br><br>\"}'),
(6, '12x2078', 0, 'false', '{\"fromEmail\":\"hossein.fgh@gmail.com\",\"fromName\":\"\\u062d\\u0633\\u06cc\\u0646 \\u0641\\u063a\\u0627\\u0646 \\u067e\\u0648\\u0631\",\"replyTo\":\"hossein.fgh@gmail.com\",\"toEmail\":\"hossein.fgh@gmail.com\",\"ccEmail\":\"\",\"bccEmail\":\"\",\"subject\":\"Regarding Contact Assignment\",\"content\":\"An Contact has been assigned to you on vtigerCRM<br>Details of Contact are :<br><br>Contact Id:<b>CON14<\\/b><br>LastName:<b>\\u0627\\u06a9\\u0628\\u0631\\u06cc<\\/b><br>FirstName:<b>\\u0628\\u0647\\u0631\\u0627\\u0645<\\/b><br>Lead Source:<b><\\/b><br>Department:<b><\\/b><br>Description:<b>SYNC_FROM_USERS v1<\\/b><br><br><br>And <b>CustomerPortal Login Details<\\/b> is sent to the EmailID :-kpiseed_emp7@example.local<br><br>Thank You<br>Admin<br><br>\"}'),
(6, '12x2079', 0, 'false', '{\"fromEmail\":\"hossein.fgh@gmail.com\",\"fromName\":\"\\u062d\\u0633\\u06cc\\u0646 \\u0641\\u063a\\u0627\\u0646 \\u067e\\u0648\\u0631\",\"replyTo\":\"hossein.fgh@gmail.com\",\"toEmail\":\"hossein.fgh@gmail.com\",\"ccEmail\":\"\",\"bccEmail\":\"\",\"subject\":\"Regarding Contact Assignment\",\"content\":\"An Contact has been assigned to you on vtigerCRM<br>Details of Contact are :<br><br>Contact Id:<b>CON15<\\/b><br>LastName:<b>\\u0634\\u0631\\u06cc\\u0641\\u06cc<\\/b><br>FirstName:<b>\\u0646\\u06af\\u0627\\u0631<\\/b><br>Lead Source:<b><\\/b><br>Department:<b><\\/b><br>Description:<b>SYNC_FROM_USERS v1<\\/b><br><br><br>And <b>CustomerPortal Login Details<\\/b> is sent to the EmailID :-kpiseed_emp8@example.local<br><br>Thank You<br>Admin<br><br>\"}'),
(6, '12x2080', 0, 'false', '{\"fromEmail\":\"hossein.fgh@gmail.com\",\"fromName\":\"\\u062d\\u0633\\u06cc\\u0646 \\u0641\\u063a\\u0627\\u0646 \\u067e\\u0648\\u0631\",\"replyTo\":\"hossein.fgh@gmail.com\",\"toEmail\":\"hossein.fgh@gmail.com\",\"ccEmail\":\"\",\"bccEmail\":\"\",\"subject\":\"Regarding Contact Assignment\",\"content\":\"An Contact has been assigned to you on vtigerCRM<br>Details of Contact are :<br><br>Contact Id:<b>CON16<\\/b><br>LastName:<b>\\u0628\\u0627\\u0628\\u0627\\u06cc\\u06cc<\\/b><br>FirstName:<b>\\u067e\\u06cc\\u0645\\u0627\\u0646<\\/b><br>Lead Source:<b><\\/b><br>Department:<b><\\/b><br>Description:<b>SYNC_FROM_USERS v1<\\/b><br><br><br>And <b>CustomerPortal Login Details<\\/b> is sent to the EmailID :-kpiseed_emp9@example.local<br><br>Thank You<br>Admin<br><br>\"}'),
(6, '12x2081', 0, 'false', '{\"fromEmail\":\"hossein.fgh@gmail.com\",\"fromName\":\"\\u062d\\u0633\\u06cc\\u0646 \\u0641\\u063a\\u0627\\u0646 \\u067e\\u0648\\u0631\",\"replyTo\":\"hossein.fgh@gmail.com\",\"toEmail\":\"hossein.fgh@gmail.com\",\"ccEmail\":\"\",\"bccEmail\":\"\",\"subject\":\"Regarding Contact Assignment\",\"content\":\"An Contact has been assigned to you on vtigerCRM<br>Details of Contact are :<br><br>Contact Id:<b>CON17<\\/b><br>LastName:<b>\\u062d\\u0633\\u06cc\\u0646\\u06cc<\\/b><br>FirstName:<b>\\u0645\\u0631\\u06cc\\u0645<\\/b><br>Lead Source:<b><\\/b><br>Department:<b><\\/b><br>Description:<b>SYNC_FROM_USERS v1<\\/b><br><br><br>And <b>CustomerPortal Login Details<\\/b> is sent to the EmailID :-kpiseed_sup4@example.local<br><br>Thank You<br>Admin<br><br>\"}'),
(6, '12x2082', 0, 'false', '{\"fromEmail\":\"hossein.fgh@gmail.com\",\"fromName\":\"\\u062d\\u0633\\u06cc\\u0646 \\u0641\\u063a\\u0627\\u0646 \\u067e\\u0648\\u0631\",\"replyTo\":\"hossein.fgh@gmail.com\",\"toEmail\":\"hossein.fgh@gmail.com\",\"ccEmail\":\"\",\"bccEmail\":\"\",\"subject\":\"Regarding Contact Assignment\",\"content\":\"An Contact has been assigned to you on vtigerCRM<br>Details of Contact are :<br><br>Contact Id:<b>CON18<\\/b><br>LastName:<b>\\u0631\\u0633\\u062a\\u0645\\u06cc<\\/b><br>FirstName:<b>\\u0645\\u06cc\\u0646\\u0627<\\/b><br>Lead Source:<b><\\/b><br>Department:<b><\\/b><br>Description:<b>SYNC_FROM_USERS v1<\\/b><br><br><br>And <b>CustomerPortal Login Details<\\/b> is sent to the EmailID :-kpiseed_emp10@example.local<br><br>Thank You<br>Admin<br><br>\"}'),
(6, '12x2083', 0, 'false', '{\"fromEmail\":\"hossein.fgh@gmail.com\",\"fromName\":\"\\u062d\\u0633\\u06cc\\u0646 \\u0641\\u063a\\u0627\\u0646 \\u067e\\u0648\\u0631\",\"replyTo\":\"hossein.fgh@gmail.com\",\"toEmail\":\"hossein.fgh@gmail.com\",\"ccEmail\":\"\",\"bccEmail\":\"\",\"subject\":\"Regarding Contact Assignment\",\"content\":\"An Contact has been assigned to you on vtigerCRM<br>Details of Contact are :<br><br>Contact Id:<b>CON19<\\/b><br>LastName:<b>\\u0639\\u0628\\u0627\\u0633\\u06cc<\\/b><br>FirstName:<b>\\u06a9\\u06cc\\u0627\\u0646<\\/b><br>Lead Source:<b><\\/b><br>Department:<b><\\/b><br>Description:<b>SYNC_FROM_USERS v1<\\/b><br><br><br>And <b>CustomerPortal Login Details<\\/b> is sent to the EmailID :-kpiseed_emp11@example.local<br><br>Thank You<br>Admin<br><br>\"}'),
(6, '12x2084', 0, 'false', '{\"fromEmail\":\"hossein.fgh@gmail.com\",\"fromName\":\"\\u062d\\u0633\\u06cc\\u0646 \\u0641\\u063a\\u0627\\u0646 \\u067e\\u0648\\u0631\",\"replyTo\":\"hossein.fgh@gmail.com\",\"toEmail\":\"hossein.fgh@gmail.com\",\"ccEmail\":\"\",\"bccEmail\":\"\",\"subject\":\"Regarding Contact Assignment\",\"content\":\"An Contact has been assigned to you on vtigerCRM<br>Details of Contact are :<br><br>Contact Id:<b>CON20<\\/b><br>LastName:<b>\\u0646\\u0627\\u062f\\u0631\\u06cc<\\/b><br>FirstName:<b>\\u0631\\u0647\\u0627<\\/b><br>Lead Source:<b><\\/b><br>Department:<b><\\/b><br>Description:<b>SYNC_FROM_USERS v1<\\/b><br><br><br>And <b>CustomerPortal Login Details<\\/b> is sent to the EmailID :-kpiseed_emp12@example.local<br><br>Thank You<br>Admin<br><br>\"}'),
(6, '12x2085', 0, 'false', '{\"fromEmail\":\"hossein.fgh@gmail.com\",\"fromName\":\"\\u062d\\u0633\\u06cc\\u0646 \\u0641\\u063a\\u0627\\u0646 \\u067e\\u0648\\u0631\",\"replyTo\":\"hossein.fgh@gmail.com\",\"toEmail\":\"hossein.fgh@gmail.com\",\"ccEmail\":\"\",\"bccEmail\":\"\",\"subject\":\"Regarding Contact Assignment\",\"content\":\"An Contact has been assigned to you on vtigerCRM<br>Details of Contact are :<br><br>Contact Id:<b>CON21<\\/b><br>LastName:<b>\\u0646\\u0648\\u0631\\u06cc<\\/b><br>FirstName:<b>\\u06a9\\u0627\\u0648\\u0647<\\/b><br>Lead Source:<b><\\/b><br>Department:<b><\\/b><br>Description:<b>SYNC_FROM_USERS v1<\\/b><br><br><br>And <b>CustomerPortal Login Details<\\/b> is sent to the EmailID :-kpiseed_sup5@example.local<br><br>Thank You<br>Admin<br><br>\"}'),
(6, '12x2086', 0, 'false', '{\"fromEmail\":\"hossein.fgh@gmail.com\",\"fromName\":\"\\u062d\\u0633\\u06cc\\u0646 \\u0641\\u063a\\u0627\\u0646 \\u067e\\u0648\\u0631\",\"replyTo\":\"hossein.fgh@gmail.com\",\"toEmail\":\"hossein.fgh@gmail.com\",\"ccEmail\":\"\",\"bccEmail\":\"\",\"subject\":\"Regarding Contact Assignment\",\"content\":\"An Contact has been assigned to you on vtigerCRM<br>Details of Contact are :<br><br>Contact Id:<b>CON22<\\/b><br>LastName:<b>\\u0641\\u0644\\u0627\\u062d\\u06cc<\\/b><br>FirstName:<b>\\u0622\\u0631\\u0634<\\/b><br>Lead Source:<b><\\/b><br>Department:<b><\\/b><br>Description:<b>SYNC_FROM_USERS v1<\\/b><br><br><br>And <b>CustomerPortal Login Details<\\/b> is sent to the EmailID :-kpiseed_emp13@example.local<br><br>Thank You<br>Admin<br><br>\"}'),
(6, '12x2087', 0, 'false', '{\"fromEmail\":\"hossein.fgh@gmail.com\",\"fromName\":\"\\u062d\\u0633\\u06cc\\u0646 \\u0641\\u063a\\u0627\\u0646 \\u067e\\u0648\\u0631\",\"replyTo\":\"hossein.fgh@gmail.com\",\"toEmail\":\"hossein.fgh@gmail.com\",\"ccEmail\":\"\",\"bccEmail\":\"\",\"subject\":\"Regarding Contact Assignment\",\"content\":\"An Contact has been assigned to you on vtigerCRM<br>Details of Contact are :<br><br>Contact Id:<b>CON23<\\/b><br>LastName:<b>\\u0632\\u0627\\u0631\\u0639<\\/b><br>FirstName:<b>\\u0633\\u062d\\u0631<\\/b><br>Lead Source:<b><\\/b><br>Department:<b><\\/b><br>Description:<b>SYNC_FROM_USERS v1<\\/b><br><br><br>And <b>CustomerPortal Login Details<\\/b> is sent to the EmailID :-kpiseed_emp14@example.local<br><br>Thank You<br>Admin<br><br>\"}'),
(6, '12x2088', 0, 'false', '{\"fromEmail\":\"hossein.fgh@gmail.com\",\"fromName\":\"\\u062d\\u0633\\u06cc\\u0646 \\u0641\\u063a\\u0627\\u0646 \\u067e\\u0648\\u0631\",\"replyTo\":\"hossein.fgh@gmail.com\",\"toEmail\":\"hossein.fgh@gmail.com\",\"ccEmail\":\"\",\"bccEmail\":\"\",\"subject\":\"Regarding Contact Assignment\",\"content\":\"An Contact has been assigned to you on vtigerCRM<br>Details of Contact are :<br><br>Contact Id:<b>CON24<\\/b><br>LastName:<b>\\u0645\\u062d\\u0645\\u0648\\u062f\\u06cc<\\/b><br>FirstName:<b>\\u0648\\u062d\\u06cc\\u062f<\\/b><br>Lead Source:<b><\\/b><br>Department:<b><\\/b><br>Description:<b>SYNC_FROM_USERS v1<\\/b><br><br><br>And <b>CustomerPortal Login Details<\\/b> is sent to the EmailID :-kpiseed_emp15@example.local<br><br>Thank You<br>Admin<br><br>\"}'),
(6, '12x2089', 0, 'false', '{\"fromEmail\":\"hossein.fgh@gmail.com\",\"fromName\":\"\\u062d\\u0633\\u06cc\\u0646 \\u0641\\u063a\\u0627\\u0646 \\u067e\\u0648\\u0631\",\"replyTo\":\"hossein.fgh@gmail.com\",\"toEmail\":\"hossein.fgh@gmail.com\",\"ccEmail\":\"\",\"bccEmail\":\"\",\"subject\":\"Regarding Contact Assignment\",\"content\":\"An Contact has been assigned to you on vtigerCRM<br>Details of Contact are :<br><br>Contact Id:<b>CON25<\\/b><br>LastName:<b>\\u0641\\u063a\\u0627\\u0646 \\u067e\\u0648\\u0631<\\/b><br>FirstName:<b>\\u062d\\u0633\\u06cc\\u0646<\\/b><br>Lead Source:<b><\\/b><br>Department:<b><\\/b><br>Description:<b>SYNC_FROM_USERS v1 [user:admin]<\\/b><br><br><br>And <b>CustomerPortal Login Details<\\/b> is sent to the EmailID :-hossein.fgh@gmail.com<br><br>Thank You<br>Admin<br><br>\"}'),
(6, '12x2090', 0, 'false', '{\"fromEmail\":\"hossein.fgh@gmail.com\",\"fromName\":\"\\u062d\\u0633\\u06cc\\u0646 \\u0641\\u063a\\u0627\\u0646 \\u067e\\u0648\\u0631\",\"replyTo\":\"hossein.fgh@gmail.com\",\"toEmail\":\"hossein.fgh@gmail.com\",\"ccEmail\":\"\",\"bccEmail\":\"\",\"subject\":\"Regarding Contact Assignment\",\"content\":\"An Contact has been assigned to you on vtigerCRM<br>Details of Contact are :<br><br>Contact Id:<b>CON26<\\/b><br>LastName:<b>\\u0627\\u062d\\u0645\\u062f\\u06cc<\\/b><br>FirstName:<b>\\u0633\\u0627\\u0631\\u0627<\\/b><br>Lead Source:<b><\\/b><br>Department:<b><\\/b><br>Description:<b>SYNC_FROM_USERS v1 [user:kpiseed_sup2]<\\/b><br><br><br>And <b>CustomerPortal Login Details<\\/b> is sent to the EmailID :-kpiseed_sup2@example.local<br><br>Thank You<br>Admin<br><br>\"}'),
(6, '12x2091', 0, 'false', '{\"fromEmail\":\"a@gmail.com\",\"fromName\":\"\\u0639\\u06cc\\u0633\\u06cc \\u0632\\u0627\\u0631\\u0639\",\"replyTo\":\"hossein.fgh@gmail.com\",\"toEmail\":\"a@gmail.com\",\"ccEmail\":\"\",\"bccEmail\":\"\",\"subject\":\"Regarding Contact Assignment\",\"content\":\"An Contact has been assigned to you on vtigerCRM<br>Details of Contact are :<br><br>Contact Id:<b>CON27<\\/b><br>LastName:<b>\\u0645\\u062d\\u0645\\u062f\\u06cc (\\u0645\\u062b\\u0627\\u0644)<\\/b><br>FirstName:<b>\\u062e\\u0627\\u0646\\u0645 \\u0627\\u0641\\u0631\\u0648\\u0632<\\/b><br>Lead Source:<b><\\/b><br>Department:<b><\\/b><br>Description:<b>SEED_GOOYA_CONTACTS v1<\\/b><br><br><br>And <b>CustomerPortal Login Details<\\/b> is sent to the EmailID :-afrooz@test.com<br><br>Thank You<br>Admin<br><br>\"}'),
(25, '17x2092', 0, 'false', '{\"fromEmail\":\"hossein.fgh@gmail.com\",\"fromName\":\"your-support name\",\"replyTo\":\"hossein.fgh@gmail.com\",\"toEmail\":\",hossein.fgh@gmail.com\",\"ccEmail\":\"\",\"bccEmail\":\"\",\"subject\":\"Ticket Number : TT1 \\u062f\\u0631\\u062e\\u0648\\u0627\\u0633\\u062a \\u067e\\u0634\\u062a\\u06cc\\u0628\\u0627\\u0646\\u06cc \\u0646\\u0635\\u0628 (\\u0645\\u062b\\u0627\\u0644)\",\"content\":\"Ticket ID : 2092<br>Ticket Title : \\u062f\\u0631\\u062e\\u0648\\u0627\\u0633\\u062a \\u067e\\u0634\\u062a\\u06cc\\u0628\\u0627\\u0646\\u06cc \\u0646\\u0635\\u0628 (\\u0645\\u062b\\u0627\\u0644)<br><br>\\n\\t\\t\\t\\t\\t\\t\\t\\tDear \\u0641\\u063a\\u0627\\u0646 \\u067e\\u0648\\u0631 \\u062d\\u0633\\u06cc\\u0646,<br><br>\\n\\t\\t\\t\\t\\t\\t\\t\\tThe Ticket is replied the details are :<br><br>\\n\\t\\t\\t\\t\\t\\t\\t\\tTicket No : TT1<br>\\n\\t\\t\\t\\t\\t\\t\\t\\tStatus : Open<br>\\n\\t\\t\\t\\t\\t\\t\\t\\tCategory : <br>\\n\\t\\t\\t\\t\\t\\t\\t\\tSeverity : <br>\\n\\t\\t\\t\\t\\t\\t\\t\\tPriority : High<br><br>\\n\\t\\t\\t\\t\\t\\t\\t\\tDescription : <br>SEED_GOOYA_TICKETS v1<br><br>\\n\\t\\t\\t\\t\\t\\t\\t\\tSolution : <br>\\n\\t\\t\\t\\t\\t\\t\\t\\t<br><br>\\n\\t\\t\\t\\t\\t\\t\\t\\tRegards<br>Support Administrator<br><br>\"}'),
(6, '12x2093', 0, 'false', '{\"fromEmail\":\"a@gmail.com\",\"fromName\":\"\\u0639\\u06cc\\u0633\\u06cc \\u0632\\u0627\\u0631\\u0639\",\"replyTo\":\"hossein.fgh@gmail.com\",\"toEmail\":\"a@gmail.com\",\"ccEmail\":\"\",\"bccEmail\":\"\",\"subject\":\"Regarding Contact Assignment\",\"content\":\"An Contact has been assigned to you on vtigerCRM<br>Details of Contact are :<br><br>Contact Id:<b>CON28<\\/b><br>LastName:<b>\\u0646\\u06cc\\u06a9 \\u0631\\u0641\\u062a\\u0627\\u0631 (\\u0645\\u062b\\u0627\\u0644)<\\/b><br>FirstName:<b>\\u062e\\u0627\\u0646\\u0645 \\u0631\\u0648\\u06cc\\u0627<\\/b><br>Lead Source:<b><\\/b><br>Department:<b><\\/b><br>Description:<b>SEED_GOOYA_CONTACTS v1<\\/b><br><br><br>And <b>CustomerPortal Login Details<\\/b> is sent to the EmailID :-roya@test.com<br><br>Thank You<br>Admin<br><br>\"}'),
(6, '12x2095', 0, 'false', '{\"fromEmail\":\"a@gmail.com\",\"fromName\":\"\\u0639\\u06cc\\u0633\\u06cc \\u0632\\u0627\\u0631\\u0639\",\"replyTo\":\"hossein.fgh@gmail.com\",\"toEmail\":\"a@gmail.com\",\"ccEmail\":\"\",\"bccEmail\":\"\",\"subject\":\"Regarding Contact Assignment\",\"content\":\"An Contact has been assigned to you on vtigerCRM<br>Details of Contact are :<br><br>Contact Id:<b>CON29<\\/b><br>LastName:<b>\\u0642\\u0627\\u0636\\u06cc (\\u0645\\u062b\\u0627\\u0644)<\\/b><br>FirstName:<b>\\u0645\\u0647\\u0646\\u062f\\u0633<\\/b><br>Lead Source:<b><\\/b><br>Department:<b><\\/b><br>Description:<b>SEED_GOOYA_CONTACTS v1<\\/b><br><br><br>And <b>CustomerPortal Login Details<\\/b> is sent to the EmailID :-ghazi@test.com<br><br>Thank You<br>Admin<br><br>\"}'),
(6, '12x2096', 0, 'false', '{\"fromEmail\":\"a@gmail.com\",\"fromName\":\"\\u0639\\u06cc\\u0633\\u06cc \\u0632\\u0627\\u0631\\u0639\",\"replyTo\":\"hossein.fgh@gmail.com\",\"toEmail\":\"a@gmail.com\",\"ccEmail\":\"\",\"bccEmail\":\"\",\"subject\":\"Regarding Contact Assignment\",\"content\":\"An Contact has been assigned to you on vtigerCRM<br>Details of Contact are :<br><br>Contact Id:<b>CON30<\\/b><br>LastName:<b>\\u0641\\u0631\\u0648\\u0632\\u0634 (\\u0645\\u062b\\u0627\\u0644)<\\/b><br>FirstName:<b>\\u0622\\u0642\\u0627\\u06cc \\u0645\\u0647\\u062f\\u06cc<\\/b><br>Lead Source:<b><\\/b><br>Department:<b><\\/b><br>Description:<b>SEED_GOOYA_CONTACTS v1<\\/b><br><br><br>And <b>CustomerPortal Login Details<\\/b> is sent to the EmailID :-forouzesh@test.com<br><br>Thank You<br>Admin<br><br>\"}'),
(25, '17x2097', 0, 'false', '{\"fromEmail\":\"hossein.fgh@gmail.com\",\"fromName\":\"your-support name\",\"replyTo\":\"hossein.fgh@gmail.com\",\"toEmail\":\",hossein.fgh@gmail.com,a@gmail.com\",\"ccEmail\":\"\",\"bccEmail\":\"\",\"subject\":\"Ticket Number : TT3 \\u062f\\u0631\\u062e\\u0648\\u0627\\u0633\\u062a \\u0622\\u0645\\u0648\\u0632\\u0634 \\u06a9\\u0627\\u0631\\u0628\\u0631\\u06cc (\\u0645\\u062b\\u0627\\u0644)\",\"content\":\"Ticket ID : 2097<br>Ticket Title : \\u062f\\u0631\\u062e\\u0648\\u0627\\u0633\\u062a \\u0622\\u0645\\u0648\\u0632\\u0634 \\u06a9\\u0627\\u0631\\u0628\\u0631\\u06cc (\\u0645\\u062b\\u0627\\u0644)<br><br>\\n\\t\\t\\t\\t\\t\\t\\t\\tDear \\u0641\\u063a\\u0627\\u0646 \\u067e\\u0648\\u0631,\\u0632\\u0627\\u0631\\u0639 \\u062d\\u0633\\u06cc\\u0646,\\u0639\\u06cc\\u0633\\u06cc,<br><br>\\n\\t\\t\\t\\t\\t\\t\\t\\tThe Ticket is replied the details are :<br><br>\\n\\t\\t\\t\\t\\t\\t\\t\\tTicket No : TT3<br>\\n\\t\\t\\t\\t\\t\\t\\t\\tStatus : Wait For Response<br>\\n\\t\\t\\t\\t\\t\\t\\t\\tCategory : <br>\\n\\t\\t\\t\\t\\t\\t\\t\\tSeverity : <br>\\n\\t\\t\\t\\t\\t\\t\\t\\tPriority : Normal<br><br>\\n\\t\\t\\t\\t\\t\\t\\t\\tDescription : <br>SEED_GOOYA_TICKETS v1<br><br>\\n\\t\\t\\t\\t\\t\\t\\t\\tSolution : <br>\\n\\t\\t\\t\\t\\t\\t\\t\\t<br><br>\\n\\t\\t\\t\\t\\t\\t\\t\\tRegards<br>Support Administrator<br><br>\"}'),
(6, '12x2098', 0, 'false', '{\"fromEmail\":\"kpiseed_mgr@example.local\",\"fromName\":\"\\u062d\\u0633\\u06cc\\u0646 \\u0641\\u063a\\u0627\\u0646 \\u067e\\u0648\\u0631\",\"replyTo\":\"hossein.fgh@gmail.com\",\"toEmail\":\"kpiseed_mgr@example.local\",\"ccEmail\":\"\",\"bccEmail\":\"\",\"subject\":\"Regarding Contact Assignment\",\"content\":\"An Contact has been assigned to you on vtigerCRM<br>Details of Contact are :<br><br>Contact Id:<b>CON31<\\/b><br>LastName:<b>\\u06a9\\u0627\\u0628\\u06cc\\u0646\\u06cc (\\u0645\\u062b\\u0627\\u0644)<\\/b><br>FirstName:<b>\\u0622\\u0642\\u0627\\u06cc \\u0645\\u062d\\u0645\\u062f<\\/b><br>Lead Source:<b><\\/b><br>Department:<b><\\/b><br>Description:<b>SEED_GOOYA_CONTACTS v1<\\/b><br><br><br>And <b>CustomerPortal Login Details<\\/b> is sent to the EmailID :-ayini@test.com<br><br>Thank You<br>Admin<br><br>\"}'),
(6, '12x2100', 0, 'false', '{\"fromEmail\":\"a@gmail.com\",\"fromName\":\"\\u0639\\u06cc\\u0633\\u06cc \\u0632\\u0627\\u0631\\u0639\",\"replyTo\":\"hossein.fgh@gmail.com\",\"toEmail\":\"a@gmail.com\",\"ccEmail\":\"\",\"bccEmail\":\"\",\"subject\":\"Regarding Contact Assignment\",\"content\":\"An Contact has been assigned to you on vtigerCRM<br>Details of Contact are :<br><br>Contact Id:<b>CON32<\\/b><br>LastName:<b>\\u0632\\u0627\\u0645\\u06cc\\u0627\\u062f (\\u0645\\u062b\\u0627\\u0644)<\\/b><br>FirstName:<b>\\u0645\\u0647\\u0646\\u062f\\u0633<\\/b><br>Lead Source:<b><\\/b><br>Department:<b><\\/b><br>Description:<b>SEED_GOOYA_CONTACTS v1<\\/b><br><br><br>And <b>CustomerPortal Login Details<\\/b> is sent to the EmailID :-zamyad@test.com<br><br>Thank You<br>Admin<br><br>\"}'),
(6, '12x2102', 0, 'false', '{\"fromEmail\":\"a@gmail.com\",\"fromName\":\"\\u0639\\u06cc\\u0633\\u06cc \\u0632\\u0627\\u0631\\u0639\",\"replyTo\":\"hossein.fgh@gmail.com\",\"toEmail\":\"a@gmail.com\",\"ccEmail\":\"\",\"bccEmail\":\"\",\"subject\":\"Regarding Contact Assignment\",\"content\":\"An Contact has been assigned to you on vtigerCRM<br>Details of Contact are :<br><br>Contact Id:<b>CON33<\\/b><br>LastName:<b>\\u0639\\u0628\\u0627\\u0633\\u06cc (\\u0645\\u062b\\u0627\\u0644)<\\/b><br>FirstName:<b>\\u0622\\u0642\\u0627\\u06cc \\u063a\\u0644\\u0627\\u0645\\u0639\\u0644\\u06cc<\\/b><br>Lead Source:<b><\\/b><br>Department:<b><\\/b><br>Description:<b>SEED_GOOYA_CONTACTS v1<\\/b><br><br><br>And <b>CustomerPortal Login Details<\\/b> is sent to the EmailID :-abbasi@test.com<br><br>Thank You<br>Admin<br><br>\"}'),
(25, '17x2101', 0, 'false', '{\"fromEmail\":\"hossein.fgh@gmail.com\",\"fromName\":\"your-support name\",\"replyTo\":\"hossein.fgh@gmail.com\",\"toEmail\":\",a@gmail.com\",\"ccEmail\":\"\",\"bccEmail\":\"\",\"subject\":\"Ticket Number : TT5 \\u062f\\u0631\\u062e\\u0648\\u0627\\u0633\\u062a \\u06af\\u0632\\u0627\\u0631\\u0634 \\u0627\\u062e\\u062a\\u0635\\u0627\\u0635\\u06cc (\\u0645\\u062b\\u0627\\u0644)\",\"content\":\"Ticket ID : 2101<br>Ticket Title : \\u062f\\u0631\\u062e\\u0648\\u0627\\u0633\\u062a \\u06af\\u0632\\u0627\\u0631\\u0634 \\u0627\\u062e\\u062a\\u0635\\u0627\\u0635\\u06cc (\\u0645\\u062b\\u0627\\u0644)<br><br>\\n\\t\\t\\t\\t\\t\\t\\t\\tDear \\u0632\\u0627\\u0631\\u0639 \\u0639\\u06cc\\u0633\\u06cc,<br><br>\\n\\t\\t\\t\\t\\t\\t\\t\\tThe Ticket is replied the details are :<br><br>\\n\\t\\t\\t\\t\\t\\t\\t\\tTicket No : TT5<br>\\n\\t\\t\\t\\t\\t\\t\\t\\tStatus : Open<br>\\n\\t\\t\\t\\t\\t\\t\\t\\tCategory : <br>\\n\\t\\t\\t\\t\\t\\t\\t\\tSeverity : <br>\\n\\t\\t\\t\\t\\t\\t\\t\\tPriority : \\u067e\\u0627\\u06cc\\u06cc\\u0646<br><br>\\n\\t\\t\\t\\t\\t\\t\\t\\tDescription : <br>SEED_GOOYA_TICKETS v1<br><br>\\n\\t\\t\\t\\t\\t\\t\\t\\tSolution : <br>\\n\\t\\t\\t\\t\\t\\t\\t\\t<br><br>\\n\\t\\t\\t\\t\\t\\t\\t\\tRegards<br>Support Administrator<br><br>\"}'),
(6, '12x2103', 0, 'false', '{\"fromEmail\":\"a@gmail.com\",\"fromName\":\"\\u0639\\u06cc\\u0633\\u06cc \\u0632\\u0627\\u0631\\u0639\",\"replyTo\":\"hossein.fgh@gmail.com\",\"toEmail\":\"a@gmail.com\",\"ccEmail\":\"\",\"bccEmail\":\"\",\"subject\":\"Regarding Contact Assignment\",\"content\":\"An Contact has been assigned to you on vtigerCRM<br>Details of Contact are :<br><br>Contact Id:<b>CON34<\\/b><br>LastName:<b>\\u0645\\u062d\\u0645\\u062f\\u0622\\u0628\\u0627\\u062f\\u06cc (\\u0645\\u062b\\u0627\\u0644)<\\/b><br>FirstName:<b>\\u0622\\u0642\\u0627\\u06cc<\\/b><br>Lead Source:<b><\\/b><br>Department:<b><\\/b><br>Description:<b>SEED_GOOYA_CONTACTS v1<\\/b><br><br><br>And <b>CustomerPortal Login Details<\\/b> is sent to the EmailID :-mohammadabadi@test.com<br><br>Thank You<br>Admin<br><br>\"}'),
(6, '12x2105', 0, 'false', '{\"fromEmail\":\"a@gmail.com\",\"fromName\":\"\\u0639\\u06cc\\u0633\\u06cc \\u0632\\u0627\\u0631\\u0639\",\"replyTo\":\"hossein.fgh@gmail.com\",\"toEmail\":\"a@gmail.com\",\"ccEmail\":\"\",\"bccEmail\":\"\",\"subject\":\"Regarding Contact Assignment\",\"content\":\"An Contact has been assigned to you on vtigerCRM<br>Details of Contact are :<br><br>Contact Id:<b>CON35<\\/b><br>LastName:<b>\\u062e\\u0633\\u0631\\u0648\\u0622\\u0628\\u0627\\u062f\\u06cc (\\u0645\\u062b\\u0627\\u0644)<\\/b><br>FirstName:<b>\\u062e\\u0627\\u0646\\u0645 \\u0644\\u0639\\u06cc\\u0627<\\/b><br>Lead Source:<b><\\/b><br>Department:<b><\\/b><br>Description:<b>SEED_GOOYA_CONTACTS v1<\\/b><br><br><br>And <b>CustomerPortal Login Details<\\/b> is sent to the EmailID :-laya@test.com<br><br>Thank You<br>Admin<br><br>\"}'),
(25, '17x2106', 0, 'false', '{\"fromEmail\":\"hossein.fgh@gmail.com\",\"fromName\":\"your-support name\",\"replyTo\":\"hossein.fgh@gmail.com\",\"toEmail\":\",hossein.fgh@gmail.com\",\"ccEmail\":\"\",\"bccEmail\":\"\",\"subject\":\"Ticket Number : TT7 \\u062a\\u0645\\u062f\\u06cc\\u062f \\u0642\\u0631\\u0627\\u0631\\u062f\\u0627\\u062f \\u067e\\u0634\\u062a\\u06cc\\u0628\\u0627\\u0646\\u06cc (\\u0645\\u062b\\u0627\\u0644)\",\"content\":\"Ticket ID : 2106<br>Ticket Title : \\u062a\\u0645\\u062f\\u06cc\\u062f \\u0642\\u0631\\u0627\\u0631\\u062f\\u0627\\u062f \\u067e\\u0634\\u062a\\u06cc\\u0628\\u0627\\u0646\\u06cc (\\u0645\\u062b\\u0627\\u0644)<br><br>\\n\\t\\t\\t\\t\\t\\t\\t\\tDear \\u0641\\u063a\\u0627\\u0646 \\u067e\\u0648\\u0631 \\u062d\\u0633\\u06cc\\u0646,<br><br>\\n\\t\\t\\t\\t\\t\\t\\t\\tThe Ticket is replied the details are :<br><br>\\n\\t\\t\\t\\t\\t\\t\\t\\tTicket No : TT7<br>\\n\\t\\t\\t\\t\\t\\t\\t\\tStatus : Closed<br>\\n\\t\\t\\t\\t\\t\\t\\t\\tCategory : <br>\\n\\t\\t\\t\\t\\t\\t\\t\\tSeverity : <br>\\n\\t\\t\\t\\t\\t\\t\\t\\tPriority : Normal<br><br>\\n\\t\\t\\t\\t\\t\\t\\t\\tDescription : <br>SEED_GOOYA_TICKETS v1<br><br>\\n\\t\\t\\t\\t\\t\\t\\t\\tSolution : <br>\\n\\t\\t\\t\\t\\t\\t\\t\\t<br><br>\\n\\t\\t\\t\\t\\t\\t\\t\\tRegards<br>Support Administrator<br><br>\"}'),
(6, '12x2107', 0, 'false', '{\"fromEmail\":\"a@gmail.com\",\"fromName\":\"\\u0639\\u06cc\\u0633\\u06cc \\u0632\\u0627\\u0631\\u0639\",\"replyTo\":\"hossein.fgh@gmail.com\",\"toEmail\":\"a@gmail.com\",\"ccEmail\":\"\",\"bccEmail\":\"\",\"subject\":\"Regarding Contact Assignment\",\"content\":\"An Contact has been assigned to you on vtigerCRM<br>Details of Contact are :<br><br>Contact Id:<b>CON36<\\/b><br>LastName:<b>\\u062f\\u0627\\u062f\\u062c\\u0648 (\\u0645\\u062b\\u0627\\u0644)<\\/b><br>FirstName:<b>\\u0622\\u0642\\u0627\\u06cc \\u06a9\\u0627\\u0645\\u0631\\u0627\\u0646<\\/b><br>Lead Source:<b><\\/b><br>Department:<b><\\/b><br>Description:<b>SEED_GOOYA_CONTACTS v1<\\/b><br><br><br>And <b>CustomerPortal Login Details<\\/b> is sent to the EmailID :-dadjoo@test.com<br><br>Thank You<br>Admin<br><br>\"}'),
(6, '12x2108', 0, 'false', '{\"fromEmail\":\"a@gmail.com\",\"fromName\":\"\\u0639\\u06cc\\u0633\\u06cc \\u0632\\u0627\\u0631\\u0639\",\"replyTo\":\"hossein.fgh@gmail.com\",\"toEmail\":\"a@gmail.com\",\"ccEmail\":\"\",\"bccEmail\":\"\",\"subject\":\"Regarding Contact Assignment\",\"content\":\"An Contact has been assigned to you on vtigerCRM<br>Details of Contact are :<br><br>Contact Id:<b>CON37<\\/b><br>LastName:<b>\\u0645\\u0644\\u0627\\u0645\\u062d\\u0645\\u062f\\u06cc (\\u0645\\u062b\\u0627\\u0644)<\\/b><br>FirstName:<b>\\u0622\\u0642\\u0627\\u06cc \\u0639\\u0644\\u06cc<\\/b><br>Lead Source:<b><\\/b><br>Department:<b><\\/b><br>Description:<b>SEED_GOOYA_CONTACTS v1<\\/b><br><br><br>And <b>CustomerPortal Login Details<\\/b> is sent to the EmailID :-ali@test.com<br><br>Thank You<br>Admin<br><br>\"}'),
(25, '17x2109', 0, 'false', '{\"fromEmail\":\"hossein.fgh@gmail.com\",\"fromName\":\"your-support name\",\"replyTo\":\"hossein.fgh@gmail.com\",\"toEmail\":\",hossein.fgh@gmail.com,a@gmail.com\",\"ccEmail\":\"\",\"bccEmail\":\"\",\"subject\":\"Ticket Number : TT8 \\u062f\\u0631\\u062e\\u0648\\u0627\\u0633\\u062a \\u0641\\u0639\\u0627\\u0644\\u200c\\u0633\\u0627\\u0632\\u06cc \\u0645\\u0627\\u0698\\u0648\\u0644 \\u062c\\u062f\\u06cc\\u062f (\\u0645\\u062b\\u0627\\u0644)\",\"content\":\"Ticket ID : 2109<br>Ticket Title : \\u062f\\u0631\\u062e\\u0648\\u0627\\u0633\\u062a \\u0641\\u0639\\u0627\\u0644\\u200c\\u0633\\u0627\\u0632\\u06cc \\u0645\\u0627\\u0698\\u0648\\u0644 \\u062c\\u062f\\u06cc\\u062f (\\u0645\\u062b\\u0627\\u0644)<br><br>\\n\\t\\t\\t\\t\\t\\t\\t\\tDear \\u0641\\u063a\\u0627\\u0646 \\u067e\\u0648\\u0631,\\u0632\\u0627\\u0631\\u0639 \\u062d\\u0633\\u06cc\\u0646,\\u0639\\u06cc\\u0633\\u06cc,<br><br>\\n\\t\\t\\t\\t\\t\\t\\t\\tThe Ticket is replied the details are :<br><br>\\n\\t\\t\\t\\t\\t\\t\\t\\tTicket No : TT8<br>\\n\\t\\t\\t\\t\\t\\t\\t\\tStatus : Open<br>\\n\\t\\t\\t\\t\\t\\t\\t\\tCategory : <br>\\n\\t\\t\\t\\t\\t\\t\\t\\tSeverity : <br>\\n\\t\\t\\t\\t\\t\\t\\t\\tPriority : Normal<br><br>\\n\\t\\t\\t\\t\\t\\t\\t\\tDescription : <br>SEED_GOOYA_TICKETS v1<br><br>\\n\\t\\t\\t\\t\\t\\t\\t\\tSolution : <br>\\n\\t\\t\\t\\t\\t\\t\\t\\t<br><br>\\n\\t\\t\\t\\t\\t\\t\\t\\tRegards<br>Support Administrator<br><br>\"}'),
(6, '12x2110', 0, 'false', '{\"fromEmail\":\"a@gmail.com\",\"fromName\":\"\\u0639\\u06cc\\u0633\\u06cc \\u0632\\u0627\\u0631\\u0639\",\"replyTo\":\"hossein.fgh@gmail.com\",\"toEmail\":\"a@gmail.com\",\"ccEmail\":\"\",\"bccEmail\":\"\",\"subject\":\"Regarding Contact Assignment\",\"content\":\"An Contact has been assigned to you on vtigerCRM<br>Details of Contact are :<br><br>Contact Id:<b>CON38<\\/b><br>LastName:<b>\\u0645\\u0646\\u0648\\u0686\\u0647\\u0631\\u06cc (\\u0645\\u062b\\u0627\\u0644)<\\/b><br>FirstName:<b>\\u0622\\u0642\\u0627\\u06cc \\u0631\\u0636\\u0627<\\/b><br>Lead Source:<b><\\/b><br>Department:<b><\\/b><br>Description:<b>SEED_GOOYA_CONTACTS v1<\\/b><br><br><br>And <b>CustomerPortal Login Details<\\/b> is sent to the EmailID :-reza@test.com<br><br>Thank You<br>Admin<br><br>\"}'),
(6, '12x2111', 0, 'false', '{\"fromEmail\":\"a@gmail.com\",\"fromName\":\"\\u0639\\u06cc\\u0633\\u06cc \\u0632\\u0627\\u0631\\u0639\",\"replyTo\":\"hossein.fgh@gmail.com\",\"toEmail\":\"a@gmail.com\",\"ccEmail\":\"\",\"bccEmail\":\"\",\"subject\":\"Regarding Contact Assignment\",\"content\":\"An Contact has been assigned to you on vtigerCRM<br>Details of Contact are :<br><br>Contact Id:<b>CON39<\\/b><br>LastName:<b>\\u063a\\u0641\\u0627\\u0631\\u06cc (\\u0645\\u062b\\u0627\\u0644)<\\/b><br>FirstName:<b>\\u0622\\u0642\\u0627\\u06cc \\u0645\\u062d\\u0633\\u0646<\\/b><br>Lead Source:<b><\\/b><br>Department:<b><\\/b><br>Description:<b>SEED_GOOYA_CONTACTS v1<\\/b><br><br><br>And <b>CustomerPortal Login Details<\\/b> is sent to the EmailID :-<br><br>Thank You<br>Admin<br><br>\"}'),
(6, '12x2113', 0, 'false', '{\"fromEmail\":\"a@gmail.com\",\"fromName\":\"\\u0639\\u06cc\\u0633\\u06cc \\u0632\\u0627\\u0631\\u0639\",\"replyTo\":\"hossein.fgh@gmail.com\",\"toEmail\":\"a@gmail.com\",\"ccEmail\":\"\",\"bccEmail\":\"\",\"subject\":\"Regarding Contact Assignment\",\"content\":\"An Contact has been assigned to you on vtigerCRM<br>Details of Contact are :<br><br>Contact Id:<b>CON40<\\/b><br>LastName:<b>\\u067e\\u0648\\u0631\\u0639\\u0644\\u06cc (\\u0645\\u062b\\u0627\\u0644)<\\/b><br>FirstName:<b>\\u062e\\u0627\\u0646\\u0645<\\/b><br>Lead Source:<b><\\/b><br>Department:<b><\\/b><br>Description:<b>SEED_GOOYA_CONTACTS v1<\\/b><br><br><br>And <b>CustomerPortal Login Details<\\/b> is sent to the EmailID :-pourali@test.com<br><br>Thank You<br>Admin<br><br>\"}'),
(6, '12x2114', 0, 'false', '{\"fromEmail\":\"a@gmail.com\",\"fromName\":\"\\u0639\\u06cc\\u0633\\u06cc \\u0632\\u0627\\u0631\\u0639\",\"replyTo\":\"hossein.fgh@gmail.com\",\"toEmail\":\"a@gmail.com\",\"ccEmail\":\"\",\"bccEmail\":\"\",\"subject\":\"Regarding Contact Assignment\",\"content\":\"An Contact has been assigned to you on vtigerCRM<br>Details of Contact are :<br><br>Contact Id:<b>CON41<\\/b><br>LastName:<b>\\u062e\\u0627\\u0644\\u0642\\u06cc (\\u0645\\u062b\\u0627\\u0644)<\\/b><br>FirstName:<b>\\u062e\\u0627\\u0646\\u0645<\\/b><br>Lead Source:<b><\\/b><br>Department:<b><\\/b><br>Description:<b>SEED_GOOYA_CONTACTS v1<\\/b><br><br><br>And <b>CustomerPortal Login Details<\\/b> is sent to the EmailID :-khaleghi@test.com<br><br>Thank You<br>Admin<br><br>\"}'),
(6, '12x2116', 0, 'false', '{\"fromEmail\":\"a@gmail.com\",\"fromName\":\"\\u0639\\u06cc\\u0633\\u06cc \\u0632\\u0627\\u0631\\u0639\",\"replyTo\":\"hossein.fgh@gmail.com\",\"toEmail\":\"a@gmail.com\",\"ccEmail\":\"\",\"bccEmail\":\"\",\"subject\":\"Regarding Contact Assignment\",\"content\":\"An Contact has been assigned to you on vtigerCRM<br>Details of Contact are :<br><br>Contact Id:<b>CON42<\\/b><br>LastName:<b>\\u062a\\u0648\\u06a9\\u0644\\u06cc (\\u0645\\u062b\\u0627\\u0644)<\\/b><br>FirstName:<b>\\u0645\\u0647\\u0646\\u062f\\u0633<\\/b><br>Lead Source:<b><\\/b><br>Department:<b><\\/b><br>Description:<b>SEED_GOOYA_CONTACTS v1<\\/b><br><br><br>And <b>CustomerPortal Login Details<\\/b> is sent to the EmailID :-tavakoli@test.com<br><br>Thank You<br>Admin<br><br>\"}'),
(6, '12x2117', 0, 'false', '{\"fromEmail\":\"kpiseed_mgr@example.local\",\"fromName\":\"\\u062d\\u0633\\u06cc\\u0646 \\u0641\\u063a\\u0627\\u0646 \\u067e\\u0648\\u0631\",\"replyTo\":\"hossein.fgh@gmail.com\",\"toEmail\":\"kpiseed_mgr@example.local\",\"ccEmail\":\"\",\"bccEmail\":\"\",\"subject\":\"Regarding Contact Assignment\",\"content\":\"An Contact has been assigned to you on vtigerCRM<br>Details of Contact are :<br><br>Contact Id:<b>CON43<\\/b><br>LastName:<b>\\u0635\\u0627\\u062f\\u0642\\u06cc \\u0646\\u0698\\u0627\\u062f (\\u0645\\u062b\\u0627\\u0644)<\\/b><br>FirstName:<b>\\u062e\\u0627\\u0646\\u0645 \\u0634\\u0627\\u06cc\\u0627\\u0646<\\/b><br>Lead Source:<b><\\/b><br>Department:<b><\\/b><br>Description:<b>SEED_GOOYA_CONTACTS v1<\\/b><br><br><br>And <b>CustomerPortal Login Details<\\/b> is sent to the EmailID :-<br><br>Thank You<br>Admin<br><br>\"}'),
(6, '12x2118', 0, 'false', '{\"fromEmail\":\"a@gmail.com\",\"fromName\":\"\\u0639\\u06cc\\u0633\\u06cc \\u0632\\u0627\\u0631\\u0639\",\"replyTo\":\"hossein.fgh@gmail.com\",\"toEmail\":\"a@gmail.com\",\"ccEmail\":\"\",\"bccEmail\":\"\",\"subject\":\"Regarding Contact Assignment\",\"content\":\"An Contact has been assigned to you on vtigerCRM<br>Details of Contact are :<br><br>Contact Id:<b>CON44<\\/b><br>LastName:<b>\\u0634\\u0631\\u06cc\\u0641 (\\u0645\\u062b\\u0627\\u0644)<\\/b><br>FirstName:<b>\\u062e\\u0627\\u0646\\u0645<\\/b><br>Lead Source:<b><\\/b><br>Department:<b><\\/b><br>Description:<b>SEED_GOOYA_CONTACTS v1<\\/b><br><br><br>And <b>CustomerPortal Login Details<\\/b> is sent to the EmailID :-sharif@test.com<br><br>Thank You<br>Admin<br><br>\"}'),
(6, '12x2119', 0, 'false', '{\"fromEmail\":\"kpiseed_mgr@example.local\",\"fromName\":\"\\u062d\\u0633\\u06cc\\u0646 \\u0641\\u063a\\u0627\\u0646 \\u067e\\u0648\\u0631\",\"replyTo\":\"hossein.fgh@gmail.com\",\"toEmail\":\"kpiseed_mgr@example.local\",\"ccEmail\":\"\",\"bccEmail\":\"\",\"subject\":\"Regarding Contact Assignment\",\"content\":\"An Contact has been assigned to you on vtigerCRM<br>Details of Contact are :<br><br>Contact Id:<b>CON45<\\/b><br>LastName:<b>\\u06a9\\u0627\\u0638\\u0645 \\u0632\\u0627\\u062f\\u0647 (\\u0645\\u062b\\u0627\\u0644)<\\/b><br>FirstName:<b>\\u062e\\u0627\\u0646\\u0645 \\u0631\\u0642\\u06cc\\u0647<\\/b><br>Lead Source:<b><\\/b><br>Department:<b><\\/b><br>Description:<b>SEED_GOOYA_CONTACTS v1<\\/b><br><br><br>And <b>CustomerPortal Login Details<\\/b> is sent to the EmailID :-kazemzadeh@test.com<br><br>Thank You<br>Admin<br><br>\"}'),
(6, '12x2120', 0, 'false', '{\"fromEmail\":\"kpiseed_sup1@example.local\",\"fromName\":\"\\u062d\\u0633\\u06cc\\u0646 \\u0641\\u063a\\u0627\\u0646 \\u067e\\u0648\\u0631\",\"replyTo\":\"hossein.fgh@gmail.com\",\"toEmail\":\"kpiseed_sup1@example.local\",\"ccEmail\":\"\",\"bccEmail\":\"\",\"subject\":\"Regarding Contact Assignment\",\"content\":\"An Contact has been assigned to you on vtigerCRM<br>Details of Contact are :<br><br>Contact Id:<b>CON46<\\/b><br>LastName:<b>\\u0646\\u06cc\\u06a9\\u062a\\u0627\\u0628\\u06cc\\u06a9 (\\u0645\\u062b\\u0627\\u0644)<\\/b><br>FirstName:<b>\\u0622\\u0642\\u0627\\u06cc \\u062c\\u0648\\u0627\\u062f<\\/b><br>Lead Source:<b><\\/b><br>Department:<b><\\/b><br>Description:<b>SEED_GOOYA_CONTACTS v1<\\/b><br><br><br>And <b>CustomerPortal Login Details<\\/b> is sent to the EmailID :-<br><br>Thank You<br>Admin<br><br>\"}'),
(6, '12x2121', 0, 'false', '{\"fromEmail\":\"kpiseed_sup1@example.local\",\"fromName\":\"\\u062d\\u0633\\u06cc\\u0646 \\u0641\\u063a\\u0627\\u0646 \\u067e\\u0648\\u0631\",\"replyTo\":\"hossein.fgh@gmail.com\",\"toEmail\":\"kpiseed_sup1@example.local\",\"ccEmail\":\"\",\"bccEmail\":\"\",\"subject\":\"Regarding Contact Assignment\",\"content\":\"An Contact has been assigned to you on vtigerCRM<br>Details of Contact are :<br><br>Contact Id:<b>CON47<\\/b><br>LastName:<b>\\u0632\\u0627\\u0647\\u062f\\u06cc (\\u0645\\u062b\\u0627\\u0644)<\\/b><br>FirstName:<b>\\u062e\\u0627\\u0646\\u0645 \\u0645\\u0644\\u06cc\\u06a9\\u0627<\\/b><br>Lead Source:<b><\\/b><br>Department:<b><\\/b><br>Description:<b>SEED_GOOYA_CONTACTS v1<\\/b><br><br><br>And <b>CustomerPortal Login Details<\\/b> is sent to the EmailID :-zahedi@test.com<br><br>Thank You<br>Admin<br><br>\"}'),
(6, '12x2122', 0, 'false', '{\"fromEmail\":\"a@gmail.com\",\"fromName\":\"\\u0639\\u06cc\\u0633\\u06cc \\u0632\\u0627\\u0631\\u0639\",\"replyTo\":\"hossein.fgh@gmail.com\",\"toEmail\":\"a@gmail.com\",\"ccEmail\":\"\",\"bccEmail\":\"\",\"subject\":\"Regarding Contact Assignment\",\"content\":\"An Contact has been assigned to you on vtigerCRM<br>Details of Contact are :<br><br>Contact Id:<b>CON48<\\/b><br>LastName:<b>\\u0631\\u0639\\u0641\\u062a\\u06cc (\\u0645\\u062b\\u0627\\u0644)<\\/b><br>FirstName:<b>\\u0622\\u0642\\u0627\\u06cc \\u0639\\u0628\\u0627\\u0633<\\/b><br>Lead Source:<b><\\/b><br>Department:<b><\\/b><br>Description:<b>SEED_GOOYA_CONTACTS v1<\\/b><br><br><br>And <b>CustomerPortal Login Details<\\/b> is sent to the EmailID :-alii@test.com<br><br>Thank You<br>Admin<br><br>\"}'),
(6, '12x2123', 0, 'false', '{\"fromEmail\":\"a@gmail.com\",\"fromName\":\"\\u0639\\u06cc\\u0633\\u06cc \\u0632\\u0627\\u0631\\u0639\",\"replyTo\":\"hossein.fgh@gmail.com\",\"toEmail\":\"a@gmail.com\",\"ccEmail\":\"\",\"bccEmail\":\"\",\"subject\":\"Regarding Contact Assignment\",\"content\":\"An Contact has been assigned to you on vtigerCRM<br>Details of Contact are :<br><br>Contact Id:<b>CON49<\\/b><br>LastName:<b>\\u0627\\u0646\\u0635\\u0627\\u0631\\u06cc (\\u0645\\u062b\\u0627\\u0644)<\\/b><br>FirstName:<b>\\u0622\\u0642\\u0627\\u06cc \\u0645\\u0646\\u0648\\u0686\\u0647\\u0631<\\/b><br>Lead Source:<b><\\/b><br>Department:<b><\\/b><br>Description:<b>SEED_GOOYA_CONTACTS v1<\\/b><br><br><br>And <b>CustomerPortal Login Details<\\/b> is sent to the EmailID :-<br><br>Thank You<br>Admin<br><br>\"}'),
(6, '12x2124', 0, 'false', '{\"fromEmail\":\"kpiseed_mgr@example.local\",\"fromName\":\"\\u062d\\u0633\\u06cc\\u0646 \\u0641\\u063a\\u0627\\u0646 \\u067e\\u0648\\u0631\",\"replyTo\":\"hossein.fgh@gmail.com\",\"toEmail\":\"kpiseed_mgr@example.local\",\"ccEmail\":\"\",\"bccEmail\":\"\",\"subject\":\"Regarding Contact Assignment\",\"content\":\"An Contact has been assigned to you on vtigerCRM<br>Details of Contact are :<br><br>Contact Id:<b>CON50<\\/b><br>LastName:<b>\\u0627\\u062d\\u0645\\u062f\\u06cc\\u0627\\u0646 (\\u0645\\u062b\\u0627\\u0644)<\\/b><br>FirstName:<b>\\u0622\\u0642\\u0627\\u06cc \\u0635\\u0627\\u0628\\u0631<\\/b><br>Lead Source:<b><\\/b><br>Department:<b><\\/b><br>Description:<b>SEED_GOOYA_CONTACTS v1<\\/b><br><br><br>And <b>CustomerPortal Login Details<\\/b> is sent to the EmailID :-ahmadian@test.com<br><br>Thank You<br>Admin<br><br>\"}');
INSERT IGNORE INTO `com_vtiger_workflowtask_queue` (`task_id`, `entity_id`, `do_after`, `relatedinfo`, `task_contents`) VALUES
(6, '12x2125', 0, 'false', '{\"fromEmail\":\"kpiseed_mgr@example.local\",\"fromName\":\"\\u062d\\u0633\\u06cc\\u0646 \\u0641\\u063a\\u0627\\u0646 \\u067e\\u0648\\u0631\",\"replyTo\":\"hossein.fgh@gmail.com\",\"toEmail\":\"kpiseed_mgr@example.local\",\"ccEmail\":\"\",\"bccEmail\":\"\",\"subject\":\"Regarding Contact Assignment\",\"content\":\"An Contact has been assigned to you on vtigerCRM<br>Details of Contact are :<br><br>Contact Id:<b>CON51<\\/b><br>LastName:<b>\\u0633\\u0644\\u06cc\\u0645\\u06cc (\\u0645\\u062b\\u0627\\u0644)<\\/b><br>FirstName:<b>\\u0622\\u0642\\u0627\\u06cc \\u0627\\u0628\\u0648\\u0627\\u0644\\u0641\\u0636\\u0644<\\/b><br>Lead Source:<b><\\/b><br>Department:<b><\\/b><br>Description:<b>SEED_GOOYA_CONTACTS v1<\\/b><br><br><br>And <b>CustomerPortal Login Details<\\/b> is sent to the EmailID :-salimi@test.com<br><br>Thank You<br>Admin<br><br>\"}'),
(25, '17x2149', 0, 'false', '{\"fromEmail\":\"hossein.fgh@gmail.com\",\"fromName\":\"your-support name\",\"replyTo\":\"hossein.fgh@gmail.com\",\"toEmail\":\",hossein.fgh@gmail.com\",\"ccEmail\":\"\",\"bccEmail\":\"\",\"subject\":\"Ticket Number : TT9 \\u0633\\u0631\\u0648\\u06cc\\u0633 \\u0646\\u0635\\u0628 \\u0648 \\u0631\\u0627\\u0647\\u200c\\u0627\\u0646\\u062f\\u0627\\u0632\\u06cc \\u067e\\u06a9\\u06cc\\u062c \\u067e\\u06cc\\u0634\\u0631\\u0641\\u062a\\u0647 (\\u0646\\u0645\\u0648\\u0646\\u0647 \\u0641\\u0627\\u0632 \\u06f2)\",\"content\":\"Ticket ID : 2149<br>Ticket Title : \\u0633\\u0631\\u0648\\u06cc\\u0633 \\u0646\\u0635\\u0628 \\u0648 \\u0631\\u0627\\u0647\\u200c\\u0627\\u0646\\u062f\\u0627\\u0632\\u06cc \\u067e\\u06a9\\u06cc\\u062c \\u067e\\u06cc\\u0634\\u0631\\u0641\\u062a\\u0647 (\\u0646\\u0645\\u0648\\u0646\\u0647 \\u0641\\u0627\\u0632 \\u06f2)<br><br>\\n\\t\\t\\t\\t\\t\\t\\t\\tDear \\u0641\\u063a\\u0627\\u0646 \\u067e\\u0648\\u0631 \\u062d\\u0633\\u06cc\\u0646,<br><br>\\n\\t\\t\\t\\t\\t\\t\\t\\tThe Ticket is replied the details are :<br><br>\\n\\t\\t\\t\\t\\t\\t\\t\\tTicket No : TT9<br>\\n\\t\\t\\t\\t\\t\\t\\t\\tStatus : \\u062f\\u0631 \\u062d\\u0627\\u0644 \\u0627\\u0646\\u062c\\u0627\\u0645<br>\\n\\t\\t\\t\\t\\t\\t\\t\\tCategory : Other Problem<br>\\n\\t\\t\\t\\t\\t\\t\\t\\tSeverity : Major<br>\\n\\t\\t\\t\\t\\t\\t\\t\\tPriority : High<br><br>\\n\\t\\t\\t\\t\\t\\t\\t\\tDescription : <br>\\u062f\\u0631\\u062e\\u0648\\u0627\\u0633\\u062a \\u0639\\u0645\\u0644\\u06cc\\u0627\\u062a\\u06cc \\u0633\\u0631\\u0648\\u06cc\\u0633 \\u0628\\u0631\\u0627\\u06cc \\u0622\\u0632\\u0645\\u0648\\u0646 \\u0627\\u0631\\u062a\\u0628\\u0627\\u0637 \\u06a9\\u0627\\u0645\\u0644 \\u062d\\u0633\\u0627\\u0628\\u060c \\u0641\\u0631\\u062f\\u060c \\u062a\\u0627\\u0631\\u06cc\\u062e\\u0686\\u0647 \\u0648 \\u06af\\u0631\\u062f\\u0634 \\u0648\\u0636\\u0639\\u06cc\\u062a.<br><br>\\n\\t\\t\\t\\t\\t\\t\\t\\tSolution : <br>\\n\\t\\t\\t\\t\\t\\t\\t\\t<br><br>\\n\\t\\t\\t\\t\\t\\t\\t\\tRegards<br>Support Administrator<br><br>\"}'),
(28, '17x2149', 0, 'false', '{\"fromEmail\":\"hossein.fgh@gmail.com\",\"fromName\":\"your-support name\",\"replyTo\":\"hossein.fgh@gmail.com\",\"toEmail\":\",dadjoo@test.com\",\"ccEmail\":\"\",\"bccEmail\":\"\",\"subject\":\"TT9 [ Ticket Id : 2149 ] \\u0633\\u0631\\u0648\\u06cc\\u0633 \\u0646\\u0635\\u0628 \\u0648 \\u0631\\u0627\\u0647\\u200c\\u0627\\u0646\\u062f\\u0627\\u0632\\u06cc \\u067e\\u06a9\\u06cc\\u062c \\u067e\\u06cc\\u0634\\u0631\\u0641\\u062a\\u0647 (\\u0646\\u0645\\u0648\\u0646\\u0647 \\u0641\\u0627\\u0632 \\u06f2)\",\"content\":\"Ticket ID : 2149<br>Ticket Title : \\u0633\\u0631\\u0648\\u06cc\\u0633 \\u0646\\u0635\\u0628 \\u0648 \\u0631\\u0627\\u0647\\u200c\\u0627\\u0646\\u062f\\u0627\\u0632\\u06cc \\u067e\\u06a9\\u06cc\\u062c \\u067e\\u06cc\\u0634\\u0631\\u0641\\u062a\\u0647 (\\u0646\\u0645\\u0648\\u0646\\u0647 \\u0641\\u0627\\u0632 \\u06f2)<br><br>\\n\\t\\t\\t\\t\\t\\t\\t\\tDear \\u062f\\u0627\\u062f\\u062c\\u0648 (\\u0645\\u062b\\u0627\\u0644) \\u0622\\u0642\\u0627\\u06cc \\u06a9\\u0627\\u0645\\u0631\\u0627\\u0646,<br><br>\\n\\t\\t\\t\\t\\t\\t\\t\\tThe Ticket is replied the details are :<br><br>\\n\\t\\t\\t\\t\\t\\t\\t\\tTicket No : TT9<br>\\n\\t\\t\\t\\t\\t\\t\\t\\tStatus : \\u062f\\u0631 \\u062d\\u0627\\u0644 \\u0627\\u0646\\u062c\\u0627\\u0645<br>\\n\\t\\t\\t\\t\\t\\t\\t\\tCategory : Other Problem<br>\\n\\t\\t\\t\\t\\t\\t\\t\\tSeverity : Major<br>\\n\\t\\t\\t\\t\\t\\t\\t\\tPriority : High<br><br>\\n\\t\\t\\t\\t\\t\\t\\t\\tDescription : <br>\\u062f\\u0631\\u062e\\u0648\\u0627\\u0633\\u062a \\u0639\\u0645\\u0644\\u06cc\\u0627\\u062a\\u06cc \\u0633\\u0631\\u0648\\u06cc\\u0633 \\u0628\\u0631\\u0627\\u06cc \\u0622\\u0632\\u0645\\u0648\\u0646 \\u0627\\u0631\\u062a\\u0628\\u0627\\u0637 \\u06a9\\u0627\\u0645\\u0644 \\u062d\\u0633\\u0627\\u0628\\u060c \\u0641\\u0631\\u062f\\u060c \\u062a\\u0627\\u0631\\u06cc\\u062e\\u0686\\u0647 \\u0648 \\u06af\\u0631\\u062f\\u0634 \\u0648\\u0636\\u0639\\u06cc\\u062a.<br><br>\\n\\t\\t\\t\\t\\t\\t\\t\\tSolution : <br><br>\\n\\t\\t\\t\\t\\t\\t\\t\\tThe comments are : <br>\\n\\t\\t\\t\\t\\t\\t\\t\\t<br><br>\\n\\t\\t\\t\\t\\t\\t\\t\\tRegards<br>Support Administrator<br><br>\"}'),
(6, '12x2167', 0, 'false', '{\"fromEmail\":\"hossein.fgh@gmail.com\",\"fromName\":\"\\u062d\\u0633\\u06cc\\u0646 \\u0641\\u063a\\u0627\\u0646 \\u067e\\u0648\\u0631\",\"replyTo\":\"hossein.fgh@gmail.com\",\"toEmail\":\"hossein.fgh@gmail.com\",\"ccEmail\":\"\",\"bccEmail\":\"\",\"subject\":\"Regarding Contact Assignment\",\"content\":\"An Contact has been assigned to you on vtigerCRM<br>Details of Contact are :<br><br>Contact Id:<b>CON52<\\/b><br>LastName:<b>\\u06cc\\u06a9\\u067e\\u0627\\u0631\\u0686\\u06af\\u06cc \\u0633\\u0631\\u0646\\u062e<\\/b><br>FirstName:<b>\\u0622\\u0632\\u0645\\u0648\\u0646<\\/b><br>Lead Source:<b><\\/b><br>Department:<b><\\/b><br>Description:<b>Temporary integration record: SARV-LEAD-SMOKE-20260718040406-5955<\\/b><br><br><br>And <b>CustomerPortal Login Details<\\/b> is sent to the EmailID :-lead-updated@example.test<br><br>Thank You<br>Admin<br><br>\"}'),
(6, '12x2199', 0, 'false', '{\"fromEmail\":\"hossein.fgh@gmail.com\",\"fromName\":\"\\u062d\\u0633\\u06cc\\u0646 \\u0641\\u063a\\u0627\\u0646 \\u067e\\u0648\\u0631\",\"replyTo\":\"hossein.fgh@gmail.com\",\"toEmail\":\"hossein.fgh@gmail.com\",\"ccEmail\":\"\",\"bccEmail\":\"\",\"subject\":\"Regarding Contact Assignment\",\"content\":\"An Contact has been assigned to you on vtigerCRM<br>Details of Contact are :<br><br>Contact Id:<b>CON53<\\/b><br>LastName:<b>\\u06cc\\u06a9\\u067e\\u0627\\u0631\\u0686\\u06af\\u06cc \\u0633\\u0631\\u0646\\u062e<\\/b><br>FirstName:<b>\\u0622\\u0632\\u0645\\u0648\\u0646<\\/b><br>Lead Source:<b><\\/b><br>Department:<b><\\/b><br>Description:<b>Temporary integration record: SARV-LEAD-SMOKE-20260718043336-8174<\\/b><br><br><br>And <b>CustomerPortal Login Details<\\/b> is sent to the EmailID :-lead-updated@example.test<br><br>Thank You<br>Admin<br><br>\"}'),
(6, '12x2207', 0, 'false', '{\"fromEmail\":\"hossein.fgh@gmail.com\",\"fromName\":\"\\u062d\\u0633\\u06cc\\u0646 \\u0641\\u063a\\u0627\\u0646 \\u067e\\u0648\\u0631\",\"replyTo\":\"hossein.fgh@gmail.com\",\"toEmail\":\"hossein.fgh@gmail.com\",\"ccEmail\":\"\",\"bccEmail\":\"\",\"subject\":\"Regarding Contact Assignment\",\"content\":\"An Contact has been assigned to you on vtigerCRM<br>Details of Contact are :<br><br>Contact Id:<b>CON54<\\/b><br>LastName:<b>\\u06cc\\u06a9\\u067e\\u0627\\u0631\\u0686\\u06af\\u06cc \\u0633\\u0631\\u0646\\u062e<\\/b><br>FirstName:<b>\\u0622\\u0632\\u0645\\u0648\\u0646<\\/b><br>Lead Source:<b><\\/b><br>Department:<b><\\/b><br>Description:<b>Temporary integration record: SARV-LEAD-SMOKE-20260718043458-8234<\\/b><br><br><br>And <b>CustomerPortal Login Details<\\/b> is sent to the EmailID :-lead-updated@example.test<br><br>Thank You<br>Admin<br><br>\"}'),
(6, '12x2215', 0, 'false', '{\"fromEmail\":\"hossein.fgh@gmail.com\",\"fromName\":\"\\u062d\\u0633\\u06cc\\u0646 \\u0641\\u063a\\u0627\\u0646 \\u067e\\u0648\\u0631\",\"replyTo\":\"hossein.fgh@gmail.com\",\"toEmail\":\"hossein.fgh@gmail.com\",\"ccEmail\":\"\",\"bccEmail\":\"\",\"subject\":\"Regarding Contact Assignment\",\"content\":\"An Contact has been assigned to you on vtigerCRM<br>Details of Contact are :<br><br>Contact Id:<b>CON55<\\/b><br>LastName:<b>\\u06cc\\u06a9\\u067e\\u0627\\u0631\\u0686\\u06af\\u06cc \\u0633\\u0631\\u0646\\u062e<\\/b><br>FirstName:<b>\\u0622\\u0632\\u0645\\u0648\\u0646<\\/b><br>Lead Source:<b><\\/b><br>Department:<b><\\/b><br>Description:<b>Temporary integration record: SARV-LEAD-SMOKE-20260718043554-3440<\\/b><br><br><br>And <b>CustomerPortal Login Details<\\/b> is sent to the EmailID :-lead-updated@example.test<br><br>Thank You<br>Admin<br><br>\"}'),
(6, '12x2276', 0, 'false', '{\"fromEmail\":\"hossein.fgh@gmail.com\",\"fromName\":\"\\u062d\\u0633\\u06cc\\u0646 \\u0641\\u063a\\u0627\\u0646 \\u067e\\u0648\\u0631\",\"replyTo\":\"hossein.fgh@gmail.com\",\"toEmail\":\"hossein.fgh@gmail.com\",\"ccEmail\":\"\",\"bccEmail\":\"\",\"subject\":\"Regarding Contact Assignment\",\"content\":\"An Contact has been assigned to you on Gouya<br>Details of Contact are :<br><br>Contact Id:<b>CON78<\\/b><br>LastName:<b>\\u06cc\\u06a9\\u067e\\u0627\\u0631\\u0686\\u06af\\u06cc \\u0633\\u0631\\u0646\\u062e<\\/b><br>FirstName:<b>\\u0622\\u0632\\u0645\\u0648\\u0646<\\/b><br>Lead Source:<b><\\/b><br>Department:<b><\\/b><br>Description:<b>Temporary integration record: SARV-LEAD-SMOKE-20260730063600-5929<\\/b><br><br><br>And <b>CustomerPortal Login Details<\\/b> is sent to the EmailID :-lead-updated@example.test<br><br>Thank You<br>Admin<br><br>\"}'),
(6, '12x2279', 0, 'false', '{\"fromEmail\":\"hossein.fgh@gmail.com\",\"fromName\":\"\\u062d\\u0633\\u06cc\\u0646 \\u0641\\u063a\\u0627\\u0646 \\u067e\\u0648\\u0631\",\"replyTo\":\"hossein.fgh@gmail.com\",\"toEmail\":\"hossein.fgh@gmail.com\",\"ccEmail\":\"\",\"bccEmail\":\"\",\"subject\":\"Regarding Contact Assignment\",\"content\":\"An Contact has been assigned to you on Gouya<br>Details of Contact are :<br><br>Contact Id:<b>CON79<\\/b><br>LastName:<b>GOUYA-CONTACT-SMOKE-20260801180622-8131<\\/b><br>FirstName:<b>Gouya<\\/b><br>Lead Source:<b><\\/b><br>Department:<b>Quality Assurance<\\/b><br>Description:<b>Temporary integration test<\\/b><br><br><br>And <b>CustomerPortal Login Details<\\/b> is sent to the EmailID :-contact-smoke@example.test<br><br>Thank You<br>Admin<br><br>\"}'),
(6, '12x2279', 0, 'false', '{\"fromEmail\":\"hossein.fgh@gmail.com\",\"fromName\":\"\\u062d\\u0633\\u06cc\\u0646 \\u0641\\u063a\\u0627\\u0646 \\u067e\\u0648\\u0631\",\"replyTo\":\"hossein.fgh@gmail.com\",\"toEmail\":\"hossein.fgh@gmail.com\",\"ccEmail\":\"\",\"bccEmail\":\"\",\"subject\":\"Regarding Contact Assignment\",\"content\":\"An Contact has been assigned to you on Gouya<br>Details of Contact are :<br><br>Contact Id:<b>CON79<\\/b><br>LastName:<b>GOUYA-CONTACT-SMOKE-20260801180622-8131<\\/b><br>FirstName:<b>Gouya<\\/b><br>Lead Source:<b><\\/b><br>Department:<b>Quality Assurance<\\/b><br>Description:<b>Temporary integration test<\\/b><br><br><br>And <b>CustomerPortal Login Details<\\/b> is sent to the EmailID :-contact-smoke@example.test<br><br>Thank You<br>Admin<br><br>\"}'),
(6, '12x2313', 0, 'false', '{\"fromEmail\":\"hossein.fgh@gmail.com\",\"fromName\":\"\\u062d\\u0633\\u06cc\\u0646 \\u0641\\u063a\\u0627\\u0646 \\u067e\\u0648\\u0631\",\"replyTo\":\"hossein.fgh@gmail.com\",\"toEmail\":\"hossein.fgh@gmail.com\",\"ccEmail\":\"\",\"bccEmail\":\"\",\"subject\":\"Regarding Contact Assignment\",\"content\":\"An Contact has been assigned to you on Gouya<br>Details of Contact are :<br><br>Contact Id:<b>CON88<\\/b><br>LastName:<b>\\u06cc\\u06a9\\u067e\\u0627\\u0631\\u0686\\u06af\\u06cc \\u0633\\u0631\\u0646\\u062e<\\/b><br>FirstName:<b>\\u0622\\u0632\\u0645\\u0648\\u0646<\\/b><br>Lead Source:<b><\\/b><br>Department:<b><\\/b><br>Description:<b>Temporary integration record: SARV-LEAD-SMOKE-20260809061344-4881<\\/b><br><br><br>And <b>CustomerPortal Login Details<\\/b> is sent to the EmailID :-lead-updated@example.test<br><br>Thank You<br>Admin<br><br>\"}'),
(6, '12x2321', 0, 'false', '{\"fromEmail\":\"hossein.fgh@gmail.com\",\"fromName\":\"\\u062d\\u0633\\u06cc\\u0646 \\u0641\\u063a\\u0627\\u0646 \\u067e\\u0648\\u0631\",\"replyTo\":\"hossein.fgh@gmail.com\",\"toEmail\":\"hossein.fgh@gmail.com\",\"ccEmail\":\"\",\"bccEmail\":\"\",\"subject\":\"Regarding Contact Assignment\",\"content\":\"An Contact has been assigned to you on Gouya<br>Details of Contact are :<br><br>Contact Id:<b>CON89<\\/b><br>LastName:<b>\\u06cc\\u06a9\\u067e\\u0627\\u0631\\u0686\\u06af\\u06cc \\u0633\\u0631\\u0646\\u062e<\\/b><br>FirstName:<b>\\u0622\\u0632\\u0645\\u0648\\u0646<\\/b><br>Lead Source:<b><\\/b><br>Department:<b><\\/b><br>Description:<b>Temporary integration record: SARV-LEAD-SMOKE-20260809062044-1209<\\/b><br><br><br>And <b>CustomerPortal Login Details<\\/b> is sent to the EmailID :-lead-updated@example.test<br><br>Thank You<br>Admin<br><br>\"}'),
(6, '12x2329', 0, 'false', '{\"fromEmail\":\"hossein.fgh@gmail.com\",\"fromName\":\"\\u062d\\u0633\\u06cc\\u0646 \\u0641\\u063a\\u0627\\u0646 \\u067e\\u0648\\u0631\",\"replyTo\":\"hossein.fgh@gmail.com\",\"toEmail\":\"hossein.fgh@gmail.com\",\"ccEmail\":\"\",\"bccEmail\":\"\",\"subject\":\"Regarding Contact Assignment\",\"content\":\"An Contact has been assigned to you on Gouya<br>Details of Contact are :<br><br>Contact Id:<b>CON90<\\/b><br>LastName:<b>\\u06cc\\u06a9\\u067e\\u0627\\u0631\\u0686\\u06af\\u06cc \\u0633\\u0631\\u0646\\u062e<\\/b><br>FirstName:<b>\\u0622\\u0632\\u0645\\u0648\\u0646<\\/b><br>Lead Source:<b><\\/b><br>Department:<b><\\/b><br>Description:<b>Temporary integration record: SARV-LEAD-SMOKE-20260809062220-7570<\\/b><br><br><br>And <b>CustomerPortal Login Details<\\/b> is sent to the EmailID :-lead-updated@example.test<br><br>Thank You<br>Admin<br><br>\"}'),
(6, '12x2337', 0, 'false', '{\"fromEmail\":\"hossein.fgh@gmail.com\",\"fromName\":\"\\u062d\\u0633\\u06cc\\u0646 \\u0641\\u063a\\u0627\\u0646 \\u067e\\u0648\\u0631\",\"replyTo\":\"hossein.fgh@gmail.com\",\"toEmail\":\"hossein.fgh@gmail.com\",\"ccEmail\":\"\",\"bccEmail\":\"\",\"subject\":\"Regarding Contact Assignment\",\"content\":\"An Contact has been assigned to you on Gouya<br>Details of Contact are :<br><br>Contact Id:<b>CON91<\\/b><br>LastName:<b>\\u06cc\\u06a9\\u067e\\u0627\\u0631\\u0686\\u06af\\u06cc \\u0633\\u0631\\u0646\\u062e<\\/b><br>FirstName:<b>\\u0622\\u0632\\u0645\\u0648\\u0646<\\/b><br>Lead Source:<b><\\/b><br>Department:<b><\\/b><br>Description:<b>Temporary integration record: SARV-LEAD-SMOKE-20260809062704-6866<\\/b><br><br><br>And <b>CustomerPortal Login Details<\\/b> is sent to the EmailID :-lead-updated@example.test<br><br>Thank You<br>Admin<br><br>\"}'),
(6, '12x2345', 0, 'false', '{\"fromEmail\":\"hossein.fgh@gmail.com\",\"fromName\":\"\\u062d\\u0633\\u06cc\\u0646 \\u0641\\u063a\\u0627\\u0646 \\u067e\\u0648\\u0631\",\"replyTo\":\"hossein.fgh@gmail.com\",\"toEmail\":\"hossein.fgh@gmail.com\",\"ccEmail\":\"\",\"bccEmail\":\"\",\"subject\":\"Regarding Contact Assignment\",\"content\":\"An Contact has been assigned to you on Gouya<br>Details of Contact are :<br><br>Contact Id:<b>CON92<\\/b><br>LastName:<b>\\u06cc\\u06a9\\u067e\\u0627\\u0631\\u0686\\u06af\\u06cc \\u0633\\u0631\\u0646\\u062e<\\/b><br>FirstName:<b>\\u0622\\u0632\\u0645\\u0648\\u0646<\\/b><br>Lead Source:<b><\\/b><br>Department:<b><\\/b><br>Description:<b>Temporary integration record: SARV-LEAD-SMOKE-20260809063037-9459<\\/b><br><br><br>And <b>CustomerPortal Login Details<\\/b> is sent to the EmailID :-lead-updated@example.test<br><br>Thank You<br>Admin<br><br>\"}'),
(6, '12x2353', 0, 'false', '{\"fromEmail\":\"hossein.fgh@gmail.com\",\"fromName\":\"\\u062d\\u0633\\u06cc\\u0646 \\u0641\\u063a\\u0627\\u0646 \\u067e\\u0648\\u0631\",\"replyTo\":\"hossein.fgh@gmail.com\",\"toEmail\":\"hossein.fgh@gmail.com\",\"ccEmail\":\"\",\"bccEmail\":\"\",\"subject\":\"Regarding Contact Assignment\",\"content\":\"An Contact has been assigned to you on Gouya<br>Details of Contact are :<br><br>Contact Id:<b>CON93<\\/b><br>LastName:<b>\\u06cc\\u06a9\\u067e\\u0627\\u0631\\u0686\\u06af\\u06cc \\u0633\\u0631\\u0646\\u062e<\\/b><br>FirstName:<b>\\u0622\\u0632\\u0645\\u0648\\u0646<\\/b><br>Lead Source:<b><\\/b><br>Department:<b><\\/b><br>Description:<b>Temporary integration record: SARV-LEAD-SMOKE-20260809063122-8988<\\/b><br><br><br>And <b>CustomerPortal Login Details<\\/b> is sent to the EmailID :-lead-updated@example.test<br><br>Thank You<br>Admin<br><br>\"}'),
(15, '9x2358', 0, 'false', '{\"fromEmail\":\"hossein.fgh@gmail.com\",\"fromName\":\"\\u062d\\u0633\\u06cc\\u0646 \\u0641\\u063a\\u0627\\u0646 \\u067e\\u0648\\u0631\",\"replyTo\":\"hossein.fgh@gmail.com\",\"toEmail\":\"hossein.fgh@gmail.com\",\"ccEmail\":\"\",\"bccEmail\":\"\",\"subject\":\"Task :  __CODEX_GOOYA_TASK_SMOKE__20260809070601\",\"content\":\"\\u0641\\u063a\\u0627\\u0646 \\u067e\\u0648\\u0631 \\u062d\\u0633\\u06cc\\u0646 ,<br\\/><b>Task Notification Details:<\\/b><br\\/>Subject : __CODEX_GOOYA_TASK_SMOKE__20260809070601<br\\/>Start date and time : 08-09-2026 11:05 AM ((UTC+03:30) Tehran)<br\\/>End date and time   : 08-09-2026 (mm-dd-yyyy) <br\\/>Status              : \\u062f\\u0631 \\u062d\\u0627\\u0644 \\u0627\\u0646\\u062c\\u0627\\u0645 <br\\/>Priority            : \\u0628\\u0627\\u0644\\u0627 <br\\/>Related To          :       <br\\/>Contacts List       :  <br\\/>Description         : \\u062a\\u0633\\u062a \\u0639\\u0645\\u0644\\u06cc \\u0630\\u062e\\u06cc\\u0631\\u0647\\u060c \\u0627\\u0631\\u062a\\u0628\\u0627\\u0637 \\u0648 \\u06cc\\u0627\\u062f\\u0622\\u0648\\u0631 \\u0648\\u0638\\u06cc\\u0641\\u0647<br><br>\"}'),
(15, '9x2359', 0, 'false', '{\"fromEmail\":\"hossein.fgh@gmail.com\",\"fromName\":\"\\u062d\\u0633\\u06cc\\u0646 \\u0641\\u063a\\u0627\\u0646 \\u067e\\u0648\\u0631\",\"replyTo\":\"hossein.fgh@gmail.com\",\"toEmail\":\"hossein.fgh@gmail.com\",\"ccEmail\":\"\",\"bccEmail\":\"\",\"subject\":\"Task :  __CODEX_GOOYA_TASK_SMOKE__20260809072018\",\"content\":\"\\u0641\\u063a\\u0627\\u0646 \\u067e\\u0648\\u0631 \\u062d\\u0633\\u06cc\\u0646 ,<br\\/><b>Task Notification Details:<\\/b><br\\/>Subject : __CODEX_GOOYA_TASK_SMOKE__20260809072018<br\\/>Start date and time : 08-09-2026 11:05 AM ((UTC+03:30) Tehran)<br\\/>End date and time   : 08-09-2026 (mm-dd-yyyy) <br\\/>Status              : \\u062f\\u0631 \\u062d\\u0627\\u0644 \\u0627\\u0646\\u062c\\u0627\\u0645 <br\\/>Priority            : \\u0628\\u0627\\u0644\\u0627 <br\\/>Related To          :       <br\\/>Contacts List       :  <br\\/>Description         : \\u062a\\u0633\\u062a \\u0639\\u0645\\u0644\\u06cc \\u0630\\u062e\\u06cc\\u0631\\u0647\\u060c \\u0627\\u0631\\u062a\\u0628\\u0627\\u0637 \\u0648 \\u06cc\\u0627\\u062f\\u0622\\u0648\\u0631 \\u0648\\u0638\\u06cc\\u0641\\u0647<br><br>\"}'),
(15, '9x2361', 0, 'false', '{\"fromEmail\":\"hossein.fgh@gmail.com\",\"fromName\":\"\\u062d\\u0633\\u06cc\\u0646 \\u0641\\u063a\\u0627\\u0646 \\u067e\\u0648\\u0631\",\"replyTo\":\"hossein.fgh@gmail.com\",\"toEmail\":\"hossein.fgh@gmail.com\",\"ccEmail\":\"\",\"bccEmail\":\"\",\"subject\":\"Task :  __CODEX_GOOYA_TASK_SMOKE__20260809084235\",\"content\":\"\\u0641\\u063a\\u0627\\u0646 \\u067e\\u0648\\u0631 \\u062d\\u0633\\u06cc\\u0646 ,<br\\/><b>Task Notification Details:<\\/b><br\\/>Subject : __CODEX_GOOYA_TASK_SMOKE__20260809084235<br\\/>Start date and time : 08-09-2026 11:05 AM ((UTC+03:30) Tehran)<br\\/>End date and time   : 08-09-2026 (mm-dd-yyyy) <br\\/>Status              : \\u062f\\u0631 \\u062d\\u0627\\u0644 \\u0627\\u0646\\u062c\\u0627\\u0645 <br\\/>Priority            : \\u0628\\u0627\\u0644\\u0627 <br\\/>Related To          :       <br\\/>Contacts List       :  <br\\/>Description         : \\u062a\\u0633\\u062a \\u0639\\u0645\\u0644\\u06cc \\u0630\\u062e\\u06cc\\u0631\\u0647\\u060c \\u0627\\u0631\\u062a\\u0628\\u0627\\u0637 \\u0648 \\u06cc\\u0627\\u062f\\u0622\\u0648\\u0631 \\u0648\\u0638\\u06cc\\u0641\\u0647<br><br>\"}'),
(15, '9x2368', 0, 'false', '{\"fromEmail\":\"hossein.fgh@gmail.com\",\"fromName\":\"\\u062d\\u0633\\u06cc\\u0646 \\u0641\\u063a\\u0627\\u0646 \\u067e\\u0648\\u0631\",\"replyTo\":\"hossein.fgh@gmail.com\",\"toEmail\":\"hossein.fgh@gmail.com\",\"ccEmail\":\"\",\"bccEmail\":\"\",\"subject\":\"Task :  __CODEX_GOOYA_TASK_SMOKE__20260809090416\",\"content\":\"\\u0641\\u063a\\u0627\\u0646 \\u067e\\u0648\\u0631 \\u062d\\u0633\\u06cc\\u0646 ,<br\\/><b>Task Notification Details:<\\/b><br\\/>Subject : __CODEX_GOOYA_TASK_SMOKE__20260809090416<br\\/>Start date and time : 08-09-2026 11:05 AM ((UTC+03:30) Tehran)<br\\/>End date and time   : 08-09-2026 (mm-dd-yyyy) <br\\/>Status              : \\u062f\\u0631 \\u062d\\u0627\\u0644 \\u0627\\u0646\\u062c\\u0627\\u0645 <br\\/>Priority            : \\u0628\\u0627\\u0644\\u0627 <br\\/>Related To          :       <br\\/>Contacts List       :  <br\\/>Description         : \\u062a\\u0633\\u062a \\u0639\\u0645\\u0644\\u06cc \\u0630\\u062e\\u06cc\\u0631\\u0647\\u060c \\u0627\\u0631\\u062a\\u0628\\u0627\\u0637 \\u0648 \\u06cc\\u0627\\u062f\\u0622\\u0648\\u0631 \\u0648\\u0638\\u06cc\\u0641\\u0647<br><br>\"}'),
(5, '13x2528', 0, 'false', '{\"fromEmail\":\"hossein.fgh@gmail.com\",\"fromName\":\"\\u062d\\u0633\\u06cc\\u0646 \\u0641\\u063a\\u0627\\u0646 \\u067e\\u0648\\u0631\",\"replyTo\":\"hossein.fgh@gmail.com\",\"toEmail\":\"hossein.fgh@gmail.com\",\"ccEmail\":\"\",\"bccEmail\":\"\",\"subject\":\"Regarding Potential Assignment\",\"content\":\"An Potential has been assigned to you on Gouya<br>Details of Potential are :<br><br>Potential No:<b>POT1100<\\/b><br>Potential Name:<b>\\u0622\\u0632\\u0645\\u0648\\u0646 \\u0641\\u0631\\u0645 \\u0641\\u0631\\u0635\\u062a \\u06af\\u0648\\u06cc\\u0627 20260810072231-589<\\/b><br>Amount:<b>$2,500,000<\\/b><br>Expected Close Date:<b>08-24-2026 (mm-dd-yyyy)<\\/b><br>Type:<b><\\/b><br><br><br>Description :\\u0622\\u0632\\u0645\\u0648\\u0646 \\u0628\\u0627\\u0632\\u06af\\u0634\\u062a\\u200c\\u067e\\u0630\\u06cc\\u0631 \\u0641\\u0631\\u0645 \\u0641\\u0631\\u0635\\u062a \\u0648 \\u0633\\u0631\\u0648\\u0631 \\u06af\\u0648\\u06cc\\u0627<br><br>Thank You<br>Admin<br><br>\"}'),
(5, '13x2530', 0, 'false', '{\"fromEmail\":\"hossein.fgh@gmail.com\",\"fromName\":\"\\u062d\\u0633\\u06cc\\u0646 \\u0641\\u063a\\u0627\\u0646 \\u067e\\u0648\\u0631\",\"replyTo\":\"hossein.fgh@gmail.com\",\"toEmail\":\"hossein.fgh@gmail.com\",\"ccEmail\":\"\",\"bccEmail\":\"\",\"subject\":\"Regarding Potential Assignment\",\"content\":\"An Potential has been assigned to you on Gouya<br>Details of Potential are :<br><br>Potential No:<b>POT1101<\\/b><br>Potential Name:<b>\\u0622\\u0632\\u0645\\u0648\\u0646 \\u0639\\u0645\\u0644\\u06cc \\u0641\\u0631\\u0645 \\u0641\\u0631\\u0635\\u062a \\u06af\\u0648\\u06cc\\u0627 1786346601193<\\/b><br>Amount:<b>$2,500,000<\\/b><br>Expected Close Date:<b>08-10-2026 (mm-dd-yyyy)<\\/b><br>Type:<b><\\/b><br><br><br>Description :<br><br>Thank You<br>Admin<br><br>\"}'),
(5, '13x2531', 0, 'false', '{\"fromEmail\":\"hossein.fgh@gmail.com\",\"fromName\":\"\\u062d\\u0633\\u06cc\\u0646 \\u0641\\u063a\\u0627\\u0646 \\u067e\\u0648\\u0631\",\"replyTo\":\"hossein.fgh@gmail.com\",\"toEmail\":\"hossein.fgh@gmail.com\",\"ccEmail\":\"\",\"bccEmail\":\"\",\"subject\":\"Regarding Potential Assignment\",\"content\":\"An Potential has been assigned to you on Gouya<br>Details of Potential are :<br><br>Potential No:<b>POT1102<\\/b><br>Potential Name:<b>\\u0622\\u0632\\u0645\\u0648\\u0646 \\u0641\\u0631\\u0645 \\u0641\\u0631\\u0635\\u062a \\u06af\\u0648\\u06cc\\u0627 20260810072758-870<\\/b><br>Amount:<b>$2,500,000<\\/b><br>Expected Close Date:<b>08-24-2026 (mm-dd-yyyy)<\\/b><br>Type:<b><\\/b><br><br><br>Description :\\u0622\\u0632\\u0645\\u0648\\u0646 \\u0628\\u0627\\u0632\\u06af\\u0634\\u062a\\u200c\\u067e\\u0630\\u06cc\\u0631 \\u0641\\u0631\\u0645 \\u0641\\u0631\\u0635\\u062a \\u0648 \\u0633\\u0631\\u0648\\u0631 \\u06af\\u0648\\u06cc\\u0627<br><br>Thank You<br>Admin<br><br>\"}'),
(5, '13x2534', 0, 'false', '{\"fromEmail\":\"hossein.fgh@gmail.com\",\"fromName\":\"\\u062d\\u0633\\u06cc\\u0646 \\u0641\\u063a\\u0627\\u0646 \\u067e\\u0648\\u0631\",\"replyTo\":\"hossein.fgh@gmail.com\",\"toEmail\":\"hossein.fgh@gmail.com\",\"ccEmail\":\"\",\"bccEmail\":\"\",\"subject\":\"Regarding Potential Assignment\",\"content\":\"An Potential has been assigned to you on Gouya<br>Details of Potential are :<br><br>Potential No:<b>POT1103<\\/b><br>Potential Name:<b>Gouya Forecast Smoke 20260810074049-797<\\/b><br>Amount:<b>$7,654,321<\\/b><br>Expected Close Date:<b>08-10-2026 (mm-dd-yyyy)<\\/b><br>Type:<b><\\/b><br><br><br>Description :<br><br>Thank You<br>Admin<br><br>\"}'),
(5, '13x2535', 0, 'false', '{\"fromEmail\":\"hossein.fgh@gmail.com\",\"fromName\":\"\\u062d\\u0633\\u06cc\\u0646 \\u0641\\u063a\\u0627\\u0646 \\u067e\\u0648\\u0631\",\"replyTo\":\"hossein.fgh@gmail.com\",\"toEmail\":\"hossein.fgh@gmail.com\",\"ccEmail\":\"\",\"bccEmail\":\"\",\"subject\":\"Regarding Potential Assignment\",\"content\":\"An Potential has been assigned to you on Gouya<br>Details of Potential are :<br><br>Potential No:<b>POT1104<\\/b><br>Potential Name:<b>Gouya Forecast Smoke 20260810074113-128<\\/b><br>Amount:<b>$7,654,321<\\/b><br>Expected Close Date:<b>08-10-2026 (mm-dd-yyyy)<\\/b><br>Type:<b><\\/b><br><br><br>Description :<br><br>Thank You<br>Admin<br><br>\"}'),
(5, '13x2536', 0, 'false', '{\"fromEmail\":\"hossein.fgh@gmail.com\",\"fromName\":\"\\u062d\\u0633\\u06cc\\u0646 \\u0641\\u063a\\u0627\\u0646 \\u067e\\u0648\\u0631\",\"replyTo\":\"hossein.fgh@gmail.com\",\"toEmail\":\"hossein.fgh@gmail.com\",\"ccEmail\":\"\",\"bccEmail\":\"\",\"subject\":\"Regarding Potential Assignment\",\"content\":\"An Potential has been assigned to you on Gouya<br>Details of Potential are :<br><br>Potential No:<b>POT1105<\\/b><br>Potential Name:<b>Gouya Forecast Smoke 20260810074554-681<\\/b><br>Amount:<b>$7,654,321<\\/b><br>Expected Close Date:<b>08-10-2026 (mm-dd-yyyy)<\\/b><br>Type:<b><\\/b><br><br><br>Description :<br><br>Thank You<br>Admin<br><br>\"}');

-- --------------------------------------------------------

--
-- Table structure for table `com_vtiger_workflowtemplates`
--

CREATE TABLE `com_vtiger_workflowtemplates` (
  `template_id` int(11) NOT NULL,
  `module_name` varchar(100) DEFAULT NULL,
  `title` varchar(400) DEFAULT NULL,
  `template` text DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_general_ci;

-- --------------------------------------------------------

--
-- Table structure for table `com_vtiger_workflow_activatedonce`
--

CREATE TABLE `com_vtiger_workflow_activatedonce` (
  `workflow_id` int(11) NOT NULL,
  `entity_id` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_general_ci;

-- --------------------------------------------------------

--
-- Table structure for table `com_vtiger_workflow_tasktypes`
--

CREATE TABLE `com_vtiger_workflow_tasktypes` (
  `id` int(11) NOT NULL,
  `tasktypename` varchar(255) NOT NULL,
  `label` varchar(255) DEFAULT NULL,
  `classname` varchar(255) DEFAULT NULL,
  `classpath` varchar(255) DEFAULT NULL,
  `templatepath` varchar(255) DEFAULT NULL,
  `modules` varchar(500) DEFAULT NULL,
  `sourcemodule` varchar(255) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_general_ci;

--
-- Dumping data for table `com_vtiger_workflow_tasktypes`
--

INSERT IGNORE INTO `com_vtiger_workflow_tasktypes` (`id`, `tasktypename`, `label`, `classname`, `classpath`, `templatepath`, `modules`, `sourcemodule`) VALUES
(1, 'VTEmailTask', 'Send Mail', 'VTEmailTask', 'modules/com_vtiger_workflow/tasks/VTEmailTask.inc', 'modules/Settings/Workflows/Tasks/VTEmailTask.tpl', '{\"include\":[],\"exclude\":[]}', ''),
(2, 'VTEntityMethodTask', 'Invoke Custom Function', 'VTEntityMethodTask', 'modules/com_vtiger_workflow/tasks/VTEntityMethodTask.inc', 'modules/Settings/Workflows/Tasks/VTEntityMethodTask.tpl', '{\"include\":[],\"exclude\":[]}', ''),
(3, 'VTCreateTodoTask', 'Create Todo', 'VTCreateTodoTask', 'modules/com_vtiger_workflow/tasks/VTCreateTodoTask.inc', 'modules/Settings/Workflows/Tasks/VTCreateTodoTask.tpl', '{\"include\":[\"Leads\",\"Accounts\",\"Potentials\",\"Contacts\",\"HelpDesk\",\"Campaigns\",\"Quotes\",\"PurchaseOrder\",\"SalesOrder\",\"Invoice\",\"Project\"],\"exclude\":[\"Calendar\",\"FAQ\",\"Events\"]}', ''),
(4, 'VTCreateEventTask', 'Create Event', 'VTCreateEventTask', 'modules/com_vtiger_workflow/tasks/VTCreateEventTask.inc', 'modules/Settings/Workflows/Tasks/VTCreateEventTask.tpl', '{\"include\":[\"Leads\",\"Accounts\",\"Potentials\",\"Contacts\",\"HelpDesk\",\"Campaigns\",\"Project\"],\"exclude\":[\"Calendar\",\"FAQ\",\"Events\"]}', ''),
(5, 'VTUpdateFieldsTask', 'Update Fields', 'VTUpdateFieldsTask', 'modules/com_vtiger_workflow/tasks/VTUpdateFieldsTask.inc', 'modules/Settings/Workflows/Tasks/VTUpdateFieldsTask.tpl', '{\"include\":[],\"exclude\":[]}', ''),
(6, 'VTCreateEntityTask', 'Create Entity', 'VTCreateEntityTask', 'modules/com_vtiger_workflow/tasks/VTCreateEntityTask.inc', 'modules/Settings/Workflows/Tasks/VTCreateEntityTask.tpl', '{\"include\":[],\"exclude\":[]}', ''),
(7, 'VTSMSTask', 'SMS Task', 'VTSMSTask', 'modules/com_vtiger_workflow/tasks/VTSMSTask.inc', 'modules/Settings/Workflows/Tasks/VTSMSTask.tpl', '{\"include\":[],\"exclude\":[]}', 'SMSNotifier');

-- --------------------------------------------------------

--
-- Table structure for table `com_vtiger_workflow_tasktypes_seq`
--

CREATE TABLE `com_vtiger_workflow_tasktypes_seq` (
  `id` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

--
-- Dumping data for table `com_vtiger_workflow_tasktypes_seq`
--

INSERT IGNORE INTO `com_vtiger_workflow_tasktypes_seq` (`id`) VALUES
(7);

-- --------------------------------------------------------

--
-- Table structure for table `gooyaacc_cloud_files`
--

CREATE TABLE `gooyaacc_cloud_files` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `owner_id` int(10) UNSIGNED NOT NULL,
  `folder_id` bigint(20) UNSIGNED NOT NULL,
  `current_attachment_id` bigint(20) UNSIGNED NOT NULL COMMENT 'gooya_attachment_storage.attachment_id نسخه جاری',
  `orig_name` varchar(255) NOT NULL,
  `ext` varchar(16) NOT NULL DEFAULT '',
  `mime` varchar(150) NOT NULL DEFAULT 'application/octet-stream',
  `size_bytes` bigint(20) UNSIGNED NOT NULL DEFAULT 0,
  `sha256` char(64) NOT NULL DEFAULT '',
  `version_no` int(10) UNSIGNED NOT NULL DEFAULT 1,
  `description` varchar(500) DEFAULT NULL,
  `is_starred` tinyint(1) NOT NULL DEFAULT 0,
  `deleted` tinyint(1) NOT NULL DEFAULT 0,
  `deleted_at` datetime DEFAULT NULL,
  `purge_status` enum('none','pending','failed') NOT NULL DEFAULT 'none',
  `created_by` int(10) UNSIGNED NOT NULL DEFAULT 0,
  `created_at` datetime NOT NULL,
  `updated_at` datetime NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_persian_ci COMMENT='متادیتای منطقی فایل‌های GooyaCloud با ارجاع به سرور گویا';

--
-- Dumping data for table `gooyaacc_cloud_files`
--

INSERT IGNORE INTO `gooyaacc_cloud_files` (`id`, `owner_id`, `folder_id`, `current_attachment_id`, `orig_name`, `ext`, `mime`, `size_bytes`, `sha256`, `version_no`, `description`, `is_starred`, `deleted`, `deleted_at`, `purge_status`, `created_by`, `created_at`, `updated_at`) VALUES
(143, 1, 284, 2715, 'Book1 (2).pdf', 'pdf', 'application/pdf', 65836, 'bb24ac42acb3d2959b1e39d9a22a77c41d6ff0054e5c9997bd4952d751d505a2', 1, NULL, 1, 0, NULL, 'none', 1, '2026-08-17 10:36:23', '2026-08-17 10:36:31');

-- --------------------------------------------------------

--
-- Table structure for table `gooyaacc_cloud_folders`
--

CREATE TABLE `gooyaacc_cloud_folders` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `owner_id` int(10) UNSIGNED NOT NULL,
  `parent_id` bigint(20) UNSIGNED DEFAULT NULL,
  `name` varchar(255) NOT NULL,
  `is_root` tinyint(1) NOT NULL DEFAULT 0,
  `deleted` tinyint(1) NOT NULL DEFAULT 0,
  `deleted_at` datetime DEFAULT NULL,
  `created_by` int(10) UNSIGNED NOT NULL DEFAULT 0,
  `created_at` datetime NOT NULL,
  `updated_at` datetime NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_persian_ci COMMENT='درخت پوشه‌های فضای ابری گویا';

--
-- Dumping data for table `gooyaacc_cloud_folders`
--

INSERT IGNORE INTO `gooyaacc_cloud_folders` (`id`, `owner_id`, `parent_id`, `name`, `is_root`, `deleted`, `deleted_at`, `created_by`, `created_at`, `updated_at`) VALUES
(1, 1, NULL, 'فضای من', 1, 0, NULL, 1, '2026-08-09 14:00:09', '2026-08-09 14:00:09'),
(2, 2, NULL, 'فضای من', 1, 0, NULL, 2, '2026-08-09 14:00:09', '2026-08-09 14:00:09'),
(3, 3, NULL, 'فضای من', 1, 0, NULL, 3, '2026-08-09 14:00:09', '2026-08-09 14:00:09'),
(4, 4, NULL, 'فضای من', 1, 0, NULL, 4, '2026-08-09 14:00:09', '2026-08-09 14:00:09'),
(5, 5, NULL, 'فضای من', 1, 0, NULL, 5, '2026-08-09 14:00:09', '2026-08-09 14:00:09'),
(6, 6, NULL, 'فضای من', 1, 0, NULL, 6, '2026-08-09 14:00:09', '2026-08-09 14:00:09'),
(7, 7, NULL, 'فضای من', 1, 0, NULL, 7, '2026-08-09 14:00:09', '2026-08-09 14:00:09'),
(8, 8, NULL, 'فضای من', 1, 0, NULL, 8, '2026-08-09 14:00:09', '2026-08-09 14:00:09'),
(9, 9, NULL, 'فضای من', 1, 0, NULL, 9, '2026-08-09 14:00:09', '2026-08-09 14:00:09'),
(10, 10, NULL, 'فضای من', 1, 0, NULL, 10, '2026-08-09 14:00:09', '2026-08-09 14:00:09'),
(11, 11, NULL, 'فضای من', 1, 0, NULL, 11, '2026-08-09 14:00:09', '2026-08-09 14:00:09'),
(12, 12, NULL, 'فضای من', 1, 0, NULL, 12, '2026-08-09 14:00:09', '2026-08-09 14:00:09'),
(13, 13, NULL, 'فضای من', 1, 0, NULL, 13, '2026-08-09 14:00:09', '2026-08-09 14:00:09'),
(14, 14, NULL, 'فضای من', 1, 0, NULL, 14, '2026-08-09 14:00:09', '2026-08-09 14:00:09'),
(15, 15, NULL, 'فضای من', 1, 0, NULL, 15, '2026-08-09 14:00:09', '2026-08-09 14:00:09'),
(16, 16, NULL, 'فضای من', 1, 0, NULL, 16, '2026-08-09 14:00:09', '2026-08-09 14:00:09'),
(17, 17, NULL, 'فضای من', 1, 0, NULL, 17, '2026-08-09 14:00:09', '2026-08-09 14:00:09'),
(18, 18, NULL, 'فضای من', 1, 0, NULL, 18, '2026-08-09 14:00:09', '2026-08-09 14:00:09'),
(19, 19, NULL, 'فضای من', 1, 0, NULL, 19, '2026-08-09 14:00:09', '2026-08-09 14:00:09'),
(20, 20, NULL, 'فضای من', 1, 0, NULL, 20, '2026-08-09 14:00:09', '2026-08-09 14:00:09'),
(21, 21, NULL, 'فضای من', 1, 0, NULL, 21, '2026-08-09 14:00:09', '2026-08-09 14:00:09'),
(22, 22, NULL, 'فضای من', 1, 0, NULL, 22, '2026-08-09 14:00:09', '2026-08-09 14:00:09'),
(23, 23, NULL, 'فضای من', 1, 0, NULL, 23, '2026-08-09 14:00:09', '2026-08-09 14:00:09'),
(24, 24, NULL, 'فضای من', 1, 0, NULL, 24, '2026-08-09 14:00:09', '2026-08-09 14:00:09'),
(25, 25, NULL, 'فضای من', 1, 0, NULL, 25, '2026-08-09 14:00:09', '2026-08-09 14:00:09'),
(26, 26, NULL, 'فضای من', 1, 0, NULL, 26, '2026-08-09 14:00:09', '2026-08-09 14:00:09'),
(98, 1, 1, 'ذرذر', 0, 0, NULL, 1, '2026-08-10 05:43:00', '2026-08-10 05:43:00'),
(272, 1, 1, 'آرشیو چت‌های گویا', 0, 0, NULL, 1, '2026-08-11 07:59:23', '2026-08-11 07:59:23'),
(284, 1, 1, 'cvvcv', 0, 0, NULL, 1, '2026-08-17 10:34:55', '2026-08-17 10:34:55');

-- --------------------------------------------------------

--
-- Table structure for table `gooyaacc_cloud_log`
--

CREATE TABLE `gooyaacc_cloud_log` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `request_id` char(36) NOT NULL DEFAULT '',
  `user_id` int(10) UNSIGNED DEFAULT NULL,
  `action` varchar(40) NOT NULL,
  `item_type` enum('file','folder') DEFAULT NULL,
  `item_id` bigint(20) UNSIGNED DEFAULT NULL,
  `attachment_id` bigint(20) UNSIGNED DEFAULT NULL,
  `target_user_id` int(10) UNSIGNED DEFAULT NULL COMMENT 'مالک دارایی در اقدام بین‌کاربری/ادمین',
  `success` tinyint(1) NOT NULL DEFAULT 1,
  `error_code` varchar(80) NOT NULL DEFAULT '',
  `detail` text DEFAULT NULL,
  `ip` varchar(45) DEFAULT NULL,
  `ua` varchar(255) DEFAULT NULL,
  `created_at` datetime NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_persian_ci COMMENT='لاگ حسابرسی غیرقابل حذف از پنل GooyaCloud';

--
-- Dumping data for table `gooyaacc_cloud_log`
--

INSERT IGNORE INTO `gooyaacc_cloud_log` (`id`, `request_id`, `user_id`, `action`, `item_type`, `item_id`, `attachment_id`, `target_user_id`, `success`, `error_code`, `detail`, `ip`, `ua`, `created_at`) VALUES
(445, 'b0d2e973-fdb9-4f6f-bda1-ae6dbc537fd3', 1, 'module_enable', NULL, NULL, NULL, 1, 1, '', '{\"public_links\":1,\"versioning\":1}', '', '', '2026-08-09 16:50:47'),
(446, '08c9d7ef-f057-77fe-7ac7-60dd3fcb4f71', 1, 'module_enable', NULL, NULL, NULL, 1, 1, '', '{\"public_links\":1,\"versioning\":1}', '', '', '2026-08-09 16:52:03'),
(454, 'e42ddac1-4523-aa55-ee6d-ff96aace00f0', 1, 'cron_register', NULL, NULL, NULL, 1, 1, '', '{\"changed\":2,\"task_ids\":[9,10]}', '', 'GooyaCloud scheduler', '2026-08-09 17:10:24'),
(455, '7d5410a9-fd9d-9329-658f-d016f8fb6971', 1, 'cron_purge', NULL, NULL, NULL, 1, 1, '', '{\"folders\":0,\"files\":0,\"versions\":0,\"failed\":0,\"errors\":[]}', '', 'GooyaCloud scheduler', '2026-08-09 17:11:11'),
(456, 'fecb0d07-0e74-b451-793c-8fe06cd94e53', 1, 'cron_reconcile', NULL, NULL, NULL, 1, 1, '', '{\"checked\":26,\"changed\":0,\"log_count\":0}', '', 'GooyaCloud scheduler', '2026-08-09 17:11:20'),
(468, '3af46072-b50a-c9a4-fa6a-f5fcd35471a8', 1, 'folder_create', 'folder', 98, NULL, 1, 1, '', '{\"parent_id\":1}', '::1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/150.0.0.0 Safari/537.36', '2026-08-10 05:43:00'),
(625, '73e5126a-9251-e703-7ee4-2fd95a9e28e7', 1, 'quota_reconcile', NULL, NULL, NULL, 1, 1, '', '{\"old_used_bytes\":1270,\"new_used_bytes\":0}', '', '', '2026-08-10 06:40:20'),
(777, '1cba4f93-ef84-3653-e474-720fee32d5d4', 1, 'quota_reconcile', NULL, NULL, NULL, 1, 1, '', '{\"old_used_bytes\":127,\"new_used_bytes\":0}', '', '', '2026-08-10 06:47:02'),
(866, '28ea1a9a-f410-fa38-28af-988fb81b3fa9', 1, 'quota_reconcile', NULL, NULL, NULL, 1, 1, '', '{\"old_used_bytes\":127,\"new_used_bytes\":0}', '', '', '2026-08-10 06:48:16'),
(1089, '2d714e1c-b95f-d12c-4648-b9a6f91a9544', 1, 'folder_create', 'folder', 272, NULL, 1, 1, '', '{\"parent_id\":1}', '', '', '2026-08-11 07:59:23'),
(1090, '46d3ca6b-27c2-687a-ca97-bdb55f478ec5', 1, 'upload', 'file', 114, 2550, 1, 1, '', '{\"folder_id\":272,\"size\":4420}', '', '', '2026-08-11 07:59:24'),
(1091, 'a8e85356-b587-b2fb-8c9b-70a3ba71462a', 1, 'delete', 'file', 114, 2550, 1, 1, '', '{\"soft_delete\":true}', '', '', '2026-08-11 07:59:25'),
(1092, '6123ae77-e08e-bf32-3764-0a06aa7c6787', 1, 'purge', 'file', 114, NULL, 1, 1, '', '{\"bytes\":4420,\"attachments\":1}', '', '', '2026-08-11 07:59:25'),
(1093, 'f0dee22b-d0d7-1b60-bd6f-6e437f7db77c', 1, 'upload', 'file', 115, 2560, 1, 1, '', '{\"folder_id\":272,\"size\":4420}', '', '', '2026-08-11 08:26:42'),
(1094, '0112a28a-9a3a-e8f8-f9d7-c10da7419abd', 1, 'upload', 'file', 116, 2561, 1, 1, '', '{\"folder_id\":272,\"size\":4420}', '', '', '2026-08-11 08:26:43'),
(1095, 'a8f279dd-4331-4250-9f0c-b1b132fa9751', 1, 'delete', 'file', 116, 2561, 1, 1, '', '{\"soft_delete\":true}', '', '', '2026-08-11 08:26:43'),
(1096, '769fa00e-c4bf-8c33-8d74-06f1ad637002', 1, 'purge', 'file', 116, NULL, 1, 1, '', '{\"bytes\":4420,\"attachments\":1}', '', '', '2026-08-11 08:26:43'),
(1097, '0e62ddc5-39c7-5c37-5200-4e769d297d5c', 1, 'delete', 'file', 115, 2560, 1, 1, '', '{\"soft_delete\":true}', '', '', '2026-08-11 08:26:44'),
(1098, 'd5eeb1e6-6260-6e80-0703-e13a83740bae', 1, 'purge', 'file', 115, NULL, 1, 1, '', '{\"bytes\":4420,\"attachments\":1}', '', '', '2026-08-11 08:26:44'),
(1099, 'b1750203-30fe-423c-e20c-ad7c38b10f8e', 1, 'upload', 'file', 117, 2566, 1, 1, '', '{\"folder_id\":272,\"size\":4420}', '', '', '2026-08-11 08:27:07'),
(1100, '06867deb-d8d8-10c0-8103-8d8c4bb3a949', 1, 'upload', 'file', 118, 2567, 1, 1, '', '{\"folder_id\":272,\"size\":4423}', '', '', '2026-08-11 08:27:09'),
(1101, '0ae5bd91-b3f9-180f-52f2-f76f8107e400', 1, 'delete', 'file', 118, 2567, 1, 1, '', '{\"soft_delete\":true}', '', '', '2026-08-11 08:27:09'),
(1102, 'c10dd40b-19b7-ff02-ce18-38a537e9e342', 1, 'purge', 'file', 118, NULL, 1, 1, '', '{\"bytes\":4423,\"attachments\":1}', '', '', '2026-08-11 08:27:09'),
(1103, 'ce6d2f2e-35b1-a3ba-f7aa-83641353747f', 1, 'delete', 'file', 117, 2566, 1, 1, '', '{\"soft_delete\":true}', '', '', '2026-08-11 08:27:09'),
(1104, '6fad994d-65ae-9eea-837c-8bf8424af727', 1, 'purge', 'file', 117, NULL, 1, 1, '', '{\"bytes\":4420,\"attachments\":1}', '', '', '2026-08-11 08:27:09'),
(1105, 'a80b1f69-6381-feaf-1ba1-76bb66aa30ff', 1, 'folder_create', 'folder', 273, NULL, 1, 1, '', '{\"parent_id\":1}', '', '', '2026-08-12 09:54:35'),
(1106, '0365e26f-c053-03ec-027b-4d8e6ba5f91a', 1, 'upload', 'file', 119, 2581, 1, 1, '', '{\"folder_id\":273,\"size\":1443}', '', '', '2026-08-12 09:54:37'),
(1107, 'd0b8c239-11c8-00cc-fe3b-d9572efd49cd', 1, 'delete', 'file', 119, 2581, 1, 1, '', '{\"soft_delete\":true}', '', '', '2026-08-12 09:54:38'),
(1108, '91104e1a-e00d-ff0c-07f1-d7a880e496ee', 1, 'purge', 'file', 119, NULL, 1, 1, '', '{\"bytes\":1443,\"attachments\":1}', '', '', '2026-08-12 09:54:39'),
(1109, 'e07dce72-f465-b3a3-6ee6-56876740a610', 1, 'delete', 'folder', 273, NULL, 1, 1, '', '{\"soft_delete\":true}', '', '', '2026-08-12 09:54:39'),
(1110, '76c294a9-f6ad-4929-c44b-0ec54db8b1d2', 1, 'purge', 'folder', 273, NULL, 1, 1, '', '{\"files\":0,\"folders\":1}', '', '', '2026-08-12 09:54:39'),
(1111, '71312114-680e-cc86-7877-f7b61b355da2', 1, 'folder_create', 'folder', 274, NULL, 1, 1, '', '{\"parent_id\":1}', '', '', '2026-08-12 10:27:14'),
(1112, '72c50575-249c-e88e-d8cc-327504bc0556', 1, 'upload', 'file', 120, 2588, 1, 1, '', '{\"folder_id\":274,\"size\":1414}', '', '', '2026-08-12 10:27:15'),
(1113, 'd44b68eb-b010-b2b8-2e22-5f6207ceb748', 1, 'upload', 'file', 121, 2589, 1, 1, '', '{\"folder_id\":274,\"size\":1414}', '', '', '2026-08-12 10:27:18'),
(1114, '103f45ab-167d-e745-baa0-dbc9b8a697f7', 1, 'delete', 'file', 121, 2589, 1, 1, '', '{\"soft_delete\":true}', '', '', '2026-08-12 10:27:21'),
(1115, '2718d192-2a36-802b-1aef-f1a9c54102b5', 1, 'purge', 'file', 121, NULL, 1, 1, '', '{\"bytes\":1414,\"attachments\":1}', '', '', '2026-08-12 10:27:21'),
(1116, '20199df9-1e80-51ad-f2b2-21c1cfd33b6d', 1, 'delete', 'file', 120, 2588, 1, 1, '', '{\"soft_delete\":true}', '', '', '2026-08-12 10:27:21'),
(1117, '3b887dce-edba-31f5-faa8-a5116d370ea0', 1, 'purge', 'file', 120, NULL, 1, 1, '', '{\"bytes\":1414,\"attachments\":1}', '', '', '2026-08-12 10:27:21'),
(1118, 'e17e3351-05a9-747a-cf81-09774eedf022', 1, 'delete', 'folder', 274, NULL, 1, 1, '', '{\"soft_delete\":true}', '', '', '2026-08-12 10:27:22'),
(1119, 'dd768b7f-4ebf-8c0f-0181-f660ca8a6f30', 1, 'purge', 'folder', 274, NULL, 1, 1, '', '{\"files\":0,\"folders\":1}', '', '', '2026-08-12 10:27:22'),
(1120, 'b5c6f2e0-f02e-c5f2-38fd-78b3923e7aa8', 1, 'folder_create', 'folder', 275, NULL, 1, 1, '', '{\"parent_id\":1}', '', '', '2026-08-12 10:28:09'),
(1121, '18e3785d-1e1b-0323-486a-8feed4acd4a8', 1, 'upload', 'file', 122, 2592, 1, 1, '', '{\"folder_id\":275,\"size\":1414}', '', '', '2026-08-12 10:28:10'),
(1122, '86ba27d6-ff1e-8b46-3899-3637b3ab5d96', 1, 'upload', 'file', 123, 2593, 1, 1, '', '{\"folder_id\":275,\"size\":1414}', '', '', '2026-08-12 10:28:13'),
(1123, '652e8fd3-a175-1419-f14a-7f5d9412f13a', 1, 'delete', 'file', 123, 2593, 1, 1, '', '{\"soft_delete\":true}', '', '', '2026-08-12 10:28:15'),
(1124, '1990d78e-7930-17c1-e38c-59bab06289ad', 1, 'purge', 'file', 123, NULL, 1, 1, '', '{\"bytes\":1414,\"attachments\":1}', '', '', '2026-08-12 10:28:15'),
(1125, '8c1fe939-4b4b-18eb-e1d2-2b1b32c2b384', 1, 'delete', 'file', 122, 2592, 1, 1, '', '{\"soft_delete\":true}', '', '', '2026-08-12 10:28:15'),
(1126, 'a3e6ae95-e6ae-a5ff-d566-f44528865b86', 1, 'purge', 'file', 122, NULL, 1, 1, '', '{\"bytes\":1414,\"attachments\":1}', '', '', '2026-08-12 10:28:16'),
(1127, 'cfc71e96-bf4e-eecb-564e-25a59a2fc5ef', 1, 'delete', 'folder', 275, NULL, 1, 1, '', '{\"soft_delete\":true}', '', '', '2026-08-12 10:28:16'),
(1128, '57805f0b-6457-b596-d857-2ce4bac4f084', 1, 'purge', 'folder', 275, NULL, 1, 1, '', '{\"files\":0,\"folders\":1}', '', '', '2026-08-12 10:28:16'),
(1129, '11b41e49-83aa-d1ff-c0e9-2e50e633680d', 1, 'folder_create', 'folder', 276, NULL, 1, 1, '', '{\"parent_id\":1}', '', '', '2026-08-13 09:11:28'),
(1130, 'c545e5a1-8190-c22f-5f83-e62e1b73abfc', 1, 'upload', 'file', 124, 2623, 1, 1, '', '{\"folder_id\":276,\"size\":1444}', '', '', '2026-08-13 09:11:28'),
(1131, '99a4c04a-dd9d-44c8-e8e1-d67178f12116', 1, 'delete', 'file', 124, 2623, 1, 1, '', '{\"soft_delete\":true}', '', '', '2026-08-13 09:11:29'),
(1132, '29ac3740-a270-687e-4539-1b94b4cb614f', 1, 'purge', 'file', 124, NULL, 1, 1, '', '{\"bytes\":1444,\"attachments\":1}', '', '', '2026-08-13 09:11:29'),
(1133, '0ac4e396-a92c-c682-37da-adc8ccd26d18', 1, 'delete', 'folder', 276, NULL, 1, 1, '', '{\"soft_delete\":true}', '', '', '2026-08-13 09:11:29'),
(1134, '032b289e-9872-b8a2-30ef-8812f34a3505', 1, 'purge', 'folder', 276, NULL, 1, 1, '', '{\"files\":0,\"folders\":1}', '', '', '2026-08-13 09:11:29'),
(1135, 'ffee4e07-f705-f1f8-aa22-ebe3758a970f', 1, 'folder_create', 'folder', 277, NULL, 1, 1, '', '{\"parent_id\":1}', '', '', '2026-08-13 09:11:34'),
(1136, '46d9bcbf-b014-ff35-82ae-6bc106d59ee7', 1, 'upload', 'file', 125, 2626, 1, 1, '', '{\"folder_id\":277,\"size\":1415}', '', '', '2026-08-13 09:11:34'),
(1137, '0bd2dfa9-a9f2-f40b-c13f-a37d5987832d', 1, 'upload', 'file', 126, 2627, 1, 1, '', '{\"folder_id\":277,\"size\":1416}', '', '', '2026-08-13 09:11:35'),
(1138, '1d10598a-6b10-acb3-4921-f99bf5b6cca8', 1, 'delete', 'file', 126, 2627, 1, 1, '', '{\"soft_delete\":true}', '', '', '2026-08-13 09:11:37'),
(1139, 'e6e33f67-acd9-218b-a2e5-55b39a3bdf38', 1, 'purge', 'file', 126, NULL, 1, 1, '', '{\"bytes\":1416,\"attachments\":1}', '', '', '2026-08-13 09:11:37'),
(1140, '3a54a398-770a-7e14-fd67-bb6c5c629efe', 1, 'delete', 'file', 125, 2626, 1, 1, '', '{\"soft_delete\":true}', '', '', '2026-08-13 09:11:37'),
(1141, '47e1aa3d-1214-8760-b7c2-a98d646e2658', 1, 'purge', 'file', 125, NULL, 1, 1, '', '{\"bytes\":1415,\"attachments\":1}', '', '', '2026-08-13 09:11:37'),
(1142, '23117ecd-9b7b-1b01-0bce-ae1e6183f3ce', 1, 'delete', 'folder', 277, NULL, 1, 1, '', '{\"soft_delete\":true}', '', '', '2026-08-13 09:11:37'),
(1143, '58e216f8-5bba-5137-85cf-e6c803e40263', 1, 'purge', 'folder', 277, NULL, 1, 1, '', '{\"files\":0,\"folders\":1}', '', '', '2026-08-13 09:11:37'),
(1144, 'f89ed463-6286-0f23-e1ea-b5243d661341', 1, 'folder_create', 'folder', 278, NULL, 1, 1, '', '{\"parent_id\":1}', '', '', '2026-08-13 09:39:57'),
(1145, 'a432cefb-e7bd-e34a-bc7f-1e64fd373b5c', 1, 'upload', 'file', 127, 2636, 1, 1, '', '{\"folder_id\":278,\"size\":1416}', '', '', '2026-08-13 09:39:57'),
(1146, '2ed6ab0d-6ef8-386b-f380-159c55e10704', 1, 'upload', 'file', 128, 2637, 1, 1, '', '{\"folder_id\":278,\"size\":1416}', '', '', '2026-08-13 09:39:59'),
(1147, '1f27da34-8ac2-62da-ad3f-2fb4cbe0b001', 1, 'delete', 'file', 128, 2637, 1, 1, '', '{\"soft_delete\":true}', '', '', '2026-08-13 09:40:00'),
(1148, '8f1dda9b-0248-b060-1ef2-3237211da89a', 1, 'purge', 'file', 128, NULL, 1, 1, '', '{\"bytes\":1416,\"attachments\":1}', '', '', '2026-08-13 09:40:00'),
(1149, '60bf0da5-9af5-f05c-c8ae-1ec49e66c4a0', 1, 'delete', 'file', 127, 2636, 1, 1, '', '{\"soft_delete\":true}', '', '', '2026-08-13 09:40:00'),
(1150, '183eec19-1bcb-f654-f41d-f90c37d4c176', 1, 'purge', 'file', 127, NULL, 1, 1, '', '{\"bytes\":1416,\"attachments\":1}', '', '', '2026-08-13 09:40:00'),
(1151, '221c6192-1f72-49c6-aaa5-2fbe8567e663', 1, 'delete', 'folder', 278, NULL, 1, 1, '', '{\"soft_delete\":true}', '', '', '2026-08-13 09:40:00'),
(1152, '2c5b6bcd-db9b-800f-a5be-bffd89636734', 1, 'purge', 'folder', 278, NULL, 1, 1, '', '{\"files\":0,\"folders\":1}', '', '', '2026-08-13 09:40:00'),
(1153, '17b8a054-08c6-5cca-6a53-f9a6eea62d54', 1, 'folder_create', 'folder', 279, NULL, 1, 1, '', '{\"parent_id\":1}', '', '', '2026-08-13 09:41:12'),
(1154, '7cae57d1-8619-ab12-4beb-2185230d09b9', 1, 'upload', 'file', 129, 2642, 1, 1, '', '{\"folder_id\":279,\"size\":1416}', '', '', '2026-08-13 09:41:12'),
(1155, 'ee09f77f-4825-6251-cd54-39da45289858', 1, 'upload', 'file', 130, 2643, 1, 1, '', '{\"folder_id\":279,\"size\":1416}', '', '', '2026-08-13 09:41:14'),
(1156, '90e14280-52f4-ae82-0e57-23f38d02fb23', 1, 'upload', 'file', 131, 2644, 1, 1, '', '{\"folder_id\":279,\"size\":1416}', '', '', '2026-08-13 09:41:15'),
(1157, '1648aa1c-be40-13db-81a3-fcb8013fa73b', 1, 'upload', 'file', 132, 2645, 1, 1, '', '{\"folder_id\":279,\"size\":1416}', '', '', '2026-08-13 09:41:16'),
(1158, '9aa1c315-b72d-20d8-e336-1674e03785e4', 1, 'delete', 'file', 132, 2645, 1, 1, '', '{\"soft_delete\":true}', '', '', '2026-08-13 09:41:17'),
(1159, '022dc803-fd09-fa12-73de-079e252b15d8', 1, 'purge', 'file', 132, NULL, 1, 1, '', '{\"bytes\":1416,\"attachments\":1}', '', '', '2026-08-13 09:41:17'),
(1160, 'aac58294-f308-f8d5-1d37-5efc0c9c2b26', 1, 'delete', 'file', 131, 2644, 1, 1, '', '{\"soft_delete\":true}', '', '', '2026-08-13 09:41:17'),
(1161, '98926fb7-f163-6a06-f4d4-ade50d625175', 1, 'purge', 'file', 131, NULL, 1, 1, '', '{\"bytes\":1416,\"attachments\":1}', '', '', '2026-08-13 09:41:17'),
(1162, 'ac85c6a9-dbea-f910-76d9-01d76037a0a8', 1, 'delete', 'file', 130, 2643, 1, 1, '', '{\"soft_delete\":true}', '', '', '2026-08-13 09:41:18'),
(1163, 'dd370f91-adf1-28c2-8fda-93bfb51c5791', 1, 'purge', 'file', 130, NULL, 1, 1, '', '{\"bytes\":1416,\"attachments\":1}', '', '', '2026-08-13 09:41:18'),
(1164, '9a61773a-4211-be4e-ed91-4d49b8064d38', 1, 'delete', 'file', 129, 2642, 1, 1, '', '{\"soft_delete\":true}', '', '', '2026-08-13 09:41:18'),
(1165, '88147263-7d51-714e-8228-eb96aa52b7e3', 1, 'purge', 'file', 129, NULL, 1, 1, '', '{\"bytes\":1416,\"attachments\":1}', '', '', '2026-08-13 09:41:18'),
(1166, '2d4a492b-c098-24ce-fcbc-4339f6791d4f', 1, 'delete', 'folder', 279, NULL, 1, 1, '', '{\"soft_delete\":true}', '', '', '2026-08-13 09:41:18'),
(1167, '171c279b-b819-24fe-8aa9-358375c04070', 1, 'purge', 'folder', 279, NULL, 1, 1, '', '{\"files\":0,\"folders\":1}', '', '', '2026-08-13 09:41:18'),
(1168, '455942f0-cf30-0ed4-14d8-dcd684ae3bec', 1, 'folder_create', 'folder', 280, NULL, 1, 1, '', '{\"parent_id\":1}', '', '', '2026-08-13 09:55:03'),
(1169, 'e625cdc3-1673-7aa9-be2e-2a2bf4633409', 1, 'upload', 'file', 133, 2659, 1, 1, '', '{\"folder_id\":280,\"size\":1445}', '', '', '2026-08-13 09:55:03'),
(1170, '5e5b0da1-5a2e-921e-757f-c02d574f2e18', 1, 'delete', 'file', 133, 2659, 1, 1, '', '{\"soft_delete\":true}', '', '', '2026-08-13 09:55:04'),
(1171, '7e0ab1e4-d329-4a70-88d9-a84a81597dd8', 1, 'purge', 'file', 133, NULL, 1, 1, '', '{\"bytes\":1445,\"attachments\":1}', '', '', '2026-08-13 09:55:04'),
(1172, 'cfc90f57-c2dc-787c-955f-655ce6668d80', 1, 'delete', 'folder', 280, NULL, 1, 1, '', '{\"soft_delete\":true}', '', '', '2026-08-13 09:55:04'),
(1173, 'f1fae54a-d622-65ca-e60d-15a22d7b3256', 1, 'purge', 'folder', 280, NULL, 1, 1, '', '{\"files\":0,\"folders\":1}', '', '', '2026-08-13 09:55:04'),
(1174, 'bf7a59f3-6295-3816-60c7-c31193ebfd70', 1, 'folder_create', 'folder', 281, NULL, 1, 1, '', '{\"parent_id\":1}', '', '', '2026-08-13 09:55:09'),
(1175, 'd3cb042a-cdc0-b536-2515-401a0af517fa', 1, 'upload', 'file', 134, 2664, 1, 1, '', '{\"folder_id\":281,\"size\":1416}', '', '', '2026-08-13 09:55:09'),
(1176, '707138c5-acc1-8c04-269f-6d22d78eca93', 1, 'upload', 'file', 135, 2665, 1, 1, '', '{\"folder_id\":281,\"size\":1416}', '', '', '2026-08-13 09:55:11'),
(1177, 'fa28a272-82bd-c6c0-1b72-0ae753a0c123', 1, 'upload', 'file', 136, 2666, 1, 1, '', '{\"folder_id\":281,\"size\":1416}', '', '', '2026-08-13 09:55:12'),
(1178, '5fa4669d-83df-1b45-114b-9ae30da3d9e0', 1, 'upload', 'file', 137, 2667, 1, 1, '', '{\"folder_id\":281,\"size\":1416}', '', '', '2026-08-13 09:55:13'),
(1179, '6e0d5fe8-8a32-64f1-ecbe-34dc47d60fbf', 1, 'delete', 'file', 137, 2667, 1, 1, '', '{\"soft_delete\":true}', '', '', '2026-08-13 09:55:14'),
(1180, '865f91c4-f633-b757-6f22-0f036baf9885', 1, 'purge', 'file', 137, NULL, 1, 1, '', '{\"bytes\":1416,\"attachments\":1}', '', '', '2026-08-13 09:55:14'),
(1181, '5a2ca35f-d9cd-2427-d8b4-2a5199f71d63', 1, 'delete', 'file', 136, 2666, 1, 1, '', '{\"soft_delete\":true}', '', '', '2026-08-13 09:55:14'),
(1182, 'ea901b8e-0ddd-1732-c4c4-3f024cf51636', 1, 'purge', 'file', 136, NULL, 1, 1, '', '{\"bytes\":1416,\"attachments\":1}', '', '', '2026-08-13 09:55:14'),
(1183, '76109cc4-5031-f494-20b4-5c9051c50f65', 1, 'delete', 'file', 135, 2665, 1, 1, '', '{\"soft_delete\":true}', '', '', '2026-08-13 09:55:14'),
(1184, '9c8ebee5-f9d8-0726-5d4b-9c4d4c5412f4', 1, 'purge', 'file', 135, NULL, 1, 1, '', '{\"bytes\":1416,\"attachments\":1}', '', '', '2026-08-13 09:55:14'),
(1185, '84f1923b-c193-ac56-7842-cdbefe9ee40b', 1, 'delete', 'file', 134, 2664, 1, 1, '', '{\"soft_delete\":true}', '', '', '2026-08-13 09:55:14'),
(1186, 'aadd9138-c74f-75ee-92f1-16bf5dd83a08', 1, 'purge', 'file', 134, NULL, 1, 1, '', '{\"bytes\":1416,\"attachments\":1}', '', '', '2026-08-13 09:55:14'),
(1187, 'da4806c2-9dcb-44e6-4a73-729f9c43d517', 1, 'delete', 'folder', 281, NULL, 1, 1, '', '{\"soft_delete\":true}', '', '', '2026-08-13 09:55:15'),
(1188, 'ad299e1b-de4d-e791-1c42-b2d0e90eac10', 1, 'purge', 'folder', 281, NULL, 1, 1, '', '{\"files\":0,\"folders\":1}', '', '', '2026-08-13 09:55:15'),
(1189, '1aa39cc6-1dfd-f98b-68ce-82b0e2dcae8d', 1, 'folder_create', 'folder', 282, NULL, 1, 1, '', '{\"parent_id\":1}', '', '', '2026-08-15 07:10:04'),
(1190, '83cbd6ec-7beb-a8e9-0702-af79877c8304', 1, 'upload', 'file', 138, 2689, 1, 1, '', '{\"folder_id\":282,\"size\":1446}', '', '', '2026-08-15 07:10:04'),
(1191, '21671aea-9352-2f73-cdcf-4c21d6bce550', 1, 'delete', 'file', 138, 2689, 1, 1, '', '{\"soft_delete\":true}', '', '', '2026-08-15 07:10:05'),
(1192, '698d9139-51a5-61dc-e810-9405842a8784', 1, 'purge', 'file', 138, NULL, 1, 1, '', '{\"bytes\":1446,\"attachments\":1}', '', '', '2026-08-15 07:10:05'),
(1193, 'f8735800-edcf-2c31-e693-f3ea9a7953fb', 1, 'delete', 'folder', 282, NULL, 1, 1, '', '{\"soft_delete\":true}', '', '', '2026-08-15 07:10:05'),
(1194, '62024bfa-927b-0732-0e99-2f652a84d48c', 1, 'purge', 'folder', 282, NULL, 1, 1, '', '{\"files\":0,\"folders\":1}', '', '', '2026-08-15 07:10:05'),
(1195, '506af3ad-03d2-ce35-0972-64e11b73d2ea', 1, 'folder_create', 'folder', 283, NULL, 1, 1, '', '{\"parent_id\":1}', '', '', '2026-08-15 07:10:10'),
(1196, 'e0c1fdc1-eb40-2f45-0505-2c09a1acad54', 1, 'upload', 'file', 139, 2694, 1, 1, '', '{\"folder_id\":283,\"size\":1417}', '', '', '2026-08-15 07:10:10'),
(1197, '97cbc638-1cfe-beba-7cd4-c727bb1f9d42', 1, 'upload', 'file', 140, 2695, 1, 1, '', '{\"folder_id\":283,\"size\":1417}', '', '', '2026-08-15 07:10:12'),
(1198, '4e3c3eaf-71e5-fcef-9eec-b4dbd3ea1445', 1, 'upload', 'file', 141, 2696, 1, 1, '', '{\"folder_id\":283,\"size\":1417}', '', '', '2026-08-15 07:10:13'),
(1199, 'ea94b8b7-2de6-3160-8826-e445cceef317', 1, 'upload', 'file', 142, 2697, 1, 1, '', '{\"folder_id\":283,\"size\":1419}', '', '', '2026-08-15 07:10:14'),
(1200, '2fb1b376-febc-5fc2-5050-ba3d08bfe96c', 1, 'delete', 'file', 142, 2697, 1, 1, '', '{\"soft_delete\":true}', '', '', '2026-08-15 07:10:15'),
(1201, 'b2d928ea-382a-7701-f9d0-ae4fffb878fa', 1, 'purge', 'file', 142, NULL, 1, 1, '', '{\"bytes\":1419,\"attachments\":1}', '', '', '2026-08-15 07:10:15'),
(1202, '4f28b166-130d-4aca-8eab-7b4c6dd61cbd', 1, 'delete', 'file', 141, 2696, 1, 1, '', '{\"soft_delete\":true}', '', '', '2026-08-15 07:10:15'),
(1203, 'f4263432-d9c9-2968-6507-e40627068bab', 1, 'purge', 'file', 141, NULL, 1, 1, '', '{\"bytes\":1417,\"attachments\":1}', '', '', '2026-08-15 07:10:15'),
(1204, '6eb3b61e-e974-9b00-f712-7725759ce2e7', 1, 'delete', 'file', 140, 2695, 1, 1, '', '{\"soft_delete\":true}', '', '', '2026-08-15 07:10:16'),
(1205, '7e4b69ff-1bf0-5520-2f8d-15d1dd9191ef', 1, 'purge', 'file', 140, NULL, 1, 1, '', '{\"bytes\":1417,\"attachments\":1}', '', '', '2026-08-15 07:10:16'),
(1206, '9fbb9122-cbde-0e3a-ba1a-5a492e1e38c9', 1, 'delete', 'file', 139, 2694, 1, 1, '', '{\"soft_delete\":true}', '', '', '2026-08-15 07:10:16'),
(1207, '3ce6cb05-9418-3e71-4019-b48699f640d9', 1, 'purge', 'file', 139, NULL, 1, 1, '', '{\"bytes\":1417,\"attachments\":1}', '', '', '2026-08-15 07:10:16'),
(1208, '44ed8caf-970f-389f-f2e7-d666909d3d65', 1, 'delete', 'folder', 283, NULL, 1, 1, '', '{\"soft_delete\":true}', '', '', '2026-08-15 07:10:16'),
(1209, '1dff8962-1c0a-5eae-1358-401f253be38f', 1, 'purge', 'folder', 283, NULL, 1, 1, '', '{\"files\":0,\"folders\":1}', '', '', '2026-08-15 07:10:16'),
(1210, '1139aded-8c00-6d01-28a0-2d28c3d18d88', 1, 'folder_create', 'folder', 284, NULL, 1, 1, '', '{\"parent_id\":1}', '::1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/151.0.0.0 Safari/537.36', '2026-08-17 10:34:55'),
(1211, 'de6f7c9b-468a-522d-2ce9-d0e8e3096257', 1, 'upload', 'file', 143, 2715, 1, 1, '', '{\"folder_id\":284,\"size\":65836}', '::1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/151.0.0.0 Safari/537.36', '2026-08-17 10:36:23'),
(1212, '2056ea99-7e3d-f17f-91f6-b28369f48120', 1, 'star_toggle', 'file', 143, 2715, 1, 1, '', '{\"is_starred\":1}', '::1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/151.0.0.0 Safari/537.36', '2026-08-17 10:36:31');

-- --------------------------------------------------------

--
-- Table structure for table `gooyaacc_cloud_quota`
--

CREATE TABLE `gooyaacc_cloud_quota` (
  `user_id` int(10) UNSIGNED NOT NULL,
  `quota_bytes` bigint(20) UNSIGNED NOT NULL DEFAULT 2147483648,
  `used_bytes` bigint(20) UNSIGNED NOT NULL DEFAULT 0,
  `reserved_bytes` bigint(20) UNSIGNED NOT NULL DEFAULT 0,
  `updated_at` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_persian_ci COMMENT='سهمیه، مصرف قطعی و رزرو آپلود فضای ابری گویا';

--
-- Dumping data for table `gooyaacc_cloud_quota`
--

INSERT IGNORE INTO `gooyaacc_cloud_quota` (`user_id`, `quota_bytes`, `used_bytes`, `reserved_bytes`, `updated_at`) VALUES
(1, 2147483648, 65836, 0, '2026-08-17 10:36:23'),
(2, 2147483648, 0, 0, '2026-08-10 06:59:31'),
(3, 2147483648, 0, 0, '2026-08-09 14:00:09'),
(4, 2147483648, 0, 0, '2026-08-09 14:00:09'),
(5, 2147483648, 0, 0, '2026-08-09 14:00:09'),
(6, 2147483648, 0, 0, '2026-08-09 14:00:09'),
(7, 2147483648, 0, 0, '2026-08-09 14:00:09'),
(8, 2147483648, 0, 0, '2026-08-09 14:00:09'),
(9, 2147483648, 0, 0, '2026-08-09 14:00:09'),
(10, 2147483648, 0, 0, '2026-08-09 14:00:09'),
(11, 2147483648, 0, 0, '2026-08-09 14:00:09'),
(12, 2147483648, 0, 0, '2026-08-09 14:00:09'),
(13, 2147483648, 0, 0, '2026-08-09 14:00:09'),
(14, 2147483648, 0, 0, '2026-08-09 14:00:09'),
(15, 2147483648, 0, 0, '2026-08-09 14:00:09'),
(16, 2147483648, 0, 0, '2026-08-09 14:00:09'),
(17, 2147483648, 0, 0, '2026-08-09 14:00:09'),
(18, 2147483648, 0, 0, '2026-08-09 14:00:09'),
(19, 2147483648, 0, 0, '2026-08-09 14:00:09'),
(20, 2147483648, 0, 0, '2026-08-09 14:00:09'),
(21, 2147483648, 0, 0, '2026-08-09 14:00:09'),
(22, 2147483648, 0, 0, '2026-08-09 14:00:09'),
(23, 2147483648, 0, 0, '2026-08-09 14:00:09'),
(24, 2147483648, 0, 0, '2026-08-09 14:00:09'),
(25, 2147483648, 0, 0, '2026-08-09 14:00:09'),
(26, 2147483648, 0, 0, '2026-08-09 14:00:09');

-- --------------------------------------------------------

--
-- Table structure for table `gooyaacc_cloud_settings`
--

CREATE TABLE `gooyaacc_cloud_settings` (
  `skey` varchar(64) NOT NULL,
  `svalue` text DEFAULT NULL,
  `updated_by` int(10) UNSIGNED NOT NULL DEFAULT 0,
  `updated_at` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_persian_ci COMMENT='سیاست‌های فضای ابری گویا؛ بدون تنظیم اتصال ذخیره‌سازی';

--
-- Dumping data for table `gooyaacc_cloud_settings`
--

INSERT IGNORE INTO `gooyaacc_cloud_settings` (`skey`, `svalue`, `updated_by`, `updated_at`) VALUES
('allowed_ext', 'doc,docx,odt,xls,xlsx,csv,ods,ppt,pptx,odp,pdf,jpg,jpeg,png,gif,webp,zip,rar,7z', 0, '2026-08-09 14:02:40'),
('blocked_ext', 'mp4,mkv,avi,mov,wmv,flv,webm,mpg,mpeg,m4v,3gp,mp3,wav,aac,ogg,flac,m4a,wma,opus,amr', 0, '2026-08-09 14:02:40'),
('default_quota', '2147483648', 1, '2026-08-10 06:59:34'),
('enable_preview', '1', 0, '2026-08-09 14:02:40'),
('enable_public_links', '1', 1, '2026-08-10 06:59:34'),
('enable_versioning', '1', 1, '2026-08-10 06:59:34'),
('max_file_size', '20971520', 1, '2026-08-10 06:59:34'),
('max_versions_per_file', '5', 1, '2026-08-10 06:59:34'),
('module_enabled', '1', 1, '2026-08-10 06:59:38'),
('notify_on_share', '1', 0, '2026-08-09 14:02:40'),
('ops_purge_error', '', 1, '2026-08-09 17:11:11'),
('ops_purge_finished_at', '2026-08-09 17:11:11', 1, '2026-08-09 17:11:11'),
('ops_purge_started_at', '2026-08-09 17:11:11', 1, '2026-08-09 17:11:11'),
('ops_purge_status', 'success', 1, '2026-08-09 17:11:11'),
('ops_purge_summary', '{&amp;amp;amp;amp;amp;amp;amp;quot;folders&amp;amp;amp;amp;amp;amp;amp;quot;:0,&amp;amp;amp;amp;amp;amp;amp;quot;files&amp;amp;amp;amp;amp;amp;amp;quot;:0,&amp;amp;amp;amp;amp;amp;amp;quot;versions&amp;amp;amp;amp;amp;amp;amp;quot;:0,&amp;amp;amp;amp;amp;amp;amp;quot;failed&amp;amp;amp;amp;amp;amp;amp;quot;:0,&amp;amp;amp;amp;amp;amp;amp;quot;errors&amp;amp;amp;amp;amp;amp;amp;quot;:[]}', 1, '2026-08-09 17:11:11'),
('ops_reconcile_error', '', 1, '2026-08-09 17:11:20'),
('ops_reconcile_finished_at', '2026-08-09 17:11:20', 1, '2026-08-09 17:11:20'),
('ops_reconcile_started_at', '2026-08-09 17:11:20', 1, '2026-08-09 17:11:20'),
('ops_reconcile_status', 'success', 1, '2026-08-09 17:11:20'),
('ops_reconcile_summary', '{&amp;amp;amp;amp;amp;amp;amp;quot;checked&amp;amp;amp;amp;amp;amp;amp;quot;:26,&amp;amp;amp;amp;amp;amp;amp;quot;changed&amp;amp;amp;amp;amp;amp;amp;quot;:0,&amp;amp;amp;amp;amp;amp;amp;quot;log_count&amp;amp;amp;amp;amp;amp;amp;quot;:0}', 1, '2026-08-09 17:11:20'),
('schema_version', '2.0', 0, '2026-08-09 14:02:40'),
('storage_gateway', 'GooyaStorage', 0, '2026-08-09 14:02:40'),
('storage_source_module', 'GooyaCloud', 0, '2026-08-09 14:02:40'),
('trash_retention_days', '30', 1, '2026-08-10 06:59:34');

-- --------------------------------------------------------

--
-- Table structure for table `gooyaacc_cloud_shares`
--

CREATE TABLE `gooyaacc_cloud_shares` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `item_type` enum('file','folder') NOT NULL,
  `item_id` bigint(20) UNSIGNED NOT NULL,
  `owner_id` int(10) UNSIGNED NOT NULL,
  `target_type` enum('user','group','role') NOT NULL DEFAULT 'user',
  `target_id` int(10) UNSIGNED NOT NULL,
  `permission` enum('view','edit') NOT NULL DEFAULT 'view',
  `can_download` tinyint(1) NOT NULL DEFAULT 1,
  `can_reshare` tinyint(1) NOT NULL DEFAULT 0,
  `expires_at` datetime DEFAULT NULL,
  `revoked` tinyint(1) NOT NULL DEFAULT 0,
  `created_by` int(10) UNSIGNED NOT NULL DEFAULT 0,
  `created_at` datetime NOT NULL,
  `updated_at` datetime NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_persian_ci COMMENT='اشتراک‌گذاری کنترل‌شدهٔ فایل و پوشه در GooyaCloud';

-- --------------------------------------------------------

--
-- Table structure for table `gooyaacc_cloud_versions`
--

CREATE TABLE `gooyaacc_cloud_versions` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `file_id` bigint(20) UNSIGNED NOT NULL,
  `version_no` int(10) UNSIGNED NOT NULL,
  `attachment_id` bigint(20) UNSIGNED NOT NULL COMMENT 'gooya_attachment_storage.attachment_id نسخه قبلی',
  `orig_name` varchar(255) NOT NULL,
  `mime` varchar(150) NOT NULL DEFAULT 'application/octet-stream',
  `size_bytes` bigint(20) UNSIGNED NOT NULL DEFAULT 0,
  `sha256` char(64) NOT NULL DEFAULT '',
  `uploaded_by` int(10) UNSIGNED NOT NULL DEFAULT 0,
  `purge_status` enum('none','pending','failed') NOT NULL DEFAULT 'none',
  `created_at` datetime NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_persian_ci COMMENT='نسخه‌های قبلی فایل با ارجاع مستقل به سرور گویا';

-- --------------------------------------------------------

--
-- Table structure for table `gooyaacc_competitors`
--

CREATE TABLE `gooyaacc_competitors` (
  `id` int(11) NOT NULL,
  `name` varchar(255) NOT NULL,
  `website` varchar(255) DEFAULT NULL,
  `market` varchar(255) DEFAULT NULL,
  `products` text DEFAULT NULL,
  `strengths` text DEFAULT NULL,
  `weaknesses` text DEFAULT NULL,
  `price_level` varchar(50) DEFAULT NULL,
  `threat_level` varchar(50) DEFAULT NULL,
  `assigned_user_id` int(11) DEFAULT NULL,
  `notes` text DEFAULT NULL,
  `created_at` datetime DEFAULT current_timestamp(),
  `updated_at` datetime DEFAULT current_timestamp() ON UPDATE current_timestamp()
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_persian_ci;

-- --------------------------------------------------------

--
-- Table structure for table `gooyaacc_forecast_preferences`
--

CREATE TABLE `gooyaacc_forecast_preferences` (
  `user_id` int(19) NOT NULL,
  `default_user_id` int(19) NOT NULL DEFAULT 0,
  `sales_process` varchar(100) NOT NULL DEFAULT '',
  `payment_type` varchar(100) NOT NULL DEFAULT '',
  `column_count` tinyint(3) UNSIGNED NOT NULL DEFAULT 5,
  `interval_unit` varchar(20) NOT NULL DEFAULT 'month',
  `sort_by` varchar(20) NOT NULL DEFAULT 'name',
  `updated_at` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

--
-- Dumping data for table `gooyaacc_forecast_preferences`
--

INSERT IGNORE INTO `gooyaacc_forecast_preferences` (`user_id`, `default_user_id`, `sales_process`, `payment_type`, `column_count`, `interval_unit`, `sort_by`, `updated_at`) VALUES
(1, 0, '', '', 5, 'month', 'name', '2026-08-10 07:44:33');

-- --------------------------------------------------------

--
-- Table structure for table `gooyaacc_kpi_attendance_statuses`
--

CREATE TABLE `gooyaacc_kpi_attendance_statuses` (
  `id` int(11) NOT NULL,
  `name` varchar(100) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_persian_ci;

--
-- Dumping data for table `gooyaacc_kpi_attendance_statuses`
--

INSERT IGNORE INTO `gooyaacc_kpi_attendance_statuses` (`id`, `name`) VALUES
(1, 'حاضر'),
(2, 'غیبت'),
(3, 'مرخصی'),
(4, 'ماموریت');

-- --------------------------------------------------------

--
-- Table structure for table `gooyaacc_kpi_audit_logs`
--

CREATE TABLE `gooyaacc_kpi_audit_logs` (
  `id` int(11) NOT NULL,
  `user_id` int(11) DEFAULT NULL,
  `action` varchar(255) DEFAULT NULL,
  `ip_address` varchar(45) DEFAULT NULL,
  `created_at` datetime DEFAULT current_timestamp()
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_persian_ci;

--
-- Dumping data for table `gooyaacc_kpi_audit_logs`
--

INSERT IGNORE INTO `gooyaacc_kpi_audit_logs` (`id`, `user_id`, `action`, `ip_address`, `created_at`) VALUES
(1, NULL, 'Users-only migration: contacts=22, accounts=1, relations=23', 'CLI', '2026-07-25 05:51:52'),
(2, NULL, 'Users-only migration: contacts=0, accounts=0, relations=0', 'CLI', '2026-07-25 05:57:09');

-- --------------------------------------------------------

--
-- Table structure for table `gooyaacc_kpi_avatars`
--

CREATE TABLE `gooyaacc_kpi_avatars` (
  `user_id` int(11) NOT NULL,
  `filename` varchar(255) DEFAULT NULL,
  `mime` varchar(60) DEFAULT NULL,
  `updated_at` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

--
-- Dumping data for table `gooyaacc_kpi_avatars`
--

INSERT IGNORE INTO `gooyaacc_kpi_avatars` (`user_id`, `filename`, `mime`, `updated_at`) VALUES
(1, 'u1.jpg', 'image/jpeg', '2026-06-23 16:19:31');

-- --------------------------------------------------------

--
-- Table structure for table `gooyaacc_kpi_ceo_priorities`
--

CREATE TABLE `gooyaacc_kpi_ceo_priorities` (
  `id` int(11) NOT NULL,
  `kpi_definition_id` int(11) NOT NULL,
  `priority_level` int(11) NOT NULL DEFAULT 0,
  `target_value` decimal(10,2) DEFAULT NULL,
  `ceo_comment` text DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_persian_ci;

-- --------------------------------------------------------

--
-- Table structure for table `gooyaacc_kpi_definitions`
--

CREATE TABLE `gooyaacc_kpi_definitions` (
  `id` int(11) NOT NULL,
  `title` varchar(255) NOT NULL,
  `description` text DEFAULT NULL,
  `max_score` decimal(6,2) NOT NULL DEFAULT 5.00,
  `weight` decimal(5,2) NOT NULL DEFAULT 0.00,
  `kpi_category` varchar(100) DEFAULT NULL,
  `is_active` tinyint(4) NOT NULL DEFAULT 1,
  `is_strategic` tinyint(4) NOT NULL DEFAULT 0,
  `created_at` datetime DEFAULT current_timestamp()
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_persian_ci;

--
-- Dumping data for table `gooyaacc_kpi_definitions`
--

INSERT IGNORE INTO `gooyaacc_kpi_definitions` (`id`, `title`, `description`, `max_score`, `weight`, `kpi_category`, `is_active`, `is_strategic`, `created_at`) VALUES
(49, 'حضور به‌موقع', NULL, 10.00, 5.00, 'انضباطی', 1, 1, '2026-06-23 15:51:51'),
(50, 'رعایت نظم و مقررات', NULL, 10.00, 5.00, 'انضباطی', 1, 0, '2026-06-23 15:51:51'),
(51, 'پوشش و آراستگی', NULL, 10.00, 4.00, 'انضباطی', 1, 0, '2026-06-23 15:51:51'),
(52, 'مدیریت زمان', NULL, 10.00, 4.00, 'انضباطی', 1, 0, '2026-06-23 15:51:51'),
(53, 'پایبندی به ساعت کاری', NULL, 10.00, 4.00, 'انضباطی', 1, 0, '2026-06-23 15:51:51'),
(54, 'کیفیت خروجی کار', NULL, 10.00, 6.00, 'عملکردی', 1, 1, '2026-06-23 15:51:51'),
(55, 'سرعت انجام وظایف', NULL, 10.00, 6.00, 'عملکردی', 1, 0, '2026-06-23 15:51:51'),
(56, 'دقت و کم‌خطایی', NULL, 10.00, 5.00, 'عملکردی', 1, 1, '2026-06-23 15:51:51'),
(57, 'تحقق اهداف ماهانه', NULL, 10.00, 5.00, 'عملکردی', 1, 0, '2026-06-23 15:51:51'),
(58, 'بهره‌وری', NULL, 10.00, 5.00, 'عملکردی', 1, 0, '2026-06-23 15:51:51'),
(59, 'مسئولیت‌پذیری', NULL, 10.00, 4.00, 'رفتاری', 1, 0, '2026-06-23 15:51:51'),
(60, 'اخلاق حرفه‌ای', NULL, 10.00, 4.00, 'رفتاری', 1, 1, '2026-06-23 15:51:51'),
(61, 'برخورد با ارباب‌رجوع', NULL, 10.00, 4.00, 'رفتاری', 1, 0, '2026-06-23 15:51:51'),
(62, 'انتقادپذیری', NULL, 10.00, 3.00, 'رفتاری', 1, 0, '2026-06-23 15:51:51'),
(63, 'دانش فنی', NULL, 10.00, 5.00, 'فنی/تخصصی', 1, 1, '2026-06-23 15:51:51'),
(64, 'حل مسئله', NULL, 10.00, 5.00, 'فنی/تخصصی', 1, 0, '2026-06-23 15:51:51'),
(65, 'یادگیری و به‌روزرسانی', NULL, 10.00, 4.00, 'فنی/تخصصی', 1, 0, '2026-06-23 15:51:51'),
(66, 'استفاده از ابزارها', NULL, 10.00, 4.00, 'فنی/تخصصی', 1, 0, '2026-06-23 15:51:51'),
(67, 'همکاری تیمی', NULL, 10.00, 5.00, 'تیمی', 1, 1, '2026-06-23 15:51:51'),
(68, 'اشتراک دانش', NULL, 10.00, 5.00, 'تیمی', 1, 0, '2026-06-23 15:51:51'),
(69, 'کمک به همکاران', NULL, 10.00, 4.00, 'تیمی', 1, 0, '2026-06-23 15:51:51'),
(70, 'مشارکت در جلسات', NULL, 10.00, 4.00, 'تیمی', 1, 0, '2026-06-23 15:51:51');

-- --------------------------------------------------------

--
-- Table structure for table `gooyaacc_kpi_evaluations_main`
--

CREATE TABLE `gooyaacc_kpi_evaluations_main` (
  `id` int(11) NOT NULL,
  `evaluator_id` int(11) NOT NULL,
  `evaluated_entity_id` int(11) NOT NULL,
  `entity_type` enum('user','team') NOT NULL DEFAULT 'user',
  `evaluation_occurrence_date` date DEFAULT NULL,
  `evaluation_start_date` date DEFAULT NULL,
  `evaluation_end_date` date DEFAULT NULL,
  `attendance_status_id` int(11) DEFAULT NULL,
  `entry_time` time DEFAULT NULL,
  `exit_time` time DEFAULT NULL,
  `comments` text DEFAULT NULL,
  `attachment` varchar(255) DEFAULT NULL,
  `overall_percentage_score` decimal(5,2) DEFAULT NULL,
  `final_kpi_index` decimal(5,2) DEFAULT NULL,
  `evaluation_status_id` int(11) NOT NULL DEFAULT 2,
  `affects_average` tinyint(4) NOT NULL DEFAULT 1,
  `created_at` datetime DEFAULT current_timestamp(),
  `updated_at` datetime DEFAULT current_timestamp() ON UPDATE current_timestamp()
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_persian_ci;

--
-- Dumping data for table `gooyaacc_kpi_evaluations_main`
--

INSERT IGNORE INTO `gooyaacc_kpi_evaluations_main` (`id`, `evaluator_id`, `evaluated_entity_id`, `entity_type`, `evaluation_occurrence_date`, `evaluation_start_date`, `evaluation_end_date`, `attendance_status_id`, `entry_time`, `exit_time`, `comments`, `attachment`, `overall_percentage_score`, `final_kpi_index`, `evaluation_status_id`, `affects_average`, `created_at`, `updated_at`) VALUES
(97, 6, 13, 'team', '2026-06-15', NULL, NULL, 1, NULL, NULL, NULL, NULL, 76.00, 7.60, 2, 1, '2026-06-23 15:51:52', '2026-06-23 15:51:52'),
(98, 1, 13, 'team', '2026-06-15', NULL, NULL, 1, NULL, NULL, NULL, NULL, 86.00, 8.60, 2, 1, '2026-06-23 15:51:52', '2026-06-23 15:51:52'),
(99, 6, 7, 'user', '2026-05-15', NULL, NULL, 1, NULL, NULL, NULL, NULL, 77.00, 7.70, 2, 1, '2026-06-23 15:51:52', '2026-06-23 15:51:52'),
(100, 1, 7, 'user', '2026-06-12', NULL, NULL, 1, NULL, NULL, NULL, NULL, 83.00, 8.30, 2, 1, '2026-06-23 15:51:52', '2026-06-23 15:51:52'),
(101, 7, 8, 'user', '2026-04-18', NULL, NULL, 1, NULL, NULL, NULL, NULL, 76.00, 7.60, 2, 1, '2026-06-23 15:51:52', '2026-06-23 15:51:52'),
(102, 6, 8, 'user', '2026-05-15', NULL, NULL, 1, NULL, NULL, NULL, NULL, 71.00, 7.10, 2, 1, '2026-06-23 15:51:52', '2026-06-23 15:51:52'),
(103, 1, 8, 'user', '2026-06-12', NULL, NULL, 1, NULL, NULL, NULL, NULL, 80.00, 8.00, 2, 1, '2026-06-23 15:51:52', '2026-06-23 15:51:52'),
(104, 7, 9, 'user', '2026-04-18', NULL, NULL, 1, NULL, NULL, NULL, NULL, 80.00, 8.00, 2, 1, '2026-06-23 15:51:52', '2026-06-23 15:51:52'),
(105, 6, 9, 'user', '2026-05-15', NULL, NULL, 1, NULL, NULL, NULL, NULL, 75.00, 7.50, 2, 1, '2026-06-23 15:51:52', '2026-06-23 15:51:52'),
(106, 1, 9, 'user', '2026-06-12', NULL, NULL, 1, NULL, NULL, NULL, NULL, 84.00, 8.40, 2, 1, '2026-06-23 15:51:52', '2026-06-23 15:51:52'),
(107, 7, 10, 'user', '2026-04-18', NULL, NULL, 1, NULL, NULL, NULL, NULL, 84.00, 8.40, 2, 1, '2026-06-23 15:51:52', '2026-06-23 15:51:52'),
(108, 6, 10, 'user', '2026-05-15', NULL, NULL, 1, NULL, NULL, NULL, NULL, 79.00, 7.90, 2, 1, '2026-06-23 15:51:52', '2026-06-23 15:51:52'),
(109, 1, 10, 'user', '2026-06-12', NULL, NULL, 1, NULL, NULL, NULL, NULL, 88.00, 8.80, 2, 1, '2026-06-23 15:51:52', '2026-06-23 15:51:52'),
(110, 6, 14, 'team', '2026-06-15', NULL, NULL, 1, NULL, NULL, NULL, NULL, 80.50, 8.05, 2, 1, '2026-06-23 15:51:52', '2026-06-23 15:51:52'),
(111, 1, 14, 'team', '2026-06-15', NULL, NULL, 1, NULL, NULL, NULL, NULL, 90.50, 9.05, 2, 1, '2026-06-23 15:51:52', '2026-06-23 15:51:52'),
(112, 6, 11, 'user', '2026-05-15', NULL, NULL, 1, NULL, NULL, NULL, NULL, 81.50, 8.15, 2, 1, '2026-06-23 15:51:52', '2026-06-23 15:51:52'),
(113, 1, 11, 'user', '2026-06-12', NULL, NULL, 1, NULL, NULL, NULL, NULL, 87.50, 8.75, 2, 1, '2026-06-23 15:51:52', '2026-06-23 15:51:52'),
(114, 11, 12, 'user', '2026-04-18', NULL, NULL, 1, NULL, NULL, NULL, NULL, 80.50, 8.05, 2, 1, '2026-06-23 15:51:52', '2026-06-23 15:51:52'),
(115, 6, 12, 'user', '2026-05-15', NULL, NULL, 1, NULL, NULL, NULL, NULL, 75.50, 7.55, 2, 1, '2026-06-23 15:51:52', '2026-06-23 15:51:52'),
(116, 1, 12, 'user', '2026-06-12', NULL, NULL, 1, NULL, NULL, NULL, NULL, 84.50, 8.45, 2, 1, '2026-06-23 15:51:52', '2026-06-23 15:51:52'),
(117, 11, 13, 'user', '2026-04-18', NULL, NULL, 1, NULL, NULL, NULL, NULL, 84.50, 8.45, 2, 1, '2026-06-23 15:51:52', '2026-06-23 15:51:52'),
(118, 6, 13, 'user', '2026-05-15', NULL, NULL, 1, NULL, NULL, NULL, NULL, 79.50, 7.95, 2, 1, '2026-06-23 15:51:52', '2026-06-23 15:51:52'),
(119, 1, 13, 'user', '2026-06-12', NULL, NULL, 1, NULL, NULL, NULL, NULL, 88.50, 8.85, 2, 1, '2026-06-23 15:51:52', '2026-06-23 15:51:52'),
(120, 11, 14, 'user', '2026-04-18', NULL, NULL, 1, NULL, NULL, NULL, NULL, 88.50, 8.85, 2, 1, '2026-06-23 15:51:52', '2026-06-23 15:51:52'),
(121, 6, 14, 'user', '2026-05-15', NULL, NULL, 1, NULL, NULL, NULL, NULL, 83.50, 8.35, 2, 1, '2026-06-23 15:51:52', '2026-06-23 15:51:52'),
(122, 1, 14, 'user', '2026-06-12', NULL, NULL, 1, NULL, NULL, NULL, NULL, 92.50, 9.25, 2, 1, '2026-06-23 15:51:52', '2026-06-23 15:51:52'),
(123, 6, 15, 'team', '2026-06-15', NULL, NULL, 1, NULL, NULL, NULL, NULL, 63.60, 6.36, 2, 1, '2026-06-23 15:51:52', '2026-06-23 15:51:52'),
(124, 1, 15, 'team', '2026-06-15', NULL, NULL, 1, NULL, NULL, NULL, NULL, 73.60, 7.36, 2, 1, '2026-06-23 15:51:52', '2026-06-23 15:51:52'),
(125, 6, 15, 'user', '2026-05-15', NULL, NULL, 1, NULL, NULL, NULL, NULL, 64.60, 6.46, 2, 1, '2026-06-23 15:51:52', '2026-06-23 15:51:52'),
(126, 1, 15, 'user', '2026-06-12', NULL, NULL, 1, NULL, NULL, NULL, NULL, 70.60, 7.06, 2, 1, '2026-06-23 15:51:52', '2026-06-23 15:51:52'),
(127, 15, 16, 'user', '2026-04-18', NULL, NULL, 1, NULL, NULL, NULL, NULL, 63.60, 6.36, 2, 1, '2026-06-23 15:51:52', '2026-06-23 15:51:52'),
(128, 6, 16, 'user', '2026-05-15', NULL, NULL, 1, NULL, NULL, NULL, NULL, 58.60, 5.86, 2, 1, '2026-06-23 15:51:52', '2026-06-23 15:51:52'),
(129, 1, 16, 'user', '2026-06-12', NULL, NULL, 1, NULL, NULL, NULL, NULL, 67.60, 6.76, 2, 1, '2026-06-23 15:51:52', '2026-06-23 15:51:52'),
(130, 15, 17, 'user', '2026-04-18', NULL, NULL, 1, NULL, NULL, NULL, NULL, 67.60, 6.76, 2, 1, '2026-06-23 15:51:52', '2026-06-23 15:51:52'),
(131, 6, 17, 'user', '2026-05-15', NULL, NULL, 1, NULL, NULL, NULL, NULL, 62.60, 6.26, 2, 1, '2026-06-23 15:51:52', '2026-06-23 15:51:52'),
(132, 1, 17, 'user', '2026-06-12', NULL, NULL, 1, NULL, NULL, NULL, NULL, 71.60, 7.16, 2, 1, '2026-06-23 15:51:52', '2026-06-23 15:51:52'),
(133, 15, 18, 'user', '2026-04-18', NULL, NULL, 1, NULL, NULL, NULL, NULL, 71.60, 7.16, 2, 1, '2026-06-23 15:51:52', '2026-06-23 15:51:52'),
(134, 6, 18, 'user', '2026-05-15', NULL, NULL, 1, NULL, NULL, NULL, NULL, 66.60, 6.66, 2, 1, '2026-06-23 15:51:52', '2026-06-23 15:51:52'),
(135, 1, 18, 'user', '2026-06-12', NULL, NULL, 1, NULL, NULL, NULL, NULL, 75.60, 7.56, 2, 1, '2026-06-23 15:51:52', '2026-06-23 15:51:52'),
(136, 6, 16, 'team', '2026-06-15', NULL, NULL, 1, NULL, NULL, NULL, NULL, 86.00, 8.60, 2, 1, '2026-06-23 15:51:52', '2026-06-23 15:51:52'),
(137, 1, 16, 'team', '2026-06-15', NULL, NULL, 1, NULL, NULL, NULL, NULL, 96.00, 9.60, 2, 1, '2026-06-23 15:51:52', '2026-06-23 15:51:52'),
(138, 6, 19, 'user', '2026-05-15', NULL, NULL, 1, NULL, NULL, NULL, NULL, 87.00, 8.70, 2, 1, '2026-06-23 15:51:52', '2026-06-23 15:51:52'),
(139, 1, 19, 'user', '2026-06-12', NULL, NULL, 1, NULL, NULL, NULL, NULL, 93.00, 9.30, 2, 1, '2026-06-23 15:51:52', '2026-06-23 15:51:52'),
(140, 19, 20, 'user', '2026-04-18', NULL, NULL, 1, NULL, NULL, NULL, NULL, 86.00, 8.60, 2, 1, '2026-06-23 15:51:52', '2026-06-23 15:51:52'),
(141, 6, 20, 'user', '2026-05-15', NULL, NULL, 1, NULL, NULL, NULL, NULL, 81.00, 8.10, 2, 1, '2026-06-23 15:51:52', '2026-06-23 15:51:52'),
(142, 1, 20, 'user', '2026-06-12', NULL, NULL, 1, NULL, NULL, NULL, NULL, 90.00, 9.00, 2, 1, '2026-06-23 15:51:52', '2026-06-23 15:51:52'),
(143, 19, 21, 'user', '2026-04-18', NULL, NULL, 1, NULL, NULL, NULL, NULL, 90.00, 9.00, 2, 1, '2026-06-23 15:51:52', '2026-06-23 15:51:52'),
(144, 6, 21, 'user', '2026-05-15', NULL, NULL, 1, NULL, NULL, NULL, NULL, 85.00, 8.50, 2, 1, '2026-06-23 15:51:52', '2026-06-23 15:51:52'),
(145, 1, 21, 'user', '2026-06-12', NULL, NULL, 1, NULL, NULL, NULL, NULL, 94.00, 9.40, 2, 1, '2026-06-23 15:51:52', '2026-06-23 15:51:52'),
(146, 19, 22, 'user', '2026-04-18', NULL, NULL, 1, NULL, NULL, NULL, NULL, 94.00, 9.40, 2, 1, '2026-06-23 15:51:52', '2026-06-23 15:51:52'),
(147, 6, 22, 'user', '2026-05-15', NULL, NULL, 1, NULL, NULL, NULL, NULL, 89.00, 8.90, 2, 1, '2026-06-23 15:51:52', '2026-06-23 15:51:52'),
(148, 1, 22, 'user', '2026-06-12', NULL, NULL, 1, NULL, NULL, NULL, NULL, 98.00, 9.80, 2, 1, '2026-06-23 15:51:52', '2026-06-23 15:51:52'),
(149, 6, 17, 'team', '2026-06-15', NULL, NULL, 1, NULL, NULL, NULL, NULL, 100.00, 10.00, 2, 1, '2026-06-23 15:51:52', '2026-06-23 15:51:52'),
(150, 1, 17, 'team', '2026-06-15', NULL, NULL, 1, NULL, NULL, NULL, NULL, 100.00, 10.00, 2, 1, '2026-06-23 15:51:52', '2026-06-23 15:51:52'),
(151, 6, 23, 'user', '2026-05-15', NULL, NULL, 1, NULL, NULL, NULL, NULL, 97.00, 9.70, 2, 1, '2026-06-23 15:51:52', '2026-06-23 15:51:52'),
(152, 1, 23, 'user', '2026-06-12', NULL, NULL, 1, NULL, NULL, NULL, NULL, 100.00, 10.00, 2, 1, '2026-06-23 15:51:52', '2026-06-23 15:51:52'),
(153, 23, 24, 'user', '2026-04-18', NULL, NULL, 1, NULL, NULL, NULL, NULL, 96.00, 9.60, 2, 1, '2026-06-23 15:51:52', '2026-06-23 15:51:52'),
(154, 6, 24, 'user', '2026-05-15', NULL, NULL, 1, NULL, NULL, NULL, NULL, 91.00, 9.10, 2, 1, '2026-06-23 15:51:52', '2026-06-23 15:51:52'),
(155, 1, 24, 'user', '2026-06-12', NULL, NULL, 1, NULL, NULL, NULL, NULL, 100.00, 10.00, 2, 1, '2026-06-23 15:51:52', '2026-06-23 15:51:52'),
(156, 23, 25, 'user', '2026-04-18', NULL, NULL, 1, NULL, NULL, NULL, NULL, 100.00, 10.00, 2, 1, '2026-06-23 15:51:52', '2026-06-23 15:51:52'),
(157, 6, 25, 'user', '2026-05-15', NULL, NULL, 1, NULL, NULL, NULL, NULL, 95.00, 9.50, 2, 1, '2026-06-23 15:51:52', '2026-06-23 15:51:52'),
(158, 1, 25, 'user', '2026-06-12', NULL, NULL, 1, NULL, NULL, NULL, NULL, 100.00, 10.00, 2, 1, '2026-06-23 15:51:52', '2026-06-23 15:51:52'),
(159, 23, 26, 'user', '2026-04-18', NULL, NULL, 1, NULL, NULL, NULL, NULL, 100.00, 10.00, 2, 1, '2026-06-23 15:51:52', '2026-06-23 15:51:52'),
(160, 6, 26, 'user', '2026-05-15', NULL, NULL, 1, NULL, NULL, NULL, NULL, 95.00, 9.50, 2, 1, '2026-06-23 15:51:52', '2026-06-23 15:51:52'),
(161, 1, 26, 'user', '2026-06-12', NULL, NULL, 1, NULL, NULL, NULL, NULL, 100.00, 10.00, 2, 1, '2026-06-23 15:51:52', '2026-06-23 15:51:52');

--
-- Triggers `gooyaacc_kpi_evaluations_main`
--
DROP TRIGGER IF EXISTS `gooyaacc_kpi_eval_users_only_bi`;
DELIMITER $$
    END IF;
    IF NEW.entity_type='team' AND NOT EXISTS(
        SELECT 1 FROM gooyaacc_kpi_teams WHERE id=NEW.evaluated_entity_id AND deleted=0
    ) THEN
        SIGNAL SQLSTATE '45000' SET MESSAGE_TEXT='KPI team target is invalid';
    END IF;
END
$$
DELIMITER ;
DROP TRIGGER IF EXISTS `gooyaacc_kpi_eval_users_only_bu`;
DELIMITER $$
    END IF;
    IF NEW.entity_type='team' AND NOT EXISTS(
        SELECT 1 FROM gooyaacc_kpi_teams WHERE id=NEW.evaluated_entity_id AND deleted=0
    ) THEN
        SIGNAL SQLSTATE '45000' SET MESSAGE_TEXT='KPI team target is invalid';
    END IF;
END
$$
DELIMITER ;

-- --------------------------------------------------------

--
