-- Table structure for table `roles_users`
--

CREATE TABLE IF NOT EXISTS `roles_users` (
  `user_id` int(10) unsigned NOT NULL,
  `role_id` int(10) unsigned NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `roles_users`
--

INSERT INTO `roles_users` (`user_id`, `role_id`) VALUES
(1, 1);

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

--
-- Table structure for table `slides`
--

CREATE TABLE IF NOT EXISTS `slides` (
  `id` bigint(20) unsigned NOT NULL,
  `Show_for_Visitors` tinyint(4) unsigned DEFAULT NULL,
  `title` varchar(255) COLLATE utf8_bin DEFAULT NULL,
  `href` varchar(255) COLLATE utf8_bin DEFAULT NULL,
  `order` int(11) unsigned DEFAULT NULL,
  `img` varchar(255) COLLATE utf8_bin DEFAULT NULL,
  `img_thumb` varchar(255) COLLATE utf8_bin DEFAULT NULL,
  `Created_by` int(11) unsigned DEFAULT NULL COMMENT 'ref to ''users''',
  `Created_date` datetime DEFAULT NULL,
  `last_update_by` int(11) unsigned DEFAULT NULL COMMENT 'ref to ''users''',
  `last_update_date` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin ROW_FORMAT=COMPACT;

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

--
-- Table structure for table `speeches`
--

CREATE TABLE IF NOT EXISTS `speeches` (
  `id` int(11) unsigned NOT NULL,
  `readed` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '0 No, 1 Yes',
  `sended_to_admin_main` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '0 No, 1 Yes',
  `name` varchar(255) COLLATE utf8_bin DEFAULT NULL,
  `email` varchar(255) COLLATE utf8_bin DEFAULT NULL,
  `mobile` varchar(255) COLLATE utf8_bin DEFAULT NULL,
  `message` text COLLATE utf8_bin,
  `type` int(11) DEFAULT '0',
  `admin_reply_status` tinyint(4) unsigned NOT NULL DEFAULT '0' COMMENT '0 NotSent , 1 Sent ',
  `admin_reply` text COLLATE utf8_bin,
  `Created_by` int(11) unsigned DEFAULT NULL COMMENT 'ref to ''users''',
  `Created_date` datetime DEFAULT NULL,
  `last_update_by` int(11) unsigned DEFAULT NULL COMMENT 'ref to ''users''',
  `last_update_date` datetime DEFAULT NULL,
  `upload_files` text COLLATE utf8_bin,
  `important` int(11) DEFAULT '0',
  `archive_url` text COLLATE utf8_bin,
  `Accepted` int(11) DEFAULT '0'
) ENGINE=InnoDB AUTO_INCREMENT=76 DEFAULT CHARSET=utf8 COLLATE=utf8_bin ROW_FORMAT=COMPACT;

--
-- Dumping data for table `speeches`
--

INSERT INTO `speeches` (`id`, `readed`, `sended_to_admin_main`, `name`, `email`, `mobile`, `message`, `type`, `admin_reply_status`, `admin_reply`, `Created_by`, `Created_date`, `last_update_by`, `last_update_date`, `upload_files`, `important`, `archive_url`, `Accepted`) VALUES
(2, 1, 0, 'Test', '1', NULL, '<p>Hi all</p>\n', 0, 1, NULL, 1, '2019-05-07 04:39:16', NULL, NULL, NULL, 0, NULL, 0),
(4, 1, 0, 'NobTes', '1', NULL, '<p>a</p>\n', 0, 1, NULL, 1, '2019-05-07 04:40:23', NULL, NULL, NULL, 0, NULL, 0),
(5, 1, 0, 'طلب مبلغ للتأمين', '1635', NULL, '<p>السلام عليكم<br />\nطلب مبلغ وقدره 3160.50 ريال لتأمين عائلة أحمد عبدالكريم</p>\n', 0, 1, NULL, 1686, '2019-05-14 11:06:13', NULL, NULL, NULL, 0, NULL, 0),
(6, 1, 0, 'طلب مبلغ للتأمين الطبي', '1647', NULL, '<p>السلام عليكم ورحمة الله وبركاته</p>\n\n<p>طلب مبلغ وقدره 3160.50 ريال للتأمين الطبي الخاص بعائلة الموظف أحمد عبدالكريم محمد </p>\n', 0, 1, NULL, 1686, '2019-05-14 11:12:27', NULL, NULL, NULL, 0, NULL, 0),
(8, 1, 0, 'طلب ماء للصناعية وموقع البلدية 2 لافطار صائم تم : ', '1635', NULL, '<p>تم استلام عدد 300 كرتون ماء للصناعية وعدد 100 كرتون لموقع البلدبة 2 من شركة مصنع مياه سما الصحية بملغ 4000 ريالا . رقم حساب الشركة 119608011111000</p>\n', 0, 1, NULL, 1638, '2019-05-16 11:41:05', NULL, NULL, NULL, 0, NULL, 0),
(10, 1, 0, 'استفسار', '1635', NULL, '<p style="text-align:center;"><strong>سعادة المدير </strong></p>\n\n<p style="text-align:center;"><strong>السلام عليكم ورحمة الله وبركاته</strong></p>\n\n<p style="text-align:center;"><strong>هل تم تفعيل البرنامج ؟</strong></p>\n', 0, 1, NULL, 1688, '2019-05-23 00:56:12', NULL, NULL, NULL, 0, NULL, 0),
(11, 0, 0, 'ارسال', '1', NULL, '<p>شسيشسي</p>\n', 0, 1, NULL, 1, '2019-05-25 07:35:33', NULL, NULL, NULL, 0, NULL, 0),
(12, 0, 0, 'NobTes', '1', NULL, '<p>d</p>\n', 0, 1, NULL, 1, '2019-05-25 08:09:05', NULL, NULL, NULL, 0, NULL, 0),
(13, 0, 0, 'NobTes', '1', NULL, '<p>d</p>\n', 0, 1, NULL, 1, '2019-05-25 08:09:17', NULL, NULL, NULL, 0, NULL, 0),
(14, 0, 0, 'NobTes', '1', NULL, '<p>d</p>\n', 0, 1, NULL, 1, '2019-05-25 08:10:41', NULL, NULL, NULL, 0, NULL, 0),
(15, 0, 0, 'f', '1', NULL, '<p>f</p>\n', 0, 1, NULL, 1, '2019-05-25 08:13:44', NULL, NULL, NULL, 0, NULL, 0),
(16, 0, 0, 'f', '1', NULL, '<p>f</p>\n', 0, 1, NULL, 1, '2019-05-25 08:14:06', NULL, NULL, NULL, 0, NULL, 0),
(17, 0, 0, 'f', '1', NULL, '<p>f</p>\n', 0, 1, NULL, 1, '2019-05-25 08:14:55', NULL, NULL, NULL, 0, NULL, 0),
(18, 0, 0, 'f', '1', NULL, '<p>f</p>\n', 0, 1, NULL, 1, '2019-05-25 08:15:46', NULL, NULL, NULL, 0, NULL, 0),
(19, 0, 0, 'd', '1', NULL, '<p>d</p>\n', 0, 1, NULL, 1, '2019-05-25 08:58:16', NULL, NULL, NULL, 0, NULL, 0),
(20, 0, 0, 'd', '1', NULL, '<p>d</p>\n', 0, 1, NULL, 1, '2019-05-25 09:02:45', NULL, NULL, NULL, 0, NULL, 0),
(21, 1, 0, 'مدير مكتب الجاليات', '1635', NULL, '<p>تقبل الله منا ومنكم </p>\n\n<p>عشر مباركة </p>\n', 0, 1, NULL, 1658, '2019-05-27 17:17:08', NULL, NULL, NULL, 0, NULL, 0),
(22, 0, 0, 'اعتماد المراسلات من خلال المنظومة ', '1635', NULL, '<p dir="rtl">السلام عليكم و رحمة الله و بركاته</p>\n\n<p dir="rtl"> </p>\n\n<p dir="rtl">خطوة مباركة تجربة النظام المالي و الاداري للمكتب </p>\n\n<p dir="rtl"> </p>\n', 0, 1, NULL, 1665, '2019-05-27 21:38:05', NULL, NULL, NULL, 0, NULL, 0),
(23, 1, 0, 'الحسابات', '1636', NULL, '<p>متى تصرف الرواتب</p>\n', 0, 1, NULL, 1638, '2019-05-28 11:57:03', NULL, NULL, NULL, 0, NULL, 0),
(24, 0, 0, '1312312', '1', NULL, '<p>1234131</p>\n', 0, 1, NULL, 1, '2019-05-29 20:49:24', NULL, NULL, NULL, 0, NULL, 0),
(25, 1, 0, 'asdsad', 'c2', NULL, '<p>123123</p>\n', 1, 1, NULL, 1, '2019-06-20 07:33:38', NULL, NULL, NULL, 0, NULL, 0),
(26, 0, 0, 'ttt', 'c2', NULL, '<p>ttt</p>\n', 1, 1, NULL, 1, '2019-06-23 07:37:19', NULL, NULL, NULL, 0, NULL, 0),
(27, 0, 0, 'ddd', 'c2', NULL, '<p>ddasd</p>\n', 1, 1, NULL, 1, '2019-06-23 07:56:37', NULL, NULL, NULL, 0, NULL, 0),
(28, 0, 0, 'cc', 'c2', NULL, '<p>cc</p>\n', 1, 1, NULL, 1, '2019-06-23 07:59:42', NULL, NULL, NULL, 0, NULL, 0),
(29, 0, 0, NULL, NULL, NULL, NULL, 0, 0, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, 1),
(30, 0, 0, NULL, NULL, NULL, NULL, 0, 0, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, 1),
(31, 0, 0, NULL, NULL, NULL, NULL, 0, 0, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, 1),
(32, 0, 0, NULL, NULL, NULL, NULL, 0, 0, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, 1),
(33, 0, 0, NULL, NULL, NULL, NULL, 0, 0, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, 1),
(34, 1, 0, 'تست تست', 'c2', NULL, '<p>تست تست</p>\n', 1, 1, NULL, 1, '2019-06-26 19:35:29', NULL, NULL, NULL, 0, NULL, 0),
(35, 0, 0, 'abc', 'c2', NULL, '<p>abc</p>\n', 1, 1, NULL, 1, '2019-06-26 19:38:07', NULL, NULL, NULL, 0, NULL, 0),
(36, 0, 0, 'dfdf', 'c2', NULL, '<p>dfdfd</p>\n', 1, 1, NULL, 1, '2019-06-26 19:39:12', NULL, NULL, NULL, 0, NULL, 0),
(37, 0, 0, 'dsd', 'c2', NULL, '<p>dsd</p>\n', 1, 1, NULL, 1, '2019-06-26 19:39:31', NULL, NULL, NULL, 0, NULL, 0),
(38, 0, 0, 'Go Go Go', 'c2', NULL, '<p>Yes Yes YEs</p>\n', 1, 1, NULL, 1, '2019-06-26 19:41:34', NULL, NULL, NULL, 0, NULL, 1),
(39, 0, 0, 'dfdfd', 'c2', NULL, '<p>fdfd</p>\n', 1, 1, NULL, 1, '2019-06-26 22:20:40', NULL, NULL, NULL, 0, NULL, 0),
(40, 0, 0, 'dsd', 'c2', NULL, '<p>sdsd111</p>\n', 1, 1, NULL, 1, '2019-06-26 22:25:06', NULL, NULL, NULL, 0, NULL, 0),
(41, 0, 0, 'dsd', 'c2', NULL, '<p>sdsd111</p>\n', 1, 1, NULL, 1, '2019-06-26 22:26:33', NULL, NULL, NULL, 0, NULL, 0),
(42, 0, 0, 'dsd', 'c2', NULL, '<p>sdsd111</p>\n', 1, 1, NULL, 1, '2019-06-26 22:29:25', NULL, NULL, NULL, 0, NULL, 0),
(43, 0, 0, 'asd', 'c2', NULL, '<p>asd</p>\n', 1, 1, NULL, 1, '2019-06-26 22:30:29', NULL, NULL, NULL, 0, NULL, 0),
(44, 0, 0, 'sadsad', 'c2', NULL, '<p>sadsadsadsadadsdsa</p>\n', 1, 1, NULL, 1, '2019-06-26 22:35:40', NULL, NULL, NULL, 0, NULL, 0),
(45, 0, 0, 'شكوى', 'c4', NULL, '<p>موظفكم</p>\n', 1, 1, NULL, 1, '2019-06-27 10:09:53', NULL, NULL, NULL, 0, NULL, 0),
(46, 0, 0, '123456', 'c4', NULL, '<p dir="rtl">ويسعدنا أن نزف إليكم البشرى عن الضلوع في مشروع مبنى ( حياتنا دعوة<span dir="ltr">2 </span> ) ، طريق الأمير سلطان (خميس مشيط–الرياض) مقابل التراثية، وعلى مساحة 2500م<sup>2</sup>، لتشييد 10 أدوار<br />\n(قبو +  دور تجاري + ميزانين + 6 أدوار متكررة).</p>\n\n<p dir="rtl">حيث سيكون بإذن الله مقراً ومورداً لدعم جميع المشاريع والأنشطة الدعوية التي ينفذها المكتب التعاوني للدعوة والإرشاد وتوعية الجاليات بخميس مشيط</p>\n\n<p dir="rtl">وتعلمون رعاكم الله أننا جميعاً شركاء في مسيرة الدعوة إلى الله عز وجل، وأنتم بما لكم من أياد بيضاء في أعمال الخير في بلادنا نطمح أن تكون لكم مشاركة فاعلة وبصمة متميزة في أساس هذا الصرح الدعوي ، والذي يبقى أثره لكم طول الحياة وبعد الممات بإذن الله، سيما وأنه مشروع مستديم وريعه وقف للدعوة ولنشر العلم والخير، أسوة بالرسول الكريم <span dir="ltr">r</span> وأصحابه <span dir="ltr">y</span> .</p>\n', 1, 1, NULL, 1, '2019-06-27 10:37:03', NULL, NULL, NULL, 0, NULL, 0),
(47, 0, 0, 'asdasdasdasas', 'c2', NULL, '<p><u><strong>Test Header</strong></u></p>\n\n<p> </p>\n\n<p><u><strong>Test Body</strong></u></p>\n\n<p> </p>\n\n<p><u><strong>Test Footer</strong></u></p>\n', 1, 1, NULL, 1, '2019-06-29 09:50:04', NULL, NULL, NULL, 0, NULL, 0),
(48, 0, 0, 'شسيشسي', 'c2', NULL, '<p>شسيشسي</p>\n', 1, 1, NULL, 1, '2019-06-29 10:08:43', NULL, NULL, NULL, 0, NULL, 0),
(49, 0, 0, 'شسيشسي', 'c2', NULL, '<p>شسيشسي</p>\n', 1, 1, NULL, 1, '2019-06-29 10:17:56', NULL, NULL, NULL, 0, NULL, 0),
(50, 0, 0, 'as', 'c2', NULL, '<p>asd</p>\n', 1, 1, NULL, 1, '2019-06-29 10:22:41', NULL, NULL, NULL, 0, NULL, 0),
(51, 0, 0, 'asdasd', 'c2', NULL, '<p>asdasdas</p>\n', 1, 1, NULL, 1, '2019-06-29 10:24:52', NULL, NULL, NULL, 0, NULL, 0),
(52, 0, 0, 'asd', 'c2', NULL, '<p>asd</p>\n', 1, 1, NULL, 1, '2019-06-29 10:30:18', NULL, NULL, NULL, 0, NULL, 0),
(53, 0, 0, 'Test', 'c2', NULL, '<p dir="rtl">ويسعدنا أن نزف إليكم البشرى عن الضلوع في مشروع مبنى ( حياتنا دعوة<span dir="ltr">2 </span> ) ، طريق الأمير سلطان (خميس مشيط–الرياض) مقابل التراثية، وعلى مساحة 2500م2، لتشييد 10 أدوار<br />\n(قبو +  دور تجاري + ميزانين + 6 أدوار متكررة).</p>\n\n<p dir="rtl">حيث سيكون بإذن الله مقراً ومورداً لدعم جميع المشاريع والأنشطة الدعوية التي ينفذها المكتب التعاوني للدعوة والإرشاد وتوعية الجاليات بخميس مشيط</p>\n\n<p dir="rtl">وتعلمون رعاكم الله أننا جميعاً شركاء في مسيرة الدعوة إلى الله عز وجل، وأنتم بما لكم من أياد بيضاء في أعمال الخير في بلادنا نطمح أن تكون لكم مشاركة فاعلة وبصمة متميزة في أساس هذا الصرح الدعوي ، والذي يبقى أثره لكم طول الحياة وبعد الممات بإذن الله، سيما وأنه مشروع مستديم وريعه وقف للدعوة ولنشر العلم والخير، أسوة بالرسول الكريم <span dir="ltr">r</span> وأصحابه <span dir="ltr">y</span> .</p>\n', 1, 1, NULL, 1, '2019-06-29 10:36:52', NULL, NULL, NULL, 0, NULL, 0),
(54, 1, 0, 'شسيشسي', 'c2', NULL, '<p dir="rtl">ويسعدنا أن نزف إليكم البشرى عن الضلوع في مشروع مبنى ( حياتنا دعوة<span dir="ltr">2 </span> ) ، طريق الأمير سلطان (خميس مشيط–الرياض) مقابل التراثية، وعلى مساحة 2500م2، لتشييد 10 أدوار<br />\n(قبو +  دور تجاري + ميزانين + 6 أدوار متكررة).</p>\n\n<p dir="rtl">حيث سيكون بإذن الله مقراً ومورداً لدعم جميع المشاريع والأنشطة الدعوية التي ينفذها المكتب التعاوني للدعوة والإرشاد وتوعية الجاليات بخميس مشيط</p>\n\n<p dir="rtl">وتعلمون رعاكم الله أننا جميعاً شركاء في مسيرة الدعوة إلى الله عز وجل، وأنتم بما لكم من أياد بيضاء في أعمال الخير في بلادنا نطمح أن تكون لكم مشاركة فاعلة وبصمة متميزة في أساس هذا الصرح الدعوي ، والذي يبقى أثره لكم طول الحياة وبعد الممات بإذن الله، سيما وأنه مشروع مستديم وريعه وقف للدعوة ولنشر العلم والخير، أسوة بالرسول الكريم <span dir="ltr">r</span> وأصحابه <span dir="ltr">y</span> .</p>\n', 1, 1, NULL, 1, '2019-06-29 10:39:25', NULL, NULL, NULL, 0, NULL, 0),
(55, 0, 0, 'رسالة اختبار', 'c2', NULL, '<p dir="rtl">ويسعدنا أن نزف إليكم البشرى عن الضلوع في مشروع مبنى ( حياتنا دعوة<span dir="ltr">2 </span> ) ، طريق الأمير سلطان (خميس مشيط–الرياض) مقابل التراثية، وعلى مساحة 2500م2، لتشييد 10 أدوار<br />\n(قبو +  دور تجاري + ميزانين + 6 أدوار متكررة).</p>\n\n<p dir="rtl">حيث سيكون بإذن الله مقراً ومورداً لدعم جميع المشاريع والأنشطة الدعوية التي ينفذها المكتب التعاوني للدعوة والإرشاد وتوعية الجاليات بخميس مشيط</p>\n\n<p dir="rtl">وتعلمون رعاكم الله أننا جميعاً شركاء في مسيرة الدعوة إلى الله عز وجل، وأنتم بما لكم من أياد بيضاء في أعمال الخير في بلادنا نطمح أن تكون لكم مشاركة فاعلة وبصمة متميزة في أساس هذا الصرح الدعوي ، والذي يبقى أثره لكم طول الحياة وبعد الممات بإذن الله، سيما وأنه مشروع مستديم وريعه وقف للدعوة ولنشر العلم والخير، أسوة بالرسول الكريم <span dir="ltr">r</span> وأصحابه <span dir="ltr">y</span> .</p>\n', 1, 1, NULL, 1, '2019-06-29 10:43:05', NULL, NULL, NULL, 0, NULL, 0),
(56, 0, 0, 'رسالة اختبار', 'c2', NULL, '<p dir="rtl">ويسعدنا أن نزف إليكم البشرى عن الضلوع في مشروع مبنى ( حياتنا دعوة<span dir="ltr">2 </span> ) ، طريق الأمير سلطان (خميس مشيط–الرياض) مقابل التراثية، وعلى مساحة 2500م2، لتشييد 10 أدوار<br />\n(قبو +  دور تجاري + ميزانين + 6 أدوار متكررة).</p>\n\n<p dir="rtl">حيث سيكون بإذن الله مقراً ومورداً لدعم جميع المشاريع والأنشطة الدعوية التي ينفذها المكتب التعاوني للدعوة والإرشاد وتوعية الجاليات بخميس مشيط</p>\n\n<p dir="rtl">وتعلمون رعاكم الله أننا جميعاً شركاء في مسيرة الدعوة إلى الله عز وجل، وأنتم بما لكم من أياد بيضاء في أعمال الخير في بلادنا نطمح أن تكون لكم مشاركة فاعلة وبصمة متميزة في أساس هذا الصرح الدعوي ، والذي يبقى أثره لكم طول الحياة وبعد الممات بإذن الله، سيما وأنه مشروع مستديم وريعه وقف للدعوة ولنشر العلم والخير، أسوة بالرسول الكريم <span dir="ltr">r</span> وأصحابه <span dir="ltr">y</span> .</p>\n', 1, 1, NULL, 1, '2019-06-29 10:44:52', NULL, NULL, NULL, 0, NULL, 0),
(57, 0, 0, 'رسالة اختبار', 'c2', NULL, '<p dir="rtl">ويسعدنا أن نزف إليكم البشرى عن الضلوع في مشروع مبنى ( حياتنا دعوة<span dir="ltr">2 </span> ) ، طريق الأمير سلطان (خميس مشيط–الرياض) مقابل التراثية، وعلى مساحة 2500م2، لتشييد 10 أدوار<br />\n(قبو +  دور تجاري + ميزانين + 6 أدوار متكررة).</p>\n\n<p dir="rtl">حيث سيكون بإذن الله مقراً ومورداً لدعم جميع المشاريع والأنشطة الدعوية التي ينفذها المكتب التعاوني للدعوة والإرشاد وتوعية الجاليات بخميس مشيط</p>\n\n<p dir="rtl">وتعلمون رعاكم الله أننا جميعاً شركاء في مسيرة الدعوة إلى الله عز وجل، وأنتم بما لكم من أياد بيضاء في أعمال الخير في بلادنا نطمح أن تكون لكم مشاركة فاعلة وبصمة متميزة في أساس هذا الصرح الدعوي ، والذي يبقى أثره لكم طول الحياة وبعد الممات بإذن الله، سيما وأنه مشروع مستديم وريعه وقف للدعوة ولنشر العلم والخير، أسوة بالرسول الكريم <span dir="ltr">r</span> وأصحابه <span dir="ltr">y</span> .</p>\n', 1, 1, NULL, 1, '2019-06-29 10:46:26', NULL, NULL, NULL, 0, NULL, 0),
(58, 0, 0, 'تعديلات على نظان الطلبات ', 'c4', NULL, '<p>السادة نمسسنيتبا</p>\n\n<p>سابيسنتبايلمشنستباشسمنتيامنشتامنشسيابشمسنتينءئؤرشهعسلارهعصثي</p>\n\n<p>مئنءتؤلامسشنتللابمنسشتيلارؤمنسيتىؤرمنتسشيلارسشير</p>\n\n<p>شسيرلامشسنىيلارسكميتىرشسكيىرسير سير شسيرى شسيرسشير شسكميرسي ر سشير</p>\n\n<p>سشيمرىسشنيترىسكتيرلاسيرمسنتي </p>\n\n<p> </p>\n\n<p>جزيل الشكر</p>\n', 1, 1, NULL, 1, '2019-07-02 18:09:58', NULL, NULL, NULL, 0, NULL, 1),
(59, 0, 0, 'تأخر', '1664', NULL, '<p>راجع البصمة للتأكد من سير العمل</p>\n', 0, 1, NULL, 1672, '2019-07-10 19:55:18', NULL, NULL, NULL, 0, NULL, 0),
(60, 1, 0, 'محمد بن صالح آل زارب ', '1647', NULL, '<p>السلام عليكم ورحمة الله وبركاته</p>\n\n<p>هل يمكن استبعاد نساء الدعاة عاليات التأمين</p>\n', 0, 1, NULL, 1688, '2019-07-17 13:53:19', NULL, NULL, NULL, 0, NULL, 0),
(61, 0, 0, 'تأمين السعوديين', '1647', NULL, '<p>لاحظت عدم وجود السعوديين في بيان التأمين هل لا يوجد مشكلة في ذلك ؟</p>\n', 0, 1, NULL, 1688, '2019-07-17 13:57:55', NULL, NULL, NULL, 0, NULL, 0),
(62, 1, 0, 'طلب تعديل ملاحظات على البرنامج', 'c4', NULL, '<h1 style="text-align:center;"><strong>الأخ الغالي / م. طارق صافي              وفقه الله</strong></h1>\n\n<h2 dir="rtl" style="font-style:italic;text-align:center;">السلام عليكم ورحمة الله وبركاته وبعد</h2>\n\n<h2 dir="rtl" style="font-style:italic;text-align:center;">فأسأل الله أن يمدك بعونه توفيقه</h2>\n\n<h2 style="text-align:right;">وبناء على العمل في البرنامج نود أن نرفع لك أهم الملاحظات عليه وبحاجة إلى تعديل وهي على النحو التالي :</h2>\n\n<h2 dir="rtl">1. إلغاء رسائل البريد الالكتروني وتفعيل الرسائل النصية .</h2>\n\n<h2 dir="rtl">2. إمكانية تغيير اسم المستخدم وكلمة المرور من قبل المستخدم نفسه .</h2>\n\n<h2 dir="rtl">3. عمل بطاقة موظف .</h2>\n\n<h2 dir="rtl">4. خيارات عرض الجدول ( 10 – 20 – <span dir="ltr">all</span> ) .</h2>\n\n<h2 dir="rtl">5. الإجراء المستوفى تماما يؤرشف تلقائياً ، وبقاء الطلبات فقط التي لم يتم الإجراء عليها</h2>\n\n<h2 dir="rtl">6. إضافة اسم الشخص الذي يوافق على الطلب ( مثل تمت الموافقة بواسطة فلان ) .</h2>\n\n<h2 dir="rtl">7. في الطباعة لبعض الطلبات تكون الورقة مخالفة للذي مكتوب في البرنامج ( مثل نموذج الإجازة والعهدة المالية ) .</h2>\n\n<h2 dir="rtl">8. إضافة بعض النماذج المتعلقة بالآيزو ( مثل بحث حالة وغيرها ) لوجود جداول فيها .</h2>\n\n<h2 dir="rtl">9. إضافة سنتين في الإجازات بدل السنة الواحدة .</h2>\n\n<h2 dir="rtl">10. إمكانية وضع التاريخ الهجري والميلادي .</h2>\n\n<h2 dir="rtl">11. عند إضافة ملف الأكسل في الحضور والانصراف تظهر ملاحظة بالخطأ .</h2>\n\n<h2 dir="rtl">12. تظهر المكافآت في كل أشهر الرواتب . والمفروض تظهر كل شهر لحاله .</h2>\n\n<h2 dir="rtl">13. عند إضافة طلب وحذفه وإضافته من جديد أو غيره يظهر التكرار عند شاشة مدير المكتب .</h2>\n\n<h2 dir="rtl" style="font-style:italic;text-align:center;">شاكرين لك حسن تعاونك ودمتم في رعاية المولى</h2>\n', 1, 1, NULL, 1698, '2019-07-17 20:03:11', NULL, NULL, NULL, 0, NULL, 0),
(63, 0, 0, 'تعديلات على برنامج الصادر والوارد', 'c4', NULL, '<h2 dir="rtl" style="font-style:italic;">1. وجود خانة جديدة باسم ( إنشاء رقم صادر جديد ) أو ( إنشاء رقم وارد جديد ) .</h2>\n\n<h2 dir="rtl" style="font-style:italic;">2. عند فتح خانة جديدة للصادر يضاف التالي : ( الأهمية / التاريخ / الموضوع / صادر إلى / ملف الأرشيف / المرفقات / سحب صورة اسكنر ) ويكون إعطاء الرقم تلقائياً من نفس البرنامج .</h2>\n\n<h2 dir="rtl" style="font-style:italic;">3. عند فتح خانة جديدة للوارد يضاف التالي : ( الأهمية / التاريخ / جهة الورود / رقم الخطاب الوارد / تاريخ الخطاب الوارد / الموضوع / جهة الإحالة / ملف الأرشيف / المرفقات / سحب صورة اسكنر ) ويكون إعطاء الرقم تلقائياً من نفس البرنامج </h2>\n\n<h2 dir="rtl" style="font-style:italic;">4. عند الانتهاء من عملية الوارد يتم توجيه المعاملة تلقائياً لمدير المكتب .</h2>\n\n<h2 dir="rtl" style="font-style:italic;">5. إمكانية تعديل الصادر أو الوارد حسب الحاجة .</h2>\n\n<h2 dir="rtl" style="font-style:italic;">6. طباعة سند صادر ليتم استلامه من قبل أي شخص في الدائرة الحكومية او الخاصة ويتم التوقيع عليها . وإمكانية حفظها في نفس المعاملة .</h2>\n\n<h2 dir="rtl" style="font-style:italic;">7. عمل تقرير للصادر أو الوارد .</h2>\n\n<h2 dir="rtl" style="font-style:italic;"><span style="color:#FF0000;">* ملاحظة : هذه ملاحظات أولية بعد الانتهاء والتجربة قد يتم تعديلات طفيفة ...</span></h2>\n\n<h2 dir="rtl" style="font-style:italic;">شاكرين ومقدرين </h2>\n', 1, 1, NULL, 1698, '2019-07-23 20:12:03', NULL, NULL, NULL, 0, NULL, 0),
(64, 0, 0, 'Something good', 'c2', NULL, '<p><u><strong>Hi its me. ... . . . .</strong></u></p>\n', 1, 1, NULL, 1, '2019-08-03 09:15:57', NULL, NULL, NULL, 0, '0554944056640456456124', 0),
(65, 0, 0, 'NobTes', 'c2', NULL, '<p>asdasd</p>\n', 1, 1, NULL, 1, '2019-08-03 09:17:35', NULL, NULL, NULL, 0, '0554944056640456456124', 0),
(66, 0, 0, 'NobTes', 'c2', NULL, '<p>jjj</p>\n', 1, 1, NULL, 1, '2019-08-03 09:18:32', NULL, NULL, NULL, 0, '0554944056640456456124', 0),
(67, 0, 0, 'طلب تعديل جديد قبل الحج', 'c4', NULL, '<p>مو هيك الطريقة يا حبي</p>\n', 1, 1, NULL, 1698, '2019-08-04 11:40:19', NULL, NULL, 'files/speeches/2019/08/upload_2019_08_04_01.pdf', 1, 'الصادر العام', 0),
(68, 0, 0, 'تعميم عيد الفطر', 'c5', NULL, '<p>ى</p>\n', 1, 1, NULL, 1698, '2019-08-06 19:39:10', NULL, NULL, NULL, 2, 'الصادر العام', 0),
(69, 0, 0, '000', 'c5', NULL, '<p>سيلسيبلشيبلشيبلشيبليبشليشبلشيب</p>\n', 1, 1, NULL, 1698, '2019-08-06 19:41:41', NULL, NULL, 'files/speeches/2019/08/upload_2019_08_06_تأمين علاج موظفي المكتب التعاوني للدعوة بخميس مشيط - التعاونية للتأمين.pdf', 0, '0', 0),
(70, 0, 0, '0', 'c4', NULL, '<p>20000</p>\n', 1, 1, NULL, 1698, '2019-08-06 20:15:14', NULL, NULL, 'files/speeches/2019/08/1200px-Saudi_Vision_2030_logo.svg.png', 0, '0', 0),
(71, 0, 0, 'طلب إجازة جديدة', 'c5', NULL, NULL, 1, 1, NULL, 1698, '2019-09-01 11:45:30', NULL, NULL, 'files/speeches/2019/09/0001(4).jpg', 0, 'الصادر العام', 0),
(72, 0, 0, 'طلب تخطي نظام المخازن مؤقتاً', 'c4', NULL, '<h1 style="font-style:italic;text-align:center;"><cite><strong>السلام عليكم ورحمة الله وبركاته وبعد .</strong></cite></h1>\n\n<h1 style="font-style:italic;text-align:center;"><cite><strong>نظراً لوجود عوائق تؤدي إلى تأخر العمل بنظام المخازن ومن ضمنها عدم توفر الانترنت في أحد المكتبات وسفر الموظف المختص لذلك ، نأمل منكم التكرم بتأجيل العمل في نظام المخازن مؤقتاً والبدء في نظام أرشفة الملفات . وبشكل عاجل</strong></cite></h1>\n\n<h1 style="font-style:italic;text-align:center;"><cite><strong>شاكرين ومقدرين تعاونكم ودمتم في رعاية الله </strong></cite></h1>\n', 1, 1, NULL, 1698, '2019-09-30 17:34:02', NULL, NULL, NULL, 0, 'الصادر العام', 0),
(73, 0, 0, 'ظهور أخطاء في البرنامج', 'c4', NULL, '<p dir="rtl">المكرم المهندس / طارق صافي   وفقه الله</p>\n\n<p dir="rtl">السلام عليكم ورحمة الله وبركاته / وبعد</p>\n\n<p dir="rtl">نفيدكم علماً بظهور أخطاء في البرنامج ونأمل معالجتها في أسرع وقت ممكن وهي على النحو التالي :</p>\n\n<p dir="rtl">1. عند إرسال أي طلب موجود في البرنامج بدون أي مرفقات . يظهر عند مستقبل الطلب رابط . (مرفق)</p>\n\n<p dir="rtl">2. نأمل إضافة علامة (×) على جميع الطلبات عند إضافة مرفق على الطلب ثم يتم إلغاءه أو تعديله كما هو مرفق .</p>\n\n<p dir="rtl">3. ظهور تكرار في نموذج الاستئذان أثناء الدوام كما هو مرفق .</p>\n\n<p dir="rtl">4. الرسائل . لا زالت تأتي عند جميع أعضاء القسم مع أن الصحيح تظهر عند مدير القسم أو المعني فقط.</p>\n\n<p dir="rtl">ولكم وافر التحية والتقدير</p>\n', 1, 1, NULL, 1698, '2019-09-30 18:37:24', NULL, NULL, 'files/speeches/2019/09/upload_2019_09_30_نموذج المرفقات.jpg,files/speeches/2019/09/upload_2019_09_30_نموذج (1) نظام الاستئذان.pdf,files/speeches/2019/09/upload_2019_09_30_علامة ×.jpg', 0, 'الصادر العام', 0),
(74, 0, 0, 'طلب عقد اجتماع', 'c6', NULL, '<p>طلب عقد اجتماع بشأن تفعيل برنامج الذوق العام</p>\n', 1, 1, NULL, 1698, '2019-10-06 10:01:07', NULL, NULL, 'files/speeches/2019/10/Scan1.JPG', 0, 'الصادر العام', 0),
(75, 0, 0, 'بب', '1635', NULL, NULL, 0, 1, NULL, 1, '2019-11-10 22:50:06', NULL, NULL, NULL, 0, NULL, 0);

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

--
-- Table structure for table `stores_goods_delivery_voucher`
--

CREATE TABLE IF NOT EXISTS `stores_goods_delivery_voucher` (
  `id` int(11) unsigned NOT NULL,
  `type_of_recipient` tinyint(3) unsigned NOT NULL COMMENT '1 Customer || 2 Employee',
  `store` int(10) unsigned DEFAULT NULL COMMENT 'ref to ''general_stores_stores''',
  `customer` int(11) unsigned DEFAULT NULL COMMENT 'ref to ''accounting_accounts''',
  `employee` int(11) unsigned DEFAULT NULL COMMENT 'ref to ''hr_employment_applications''',
  `Created_by` int(11) unsigned DEFAULT NULL COMMENT 'ref to ''users''',
  `Created_date` datetime DEFAULT NULL,
  `last_update_by` int(11) unsigned DEFAULT NULL COMMENT 'ref to ''users''',
  `last_update_date` datetime DEFAULT NULL,
  `is_deleted` tinyint(4) unsigned DEFAULT NULL,
  `deleted_by` int(11) unsigned DEFAULT NULL COMMENT 'ref to ''users''',
  `deleted_date` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin ROW_FORMAT=COMPACT;

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

--
-- Table structure for table `stores_goods_delivery_voucher_items`
--

CREATE TABLE IF NOT EXISTS `stores_goods_delivery_voucher_items` (
  `id` int(11) unsigned NOT NULL,
  `voucher_id` int(10) unsigned DEFAULT NULL COMMENT 'ref to ''stores_goods_delivery_voucher''',
  `item` int(10) unsigned DEFAULT NULL COMMENT 'ref to ''stores_inventory''',
  `quantity` int(11) unsigned DEFAULT NULL,
  `Created_by` int(11) unsigned DEFAULT NULL COMMENT 'ref to ''users''',
  `Created_date` datetime DEFAULT NULL,
  `last_update_by` int(11) unsigned DEFAULT NULL COMMENT 'ref to ''users''',
  `last_update_date` datetime DEFAULT NULL,
  `is_deleted` tinyint(4) unsigned DEFAULT NULL,
  `deleted_by` int(11) unsigned DEFAULT NULL COMMENT 'ref to ''users''',
  `deleted_date` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin ROW_FORMAT=COMPACT;

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

--
-- Table structure for table `stores_goods_elimination_voucher`
--

CREATE TABLE IF NOT EXISTS `stores_goods_elimination_voucher` (
  `id` int(11) unsigned NOT NULL,
  `img` varchar(255) COLLATE utf8_bin DEFAULT NULL,
  `img_thumb` varchar(255) COLLATE utf8_bin DEFAULT NULL,
  `Created_by` int(11) unsigned DEFAULT NULL COMMENT 'ref to ''users''',
  `Created_date` datetime DEFAULT NULL,
  `last_update_by` int(11) unsigned DEFAULT NULL COMMENT 'ref to ''users''',
  `last_update_date` datetime DEFAULT NULL,
  `is_deleted` tinyint(4) unsigned DEFAULT NULL,
  `deleted_by` int(11) unsigned DEFAULT NULL COMMENT 'ref to ''users''',
  `deleted_date` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin ROW_FORMAT=COMPACT;

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

--
-- Table structure for table `stores_goods_elimination_voucher_items`
--

CREATE TABLE IF NOT EXISTS `stores_goods_elimination_voucher_items` (
  `id` int(11) unsigned NOT NULL,
  `voucher_id` int(10) unsigned DEFAULT NULL COMMENT 'ref to ''stores_goods_elimination_voucher_items''',
  `item` int(10) unsigned DEFAULT NULL COMMENT 'ref to ''stores_inventory''',
  `quantity` int(11) unsigned DEFAULT NULL,
  `Created_by` int(11) unsigned DEFAULT NULL COMMENT 'ref to ''users''',
  `Created_date` datetime DEFAULT NULL,
  `last_update_by` int(11) unsigned DEFAULT NULL COMMENT 'ref to ''users''',
  `last_update_date` datetime DEFAULT NULL,
  `is_deleted` tinyint(4) unsigned DEFAULT NULL,
  `deleted_by` int(11) unsigned DEFAULT NULL COMMENT 'ref to ''users''',
  `deleted_date` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin ROW_FORMAT=COMPACT;

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

--
-- Table structure for table `stores_goods_receipts_voucher`
--

CREATE TABLE IF NOT EXISTS `stores_goods_receipts_voucher` (
  `id` int(11) unsigned NOT NULL,
  `deliverer_type` tinyint(3) unsigned DEFAULT NULL,
  `employee` int(10) unsigned DEFAULT NULL COMMENT 'ref to ''hr_employment_applications''',
  `store` int(10) unsigned DEFAULT NULL COMMENT 'ref to ''general_stores_stores''',
  `supplier` int(11) unsigned DEFAULT NULL COMMENT 'ref to ''accounting_accounts''',
  `Created_by` int(11) unsigned DEFAULT NULL COMMENT 'ref to ''users''',
  `Created_date` datetime DEFAULT NULL,
  `last_update_by` int(11) unsigned DEFAULT NULL COMMENT 'ref to ''users''',
  `last_update_date` datetime DEFAULT NULL,
  `is_deleted` tinyint(4) unsigned DEFAULT NULL,
  `deleted_by` int(11) unsigned DEFAULT NULL COMMENT 'ref to ''users''',
  `deleted_date` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin ROW_FORMAT=COMPACT;

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

--
-- Table structure for table `stores_goods_receipts_voucher_items`
--

CREATE TABLE IF NOT EXISTS `stores_goods_receipts_voucher_items` (
  `id` int(11) unsigned NOT NULL,
  `voucher_id` int(10) unsigned DEFAULT NULL COMMENT 'ref to ''stores_goods_receipts_voucher''',
  `item` int(10) unsigned DEFAULT NULL COMMENT 'ref to ''stores_inventory''',
  `quantity` int(11) unsigned DEFAULT NULL,
  `Created_by` int(11) unsigned DEFAULT NULL COMMENT 'ref to ''users''',
  `Created_date` datetime DEFAULT NULL,
  `last_update_by` int(11) unsigned DEFAULT NULL COMMENT 'ref to ''users''',
  `last_update_date` datetime DEFAULT NULL,
  `is_deleted` tinyint(4) unsigned DEFAULT NULL,
  `deleted_by` int(11) unsigned DEFAULT NULL COMMENT 'ref to ''users''',
  `deleted_date` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin ROW_FORMAT=COMPACT;

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

--
-- Table structure for table `stores_goods_transfare_voucher`
--

CREATE TABLE IF NOT EXISTS `stores_goods_transfare_voucher` (
  `id` int(11) unsigned NOT NULL,
  `from_store` int(10) unsigned DEFAULT NULL COMMENT 'ref to ''general_stores_stores''',
  `to_store` int(10) unsigned DEFAULT NULL COMMENT 'ref to ''general_stores_stores''',
  `Created_by` int(11) unsigned DEFAULT NULL COMMENT 'ref to ''users''',
  `Created_date` datetime DEFAULT NULL,
  `last_update_by` int(11) unsigned DEFAULT NULL COMMENT 'ref to ''users''',
  `last_update_date` datetime DEFAULT NULL,
  `is_deleted` tinyint(4) unsigned DEFAULT NULL,
  `deleted_by` int(11) unsigned DEFAULT NULL COMMENT 'ref to ''users''',
  `deleted_date` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin ROW_FORMAT=COMPACT;

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

--
-- Table structure for table `stores_goods_transfare_voucher_items`
--

CREATE TABLE IF NOT EXISTS `stores_goods_transfare_voucher_items` (
  `id` int(11) unsigned NOT NULL,
  `voucher_id` int(10) unsigned DEFAULT NULL COMMENT 'ref to ''stores_goods_transfare_voucher''',
  `item` int(10) unsigned DEFAULT NULL COMMENT 'ref to ''stores_inventory''',
  `new_item` int(10) unsigned DEFAULT NULL COMMENT 'ref to ''stores_inventory''',
  `quantity` int(11) unsigned DEFAULT NULL,
  `Created_by` int(11) unsigned DEFAULT NULL COMMENT 'ref to ''users''',
  `Created_date` datetime DEFAULT NULL,
  `last_update_by` int(11) unsigned DEFAULT NULL COMMENT 'ref to ''users''',
  `last_update_date` datetime DEFAULT NULL,
  `is_deleted` tinyint(4) unsigned DEFAULT NULL,
  `deleted_by` int(11) unsigned DEFAULT NULL COMMENT 'ref to ''users''',
  `deleted_date` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin ROW_FORMAT=COMPACT;

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

--
-- Table structure for table `stores_inventory`
--

CREATE TABLE IF NOT EXISTS `stores_inventory` (
  `id` int(11) unsigned NOT NULL,
  `name_ar` varchar(255) COLLATE utf8_bin DEFAULT NULL,
  `name_en` varchar(255) COLLATE utf8_bin DEFAULT NULL,
  `shelf` varchar(255) COLLATE utf8_bin DEFAULT NULL,
  `barcode` varchar(255) COLLATE utf8_bin DEFAULT NULL,
  `category` int(10) unsigned DEFAULT NULL COMMENT 'ref to ''general_stores_categories''',
  `unit` int(10) unsigned DEFAULT NULL COMMENT 'ref to ''general_stores_units''',
  `sales_price` int(10) unsigned DEFAULT NULL,
  `min_qty` int(10) unsigned DEFAULT NULL,
  `max_qty` int(10) unsigned DEFAULT NULL,
  `store` int(10) unsigned DEFAULT NULL COMMENT 'ref to ''general_stores_stores''',
  `cost` int(10) DEFAULT NULL,
  `commision` int(10) DEFAULT NULL,
  `commision_percentage` int(10) unsigned DEFAULT NULL,
  `service_item` tinyint(3) unsigned DEFAULT NULL,
  `description` text COLLATE utf8_bin,
  `Created_by` int(11) unsigned DEFAULT NULL COMMENT 'ref to ''users''',
  `Created_date` datetime DEFAULT NULL,
  `last_update_by` int(11) unsigned DEFAULT NULL COMMENT 'ref to ''users''',
  `last_update_date` datetime DEFAULT NULL,
  `is_deleted` tinyint(4) unsigned DEFAULT NULL,
  `deleted_by` int(11) unsigned DEFAULT NULL COMMENT 'ref to ''users''',
  `deleted_date` datetime DEFAULT NULL,
  `init_price` text COLLATE utf8_bin
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin ROW_FORMAT=COMPACT;

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

--
-- Table structure for table `stores_purchase`
--

CREATE TABLE IF NOT EXISTS `stores_purchase` (
  `id` int(11) unsigned NOT NULL,
  `type` varchar(10) COLLATE utf8_bin DEFAULT NULL COMMENT 'IPO,PO,PI',
  `quotation` int(11) unsigned DEFAULT NULL,
  `Created_by` int(11) unsigned DEFAULT NULL COMMENT 'ref to ''users''',
  `Created_date` datetime DEFAULT NULL,
  `last_update_by` int(11) unsigned DEFAULT NULL COMMENT 'ref to ''users''',
  `last_update_date` datetime DEFAULT NULL,
  `is_deleted` tinyint(4) unsigned DEFAULT NULL,
  `deleted_by` int(11) unsigned DEFAULT NULL COMMENT 'ref to ''users''',
  `deleted_date` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin ROW_FORMAT=COMPACT;

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

--
-- Table structure for table `stores_purchase_elements`
--

CREATE TABLE IF NOT EXISTS `stores_purchase_elements` (
  `id` int(11) unsigned NOT NULL,
  `purchase_number` int(11) unsigned DEFAULT NULL COMMENT 'ref to ''stores_purchase''',
  `item` int(10) unsigned DEFAULT NULL COMMENT 'ref to ''stores_inventory''',
  `quantity` int(10) unsigned DEFAULT NULL,
  `Created_by` int(11) unsigned DEFAULT NULL COMMENT 'ref to ''users''',
  `Created_date` datetime DEFAULT NULL,
  `last_update_by` int(11) unsigned DEFAULT NULL COMMENT 'ref to ''users''',
  `last_update_date` datetime DEFAULT NULL,
  `is_deleted` tinyint(4) unsigned DEFAULT NULL,
  `deleted_by` int(11) unsigned DEFAULT NULL COMMENT 'ref to ''users''',
  `deleted_date` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin ROW_FORMAT=COMPACT;

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

--
-- Table structure for table `stores_purchase_elements_returned`
--

CREATE TABLE IF NOT EXISTS `stores_purchase_elements_returned` (
  `id` int(11) unsigned NOT NULL,
  `element` int(10) unsigned DEFAULT NULL COMMENT 'ref to ''stores_purchase_elements''',
  `quantity` int(10) unsigned DEFAULT NULL,
  `notes` tinytext COLLATE utf8_bin,
  `returned_date` date DEFAULT NULL,
  `Created_by` int(11) unsigned DEFAULT NULL COMMENT 'ref to ''users''',
  `Created_date` datetime DEFAULT NULL,
  `last_update_by` int(11) unsigned DEFAULT NULL COMMENT 'ref to ''users''',
  `last_update_date` datetime DEFAULT NULL,
  `is_deleted` tinyint(4) unsigned DEFAULT NULL,
  `deleted_by` int(11) unsigned DEFAULT NULL COMMENT 'ref to ''users''',
  `deleted_date` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin ROW_FORMAT=COMPACT;

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

--
-- Table structure for table `stores_sales_elements_returned`
--

CREATE TABLE IF NOT EXISTS `stores_sales_elements_returned` (
  `id` int(11) unsigned NOT NULL,
  `element` int(10) unsigned DEFAULT NULL COMMENT 'ref to ''stores_purchase_elements''',
  `quantity` int(10) unsigned DEFAULT NULL,
  `notes` tinytext COLLATE utf8_bin,
  `returned_date` date DEFAULT NULL,
  `Created_by` int(11) unsigned DEFAULT NULL COMMENT 'ref to ''users''',
  `Created_date` datetime DEFAULT NULL,
  `last_update_by` int(11) unsigned DEFAULT NULL COMMENT 'ref to ''users''',
  `last_update_date` datetime DEFAULT NULL,
  `is_deleted` tinyint(4) unsigned DEFAULT NULL,
  `deleted_by` int(11) unsigned DEFAULT NULL COMMENT 'ref to ''users''',
  `deleted_date` datetime DEFAULT NULL
) ENGINE=InnoDB AUTO_INCREMENT=10 DEFAULT CHARSET=utf8 COLLATE=utf8_bin ROW_FORMAT=COMPACT;

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

--
-- Table structure for table `stores_sales_invoice`
--

CREATE TABLE IF NOT EXISTS `stores_sales_invoice` (
  `id` int(11) unsigned NOT NULL,
  `type_of_recipient` tinyint(3) unsigned NOT NULL COMMENT '1 Customer || 2 Employee',
  `store` int(10) unsigned DEFAULT NULL COMMENT 'ref to ''general_stores_stores''',
  `customer` int(11) unsigned DEFAULT NULL COMMENT 'ref to ''accounting_accounts''',
  `student` int(11) unsigned DEFAULT NULL COMMENT 'ref to ''students_applications''',
  `employee` int(11) unsigned DEFAULT NULL COMMENT 'ref to ''hr_employment_applications''',
  `Created_by` int(11) unsigned DEFAULT NULL COMMENT 'ref to ''users''',
  `Created_date` datetime DEFAULT NULL,
  `last_update_by` int(11) unsigned DEFAULT NULL COMMENT 'ref to ''users''',
  `last_update_date` datetime DEFAULT NULL,
  `is_deleted` tinyint(4) unsigned DEFAULT NULL,
  `deleted_by` int(11) unsigned DEFAULT NULL COMMENT 'ref to ''users''',
  `deleted_date` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin ROW_FORMAT=COMPACT;

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

--
-- Table structure for table `stores_sales_invoice_items`
--

CREATE TABLE IF NOT EXISTS `stores_sales_invoice_items` (
  `id` int(11) unsigned NOT NULL,
  `voucher_id` int(10) unsigned DEFAULT NULL COMMENT 'ref to ''stores_sales_invoice''',
  `item` int(10) unsigned DEFAULT NULL COMMENT 'ref to ''stores_inventory''',
  `quantity` int(11) unsigned DEFAULT NULL,
  `price` int(11) unsigned DEFAULT NULL,
  `Created_by` int(11) unsigned DEFAULT NULL COMMENT 'ref to ''users''',
  `Created_date` datetime DEFAULT NULL,
  `last_update_by` int(11) unsigned DEFAULT NULL COMMENT 'ref to ''users''',
  `last_update_date` datetime DEFAULT NULL,
  `is_deleted` tinyint(4) unsigned DEFAULT NULL,
  `deleted_by` int(11) unsigned DEFAULT NULL COMMENT 'ref to ''users''',
  `deleted_date` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin ROW_FORMAT=COMPACT;

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

--
-- Table structure for table `stores_stocktaking_process`
--

CREATE TABLE IF NOT EXISTS `stores_stocktaking_process` (
  `id` int(11) unsigned NOT NULL,
  `type` tinyint(3) unsigned DEFAULT NULL COMMENT '1 periodic & 2 continuous & 3 bpbalance',
  `store_id` int(11) unsigned DEFAULT NULL COMMENT 'ref to ''general_stores_stores''',
  `categorie_id` int(11) unsigned DEFAULT NULL COMMENT 'ref to ''general_stores_categories''',
  `stocktake` tinyint(3) unsigned DEFAULT NULL COMMENT '1 تعني ان العملية جرد',
  `stocktake_date` datetime DEFAULT NULL COMMENT 'تاريخ الجرد',
  `stocktake_by` int(10) unsigned DEFAULT NULL COMMENT 'ref to ''users''',
  `Created_by` int(11) unsigned DEFAULT NULL COMMENT 'ref to ''users''',
  `Created_date` datetime DEFAULT NULL,
  `last_update_by` int(11) unsigned DEFAULT NULL COMMENT 'ref to ''users''',
  `last_update_date` datetime DEFAULT NULL,
  `is_deleted` tinyint(4) unsigned DEFAULT NULL,
  `deleted_by` int(11) unsigned DEFAULT NULL COMMENT 'ref to ''users''',
  `deleted_date` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin ROW_FORMAT=COMPACT;

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

--
-- Table structure for table `stores_stocktaking_process_elements`
--

CREATE TABLE IF NOT EXISTS `stores_stocktaking_process_elements` (
  `id` int(11) unsigned NOT NULL,
  `stocktaking_id` int(11) unsigned DEFAULT NULL COMMENT 'ref to ''stores_stocktaking_process''',
  `item` int(11) unsigned DEFAULT NULL COMMENT 'ref to ''stores_inventory''',
  `qty` int(11) unsigned DEFAULT NULL COMMENT 'الكمية بعد الجرد',
  `qty_before_stocktaking` int(11) DEFAULT NULL COMMENT 'الكمية قبل الجرد',
  `cost_before_stocktaking` int(11) DEFAULT NULL COMMENT 'التكلفة قبل عملية الجرد',
  `cost_after_stocktaking` int(11) DEFAULT NULL COMMENT 'التكلفة بعد عملية الجرد',
  `cost_difference` int(11) DEFAULT NULL,
  `qty_diff` int(11) DEFAULT NULL COMMENT 'qty - qty_before_stocktaking',
  `stocktake` tinyint(3) unsigned DEFAULT NULL COMMENT '1 تعني ان العملية جرد',
  `stocktake_date` datetime DEFAULT NULL COMMENT 'تاريخ الجرد',
  `stocktake_by` int(10) unsigned DEFAULT NULL COMMENT 'ref to ''users''',
  `Created_by` int(11) unsigned DEFAULT NULL COMMENT 'ref to ''users''',
  `Created_date` datetime DEFAULT NULL,
  `last_update_by` int(11) unsigned DEFAULT NULL COMMENT 'ref to ''users''',
  `last_update_date` datetime DEFAULT NULL,
  `is_deleted` tinyint(4) unsigned DEFAULT NULL,
  `deleted_by` int(11) unsigned DEFAULT NULL COMMENT 'ref to ''users''',
  `deleted_date` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin ROW_FORMAT=COMPACT;

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

--
-- Table structure for table `students_absents`
--

CREATE TABLE IF NOT EXISTS `students_absents` (
  `id` int(11) unsigned NOT NULL,
  `student_id` int(11) unsigned DEFAULT NULL COMMENT 'ref to ''users''',
  `section_id` int(11) unsigned DEFAULT NULL COMMENT 'ref to ''study_sections''',
  `absent_date` date DEFAULT NULL COMMENT 'تاريخ الغياب',
  `details` text COLLATE utf8_bin,
  `Created_by` int(11) unsigned DEFAULT NULL COMMENT 'ref to ''users''',
  `Created_date` datetime DEFAULT NULL,
  `last_update_by` int(11) unsigned DEFAULT NULL COMMENT 'ref to ''users''',
  `last_update_date` datetime DEFAULT NULL,
  `is_deleted` tinyint(4) unsigned DEFAULT NULL,
  `deleted_by` int(11) unsigned DEFAULT NULL COMMENT 'ref to ''users''',
  `deleted_date` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin ROW_FORMAT=COMPACT COMMENT='غيابات الطلبة في الصفوف';

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

--
-- Table structure for table `students_applications`
--

CREATE TABLE IF NOT EXISTS `students_applications` (
  `id` int(11) unsigned NOT NULL,
  `cancelled_date` datetime DEFAULT NULL,
  `id_can_order_other` tinyint(3) unsigned DEFAULT NULL COMMENT '1 yes',
  `S_Type` int(11) unsigned DEFAULT NULL COMMENT 'ref to ''students_study_state''',
  `Grade` tinyint(3) unsigned DEFAULT NULL,
  `rejected` tinyint(3) unsigned DEFAULT NULL COMMENT '1 rejected',
  `rejected_date` datetime DEFAULT NULL,
  `rejected_by` int(10) unsigned DEFAULT NULL COMMENT 'ref to ''users'' table',
  `rejected_notes` text COLLATE utf8_bin,
  `finished` tinyint(3) unsigned DEFAULT NULL,
  `app_id` varchar(50) COLLATE utf8_bin DEFAULT NULL,
  `app_password` varchar(50) COLLATE utf8_bin DEFAULT NULL,
  `student_id` int(11) unsigned DEFAULT NULL COMMENT 'ref to ''users'' table',
  `study_type` int(11) unsigned DEFAULT NULL COMMENT 'ref to ''study_types''',
  `student_type` int(11) unsigned DEFAULT NULL COMMENT 'ref to ''students_types''',
  `degree` int(11) unsigned DEFAULT NULL COMMENT 'ref to ''study_degrees''',
  `level` int(11) unsigned DEFAULT NULL COMMENT 'ref to ''study_levels''',
  `password` varchar(100) COLLATE utf8_bin DEFAULT NULL,
  `app_type` varchar(10) COLLATE utf8_bin DEFAULT NULL COMMENT 'ma or ba',
  `amount_to_pay` int(11) NOT NULL DEFAULT '0',
  `amount_paid` tinyint(4) NOT NULL DEFAULT '1' COMMENT '1 No, 2 Yes',
  `Cash` int(11) NOT NULL DEFAULT '0',
  `Bank_Transfer` int(11) NOT NULL DEFAULT '0',
  `ATM` int(11) NOT NULL DEFAULT '0',
  `Cheque` int(11) NOT NULL DEFAULT '0',
  `check_bank` varchar(255) COLLATE utf8_bin DEFAULT NULL,
  `check_number` varchar(255) COLLATE utf8_bin DEFAULT NULL,
  `check_maturity_date` date DEFAULT NULL,
  `Discount` int(11) NOT NULL DEFAULT '0',
  `major` int(11) unsigned DEFAULT NULL COMMENT 'ref to ''study_majors''',
  `academic_supervisor` int(11) unsigned DEFAULT NULL COMMENT 'ref to ''users''',
  `Initial_Approval` tinyint(4) unsigned NOT NULL DEFAULT '1' COMMENT '1 No, 2 Yes',
  `interview_date` datetime DEFAULT NULL,
  `interview_state` varchar(10) COLLATE utf8_bin DEFAULT NULL COMMENT 'accept,reject',
  `interview_notes` text COLLATE utf8_bin,
  `ip_of_application` varchar(40) COLLATE utf8_bin DEFAULT NULL,
  `need_to_review` tinyint(4) unsigned DEFAULT NULL COMMENT '1 Yes, NULL No',
  `Full_Name_Arabic` varchar(255) COLLATE utf8_bin DEFAULT NULL,
  `Full_Name_English` varchar(255) COLLATE utf8_bin DEFAULT NULL,
  `Place_of_birth` varchar(255) COLLATE utf8_bin DEFAULT NULL,
  `Date_of_Birth` date DEFAULT NULL,
  `Date_of_Birth_higri` varchar(50) COLLATE utf8_bin DEFAULT NULL,
  `Gender` tinyint(4) unsigned DEFAULT NULL,
  `Academic_Number` varchar(50) COLLATE utf8_bin DEFAULT NULL,
  `Nationality` int(11) unsigned DEFAULT NULL COMMENT 'ref to ''general_countries''',
  `ID_No` varchar(50) COLLATE utf8_bin DEFAULT NULL,
  `ID_Expiry_Date` date DEFAULT NULL,
  `ID_Expiry_Date_higri` varchar(50) COLLATE utf8_bin DEFAULT NULL,
  `Mobile` varchar(50) COLLATE utf8_bin DEFAULT NULL,
  `Phone` varchar(50) COLLATE utf8_bin DEFAULT NULL,
  `Office_Phone` varchar(50) COLLATE utf8_bin DEFAULT NULL,
  `Email` varchar(255) COLLATE utf8_bin DEFAULT NULL,
  `Address` tinytext COLLATE utf8_bin,
  `Sponsor_Full_Name_Arabic` varchar(255) COLLATE utf8_bin DEFAULT NULL,
  `Sponsor_Full_Name_English` varchar(255) COLLATE utf8_bin DEFAULT NULL,
  `Sponsor_Mobile` varchar(255) COLLATE utf8_bin DEFAULT NULL,
  `Sponsor_Office_number` varchar(255) COLLATE utf8_bin DEFAULT NULL,
  `Sponsor_Email` varchar(255) COLLATE utf8_bin DEFAULT NULL,
  `Sponsor_Legal_Form` int(10) unsigned DEFAULT NULL,
  `Sponsor_Address` varchar(255) COLLATE utf8_bin DEFAULT NULL,
  `hs_School_Name` varchar(255) COLLATE utf8_bin DEFAULT NULL,
  `hs_Certificate_Type` int(11) unsigned DEFAULT NULL COMMENT 'ref to ''general_hs_certificate_type''',
  `hs_Qudurat_points` int(10) unsigned DEFAULT NULL,
  `hs_Tofel_Points` int(10) unsigned DEFAULT NULL,
  `hs_Country` int(11) unsigned DEFAULT NULL,
  `hs_Graduation_Year` year(4) DEFAULT NULL,
  `hs_Graduation_Year_Higri` varchar(50) COLLATE utf8_bin DEFAULT NULL,
  `hs_Percentage` varchar(50) COLLATE utf8_bin DEFAULT NULL,
  `hs_Grade_total` int(10) unsigned DEFAULT NULL,
  `hs_Tahsele_Points` int(10) unsigned DEFAULT NULL,
  `hs_City` int(10) unsigned DEFAULT NULL,
  `ba_College` varchar(255) COLLATE utf8_bin DEFAULT NULL,
  `ba_University` varchar(255) COLLATE utf8_bin DEFAULT NULL,
  `ba_Major` varchar(255) COLLATE utf8_bin DEFAULT NULL,
  `ba_General_Grade` varchar(150) COLLATE utf8_bin DEFAULT NULL,
  `ba_GPA` float DEFAULT NULL,
  `ba_GPA_old` varchar(100) COLLATE utf8_bin DEFAULT NULL,
  `ba_Grade_Total` varchar(100) COLLATE utf8_bin DEFAULT NULL,
  `ba_Graduation_Year` year(4) DEFAULT NULL,
  `ba_Graduation_Year_higri` varchar(50) COLLATE utf8_bin DEFAULT NULL,
  `Master_College` varchar(255) COLLATE utf8_bin DEFAULT NULL,
  `Master_University` varchar(255) COLLATE utf8_bin DEFAULT NULL,
  `Master_Major` varchar(255) COLLATE utf8_bin DEFAULT NULL,
  `Master_Graduate_year` varchar(255) COLLATE utf8_bin DEFAULT NULL,
  `Master_Total_Grade` varchar(255) COLLATE utf8_bin DEFAULT NULL,
  `Master_General_Grade` varchar(255) COLLATE utf8_bin DEFAULT NULL,
  `Master_GPA` varchar(255) COLLATE utf8_bin DEFAULT NULL,
  `g_Full_Name_Arabic` varchar(255) COLLATE utf8_bin DEFAULT NULL,
  `g_Full_Name_English` varchar(255) COLLATE utf8_bin DEFAULT NULL,
  `g_Nationality` varchar(255) COLLATE utf8_bin DEFAULT NULL,
  `g_email` varchar(255) COLLATE utf8_bin DEFAULT NULL,
  `g_job_title` varchar(255) COLLATE utf8_bin DEFAULT NULL,
  `g_Residency_No_Expiry_Date` varchar(255) COLLATE utf8_bin DEFAULT NULL,
  `g_Address` varchar(255) COLLATE utf8_bin DEFAULT NULL,
  `g_id_number` varchar(255) COLLATE utf8_bin DEFAULT NULL,
  `g_mobile` varchar(255) COLLATE utf8_bin DEFAULT NULL,
  `g_relation` int(10) unsigned DEFAULT NULL COMMENT 'ref to ''general_student_parent_relation''',
  `g_home_number` varchar(255) COLLATE utf8_bin DEFAULT NULL,
  `g_employer` varchar(255) COLLATE utf8_bin DEFAULT NULL,
  `g_study_level` int(10) unsigned DEFAULT NULL COMMENT 'ref to ''general_education_levels''',
  `E_Employeed` varchar(10) COLLATE utf8_bin DEFAULT NULL COMMENT 'no,yes',
  `E_Eapproval` varchar(10) COLLATE utf8_bin DEFAULT NULL,
  `E_Employer` varchar(255) COLLATE utf8_bin DEFAULT NULL,
  `E_Location` varchar(255) COLLATE utf8_bin DEFAULT NULL,
  `E_Experience_level` tinyint(3) unsigned DEFAULT NULL,
  `E_Occupation` varchar(255) COLLATE utf8_bin DEFAULT NULL,
  `E_work_tel_number` varchar(255) COLLATE utf8_bin DEFAULT NULL,
  `E_Salary` varchar(255) COLLATE utf8_bin DEFAULT NULL,
  `E_Level` varchar(255) COLLATE utf8_bin DEFAULT NULL,
  `Starting_Date` varchar(255) COLLATE utf8_bin DEFAULT NULL,
  `E_Organization_ID` varchar(255) COLLATE utf8_bin DEFAULT NULL,
  `browser` varchar(50) COLLATE utf8_bin DEFAULT NULL,
  `os` varchar(50) COLLATE utf8_bin DEFAULT NULL,
  `device` varchar(50) COLLATE utf8_bin DEFAULT NULL,
  `is_deleted` tinyint(4) unsigned DEFAULT NULL,
  `deleted_by` int(11) unsigned DEFAULT NULL COMMENT 'ref to ''users''',
  `deleted_date` datetime DEFAULT NULL,
  `Created_by` int(11) unsigned DEFAULT NULL COMMENT 'ref to ''users''',
  `last_update_by` int(11) unsigned DEFAULT NULL COMMENT 'ref to ''users''',
  `Created_date` datetime DEFAULT NULL,
  `last_update_date` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin ROW_FORMAT=COMPACT;

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

--
-- Table structure for table `students_applications_documents`
--

CREATE TABLE IF NOT EXISTS `students_applications_documents` (
  `id` int(11) unsigned NOT NULL,
  `student_application_id` int(11) unsigned NOT NULL COMMENT 'ref to ''students_applications''',
  `document_type` int(11) unsigned NOT NULL COMMENT 'ref to ''students_applications_documents_types''',
  `file_path` varchar(255) COLLATE utf8_bin NOT NULL,
  `Created_by` int(11) unsigned DEFAULT NULL COMMENT 'ref to ''users''',
  `Created_date` datetime DEFAULT NULL,
  `last_update_by` int(11) unsigned DEFAULT NULL COMMENT 'ref to ''users''',
  `last_update_date` datetime DEFAULT NULL,
  `is_deleted` tinyint(4) unsigned DEFAULT NULL,
  `deleted_by` int(11) unsigned DEFAULT NULL COMMENT 'ref to ''users''',
  `deleted_date` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin ROW_FORMAT=COMPACT;

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

--
-- Table structure for table `students_applications_documents_types`
--

CREATE TABLE IF NOT EXISTS `students_applications_documents_types` (
  `id` int(11) unsigned NOT NULL,
  `student_application_type` char(50) COLLATE utf8_bin NOT NULL COMMENT 'ba,ma',
  `name_ar` varchar(255) COLLATE utf8_bin NOT NULL,
  `name_en` varchar(255) COLLATE utf8_bin NOT NULL,
  `max_file_size` tinyint(3) unsigned NOT NULL COMMENT 'MB',
  `allow_file_ext` varchar(255) COLLATE utf8_bin NOT NULL,
  `required` tinyint(3) unsigned NOT NULL COMMENT '0 no, 1 Yes',
  `is_deleted` tinyint(3) unsigned DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin ROW_FORMAT=COMPACT;

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

--
-- Table structure for table `students_applications_steps`
--

CREATE TABLE IF NOT EXISTS `students_applications_steps` (
  `id` int(11) unsigned NOT NULL,
  `student_application_id` int(11) unsigned NOT NULL COMMENT 'ref to ''students_applications''',
  `step` char(50) COLLATE utf8_bin NOT NULL,
  `Created_by` int(11) unsigned DEFAULT NULL COMMENT 'ref to ''users''',
  `Created_date` datetime DEFAULT NULL,
  `last_update_by` int(11) unsigned DEFAULT NULL COMMENT 'ref to ''users''',
  `last_update_date` datetime DEFAULT NULL,
  `is_deleted` tinyint(4) unsigned DEFAULT NULL,
  `deleted_by` int(11) unsigned DEFAULT NULL COMMENT 'ref to ''users''',
  `deleted_date` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin ROW_FORMAT=COMPACT;

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

--
-- Table structure for table `students_courses_equations`
--

CREATE TABLE IF NOT EXISTS `students_courses_equations` (
  `id` int(11) unsigned NOT NULL,
  `state` tinyint(3) unsigned DEFAULT NULL COMMENT '1 Pending Approval | 2 Accepted | 3 Rejected',
  `course_id` int(10) unsigned DEFAULT NULL COMMENT 'ref to ''study_courses''',
  `student_id` int(10) unsigned DEFAULT NULL COMMENT 'ref to ''users''',
  `equivalent_course` varchar(255) COLLATE utf8_bin DEFAULT NULL,
  `equivalent_course_mark` varchar(255) COLLATE utf8_bin DEFAULT NULL,
  `Created_by` int(11) unsigned DEFAULT NULL COMMENT 'ref to ''users''',
  `Created_date` datetime DEFAULT NULL,
  `last_update_by` int(11) unsigned DEFAULT NULL COMMENT 'ref to ''users''',
  `last_update_date` datetime DEFAULT NULL,
  `is_deleted` tinyint(4) unsigned DEFAULT NULL,
  `deleted_by` int(11) unsigned DEFAULT NULL COMMENT 'ref to ''users''',
  `deleted_date` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin ROW_FORMAT=COMPACT;

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

--
-- Table structure for table `students_infractions`
--

CREATE TABLE IF NOT EXISTS `students_infractions` (
  `id` int(11) unsigned NOT NULL,
  `student_id` int(11) unsigned DEFAULT NULL COMMENT 'ref to ''users''',
  `section_id` int(11) unsigned DEFAULT NULL COMMENT 'ref to ''study_sections''',
  `infraction_type` int(11) unsigned DEFAULT NULL COMMENT 'ref to ''general_elearning_infractions''',
  `details` text COLLATE utf8_bin,
  `Created_by` int(11) unsigned DEFAULT NULL COMMENT 'ref to ''users''',
  `Created_date` datetime DEFAULT NULL,
  `last_update_by` int(11) unsigned DEFAULT NULL COMMENT 'ref to ''users''',
  `last_update_date` datetime DEFAULT NULL,
  `is_deleted` tinyint(4) unsigned DEFAULT NULL,
  `deleted_by` int(11) unsigned DEFAULT NULL COMMENT 'ref to ''users''',
  `deleted_date` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin ROW_FORMAT=COMPACT COMMENT='مخالفات الطلبة في الصفوف';

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

--
-- Table structure for table `students_logs`
--

CREATE TABLE IF NOT EXISTS `students_logs` (
  `id` int(11) unsigned NOT NULL,
  `operation` int(11) unsigned DEFAULT NULL COMMENT 'ref to ''students_operations''',
  `old_int_val` int(11) DEFAULT NULL,
  `new_int_val` int(11) DEFAULT NULL,
  `ref_id` int(11) unsigned DEFAULT NULL COMMENT '1 not paid | 2 paid',
  `ref1_id` int(11) unsigned DEFAULT NULL,
  `Created_by` int(11) unsigned DEFAULT NULL COMMENT 'ref to ''users''',
  `Created_date` datetime DEFAULT NULL,
  `last_update_by` int(11) unsigned DEFAULT NULL COMMENT 'ref to ''users''',
  `last_update_date` datetime DEFAULT NULL,
  `is_deleted` tinyint(4) unsigned DEFAULT NULL,
  `deleted_by` int(11) unsigned DEFAULT NULL COMMENT 'ref to ''users''',
  `deleted_date` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin ROW_FORMAT=COMPACT;

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

--
-- Table structure for table `students_notes`
--

CREATE TABLE IF NOT EXISTS `students_notes` (
  `id` int(11) unsigned NOT NULL,
  `student_id` int(11) unsigned DEFAULT NULL COMMENT 'ref to ''users''',
  `section_id` int(11) unsigned DEFAULT NULL COMMENT 'ref to ''study_sections''',
  `details` text COLLATE utf8_bin,
  `Created_by` int(11) unsigned DEFAULT NULL COMMENT 'ref to ''users''',
  `Created_date` datetime DEFAULT NULL,
  `last_update_by` int(11) unsigned DEFAULT NULL COMMENT 'ref to ''users''',
  `last_update_date` datetime DEFAULT NULL,
  `is_deleted` tinyint(4) unsigned DEFAULT NULL,
  `deleted_by` int(11) unsigned DEFAULT NULL COMMENT 'ref to ''users''',
  `deleted_date` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin ROW_FORMAT=COMPACT COMMENT='ملاحظات الطلبة في الصفوف';

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

--
-- Table structure for table `students_operations`
--

CREATE TABLE IF NOT EXISTS `students_operations` (
  `id` int(11) unsigned NOT NULL,
  `title_ar` varchar(255) COLLATE utf8_bin DEFAULT NULL,
  `title_en` varchar(255) COLLATE utf8_bin DEFAULT NULL,
  `ref_id` varchar(255) COLLATE utf8_bin DEFAULT NULL,
  `ref1_id` varchar(255) COLLATE utf8_bin DEFAULT NULL
) ENGINE=InnoDB AUTO_INCREMENT=18 DEFAULT CHARSET=utf8 COLLATE=utf8_bin ROW_FORMAT=COMPACT;

--
-- Dumping data for table `students_operations`
--

INSERT INTO `students_operations` (`id`, `title_ar`, `title_en`, `ref_id`, `ref1_id`) VALUES
(1, 'تعيين رسوم التسجيل لطلب التحاق مدفوعة', 'Set the registration fee paid to a request enrollment', 'students_applications', NULL),
(2, 'تعيين رسوم التسجيل لطلب التحاق ك غير مدفوعة', 'Set the registration fee paid to a request as non-paid', 'students_applications', NULL),
(3, 'الموافقة على الطالب ومنحه عضوية اسم مستخدم وكلمة مرور', 'Approval of the student and give him a membership user name and password', 'students_applications', 'users'),
(4, 'تعيين موعد مقابلة جديد لطالب', 'Set a date for a new interview students', 'students_applications', NULL),
(5, 'رفض طالب في مقابلة', 'Student refused, in an interview', 'students_applications', NULL),
(6, 'قبول طالب في مقابلة', 'Student accept, in an interview', 'students_applications', 'users'),
(7, 'تعديل نسبة خصم على طلب التحاق', 'تعديل نسبة خصم على طلب التحاق', 'students_applications', NULL),
(8, 'تعديل كاش طلب التحاق', 'تعديل كاش طلب التحاق', 'students_applications', NULL),
(9, 'تعديل حوالة بنكية على طلب التحاق', 'تعديل حوالة بنكية على طلب التحاق', 'students_applications', NULL),
(10, 'تعديل ATM على طلب التحاق', 'تعديل ATM على طلب التحاق', 'students_applications', NULL),
(11, 'تعديل شيك على طلب التحاق', 'تعديل شيك على طلب التحاق', 'students_applications', NULL),
(12, 'تعديل نوع الخصم في سند قبض للطالب', 'تعديل نوع الخصم في سند قبض للطالب', 'financials_payments', NULL),
(13, 'تعديل كاش سند قبض للطالب', 'تعديل كاش سند قبض للطالب', 'financials_payments', NULL),
(14, 'تعديل حوالة بنكية سند قبض للطالب', 'تعديل حوالة بنكية سند قبض للطالب', 'financials_payments', NULL),
(15, 'تعديل ATM سند قبض للطالب', 'تعديل ATM سند قبض للطالب', 'financials_payments', NULL),
(16, 'تعديل شيك سند قبض للطالب', 'تعديل شيك سند قبض للطالب', 'financials_payments', NULL),
(17, 'حذف موعد المقابلة والغاء الموافقة المبدأية عن طلب الالتحاق للطالب', 'حذف موعد المقابلة والغاء الموافقة المبدأية عن طلب الالتحاق للطالب', 'students_applications', NULL);

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

--
-- Table structure for table `students_participates`
--

CREATE TABLE IF NOT EXISTS `students_participates` (
  `id` int(11) unsigned NOT NULL,
  `student_id` int(11) unsigned DEFAULT NULL COMMENT 'ref to ''users''',
  `section_id` int(11) unsigned DEFAULT NULL COMMENT 'ref to ''study_sections''',
  `participate_type` int(11) unsigned DEFAULT NULL COMMENT 'ref to ''general_elearning_participates''',
  `mark` int(10) unsigned DEFAULT NULL,
  `details` text COLLATE utf8_bin,
  `Created_by` int(11) unsigned DEFAULT NULL COMMENT 'ref to ''users''',
  `Created_date` datetime DEFAULT NULL,
  `last_update_by` int(11) unsigned DEFAULT NULL COMMENT 'ref to ''users''',
  `last_update_date` datetime DEFAULT NULL,
  `is_deleted` tinyint(4) unsigned DEFAULT NULL,
  `deleted_by` int(11) unsigned DEFAULT NULL COMMENT 'ref to ''users''',
  `deleted_date` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin ROW_FORMAT=COMPACT COMMENT='مشاركات الطلبة في الصفوف';

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

--
-- Table structure for table `students_sections`
--

CREATE TABLE IF NOT EXISTS `students_sections` (
  `id` int(20) unsigned NOT NULL,
  `term` int(11) unsigned DEFAULT NULL COMMENT 'ref to ''study_terms''',
  `student` int(11) unsigned DEFAULT NULL COMMENT 'ref to ''users''',
  `section` int(11) unsigned DEFAULT NULL COMMENT 'ref to ''study_sections''',
  `state` tinyint(4) unsigned DEFAULT NULL COMMENT '1 need advisor accept || 2 approved || 3 registered || 4 rejected',
  `rejected_by` int(10) unsigned DEFAULT NULL COMMENT 'ref to ''users''',
  `rejected_date` datetime DEFAULT NULL,
  `rejected_note` text COLLATE utf8_bin,
  `Created_by` int(11) unsigned DEFAULT NULL COMMENT 'ref to ''users''',
  `Created_date` datetime DEFAULT NULL,
  `last_update_by` int(11) unsigned DEFAULT NULL COMMENT 'ref to ''users''',
  `last_update_date` datetime DEFAULT NULL,
  `is_deleted` tinyint(4) unsigned DEFAULT NULL,
  `deleted_by` int(11) unsigned DEFAULT NULL COMMENT 'ref to ''users''',
  `deleted_date` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin ROW_FORMAT=COMPACT;

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

--
-- Table structure for table `students_study_state`
--

CREATE TABLE IF NOT EXISTS `students_study_state` (
  `id` int(10) unsigned NOT NULL,
  `name_ar` varchar(255) COLLATE utf8_bin DEFAULT NULL,
  `name_en` varchar(255) COLLATE utf8_bin DEFAULT NULL,
  `Created_by` int(11) unsigned DEFAULT NULL COMMENT 'ref to ''users''',
  `Created_date` datetime DEFAULT NULL,
  `last_update_by` int(11) unsigned DEFAULT NULL COMMENT 'ref to ''users''',
  `last_update_date` datetime DEFAULT NULL,
  `is_deleted` tinyint(4) unsigned DEFAULT NULL,
  `deleted_by` int(11) unsigned DEFAULT NULL COMMENT 'ref to ''users''',
  `deleted_date` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin ROW_FORMAT=COMPACT COMMENT='الحالة الاكاديمية للطالب';

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

--
-- Table structure for table `students_terms`
--

CREATE TABLE IF NOT EXISTS `students_terms` (
  `id` int(10) unsigned NOT NULL,
  `period` varchar(255) COLLATE utf8_bin DEFAULT NULL,
  `term` int(11) unsigned DEFAULT NULL COMMENT 'ref to ''study_terms''',
  `student` int(11) unsigned DEFAULT NULL COMMENT 'ref to ''users''',
  `cost` int(11) DEFAULT NULL,
  `Created_by` int(11) unsigned DEFAULT NULL COMMENT 'ref to ''users''',
  `Created_date` datetime DEFAULT NULL,
  `last_update_by` int(11) unsigned DEFAULT NULL COMMENT 'ref to ''users''',
  `last_update_date` datetime DEFAULT NULL,
  `is_deleted` tinyint(4) unsigned DEFAULT NULL,
  `deleted_by` int(11) unsigned DEFAULT NULL COMMENT 'ref to ''users''',
  `deleted_date` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin ROW_FORMAT=COMPACT COMMENT='تسجيل الطلبة للفصول';

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

--
-- Table structure for table `students_types`
--

CREATE TABLE IF NOT EXISTS `students_types` (
  `id` int(11) unsigned NOT NULL,
  `study_type` int(11) unsigned DEFAULT NULL COMMENT 'ref to ''study_types''',
  `name_ar` varchar(255) COLLATE utf8_bin DEFAULT NULL,
  `name_en` varchar(255) COLLATE utf8_bin DEFAULT NULL,
  `Created_by` int(11) unsigned DEFAULT NULL COMMENT 'ref to ''users''',
  `Created_date` datetime DEFAULT NULL,
  `last_update_by` int(11) unsigned DEFAULT NULL COMMENT 'ref to ''users''',
  `last_update_date` datetime DEFAULT NULL,
  `is_deleted` tinyint(4) unsigned DEFAULT NULL,
  `deleted_by` int(11) unsigned DEFAULT NULL COMMENT 'ref to ''users''',
  `deleted_date` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin ROW_FORMAT=COMPACT;

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

--
-- Table structure for table `study_academicyears`
--

CREATE TABLE IF NOT EXISTS `study_academicyears` (
  `id` int(11) unsigned NOT NULL,
  `name_ar` varchar(255) COLLATE utf8_bin DEFAULT NULL,
  `name_en` varchar(255) COLLATE utf8_bin DEFAULT NULL,
  `Created_by` int(11) unsigned DEFAULT NULL COMMENT 'ref to ''users''',
  `Created_date` datetime DEFAULT NULL,
  `last_update_by` int(11) unsigned DEFAULT NULL COMMENT 'ref to ''users''',
  `last_update_date` datetime DEFAULT NULL,
  `is_deleted` tinyint(4) unsigned DEFAULT NULL,
  `deleted_by` int(11) unsigned DEFAULT NULL COMMENT 'ref to ''users''',
  `deleted_date` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin ROW_FORMAT=COMPACT;

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

--
-- Table structure for table `study_colleges`
--

CREATE TABLE IF NOT EXISTS `study_colleges` (
  `id` int(11) unsigned NOT NULL,
  `name_ar` varchar(255) COLLATE utf8_bin DEFAULT NULL,
  `name_en` varchar(255) COLLATE utf8_bin DEFAULT NULL,
  `desc_ar` text COLLATE utf8_bin,
  `desc_en` text COLLATE utf8_bin,
  `Created_by` int(11) unsigned DEFAULT NULL COMMENT 'ref to ''users''',
  `Created_date` datetime DEFAULT NULL,
  `last_update_by` int(11) unsigned DEFAULT NULL COMMENT 'ref to ''users''',
  `last_update_date` datetime DEFAULT NULL,
  `is_deleted` tinyint(4) unsigned DEFAULT NULL,
  `deleted_by` int(11) unsigned DEFAULT NULL COMMENT 'ref to ''users''',
  `deleted_date` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin ROW_FORMAT=COMPACT;

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

--
-- Table structure for table `study_courses`
--

CREATE TABLE IF NOT EXISTS `study_courses` (
  `id` int(11) unsigned NOT NULL,
  `name_ar` varchar(255) COLLATE utf8_bin DEFAULT NULL,
  `name_en` varchar(255) COLLATE utf8_bin DEFAULT NULL,
  `description` text COLLATE utf8_bin,
  `major` int(11) unsigned DEFAULT NULL COMMENT 'ref to ''study_majors''',
  `program` int(11) unsigned DEFAULT NULL COMMENT 'ref to ''study_programs''',
  `degree` int(11) unsigned DEFAULT NULL COMMENT 'ref to ''study_degrees''',
  `course_code` varchar(255) COLLATE utf8_bin DEFAULT NULL,
  `course_number` varchar(255) COLLATE utf8_bin DEFAULT NULL,
  `credit_hours` tinyint(4) unsigned DEFAULT NULL,
  `attending_hours` tinyint(4) unsigned DEFAULT NULL,
  `elective_course` tinyint(4) unsigned DEFAULT NULL,
  `Created_by` int(11) unsigned DEFAULT NULL COMMENT 'ref to ''users''',
  `Created_date` datetime DEFAULT NULL,
  `last_update_by` int(11) unsigned DEFAULT NULL COMMENT 'ref to ''users''',
  `last_update_date` datetime DEFAULT NULL,
  `is_deleted` tinyint(4) unsigned DEFAULT NULL,
  `deleted_by` int(11) unsigned DEFAULT NULL COMMENT 'ref to ''users''',
  `deleted_date` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin ROW_FORMAT=COMPACT;

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

--
-- Table structure for table `study_courses_prerequisite`
--

CREATE TABLE IF NOT EXISTS `study_courses_prerequisite` (
  `id` int(11) unsigned NOT NULL,
  `course` int(11) unsigned DEFAULT NULL COMMENT 'ref to ''study_courses''',
  `prerequisite_course` int(11) unsigned DEFAULT NULL COMMENT 'ref to ''study_courses''',
  `Created_by` int(11) unsigned DEFAULT NULL COMMENT 'ref to ''users''',
  `Created_date` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin ROW_FORMAT=COMPACT COMMENT='جدول المتطلبات السابق للمساقات، يربط بين المساق والمتطلب السابق له';

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

--
-- Table structure for table `study_degrees`
--

CREATE TABLE IF NOT EXISTS `study_degrees` (
  `id` int(11) unsigned NOT NULL,
  `name_ar` varchar(255) COLLATE utf8_bin DEFAULT NULL,
  `name_en` varchar(255) COLLATE utf8_bin DEFAULT NULL,
  `Created_by` int(11) unsigned DEFAULT NULL COMMENT 'ref to ''users''',
  `Created_date` datetime DEFAULT NULL,
  `last_update_by` int(11) unsigned DEFAULT NULL COMMENT 'ref to ''users''',
  `last_update_date` datetime DEFAULT NULL,
  `is_deleted` tinyint(4) unsigned DEFAULT NULL,
  `deleted_by` int(11) unsigned DEFAULT NULL COMMENT 'ref to ''users''',
  `deleted_date` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin ROW_FORMAT=COMPACT;

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

--
-- Table structure for table `study_departments`
--

CREATE TABLE IF NOT EXISTS `study_departments` (
  `id` int(11) unsigned NOT NULL,
  `college` int(11) unsigned DEFAULT NULL COMMENT 'ref to ''study_colleges''',
  `name_ar` varchar(255) COLLATE utf8_bin DEFAULT NULL,
  `name_en` varchar(255) COLLATE utf8_bin DEFAULT NULL,
  `desc_ar` text COLLATE utf8_bin,
  `desc_en` text COLLATE utf8_bin,
  `Created_by` int(11) unsigned DEFAULT NULL COMMENT 'ref to ''users''',
  `Created_date` datetime DEFAULT NULL,
  `last_update_by` int(11) unsigned DEFAULT NULL COMMENT 'ref to ''users''',
  `last_update_date` datetime DEFAULT NULL,
  `is_deleted` tinyint(4) unsigned DEFAULT NULL,
  `deleted_by` int(11) unsigned DEFAULT NULL COMMENT 'ref to ''users''',
  `deleted_date` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin ROW_FORMAT=COMPACT;

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

--
-- Table structure for table `study_levels`
--

CREATE TABLE IF NOT EXISTS `study_levels` (
  `id` int(11) unsigned NOT NULL,
  `name_ar` varchar(255) COLLATE utf8_bin DEFAULT NULL,
  `name_en` varchar(255) COLLATE utf8_bin DEFAULT NULL,
  `degree` int(11) unsigned DEFAULT NULL COMMENT 'ref to ''study_degrees''',
  `Created_by` int(11) unsigned DEFAULT NULL COMMENT 'ref to ''users''',
  `Created_date` datetime DEFAULT NULL,
  `last_update_by` int(11) unsigned DEFAULT NULL COMMENT 'ref to ''users''',
  `last_update_date` datetime DEFAULT NULL,
  `is_deleted` tinyint(4) unsigned DEFAULT NULL,
  `deleted_by` int(11) unsigned DEFAULT NULL COMMENT 'ref to ''users''',
  `deleted_date` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin ROW_FORMAT=COMPACT;

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

--
-- Table structure for table `study_levels_courses`
--

CREATE TABLE IF NOT EXISTS `study_levels_courses` (
  `id` int(11) unsigned NOT NULL,
  `course` int(11) unsigned DEFAULT NULL COMMENT 'ref to ''study_courses''',
  `level` int(11) unsigned DEFAULT NULL COMMENT 'ref to ''study_levels''',
  `Created_by` int(11) unsigned DEFAULT NULL COMMENT 'ref to ''users''',
  `Created_date` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin ROW_FORMAT=COMPACT;

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

--
-- Table structure for table `study_majors`
--

CREATE TABLE IF NOT EXISTS `study_majors` (
  `id` int(11) unsigned NOT NULL,
  `college` int(11) unsigned DEFAULT NULL COMMENT 'ref to ''study_colleges'' table',
  `name_ar` varchar(255) COLLATE utf8_bin DEFAULT NULL,
  `name_en` varchar(255) COLLATE utf8_bin DEFAULT NULL,
  `desc_ar` text COLLATE utf8_bin,
  `desc_en` text COLLATE utf8_bin,
  `Created_by` int(11) unsigned DEFAULT NULL COMMENT 'ref to ''users''',
  `Created_date` datetime DEFAULT NULL,
  `last_update_by` int(11) unsigned DEFAULT NULL COMMENT 'ref to ''users''',
  `last_update_date` datetime DEFAULT NULL,
  `is_deleted` tinyint(4) unsigned DEFAULT NULL,
  `deleted_by` int(11) unsigned DEFAULT NULL COMMENT 'ref to ''users''',
  `deleted_date` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin ROW_FORMAT=COMPACT;

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

--
-- Table structure for table `study_programs`
--

CREATE TABLE IF NOT EXISTS `study_programs` (
  `id` int(11) unsigned NOT NULL,
  `major` int(11) unsigned DEFAULT NULL COMMENT 'ref to ''study_majors''',
  `name_ar` varchar(255) COLLATE utf8_bin DEFAULT NULL,
  `name_en` varchar(255) COLLATE utf8_bin DEFAULT NULL,
  `desc_ar` text COLLATE utf8_bin,
  `desc_en` text COLLATE utf8_bin,
  `Created_by` int(11) unsigned DEFAULT NULL COMMENT 'ref to ''users''',
  `Created_date` datetime DEFAULT NULL,
  `last_update_by` int(11) unsigned DEFAULT NULL COMMENT 'ref to ''users''',
  `last_update_date` datetime DEFAULT NULL,
  `is_deleted` tinyint(4) unsigned DEFAULT NULL,
  `deleted_by` int(11) unsigned DEFAULT NULL COMMENT 'ref to ''users''',
  `deleted_date` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin ROW_FORMAT=COMPACT;

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

--
-- Table structure for table `study_rooms`
--

CREATE TABLE IF NOT EXISTS `study_rooms` (
  `id` int(11) unsigned NOT NULL,
  `name` varchar(255) COLLATE utf8_bin DEFAULT NULL,
  `Created_by` int(11) unsigned DEFAULT NULL COMMENT 'ref to ''users''',
  `Created_date` datetime DEFAULT NULL,
  `last_update_by` int(11) unsigned DEFAULT NULL COMMENT 'ref to ''users''',
  `last_update_date` datetime DEFAULT NULL,
  `is_deleted` tinyint(4) unsigned DEFAULT NULL,
  `deleted_by` int(11) unsigned DEFAULT NULL COMMENT 'ref to ''users''',
  `deleted_date` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin ROW_FORMAT=COMPACT;

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

--
-- Table structure for table `study_sections`
--

CREATE TABLE IF NOT EXISTS `study_sections` (
  `id` int(11) unsigned NOT NULL,
  `section_no` varchar(100) COLLATE utf8_bin DEFAULT NULL,
  `major` int(11) unsigned DEFAULT NULL COMMENT 'ref to ''study_majors''',
  `term` int(11) unsigned DEFAULT NULL COMMENT 'ref to ''study_terms''',
  `course` int(11) unsigned DEFAULT NULL COMMENT 'ref to ''study_courses''',
  `room` int(11) unsigned DEFAULT NULL COMMENT 'ref to ''study_rooms''',
  `teacher` int(11) unsigned DEFAULT NULL COMMENT 'ref to ''users''',
  `gender` int(10) unsigned DEFAULT NULL COMMENT 'ref to ''general_genders''',
  `max_students` int(10) unsigned DEFAULT NULL COMMENT 'اقصى عدد طللاب',
  `Created_by` int(11) unsigned DEFAULT NULL COMMENT 'ref to ''users''',
  `Created_date` datetime DEFAULT NULL,
  `last_update_by` int(11) unsigned DEFAULT NULL COMMENT 'ref to ''users''',
  `last_update_date` datetime DEFAULT NULL,
  `is_deleted` tinyint(4) unsigned DEFAULT NULL,
  `deleted_by` int(11) unsigned DEFAULT NULL COMMENT 'ref to ''users''',
  `deleted_date` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin ROW_FORMAT=COMPACT;

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

--
-- Table structure for table `study_sections_chapters`
--

CREATE TABLE IF NOT EXISTS `study_sections_chapters` (
  `id` int(11) unsigned NOT NULL,
  `section_id` int(11) unsigned DEFAULT NULL COMMENT 'ref to ''study_sections'' table',
  `name` varchar(255) COLLATE utf8_bin DEFAULT NULL,
  `description` text COLLATE utf8_bin,
  `Created_by` int(11) unsigned DEFAULT NULL COMMENT 'ref to ''users''',
  `Created_date` datetime DEFAULT NULL,
  `last_update_by` int(11) unsigned DEFAULT NULL COMMENT 'ref to ''users''',
  `last_update_date` datetime DEFAULT NULL,
  `is_deleted` tinyint(4) unsigned DEFAULT NULL,
  `deleted_by` int(11) unsigned DEFAULT NULL COMMENT 'ref to ''users''',
  `deleted_date` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin ROW_FORMAT=COMPACT;

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

--
-- Table structure for table `study_sections_dates`
--

CREATE TABLE IF NOT EXISTS `study_sections_dates` (
  `id` int(11) unsigned NOT NULL,
  `section` int(11) unsigned DEFAULT NULL COMMENT 'ref to ''study_sections'' table',
  `day` varchar(20) COLLATE utf8_bin DEFAULT NULL,
  `start` time DEFAULT NULL,
  `end` time DEFAULT NULL,
  `Created_date` datetime DEFAULT NULL,
  `Created_by` int(11) unsigned DEFAULT NULL COMMENT 'ref to ''users'''
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin ROW_FORMAT=COMPACT;

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

--
-- Table structure for table `study_sections_lessons`
--

CREATE TABLE IF NOT EXISTS `study_sections_lessons` (
  `id` int(11) unsigned NOT NULL,
  `chapter_id` int(11) unsigned DEFAULT NULL COMMENT 'ref to ''study_sections_chapters'' table',
  `name` varchar(255) COLLATE utf8_bin DEFAULT NULL,
  `description` text COLLATE utf8_bin,
  `Created_by` int(11) unsigned DEFAULT NULL COMMENT 'ref to ''users''',
  `Created_date` datetime DEFAULT NULL,
  `last_update_by` int(11) unsigned DEFAULT NULL COMMENT 'ref to ''users''',
  `last_update_date` datetime DEFAULT NULL,
  `is_deleted` tinyint(4) unsigned DEFAULT NULL,
  `deleted_by` int(11) unsigned DEFAULT NULL COMMENT 'ref to ''users''',
  `deleted_date` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin ROW_FORMAT=COMPACT;

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

--
-- Table structure for table `study_terms`
--

CREATE TABLE IF NOT EXISTS `study_terms` (
  `id` int(11) unsigned NOT NULL,
  `academicyear` int(11) unsigned DEFAULT NULL COMMENT 'ref to ''study_academicyears'' table',
  `name_ar` varchar(255) COLLATE utf8_bin DEFAULT NULL,
  `name_en` varchar(255) COLLATE utf8_bin DEFAULT NULL,
  `min_hours` tinyint(4) unsigned DEFAULT NULL,
  `max_hours` tinyint(4) unsigned DEFAULT NULL,
  `beginning_term` date DEFAULT NULL,
  `end_term` date DEFAULT NULL,
  `reg_date_start` date DEFAULT NULL,
  `reg_date_end` date DEFAULT NULL,
  `fine_reg_date_start` date DEFAULT NULL,
  `fine_reg_date_end` date DEFAULT NULL,
  `drag_add_date_start` date DEFAULT NULL,
  `drag_add_date_end` date DEFAULT NULL,
  `Created_by` int(11) unsigned DEFAULT NULL COMMENT 'ref to ''users''',
  `Created_date` datetime DEFAULT NULL,
  `last_update_by` int(11) unsigned DEFAULT NULL COMMENT 'ref to ''users''',
  `last_update_date` datetime DEFAULT NULL,
  `is_deleted` tinyint(4) unsigned DEFAULT NULL,
  `deleted_by` int(11) unsigned DEFAULT NULL COMMENT 'ref to ''users''',
  `deleted_date` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin ROW_FORMAT=COMPACT;

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

--
-- Table structure for table `study_terms_degree_hours`
--

CREATE TABLE IF NOT EXISTS `study_terms_degree_hours` (
  `id` int(11) unsigned NOT NULL,
  `term` int(11) unsigned DEFAULT NULL COMMENT 'ref to ''study_terms''',
  `degree` int(11) unsigned DEFAULT NULL COMMENT 'ref to ''study_degrees''',
  `min_hours` tinyint(4) unsigned DEFAULT NULL,
  `max_hours` tinyint(4) unsigned DEFAULT NULL,
  `Created_by` int(11) unsigned DEFAULT NULL COMMENT 'ref to ''users''',
  `Created_date` datetime DEFAULT NULL,
  `last_update_by` int(11) unsigned DEFAULT NULL COMMENT 'ref to ''users''',
  `last_update_date` datetime DEFAULT NULL,
  `is_deleted` tinyint(4) unsigned DEFAULT NULL,
  `deleted_by` int(11) unsigned DEFAULT NULL COMMENT 'ref to ''users''',
  `deleted_date` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin ROW_FORMAT=COMPACT;

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

--
-- Table structure for table `study_types`
--

CREATE TABLE IF NOT EXISTS `study_types` (
  `id` int(11) unsigned NOT NULL,
  `name_ar` varchar(255) COLLATE utf8_bin DEFAULT NULL,
  `name_en` varchar(255) COLLATE utf8_bin DEFAULT NULL,
  `Created_by` int(11) unsigned DEFAULT NULL COMMENT 'ref to ''users''',
  `Created_date` datetime DEFAULT NULL,
  `last_update_by` int(11) unsigned DEFAULT NULL COMMENT 'ref to ''users''',
  `last_update_date` datetime DEFAULT NULL,
  `is_deleted` tinyint(4) unsigned DEFAULT NULL,
  `deleted_by` int(11) unsigned DEFAULT NULL COMMENT 'ref to ''users''',
  `deleted_date` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin ROW_FORMAT=COMPACT;

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

--
-- Table structure for table `tags`
--

CREATE TABLE IF NOT EXISTS `tags` (
  `id` int(11) unsigned NOT NULL,
  `name_ar` varchar(255) COLLATE utf8_bin DEFAULT NULL,
  `name_en` varchar(255) COLLATE utf8_bin DEFAULT NULL,
  `is_deleted` int(11) unsigned DEFAULT NULL,
  `deleted_by` int(11) unsigned DEFAULT NULL COMMENT 'ref to ''users''',
  `Created_by` int(11) unsigned DEFAULT NULL COMMENT 'ref to ''users''',
  `Created_date` datetime DEFAULT NULL,
  `last_update_by` int(11) unsigned DEFAULT NULL COMMENT 'ref to ''users''',
  `last_update_date` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin ROW_FORMAT=COMPACT;

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

--
-- Table structure for table `uploadcenter`
--

CREATE TABLE IF NOT EXISTS `uploadcenter` (
  `id` int(11) NOT NULL,
  `show_in_ar` tinyint(3) unsigned DEFAULT NULL,
  `show_in_en` tinyint(3) unsigned DEFAULT NULL,
  `file_path` varchar(255) COLLATE utf8_bin DEFAULT NULL,
  `title_ar` varchar(255) COLLATE utf8_bin DEFAULT NULL,
  `title_en` varchar(255) COLLATE utf8_bin DEFAULT NULL,
  `Created_by` int(11) DEFAULT NULL,
  `Created_date` datetime DEFAULT NULL,
  `last_update_by` int(11) DEFAULT NULL,
  `last_update_date` datetime DEFAULT NULL,
  `is_deleted` tinyint(4) DEFAULT NULL,
  `deleted_by` int(11) DEFAULT NULL,
  `deleted_date` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin ROW_FORMAT=COMPACT;

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

--
-- Table structure for table `users`
--

CREATE TABLE IF NOT EXISTS `users` (
  `id` int(11) unsigned NOT NULL,
  `email` varchar(127) DEFAULT NULL,
  `username` varchar(32) NOT NULL DEFAULT '',
  `password` varchar(64) NOT NULL,
  `mobile` varchar(127) DEFAULT NULL,
  `user_groub` int(11) unsigned DEFAULT NULL COMMENT 'ref to ''users_group''',
  `name_ar` varchar(255) DEFAULT NULL,
  `name_en` varchar(255) DEFAULT NULL,
  `img` varchar(255) DEFAULT NULL,
  `img_thumb` varchar(255) DEFAULT NULL,
  `logins` int(10) unsigned NOT NULL DEFAULT '0',
  `last_login` datetime DEFAULT NULL,
  `last_active` datetime DEFAULT NULL,
  `Created_by` int(11) unsigned DEFAULT NULL COMMENT 'ref to ''users''',
  `Created_date` datetime DEFAULT NULL,
  `last_update_by` int(11) unsigned DEFAULT NULL COMMENT 'ref to ''users''',
  `last_update_date` datetime DEFAULT NULL,
  `is_deleted` tinyint(4) unsigned DEFAULT NULL
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8;

--
-- Dumping data for table `users`
--

INSERT INTO `users` (`id`, `email`, `username`, `password`, `mobile`, `user_groub`, `name_ar`, `name_en`, `img`, `img_thumb`, `logins`, `last_login`, `last_active`, `Created_by`, `Created_date`, `last_update_by`, `last_update_date`, `is_deleted`) VALUES
(1, 'anasisafi@gmail.com', 'anassafi', '718a306848a2931c363fe64f32f860bfa0c26a381c72c971b2be66733506faea', '0598654657', 1, 'شركة البرمجة والتعلم', 'EduSoft Company', 'files/users/2016/04/k57qnqtv5z16jzgojsuekqigts.jpg', NULL, 1, '2019-11-23 19:33:07', '2019-11-23 19:33:07', NULL, '2015-12-31 19:51:30', 1, '2018-01-16 15:07:01', NULL);

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

--
-- Table structure for table `users_files`
--

CREATE TABLE IF NOT EXISTS `users_files` (
  `id` int(11) unsigned NOT NULL,
  `file_path` varchar(255) DEFAULT NULL,
  `description_ar` varchar(255) DEFAULT NULL,
  `description_en` varchar(255) DEFAULT NULL,
  `date_to_delete` date DEFAULT NULL,
  `Created_by` int(11) unsigned DEFAULT NULL COMMENT 'ref to ''users''',
  `Created_date` datetime DEFAULT NULL,
  `last_update_by` int(11) unsigned DEFAULT NULL COMMENT 'ref to ''users''',
  `last_update_date` datetime DEFAULT NULL,
  `is_deleted` tinyint(4) unsigned DEFAULT NULL
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT COMMENT='محفظة الملفات الخاصة بالمستخدمين';

--
-- Dumping data for table `users_files`
--

INSERT INTO `users_files` (`id`, `file_path`, `description_ar`, `description_en`, `date_to_delete`, `Created_by`, `Created_date`, `last_update_by`, `last_update_date`, `is_deleted`) VALUES
(1, 'files/attendance/2019/07/tcbz0mbf33xhlldkvedbnuvy0n.xlsx', 'تصدير بيانات الحضور والغياب بصيغة XLSX', 'Export attendance and departure in format XLSX', '2019-10-09', 1686, '2019-07-11 08:45:38', NULL, NULL, NULL);

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

--
-- Table structure for table `users_group`
--

CREATE TABLE IF NOT EXISTS `users_group` (
  `id` int(11) unsigned NOT NULL,
  `name_ar` varchar(255) DEFAULT NULL,
  `name_en` varchar(255) DEFAULT NULL,
  `shortcut` char(50) DEFAULT NULL
) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=utf8;

--
-- Dumping data for table `users_group`
--

INSERT INTO `users_group` (`id`, `name_ar`, `name_en`, `shortcut`) VALUES
(1, 'مدير عام', 'General Manger', 'G'),
(2, 'مدير محدود الصلاحيات', 'Limited permissions user', 'L'),
(3, 'طالب', 'Student', 'S'),
(4, 'معلم', 'Teacher', 'T'),
(5, 'موظف', 'Employee', 'E');

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

--
-- Table structure for table `user_tokens`
--

CREATE TABLE IF NOT EXISTS `user_tokens` (
  `id` int(11) unsigned NOT NULL,
  `user_id` int(11) unsigned DEFAULT NULL COMMENT 'ref to ''users''',
  `user_agent` varchar(40) DEFAULT NULL,
  `token` varchar(40) DEFAULT NULL,
  `type` varchar(100) DEFAULT NULL,
  `created` int(10) unsigned DEFAULT NULL,
  `expires` int(10) unsigned DEFAULT NULL
) ENGINE=InnoDB AUTO_INCREMENT=126 DEFAULT CHARSET=utf8;

--
-- Dumping data for table `user_tokens`
--

INSERT INTO `user_tokens` (`id`, `user_id`, `user_agent`, `token`, `type`, `created`, `expires`) VALUES
(4, 1636, 'dc26a822234d8444520a670d15349f3473e10df1', '1a6f78b63e1579f4e57b2ffb1e2983c9565170cd', NULL, 1554100846, 1576196846),
(6, 1, '04d9f2359509005b1e306ea69a2972e38ef63401', '99beebb7f9ab2137fc3b465e9b75082abeade451', NULL, 1556347639, 1578443639),
(8, 1672, '9a4796566efa828a7d7b0652763f365e76b85bb1', 'a8e35e2838349e1a834b20c87dfcebb3e6977da0', NULL, 1557138209, 1579234209),
(10, 1647, '9a4796566efa828a7d7b0652763f365e76b85bb1', '4d5233e213b0291051737ecb6d94fda37de8bd91', NULL, 1557141353, 1579237353),
(13, 1636, 'f694f99cff565034e1e4fddf9aac9f1fdb313045', '6a636935e915a68ede71272c2357a12febc10e5c', NULL, 1557395094, 1579491094),
(14, 1646, 'de1830b373667f4286bfc1e9d4cf798594e5b6ad', '0107dcf6363f8fa0585c632714cbe9b665c32296', NULL, 1557661070, 1579757070),
(15, 1670, '77e1bf0ebb947a6294df9a2b2dadf6228fd2d6f0', '546b1bf9d432967aa546e4baeaf1d1f875179e8e', NULL, 1557952123, 1580048123),
(16, 1670, '657ea05a81de698deea00d17499800b9a27d10d6', '47c06f6063a8631dd4939456e131018ac6356c5a', NULL, 1557952173, 1580048173),
(17, 1670, '4cfb7f9ae40d70f717b2da77682ec66623b39f3c', 'db7b1d6b2c3d450a2236d4dc0db3baf5a1daa9a5', NULL, 1557995172, 1580091172),
(18, 1660, 'a5e39a4438f42d52da3dcf84cebeb14e8ba1c42f', '93cce5b8e3a3011cb5b684a1df92f017ba1ddffc', NULL, 1558121368, 1580217368),
(19, 1, 'cf8bf968aa349942c116d0a4c20de363d89efceb', '10fb13e5f9379fa00cb1f0d451425dfc00354f04', NULL, 1558293799, 1580389799),
(20, 1688, '4d84d636cb9e79e826fa5cf71559e645bddf7242', '41536ff7f3445a48a40c4828873120dec172304d', NULL, 1558556336, 1580652336),
(24, 1642, '2d37243935a57721d188e19f9ea10faf6bbb7b2b', '4a53faba148c70cb635c4d08ec6fa67bb3b852e8', NULL, 1558955557, 1581051557),
(26, 1665, 'a5e39a4438f42d52da3dcf84cebeb14e8ba1c42f', '8ecd6f8f60d00d9f86b09caff03d9deb891fbd77', NULL, 1558982124, 1581078124),
(28, 1681, '08b295a9e9e472a3654eac34be5fbf4084e76cca', 'd0e109c05344b9da00109f73d0395c6fed65911c', NULL, 1558986548, 1581082548),
(29, 1669, '430789b3d69b44c85516388fe35095a779382dfe', 'a904339b22d6fa9fdff141e79e7eba629eb1b58e', NULL, 1558989665, 1581085665),
(30, 1676, '41cc620c7d86a66bd38a1ebf5c81816da875351d', '2638aa635180ae438bbe4d5f4a51af71ec486656', NULL, 1559029932, 1581125932),
(32, 1681, '96c1674431787bd4391b7b58253403d898bfcb50', '64b92fde211861f0e4f5e70af5479fc2318b3f26', NULL, 1559039602, 1581135602),
(34, 1676, '41cc620c7d86a66bd38a1ebf5c81816da875351d', 'ad6b5d1d9cdd427ed9d013ef704d3e63ee5a5f7e', NULL, 1559122742, 1581218742),
(35, 1638, '0bc3e08cb6d6b474a5f8e44eafc905f4e747a620', '2cd980a3575bb9ee5dcab5da67bd937358c06403', NULL, 1559124696, 1581220696),
(36, 1676, '41cc620c7d86a66bd38a1ebf5c81816da875351d', '531057528ef65e60da9bb8ebe3172ba63fadd017', NULL, 1559205302, 1581301302),
(37, 1675, 'c36e373fcd7962587b234fb758dcf59212f9d04d', 'd90d47ee038c878ed42a64b1447c95521984aee4', NULL, 1559210385, 1581306385),
(38, 1690, 'a76b6b7355c124106d5ede11d9ab490facb74ab5', '6eef422d8b0201955405806f3f6823a854d92eb5', NULL, 1559300592, 1581396592),
(39, 1676, '41cc620c7d86a66bd38a1ebf5c81816da875351d', '1eb41f818b270aefc75390ccf9e303d3bc781b4d', NULL, 1559474405, 1581570405),
(40, 1647, '5285b767cd64ebc8eddc7d617959f31795403d28', '7fd8c4db0fa35c2a3a3984a5f81970e95a885b21', NULL, 1559583202, 1581679202),
(41, 1647, '5285b767cd64ebc8eddc7d617959f31795403d28', 'd120e7693d25dd0e7b825f31e3b86a07c854ac44', NULL, 1559583208, 1581679208),
(42, 1688, '5285b767cd64ebc8eddc7d617959f31795403d28', 'bb9a26d2b74564026e27e75c332797b4e25dfed9', NULL, 1560112331, 1582208331),
(44, 1640, '08b295a9e9e472a3654eac34be5fbf4084e76cca', '73f9bbabcc8a269dc068bc24cf2cb234be6ce2ef', NULL, 1560261633, 1582357633),
(45, 1676, '41cc620c7d86a66bd38a1ebf5c81816da875351d', '2ea6b0578eb5361273560dba97821364d1f3a86a', NULL, 1560324450, 1582420450),
(46, 1651, '4a089f08acea2fc398890e2ab42604a92a54d7ee', 'f3eb72b8cff3800219ba8c80eec4b00e0540c40e', NULL, 1560463812, 1582559812),
(47, 1676, '41cc620c7d86a66bd38a1ebf5c81816da875351d', '1971aebe2f11c505140b0fb2910c72050e817ae8', NULL, 1560692829, 1582788829),
(48, 1649, '996e61f16fcae1333dd26b21a140acf9e0f62f96', '439b3adb5408a538f2b27c33328582a7cc1335d7', NULL, 1560694725, 1582790725),
(49, 1643, 'c2e6e64a72debf5631626effc6f517a69ad410ae', '948cccd3088bf3130158759d83479e641506f05b', NULL, 1560763971, 1582859971),
(50, 1640, '139c0dbd0c40dec07cab145b6c83c766fc0a0381', '33cf1f1127ec401a4d3920dfaa2b3559b6af9625', NULL, 1560789407, 1582885407),
(53, 1658, 'ebeac4f2a4c30f7c6074d7015694432d602e90a0', '19f0cdac120874f5b3e71e55d57beb1580eea5b1', NULL, 1560952167, 1583048167),
(54, 1688, '9a69937854df8d62c86aad31376f01f7759452ab', '729e0d2e12aec3b649396491161fd309a8dd1c50', NULL, 1561001608, 1583097608),
(55, 1688, '9a69937854df8d62c86aad31376f01f7759452ab', '4de0b42d2422078cca81eb68bb17d38af1f51d00', NULL, 1561001611, 1583097611),
(56, 1645, '45619bf9e29ad7fe422a1305593ccedaf7d425b3', '96bfd8c24138e971352f7d2e73733db85df1db77', NULL, 1561004664, 1583100664),
(60, 1676, '41cc620c7d86a66bd38a1ebf5c81816da875351d', 'd1f8c68cc42619a2e85262affc878094fe24b940', NULL, 1561277189, 1583373189),
(61, 1640, '0b2ebdabfd9c57968664c167f9b4ec94a2b3dcaf', '1bac29c07b560657db46b32f460cffecd788b18e', NULL, 1561353712, 1583449712),
(62, 1688, 'b9075bc88c84029b35c090475a5cec2d1b53d503', 'c6c860a272a9dd72e8d21189ac1c77339f2a87d5', NULL, 1561429832, 1583525832),
(65, 1681, 'e65381e09416f9f44e15da480f747a5f92effc5c', '347a06840dc662f004d4b2e59f3291b2d62a3d8a', NULL, 1561913559, 1584009559),
(67, 1640, 'e65381e09416f9f44e15da480f747a5f92effc5c', 'da5670e70ec42a13787c6ac5bb82974401a1ec77', NULL, 1562562905, 1584658905),
(69, 1688, 'acd6daadb0e492422e8791617551c0a8b62d86d4', '4e85502a6485b3323b539a5f8a05d16b0e09254d', NULL, 1562616270, 1584712270),
(70, 1676, '41cc620c7d86a66bd38a1ebf5c81816da875351d', '53eac3be085aeefe8e9366f53468494604ad6cb5', NULL, 1562649107, 1584745107),
(71, 1643, '396a8d68663bcc79caa41d2d34ae319f8e7ddfa7', 'c87ff5d689122791d782f782c61daa9aa821865c', NULL, 1562657615, 1584753615),
(72, 1643, '396a8d68663bcc79caa41d2d34ae319f8e7ddfa7', 'd8a3e64e86222b88975204675e3abca494ea8329', NULL, 1562657615, 1584753615),
(73, 1677, '7174201a88949c9ac5dcbfb57b0c3db0e1bd1fa3', '5d5e84692fb920bb62b301197204bc1d628b9ead', NULL, 1562822287, 1584918287),
(74, 1679, '7d2f84fbd0aaaccb06699f4411757966b1731252', '5141e7a44bae28adbac86e444b96bcaf4d1bdffb', NULL, 1563118457, 1585214457),
(75, 1679, '7d2f84fbd0aaaccb06699f4411757966b1731252', 'de1b70e4cb3151ed7e9025c26fc9a55ec424e599', NULL, 1563118584, 1585214584),
(76, 1679, '7d2f84fbd0aaaccb06699f4411757966b1731252', '4b032e715d8d5b22eddca4d93c6696e2a01e3ddb', NULL, 1563118639, 1585214639),
(77, 1679, '7d2f84fbd0aaaccb06699f4411757966b1731252', 'ffdd8d8d97d829b4315e671f61760847debf34e6', NULL, 1563119421, 1585215421),
(78, 1679, '7d2f84fbd0aaaccb06699f4411757966b1731252', '2d320361115c166edb834a3af792807c43e39d7b', NULL, 1563119454, 1585215454),
(79, 1679, '7d2f84fbd0aaaccb06699f4411757966b1731252', '38327725d84b558b3358b3ab68cc98f113c11db6', NULL, 1563122224, 1585218224),
(80, 1679, '7d2f84fbd0aaaccb06699f4411757966b1731252', 'd4d26348d7d5a90c920d47bc111bcadd25723fe7', NULL, 1563122299, 1585218299),
(81, 1646, 'b9075bc88c84029b35c090475a5cec2d1b53d503', 'f3e1c4015f5885cd37b5af8a0e7c17cca696c91e', NULL, 1563226929, 1585322929),
(82, 1688, '730091d5c82c206cde49e48913615f992e07f93b', '7316766f8e97d9a43c26b3914600a7a013b409e1', NULL, 1563296390, 1585392390),
(83, 1669, '24e6a14e022b054c4ea61dd8bf5350ebf224fae4', '7e025155e37a8c88fc31649d9b557dabd6e6e5ec', NULL, 1563347700, 1585443700),
(84, 1645, '45619bf9e29ad7fe422a1305593ccedaf7d425b3', '080b9ee0c1e18d659dd1e781b37cbd9df3ce6b31', NULL, 1563362932, 1585458932),
(85, 1679, '057841f8e2dedae5a5a00457b2f7a771453fb65b', 'c60ef675274848283e7ee90d7eb653c81fbefce9', NULL, 1563375467, 1585471467),
(86, 1679, '057841f8e2dedae5a5a00457b2f7a771453fb65b', '94d6046859883b273aae4fdcc25e645d99a12bdb', NULL, 1563376032, 1585472032),
(87, 1688, '752845bd5add03fcb974dd560bb025d8d4f9c3a2', '521040eab3805121c710c817b13637948487d667', NULL, 1563435087, 1585531087),
(88, 1640, 'd52c1c535db48a672ab0e9b4a5d4073b652b0cbc', '67fca0f95ab9d462914992458e2c7e58421640c7', NULL, 1563468396, 1585564396),
(89, 1679, '057841f8e2dedae5a5a00457b2f7a771453fb65b', '9837000049bc12000ac51da916b978bcdb1bd517', NULL, 1563879380, 1585975380),
(90, 1688, '752845bd5add03fcb974dd560bb025d8d4f9c3a2', 'd1144d6a10b87a842bd359e87a6c688b6f71aa3d', NULL, 1564167314, 1586263314),
(93, 1688, '03dd537f084cc93138d1f64682eb4ff7865067c8', '384ad935ef2b868b9add745dbe383fd01c8bf6b8', NULL, 1564745432, 1586841432),
(94, 1684, '24e6a14e022b054c4ea61dd8bf5350ebf224fae4', '3acdf5881c5c39150987f1f904cf8c25f9cfd1e0', NULL, 1565076222, 1587172222),
(95, 1638, 'a438d4d26b9ea7dc59a6e7958d71c92e6e587588', '29bcacef7e8bdae704d4042670b6201a3c6d9efb', NULL, 1565187944, 1587283944),
(99, 1646, '699e49c8df61dd0687a40050ac82fc5ffcf57d20', '2671fa86f3fbed61d11530f3cb1dfee5b8c7657f', NULL, 1566832593, 1588928593),
(100, 1678, '667a574e1260d268b4feeeb86d7053ebd1e14b1e', '06ad218283c5b254fbd2e53b1cc944f2441b2d1b', NULL, 1567507069, 1589603069),
(102, 1649, 'c2b8d41ab9e26a1bab8015dce3f64ae3b4fe7f27', '88b4c9c6f382f54199dd2ce0bede1fe1d3e955d1', NULL, 1568182740, 1590278740),
(103, 1649, 'c2b8d41ab9e26a1bab8015dce3f64ae3b4fe7f27', 'e74dc83d4bc280cb5e312d26853307ea2a08e2f3', NULL, 1568182796, 1590278796),
(104, 1649, 'c2b8d41ab9e26a1bab8015dce3f64ae3b4fe7f27', '9d7f999e05d458b16cf99fd9e60bc34c84504b34', NULL, 1568182837, 1590278837),
(105, 1649, 'c2b8d41ab9e26a1bab8015dce3f64ae3b4fe7f27', 'dc05b13bccf55b1f958b78299edcae20f201b8be', NULL, 1568186859, 1590282859),
(106, 1669, 'cd2cc7d44c563894823c033b7c03f0439168ac07', '90e38c99172258f4bb91c69afbcfe144ccf1c2d0', NULL, 1568580636, 1590676636),
(107, 1649, 'c2b8d41ab9e26a1bab8015dce3f64ae3b4fe7f27', '7823bbd8afc64fa6808e7b3786764c2df816bfc2', NULL, 1569337179, 1591433179),
(108, 1649, 'c2b8d41ab9e26a1bab8015dce3f64ae3b4fe7f27', 'acd5a5d5b2edf5061ccede73b1daac3ff77bfb0d', NULL, 1569337218, 1591433218),
(109, 1649, 'c2b8d41ab9e26a1bab8015dce3f64ae3b4fe7f27', 'c5f25d076090f7c269a2213cda0a3228e1e8d6cf', NULL, 1569337254, 1591433254),
(110, 1649, 'c2b8d41ab9e26a1bab8015dce3f64ae3b4fe7f27', '4bcd342c634317d9e42f98187b972fa9c67075c8', NULL, 1569337465, 1591433465),
(111, 1649, 'bf430cd296a03ed022d57ebc65011aa84783a729', 'e1b6727df53f7a2de881481d520de7bbc9340423', NULL, 1569337843, 1591433843),
(112, 1649, 'c2b8d41ab9e26a1bab8015dce3f64ae3b4fe7f27', 'f7371583e7dde5810348849d9173f26b803893c3', NULL, 1569345602, 1591441602),
(113, 1646, 'be40828114729bd7d9b7605ecd46f8fef8eeebd3', 'df4d3e5ad5534c7df434c91b33ea25e1a76db300', NULL, 1569767181, 1591863181),
(115, 1643, '08e8c97a8529e347314279cc60f70258d670c6c6', '7278b4dbb4a55606080798fa05f22dd9dae6eccc', NULL, 1570391012, 1592487012),
(116, 1647, 'b28acda01e227c33398ea1c1f838ab383de9921a', '43ba130158e51f983352a1217455ac972fd123f3', NULL, 1570676985, 1592772985),
(117, 1646, '792feb4beada7433e5a8397952220500fa53ad3a', 'eac345a8c83af1bc2226539cfa105098257473a5', NULL, 1571733556, 1593829556),
(118, 1647, '464a728e789c1b54af54f573c9b009a7849f3672', '2f09c9e00218f790b94130c1dd506f3ae12a0eb6', NULL, 1573101884, 1595197884),
(119, 1688, 'f78a8ff3ef11fb7ffaf3b4fa804cab890c7b4043', '4528ae09c48a05a715350db634702c54c6ddf91b', NULL, 1573308162, 1595404162),
(120, 1, '89c7f60c2f6aa3800e8cc914a74af17046320055', 'ad00f0a025de595603a2c0c6958fd1d55b5132c3', NULL, 1573367176, 1595463176),
(121, 1647, '788ac434ba97d67043c505a6c0d4bf7699852a8d', 'a469fdd056973bb47186706a571ed7851108cfbb', NULL, 1573370154, 1595466154),
(123, 1647, '595eb0fc564cdd5b96d7098fbe080241f97cf0e4', '347ca66dc2e10f6b18d73583ac82ab4dae70e852', NULL, 1574270860, 1596366860),
(124, 1676, '4a089f08acea2fc398890e2ab42604a92a54d7ee', 'f950c3cf48408f55bd6b94d02117aae8d66c1b98', NULL, 1574341859, 1596437859),
(125, 1676, '4a089f08acea2fc398890e2ab42604a92a54d7ee', 'b6155daaed21c5d26216475a42578507b75b6dc9', NULL, 1574354686, 1596450686);

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

--
-- Table structure for table `variables`
--

CREATE TABLE IF NOT EXISTS `variables` (
  `id` bigint(20) unsigned NOT NULL,
  `descriptions` varchar(255) DEFAULT NULL,
  `value` varchar(255) DEFAULT NULL,
  `value_ar` varchar(255) DEFAULT NULL,
  `value_en` varchar(255) DEFAULT NULL,
  `img` varchar(255) DEFAULT NULL,
  `text_ar` text,
  `text_en` text
) ENGINE=InnoDB AUTO_INCREMENT=97 DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT;

--
-- Dumping data for table `variables`
--

INSERT INTO `variables` (`id`, `descriptions`, `value`, `value_ar`, `value_en`, `img`, `text_ar`, `text_en`) VALUES
(1, 'Logo', 'files/fnil6o37naogevdlt1wr.JPG', NULL, NULL, NULL, NULL, NULL),
(2, 'title', '', 'المكتب التعاوني للدعوة والإرشاد', 'Cooperative Office for Propagation and Guidance', NULL, NULL, NULL),
(4, 'Phone', '+966 17 231 0800', NULL, NULL, NULL, NULL, NULL),
(5, 'Fax', '+966 17 231 0800', NULL, NULL, NULL, NULL, NULL),
(6, 'SMTP_Username', 'nobani@edusoft-sa.com', NULL, NULL, NULL, NULL, NULL),
(7, 'SMTP_Password', 'R@e123456t', NULL, NULL, NULL, NULL, NULL),
(8, 'SMTP_Host', 'mail.edusoft-sa.com', NULL, NULL, NULL, NULL, NULL),
(9, 'SMTP_Port', '25', NULL, NULL, NULL, NULL, NULL),
(10, 'whatsapp', '+966533402929', NULL, NULL, NULL, NULL, NULL),
(11, 'بريد الاشعارات', 'info@jaleat.edu.sa', NULL, NULL, NULL, NULL, NULL),
(12, 'site_URL', 'http://jaleat.edusoft-sa.com', NULL, NULL, NULL, NULL, NULL),
(13, 'Default Language', 'ar', NULL, NULL, NULL, NULL, NULL),
(14, 'keywords', NULL, 'المكتب التعاوني للدعوة والإرشاد', 'Cooperative Office for Propagation and Guidance', NULL, NULL, NULL),
(15, 'Description', NULL, 'المكتب التعاوني للدعوة والإرشاد', 'Cooperative Office for Propagation and Guidance', NULL, NULL, NULL),
(16, 'ساعات الدوام', NULL, 'الأحد- الخميس 8 صباحا - 4 مساء', 'Sunday- Thursday 8:00 - 16:00', NULL, NULL, NULL),
(17, 'ساعات الاغلاق', NULL, 'الجمعة  والسبت- مغلق', 'Friday&amp;Saturday - Closed', NULL, NULL, NULL),
(18, 'instagram', 'https://www.instagram.com/', NULL, NULL, NULL, NULL, NULL),
(19, 'Email', 'info@ibnrushd.edu.sa', NULL, NULL, NULL, NULL, NULL),
(20, '111111111', NULL, NULL, NULL, NULL, NULL, NULL),
(21, 'من نحن بشكل مختصر', NULL, NULL, NULL, NULL, 'نحن نقدم برامج أكاديمية عالية الجودة التي تتميز محليا وإقليميا، نشارك في البحوث التجارية، والتنمية المجتمعية النشطة والمشاركة. كما نسعى جاهدين لتطوير الطلبة ليكونوا قادة ناجحين وقادرين على الالتزام بالقيم الاخلاقية وقادرين على تقديم مساهمات قيمة لمجتمعهم وتوفير فرص تعليمية ممتازة تلتزم بالقيم والتعاليم الإسلامية.', 'We provide high quality academic programs that are distinct locally and regionally, be engaged in business research, and active community development and involvement. We also strive to develop students to be successful and ethical leaders capable of making valued contributions to their community and to provide excellent and accessible learning opportunities which adhere to Islamic values and traditions.'),
(22, '111111111111111', NULL, NULL, NULL, NULL, NULL, NULL),
(23, 'Full Address', NULL, 'ابها، شارع الملك عبد العزيز', 'Abha, King Abdul Aziz Street', NULL, NULL, NULL),
(24, 'city', NULL, 'عمان', 'Amman', NULL, NULL, NULL),
(25, 'street', NULL, 'صرح الشهيد', 'Str', NULL, '        <h2 class="center heading-secondary">بسم   <strong>الله</strong> الرحمن الرحيم</h2>\n        <h4 class="center heading-tertiary"> " وأوفوا بعهد الله إذا عاهدتم ولا تنقضوا الأيمان بعد توكيدها وقد جعلتم الله عليكم كفيلا"</h4>\n        <div class="row">\n            <div class="col-md-12">\n                <p class="lead">\n                    يخضع زوار ومستخدمي موقع وسطاء ينبع للقوانين التالية:\n                </p>\n            </div>\n        </div>', NULL),
(26, 'Building', NULL, 'بناية رقم ..', 'Bu', NULL, NULL, NULL),
(27, 'Text_In_Footer', NULL, '', NULL, NULL, 'نص في الفوتر يمكن تغييره من لوحة التحكم ... الاعدادات', 'Text in the footer can be changed from the control panel settings ...'),
(28, 'questions desc', NULL, '', NULL, NULL, NULL, NULL),
(29, 'terms title', NULL, 'شروط الموقع', NULL, NULL, NULL, NULL),
(30, 'terms kw', NULL, '', NULL, NULL, NULL, NULL),
(31, 'terms des', NULL, '', NULL, NULL, NULL, NULL),
(32, 'terms html begin', NULL, NULL, NULL, NULL, '<p>مرحبا بكم في موقع وسيط ينبع للإعلانات الالكترونية ، وهو موقع خاص بالبيع والشراء. و يعتبر هذا الموقع سوقا إلكترونية متخصصة للبائعين والمشترين، و يتم استخدامه وفقاً للشروط و البنود التالية:</p>', NULL),
(33, 'contact title', NULL, 'اتصل بنا', NULL, NULL, NULL, NULL),
(34, 'contact kw', NULL, 'رشد،كلية،جامعة،أبها،تعليم،،تدريب،دورات،دورة،نظم، معلومات،إدارية، أعمال،إدارة،ـسويق،مالية،محاسبة،موارد،بشرية،عقارات،سياحة،ضيافة', NULL, NULL, NULL, NULL),
(35, 'contact desc', NULL, 'هذا القسم يساعد الزائر على الوصول لموقع كلية ابن رشد بيسر وسهولة والحصول على المعلومات الضرورية', NULL, NULL, NULL, NULL),
(36, 'contact p title', NULL, 'ابق بالقرب', NULL, NULL, NULL, NULL),
(37, 'contact p text', NULL, NULL, NULL, NULL, 'وسيط ينبع يتيح لكم التواصل المباشر مع فريق العمل...', NULL),
(38, 'facebook', 'https://www.facebook.com/', NULL, NULL, NULL, NULL, NULL),
(39, 'twitter', 'https://twitter.com/', NULL, NULL, NULL, NULL, NULL),
(40, '1111111111', NULL, NULL, NULL, NULL, NULL, NULL),
(41, 'توضيح المؤهلات', NULL, NULL, NULL, NULL, 'نحتاج لدرجة الدبلوم والبكالوريوس في الوظائف الإدارية.', 'We need diplma and Bachelor degree for administrative jobs.'),
(42, 'توضيح الشهادات', NULL, NULL, NULL, NULL, '', ''),
(43, 'توضيخ الخبرات', NULL, NULL, NULL, NULL, 'الخبرة المطلوبة لاتقل عن سنتين خبرة في منشآت مشهورة.', 'The minimum experience required is two years in a considerable entity.'),
(44, '1111111111111', NULL, NULL, NULL, NULL, NULL, NULL),
(45, 'صورة 1 عنوان 1', NULL, NULL, NULL, 'files/xz7xpbujbzrnjumimsfa.jpg', NULL, NULL),
(46, 'صورة 2 عنوان 1', NULL, NULL, NULL, 'files/yr9rv8tdrgtzhonfazk9.jpg', NULL, NULL),
(47, 'صورة 3 عنوان 1', NULL, NULL, NULL, 'files/rtngwzrcdrh4mgfzqxda.jpg', NULL, NULL),
(48, 'صورة 1 عنوان 2', NULL, NULL, NULL, 'files/mz4fadytfaw28aw4kazs.jpg', NULL, NULL),
(49, 'صورة 1 عنوان 3', NULL, NULL, NULL, 'files/pzenqrtotfr90yrlkjdm.jpg', NULL, NULL),
(50, 'صورة 1 عنوان 4', NULL, NULL, NULL, 'files/wyjtprcyy8ol1qialbyi.jpg', NULL, NULL),
(51, 'رابط 1', 'http://wyanbu.com/v2/Cars/ShowAll?Cat=7', NULL, NULL, NULL, NULL, NULL),
(52, 'رابط 2', 'http://wyanbu.com/v2/Aqar/ShowAll?Cat=10', NULL, NULL, NULL, NULL, NULL),
(53, 'رابط 3', 'http://wyanbu.com/v2/Souq/ShowAll?Cat=5', NULL, NULL, NULL, NULL, NULL),
(54, 'رابط 4', 'http://wyanbu.com/v2/Dalel/ShowAll?Cat=1', NULL, NULL, NULL, NULL, NULL),
(55, 'مقدمة لنص متحرك', NULL, 'كل ما يخص مدينة ينبع من', NULL, NULL, NULL, NULL),
(56, 'الكلمات المتحركة', NULL, 'اعلانات$خدمات$عقارات$بيع$شراء', NULL, NULL, NULL, NULL),
(57, 'نهاية كلمات متحركة', NULL, 'تجده في موقع واحد', NULL, NULL, NULL, NULL),
(58, 'سطر اسفل الكلمات المتحركة', NULL, 'وصول سريع للمحتوى المطلوب من خلال وسطاء ينبع، اما من خلال صندوق البحث في الاعلى أو من خلال الأقسام', NULL, NULL, NULL, NULL),
(59, 'ظهور النص المتحرك؟', '1', NULL, NULL, NULL, NULL, NULL),
(60, 'عنوان القائمة البريدية', NULL, 'القائمة البريدية', NULL, NULL, NULL, NULL),
(61, 'كلمات دليلة القائمة البريدية', NULL, 'القائمة،البريدية،وسطاء', NULL, NULL, NULL, NULL),
(62, 'Whatsapp Username', '972598654657', NULL, NULL, NULL, NULL, NULL),
(63, 'Whatsapp Password', 'YYKLWtpie1RHPGHYRVcXB/Ya8Uk=', NULL, NULL, NULL, NULL, NULL),
(64, 'Whatsapp Name', 'وسطاء ينبع', NULL, NULL, NULL, NULL, NULL),
(65, 'عنوان التسجيل للبكالوريوس', NULL, 'طلب قبول بكالوريوس للفصل الدراسي الثاني 1439- 1440', ' bachelor application for the second Semester 2018- 2019', NULL, NULL, NULL),
(66, 'عنوان التسجيل للماجستير', NULL, 'طلب قبول ماجستير للفصل الدراسي الثاني 1439- 1440', ' Master application for the second Semester 2018- 2019', NULL, NULL, NULL),
(67, 'الاتفاقية - البكالوريوس', NULL, NULL, NULL, NULL, '<h1><span style="font-family:''trebuchet ms'', helvetica, sans-serif;"><span style="color:#000000;"><span style="font-size:20px;"><strong><span style="background-color:#FFFF00;">بمناسبة مرور 20 عام على تأسيس كلية ابن رشد للعلوم الإدارية ، ومساهمة من الكلية في خدمة المجتمع ، تقدم الكلية منح دراسية جزئية لمرحلة البكالوريوس للطلاب والطالبات تصل إلى 50% وفق ضوابط وشروط محددة يتم الاطلاع عليها عند إكمال إجراءات القبول، والموافقة عليها.</span></strong></span></span></span></h1>\n\n<h2 style="font-style:italic;"> </h2>\n\n<h4 style="text-align:right;"><u><span style="color:rgb(255,0,0);"><span style="font-size:18px;">إقرار بصحة المعلومات</span></span></u></h4>\n\n<h4 style="text-align:right;"><br /><span style="font-size:18px;"><span style="color:rgb(0,0,0);">أقر أنا المتقدم الموضحة بياناتي  التالية بأن كافة المعلومات التي دونتها في هذه الأستمارة كاملة وصحيحة وأتحمل<br />\nشخصياً مسؤولية ذلك, وأن جميع المستندات الرسمية المرفقة بالملف تخصني وهي صحيحة ومعتمدة من جهة<br />\nإصدارها , وأتحمل كافة العواقب المترتبة في حال كانت هناك أي بيانات غير مكتملة أو غير صحيحة في إستمارة<br />\nالتسجيل أو ملف التسجيل . وعلى ذلك أوقع ادناه.</span></span></h4>\n\n<h4 style="text-align:right;"><span style="font-family:''times new roman'', times, serif;"><span style="font-size:16px;"><strong><span style="color:rgb(255,0,0);">شروط القبول لمرحلة البكالوريوس:</span></strong></span></span></h4>\n\n<h5 style="text-align:right;"><span style="font-family:''times new roman'', times, serif;"><span style="color:rgb(0,0,128);"><span style="font-size:16px;"><strong><u>المؤهلات المطلوبة:</u></strong></span></span></span></h5>\n\n<ul><li style="text-align:right;"><span style="font-family:''times new roman'', times, serif;"><span style="font-size:16px;">أن يكون الطالب حاصلاً على الثانوية العامة أو مايعادلها بمعدل لا يقل عن جيد.</span></span></li>\n	<li style="text-align:right;"><span style="font-family:''times new roman'', times, serif;"><span style="font-size:16px;">أن يحصل على 65 درجة في امتحان القدرات ، و 60 درجة في التحصيلي.</span></span></li>\n	<li style="text-align:right;"><span style="font-family:''times new roman'', times, serif;"><span style="font-size:16px;">أن يجتاز المقابلة الشخصية.</span></span></li>\n	<li style="text-align:right;"><span style="font-family:''times new roman'', times, serif;"><span style="font-size:16px;">أن يجتاز الفحص الطبي.</span></span></li>\n</ul><h5 style="text-align:right;"><span style="font-family:''times new roman'', times, serif;"><span style="color:rgb(0,0,128);"><span style="font-size:16px;"><strong><u>المستندات المطلوبة: </u></strong></span></span></span></h5>\n\n<ul><li style="text-align:right;"><span style="color:rgb(0,0,0);"><span style="font-family:''times new roman'', times, serif;"><span style="font-size:16px;">أصل استمارة الثانوية العامة أو ما يعادلها مع صورتين لها.</span></span></span></li>\n	<li style="text-align:right;"><span style="color:rgb(0,0,0);"><span style="font-family:''times new roman'', times, serif;"><span style="font-size:16px;">أصل شهادة حسن السيرة والسلوك مع صورتين لها.</span></span></span></li>\n	<li style="text-align:right;"><span style="color:rgb(0,0,0);"><span style="font-family:''times new roman'', times, serif;"><span style="font-size:16px;">6 صور شمسية حديثة مقاس 4*6 سم.</span></span></span></li>\n	<li style="text-align:right;"><span style="color:rgb(0,0,0);"><span style="font-family:''times new roman'', times, serif;"><span style="font-size:16px;">صورة من بطاقة الأحوال المدنية أو صورة من دفتر العائلة أو صورة الإقامة سارية المفعول لغير السعوديين.</span></span></span></li>\n	<li dir="rtl" style="text-align:right;"><span style="color:rgb(0,0,0);"><span style="font-size:16px;"><span style="font-family:''times new roman'', times, serif;">رسوم القبول 2000 ريال وهي غير مستردة ، قبل الطالب/الطالبة  أم لم يقبل/ تقبل، (</span></span><strong><span style="font-family:arial, sans-serif;">و</span></strong><span dir="ltr" lang="ar-sa" xml:lang="ar-sa"><strong> </strong></span><strong><span style="font-family:arial, sans-serif;">يمكن</span></strong><strong><span dir="ltr" lang="ar-sa" xml:lang="ar-sa"> </span></strong><strong><span style="font-family:arial, sans-serif;">الدفع</span></strong><strong><span dir="ltr" lang="ar-sa" xml:lang="ar-sa"> ،نقدا داخل الكلية  </span></strong><strong><span style="font-family:arial, sans-serif;">أو من</span></strong><strong><span dir="ltr" lang="ar-sa" xml:lang="ar-sa"> </span></strong><strong><span style="font-family:arial, sans-serif;">خلال</span></strong><strong><span dir="ltr" lang="ar-sa" xml:lang="ar-sa"> </span></strong><strong><span style="font-family:arial, sans-serif;">الإيداع في حساب</span></strong><strong><span dir="ltr" lang="ar-sa" xml:lang="ar-sa"> </span></strong><strong><span style="font-family:arial, sans-serif;">الكلية</span></strong><strong><span dir="ltr" lang="ar-sa" xml:lang="ar-sa"> </span></strong><strong><span style="font-family:arial, sans-serif;">في<em> مصرف الراجحي رقم (</em></span><span dir="ltr">(589608010002003  </span></strong></span></li>\n	<li style="text-align:right;"><u><span style="font-size:18px;"><strong><span style="color:rgb(255,0,0);"><span style="font-family:''times new roman'', times, serif;">إحضار جميع الأوراق المطلوبة  بعالية للكلية مباشرة بعد تعبئة نموذج القبول.</span></span></strong></span></u></li>\n</ul>', '<h1><span style="font-family:''trebuchet ms'', helvetica, sans-serif;"><span style="color:rgb(0,0,0);"><span style="font-size:20px;"><strong><span style="background-color:rgb(255,255,0);">بمناسبة مرور 20 عام على تأسيس كلية ابن رشد للعلوم الإدارية ، ومساهمة من الكلية في خدمة المجتمع ، تقدم الكلية منح دراسية جزئية لمرحلة البكالوريوس للطلاب والطالبات تصل إلى 50% وفق ضوابط وشروط محددة يتم الاطلاع عليها عند إكمال إجراءات القبول، والموافقة عليها.</span></strong></span></span></span></h1>\n\n<h2 style="font-style:italic;"> </h2>\n\n<h4 style="text-align:right;"><u><span style="color:rgb(255,0,0);"><span style="font-size:18px;">إقرار بصحة المعلومات</span></span></u></h4>\n\n<h4 style="text-align:right;"><br /><span style="font-size:18px;"><span style="color:rgb(0,0,0);">أقر أنا المتقدم الموضحة بياناتي  التالية بأن كافة المعلومات التي دونتها في هذه الأستمارة كاملة وصحيحة وأتحمل<br />\nشخصياً مسؤولية ذلك, وأن جميع المستندات الرسمية المرفقة بالملف تخصني وهي صحيحة ومعتمدة من جهة<br />\nإصدارها , وأتحمل كافة العواقب المترتبة في حال كانت هناك أي بيانات غير مكتملة أو غير صحيحة في إستمارة<br />\nالتسجيل أو ملف التسجيل . وعلى ذلك أوقع ادناه.</span></span></h4>\n\n<h4 style="text-align:right;"><span style="font-family:''times new roman'', times, serif;"><span style="font-size:16px;"><strong><span style="color:rgb(255,0,0);">شروط القبول لمرحلة البكالوريوس:</span></strong></span></span></h4>\n\n<h5 style="text-align:right;"><span style="font-family:''times new roman'', times, serif;"><span style="color:rgb(0,0,128);"><span style="font-size:16px;"><strong><u>المؤهلات المطلوبة:</u></strong></span></span></span></h5>\n\n<ul><li style="text-align:right;"><span style="font-family:''times new roman'', times, serif;"><span style="font-size:16px;">أن يكون الطالب حاصلاً على الثانوية العامة أو مايعادلها بمعدل لا يقل عن جيد.</span></span></li>\n	<li style="text-align:right;"><span style="font-family:''times new roman'', times, serif;"><span style="font-size:16px;">أن يحصل على 65 درجة في امتحان القدرات ، و 60 درجة في التحصيلي.</span></span></li>\n	<li style="text-align:right;"><span style="font-family:''times new roman'', times, serif;"><span style="font-size:16px;">أن يجتاز المقابلة الشخصية.</span></span></li>\n	<li style="text-align:right;"><span style="font-family:''times new roman'', times, serif;"><span style="font-size:16px;">أن يجتاز الفحص الطبي.</span></span></li>\n</ul><h5 style="text-align:right;"><span style="font-family:''times new roman'', times, serif;"><span style="color:rgb(0,0,128);"><span style="font-size:16px;"><strong><u>المستندات المطلوبة:</u></strong></span></span></span></h5>\n\n<ul><li style="text-align:right;"><span style="color:rgb(0,0,0);"><span style="font-family:''times new roman'', times, serif;"><span style="font-size:16px;">أصل استمارة الثانوية العامة أو ما يعادلها مع صورتين لها.</span></span></span></li>\n	<li style="text-align:right;"><span style="color:rgb(0,0,0);"><span style="font-family:''times new roman'', times, serif;"><span style="font-size:16px;">أصل شهادة حسن السيرة والسلوك مع صورتين لها.</span></span></span></li>\n	<li style="text-align:right;"><span style="color:rgb(0,0,0);"><span style="font-family:''times new roman'', times, serif;"><span style="font-size:16px;">6 صور شمسية حديثة مقاس 4*6 سم.</span></span></span></li>\n	<li style="text-align:right;"><span style="color:rgb(0,0,0);"><span style="font-family:''times new roman'', times, serif;"><span style="font-size:16px;">صورة من بطاقة الأحوال المدنية أو صورة من دفتر العائلة أو صورة الإقامة سارية المفعول لغير السعوديين.</span></span></span></li>\n	<li style="text-align:right;"><span style="color:rgb(0,0,0);"><span style="font-family:''noto kufi arabic'', serif;font-size:16px;"><span style="font-family:''times new roman'', times, serif;">رسوم القبول 2000 ريال غير مستردة  <strong>(</strong></span></span></span><strong><span style="color:rgb(0,0,0);"><span style="font-family:arial, sans-serif;">و</span><span dir="ltr" lang="ar-sa" style="font-family:''noto kufi arabic'', serif;font-size:14px;" xml:lang="ar-sa"> </span><span style="font-family:arial, sans-serif;">يمكن</span><span dir="ltr" lang="ar-sa" style="font-family:''noto kufi arabic'', serif;" xml:lang="ar-sa"> </span><span style="font-family:arial, sans-serif;">الدفع</span><span dir="ltr" lang="ar-sa" style="font-family:''noto kufi arabic'', serif;" xml:lang="ar-sa"> </span><span style="font-family:arial, sans-serif;">من</span><span dir="ltr" lang="ar-sa" style="font-family:''noto kufi arabic'', serif;" xml:lang="ar-sa"> </span><span style="font-family:arial, sans-serif;">خلال</span><span dir="ltr" lang="ar-sa" style="font-family:''noto kufi arabic'', serif;" xml:lang="ar-sa"> </span><span style="font-family:arial, sans-serif;">حساب</span><span dir="ltr" lang="ar-sa" style="font-family:''noto kufi arabic'', serif;" xml:lang="ar-sa"> </span><span style="font-family:arial, sans-serif;">الكلية</span><span dir="ltr" lang="ar-sa" style="font-family:''noto kufi arabic'', serif;" xml:lang="ar-sa"> </span><span style="font-family:arial, sans-serif;">في</span><em> مصرف الراجحي </em></span><span dir="ltr" style="color:rgb(0,0,0);font-family:''noto kufi arabic'', serif;"><strong>( 589608010002003</strong>)</span></strong></li>\n	<li style="text-align:right;"><u><span style="font-size:18px;"><strong><span style="color:rgb(255,0,0);"><span style="font-family:''times new roman'', times, serif;">إحضار جميع الأوراق المطلوبة  بعالية للكلية مباشرة بعد تعبئة نموذج القبول.</span></span></strong></span></u></li>\n</ul>'),
(68, 'الاتفاقية - الماجستير', NULL, NULL, NULL, NULL, '<h4 style="text-align:right;"> </h4>\n\n<h4 style="text-align:right;"><u><span style="color:rgb(255,0,0);"><span style="font-size:18px;">إقرار بصحة المعلومات</span></span></u></h4>\n\n<h4 style="text-align:right;"><br /><span style="font-size:18px;"><span style="color:rgb(0,0,0);">أقر أنا المتقدم الموضحة بياناتي التالية بأن كافة المعلومات التي دونتها في هذه الأستمارة كاملة وصحيحة وأتحمل<br />\nشخصياً مسؤولية ذلك, وأن جميع المستندات الرسمية المرفقة بالملف تخصني وهي صحيحة ومعتمدة من جهة<br />\nإصدارها , وأتحمل كافة العواقب المترتبة في حال كانت هناك أي بيانات غير مكتملة أو غير صحيحة في إستمارة<br />\nالتسجيل أو ملف التسجيل . وعلى ذلك أوقع ادناه.</span></span></h4>\n\n<h4 dir="rtl"><span style="font-size:16px;"><span style="font-family:''times new roman'', times, serif;"><span style="color:rgb(255,0,0);"><strong>شروط القبول لمرحلة الدراسات العليا (ماجستير إدارة أعمال):</strong></span></span></span></h4>\n\n<h5 dir="rtl"><span style="color:rgb(0,0,128);"><span style="font-size:16px;"><span style="font-family:''times new roman'', times, serif;"><u><strong>شروط ومعايير القبول في برنامج ماجستير إدارة الأعمال ( MBA ) وتمهيدي ماجستير إدارة الأعمال ( P- MBA ) لغير المتخصصين على النحو الآتي :</strong></u></span></span></span></h5>\n\n<ul dir="rtl"><li><span style="color:rgb(0,0,0);"><span style="font-size:16px;"><span style="font-family:''times new roman'', times, serif;">بالنسبة لبرنامج الماجستير : يكون المتقدم حاصل على شهادة البكالوريوس في علوم الإدارة أو ما يندرج تحت مسمى إدارة الأعمال من إحدى الجامعات المعتمدة ، بالنسبة لتمهيدي الماجستير : يكون المتقدم حاصل على شهادة البكالوريوس من إحدى الجامعات المعتمدة ( التخصصات الغير إدارية ).</span></span></span></li>\n	<li><span style="color:rgb(0,0,0);"><span style="font-size:16px;"><span style="font-family:''times new roman'', times, serif;">أن يكون المتقدم حاصل على معدل تراكمي 3.75 من 5 أو معدل 3 من 4 كحد أدنى بتقدير لا يقل عن جيد جدًا.</span></span></span></li>\n	<li><span style="color:rgb(0,0,0);"><span style="font-size:16px;"><span style="font-family:''times new roman'', times, serif;">سوف يتم قبول تقديرجيد في حالة موافقة مجلس الكلية بشرط دراسة المواد التكميلية ( تمهيدي ماجستير).</span></span></span></li>\n	<li><span style="color:rgb(0,0,0);"><span style="font-size:16px;"><span style="font-family:''times new roman'', times, serif;"><span style="color:rgb(0,0,0);"><span style="font-size:16px;"><span style="font-family:''times new roman'', times, serif;">أن يكون حسن السيرة والسلوك.</span></span></span></span></span></span></li>\n	<li><span style="font-size:16px;"><span style="font-family:''times new roman'', times, serif;"><span style="color:rgb(0,0,0);">للجنة الدائمة للدراسات العليا والبحث العلمي حق إضافة أي شروط أخرى تراها ضرورية</span>.</span></span></li>\n</ul><h5 style="text-align:right;"><span style="color:rgb(0,0,128);"><span style="font-size:16px;"><span style="font-family:''times new roman'', times, serif;"><u><strong>المستندات المطلوبة:</strong></u></span></span></span></h5>\n\n<ul><li dir="rtl" style="text-align:right;"><span style="color:rgb(0,0,0);"><span style="font-size:16px;"><span style="font-family:''times new roman'', times, serif;">صورة مصدقة من وثيقة التخرج مع وجود الأصل للمطابقة.</span></span></span></li>\n	<li dir="rtl" style="text-align:right;"><span style="color:rgb(0,0,0);"><span style="font-size:16px;"><span style="font-family:''times new roman'', times, serif;">صورة مصدقة من السجل الأكاديمي مع وجود الأصل للمطابقة.</span></span></span></li>\n	<li dir="rtl" style="text-align:right;"><span style="color:rgb(0,0,0);"><span style="font-size:16px;"><span style="font-family:''times new roman'', times, serif;">توصيتين علميتين على الأقل .</span></span></span></li>\n	<li dir="rtl" style="text-align:right;"><span style="color:rgb(0,0,0);"><span style="font-size:16px;"><span style="font-family:''times new roman'', times, serif;">رسوم القبول 4000 ريال وهي غير مستردة ، قبل الطالب/الطالبة  أم لم يقبل/ تقبل، (</span></span><strong><span style="font-family:arial, sans-serif;">و</span></strong><span dir="ltr" lang="ar-sa" xml:lang="ar-sa"><strong> </strong></span><strong><span style="font-family:arial, sans-serif;">يمكن</span></strong><strong><span dir="ltr" lang="ar-sa" xml:lang="ar-sa"> </span></strong><strong><span style="font-family:arial, sans-serif;">الدفع</span></strong><strong><span dir="ltr" lang="ar-sa" xml:lang="ar-sa"> ،نقدا داخل الكلية  </span></strong><strong><span style="font-family:arial, sans-serif;">أو من</span></strong><strong><span dir="ltr" lang="ar-sa" xml:lang="ar-sa"> </span></strong><strong><span style="font-family:arial, sans-serif;">خلال</span></strong><strong><span dir="ltr" lang="ar-sa" xml:lang="ar-sa"> </span></strong><strong><span style="font-family:arial, sans-serif;">الإيداع في حساب</span></strong><strong><span dir="ltr" lang="ar-sa" xml:lang="ar-sa"> </span></strong><strong><span style="font-family:arial, sans-serif;">الكلية</span></strong><strong><span dir="ltr" lang="ar-sa" xml:lang="ar-sa"> </span></strong><strong><span style="font-family:arial, sans-serif;">في<em> مصرف الراجحي رقم (</em></span><span dir="ltr">(589608010002003  </span></strong></span></li>\n	<li dir="rtl" style="text-align:right;"><span style="color:rgb(0,0,0);"><span style="font-size:16px;"><span style="font-family:''times new roman'', times, serif;">موافقة جهة العمل الخطية ( إذا كان المتقدم موظف) .</span></span></span></li>\n	<li dir="rtl" style="text-align:right;"><span style="color:rgb(0,0,0);"><span style="font-size:16px;"><span style="font-family:''times new roman'', times, serif;">السيرة الذاتية .</span></span></span></li>\n	<li dir="rtl" style="text-align:right;"><span style="color:rgb(0,0,0);"><span style="font-size:16px;"><span style="font-family:''times new roman'', times, serif;">صور شمسية حديثة عدد (5 صور ) مقاس 4×6.</span></span></span></li>\n	<li dir="rtl" style="text-align:right;"><span style="color:rgb(0,0,0);"><span style="font-size:16px;"><span style="font-family:''times new roman'', times, serif;">ملف علاقي .</span></span></span></li>\n	<li dir="rtl" style="text-align:right;"><span style="color:rgb(0,0,0);"><span style="font-size:16px;"><span style="font-family:''times new roman'', times, serif;">صورة من بطاقة الأحوال أو صورة من دفتر العائلة أو الإقامة السارية المفعول لغير السعوديين .</span></span></span></li>\n	<li dir="rtl" style="text-align:right;"><span style="color:rgb(0,0,0);"><span style="font-size:16px;"><span style="font-family:''times new roman'', times, serif;">صورة من جواز السفر. </span></span></span></li>\n	<li dir="rtl" style="text-align:right;"><span style="color:rgb(0,0,0);"><span style="font-size:16px;"><span style="font-family:''times new roman'', times, serif;">تعبئة النماذج الخاصة بالقسم : ( استمارة الإلتحاق بالبرنامج - استمارة الفحص الطبي - إقرار الموافقة من جهة العمل - سند استلام الملف ).</span></span></span></li>\n	<li dir="rtl" style="text-align:right;"><span style="color:rgb(0,0,0);"><span style="font-size:16px;"><span style="font-family:''times new roman'', times, serif;">الموافقة من لجنة الدراسات العليا والبحث العلمي على إنضمام المتقدم/ـة للبرنامج مباشرة بدون إحتياجه/ـا لبرنامج تمهيدي الماجستير.</span></span></span></li>\n	<li style="text-align:right;"><span style="color:rgb(0,0,0);"><span style="font-size:16px;"><span style="font-family:''times new roman'', times, serif;">إجتياز المقابلة الشخصية</span></span></span></li>\n	<li style="text-align:right;"><span style="font-size:22px;"><u><span style="color:rgb(255,0,0);"><strong><span style="font-family:''times new roman'', times, serif;">إحضار جميع الأوراق المطلوبة  بعالية للكلية مباشرة بعد تعبئة نموذج القبول.</span></strong></span></u></span></li>\n</ul>', '<h4 style="text-align:right;"><u><span style="color:rgb(255,0,0);"><span style="font-size:18px;">إقرار بصحة المعلومات</span></span></u></h4>\n\n<h4 style="text-align:right;"><br /><span style="font-size:18px;"><span style="color:rgb(0,0,0);">أقر أنا المتقدم الموضحة بياناتي التالية بأن كافة المعلومات التي دونتها في هذه الأستمارة كاملة وصحيحة وأتحمل<br />\nشخصياً مسؤولية ذلك, وأن جميع المستندات الرسمية المرفقة بالملف تخصني وهي صحيحة ومعتمدة من جهة<br />\nإصدارها , وأتحمل كافة العواقب المترتبة في حال كانت هناك أي بيانات غير مكتملة أو غير صحيحة في إستمارة<br />\nالتسجيل أو ملف التسجيل . وعلى ذلك أوقع ادناه.</span></span></h4>\n\n<h4 dir="rtl"><span style="font-size:16px;"><span style="font-family:''times new roman'', times, serif;"><span style="color:rgb(255,0,0);"><strong>شروط القبول لمرحلة الدراسات العليا (ماجستير إدارة أعمال):</strong></span></span></span></h4>\n\n<h5 dir="rtl"><span style="color:rgb(0,0,128);"><span style="font-size:16px;"><span style="font-family:''times new roman'', times, serif;"><u><strong>شروط ومعايير القبول في برنامج ماجستير إدارة الأعمال ( MBA ) وتمهيدي ماجستير إدارة الأعمال ( P- MBA ) لغير المتخصصين على النحو الآتي :</strong></u></span></span></span></h5>\n\n<ul dir="rtl"><li><span style="color:rgb(0,0,0);"><span style="font-size:16px;"><span style="font-family:''times new roman'', times, serif;">بالنسبة لبرنامج الماجستير : يكون المتقدم حاصل على شهادة البكالوريوس في علوم الإدارة أو ما يندرج تحت مسمى إدارة الأعمال من إحدى الجامعات المعتمدة ، بالنسبة لتمهيدي الماجستير : يكون المتقدم حاصل على شهادة البكالوريوس من إحدى الجامعات المعتمدة ( التخصصات الغير إدارية ).</span></span></span></li>\n	<li><span style="color:rgb(0,0,0);"><span style="font-size:16px;"><span style="font-family:''times new roman'', times, serif;">أن يكون المتقدم حاصل على معدل تراكمي 3.75 من 5 أو معدل 3 من 4 كحد أدنى بتقدير لا يقل عن جيد جدًا.</span></span></span></li>\n	<li><span style="color:rgb(0,0,0);font-family:''times new roman'', times, serif;font-size:16px;">سوف يتم قبول تقدير</span><span style="color:rgb(0,0,0);font-family:''times new roman'', times, serif;font-size:16px;">جيد في حالة موافقة مجلس الكلية بشرط دراسة المواد التكميلية ( تمهيدي ماجستير).</span></li>\n	<li><span style="color:rgb(0,0,0);"><span style="font-size:16px;"><span style="font-family:''times new roman'', times, serif;">أن يكون حسن السيرة والسلوك.</span></span></span></li>\n	<li><span style="font-size:16px;"><span style="font-family:''times new roman'', times, serif;"><span style="color:rgb(0,0,0);">للجنة الدائمة للدراسات العليا والبحث العلمي حق إضافة أي شروط أخرى تراها ضرورية</span>.</span></span></li>\n</ul><h5 style="text-align:right;"><span style="color:rgb(0,0,128);"><span style="font-size:16px;"><span style="font-family:''times new roman'', times, serif;"><u><strong>المستندات المطلوبة:</strong></u></span></span></span></h5>\n\n<ul><li dir="rtl" style="text-align:right;"><span style="color:rgb(0,0,0);"><span style="font-size:16px;"><span style="font-family:''times new roman'', times, serif;">صورة مصدقة من وثيقة التخرج مع وجود الأصل للمطابقة.</span></span></span></li>\n	<li dir="rtl" style="text-align:right;"><span style="color:rgb(0,0,0);"><span style="font-size:16px;"><span style="font-family:''times new roman'', times, serif;">صورة مصدقة من السجل الأكاديمي مع وجود الأصل للمطابقة.</span></span></span></li>\n	<li dir="rtl" style="text-align:right;"><span style="color:rgb(0,0,0);"><span style="font-size:16px;"><span style="font-family:''times new roman'', times, serif;">توصيتين علميتين على الأقل .</span></span></span></li>\n	<li dir="rtl" style="text-align:right;"><span style="color:rgb(0,0,0);"><span style="font-size:16px;"><span style="font-family:''times new roman'', times, serif;">رسوم القبول 4000 ريال وهي غير مستردة (</span></span><strong><span style="font-family:arial, sans-serif;">و</span></strong><span dir="ltr" lang="ar-sa" xml:lang="ar-sa"><strong> </strong></span><strong><span style="font-family:arial, sans-serif;">يمكن</span></strong><strong><span dir="ltr" lang="ar-sa" xml:lang="ar-sa"> </span></strong><strong><span style="font-family:arial, sans-serif;">الدفع</span></strong><strong><span dir="ltr" lang="ar-sa" xml:lang="ar-sa"> </span></strong><strong><span style="font-family:arial, sans-serif;">من</span></strong><strong><span dir="ltr" lang="ar-sa" xml:lang="ar-sa"> </span></strong><strong><span style="font-family:arial, sans-serif;">خلال</span></strong><strong><span dir="ltr" lang="ar-sa" xml:lang="ar-sa"> </span></strong><strong><span style="font-family:arial, sans-serif;">حساب</span></strong><strong><span dir="ltr" lang="ar-sa" xml:lang="ar-sa"> </span></strong><strong><span style="font-family:arial, sans-serif;">الكلية</span></strong><strong><span dir="ltr" lang="ar-sa" xml:lang="ar-sa"> </span></strong><strong><span style="font-family:arial, sans-serif;">في<em> مصرف الراجحي </em></span></strong><strong><span dir="ltr">( 589608010002003 )</span></strong></span></li>\n	<li dir="rtl" style="text-align:right;"><span style="color:rgb(0,0,0);"><span style="font-size:16px;"><span style="font-family:''times new roman'', times, serif;">موافقة جهة العمل الخطية ( إذا كان المتقدم موظف) .</span></span></span></li>\n	<li dir="rtl" style="text-align:right;"><span style="color:rgb(0,0,0);"><span style="font-size:16px;"><span style="font-family:''times new roman'', times, serif;">السيرة الذاتية .</span></span></span></li>\n	<li dir="rtl" style="text-align:right;"><span style="color:rgb(0,0,0);"><span style="font-size:16px;"><span style="font-family:''times new roman'', times, serif;">صور شمسية حديثة عدد (5 صور ) مقاس 4×6.</span></span></span></li>\n	<li dir="rtl" style="text-align:right;"><span style="color:rgb(0,0,0);"><span style="font-size:16px;"><span style="font-family:''times new roman'', times, serif;">ملف علاقي .</span></span></span></li>\n	<li dir="rtl" style="text-align:right;"><span style="color:rgb(0,0,0);"><span style="font-size:16px;"><span style="font-family:''times new roman'', times, serif;">صورة من بطاقة الأحوال أو صورة من دفتر العائلة أو الإقامة السارية المفعول لغير السعوديين .</span></span></span></li>\n	<li dir="rtl" style="text-align:right;"><span style="color:rgb(0,0,0);"><span style="font-size:16px;"><span style="font-family:''times new roman'', times, serif;">صورة من جواز السفر. </span></span></span></li>\n	<li dir="rtl" style="text-align:right;"><span style="color:rgb(0,0,0);"><span style="font-size:16px;"><span style="font-family:''times new roman'', times, serif;">تعبئة النماذج الخاصة بالقسم : ( استمارة الإلتحاق بالبرنامج - استمارة الفحص الطبي - إقرار الموافقة من جهة العمل - سند استلام الملف ).</span></span></span></li>\n	<li dir="rtl" style="text-align:right;"><span style="color:rgb(0,0,0);"><span style="font-size:16px;"><span style="font-family:''times new roman'', times, serif;">الموافقة من لجنة الدراسات العليا والبحث العلمي على إنضمام المتقدم/ـة للبرنامج مباشرة بدون إحتياجه/ـا لبرنامج تمهيدي الماجستير.</span></span></span></li>\n	<li style="text-align:right;"><span style="color:rgb(0,0,0);"><span style="font-size:16px;"><span style="font-family:''times new roman'', times, serif;">إجتياز المقابلة الشخصية</span></span></span></li>\n	<li style="text-align:right;"><span style="font-size:22px;"><u><span style="color:rgb(255,0,0);"><strong><span style="font-family:''times new roman'', times, serif;">إحضار جميع الأوراق المطلوبة  بعالية للكلية مباشرة بعد تعبئة نموذج القبول.</span></strong></span></u></span></li>\n</ul>'),
(69, 'حالة التسجيل للبكالوريوس', 'Closed', NULL, NULL, NULL, NULL, NULL),
(70, 'حالة التسجيل للماجستير', 'Closed', NULL, NULL, NULL, NULL, NULL),
(71, 'رسالة نجاح التسجيل للبكالوريوس', NULL, NULL, NULL, NULL, '<p><span style="font-size:18px;"><span style="font-family:tahoma, geneva, sans-serif;"><span style="color:#0000FF;"><strong>تم  التقديم بنجاح </strong></span></span></span></p>\n', '<p><strong><span style="color:#0000FF;"><span style="font-family:tahoma, geneva, sans-serif;">your application has been submitted successfully</span></span></strong></p>\n'),
(72, 'رسالة نجاح التسجيل للماجستير', NULL, NULL, NULL, NULL, '<p><strong>تم  التقديم بنجاح </strong></p>\n', '<p>تم التقدم بنجاح </p>\n'),
(73, 'رسوم التسجيل للبكالوريوس', '2000', NULL, NULL, NULL, NULL, NULL),
(74, 'رسوم التسجيل للماجستير', '4000', NULL, NULL, NULL, NULL, NULL),
(75, 'هل المقابلة مطلوبة عند التحاق البكالوريوس', 'no', NULL, NULL, NULL, NULL, NULL),
(76, 'هل المقابلة مطلوبة عند التحاق الماجستير', 'yes', NULL, NULL, NULL, NULL, NULL),
(77, 'حالة النسجيل للطلبة', 'Open', NULL, NULL, NULL, NULL, NULL),
(78, 'فتح باب التسجيل للفصل', '7', NULL, NULL, NULL, NULL, NULL),
(79, 'المستوى الأول - بكالوريوس', '1', NULL, NULL, NULL, NULL, NULL),
(80, 'المستوى الأول - ماجستير', '7', NULL, NULL, NULL, NULL, NULL),
(81, 'شعار اعتماد الوزارة', 'files/up3ot004h4vukr2fqmwt.png', NULL, NULL, NULL, NULL, NULL),
(82, ' الشعار الثاني عاليسار', 'files/awsqeeubqetbc0phawib.png', NULL, NULL, NULL, NULL, NULL),
(83, 'رابط يوتيوب في رئيسية الموقع', 'https://www.youtube.com/watch?v=Xn-ANZ59Sio', NULL, NULL, NULL, NULL, NULL),
(84, 'رابط اعتماد الوزارة', 'https://www.moe.gov.sa', NULL, NULL, NULL, NULL, NULL),
(85, 'رابط الشعار الثاني عاليسار', 'http://vision2030.gov.sa', NULL, NULL, NULL, NULL, NULL),
(86, 'حالة تقديم طلبات التوظيف', 'Open', NULL, NULL, NULL, NULL, NULL),
(87, 'رسالة اغلاق طلبات التوظيف', NULL, NULL, NULL, NULL, 'لا يوجد وظائف حاليا.', 'No vacant jobs'),
(88, 'رابط المجلة', 'files/journal/2018/05/zkrvg1ueannlvujkg2k42f.pdf', NULL, NULL, NULL, NULL, NULL),
(89, 'صورة عميد الكلية', NULL, 'files/7yox7sht7o0y1d6q6mcn.png', 'files/pgk6bweuil0swwf1et5u.png', NULL, NULL, NULL),
(90, 'عنوان كلمة العميد', NULL, 'كلمة عميد الكلية', 'Dean''s word', NULL, NULL, NULL),
(91, 'اسم العميد', NULL, 'د. علي بن مفرح سرحان', 'Dr. Ali M. Serhan', NULL, NULL, NULL),
(92, 'كلمة العميد بشكل مختصر', NULL, NULL, NULL, NULL, 'أهلاً ومرحباً بك عزيزي القارئ في جولة قصيرة عبر أسطر هذه الكلمة المتواضعة للتعرف على أول كلية أهلية في المملكة – كلية ابن رشد للعلوم الإدارية بأبها- والتي تعدّ واحدة من أفضل صروح التعليم الأهلي الجامعي في المملكة حيث افتتحت في مدينة أبها عام 1420هـ لتشارك وتساهم مع بقية المؤسسات والشركات التعليمية الأخرى في بناء الوطن والمواطن.\nنحن نقدم برامج أكاديمية عالية الجودة التي تتميز محليا وإقليميا، نشارك في البحوث التجارية، والتنمية المجتمعية النشطة والمشاركة. كما نسعى جاهدين لتطوير الطلبة ليكونوا قادة ناجحين وقادرين على الالتزام بالقيم الاخلاقية وقادرين على تقديم مساهمات قيمة لمجتمعهم وتوفير فرص تعليمية ممتازة تلتزم بالقيم والتعاليم الإسلامية.\n', ' I welcome our dear readers. As you are aware, lbn Rushd College of Management Sciences (IRCMS) which is first private institution of higher learning that is recognized in the kingdom is one of the best private institutions. The college was established in 1420 H and it has been helping , in addition to other educational institutions, in satisfying the educational needs of the people in Abha and the Kingdom in general.\nWe provide high quality academic programs that are distinct locally and regionally, be engaged in business research, and active community development and involvement. We also strive to develop students to be successful and ethical leaders capable of making valued contributions to their community and to provide excellent and accessible learning opportunities which adhere to Islamic values and traditions.'),
(93, 'صورة فوتر الرئيسية', NULL, NULL, NULL, 'files/6ax2nehtu2tcyds7ujlk.jpg', NULL, NULL),
(94, 'سناب شات', 'https://www.snapchat.com/add/', NULL, NULL, NULL, NULL, NULL),
(95, 'يوتيوب', '', NULL, NULL, NULL, NULL, NULL),
(96, 'التواصل', 'التواصل', 'التواصل', 'Messages', NULL, NULL, NULL);

--
-- Indexes for dumped tables
--

--
-- Indexes for table `accounting_accounts`
--
ALTER TABLE `accounting_accounts`
  ADD PRIMARY KEY (`id`),
  ADD KEY `FK_accounting_accounts_accounting_accounts` (`ParentNo`),
  ADD KEY `FK_accounting_accounts_users` (`Created_by`);

--
-- Indexes for table `accounting_accounts_trans`
--
ALTER TABLE `accounting_accounts_trans`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `accounting_accounts_transdetail`
--
ALTER TABLE `accounting_accounts_transdetail`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `accounting_employees_salary`
--
ALTER TABLE `accounting_employees_salary`
  ADD PRIMARY KEY (`id`),
  ADD KEY `FK_financials_payments_users_2` (`Created_by`),
  ADD KEY `FK_financials_payments_users_3` (`last_update_by`),
  ADD KEY `FK_financials_payments_users_4` (`deleted_by`);

--
-- Indexes for table `accounting_links`
--
ALTER TABLE `accounting_links`
  ADD PRIMARY KEY (`id`),
  ADD KEY `FK_financials_payments_users_2` (`Created_by`),
  ADD KEY `FK_financials_payments_users_3` (`last_update_by`),
  ADD KEY `FK_financials_payments_users_4` (`deleted_by`);

--
-- Indexes for table `accounting_payments`
--
ALTER TABLE `accounting_payments`
  ADD PRIMARY KEY (`id`),
  ADD KEY `FK_financials_payments_users` (`student`),
  ADD KEY `FK_financials_payments_study_terms` (`term`),
  ADD KEY `FK_financials_payments_financials_discounts` (`Discount`),
  ADD KEY `FK_financials_payments_users_2` (`Created_by`),
  ADD KEY `FK_financials_payments_users_3` (`last_update_by`),
  ADD KEY `FK_financials_payments_users_4` (`deleted_by`);

--
-- Indexes for table `accounting_receipt_voucher`
--
ALTER TABLE `accounting_receipt_voucher`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `accounting_receipt_voucher_trans`
--
ALTER TABLE `accounting_receipt_voucher_trans`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `accounting_receivable`
--
ALTER TABLE `accounting_receivable`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `announcements`
--
ALTER TABLE `announcements`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `community_service`
--
ALTER TABLE `community_service`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `community_service_course`
--
ALTER TABLE `community_service_course`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `contact`
--
ALTER TABLE `contact`
  ADD PRIMARY KEY (`id`),
  ADD KEY `Created_by` (`Created_by`),
  ADD KEY `last_update_by` (`last_update_by`);

--
-- Indexes for table `counters`
--
ALTER TABLE `counters`
  ADD PRIMARY KEY (`id`),
  ADD KEY `deleted_by` (`deleted_by`),
  ADD KEY `last_update_by` (`last_update_by`),
  ADD KEY `Created_by` (`Created_by`);

--
-- Indexes for table `dictionary`
--
ALTER TABLE `dictionary`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `token` (`token`);

--
-- Indexes for table `financials_costcenter`
--
ALTER TABLE `financials_costcenter`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `financials_courses_fees`
--
ALTER TABLE `financials_courses_fees`
  ADD PRIMARY KEY (`id`),
  ADD KEY `student_type` (`student_type`),
  ADD KEY `level` (`level`),
  ADD KEY `major` (`major`),
  ADD KEY `college` (`college`),
  ADD KEY `course` (`course`),
  ADD KEY `department` (`department`),
  ADD KEY `degree` (`degree`),
  ADD KEY `deleted_by` (`deleted_by`),
  ADD KEY `Created_by` (`Created_by`),
  ADD KEY `FK_financials_courses_fees_users` (`last_update_by`);

--
-- Indexes for table `financials_discounts`
--
ALTER TABLE `financials_discounts`
  ADD PRIMARY KEY (`id`),
  ADD KEY `student_type` (`student_type`),
  ADD KEY `term` (`term`),
  ADD KEY `major` (`major`),
  ADD KEY `degree` (`degree`),
  ADD KEY `Created_by` (`Created_by`),
  ADD KEY `last_update_by` (`last_update_by`),
  ADD KEY `deleted_by` (`deleted_by`);

--
-- Indexes for table `financials_discount_students`
--
ALTER TABLE `financials_discount_students`
  ADD PRIMARY KEY (`id`),
  ADD KEY `FK_financials_discount_students_users` (`student`),
  ADD KEY `FK_financials_discount_students_study_terms` (`term`),
  ADD KEY `FK_financials_discount_students_users_2` (`Created_by`),
  ADD KEY `FK_financials_discount_students_users_3` (`last_update_by`),
  ADD KEY `FK_financials_discount_students_users_4` (`deleted_by`);

--
-- Indexes for table `financials_fines_management`
--
ALTER TABLE `financials_fines_management`
  ADD PRIMARY KEY (`id`),
  ADD KEY `FK_financials_fines_management_study_terms` (`term`),
  ADD KEY `FK_financials_fines_management_users_3` (`Created_by`),
  ADD KEY `FK_financials_fines_management_users_2` (`last_update_by`),
  ADD KEY `FK_financials_fines_management_users` (`deleted_by`);

--
-- Indexes for table `financials_mandatory_min_payment`
--
ALTER TABLE `financials_mandatory_min_payment`
  ADD PRIMARY KEY (`id`),
  ADD KEY `FK_financials_mandatory_min_payment_study_terms` (`term`),
  ADD KEY `FK_financials_mandatory_min_payment_study_majors` (`major`),
  ADD KEY `FK_financials_mandatory_min_payment_study_degrees` (`degree`),
  ADD KEY `FK_financials_mandatory_min_payment_users_3` (`Created_by`),
  ADD KEY `FK_financials_mandatory_min_payment_users_2` (`last_update_by`),
  ADD KEY `FK_financials_mandatory_min_payment_users` (`deleted_by`);

--
-- Indexes for table `financials_mandatory_min_payment_custom`
--
ALTER TABLE `financials_mandatory_min_payment_custom`
  ADD PRIMARY KEY (`id`),
  ADD KEY `FK_financials_mandatory_min_payment_custom_users` (`student`),
  ADD KEY `FK_financials_mandatory_min_payment_custom_study_terms` (`term`),
  ADD KEY `FK_financials_mandatory_min_payment_custom_users_2` (`Created_by`),
  ADD KEY `FK_financials_mandatory_min_payment_custom_users_3` (`last_update_by`),
  ADD KEY `FK_financials_mandatory_min_payment_custom_users_4` (`deleted_by`);

--
-- Indexes for table `financials_payments`
--
ALTER TABLE `financials_payments`
  ADD PRIMARY KEY (`id`),
  ADD KEY `FK_financials_payments_users` (`student`),
  ADD KEY `FK_financials_payments_study_terms` (`term`),
  ADD KEY `FK_financials_payments_financials_discounts` (`Discount`),
  ADD KEY `FK_financials_payments_users_2` (`Created_by`),
  ADD KEY `FK_financials_payments_users_3` (`last_update_by`),
  ADD KEY `FK_financials_payments_users_4` (`deleted_by`);

--
-- Indexes for table `financials_sponsors`
--
ALTER TABLE `financials_sponsors`
  ADD PRIMARY KEY (`id`),
  ADD KEY `FK_financials_sponsors_general_legalforms` (`legalform`),
  ADD KEY `FK_financials_sponsors_financials_sponsors_types` (`sponsor_type`),
  ADD KEY `FK_financials_sponsors_users` (`Created_by`),
  ADD KEY `FK_financials_sponsors_users_2` (`last_update_by`),
  ADD KEY `FK_financials_sponsors_users_3` (`deleted_by`);

--
-- Indexes for table `financials_sponsorships`
--
ALTER TABLE `financials_sponsorships`
  ADD PRIMARY KEY (`id`),
  ADD KEY `FK_financials_sponsorships_users` (`student`),
  ADD KEY `FK_financials_sponsorships_users_2` (`Created_by`),
  ADD KEY `FK_financials_sponsorships_users_3` (`last_update_by`),
  ADD KEY `FK_financials_sponsorships_users_4` (`deleted_by`),
  ADD KEY `FK_financials_sponsorships_study_terms` (`term`),
  ADD KEY `FK_financials_sponsorships_financials_sponsors` (`sponsor`);

--
-- Indexes for table `financials_sponsors_types`
--
ALTER TABLE `financials_sponsors_types`
  ADD PRIMARY KEY (`id`),
  ADD KEY `FK_financials_sponsors_types_users` (`Created_by`),
  ADD KEY `FK_financials_sponsors_types_users_2` (`last_update_by`),
  ADD KEY `FK_financials_sponsors_types_users_3` (`deleted_by`);

--
-- Indexes for table `general_banks`
--
ALTER TABLE `general_banks`
  ADD PRIMARY KEY (`id`),
  ADD KEY `FK_general_legalforms_users` (`deleted_by`),
  ADD KEY `FK_general_legalforms_users_2` (`Created_by`),
  ADD KEY `FK_general_legalforms_users_3` (`last_update_by`);

--
-- Indexes for table `general_cities`
--
ALTER TABLE `general_cities`
  ADD PRIMARY KEY (`id`),
  ADD KEY `FK_general_nationalities_users` (`deleted_by`),
  ADD KEY `FK_general_nationalities_users_2` (`Created_by`),
  ADD KEY `FK_general_nationalities_users_3` (`last_update_by`),
  ADD KEY `FK_general_cities_general_religions` (`country_id`);

--
-- Indexes for table `general_contact_person`
--
ALTER TABLE `general_contact_person`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `general_contact_person_message`
--
ALTER TABLE `general_contact_person_message`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `general_countries`
--
ALTER TABLE `general_countries`
  ADD PRIMARY KEY (`id`),
  ADD KEY `FK_general_nationalities_users` (`deleted_by`),
  ADD KEY `FK_general_nationalities_users_2` (`Created_by`),
  ADD KEY `FK_general_nationalities_users_3` (`last_update_by`);

--
-- Indexes for table `general_education_levels`
--
ALTER TABLE `general_education_levels`
  ADD PRIMARY KEY (`id`),
  ADD KEY `FK_general_legalforms_users` (`deleted_by`),
  ADD KEY `FK_general_legalforms_users_2` (`Created_by`),
  ADD KEY `FK_general_legalforms_users_3` (`last_update_by`);

--
-- Indexes for table `general_elearning_infractions`
--
ALTER TABLE `general_elearning_infractions`
  ADD PRIMARY KEY (`id`),
  ADD KEY `FK_general_legalforms_users` (`deleted_by`),
  ADD KEY `FK_general_legalforms_users_2` (`Created_by`),
  ADD KEY `FK_general_legalforms_users_3` (`last_update_by`);

--
-- Indexes for table `general_elearning_participates`
--
ALTER TABLE `general_elearning_participates`
  ADD PRIMARY KEY (`id`),
  ADD KEY `FK_general_legalforms_users` (`deleted_by`),
  ADD KEY `FK_general_legalforms_users_2` (`Created_by`),
  ADD KEY `FK_general_legalforms_users_3` (`last_update_by`);

--
-- Indexes for table `general_fields`
--
ALTER TABLE `general_fields`
  ADD PRIMARY KEY (`id`),
  ADD KEY `FK_general_legalforms_users` (`deleted_by`),
  ADD KEY `FK_general_legalforms_users_2` (`Created_by`),
  ADD KEY `FK_general_legalforms_users_3` (`last_update_by`),
  ADD KEY `FK_general_fields_general_generally` (`gennerally_id`);

--
-- Indexes for table `general_fixedassets`
--
ALTER TABLE `general_fixedassets`
  ADD PRIMARY KEY (`id`),
  ADD KEY `FK_general_legalforms_users` (`deleted_by`),
  ADD KEY `FK_general_legalforms_users_2` (`Created_by`),
  ADD KEY `FK_general_legalforms_users_3` (`last_update_by`),
  ADD KEY `FK_general_stores_categories_general_stores_categories` (`parent_id`);

--
-- Indexes for table `general_genders`
--
ALTER TABLE `general_genders`
  ADD PRIMARY KEY (`id`),
  ADD KEY `FK_general_legalforms_users` (`deleted_by`),
  ADD KEY `FK_general_legalforms_users_2` (`Created_by`),
  ADD KEY `FK_general_legalforms_users_3` (`last_update_by`);

--
-- Indexes for table `general_generally`
--
ALTER TABLE `general_generally`
  ADD PRIMARY KEY (`id`),
  ADD KEY `FK_general_legalforms_users` (`deleted_by`),
  ADD KEY `FK_general_legalforms_users_2` (`Created_by`),
  ADD KEY `FK_general_legalforms_users_3` (`last_update_by`),
  ADD KEY `FK_general_generally_general_generally` (`parent`),
  ADD KEY `FK_general_generally_permission_sections` (`section`);

--
-- Indexes for table `general_hr_departments`
--
ALTER TABLE `general_hr_departments`
  ADD PRIMARY KEY (`id`),
  ADD KEY `FK_general_legalforms_users` (`deleted_by`),
  ADD KEY `FK_general_legalforms_users_2` (`Created_by`),
  ADD KEY `FK_general_legalforms_users_3` (`last_update_by`),
  ADD KEY `FK_general_hr_departments_general_hr_positions` (`director`),
  ADD KEY `FK_general_hr_departments_general_hr_positions_2` (`deputy_director`);

--
-- Indexes for table `general_hr_employee_types`
--
ALTER TABLE `general_hr_employee_types`
  ADD PRIMARY KEY (`id`),
  ADD KEY `FK_general_legalforms_users` (`deleted_by`),
  ADD KEY `FK_general_legalforms_users_2` (`Created_by`),
  ADD KEY `FK_general_legalforms_users_3` (`last_update_by`);

--
-- Indexes for table `general_hr_fines_types`
--
ALTER TABLE `general_hr_fines_types`
  ADD PRIMARY KEY (`id`),
  ADD KEY `FK_general_legalforms_users` (`deleted_by`),
  ADD KEY `FK_general_legalforms_users_2` (`Created_by`),
  ADD KEY `FK_general_legalforms_users_3` (`last_update_by`);

--
-- Indexes for table `general_hr_leavetypes`
--
ALTER TABLE `general_hr_leavetypes`
  ADD PRIMARY KEY (`id`),
  ADD KEY `FK_general_legalforms_users` (`deleted_by`),
  ADD KEY `FK_general_legalforms_users_2` (`Created_by`),
  ADD KEY `FK_general_legalforms_users_3` (`last_update_by`);

--
-- Indexes for table `general_hr_positions`
--
ALTER TABLE `general_hr_positions`
  ADD PRIMARY KEY (`id`),
  ADD KEY `FK_general_legalforms_users` (`deleted_by`),
  ADD KEY `FK_general_legalforms_users_2` (`Created_by`),
  ADD KEY `FK_general_legalforms_users_3` (`last_update_by`),
  ADD KEY `FK4` (`department`);

--
-- Indexes for table `general_hr_rewards_types`
--
ALTER TABLE `general_hr_rewards_types`
  ADD PRIMARY KEY (`id`),
  ADD KEY `FK_general_legalforms_users` (`deleted_by`),
  ADD KEY `FK_general_legalforms_users_2` (`Created_by`),
  ADD KEY `FK_general_legalforms_users_3` (`last_update_by`);

--
-- Indexes for table `general_hr_sections`
--
ALTER TABLE `general_hr_sections`
  ADD PRIMARY KEY (`id`),
  ADD KEY `FK_general_legalforms_users` (`deleted_by`),
  ADD KEY `FK_general_legalforms_users_2` (`Created_by`),
  ADD KEY `FK_general_legalforms_users_3` (`last_update_by`);

--
-- Indexes for table `general_hr_warnings_types`
--
ALTER TABLE `general_hr_warnings_types`
  ADD PRIMARY KEY (`id`),
  ADD KEY `FK_general_legalforms_users` (`deleted_by`),
  ADD KEY `FK_general_legalforms_users_2` (`Created_by`),
  ADD KEY `FK_general_legalforms_users_3` (`last_update_by`);

--
-- Indexes for table `general_hs_certificate_type`
--
ALTER TABLE `general_hs_certificate_type`
  ADD PRIMARY KEY (`id`),
  ADD KEY `FK_general_legalforms_users` (`deleted_by`),
  ADD KEY `FK_general_legalforms_users_2` (`Created_by`),
  ADD KEY `FK_general_legalforms_users_3` (`last_update_by`);

--
-- Indexes for table `general_legalforms`
--
ALTER TABLE `general_legalforms`
  ADD PRIMARY KEY (`id`),
  ADD KEY `FK_general_legalforms_users` (`deleted_by`),
  ADD KEY `FK_general_legalforms_users_2` (`Created_by`),
  ADD KEY `FK_general_legalforms_users_3` (`last_update_by`);

--
-- Indexes for table `general_marital_status`
--
ALTER TABLE `general_marital_status`
  ADD PRIMARY KEY (`id`),
  ADD KEY `FK_general_legalforms_users` (`deleted_by`),
  ADD KEY `FK_general_legalforms_users_2` (`Created_by`),
  ADD KEY `FK_general_legalforms_users_3` (`last_update_by`);

--
-- Indexes for table `general_religions`
--
ALTER TABLE `general_religions`
  ADD PRIMARY KEY (`id`),
  ADD KEY `FK_general_legalforms_users` (`deleted_by`),
  ADD KEY `FK_general_legalforms_users_2` (`Created_by`),
  ADD KEY `FK_general_legalforms_users_3` (`last_update_by`);

--
-- Indexes for table `general_stores_categories`
--
ALTER TABLE `general_stores_categories`
  ADD PRIMARY KEY (`id`),
  ADD KEY `FK_general_legalforms_users` (`deleted_by`),
  ADD KEY `FK_general_legalforms_users_2` (`Created_by`),
  ADD KEY `FK_general_legalforms_users_3` (`last_update_by`),
  ADD KEY `FK_general_stores_categories_general_stores_categories` (`parent_id`);

--
-- Indexes for table `general_stores_stores`
--
ALTER TABLE `general_stores_stores`
  ADD PRIMARY KEY (`id`),
  ADD KEY `FK_general_legalforms_users` (`deleted_by`),
  ADD KEY `FK_general_legalforms_users_2` (`Created_by`),
  ADD KEY `FK_general_legalforms_users_3` (`last_update_by`),
  ADD KEY `FK_general_stores_stores_general_generally` (`parent_id`);

--
-- Indexes for table `general_stores_units`
--
ALTER TABLE `general_stores_units`
  ADD PRIMARY KEY (`id`),
  ADD KEY `FK_general_legalforms_users` (`deleted_by`),
  ADD KEY `FK_general_legalforms_users_2` (`Created_by`),
  ADD KEY `FK_general_legalforms_users_3` (`last_update_by`);

--
-- Indexes for table `general_student_parent_relation`
--
ALTER TABLE `general_student_parent_relation`
  ADD PRIMARY KEY (`id`),
  ADD KEY `FK_general_legalforms_users` (`deleted_by`),
  ADD KEY `FK_general_legalforms_users_2` (`Created_by`),
  ADD KEY `FK_general_legalforms_users_3` (`last_update_by`);

--
-- Indexes for table `home_icons`
--
ALTER TABLE `home_icons`
  ADD PRIMARY KEY (`id`),
  ADD KEY `FK_slides_users` (`Created_by`),
  ADD KEY `FK_slides_users_2` (`last_update_by`);

--
-- Indexes for table `hr_allowances_relations`
--
ALTER TABLE `hr_allowances_relations`
  ADD PRIMARY KEY (`id`),
  ADD KEY `FK_general_legalforms_users` (`deleted_by`),
  ADD KEY `FK_general_legalforms_users_2` (`Created_by`),
  ADD KEY `FK_general_legalforms_users_3` (`last_update_by`),
  ADD KEY `FK_hr_allowances_employee_hr_allowances_types` (`type`),
  ADD KEY `FK_hr_allowances_employee_hr_employment_applications` (`employee`);

--
-- Indexes for table `hr_allowances_types`
--
ALTER TABLE `hr_allowances_types`
  ADD PRIMARY KEY (`id`),
  ADD KEY `FK_general_legalforms_users` (`deleted_by`),
  ADD KEY `FK_general_legalforms_users_2` (`Created_by`),
  ADD KEY `FK_general_legalforms_users_3` (`last_update_by`);

--
-- Indexes for table `hr_attendance`
--
ALTER TABLE `hr_attendance`
  ADD PRIMARY KEY (`id`),
  ADD KEY `FK_general_legalforms_users` (`deleted_by`),
  ADD KEY `FK_general_legalforms_users_2` (`Created_by`),
  ADD KEY `FK_general_legalforms_users_3` (`last_update_by`),
  ADD KEY `FK_hr_attendance_hr_employment_applications` (`employee`),
  ADD KEY `FK_hr_attendance_users` (`reviewed_by`);

--
-- Indexes for table `hr_deductions_advance_payment`
--
ALTER TABLE `hr_deductions_advance_payment`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `hr_deductions_advance_payment_records`
--
ALTER TABLE `hr_deductions_advance_payment_records`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `hr_deductions_relations`
--
ALTER TABLE `hr_deductions_relations`
  ADD PRIMARY KEY (`id`),
  ADD KEY `FK_general_legalforms_users` (`deleted_by`),
  ADD KEY `FK_general_legalforms_users_2` (`Created_by`),
  ADD KEY `FK_general_legalforms_users_3` (`last_update_by`),
  ADD KEY `FK_hr_allowances_employee_hr_allowances_types` (`type`),
  ADD KEY `FK_hr_allowances_employee_hr_employment_applications` (`employee`);

--
-- Indexes for table `hr_deductions_types`
--
ALTER TABLE `hr_deductions_types`
  ADD PRIMARY KEY (`id`),
  ADD KEY `FK_general_legalforms_users` (`deleted_by`),
  ADD KEY `FK_general_legalforms_users_2` (`Created_by`),
  ADD KEY `FK_general_legalforms_users_3` (`last_update_by`);

--
-- Indexes for table `hr_employment_applications`
--
ALTER TABLE `hr_employment_applications`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `app_id` (`app_id`),
  ADD KEY `FK_general_legalforms_users` (`deleted_by`),
  ADD KEY `FK_general_legalforms_users_2` (`Created_by`),
  ADD KEY `FK_general_legalforms_users_3` (`last_update_by`),
  ADD KEY `FK_hr_employment_applications_general_marital_status` (`marital_status`),
  ADD KEY `FK_hr_employment_applications_general_religions` (`religion`),
  ADD KEY `FK_hr_employment_applications_general_genders` (`gender`),
  ADD KEY `FK_hr_employment_applications_general_hr_sections` (`hr_section`),
  ADD KEY `FK_hr_employment_applications_general_hr_employee_types` (`employee_type`),
  ADD KEY `FK_hr_employment_applications_general_hr_departments` (`department`),
  ADD KEY `FK_hr_employment_applications_general_hr_positions` (`hr_position`),
  ADD KEY `FK_hr_employment_applications_general_banks` (`bank`),
  ADD KEY `FK_hr_employment_applications_general_nationalities` (`nationality`),
  ADD KEY `users` (`approved_by`),
  ADD KEY `FK_hr_employment_applications_users` (`rejected_by`),
  ADD KEY `FK_hr_employment_applications_users_2` (`user_id`),
  ADD KEY `account_id` (`account_id`),
  ADD KEY `FK_hr_employment_applications_study_colleges` (`college`),
  ADD KEY `deputy` (`deputy`);

--
-- Indexes for table `hr_employment_applications_certificates`
--
ALTER TABLE `hr_employment_applications_certificates`
  ADD PRIMARY KEY (`id`),
  ADD KEY `FK_general_legalforms_users` (`deleted_by`),
  ADD KEY `FK_general_legalforms_users_2` (`Created_by`),
  ADD KEY `FK_general_legalforms_users_3` (`last_update_by`),
  ADD KEY `FK_hr_employment_applications_qualifications_hr_empl_app` (`application_id`),
  ADD KEY `FK_hr_employment_applications_certificates_general_countries` (`country`);

--
-- Indexes for table `hr_employment_applications_experiances`
--
ALTER TABLE `hr_employment_applications_experiances`
  ADD PRIMARY KEY (`id`),
  ADD KEY `FK_general_legalforms_users` (`deleted_by`),
  ADD KEY `FK_general_legalforms_users_2` (`Created_by`),
  ADD KEY `FK_general_legalforms_users_3` (`last_update_by`),
  ADD KEY `FK_hr_employment_applications_qualifications_hr_empl_app` (`application_id`);

--
-- Indexes for table `hr_employment_applications_qualifications`
--
ALTER TABLE `hr_employment_applications_qualifications`
  ADD PRIMARY KEY (`id`),
  ADD KEY `FK_general_legalforms_users` (`deleted_by`),
  ADD KEY `FK_general_legalforms_users_2` (`Created_by`),
  ADD KEY `FK_general_legalforms_users_3` (`last_update_by`),
  ADD KEY `FK_hr_employment_applications_qualifications_hr_empl_app` (`application_id`),
  ADD KEY `FK_hr_employment_applications_qualifications_general_countries` (`country`);

--
-- Indexes for table `hr_fines_warnings`
--
ALTER TABLE `hr_fines_warnings`
  ADD PRIMARY KEY (`id`),
  ADD KEY `FK_general_legalforms_users` (`deleted_by`),
  ADD KEY `FK_general_legalforms_users_2` (`Created_by`),
  ADD KEY `FK_general_legalforms_users_3` (`last_update_by`),
  ADD KEY `FK_hr_allowances_employee_hr_employment_applications` (`employee`),
  ADD KEY `FK_hr_fines_warnings_general_hr_fines_types` (`fine_type`),
  ADD KEY `FK_hr_fines_warnings_general_hr_warnings_types` (`warning_type`),
  ADD KEY `FK_hr_fines_warnings_users` (`approved_by`);

--
-- Indexes for table `hr_leaverequest`
--
ALTER TABLE `hr_leaverequest`
  ADD PRIMARY KEY (`id`),
  ADD KEY `FK_general_legalforms_users` (`deleted_by`),
  ADD KEY `FK_general_legalforms_users_2` (`Created_by`),
  ADD KEY `FK_general_legalforms_users_3` (`last_update_by`),
  ADD KEY `FK_hr_leaverequest_general_hr_leavetypes` (`leave_type`);

--
-- Indexes for table `hr_rewards`
--
ALTER TABLE `hr_rewards`
  ADD PRIMARY KEY (`id`),
  ADD KEY `FK_general_legalforms_users` (`deleted_by`),
  ADD KEY `FK_general_legalforms_users_2` (`Created_by`),
  ADD KEY `FK_general_legalforms_users_3` (`last_update_by`),
  ADD KEY `FK_hr_allowances_employee_hr_employment_applications` (`employee`),
  ADD KEY `FK_hr_fines_warnings_general_hr_fines_types` (`reward_type`),
  ADD KEY `FK_hr_fines_warnings_users` (`approved_by`);

--
-- Indexes for table `imagescenter`
--
ALTER TABLE `imagescenter`
  ADD PRIMARY KEY (`id`),
  ADD KEY `FK_imagescenter_users` (`Created_by`);

--
-- Indexes for table `journal`
--
ALTER TABLE `journal`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `layers`
--
ALTER TABLE `layers`
  ADD PRIMARY KEY (`id`),
  ADD KEY `FK_layers_slides` (`slide_id`),
  ADD KEY `FK_layers_users` (`Created_by`),
  ADD KEY `FK_layers_users_2` (`last_update_by`);

--
-- Indexes for table `letters`
--
ALTER TABLE `letters`
  ADD PRIMARY KEY (`id`),
  ADD KEY `FK_general_legalforms_users` (`deleted_by`),
  ADD KEY `FK_general_legalforms_users_2` (`Created_by`),
  ADD KEY `FK_general_legalforms_users_3` (`last_update_by`);

--
-- Indexes for table `letters_applications`
--
ALTER TABLE `letters_applications`
  ADD PRIMARY KEY (`id`),
  ADD KEY `FK_general_legalforms_users` (`deleted_by`),
  ADD KEY `FK_general_legalforms_users_2` (`Created_by`),
  ADD KEY `FK_general_legalforms_users_3` (`last_update_by`),
  ADD KEY `FK_letters_fields_letters` (`letter`);

--
-- Indexes for table `letters_applications_approvals`
--
ALTER TABLE `letters_applications_approvals`
  ADD PRIMARY KEY (`id`),
  ADD KEY `FK_general_legalforms_users` (`deleted_by`),
  ADD KEY `FK_general_legalforms_users_2` (`Created_by`),
  ADD KEY `FK_general_legalforms_users_3` (`last_update_by`),
  ADD KEY `FK_letters_approvals_letters` (`application_id`),
  ADD KEY `FK_letters_approvals_general_hr_departments` (`department`),
  ADD KEY `FK_letters_applications_approvals_users` (`approved_by`),
  ADD KEY `FK_letters_applications_approvals_users_2` (`rejected_by`);

--
-- Indexes for table `letters_approvals`
--
ALTER TABLE `letters_approvals`
  ADD PRIMARY KEY (`id`),
  ADD KEY `FK_general_legalforms_users` (`deleted_by`),
  ADD KEY `FK_general_legalforms_users_2` (`Created_by`),
  ADD KEY `FK_general_legalforms_users_3` (`last_update_by`),
  ADD KEY `FK_letters_approvals_letters` (`letter`),
  ADD KEY `FK_letters_approvals_general_hr_departments` (`department`);

--
-- Indexes for table `letters_dropdowns`
--
ALTER TABLE `letters_dropdowns`
  ADD PRIMARY KEY (`id`),
  ADD KEY `FK_general_legalforms_users` (`deleted_by`),
  ADD KEY `FK_general_legalforms_users_2` (`Created_by`),
  ADD KEY `FK_general_legalforms_users_3` (`last_update_by`);

--
-- Indexes for table `letters_dropdowns_options`
--
ALTER TABLE `letters_dropdowns_options`
  ADD PRIMARY KEY (`id`),
  ADD KEY `FK_general_legalforms_users` (`deleted_by`),
  ADD KEY `FK_general_legalforms_users_2` (`Created_by`),
  ADD KEY `FK_general_legalforms_users_3` (`last_update_by`),
  ADD KEY `FK_letters_dropdowns_options_letters_dropdowns` (`dropdown`);

--
-- Indexes for table `letters_fields`
--
ALTER TABLE `letters_fields`
  ADD PRIMARY KEY (`id`),
  ADD KEY `FK_general_legalforms_users` (`deleted_by`),
  ADD KEY `FK_general_legalforms_users_2` (`Created_by`),
  ADD KEY `FK_general_legalforms_users_3` (`last_update_by`),
  ADD KEY `FK_letters_fields_letters` (`letter`),
  ADD KEY `FK_letters_fields_letters_dropdowns` (`dropdown`),
  ADD KEY `FK_letters_fields_letters_dropdowns_2` (`checkbox`);

--
-- Indexes for table `library_main_cats`
--
ALTER TABLE `library_main_cats`
  ADD PRIMARY KEY (`id`),
  ADD KEY `FK_general_legalforms_users` (`deleted_by`),
  ADD KEY `FK_general_legalforms_users_2` (`Created_by`),
  ADD KEY `FK_general_legalforms_users_3` (`last_update_by`);

--
-- Indexes for table `library_manager`
--
ALTER TABLE `library_manager`
  ADD PRIMARY KEY (`id`),
  ADD KEY `Created_by` (`Created_by`),
  ADD KEY `last_update_by` (`last_update_by`),
  ADD KEY `deleted_by` (`deleted_by`),
  ADD KEY `FK6` (`type`);

--
-- Indexes for table `marketing_rejected_student_application`
--
ALTER TABLE `marketing_rejected_student_application`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `menus`
--
ALTER TABLE `menus`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `news`
--
ALTER TABLE `news`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `notifications`
--
ALTER TABLE `notifications`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `notifications_list`
--
ALTER TABLE `notifications_list`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `pages`
--
ALTER TABLE `pages`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `permissions_groups`
--
ALTER TABLE `permissions_groups`
  ADD PRIMARY KEY (`id`),
  ADD KEY `FK_general_legalforms_users` (`deleted_by`),
  ADD KEY `FK_general_legalforms_users_2` (`Created_by`),
  ADD KEY `FK_general_legalforms_users_3` (`last_update_by`);

--
-- Indexes for table `permissions_groups_roles_relations`
--
ALTER TABLE `permissions_groups_roles_relations`
  ADD PRIMARY KEY (`id`),
  ADD KEY `FK_general_legalforms_users` (`deleted_by`),
  ADD KEY `FK_general_legalforms_users_2` (`Created_by`),
  ADD KEY `FK_general_legalforms_users_3` (`last_update_by`),
  ADD KEY `FK_permissions_groups_roles_relations_permissions_groups` (`groub`),
  ADD KEY `FK_permissions_groups_roles_relations_roles` (`role`);

--
-- Indexes for table `permissions_groups_users_relations`
--
ALTER TABLE `permissions_groups_users_relations`
  ADD PRIMARY KEY (`id`),
  ADD KEY `FK_general_legalforms_users` (`deleted_by`),
  ADD KEY `FK_general_legalforms_users_2` (`Created_by`),
  ADD KEY `FK_general_legalforms_users_3` (`last_update_by`),
  ADD KEY `FK_permissions_groups_roles_relations_permissions_groups` (`groub`),
  ADD KEY `FK_permissions_groups_roles_relations_roles` (`user`);

--
-- Indexes for table `permission_sections`
--
ALTER TABLE `permission_sections`
  ADD PRIMARY KEY (`id`),
  ADD KEY `FK_general_legalforms_users` (`deleted_by`),
  ADD KEY `FK_general_legalforms_users_2` (`Created_by`),
  ADD KEY `FK_general_legalforms_users_3` (`last_update_by`),
  ADD KEY `FK_general_generally_general_generally` (`parent`);

--
-- Indexes for table `relations`
--
ALTER TABLE `relations`
  ADD PRIMARY KEY (`id`),
  ADD KEY `FK_relations_users` (`Created_by`),
  ADD KEY `FK_relations_tags` (`tag`);

--
-- Indexes for table `roles`
--
ALTER TABLE `roles`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `uniq_name` (`name`),
  ADD KEY `FK_roles_permission_sections` (`section`);

--
-- Indexes for table `roles_users`
--
ALTER TABLE `roles_users`
  ADD PRIMARY KEY (`user_id`,`role_id`),
  ADD KEY `fk_role_id` (`role_id`);

--
-- Indexes for table `slides`
--
ALTER TABLE `slides`
  ADD PRIMARY KEY (`id`),
  ADD KEY `FK_slides_users` (`Created_by`),
  ADD KEY `FK_slides_users_2` (`last_update_by`);

--
-- Indexes for table `speeches`
--
ALTER TABLE `speeches`
  ADD PRIMARY KEY (`id`),
  ADD KEY `Created_by` (`Created_by`),
  ADD KEY `last_update_by` (`last_update_by`);

--
-- Indexes for table `stores_goods_delivery_voucher`
--
ALTER TABLE `stores_goods_delivery_voucher`
  ADD PRIMARY KEY (`id`),
  ADD KEY `Created_by` (`Created_by`),
  ADD KEY `last_update_by` (`last_update_by`),
  ADD KEY `deleted_by` (`deleted_by`),
  ADD KEY `FK_stores_goods_receipts_voucher_general_stores_stores` (`store`),
  ADD KEY `FK_stores_goods_receipts_voucher_accounting_accounts` (`customer`),
  ADD KEY `FK_stores_goods_delivery_voucher_hr_employment_applications` (`employee`);

--
-- Indexes for table `stores_goods_delivery_voucher_items`
--
ALTER TABLE `stores_goods_delivery_voucher_items`
  ADD PRIMARY KEY (`id`),
  ADD KEY `Created_by` (`Created_by`),
  ADD KEY `last_update_by` (`last_update_by`),
  ADD KEY `deleted_by` (`deleted_by`),
  ADD KEY `FK_goods_receipts_voucher_items_goods_receipts_voucher` (`voucher_id`),
  ADD KEY `FK_stores_goods_receipts_voucher_items_stores_inventory` (`item`);

--
-- Indexes for table `stores_goods_elimination_voucher`
--
ALTER TABLE `stores_goods_elimination_voucher`
  ADD PRIMARY KEY (`id`),
  ADD KEY `Created_by` (`Created_by`),
  ADD KEY `last_update_by` (`last_update_by`),
  ADD KEY `deleted_by` (`deleted_by`);

--
-- Indexes for table `stores_goods_elimination_voucher_items`
--
ALTER TABLE `stores_goods_elimination_voucher_items`
  ADD PRIMARY KEY (`id`),
  ADD KEY `Created_by` (`Created_by`),
  ADD KEY `last_update_by` (`last_update_by`),
  ADD KEY `deleted_by` (`deleted_by`),
  ADD KEY `FK_goods_receipts_voucher_items_goods_receipts_voucher` (`voucher_id`),
  ADD KEY `FK_stores_goods_receipts_voucher_items_stores_inventory` (`item`);

--
-- Indexes for table `stores_goods_receipts_voucher`
--
ALTER TABLE `stores_goods_receipts_voucher`
  ADD PRIMARY KEY (`id`),
  ADD KEY `Created_by` (`Created_by`),
  ADD KEY `last_update_by` (`last_update_by`),
  ADD KEY `deleted_by` (`deleted_by`),
  ADD KEY `FK_stores_goods_receipts_voucher_general_stores_stores` (`store`),
  ADD KEY `FK_stores_goods_receipts_voucher_accounting_accounts` (`supplier`),
  ADD KEY `employee` (`employee`);

--
-- Indexes for table `stores_goods_receipts_voucher_items`
--
ALTER TABLE `stores_goods_receipts_voucher_items`
  ADD PRIMARY KEY (`id`),
  ADD KEY `Created_by` (`Created_by`),
  ADD KEY `last_update_by` (`last_update_by`),
  ADD KEY `deleted_by` (`deleted_by`),
  ADD KEY `FK_goods_receipts_voucher_items_goods_receipts_voucher` (`voucher_id`),
  ADD KEY `FK_stores_goods_receipts_voucher_items_stores_inventory` (`item`);

--
-- Indexes for table `stores_goods_transfare_voucher`
--
ALTER TABLE `stores_goods_transfare_voucher`
  ADD PRIMARY KEY (`id`),
  ADD KEY `Created_by` (`Created_by`),
  ADD KEY `last_update_by` (`last_update_by`),
  ADD KEY `deleted_by` (`deleted_by`),
  ADD KEY `FK_stores_goods_receipts_voucher_general_stores_stores` (`from_store`),
  ADD KEY `FK_stores_goods_transfare_voucher_general_stores_stores_2` (`to_store`);

--
-- Indexes for table `stores_goods_transfare_voucher_items`
--
ALTER TABLE `stores_goods_transfare_voucher_items`
  ADD PRIMARY KEY (`id`),
  ADD KEY `Created_by` (`Created_by`),
  ADD KEY `last_update_by` (`last_update_by`),
  ADD KEY `deleted_by` (`deleted_by`),
  ADD KEY `FK_goods_receipts_voucher_items_goods_receipts_voucher` (`voucher_id`),
  ADD KEY `FK_stores_goods_receipts_voucher_items_stores_inventory` (`item`),
  ADD KEY `FK_stores_goods_transfare_voucher_items_stores_inventory` (`new_item`);

--
-- Indexes for table `stores_inventory`
--
ALTER TABLE `stores_inventory`
  ADD PRIMARY KEY (`id`),
  ADD KEY `Created_by` (`Created_by`),
  ADD KEY `last_update_by` (`last_update_by`),
  ADD KEY `deleted_by` (`deleted_by`),
  ADD KEY `FK_stores_inventory_general_stores_categories` (`category`),
  ADD KEY `FK_stores_inventory_general_stores_stores` (`store`),
  ADD KEY `FK_stores_inventory_general_stores_units` (`unit`);

--
-- Indexes for table `stores_purchase`
--
ALTER TABLE `stores_purchase`
  ADD PRIMARY KEY (`id`),
  ADD KEY `Created_by` (`Created_by`),
  ADD KEY `last_update_by` (`last_update_by`),
  ADD KEY `deleted_by` (`deleted_by`);

--
-- Indexes for table `stores_purchase_elements`
--
ALTER TABLE `stores_purchase_elements`
  ADD PRIMARY KEY (`id`),
  ADD KEY `Created_by` (`Created_by`),
  ADD KEY `last_update_by` (`last_update_by`),
  ADD KEY `deleted_by` (`deleted_by`),
  ADD KEY `FK_stores_ipo_stores_inventory` (`item`),
  ADD KEY `FK_stores_ipo_elements_stores_ipo` (`purchase_number`);

--
-- Indexes for table `stores_purchase_elements_returned`
--
ALTER TABLE `stores_purchase_elements_returned`
  ADD PRIMARY KEY (`id`),
  ADD KEY `Created_by` (`Created_by`),
  ADD KEY `last_update_by` (`last_update_by`),
  ADD KEY `deleted_by` (`deleted_by`),
  ADD KEY `FK_stores_ipo_stores_inventory` (`element`);

--
-- Indexes for table `stores_sales_elements_returned`
--
ALTER TABLE `stores_sales_elements_returned`
  ADD PRIMARY KEY (`id`),
  ADD KEY `Created_by` (`Created_by`),
  ADD KEY `last_update_by` (`last_update_by`),
  ADD KEY `deleted_by` (`deleted_by`),
  ADD KEY `FK_stores_ipo_stores_inventory` (`element`);

--
-- Indexes for table `stores_sales_invoice`
--
ALTER TABLE `stores_sales_invoice`
  ADD PRIMARY KEY (`id`),
  ADD KEY `Created_by` (`Created_by`),
  ADD KEY `last_update_by` (`last_update_by`),
  ADD KEY `deleted_by` (`deleted_by`),
  ADD KEY `FK_stores_goods_receipts_voucher_general_stores_stores` (`store`),
  ADD KEY `FK_stores_goods_receipts_voucher_accounting_accounts` (`customer`),
  ADD KEY `FK_stores_goods_delivery_voucher_hr_employment_applications` (`employee`),
  ADD KEY `FK_stores_sales_invoice_students_applications` (`student`);

--
-- Indexes for table `stores_sales_invoice_items`
--
ALTER TABLE `stores_sales_invoice_items`
  ADD PRIMARY KEY (`id`),
  ADD KEY `Created_by` (`Created_by`),
  ADD KEY `last_update_by` (`last_update_by`),
  ADD KEY `deleted_by` (`deleted_by`),
  ADD KEY `FK_goods_receipts_voucher_items_goods_receipts_voucher` (`voucher_id`),
  ADD KEY `FK_stores_goods_receipts_voucher_items_stores_inventory` (`item`);

--
-- Indexes for table `stores_stocktaking_process`
--
ALTER TABLE `stores_stocktaking_process`
  ADD PRIMARY KEY (`id`),
  ADD KEY `Created_by` (`Created_by`),
  ADD KEY `last_update_by` (`last_update_by`),
  ADD KEY `deleted_by` (`deleted_by`),
  ADD KEY `FK_stores_stocktaking_process_general_stores_stores` (`store_id`),
  ADD KEY `FK_stores_stocktaking_process_general_stores_categories` (`categorie_id`),
  ADD KEY `FK_stores_stocktaking_process_users` (`stocktake_by`);

--
-- Indexes for table `stores_stocktaking_process_elements`
--
ALTER TABLE `stores_stocktaking_process_elements`
  ADD PRIMARY KEY (`id`),
  ADD KEY `Created_by` (`Created_by`),
  ADD KEY `last_update_by` (`last_update_by`),
  ADD KEY `deleted_by` (`deleted_by`),
  ADD KEY `FK_stores_s_pr_ele_stores_stocktaking_process` (`stocktaking_id`),
  ADD KEY `FK_stores_stocktaking_process_elements_stores_inventory` (`item`),
  ADD KEY `FK_stores_stocktaking_process_elements_users` (`stocktake_by`);

--
-- Indexes for table `students_absents`
--
ALTER TABLE `students_absents`
  ADD PRIMARY KEY (`id`),
  ADD KEY `FK_students_logs_users` (`deleted_by`),
  ADD KEY `FK_students_logs_users_2` (`last_update_by`),
  ADD KEY `FK_students_logs_users_3` (`Created_by`),
  ADD KEY `FK_students_participate_study_sections` (`section_id`),
  ADD KEY `FK_students_participates_users` (`student_id`);

--
-- Indexes for table `students_applications`
--
ALTER TABLE `students_applications`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `app_id` (`app_id`),
  ADD KEY `FK_students_applications_users` (`student_id`),
  ADD KEY `FK_students_applications_study_types` (`study_type`),
  ADD KEY `FK_students_applications_students_types` (`student_type`),
  ADD KEY `FK_students_applications_study_degrees` (`degree`),
  ADD KEY `FK_students_applications_study_levels` (`level`),
  ADD KEY `FK_students_applications_study_majors` (`major`),
  ADD KEY `FK_students_applications_users_2` (`academic_supervisor`),
  ADD KEY `FK_students_applications_users_3` (`last_update_by`),
  ADD KEY `FK_students_applications_users_4` (`Created_by`),
  ADD KEY `FK_students_applications_users_5` (`deleted_by`),
  ADD KEY `FK_students_applications_general_hs_certificate_type` (`hs_Certificate_Type`),
  ADD KEY `FK_students_applications_general_student_parent_relation` (`g_relation`),
  ADD KEY `FK_students_applications_general_education_levels` (`g_study_level`),
  ADD KEY `FK_students_applications_general_nationalities` (`Nationality`),
  ADD KEY `FK_students_applications_general_cities` (`hs_City`),
  ADD KEY `FK_students_applications_general_legalforms` (`Sponsor_Legal_Form`),
  ADD KEY `FK_students_applications_users_6` (`rejected_by`),
  ADD KEY `FK_students_applications_students_study_state` (`S_Type`);

--
-- Indexes for table `students_applications_documents`
--
ALTER TABLE `students_applications_documents`
  ADD PRIMARY KEY (`id`),
  ADD KEY `FK_students_logs_users` (`deleted_by`),
  ADD KEY `FK_students_logs_users_2` (`last_update_by`),
  ADD KEY `FK_students_logs_users_3` (`Created_by`),
  ADD KEY `FK_students_applications_documents_students_applications` (`student_application_id`),
  ADD KEY `FK_students_applications_docs_stu_applications_doc_types` (`document_type`);

--
-- Indexes for table `students_applications_documents_types`
--
ALTER TABLE `students_applications_documents_types`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `students_applications_steps`
--
ALTER TABLE `students_applications_steps`
  ADD PRIMARY KEY (`id`),
  ADD KEY `FK_students_logs_users` (`deleted_by`),
  ADD KEY `FK_students_logs_users_2` (`last_update_by`),
  ADD KEY `FK_students_logs_users_3` (`Created_by`),
  ADD KEY `FK_students_applications_documents_students_applications` (`student_application_id`);

--
-- Indexes for table `students_courses_equations`
--
ALTER TABLE `students_courses_equations`
  ADD PRIMARY KEY (`id`),
  ADD KEY `FK_study_rooms_users` (`Created_by`),
  ADD KEY `FK_study_rooms_users_2` (`last_update_by`),
  ADD KEY `FK_study_rooms_users_3` (`deleted_by`),
  ADD KEY `FK_students_courses_equations_study_courses` (`course_id`),
  ADD KEY `FK_students_courses_equations_users` (`student_id`);

--
-- Indexes for table `students_infractions`
--
ALTER TABLE `students_infractions`
  ADD PRIMARY KEY (`id`),
  ADD KEY `FK_students_logs_users` (`deleted_by`),
  ADD KEY `FK_students_logs_users_2` (`last_update_by`),
  ADD KEY `FK_students_logs_users_3` (`Created_by`),
  ADD KEY `FK_students_participate_study_sections` (`section_id`),
  ADD KEY `FK_students_participates_users` (`student_id`),
  ADD KEY `FK_students_infractions_general_elearning_infractions` (`infraction_type`);

--
-- Indexes for table `students_logs`
--
ALTER TABLE `students_logs`
  ADD PRIMARY KEY (`id`),
  ADD KEY `FK_students_logs_users` (`deleted_by`),
  ADD KEY `FK_students_logs_users_2` (`last_update_by`),
  ADD KEY `FK_students_logs_users_3` (`Created_by`),
  ADD KEY `FK_students_logs_students_operations` (`operation`);

--
-- Indexes for table `students_notes`
--
ALTER TABLE `students_notes`
  ADD PRIMARY KEY (`id`),
  ADD KEY `FK_students_logs_users` (`deleted_by`),
  ADD KEY `FK_students_logs_users_2` (`last_update_by`),
  ADD KEY `FK_students_logs_users_3` (`Created_by`),
  ADD KEY `FK_students_participate_study_sections` (`section_id`),
  ADD KEY `FK_students_participates_users` (`student_id`);

--
-- Indexes for table `students_operations`
--
ALTER TABLE `students_operations`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `students_participates`
--
ALTER TABLE `students_participates`
  ADD PRIMARY KEY (`id`),
  ADD KEY `FK_students_logs_users` (`deleted_by`),
  ADD KEY `FK_students_logs_users_2` (`last_update_by`),
  ADD KEY `FK_students_logs_users_3` (`Created_by`),
  ADD KEY `FK_students_participate_study_sections` (`section_id`),
  ADD KEY `FK_students_participates_users` (`student_id`),
  ADD KEY `FK_students_participates_general_elearning_participates` (`participate_type`);

--
-- Indexes for table `students_sections`
--
ALTER TABLE `students_sections`
  ADD PRIMARY KEY (`id`),
  ADD KEY `FK_students_sections_study_terms` (`term`),
  ADD KEY `FK_students_sections_users` (`student`),
  ADD KEY `FK_students_sections_study_sections` (`section`),
  ADD KEY `FK_students_sections_users_2` (`Created_by`),
  ADD KEY `FK_students_sections_users_3` (`last_update_by`),
  ADD KEY `FK_students_sections_users_4` (`deleted_by`),
  ADD KEY `rejected_by` (`rejected_by`);

--
-- Indexes for table `students_study_state`
--
ALTER TABLE `students_study_state`
  ADD PRIMARY KEY (`id`),
  ADD KEY `FK_students_terms_users_2` (`Created_by`),
  ADD KEY `FK_students_terms_users_3` (`last_update_by`),
  ADD KEY `FK_students_terms_users_4` (`deleted_by`);

--
-- Indexes for table `students_terms`
--
ALTER TABLE `students_terms`
  ADD PRIMARY KEY (`id`),
  ADD KEY `FK_students_terms_study_terms` (`term`),
  ADD KEY `FK_students_terms_users` (`student`),
  ADD KEY `FK_students_terms_users_2` (`Created_by`),
  ADD KEY `FK_students_terms_users_3` (`last_update_by`),
  ADD KEY `FK_students_terms_users_4` (`deleted_by`);

--
-- Indexes for table `students_types`
--
ALTER TABLE `students_types`
  ADD PRIMARY KEY (`id`),
  ADD KEY `FK_students_types_study_types` (`study_type`),
  ADD KEY `FK_students_types_users` (`Created_by`),
  ADD KEY `FK_students_types_users_2` (`last_update_by`),
  ADD KEY `FK_students_types_users_3` (`deleted_by`);

--
-- Indexes for table `study_academicyears`
--
ALTER TABLE `study_academicyears`
  ADD PRIMARY KEY (`id`),
  ADD KEY `FK_study_academicyears_users` (`Created_by`),
  ADD KEY `FK_study_academicyears_users_2` (`last_update_by`),
  ADD KEY `FK_study_academicyears_users_3` (`deleted_by`);

--
-- Indexes for table `study_colleges`
--
ALTER TABLE `study_colleges`
  ADD PRIMARY KEY (`id`),
  ADD KEY `FK_study_colleges_users` (`Created_by`),
  ADD KEY `FK_study_colleges_users_2` (`last_update_by`),
  ADD KEY `FK_study_colleges_users_3` (`deleted_by`);

--
-- Indexes for table `study_courses`
--
ALTER TABLE `study_courses`
  ADD PRIMARY KEY (`id`),
  ADD KEY `major` (`major`),
  ADD KEY `program` (`program`),
  ADD KEY `degree` (`degree`),
  ADD KEY `FK_study_courses_users` (`Created_by`),
  ADD KEY `FK_study_courses_users_2` (`last_update_by`),
  ADD KEY `FK_study_courses_users_3` (`deleted_by`);

--
-- Indexes for table `study_courses_prerequisite`
--
ALTER TABLE `study_courses_prerequisite`
  ADD PRIMARY KEY (`id`),
  ADD KEY `course` (`course`),
  ADD KEY `prerequisite_course` (`prerequisite_course`),
  ADD KEY `FK_study_courses_prerequisite_users` (`Created_by`);

--
-- Indexes for table `study_degrees`
--
ALTER TABLE `study_degrees`
  ADD PRIMARY KEY (`id`),
  ADD KEY `FK_study_degrees_users` (`Created_by`),
  ADD KEY `FK_study_degrees_users_2` (`last_update_by`),
  ADD KEY `FK_study_degrees_users_3` (`deleted_by`);

--
-- Indexes for table `study_departments`
--
ALTER TABLE `study_departments`
  ADD PRIMARY KEY (`id`),
  ADD KEY `FK_study_departments_study_colleges` (`college`),
  ADD KEY `FK_study_departments_users` (`Created_by`),
  ADD KEY `FK_study_departments_users_2` (`last_update_by`),
  ADD KEY `FK_study_departments_users_3` (`deleted_by`);

--
-- Indexes for table `study_levels`
--
ALTER TABLE `study_levels`
  ADD PRIMARY KEY (`id`),
  ADD KEY `FK_study_levels_study_degrees` (`degree`),
  ADD KEY `FK_study_levels_users` (`Created_by`),
  ADD KEY `FK_study_levels_users_2` (`last_update_by`),
  ADD KEY `FK_study_levels_users_3` (`deleted_by`);

--
-- Indexes for table `study_levels_courses`
--
ALTER TABLE `study_levels_courses`
  ADD PRIMARY KEY (`id`),
  ADD KEY `FK_study_levels_courses_study_courses` (`course`),
  ADD KEY `FK_study_levels_courses_study_levels` (`level`),
  ADD KEY `FK_study_levels_courses_users` (`Created_by`);

--
-- Indexes for table `study_majors`
--
ALTER TABLE `study_majors`
  ADD PRIMARY KEY (`id`),
  ADD KEY `FK_study_majors_study_colleges` (`college`),
  ADD KEY `FK_study_majors_users` (`Created_by`),
  ADD KEY `FK_study_majors_users_2` (`last_update_by`),
  ADD KEY `FK_study_majors_users_3` (`deleted_by`);

--
-- Indexes for table `study_programs`
--
ALTER TABLE `study_programs`
  ADD PRIMARY KEY (`id`),
  ADD KEY `FK_study_programs_study_majors` (`major`),
  ADD KEY `FK_study_programs_users` (`Created_by`),
  ADD KEY `FK_study_programs_users_2` (`last_update_by`),
  ADD KEY `FK_study_programs_users_3` (`deleted_by`);

--
-- Indexes for table `study_rooms`
--
ALTER TABLE `study_rooms`
  ADD PRIMARY KEY (`id`),
  ADD KEY `FK_study_rooms_users` (`Created_by`),
  ADD KEY `FK_study_rooms_users_2` (`last_update_by`),
  ADD KEY `FK_study_rooms_users_3` (`deleted_by`);

--
-- Indexes for table `study_sections`
--
ALTER TABLE `study_sections`
  ADD PRIMARY KEY (`id`),
  ADD KEY `FK_study_sections_study_majors` (`major`),
  ADD KEY `FK_study_sections_study_terms` (`term`),
  ADD KEY `FK_study_sections_study_courses` (`course`),
  ADD KEY `FK_study_sections_study_rooms` (`room`),
  ADD KEY `FK_study_sections_users` (`teacher`),
  ADD KEY `FK_study_sections_users_2` (`Created_by`),
  ADD KEY `FK_study_sections_users_3` (`last_update_by`),
  ADD KEY `FK_study_sections_users_4` (`deleted_by`),
  ADD KEY `gender` (`gender`);

--
-- Indexes for table `study_sections_chapters`
--
ALTER TABLE `study_sections_chapters`
  ADD PRIMARY KEY (`id`),
  ADD KEY `FK_study_majors_study_colleges` (`section_id`),
  ADD KEY `FK_study_majors_users` (`Created_by`),
  ADD KEY `FK_study_majors_users_2` (`last_update_by`),
  ADD KEY `FK_study_majors_users_3` (`deleted_by`);

--
-- Indexes for table `study_sections_dates`
--
ALTER TABLE `study_sections_dates`
  ADD PRIMARY KEY (`id`),
  ADD KEY `FK_study_sections_dates_study_sections` (`section`),
  ADD KEY `FK_study_sections_dates_users` (`Created_by`);

--
-- Indexes for table `study_sections_lessons`
--
ALTER TABLE `study_sections_lessons`
  ADD PRIMARY KEY (`id`),
  ADD KEY `FK_study_majors_study_colleges` (`chapter_id`),
  ADD KEY `FK_study_majors_users` (`Created_by`),
  ADD KEY `FK_study_majors_users_2` (`last_update_by`),
  ADD KEY `FK_study_majors_users_3` (`deleted_by`);

--
-- Indexes for table `study_terms`
--
ALTER TABLE `study_terms`
  ADD PRIMARY KEY (`id`),
  ADD KEY `FK_study_terms_study_academicyears` (`academicyear`),
  ADD KEY `FK_study_terms_users` (`Created_by`),
  ADD KEY `FK_study_terms_users_2` (`last_update_by`),
  ADD KEY `FK_study_terms_users_3` (`deleted_by`);

--
-- Indexes for table `study_terms_degree_hours`
--
ALTER TABLE `study_terms_degree_hours`
  ADD PRIMARY KEY (`id`),
  ADD KEY `FK_study_terms_users` (`Created_by`),
  ADD KEY `FK_study_terms_users_2` (`last_update_by`),
  ADD KEY `FK_study_terms_users_3` (`deleted_by`),
  ADD KEY `FK_study_terms_degree_hours_study_degrees` (`degree`),
  ADD KEY `FK_study_terms_degree_hours_study_terms` (`term`);

--
-- Indexes for table `study_types`
--
ALTER TABLE `study_types`
  ADD PRIMARY KEY (`id`),
  ADD KEY `FK_study_types_users` (`Created_by`),
  ADD KEY `FK_study_types_users_2` (`last_update_by`),
  ADD KEY `FK_study_types_users_3` (`deleted_by`);

--
-- Indexes for table `tags`
--
ALTER TABLE `tags`
  ADD PRIMARY KEY (`id`),
  ADD KEY `FK_tags_users` (`deleted_by`),
  ADD KEY `FK_tags_users_2` (`last_update_by`),
  ADD KEY `FK_tags_users_3` (`Created_by`);

--
-- Indexes for table `uploadcenter`
--
ALTER TABLE `uploadcenter`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `users`
--
ALTER TABLE `users`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `uniq_username` (`username`),
  ADD KEY `FK_users_users_group` (`user_groub`),
  ADD KEY `FK_users_users` (`last_update_by`),
  ADD KEY `FK_users_users_2` (`Created_by`);

--
-- Indexes for table `users_files`
--
ALTER TABLE `users_files`
  ADD PRIMARY KEY (`id`),
  ADD KEY `FK_users_users` (`last_update_by`),
  ADD KEY `FK_users_users_2` (`Created_by`);

--
-- Indexes for table `users_group`
--
ALTER TABLE `users_group`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `user_tokens`
--
ALTER TABLE `user_tokens`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `uniq_token` (`token`),
  ADD KEY `fk_user_id` (`user_id`),
  ADD KEY `expires` (`expires`);

--
-- Indexes for table `variables`
--
ALTER TABLE `variables`
  ADD PRIMARY KEY (`id`);

--
-- AUTO_INCREMENT for dumped tables
--

--
-- AUTO_INCREMENT for table `accounting_accounts`
--
ALTER TABLE `accounting_accounts`
  MODIFY `id` int(11) unsigned NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=290;
--
-- AUTO_INCREMENT for table `accounting_accounts_trans`
--
ALTER TABLE `accounting_accounts_trans`
  MODIFY `id` int(20) unsigned NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `accounting_accounts_transdetail`
--
ALTER TABLE `accounting_accounts_transdetail`
  MODIFY `id` int(20) unsigned NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `accounting_employees_salary`
--
ALTER TABLE `accounting_employees_salary`
  MODIFY `id` int(10) unsigned NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `accounting_links`
--
ALTER TABLE `accounting_links`
  MODIFY `id` int(10) unsigned NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=12;
--
-- AUTO_INCREMENT for table `accounting_payments`
--
ALTER TABLE `accounting_payments`
  MODIFY `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `accounting_receipt_voucher`
--
ALTER TABLE `accounting_receipt_voucher`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `accounting_receipt_voucher_trans`
--
ALTER TABLE `accounting_receipt_voucher_trans`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `accounting_receivable`
--
ALTER TABLE `accounting_receivable`
  MODIFY `id` bigint(20) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `announcements`
--
ALTER TABLE `announcements`
  MODIFY `id` int(10) unsigned NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `community_service`
--
ALTER TABLE `community_service`
  MODIFY `id` int(11) unsigned NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `community_service_course`
--
ALTER TABLE `community_service_course`
  MODIFY `id` int(11) unsigned NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=5;
--
-- AUTO_INCREMENT for table `contact`
--
ALTER TABLE `contact`
  MODIFY `id` int(11) unsigned NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `counters`
--
ALTER TABLE `counters`
  MODIFY `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `dictionary`
--
ALTER TABLE `dictionary`
  MODIFY `id` int(10) unsigned NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=2548;
--
-- AUTO_INCREMENT for table `financials_costcenter`
--
ALTER TABLE `financials_costcenter`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=26;
--
-- AUTO_INCREMENT for table `financials_courses_fees`
--
ALTER TABLE `financials_courses_fees`
  MODIFY `id` int(11) unsigned NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `financials_discounts`
--
ALTER TABLE `financials_discounts`
  MODIFY `id` int(11) unsigned NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `financials_discount_students`
--
ALTER TABLE `financials_discount_students`
  MODIFY `id` int(11) unsigned NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `financials_fines_management`
--
ALTER TABLE `financials_fines_management`
  MODIFY `id` int(11) unsigned NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `financials_mandatory_min_payment`
--
ALTER TABLE `financials_mandatory_min_payment`
  MODIFY `id` int(11) unsigned NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `financials_mandatory_min_payment_custom`
--
ALTER TABLE `financials_mandatory_min_payment_custom`
  MODIFY `id` int(11) unsigned NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `financials_payments`
--
ALTER TABLE `financials_payments`
  MODIFY `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `financials_sponsors`
--
ALTER TABLE `financials_sponsors`
  MODIFY `id` int(11) unsigned NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `financials_sponsorships`
--
ALTER TABLE `financials_sponsorships`
  MODIFY `id` int(11) unsigned NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `financials_sponsors_types`
--
ALTER TABLE `financials_sponsors_types`
  MODIFY `id` int(11) unsigned NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `general_banks`
--
ALTER TABLE `general_banks`
  MODIFY `id` int(11) unsigned NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=3;
--
-- AUTO_INCREMENT for table `general_cities`
--
ALTER TABLE `general_cities`
  MODIFY `id` int(11) unsigned NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=25751;
--
-- AUTO_INCREMENT for table `general_contact_person`
--
ALTER TABLE `general_contact_person`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `general_contact_person_message`
--
ALTER TABLE `general_contact_person_message`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `general_countries`
--
ALTER TABLE `general_countries`
  MODIFY `id` int(11) unsigned NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=251;
--
-- AUTO_INCREMENT for table `general_education_levels`
--
ALTER TABLE `general_education_levels`
  MODIFY `id` int(11) unsigned NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `general_elearning_infractions`
--
ALTER TABLE `general_elearning_infractions`
  MODIFY `id` int(11) unsigned NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `general_elearning_participates`
--
ALTER TABLE `general_elearning_participates`
  MODIFY `id` int(11) unsigned NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=3;
--
-- AUTO_INCREMENT for table `general_fields`
--
ALTER TABLE `general_fields`
  MODIFY `id` int(11) unsigned NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=26;
--
-- AUTO_INCREMENT for table `general_fixedassets`
--
ALTER TABLE `general_fixedassets`
  MODIFY `id` int(11) unsigned NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `general_genders`
--
ALTER TABLE `general_genders`
  MODIFY `id` int(11) unsigned NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=3;
--
-- AUTO_INCREMENT for table `general_generally`
--
ALTER TABLE `general_generally`
  MODIFY `id` int(11) unsigned NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=25;
--
-- AUTO_INCREMENT for table `general_hr_departments`
--
ALTER TABLE `general_hr_departments`
  MODIFY `id` int(11) unsigned NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `general_hr_employee_types`
--
ALTER TABLE `general_hr_employee_types`
  MODIFY `id` int(11) unsigned NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `general_hr_fines_types`
--
ALTER TABLE `general_hr_fines_types`
  MODIFY `id` int(11) unsigned NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=3;
--
-- AUTO_INCREMENT for table `general_hr_leavetypes`
--
ALTER TABLE `general_hr_leavetypes`
  MODIFY `id` int(11) unsigned NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `general_hr_positions`
--
ALTER TABLE `general_hr_positions`
  MODIFY `id` int(11) unsigned NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=34;
--
-- AUTO_INCREMENT for table `general_hr_rewards_types`
--
ALTER TABLE `general_hr_rewards_types`
  MODIFY `id` int(11) unsigned NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=4;
--
-- AUTO_INCREMENT for table `general_hr_sections`
--
ALTER TABLE `general_hr_sections`
  MODIFY `id` int(11) unsigned NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=2;
--
-- AUTO_INCREMENT for table `general_hr_warnings_types`
--
ALTER TABLE `general_hr_warnings_types`
  MODIFY `id` int(11) unsigned NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `general_hs_certificate_type`
--
ALTER TABLE `general_hs_certificate_type`
  MODIFY `id` int(11) unsigned NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `general_legalforms`
--
ALTER TABLE `general_legalforms`
  MODIFY `id` int(11) unsigned NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `general_marital_status`
--
ALTER TABLE `general_marital_status`
  MODIFY `id` int(11) unsigned NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=5;
--
-- AUTO_INCREMENT for table `general_religions`
--
ALTER TABLE `general_religions`
  MODIFY `id` int(11) unsigned NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=6;
--
-- AUTO_INCREMENT for table `general_stores_categories`
--
ALTER TABLE `general_stores_categories`
  MODIFY `id` int(11) unsigned NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=70;
--
-- AUTO_INCREMENT for table `general_stores_stores`
--
ALTER TABLE `general_stores_stores`
  MODIFY `id` int(11) unsigned NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=6;
--
-- AUTO_INCREMENT for table `general_stores_units`
--
ALTER TABLE `general_stores_units`
  MODIFY `id` int(11) unsigned NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=19;
--
-- AUTO_INCREMENT for table `general_student_parent_relation`
--
ALTER TABLE `general_student_parent_relation`
  MODIFY `id` int(11) unsigned NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `home_icons`
--
ALTER TABLE `home_icons`
  MODIFY `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `hr_allowances_relations`
--
ALTER TABLE `hr_allowances_relations`
  MODIFY `id` int(11) unsigned NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `hr_allowances_types`
--
ALTER TABLE `hr_allowances_types`
  MODIFY `id` int(11) unsigned NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=95;
--
-- AUTO_INCREMENT for table `hr_attendance`
--
ALTER TABLE `hr_attendance`
  MODIFY `id` int(11) unsigned NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `hr_deductions_advance_payment`
--
ALTER TABLE `hr_deductions_advance_payment`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `hr_deductions_advance_payment_records`
--
ALTER TABLE `hr_deductions_advance_payment_records`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `hr_deductions_relations`
--
ALTER TABLE `hr_deductions_relations`
  MODIFY `id` int(11) unsigned NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `hr_deductions_types`
--
ALTER TABLE `hr_deductions_types`
  MODIFY `id` int(11) unsigned NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=11;
--
-- AUTO_INCREMENT for table `hr_employment_applications`
--
ALTER TABLE `hr_employment_applications`
  MODIFY `id` int(11) unsigned NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=64;
--
-- AUTO_INCREMENT for table `hr_employment_applications_certificates`
--
ALTER TABLE `hr_employment_applications_certificates`
  MODIFY `id` int(11) unsigned NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `hr_employment_applications_experiances`
--
ALTER TABLE `hr_employment_applications_experiances`
  MODIFY `id` int(11) unsigned NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `hr_employment_applications_qualifications`
--
ALTER TABLE `hr_employment_applications_qualifications`
  MODIFY `id` int(11) unsigned NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `hr_fines_warnings`
--
ALTER TABLE `hr_fines_warnings`
  MODIFY `id` int(11) unsigned NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `hr_leaverequest`
--
ALTER TABLE `hr_leaverequest`
  MODIFY `id` int(11) unsigned NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `hr_rewards`
--
ALTER TABLE `hr_rewards`
  MODIFY `id` int(11) unsigned NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `imagescenter`
--
ALTER TABLE `imagescenter`
  MODIFY `id` int(11) unsigned NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `journal`
--
ALTER TABLE `journal`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `layers`
--
ALTER TABLE `layers`
  MODIFY `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `letters`
--
ALTER TABLE `letters`
  MODIFY `id` int(11) unsigned NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=17;
--
-- AUTO_INCREMENT for table `letters_applications`
--
ALTER TABLE `letters_applications`
  MODIFY `id` int(11) unsigned NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `letters_applications_approvals`
--
ALTER TABLE `letters_applications_approvals`
  MODIFY `id` int(11) unsigned NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `letters_approvals`
--
ALTER TABLE `letters_approvals`
  MODIFY `id` int(11) unsigned NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=51;
--
-- AUTO_INCREMENT for table `letters_dropdowns`
--
ALTER TABLE `letters_dropdowns`
  MODIFY `id` int(11) unsigned NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=3;
--
-- AUTO_INCREMENT for table `letters_dropdowns_options`
--
ALTER TABLE `letters_dropdowns_options`
  MODIFY `id` int(11) unsigned NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=7;
--
-- AUTO_INCREMENT for table `letters_fields`
--
ALTER TABLE `letters_fields`
  MODIFY `id` int(11) unsigned NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=76;
--
-- AUTO_INCREMENT for table `library_main_cats`
--
ALTER TABLE `library_main_cats`
  MODIFY `id` int(11) unsigned NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=3;
--
-- AUTO_INCREMENT for table `library_manager`
--
ALTER TABLE `library_manager`
  MODIFY `id` int(11) unsigned NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `marketing_rejected_student_application`
--
ALTER TABLE `marketing_rejected_student_application`
  MODIFY `id` int(11) unsigned NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `menus`
--
ALTER TABLE `menus`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `news`
--
ALTER TABLE `news`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `notifications`
--
ALTER TABLE `notifications`
  MODIFY `id` int(10) unsigned NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `notifications_list`
--
ALTER TABLE `notifications_list`
  MODIFY `id` int(10) unsigned NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=4;
--
-- AUTO_INCREMENT for table `pages`
--
ALTER TABLE `pages`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `permissions_groups`
--
ALTER TABLE `permissions_groups`
  MODIFY `id` int(11) unsigned NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=6;
--
-- AUTO_INCREMENT for table `permissions_groups_roles_relations`
--
ALTER TABLE `permissions_groups_roles_relations`
  MODIFY `id` int(11) unsigned NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=575;
--
-- AUTO_INCREMENT for table `permissions_groups_users_relations`
--
ALTER TABLE `permissions_groups_users_relations`
  MODIFY `id` int(11) unsigned NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `permission_sections`
--
ALTER TABLE `permission_sections`
  MODIFY `id` int(11) unsigned NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=11;
--
-- AUTO_INCREMENT for table `relations`
--
ALTER TABLE `relations`
  MODIFY `id` int(11) unsigned NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `roles`
--
ALTER TABLE `roles`
  MODIFY `id` int(11) unsigned NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=410;
--
-- AUTO_INCREMENT for table `slides`
--
ALTER TABLE `slides`
  MODIFY `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `speeches`
--
ALTER TABLE `speeches`
  MODIFY `id` int(11) unsigned NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=76;
--
-- AUTO_INCREMENT for table `stores_goods_delivery_voucher`
--
ALTER TABLE `stores_goods_delivery_voucher`
  MODIFY `id` int(11) unsigned NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `stores_goods_delivery_voucher_items`
--
ALTER TABLE `stores_goods_delivery_voucher_items`
  MODIFY `id` int(11) unsigned NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `stores_goods_elimination_voucher`
--
ALTER TABLE `stores_goods_elimination_voucher`
  MODIFY `id` int(11) unsigned NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `stores_goods_elimination_voucher_items`
--
ALTER TABLE `stores_goods_elimination_voucher_items`
  MODIFY `id` int(11) unsigned NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `stores_goods_receipts_voucher`
--
ALTER TABLE `stores_goods_receipts_voucher`
  MODIFY `id` int(11) unsigned NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `stores_goods_receipts_voucher_items`
--
ALTER TABLE `stores_goods_receipts_voucher_items`
  MODIFY `id` int(11) unsigned NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `stores_goods_transfare_voucher`
--
ALTER TABLE `stores_goods_transfare_voucher`
  MODIFY `id` int(11) unsigned NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `stores_goods_transfare_voucher_items`
--
ALTER TABLE `stores_goods_transfare_voucher_items`
  MODIFY `id` int(11) unsigned NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `stores_inventory`
--
ALTER TABLE `stores_inventory`
  MODIFY `id` int(11) unsigned NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `stores_purchase`
--
ALTER TABLE `stores_purchase`
  MODIFY `id` int(11) unsigned NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `stores_purchase_elements`
--
ALTER TABLE `stores_purchase_elements`
  MODIFY `id` int(11) unsigned NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `stores_purchase_elements_returned`
--
ALTER TABLE `stores_purchase_elements_returned`
  MODIFY `id` int(11) unsigned NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `stores_sales_elements_returned`
--
ALTER TABLE `stores_sales_elements_returned`
  MODIFY `id` int(11) unsigned NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=10;
--
-- AUTO_INCREMENT for table `stores_sales_invoice`
--
ALTER TABLE `stores_sales_invoice`
  MODIFY `id` int(11) unsigned NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `stores_sales_invoice_items`
--
ALTER TABLE `stores_sales_invoice_items`
  MODIFY `id` int(11) unsigned NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `stores_stocktaking_process`
--
ALTER TABLE `stores_stocktaking_process`
  MODIFY `id` int(11) unsigned NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `stores_stocktaking_process_elements`
--
ALTER TABLE `stores_stocktaking_process_elements`
  MODIFY `id` int(11) unsigned NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `students_absents`
--
ALTER TABLE `students_absents`
  MODIFY `id` int(11) unsigned NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `students_applications`
--
ALTER TABLE `students_applications`
  MODIFY `id` int(11) unsigned NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `students_applications_documents`
--
ALTER TABLE `students_applications_documents`
  MODIFY `id` int(11) unsigned NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `students_applications_documents_types`
--
ALTER TABLE `students_applications_documents_types`
  MODIFY `id` int(11) unsigned NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `students_applications_steps`
--
ALTER TABLE `students_applications_steps`
  MODIFY `id` int(11) unsigned NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `students_courses_equations`
--
ALTER TABLE `students_courses_equations`
  MODIFY `id` int(11) unsigned NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `students_infractions`
--
ALTER TABLE `students_infractions`
  MODIFY `id` int(11) unsigned NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `students_logs`
--
ALTER TABLE `students_logs`
  MODIFY `id` int(11) unsigned NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `students_notes`
--
ALTER TABLE `students_notes`
  MODIFY `id` int(11) unsigned NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `students_operations`
--
ALTER TABLE `students_operations`
  MODIFY `id` int(11) unsigned NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=18;
--
-- AUTO_INCREMENT for table `students_participates`
--
ALTER TABLE `students_participates`
  MODIFY `id` int(11) unsigned NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `students_sections`
--
ALTER TABLE `students_sections`
  MODIFY `id` int(20) unsigned NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `students_study_state`
--
ALTER TABLE `students_study_state`
  MODIFY `id` int(10) unsigned NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `students_terms`
--
ALTER TABLE `students_terms`
  MODIFY `id` int(10) unsigned NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `students_types`
--
ALTER TABLE `students_types`
  MODIFY `id` int(11) unsigned NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `study_academicyears`
--
ALTER TABLE `study_academicyears`
  MODIFY `id` int(11) unsigned NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `study_colleges`
--
ALTER TABLE `study_colleges`
  MODIFY `id` int(11) unsigned NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `study_courses`
--
ALTER TABLE `study_courses`
  MODIFY `id` int(11) unsigned NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `study_courses_prerequisite`
--
ALTER TABLE `study_courses_prerequisite`
  MODIFY `id` int(11) unsigned NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `study_degrees`
--
ALTER TABLE `study_degrees`
  MODIFY `id` int(11) unsigned NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `study_departments`
--
ALTER TABLE `study_departments`
  MODIFY `id` int(11) unsigned NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `study_levels`
--
ALTER TABLE `study_levels`
  MODIFY `id` int(11) unsigned NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `study_levels_courses`
--
ALTER TABLE `study_levels_courses`
  MODIFY `id` int(11) unsigned NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `study_majors`
--
ALTER TABLE `study_majors`
  MODIFY `id` int(11) unsigned NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `study_programs`
--
ALTER TABLE `study_programs`
  MODIFY `id` int(11) unsigned NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `study_rooms`
--
ALTER TABLE `study_rooms`
  MODIFY `id` int(11) unsigned NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `study_sections`
--
ALTER TABLE `study_sections`
  MODIFY `id` int(11) unsigned NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `study_sections_chapters`
--
ALTER TABLE `study_sections_chapters`
  MODIFY `id` int(11) unsigned NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `study_sections_dates`
--
ALTER TABLE `study_sections_dates`
  MODIFY `id` int(11) unsigned NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `study_sections_lessons`
--
ALTER TABLE `study_sections_lessons`
  MODIFY `id` int(11) unsigned NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `study_terms`
--
ALTER TABLE `study_terms`
  MODIFY `id` int(11) unsigned NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `study_terms_degree_hours`
--
ALTER TABLE `study_terms_degree_hours`
  MODIFY `id` int(11) unsigned NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `study_types`
--
ALTER TABLE `study_types`
  MODIFY `id` int(11) unsigned NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `tags`
--
ALTER TABLE `tags`
  MODIFY `id` int(11) unsigned NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `uploadcenter`
--
ALTER TABLE `uploadcenter`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `users`
--
ALTER TABLE `users`
  MODIFY `id` int(11) unsigned NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=2;
--
-- AUTO_INCREMENT for table `users_files`
--
ALTER TABLE `users_files`
  MODIFY `id` int(11) unsigned NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=2;
--
-- AUTO_INCREMENT for table `users_group`
--
ALTER TABLE `users_group`
  MODIFY `id` int(11) unsigned NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=6;
--
-- AUTO_INCREMENT for table `user_tokens`
--
ALTER TABLE `user_tokens`
  MODIFY `id` int(11) unsigned NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=126;
--
-- AUTO_INCREMENT for table `variables`
--
ALTER TABLE `variables`
  MODIFY `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=97;
--
-- Constraints for dumped tables
--

--
-- Constraints for table `accounting_accounts`
--
ALTER TABLE `accounting_accounts`
  ADD CONSTRAINT `FK_accounting_accounts_accounting_accounts` FOREIGN KEY (`ParentNo`) REFERENCES `accounting_accounts` (`id`),
  ADD CONSTRAINT `FK_accounting_accounts_users` FOREIGN KEY (`Created_by`) REFERENCES `users` (`id`);

--
-- Constraints for table `contact`
--
ALTER TABLE `contact`
  ADD CONSTRAINT `FK_contact_users` FOREIGN KEY (`Created_by`) REFERENCES `users` (`id`),
  ADD CONSTRAINT `FK_contact_users_2` FOREIGN KEY (`last_update_by`) REFERENCES `users` (`id`);

--
-- Constraints for table `counters`
--
ALTER TABLE `counters`
  ADD CONSTRAINT `FK_counters_users` FOREIGN KEY (`Created_by`) REFERENCES `users` (`id`),
  ADD CONSTRAINT `FK_counters_users_2` FOREIGN KEY (`last_update_by`) REFERENCES `users` (`id`),
  ADD CONSTRAINT `FK_counters_users_3` FOREIGN KEY (`deleted_by`) REFERENCES `users` (`id`);

--
-- Constraints for table `financials_courses_fees`
--
ALTER TABLE `financials_courses_fees`
  ADD CONSTRAINT `FK_financials_courses_fees_students_types` FOREIGN KEY (`student_type`) REFERENCES `students_types` (`id`),
  ADD CONSTRAINT `FK_financials_courses_fees_study_colleges` FOREIGN KEY (`college`) REFERENCES `study_colleges` (`id`),
  ADD CONSTRAINT `FK_financials_courses_fees_study_courses` FOREIGN KEY (`course`) REFERENCES `study_courses` (`id`),
  ADD CONSTRAINT `FK_financials_courses_fees_study_degrees` FOREIGN KEY (`degree`) REFERENCES `study_degrees` (`id`),
  ADD CONSTRAINT `FK_financials_courses_fees_study_departments` FOREIGN KEY (`department`) REFERENCES `study_departments` (`id`),
  ADD CONSTRAINT `FK_financials_courses_fees_study_levels` FOREIGN KEY (`level`) REFERENCES `study_levels` (`id`),
  ADD CONSTRAINT `FK_financials_courses_fees_study_majors` FOREIGN KEY (`major`) REFERENCES `study_majors` (`id`),
  ADD CONSTRAINT `FK_financials_courses_fees_users` FOREIGN KEY (`last_update_by`) REFERENCES `users` (`id`),
  ADD CONSTRAINT `FK_financials_courses_fees_users_2` FOREIGN KEY (`Created_by`) REFERENCES `users` (`id`),
  ADD CONSTRAINT `FK_financials_courses_fees_users_3` FOREIGN KEY (`deleted_by`) REFERENCES `users` (`id`);

--
-- Constraints for table `financials_discounts`
--
ALTER TABLE `financials_discounts`
  ADD CONSTRAINT `FK_financials_discounts_students_types` FOREIGN KEY (`student_type`) REFERENCES `students_types` (`id`),
  ADD CONSTRAINT `FK_financials_discounts_study_degrees` FOREIGN KEY (`degree`) REFERENCES `study_degrees` (`id`),
  ADD CONSTRAINT `FK_financials_discounts_study_majors` FOREIGN KEY (`major`) REFERENCES `study_majors` (`id`),
  ADD CONSTRAINT `FK_financials_discounts_study_terms` FOREIGN KEY (`term`) REFERENCES `study_terms` (`id`),
  ADD CONSTRAINT `FK_financials_discounts_users` FOREIGN KEY (`Created_by`) REFERENCES `users` (`id`),
  ADD CONSTRAINT `FK_financials_discounts_users_2` FOREIGN KEY (`last_update_by`) REFERENCES `users` (`id`),
  ADD CONSTRAINT `FK_financials_discounts_users_3` FOREIGN KEY (`deleted_by`) REFERENCES `users` (`id`);

--
-- Constraints for table `financials_discount_students`
--
ALTER TABLE `financials_discount_students`
  ADD CONSTRAINT `FK_financials_discount_students_study_terms` FOREIGN KEY (`term`) REFERENCES `study_terms` (`id`),
  ADD CONSTRAINT `FK_financials_discount_students_users` FOREIGN KEY (`student`) REFERENCES `users` (`id`),
  ADD CONSTRAINT `FK_financials_discount_students_users_2` FOREIGN KEY (`Created_by`) REFERENCES `users` (`id`),
  ADD CONSTRAINT `FK_financials_discount_students_users_3` FOREIGN KEY (`last_update_by`) REFERENCES `users` (`id`),
  ADD CONSTRAINT `FK_financials_discount_students_users_4` FOREIGN KEY (`deleted_by`) REFERENCES `users` (`id`);

--
-- Constraints for table `financials_fines_management`
--
ALTER TABLE `financials_fines_management`
  ADD CONSTRAINT `FK_financials_fines_management_study_terms` FOREIGN KEY (`term`) REFERENCES `study_terms` (`id`),
  ADD CONSTRAINT `FK_financials_fines_management_users` FOREIGN KEY (`deleted_by`) REFERENCES `users` (`id`),
  ADD CONSTRAINT `FK_financials_fines_management_users_2` FOREIGN KEY (`last_update_by`) REFERENCES `users` (`id`),
  ADD CONSTRAINT `FK_financials_fines_management_users_3` FOREIGN KEY (`Created_by`) REFERENCES `users` (`id`);

--
-- Constraints for table `financials_mandatory_min_payment`
--
ALTER TABLE `financials_mandatory_min_payment`
  ADD CONSTRAINT `FK_financials_mandatory_min_payment_study_degrees` FOREIGN KEY (`degree`) REFERENCES `study_degrees` (`id`),
  ADD CONSTRAINT `FK_financials_mandatory_min_payment_study_majors` FOREIGN KEY (`major`) REFERENCES `study_majors` (`id`),
  ADD CONSTRAINT `FK_financials_mandatory_min_payment_study_terms` FOREIGN KEY (`term`) REFERENCES `study_terms` (`id`),
  ADD CONSTRAINT `FK_financials_mandatory_min_payment_users` FOREIGN KEY (`deleted_by`) REFERENCES `users` (`id`),
  ADD CONSTRAINT `FK_financials_mandatory_min_payment_users_2` FOREIGN KEY (`last_update_by`) REFERENCES `users` (`id`),
  ADD CONSTRAINT `FK_financials_mandatory_min_payment_users_3` FOREIGN KEY (`Created_by`) REFERENCES `users` (`id`);

--
-- Constraints for table `financials_mandatory_min_payment_custom`
--
ALTER TABLE `financials_mandatory_min_payment_custom`
  ADD CONSTRAINT `FK_financials_mandatory_min_payment_custom_study_terms` FOREIGN KEY (`term`) REFERENCES `study_terms` (`id`),
  ADD CONSTRAINT `FK_financials_mandatory_min_payment_custom_users` FOREIGN KEY (`student`) REFERENCES `users` (`id`),
  ADD CONSTRAINT `FK_financials_mandatory_min_payment_custom_users_2` FOREIGN KEY (`Created_by`) REFERENCES `users` (`id`),
  ADD CONSTRAINT `FK_financials_mandatory_min_payment_custom_users_3` FOREIGN KEY (`last_update_by`) REFERENCES `users` (`id`),
  ADD CONSTRAINT `FK_financials_mandatory_min_payment_custom_users_4` FOREIGN KEY (`deleted_by`) REFERENCES `users` (`id`);

--
-- Constraints for table `financials_payments`
--
ALTER TABLE `financials_payments`
  ADD CONSTRAINT `FK_financials_payments_financials_discounts` FOREIGN KEY (`Discount`) REFERENCES `financials_discounts` (`id`),
  ADD CONSTRAINT `FK_financials_payments_study_terms` FOREIGN KEY (`term`) REFERENCES `study_terms` (`id`),
  ADD CONSTRAINT `FK_financials_payments_users` FOREIGN KEY (`student`) REFERENCES `users` (`id`),
  ADD CONSTRAINT `FK_financials_payments_users_2` FOREIGN KEY (`Created_by`) REFERENCES `users` (`id`),
  ADD CONSTRAINT `FK_financials_payments_users_3` FOREIGN KEY (`last_update_by`) REFERENCES `users` (`id`),
  ADD CONSTRAINT `FK_financials_payments_users_4` FOREIGN KEY (`deleted_by`) REFERENCES `users` (`id`);

--
-- Constraints for table `financials_sponsors`
--
ALTER TABLE `financials_sponsors`
  ADD CONSTRAINT `FK_financials_sponsors_financials_sponsors_types` FOREIGN KEY (`sponsor_type`) REFERENCES `financials_sponsors_types` (`id`),
  ADD CONSTRAINT `FK_financials_sponsors_general_legalforms` FOREIGN KEY (`legalform`) REFERENCES `general_legalforms` (`id`),
  ADD CONSTRAINT `FK_financials_sponsors_users` FOREIGN KEY (`Created_by`) REFERENCES `users` (`id`),
  ADD CONSTRAINT `FK_financials_sponsors_users_2` FOREIGN KEY (`last_update_by`) REFERENCES `users` (`id`),
  ADD CONSTRAINT `FK_financials_sponsors_users_3` FOREIGN KEY (`deleted_by`) REFERENCES `users` (`id`);

--
-- Constraints for table `financials_sponsorships`
--
ALTER TABLE `financials_sponsorships`
  ADD CONSTRAINT `FK_financials_sponsorships_financials_sponsors` FOREIGN KEY (`sponsor`) REFERENCES `financials_sponsors` (`id`),
  ADD CONSTRAINT `FK_financials_sponsorships_study_terms` FOREIGN KEY (`term`) REFERENCES `study_terms` (`id`),
  ADD CONSTRAINT `FK_financials_sponsorships_users` FOREIGN KEY (`student`) REFERENCES `users` (`id`),
  ADD CONSTRAINT `FK_financials_sponsorships_users_2` FOREIGN KEY (`Created_by`) REFERENCES `users` (`id`),
  ADD CONSTRAINT `FK_financials_sponsorships_users_3` FOREIGN KEY (`last_update_by`) REFERENCES `users` (`id`),
  ADD CONSTRAINT `FK_financials_sponsorships_users_4` FOREIGN KEY (`deleted_by`) REFERENCES `users` (`id`);

--
-- Constraints for table `financials_sponsors_types`
--
ALTER TABLE `financials_sponsors_types`
  ADD CONSTRAINT `FK_financials_sponsors_types_users` FOREIGN KEY (`Created_by`) REFERENCES `users` (`id`),
  ADD CONSTRAINT `FK_financials_sponsors_types_users_2` FOREIGN KEY (`last_update_by`) REFERENCES `users` (`id`),
  ADD CONSTRAINT `FK_financials_sponsors_types_users_3` FOREIGN KEY (`deleted_by`) REFERENCES `users` (`id`);

--
-- Constraints for table `general_banks`
--
ALTER TABLE `general_banks`
  ADD CONSTRAINT `general_banks_ibfk_1` FOREIGN KEY (`deleted_by`) REFERENCES `users` (`id`),
  ADD CONSTRAINT `general_banks_ibfk_2` FOREIGN KEY (`Created_by`) REFERENCES `users` (`id`),
  ADD CONSTRAINT `general_banks_ibfk_3` FOREIGN KEY (`last_update_by`) REFERENCES `users` (`id`);

--
-- Constraints for table `general_cities`
--
ALTER TABLE `general_cities`
  ADD CONSTRAINT `FK_general_cities_general_religions` FOREIGN KEY (`country_id`) REFERENCES `general_countries` (`id`),
  ADD CONSTRAINT `general_cities_ibfk_1` FOREIGN KEY (`deleted_by`) REFERENCES `users` (`id`),
  ADD CONSTRAINT `general_cities_ibfk_2` FOREIGN KEY (`Created_by`) REFERENCES `users` (`id`),
  ADD CONSTRAINT `general_cities_ibfk_3` FOREIGN KEY (`last_update_by`) REFERENCES `users` (`id`);

--
-- Constraints for table `general_countries`
--
ALTER TABLE `general_countries`
  ADD CONSTRAINT `general_countries_ibfk_1` FOREIGN KEY (`deleted_by`) REFERENCES `users` (`id`),
  ADD CONSTRAINT `general_countries_ibfk_2` FOREIGN KEY (`Created_by`) REFERENCES `users` (`id`),
  ADD CONSTRAINT `general_countries_ibfk_3` FOREIGN KEY (`last_update_by`) REFERENCES `users` (`id`);

--
-- Constraints for table `general_education_levels`
--
ALTER TABLE `general_education_levels`
  ADD CONSTRAINT `general_education_levels_ibfk_1` FOREIGN KEY (`deleted_by`) REFERENCES `users` (`id`),
  ADD CONSTRAINT `general_education_levels_ibfk_2` FOREIGN KEY (`Created_by`) REFERENCES `users` (`id`),
  ADD CONSTRAINT `general_education_levels_ibfk_3` FOREIGN KEY (`last_update_by`) REFERENCES `users` (`id`);

--
-- Constraints for table `general_elearning_infractions`
--
ALTER TABLE `general_elearning_infractions`
  ADD CONSTRAINT `general_elearning_infractions_ibfk_1` FOREIGN KEY (`deleted_by`) REFERENCES `users` (`id`),
  ADD CONSTRAINT `general_elearning_infractions_ibfk_2` FOREIGN KEY (`Created_by`) REFERENCES `users` (`id`),
  ADD CONSTRAINT `general_elearning_infractions_ibfk_3` FOREIGN KEY (`last_update_by`) REFERENCES `users` (`id`);

--
-- Constraints for table `general_elearning_participates`
--
ALTER TABLE `general_elearning_participates`
  ADD CONSTRAINT `general_elearning_participates_ibfk_1` FOREIGN KEY (`deleted_by`) REFERENCES `users` (`id`),
  ADD CONSTRAINT `general_elearning_participates_ibfk_2` FOREIGN KEY (`Created_by`) REFERENCES `users` (`id`),
  ADD CONSTRAINT `general_elearning_participates_ibfk_3` FOREIGN KEY (`last_update_by`) REFERENCES `users` (`id`);

--
-- Constraints for table `general_fields`
--
ALTER TABLE `general_fields`
  ADD CONSTRAINT `FK_general_fields_general_generally` FOREIGN KEY (`gennerally_id`) REFERENCES `general_generally` (`id`),
  ADD CONSTRAINT `general_fields_ibfk_2` FOREIGN KEY (`deleted_by`) REFERENCES `users` (`id`),
  ADD CONSTRAINT `general_fields_ibfk_3` FOREIGN KEY (`Created_by`) REFERENCES `users` (`id`),
  ADD CONSTRAINT `general_fields_ibfk_4` FOREIGN KEY (`last_update_by`) REFERENCES `users` (`id`);

--
-- Constraints for table `general_fixedassets`
--
ALTER TABLE `general_fixedassets`
  ADD CONSTRAINT `general_fixedassets_ibfk_1` FOREIGN KEY (`parent_id`) REFERENCES `general_stores_categories` (`id`),
  ADD CONSTRAINT `general_fixedassets_ibfk_2` FOREIGN KEY (`deleted_by`) REFERENCES `users` (`id`),
  ADD CONSTRAINT `general_fixedassets_ibfk_3` FOREIGN KEY (`Created_by`) REFERENCES `users` (`id`),
  ADD CONSTRAINT `general_fixedassets_ibfk_4` FOREIGN KEY (`last_update_by`) REFERENCES `users` (`id`);

--
-- Constraints for table `general_genders`
--
ALTER TABLE `general_genders`
  ADD CONSTRAINT `general_genders_ibfk_1` FOREIGN KEY (`deleted_by`) REFERENCES `users` (`id`),
  ADD CONSTRAINT `general_genders_ibfk_2` FOREIGN KEY (`Created_by`) REFERENCES `users` (`id`),
  ADD CONSTRAINT `general_genders_ibfk_3` FOREIGN KEY (`last_update_by`) REFERENCES `users` (`id`);

--
-- Constraints for table `general_generally`
--
ALTER TABLE `general_generally`
  ADD CONSTRAINT `FK_general_generally_general_generally` FOREIGN KEY (`parent`) REFERENCES `general_generally` (`id`),
  ADD CONSTRAINT `FK_general_generally_permission_sections` FOREIGN KEY (`section`) REFERENCES `permission_sections` (`id`),
  ADD CONSTRAINT `general_generally_ibfk_1` FOREIGN KEY (`deleted_by`) REFERENCES `users` (`id`),
  ADD CONSTRAINT `general_generally_ibfk_2` FOREIGN KEY (`Created_by`) REFERENCES `users` (`id`),
  ADD CONSTRAINT `general_generally_ibfk_3` FOREIGN KEY (`last_update_by`) REFERENCES `users` (`id`);

--
-- Constraints for table `general_hr_departments`
--
ALTER TABLE `general_hr_departments`
  ADD CONSTRAINT `FK_general_hr_departments_general_hr_positions` FOREIGN KEY (`director`) REFERENCES `general_hr_positions` (`id`),
  ADD CONSTRAINT `FK_general_hr_departments_general_hr_positions_2` FOREIGN KEY (`deputy_director`) REFERENCES `general_hr_positions` (`id`),
  ADD CONSTRAINT `general_hr_departments_ibfk_1` FOREIGN KEY (`deleted_by`) REFERENCES `users` (`id`),
  ADD CONSTRAINT `general_hr_departments_ibfk_2` FOREIGN KEY (`Created_by`) REFERENCES `users` (`id`),
  ADD CONSTRAINT `general_hr_departments_ibfk_3` FOREIGN KEY (`last_update_by`) REFERENCES `users` (`id`);

--
-- Constraints for table `general_hr_employee_types`
--
ALTER TABLE `general_hr_employee_types`
  ADD CONSTRAINT `general_hr_employee_types_ibfk_1` FOREIGN KEY (`deleted_by`) REFERENCES `users` (`id`),
  ADD CONSTRAINT `general_hr_employee_types_ibfk_2` FOREIGN KEY (`Created_by`) REFERENCES `users` (`id`),
  ADD CONSTRAINT `general_hr_employee_types_ibfk_3` FOREIGN KEY (`last_update_by`) REFERENCES `users` (`id`);

--
-- Constraints for table `general_hr_fines_types`
--
ALTER TABLE `general_hr_fines_types`
  ADD CONSTRAINT `general_hr_fines_types_ibfk_1` FOREIGN KEY (`deleted_by`) REFERENCES `users` (`id`),
  ADD CONSTRAINT `general_hr_fines_types_ibfk_2` FOREIGN KEY (`Created_by`) REFERENCES `users` (`id`),
  ADD CONSTRAINT `general_hr_fines_types_ibfk_3` FOREIGN KEY (`last_update_by`) REFERENCES `users` (`id`);

--
-- Constraints for table `general_hr_leavetypes`
--
ALTER TABLE `general_hr_leavetypes`
  ADD CONSTRAINT `general_hr_leavetypes_ibfk_1` FOREIGN KEY (`deleted_by`) REFERENCES `users` (`id`),
  ADD CONSTRAINT `general_hr_leavetypes_ibfk_2` FOREIGN KEY (`Created_by`) REFERENCES `users` (`id`),
  ADD CONSTRAINT `general_hr_leavetypes_ibfk_3` FOREIGN KEY (`last_update_by`) REFERENCES `users` (`id`);

--
-- Constraints for table `general_hr_positions`
--
ALTER TABLE `general_hr_positions`
  ADD CONSTRAINT `FK4` FOREIGN KEY (`department`) REFERENCES `general_hr_departments` (`id`),
  ADD CONSTRAINT `general_hr_positions_ibfk_1` FOREIGN KEY (`deleted_by`) REFERENCES `users` (`id`),
  ADD CONSTRAINT `general_hr_positions_ibfk_2` FOREIGN KEY (`Created_by`) REFERENCES `users` (`id`),
  ADD CONSTRAINT `general_hr_positions_ibfk_3` FOREIGN KEY (`last_update_by`) REFERENCES `users` (`id`);

--
-- Constraints for table `general_hr_rewards_types`
--
ALTER TABLE `general_hr_rewards_types`
  ADD CONSTRAINT `general_hr_rewards_types_ibfk_1` FOREIGN KEY (`deleted_by`) REFERENCES `users` (`id`),
  ADD CONSTRAINT `general_hr_rewards_types_ibfk_2` FOREIGN KEY (`Created_by`) REFERENCES `users` (`id`),
  ADD CONSTRAINT `general_hr_rewards_types_ibfk_3` FOREIGN KEY (`last_update_by`) REFERENCES `users` (`id`);

--
-- Constraints for table `general_hr_sections`
--
ALTER TABLE `general_hr_sections`
  ADD CONSTRAINT `general_hr_sections_ibfk_1` FOREIGN KEY (`deleted_by`) REFERENCES `users` (`id`),
  ADD CONSTRAINT `general_hr_sections_ibfk_2` FOREIGN KEY (`Created_by`) REFERENCES `users` (`id`),
  ADD CONSTRAINT `general_hr_sections_ibfk_3` FOREIGN KEY (`last_update_by`) REFERENCES `users` (`id`);

--
-- Constraints for table `general_hr_warnings_types`
--
ALTER TABLE `general_hr_warnings_types`
  ADD CONSTRAINT `general_hr_warnings_types_ibfk_1` FOREIGN KEY (`deleted_by`) REFERENCES `users` (`id`),
  ADD CONSTRAINT `general_hr_warnings_types_ibfk_2` FOREIGN KEY (`Created_by`) REFERENCES `users` (`id`),
  ADD CONSTRAINT `general_hr_warnings_types_ibfk_3` FOREIGN KEY (`last_update_by`) REFERENCES `users` (`id`);

--
-- Constraints for table `general_hs_certificate_type`
--
ALTER TABLE `general_hs_certificate_type`
  ADD CONSTRAINT `general_hs_certificate_type_ibfk_1` FOREIGN KEY (`deleted_by`) REFERENCES `users` (`id`),
  ADD CONSTRAINT `general_hs_certificate_type_ibfk_2` FOREIGN KEY (`Created_by`) REFERENCES `users` (`id`),
  ADD CONSTRAINT `general_hs_certificate_type_ibfk_3` FOREIGN KEY (`last_update_by`) REFERENCES `users` (`id`);

--
-- Constraints for table `general_legalforms`
--
ALTER TABLE `general_legalforms`
  ADD CONSTRAINT `FK_general_legalforms_users` FOREIGN KEY (`deleted_by`) REFERENCES `users` (`id`),
  ADD CONSTRAINT `FK_general_legalforms_users_2` FOREIGN KEY (`Created_by`) REFERENCES `users` (`id`),
  ADD CONSTRAINT `FK_general_legalforms_users_3` FOREIGN KEY (`last_update_by`) REFERENCES `users` (`id`);

--
-- Constraints for table `general_marital_status`
--
ALTER TABLE `general_marital_status`
  ADD CONSTRAINT `general_marital_status_ibfk_1` FOREIGN KEY (`deleted_by`) REFERENCES `users` (`id`),
  ADD CONSTRAINT `general_marital_status_ibfk_2` FOREIGN KEY (`Created_by`) REFERENCES `users` (`id`),
  ADD CONSTRAINT `general_marital_status_ibfk_3` FOREIGN KEY (`last_update_by`) REFERENCES `users` (`id`);

--
-- Constraints for table `general_religions`
--
ALTER TABLE `general_religions`
  ADD CONSTRAINT `general_religions_ibfk_1` FOREIGN KEY (`deleted_by`) REFERENCES `users` (`id`),
  ADD CONSTRAINT `general_religions_ibfk_2` FOREIGN KEY (`Created_by`) REFERENCES `users` (`id`),
  ADD CONSTRAINT `general_religions_ibfk_3` FOREIGN KEY (`last_update_by`) REFERENCES `users` (`id`);

--
-- Constraints for table `general_stores_categories`
--
ALTER TABLE `general_stores_categories`
  ADD CONSTRAINT `FK_general_stores_categories_general_stores_categories` FOREIGN KEY (`parent_id`) REFERENCES `general_stores_categories` (`id`),
  ADD CONSTRAINT `general_stores_categories_ibfk_1` FOREIGN KEY (`deleted_by`) REFERENCES `users` (`id`),
  ADD CONSTRAINT `general_stores_categories_ibfk_2` FOREIGN KEY (`Created_by`) REFERENCES `users` (`id`),
  ADD CONSTRAINT `general_stores_categories_ibfk_3` FOREIGN KEY (`last_update_by`) REFERENCES `users` (`id`);

--
-- Constraints for table `general_stores_stores`
--
ALTER TABLE `general_stores_stores`
  ADD CONSTRAINT `FK_general_stores_stores_general_generally` FOREIGN KEY (`parent_id`) REFERENCES `general_generally` (`id`),
  ADD CONSTRAINT `general_stores_stores_ibfk_1` FOREIGN KEY (`deleted_by`) REFERENCES `users` (`id`),
  ADD CONSTRAINT `general_stores_stores_ibfk_2` FOREIGN KEY (`Created_by`) REFERENCES `users` (`id`),
  ADD CONSTRAINT `general_stores_stores_ibfk_3` FOREIGN KEY (`last_update_by`) REFERENCES `users` (`id`);

--
-- Constraints for table `general_stores_units`
--
ALTER TABLE `general_stores_units`
  ADD CONSTRAINT `general_stores_units_ibfk_1` FOREIGN KEY (`deleted_by`) REFERENCES `users` (`id`),
  ADD CONSTRAINT `general_stores_units_ibfk_2` FOREIGN KEY (`Created_by`) REFERENCES `users` (`id`),
  ADD CONSTRAINT `general_stores_units_ibfk_3` FOREIGN KEY (`last_update_by`) REFERENCES `users` (`id`);

--
-- Constraints for table `general_student_parent_relation`
--
ALTER TABLE `general_student_parent_relation`
  ADD CONSTRAINT `general_student_parent_relation_ibfk_1` FOREIGN KEY (`deleted_by`) REFERENCES `users` (`id`),
  ADD CONSTRAINT `general_student_parent_relation_ibfk_2` FOREIGN KEY (`Created_by`) REFERENCES `users` (`id`),
  ADD CONSTRAINT `general_student_parent_relation_ibfk_3` FOREIGN KEY (`last_update_by`) REFERENCES `users` (`id`);

--
-- Constraints for table `hr_allowances_relations`
--
ALTER TABLE `hr_allowances_relations`
  ADD CONSTRAINT `FK_hr_allowances_employee_hr_employment_applications` FOREIGN KEY (`employee`) REFERENCES `hr_employment_applications` (`id`),
  ADD CONSTRAINT `hr_allowances_relations_ibfk_1` FOREIGN KEY (`Created_by`) REFERENCES `users` (`id`),
  ADD CONSTRAINT `hr_allowances_relations_ibfk_2` FOREIGN KEY (`last_update_by`) REFERENCES `users` (`id`),
  ADD CONSTRAINT `hr_allowances_relations_ibfk_3` FOREIGN KEY (`deleted_by`) REFERENCES `users` (`id`);

--
-- Constraints for table `hr_allowances_types`
--
ALTER TABLE `hr_allowances_types`
  ADD CONSTRAINT `hr_allowances_types_ibfk_3` FOREIGN KEY (`Created_by`) REFERENCES `users` (`id`),
  ADD CONSTRAINT `hr_allowances_types_ibfk_4` FOREIGN KEY (`last_update_by`) REFERENCES `users` (`id`),
  ADD CONSTRAINT `hr_allowances_types_ibfk_5` FOREIGN KEY (`deleted_by`) REFERENCES `users` (`id`);

--
-- Constraints for table `hr_attendance`
--
ALTER TABLE `hr_attendance`
  ADD CONSTRAINT `FK_hr_attendance_hr_employment_applications` FOREIGN KEY (`employee`) REFERENCES `hr_employment_applications` (`id`),
  ADD CONSTRAINT `FK_hr_attendance_users` FOREIGN KEY (`reviewed_by`) REFERENCES `users` (`id`),
  ADD CONSTRAINT `hr_attendance_ibfk_1` FOREIGN KEY (`Created_by`) REFERENCES `users` (`id`),
  ADD CONSTRAINT `hr_attendance_ibfk_2` FOREIGN KEY (`last_update_by`) REFERENCES `users` (`id`),
  ADD CONSTRAINT `hr_attendance_ibfk_3` FOREIGN KEY (`deleted_by`) REFERENCES `users` (`id`);

--
-- Constraints for table `hr_deductions_relations`
--
ALTER TABLE `hr_deductions_relations`
  ADD CONSTRAINT `hr_deductions_relations_ibfk_1` FOREIGN KEY (`type`) REFERENCES `hr_deductions_types` (`id`),
  ADD CONSTRAINT `hr_deductions_relations_ibfk_2` FOREIGN KEY (`employee`) REFERENCES `hr_employment_applications` (`id`),
  ADD CONSTRAINT `hr_deductions_relations_ibfk_3` FOREIGN KEY (`Created_by`) REFERENCES `users` (`id`),
  ADD CONSTRAINT `hr_deductions_relations_ibfk_4` FOREIGN KEY (`last_update_by`) REFERENCES `users` (`id`),
  ADD CONSTRAINT `hr_deductions_relations_ibfk_5` FOREIGN KEY (`deleted_by`) REFERENCES `users` (`id`);

--
-- Constraints for table `hr_deductions_types`
--
ALTER TABLE `hr_deductions_types`
  ADD CONSTRAINT `hr_deductions_types_ibfk_1` FOREIGN KEY (`Created_by`) REFERENCES `users` (`id`),
  ADD CONSTRAINT `hr_deductions_types_ibfk_2` FOREIGN KEY (`last_update_by`) REFERENCES `users` (`id`),
  ADD CONSTRAINT `hr_deductions_types_ibfk_3` FOREIGN KEY (`deleted_by`) REFERENCES `users` (`id`);

--
-- Constraints for table `hr_employment_applications`
--
ALTER TABLE `hr_employment_applications`
  ADD CONSTRAINT `FK_hr_employment_applications_general_banks` FOREIGN KEY (`bank`) REFERENCES `general_banks` (`id`),
  ADD CONSTRAINT `FK_hr_employment_applications_general_genders` FOREIGN KEY (`gender`) REFERENCES `general_genders` (`id`),
  ADD CONSTRAINT `FK_hr_employment_applications_general_hr_departments` FOREIGN KEY (`department`) REFERENCES `general_hr_departments` (`id`),
  ADD CONSTRAINT `FK_hr_employment_applications_general_hr_employee_types` FOREIGN KEY (`employee_type`) REFERENCES `general_hr_employee_types` (`id`),
  ADD CONSTRAINT `FK_hr_employment_applications_general_hr_positions` FOREIGN KEY (`hr_position`) REFERENCES `general_hr_positions` (`id`),
  ADD CONSTRAINT `FK_hr_employment_applications_general_hr_sections` FOREIGN KEY (`hr_section`) REFERENCES `general_hr_sections` (`id`),
  ADD CONSTRAINT `FK_hr_employment_applications_general_marital_status` FOREIGN KEY (`marital_status`) REFERENCES `general_marital_status` (`id`),
  ADD CONSTRAINT `FK_hr_employment_applications_general_nationalities` FOREIGN KEY (`nationality`) REFERENCES `general_countries` (`id`),
  ADD CONSTRAINT `FK_hr_employment_applications_general_religions` FOREIGN KEY (`religion`) REFERENCES `general_religions` (`id`),
  ADD CONSTRAINT `FK_hr_employment_applications_study_colleges` FOREIGN KEY (`college`) REFERENCES `study_colleges` (`id`),
  ADD CONSTRAINT `FK_hr_employment_applications_users` FOREIGN KEY (`rejected_by`) REFERENCES `users` (`id`),
  ADD CONSTRAINT `FK_hr_employment_applications_users_2` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`),
  ADD CONSTRAINT `hr_employment_applications_ibfk_1` FOREIGN KEY (`deleted_by`) REFERENCES `users` (`id`),
  ADD CONSTRAINT `hr_employment_applications_ibfk_2` FOREIGN KEY (`Created_by`) REFERENCES `users` (`id`),
  ADD CONSTRAINT `hr_employment_applications_ibfk_3` FOREIGN KEY (`last_update_by`) REFERENCES `users` (`id`),
  ADD CONSTRAINT `hr_employment_applications_ibfk_4` FOREIGN KEY (`account_id`) REFERENCES `accounting_accounts` (`id`),
  ADD CONSTRAINT `hr_employment_applications_ibfk_5` FOREIGN KEY (`deputy`) REFERENCES `hr_employment_applications` (`id`),
  ADD CONSTRAINT `hr_employment_applications_ibfk_6` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`),
  ADD CONSTRAINT `users` FOREIGN KEY (`approved_by`) REFERENCES `users` (`id`);

--
-- Constraints for table `hr_employment_applications_certificates`
--
ALTER TABLE `hr_employment_applications_certificates`
  ADD CONSTRAINT `FK_hr_employment_applications_certificates_general_countries` FOREIGN KEY (`country`) REFERENCES `general_countries` (`id`),
  ADD CONSTRAINT `hr_employment_applications_certificates_ibfk_1` FOREIGN KEY (`application_id`) REFERENCES `hr_employment_applications` (`id`),
  ADD CONSTRAINT `hr_employment_applications_certificates_ibfk_2` FOREIGN KEY (`Created_by`) REFERENCES `users` (`id`),
  ADD CONSTRAINT `hr_employment_applications_certificates_ibfk_3` FOREIGN KEY (`last_update_by`) REFERENCES `users` (`id`),
  ADD CONSTRAINT `hr_employment_applications_certificates_ibfk_4` FOREIGN KEY (`deleted_by`) REFERENCES `users` (`id`);

--
-- Constraints for table `hr_employment_applications_experiances`
--
ALTER TABLE `hr_employment_applications_experiances`
  ADD CONSTRAINT `hr_employment_applications_experiances_ibfk_1` FOREIGN KEY (`application_id`) REFERENCES `hr_employment_applications` (`id`),
  ADD CONSTRAINT `hr_employment_applications_experiances_ibfk_2` FOREIGN KEY (`Created_by`) REFERENCES `users` (`id`),
  ADD CONSTRAINT `hr_employment_applications_experiances_ibfk_3` FOREIGN KEY (`last_update_by`) REFERENCES `users` (`id`),
  ADD CONSTRAINT `hr_employment_applications_experiances_ibfk_4` FOREIGN KEY (`deleted_by`) REFERENCES `users` (`id`);

--
-- Constraints for table `hr_employment_applications_qualifications`
--
ALTER TABLE `hr_employment_applications_qualifications`
  ADD CONSTRAINT `FK_hr_employment_applications_qualifications_general_countries` FOREIGN KEY (`country`) REFERENCES `general_countries` (`id`),
  ADD CONSTRAINT `FK_hr_employment_applications_qualifications_hr_empl_app` FOREIGN KEY (`application_id`) REFERENCES `hr_employment_applications` (`id`),
  ADD CONSTRAINT `hr_employment_applications_qualifications_ibfk_10` FOREIGN KEY (`Created_by`) REFERENCES `users` (`id`),
  ADD CONSTRAINT `hr_employment_applications_qualifications_ibfk_11` FOREIGN KEY (`last_update_by`) REFERENCES `users` (`id`),
  ADD CONSTRAINT `hr_employment_applications_qualifications_ibfk_9` FOREIGN KEY (`deleted_by`) REFERENCES `users` (`id`);

--
-- Constraints for table `hr_fines_warnings`
--
ALTER TABLE `hr_fines_warnings`
  ADD CONSTRAINT `FK_hr_fines_warnings_general_hr_fines_types` FOREIGN KEY (`fine_type`) REFERENCES `general_hr_fines_types` (`id`),
  ADD CONSTRAINT `FK_hr_fines_warnings_general_hr_warnings_types` FOREIGN KEY (`warning_type`) REFERENCES `general_hr_warnings_types` (`id`),
  ADD CONSTRAINT `FK_hr_fines_warnings_users` FOREIGN KEY (`approved_by`) REFERENCES `users` (`id`),
  ADD CONSTRAINT `hr_fines_warnings_ibfk_1` FOREIGN KEY (`employee`) REFERENCES `hr_employment_applications` (`id`),
  ADD CONSTRAINT `hr_fines_warnings_ibfk_2` FOREIGN KEY (`Created_by`) REFERENCES `users` (`id`),
  ADD CONSTRAINT `hr_fines_warnings_ibfk_3` FOREIGN KEY (`last_update_by`) REFERENCES `users` (`id`),
  ADD CONSTRAINT `hr_fines_warnings_ibfk_4` FOREIGN KEY (`deleted_by`) REFERENCES `users` (`id`);

--
-- Constraints for table `hr_leaverequest`
--
ALTER TABLE `hr_leaverequest`
  ADD CONSTRAINT `FK_hr_leaverequest_general_hr_leavetypes` FOREIGN KEY (`leave_type`) REFERENCES `general_hr_leavetypes` (`id`),
  ADD CONSTRAINT `hr_leaverequest_ibfk_2` FOREIGN KEY (`Created_by`) REFERENCES `users` (`id`),
  ADD CONSTRAINT `hr_leaverequest_ibfk_3` FOREIGN KEY (`last_update_by`) REFERENCES `users` (`id`),
  ADD CONSTRAINT `hr_leaverequest_ibfk_4` FOREIGN KEY (`deleted_by`) REFERENCES `users` (`id`);

--
-- Constraints for table `hr_rewards`
--
ALTER TABLE `hr_rewards`
  ADD CONSTRAINT `hr_rewards_ibfk_1` FOREIGN KEY (`reward_type`) REFERENCES `general_hr_rewards_types` (`id`),
  ADD CONSTRAINT `hr_rewards_ibfk_3` FOREIGN KEY (`approved_by`) REFERENCES `users` (`id`),
  ADD CONSTRAINT `hr_rewards_ibfk_4` FOREIGN KEY (`employee`) REFERENCES `hr_employment_applications` (`id`),
  ADD CONSTRAINT `hr_rewards_ibfk_5` FOREIGN KEY (`Created_by`) REFERENCES `users` (`id`),
  ADD CONSTRAINT `hr_rewards_ibfk_6` FOREIGN KEY (`last_update_by`) REFERENCES `users` (`id`),
  ADD CONSTRAINT `hr_rewards_ibfk_7` FOREIGN KEY (`deleted_by`) REFERENCES `users` (`id`);

--
-- Constraints for table `imagescenter`
--
ALTER TABLE `imagescenter`
  ADD CONSTRAINT `FK_imagescenter_users` FOREIGN KEY (`Created_by`) REFERENCES `users` (`id`);

--
-- Constraints for table `layers`
--
ALTER TABLE `layers`
  ADD CONSTRAINT `FK_layers_slides` FOREIGN KEY (`slide_id`) REFERENCES `slides` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `FK_layers_users` FOREIGN KEY (`Created_by`) REFERENCES `users` (`id`),
  ADD CONSTRAINT `FK_layers_users_2` FOREIGN KEY (`last_update_by`) REFERENCES `users` (`id`);

--
-- Constraints for table `letters`
--
ALTER TABLE `letters`
  ADD CONSTRAINT `letters_ibfk_1` FOREIGN KEY (`deleted_by`) REFERENCES `users` (`id`),
  ADD CONSTRAINT `letters_ibfk_2` FOREIGN KEY (`Created_by`) REFERENCES `users` (`id`),
  ADD CONSTRAINT `letters_ibfk_3` FOREIGN KEY (`last_update_by`) REFERENCES `users` (`id`);

--
-- Constraints for table `letters_applications`
--
ALTER TABLE `letters_applications`
  ADD CONSTRAINT `letters_applications_ibfk_1` FOREIGN KEY (`letter`) REFERENCES `letters` (`id`),
  ADD CONSTRAINT `letters_applications_ibfk_2` FOREIGN KEY (`deleted_by`) REFERENCES `users` (`id`),
  ADD CONSTRAINT `letters_applications_ibfk_3` FOREIGN KEY (`Created_by`) REFERENCES `users` (`id`),
  ADD CONSTRAINT `letters_applications_ibfk_4` FOREIGN KEY (`last_update_by`) REFERENCES `users` (`id`);

--
-- Constraints for table `letters_applications_approvals`
--
ALTER TABLE `letters_applications_approvals`
  ADD CONSTRAINT `FK_letters_applications_approvals_users` FOREIGN KEY (`approved_by`) REFERENCES `users` (`id`),
  ADD CONSTRAINT `FK_letters_applications_approvals_users_2` FOREIGN KEY (`rejected_by`) REFERENCES `users` (`id`),
  ADD CONSTRAINT `letters_applications_approvals_ibfk_1` FOREIGN KEY (`department`) REFERENCES `general_hr_departments` (`id`),
  ADD CONSTRAINT `letters_applications_approvals_ibfk_2` FOREIGN KEY (`application_id`) REFERENCES `letters_applications` (`id`),
  ADD CONSTRAINT `letters_applications_approvals_ibfk_3` FOREIGN KEY (`deleted_by`) REFERENCES `users` (`id`),
  ADD CONSTRAINT `letters_applications_approvals_ibfk_4` FOREIGN KEY (`Created_by`) REFERENCES `users` (`id`),
  ADD CONSTRAINT `letters_applications_approvals_ibfk_5` FOREIGN KEY (`last_update_by`) REFERENCES `users` (`id`);

--
-- Constraints for table `letters_approvals`
--
ALTER TABLE `letters_approvals`
  ADD CONSTRAINT `FK_letters_approvals_general_hr_departments` FOREIGN KEY (`department`) REFERENCES `general_hr_departments` (`id`),
  ADD CONSTRAINT `FK_letters_approvals_letters` FOREIGN KEY (`letter`) REFERENCES `letters` (`id`),
  ADD CONSTRAINT `letters_approvals_ibfk_1` FOREIGN KEY (`deleted_by`) REFERENCES `users` (`id`),
  ADD CONSTRAINT `letters_approvals_ibfk_2` FOREIGN KEY (`Created_by`) REFERENCES `users` (`id`),
  ADD CONSTRAINT `letters_approvals_ibfk_3` FOREIGN KEY (`last_update_by`) REFERENCES `users` (`id`);

--
-- Constraints for table `letters_dropdowns`
--
ALTER TABLE `letters_dropdowns`
  ADD CONSTRAINT `letters_dropdowns_ibfk_1` FOREIGN KEY (`deleted_by`) REFERENCES `users` (`id`),
  ADD CONSTRAINT `letters_dropdowns_ibfk_2` FOREIGN KEY (`Created_by`) REFERENCES `users` (`id`),
  ADD CONSTRAINT `letters_dropdowns_ibfk_3` FOREIGN KEY (`last_update_by`) REFERENCES `users` (`id`);

--
-- Constraints for table `letters_dropdowns_options`
--
ALTER TABLE `letters_dropdowns_options`
  ADD CONSTRAINT `FK_letters_dropdowns_options_letters_dropdowns` FOREIGN KEY (`dropdown`) REFERENCES `letters_dropdowns` (`id`),
  ADD CONSTRAINT `letters_dropdowns_options_ibfk_1` FOREIGN KEY (`deleted_by`) REFERENCES `users` (`id`),
  ADD CONSTRAINT `letters_dropdowns_options_ibfk_2` FOREIGN KEY (`Created_by`) REFERENCES `users` (`id`),
  ADD CONSTRAINT `letters_dropdowns_options_ibfk_3` FOREIGN KEY (`last_update_by`) REFERENCES `users` (`id`);

--
-- Constraints for table `letters_fields`
--
ALTER TABLE `letters_fields`
  ADD CONSTRAINT `FK_letters_fields_letters` FOREIGN KEY (`letter`) REFERENCES `letters` (`id`),
  ADD CONSTRAINT `FK_letters_fields_letters_dropdowns` FOREIGN KEY (`dropdown`) REFERENCES `letters_dropdowns` (`id`),
  ADD CONSTRAINT `FK_letters_fields_letters_dropdowns_2` FOREIGN KEY (`checkbox`) REFERENCES `letters_dropdowns` (`id`),
  ADD CONSTRAINT `letters_fields_ibfk_1` FOREIGN KEY (`deleted_by`) REFERENCES `users` (`id`),
  ADD CONSTRAINT `letters_fields_ibfk_2` FOREIGN KEY (`Created_by`) REFERENCES `users` (`id`),
  ADD CONSTRAINT `letters_fields_ibfk_3` FOREIGN KEY (`last_update_by`) REFERENCES `users` (`id`);

--
-- Constraints for table `library_main_cats`
--
ALTER TABLE `library_main_cats`
  ADD CONSTRAINT `library_main_cats_ibfk_3` FOREIGN KEY (`deleted_by`) REFERENCES `users` (`id`),
  ADD CONSTRAINT `library_main_cats_ibfk_4` FOREIGN KEY (`Created_by`) REFERENCES `users` (`id`),
  ADD CONSTRAINT `library_main_cats_ibfk_5` FOREIGN KEY (`last_update_by`) REFERENCES `users` (`id`);

--
-- Constraints for table `library_manager`
--
ALTER TABLE `library_manager`
  ADD CONSTRAINT `FK6` FOREIGN KEY (`type`) REFERENCES `library_main_cats` (`id`),
  ADD CONSTRAINT `library_manager_ibfk_4` FOREIGN KEY (`Created_by`) REFERENCES `users` (`id`),
  ADD CONSTRAINT `library_manager_ibfk_5` FOREIGN KEY (`last_update_by`) REFERENCES `users` (`id`),
  ADD CONSTRAINT `library_manager_ibfk_6` FOREIGN KEY (`deleted_by`) REFERENCES `users` (`id`);

--
-- Constraints for table `permissions_groups`
--
ALTER TABLE `permissions_groups`
  ADD CONSTRAINT `permissions_groups_ibfk_4` FOREIGN KEY (`Created_by`) REFERENCES `users` (`id`),
  ADD CONSTRAINT `permissions_groups_ibfk_5` FOREIGN KEY (`last_update_by`) REFERENCES `users` (`id`),
  ADD CONSTRAINT `permissions_groups_ibfk_6` FOREIGN KEY (`deleted_by`) REFERENCES `users` (`id`);

--
-- Constraints for table `permissions_groups_roles_relations`
--
ALTER TABLE `permissions_groups_roles_relations`
  ADD CONSTRAINT `FK_permissions_groups_roles_relations_permissions_groups` FOREIGN KEY (`groub`) REFERENCES `permissions_groups` (`id`),
  ADD CONSTRAINT `FK_permissions_groups_roles_relations_roles` FOREIGN KEY (`role`) REFERENCES `roles` (`id`),
  ADD CONSTRAINT `permissions_groups_roles_relations_ibfk_1` FOREIGN KEY (`Created_by`) REFERENCES `users` (`id`),
  ADD CONSTRAINT `permissions_groups_roles_relations_ibfk_2` FOREIGN KEY (`last_update_by`) REFERENCES `users` (`id`),
  ADD CONSTRAINT `permissions_groups_roles_relations_ibfk_3` FOREIGN KEY (`deleted_by`) REFERENCES `users` (`id`);

--
-- Constraints for table `permissions_groups_users_relations`
--
ALTER TABLE `permissions_groups_users_relations`
  ADD CONSTRAINT `permissions_groups_users_relations_ibfk_1` FOREIGN KEY (`groub`) REFERENCES `permissions_groups` (`id`),
  ADD CONSTRAINT `permissions_groups_users_relations_ibfk_2` FOREIGN KEY (`user`) REFERENCES `users` (`id`),
  ADD CONSTRAINT `permissions_groups_users_relations_ibfk_3` FOREIGN KEY (`Created_by`) REFERENCES `users` (`id`),
  ADD CONSTRAINT `permissions_groups_users_relations_ibfk_4` FOREIGN KEY (`last_update_by`) REFERENCES `users` (`id`),
  ADD CONSTRAINT `permissions_groups_users_relations_ibfk_5` FOREIGN KEY (`deleted_by`) REFERENCES `users` (`id`);

--
-- Constraints for table `permission_sections`
--
ALTER TABLE `permission_sections`
  ADD CONSTRAINT `permission_sections_ibfk_1` FOREIGN KEY (`parent`) REFERENCES `permission_sections` (`id`),
  ADD CONSTRAINT `permission_sections_ibfk_2` FOREIGN KEY (`deleted_by`) REFERENCES `users` (`id`),
  ADD CONSTRAINT `permission_sections_ibfk_3` FOREIGN KEY (`Created_by`) REFERENCES `users` (`id`),
  ADD CONSTRAINT `permission_sections_ibfk_4` FOREIGN KEY (`last_update_by`) REFERENCES `users` (`id`);

--
-- Constraints for table `relations`
--
ALTER TABLE `relations`
  ADD CONSTRAINT `FK_relations_tags` FOREIGN KEY (`tag`) REFERENCES `tags` (`id`),
  ADD CONSTRAINT `FK_relations_users` FOREIGN KEY (`Created_by`) REFERENCES `users` (`id`);

--
-- Constraints for table `roles`
--
ALTER TABLE `roles`
  ADD CONSTRAINT `FK_roles_permission_sections` FOREIGN KEY (`section`) REFERENCES `permission_sections` (`id`);

--
-- Constraints for table `roles_users`
--
ALTER TABLE `roles_users`
  ADD CONSTRAINT `roles_users_ibfk_1` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `roles_users_ibfk_2` FOREIGN KEY (`role_id`) REFERENCES `roles` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `slides`
--
ALTER TABLE `slides`
  ADD CONSTRAINT `FK_slides_users` FOREIGN KEY (`Created_by`) REFERENCES `users` (`id`),
  ADD CONSTRAINT `FK_slides_users_2` FOREIGN KEY (`last_update_by`) REFERENCES `users` (`id`);

--
-- Constraints for table `speeches`
--
ALTER TABLE `speeches`
  ADD CONSTRAINT `speeches_ibfk_1` FOREIGN KEY (`Created_by`) REFERENCES `users` (`id`),
  ADD CONSTRAINT `speeches_ibfk_2` FOREIGN KEY (`last_update_by`) REFERENCES `users` (`id`);

--
-- Constraints for table `stores_goods_delivery_voucher`
--
ALTER TABLE `stores_goods_delivery_voucher`
  ADD CONSTRAINT `FK_stores_goods_delivery_voucher_hr_employment_applications` FOREIGN KEY (`employee`) REFERENCES `hr_employment_applications` (`id`),
  ADD CONSTRAINT `stores_goods_delivery_voucher_ibfk_1` FOREIGN KEY (`customer`) REFERENCES `accounting_accounts` (`id`),
  ADD CONSTRAINT `stores_goods_delivery_voucher_ibfk_2` FOREIGN KEY (`store`) REFERENCES `general_stores_stores` (`id`),
  ADD CONSTRAINT `stores_goods_delivery_voucher_ibfk_3` FOREIGN KEY (`Created_by`) REFERENCES `users` (`id`),
  ADD CONSTRAINT `stores_goods_delivery_voucher_ibfk_4` FOREIGN KEY (`last_update_by`) REFERENCES `users` (`id`),
  ADD CONSTRAINT `stores_goods_delivery_voucher_ibfk_5` FOREIGN KEY (`deleted_by`) REFERENCES `users` (`id`);

--
-- Constraints for table `stores_goods_delivery_voucher_items`
--
ALTER TABLE `stores_goods_delivery_voucher_items`
  ADD CONSTRAINT `stores_goods_delivery_voucher_items_ibfk_1` FOREIGN KEY (`voucher_id`) REFERENCES `stores_goods_delivery_voucher` (`id`),
  ADD CONSTRAINT `stores_goods_delivery_voucher_items_ibfk_2` FOREIGN KEY (`item`) REFERENCES `stores_inventory` (`id`),
  ADD CONSTRAINT `stores_goods_delivery_voucher_items_ibfk_3` FOREIGN KEY (`Created_by`) REFERENCES `users` (`id`),
  ADD CONSTRAINT `stores_goods_delivery_voucher_items_ibfk_4` FOREIGN KEY (`last_update_by`) REFERENCES `users` (`id`),
  ADD CONSTRAINT `stores_goods_delivery_voucher_items_ibfk_5` FOREIGN KEY (`deleted_by`) REFERENCES `users` (`id`);

--
-- Constraints for table `stores_goods_elimination_voucher`
--
ALTER TABLE `stores_goods_elimination_voucher`
  ADD CONSTRAINT `stores_goods_elimination_voucher_ibfk_3` FOREIGN KEY (`Created_by`) REFERENCES `users` (`id`),
  ADD CONSTRAINT `stores_goods_elimination_voucher_ibfk_4` FOREIGN KEY (`last_update_by`) REFERENCES `users` (`id`),
  ADD CONSTRAINT `stores_goods_elimination_voucher_ibfk_5` FOREIGN KEY (`deleted_by`) REFERENCES `users` (`id`);

--
-- Constraints for table `stores_goods_elimination_voucher_items`
--
ALTER TABLE `stores_goods_elimination_voucher_items`
  ADD CONSTRAINT `stores_goods_elimination_voucher_items_ibfk_1` FOREIGN KEY (`voucher_id`) REFERENCES `stores_goods_elimination_voucher` (`id`),
  ADD CONSTRAINT `stores_goods_elimination_voucher_items_ibfk_2` FOREIGN KEY (`item`) REFERENCES `stores_inventory` (`id`),
  ADD CONSTRAINT `stores_goods_elimination_voucher_items_ibfk_3` FOREIGN KEY (`Created_by`) REFERENCES `users` (`id`),
  ADD CONSTRAINT `stores_goods_elimination_voucher_items_ibfk_4` FOREIGN KEY (`last_update_by`) REFERENCES `users` (`id`),
  ADD CONSTRAINT `stores_goods_elimination_voucher_items_ibfk_5` FOREIGN KEY (`deleted_by`) REFERENCES `users` (`id`);

--
-- Constraints for table `stores_goods_receipts_voucher`
--
ALTER TABLE `stores_goods_receipts_voucher`
  ADD CONSTRAINT `FK_stores_goods_receipts_voucher_accounting_accounts` FOREIGN KEY (`supplier`) REFERENCES `accounting_accounts` (`id`),
  ADD CONSTRAINT `FK_stores_goods_receipts_voucher_general_stores_stores` FOREIGN KEY (`store`) REFERENCES `general_stores_stores` (`id`),
  ADD CONSTRAINT `stores_goods_receipts_voucher_ibfk_1` FOREIGN KEY (`Created_by`) REFERENCES `users` (`id`),
  ADD CONSTRAINT `stores_goods_receipts_voucher_ibfk_2` FOREIGN KEY (`last_update_by`) REFERENCES `users` (`id`),
  ADD CONSTRAINT `stores_goods_receipts_voucher_ibfk_3` FOREIGN KEY (`deleted_by`) REFERENCES `users` (`id`),
  ADD CONSTRAINT `stores_goods_receipts_voucher_ibfk_4` FOREIGN KEY (`employee`) REFERENCES `hr_employment_applications` (`id`);

--
-- Constraints for table `stores_goods_receipts_voucher_items`
--
ALTER TABLE `stores_goods_receipts_voucher_items`
  ADD CONSTRAINT `FK_goods_receipts_voucher_items_goods_receipts_voucher` FOREIGN KEY (`voucher_id`) REFERENCES `stores_goods_receipts_voucher` (`id`),
  ADD CONSTRAINT `FK_stores_goods_receipts_voucher_items_stores_inventory` FOREIGN KEY (`item`) REFERENCES `stores_inventory` (`id`),
  ADD CONSTRAINT `stores_goods_receipts_voucher_items_ibfk_1` FOREIGN KEY (`Created_by`) REFERENCES `users` (`id`),
  ADD CONSTRAINT `stores_goods_receipts_voucher_items_ibfk_2` FOREIGN KEY (`last_update_by`) REFERENCES `users` (`id`),
  ADD CONSTRAINT `stores_goods_receipts_voucher_items_ibfk_3` FOREIGN KEY (`deleted_by`) REFERENCES `users` (`id`);

--
-- Constraints for table `stores_goods_transfare_voucher`
--
ALTER TABLE `stores_goods_transfare_voucher`
  ADD CONSTRAINT `FK_stores_goods_transfare_voucher_general_stores_stores` FOREIGN KEY (`from_store`) REFERENCES `general_stores_stores` (`id`),
  ADD CONSTRAINT `FK_stores_goods_transfare_voucher_general_stores_stores_2` FOREIGN KEY (`to_store`) REFERENCES `general_stores_stores` (`id`),
  ADD CONSTRAINT `stores_goods_transfare_voucher_ibfk_4` FOREIGN KEY (`Created_by`) REFERENCES `users` (`id`),
  ADD CONSTRAINT `stores_goods_transfare_voucher_ibfk_5` FOREIGN KEY (`last_update_by`) REFERENCES `users` (`id`),
  ADD CONSTRAINT `stores_goods_transfare_voucher_ibfk_6` FOREIGN KEY (`deleted_by`) REFERENCES `users` (`id`);

--
-- Constraints for table `stores_goods_transfare_voucher_items`
--
ALTER TABLE `stores_goods_transfare_voucher_items`
  ADD CONSTRAINT `FK_stores_goods_transfare_voucher_items_stores_inventory` FOREIGN KEY (`new_item`) REFERENCES `stores_inventory` (`id`),
  ADD CONSTRAINT `stores_goods_transfare_voucher_items_ibfk_1` FOREIGN KEY (`voucher_id`) REFERENCES `stores_goods_transfare_voucher` (`id`),
  ADD CONSTRAINT `stores_goods_transfare_voucher_items_ibfk_2` FOREIGN KEY (`item`) REFERENCES `stores_inventory` (`id`),
  ADD CONSTRAINT `stores_goods_transfare_voucher_items_ibfk_3` FOREIGN KEY (`Created_by`) REFERENCES `users` (`id`),
  ADD CONSTRAINT `stores_goods_transfare_voucher_items_ibfk_4` FOREIGN KEY (`last_update_by`) REFERENCES `users` (`id`),
  ADD CONSTRAINT `stores_goods_transfare_voucher_items_ibfk_5` FOREIGN KEY (`deleted_by`) REFERENCES `users` (`id`);

--
-- Constraints for table `stores_inventory`
--
ALTER TABLE `stores_inventory`
  ADD CONSTRAINT `FK_stores_inventory_general_stores_categories` FOREIGN KEY (`category`) REFERENCES `general_stores_categories` (`id`),
  ADD CONSTRAINT `FK_stores_inventory_general_stores_stores` FOREIGN KEY (`store`) REFERENCES `general_stores_stores` (`id`),
  ADD CONSTRAINT `FK_stores_inventory_general_stores_units` FOREIGN KEY (`unit`) REFERENCES `general_stores_units` (`id`),
  ADD CONSTRAINT `stores_inventory_ibfk_5` FOREIGN KEY (`Created_by`) REFERENCES `users` (`id`),
  ADD CONSTRAINT `stores_inventory_ibfk_6` FOREIGN KEY (`last_update_by`) REFERENCES `users` (`id`),
  ADD CONSTRAINT `stores_inventory_ibfk_7` FOREIGN KEY (`deleted_by`) REFERENCES `users` (`id`);

--
-- Constraints for table `stores_purchase`
--
ALTER TABLE `stores_purchase`
  ADD CONSTRAINT `FK_stores_ipo_users` FOREIGN KEY (`Created_by`) REFERENCES `users` (`id`),
  ADD CONSTRAINT `FK_stores_ipo_users_2` FOREIGN KEY (`last_update_by`) REFERENCES `users` (`id`),
  ADD CONSTRAINT `FK_stores_ipo_users_3` FOREIGN KEY (`deleted_by`) REFERENCES `users` (`id`);

--
-- Constraints for table `stores_purchase_elements`
--
ALTER TABLE `stores_purchase_elements`
  ADD CONSTRAINT `FK_stores_ipo_elements_stores_purchase` FOREIGN KEY (`purchase_number`) REFERENCES `stores_purchase` (`id`),
  ADD CONSTRAINT `FK_stores_ipo_elements_users` FOREIGN KEY (`Created_by`) REFERENCES `users` (`id`),
  ADD CONSTRAINT `FK_stores_ipo_elements_users_2` FOREIGN KEY (`last_update_by`) REFERENCES `users` (`id`),
  ADD CONSTRAINT `FK_stores_ipo_elements_users_3` FOREIGN KEY (`deleted_by`) REFERENCES `users` (`id`),
  ADD CONSTRAINT `stores_purchase_elements_ibfk_1` FOREIGN KEY (`item`) REFERENCES `stores_inventory` (`id`);

--
-- Constraints for table `stores_purchase_elements_returned`
--
ALTER TABLE `stores_purchase_elements_returned`
  ADD CONSTRAINT `FK_stores_purchase_elements_returned_stores_purchase_elements` FOREIGN KEY (`element`) REFERENCES `stores_purchase_elements` (`id`),
  ADD CONSTRAINT `FK_stores_purchase_elements_returned_users` FOREIGN KEY (`Created_by`) REFERENCES `users` (`id`),
  ADD CONSTRAINT `FK_stores_purchase_elements_returned_users_2` FOREIGN KEY (`last_update_by`) REFERENCES `users` (`id`),
  ADD CONSTRAINT `FK_stores_purchase_elements_returned_users_3` FOREIGN KEY (`deleted_by`) REFERENCES `users` (`id`);

--
-- Constraints for table `stores_sales_elements_returned`
--
ALTER TABLE `stores_sales_elements_returned`
  ADD CONSTRAINT `stores_sales_elements_returned_ibfk_1` FOREIGN KEY (`element`) REFERENCES `stores_purchase_elements` (`id`),
  ADD CONSTRAINT `stores_sales_elements_returned_ibfk_2` FOREIGN KEY (`Created_by`) REFERENCES `users` (`id`),
  ADD CONSTRAINT `stores_sales_elements_returned_ibfk_3` FOREIGN KEY (`last_update_by`) REFERENCES `users` (`id`),
  ADD CONSTRAINT `stores_sales_elements_returned_ibfk_4` FOREIGN KEY (`deleted_by`) REFERENCES `users` (`id`);

--
-- Constraints for table `stores_sales_invoice`
--
ALTER TABLE `stores_sales_invoice`
  ADD CONSTRAINT `FK_stores_sales_invoice_students_applications` FOREIGN KEY (`student`) REFERENCES `students_applications` (`id`),
  ADD CONSTRAINT `stores_sales_invoice_ibfk_1` FOREIGN KEY (`employee`) REFERENCES `hr_employment_applications` (`id`),
  ADD CONSTRAINT `stores_sales_invoice_ibfk_2` FOREIGN KEY (`customer`) REFERENCES `accounting_accounts` (`id`),
  ADD CONSTRAINT `stores_sales_invoice_ibfk_3` FOREIGN KEY (`store`) REFERENCES `general_stores_stores` (`id`),
  ADD CONSTRAINT `stores_sales_invoice_ibfk_4` FOREIGN KEY (`Created_by`) REFERENCES `users` (`id`),
  ADD CONSTRAINT `stores_sales_invoice_ibfk_5` FOREIGN KEY (`last_update_by`) REFERENCES `users` (`id`),
  ADD CONSTRAINT `stores_sales_invoice_ibfk_6` FOREIGN KEY (`deleted_by`) REFERENCES `users` (`id`);

--
-- Constraints for table `stores_sales_invoice_items`
--
ALTER TABLE `stores_sales_invoice_items`
  ADD CONSTRAINT `stores_sales_invoice_items_ibfk_1` FOREIGN KEY (`voucher_id`) REFERENCES `stores_sales_invoice` (`id`),
  ADD CONSTRAINT `stores_sales_invoice_items_ibfk_2` FOREIGN KEY (`item`) REFERENCES `stores_inventory` (`id`),
  ADD CONSTRAINT `stores_sales_invoice_items_ibfk_3` FOREIGN KEY (`Created_by`) REFERENCES `users` (`id`),
  ADD CONSTRAINT `stores_sales_invoice_items_ibfk_4` FOREIGN KEY (`last_update_by`) REFERENCES `users` (`id`),
  ADD CONSTRAINT `stores_sales_invoice_items_ibfk_5` FOREIGN KEY (`deleted_by`) REFERENCES `users` (`id`);

--
-- Constraints for table `stores_stocktaking_process`
--
ALTER TABLE `stores_stocktaking_process`
  ADD CONSTRAINT `FK_stores_stocktaking_process_general_stores_categories` FOREIGN KEY (`categorie_id`) REFERENCES `general_stores_categories` (`id`),
  ADD CONSTRAINT `FK_stores_stocktaking_process_general_stores_stores` FOREIGN KEY (`store_id`) REFERENCES `general_stores_stores` (`id`),
  ADD CONSTRAINT `FK_stores_stocktaking_process_users` FOREIGN KEY (`stocktake_by`) REFERENCES `users` (`id`),
  ADD CONSTRAINT `stores_stocktaking_process_ibfk_1` FOREIGN KEY (`Created_by`) REFERENCES `users` (`id`),
  ADD CONSTRAINT `stores_stocktaking_process_ibfk_2` FOREIGN KEY (`last_update_by`) REFERENCES `users` (`id`),
  ADD CONSTRAINT `stores_stocktaking_process_ibfk_3` FOREIGN KEY (`deleted_by`) REFERENCES `users` (`id`);

--
-- Constraints for table `stores_stocktaking_process_elements`
--
ALTER TABLE `stores_stocktaking_process_elements`
  ADD CONSTRAINT `FK_stores_s_pr_ele_stores_stocktaking_process` FOREIGN KEY (`stocktaking_id`) REFERENCES `stores_stocktaking_process` (`id`),
  ADD CONSTRAINT `FK_stores_stocktaking_process_elements_stores_inventory` FOREIGN KEY (`item`) REFERENCES `stores_inventory` (`id`),
  ADD CONSTRAINT `FK_stores_stocktaking_process_elements_users` FOREIGN KEY (`stocktake_by`) REFERENCES `users` (`id`),
  ADD CONSTRAINT `stores_stocktaking_process_elements_ibfk_3` FOREIGN KEY (`Created_by`) REFERENCES `users` (`id`),
  ADD CONSTRAINT `stores_stocktaking_process_elements_ibfk_4` FOREIGN KEY (`last_update_by`) REFERENCES `users` (`id`),
  ADD CONSTRAINT `stores_stocktaking_process_elements_ibfk_5` FOREIGN KEY (`deleted_by`) REFERENCES `users` (`id`);

--
-- Constraints for table `students_absents`
--
ALTER TABLE `students_absents`
  ADD CONSTRAINT `students_absents_ibfk_1` FOREIGN KEY (`section_id`) REFERENCES `study_sections` (`id`),
  ADD CONSTRAINT `students_absents_ibfk_2` FOREIGN KEY (`last_update_by`) REFERENCES `users` (`id`),
  ADD CONSTRAINT `students_absents_ibfk_3` FOREIGN KEY (`Created_by`) REFERENCES `users` (`id`),
  ADD CONSTRAINT `students_absents_ibfk_4` FOREIGN KEY (`deleted_by`) REFERENCES `users` (`id`),
  ADD CONSTRAINT `students_absents_ibfk_5` FOREIGN KEY (`student_id`) REFERENCES `users` (`id`);

--
-- Constraints for table `students_applications_documents`
--
ALTER TABLE `students_applications_documents`
  ADD CONSTRAINT `FK_students_applications_docs_stu_applications_doc_types` FOREIGN KEY (`document_type`) REFERENCES `students_applications_documents_types` (`id`),
  ADD CONSTRAINT `FK_students_applications_documents_students_applications` FOREIGN KEY (`student_application_id`) REFERENCES `students_applications` (`id`),
  ADD CONSTRAINT `students_applications_documents_ibfk_2` FOREIGN KEY (`deleted_by`) REFERENCES `users` (`id`),
  ADD CONSTRAINT `students_applications_documents_ibfk_3` FOREIGN KEY (`last_update_by`) REFERENCES `users` (`id`),
  ADD CONSTRAINT `students_applications_documents_ibfk_4` FOREIGN KEY (`Created_by`) REFERENCES `users` (`id`);

--
-- Constraints for table `students_applications_steps`
--
ALTER TABLE `students_applications_steps`
  ADD CONSTRAINT `students_applications_steps_ibfk_2` FOREIGN KEY (`student_application_id`) REFERENCES `students_applications` (`id`),
  ADD CONSTRAINT `students_applications_steps_ibfk_3` FOREIGN KEY (`deleted_by`) REFERENCES `users` (`id`),
  ADD CONSTRAINT `students_applications_steps_ibfk_4` FOREIGN KEY (`last_update_by`) REFERENCES `users` (`id`),
  ADD CONSTRAINT `students_applications_steps_ibfk_5` FOREIGN KEY (`Created_by`) REFERENCES `users` (`id`);

--
-- Constraints for table `students_courses_equations`
--
ALTER TABLE `students_courses_equations`
  ADD CONSTRAINT `FK_students_courses_equations_study_courses` FOREIGN KEY (`course_id`) REFERENCES `study_courses` (`id`),
  ADD CONSTRAINT `FK_students_courses_equations_users` FOREIGN KEY (`student_id`) REFERENCES `users` (`id`),
  ADD CONSTRAINT `students_courses_equations_ibfk_1` FOREIGN KEY (`Created_by`) REFERENCES `users` (`id`),
  ADD CONSTRAINT `students_courses_equations_ibfk_2` FOREIGN KEY (`last_update_by`) REFERENCES `users` (`id`),
  ADD CONSTRAINT `students_courses_equations_ibfk_3` FOREIGN KEY (`deleted_by`) REFERENCES `users` (`id`);

--
-- Constraints for table `students_infractions`
--
ALTER TABLE `students_infractions`
  ADD CONSTRAINT `FK_students_infractions_general_elearning_infractions` FOREIGN KEY (`infraction_type`) REFERENCES `general_elearning_infractions` (`id`),
  ADD CONSTRAINT `students_infractions_ibfk_1` FOREIGN KEY (`section_id`) REFERENCES `study_sections` (`id`),
  ADD CONSTRAINT `students_infractions_ibfk_2` FOREIGN KEY (`last_update_by`) REFERENCES `users` (`id`),
  ADD CONSTRAINT `students_infractions_ibfk_3` FOREIGN KEY (`Created_by`) REFERENCES `users` (`id`),
  ADD CONSTRAINT `students_infractions_ibfk_4` FOREIGN KEY (`deleted_by`) REFERENCES `users` (`id`),
  ADD CONSTRAINT `students_infractions_ibfk_5` FOREIGN KEY (`student_id`) REFERENCES `users` (`id`);

--
-- Constraints for table `students_logs`
--
ALTER TABLE `students_logs`
  ADD CONSTRAINT `FK_students_logs_students_operations` FOREIGN KEY (`operation`) REFERENCES `students_operations` (`id`),
  ADD CONSTRAINT `FK_students_logs_users` FOREIGN KEY (`deleted_by`) REFERENCES `users` (`id`),
  ADD CONSTRAINT `FK_students_logs_users_2` FOREIGN KEY (`last_update_by`) REFERENCES `users` (`id`),
  ADD CONSTRAINT `FK_students_logs_users_3` FOREIGN KEY (`Created_by`) REFERENCES `users` (`id`);

--
-- Constraints for table `students_notes`
--
ALTER TABLE `students_notes`
  ADD CONSTRAINT `students_notes_ibfk_1` FOREIGN KEY (`section_id`) REFERENCES `study_sections` (`id`),
  ADD CONSTRAINT `students_notes_ibfk_2` FOREIGN KEY (`last_update_by`) REFERENCES `users` (`id`),
  ADD CONSTRAINT `students_notes_ibfk_3` FOREIGN KEY (`Created_by`) REFERENCES `users` (`id`),
  ADD CONSTRAINT `students_notes_ibfk_4` FOREIGN KEY (`deleted_by`) REFERENCES `users` (`id`),
  ADD CONSTRAINT `students_notes_ibfk_5` FOREIGN KEY (`student_id`) REFERENCES `users` (`id`);

--
-- Constraints for table `students_participates`
--
ALTER TABLE `students_participates`
  ADD CONSTRAINT `FK_students_participate_study_sections` FOREIGN KEY (`section_id`) REFERENCES `study_sections` (`id`),
  ADD CONSTRAINT `FK_students_participate_users` FOREIGN KEY (`last_update_by`) REFERENCES `users` (`id`),
  ADD CONSTRAINT `FK_students_participate_users_2` FOREIGN KEY (`Created_by`) REFERENCES `users` (`id`),
  ADD CONSTRAINT `FK_students_participate_users_3` FOREIGN KEY (`deleted_by`) REFERENCES `users` (`id`),
  ADD CONSTRAINT `FK_students_participates_general_elearning_participates` FOREIGN KEY (`participate_type`) REFERENCES `general_elearning_participates` (`id`),
  ADD CONSTRAINT `FK_students_participates_users` FOREIGN KEY (`student_id`) REFERENCES `users` (`id`);

--
-- Constraints for table `students_sections`
--
ALTER TABLE `students_sections`
  ADD CONSTRAINT `FK_students_sections_study_sections` FOREIGN KEY (`section`) REFERENCES `study_sections` (`id`),
  ADD CONSTRAINT `FK_students_sections_study_terms` FOREIGN KEY (`term`) REFERENCES `study_terms` (`id`),
  ADD CONSTRAINT `FK_students_sections_users` FOREIGN KEY (`student`) REFERENCES `users` (`id`),
  ADD CONSTRAINT `FK_students_sections_users_2` FOREIGN KEY (`Created_by`) REFERENCES `users` (`id`),
  ADD CONSTRAINT `FK_students_sections_users_3` FOREIGN KEY (`last_update_by`) REFERENCES `users` (`id`),
  ADD CONSTRAINT `FK_students_sections_users_4` FOREIGN KEY (`deleted_by`) REFERENCES `users` (`id`),
  ADD CONSTRAINT `students_sections_ibfk_1` FOREIGN KEY (`rejected_by`) REFERENCES `users` (`id`);

--
-- Constraints for table `students_terms`
--
ALTER TABLE `students_terms`
  ADD CONSTRAINT `FK_students_terms_study_terms` FOREIGN KEY (`term`) REFERENCES `study_terms` (`id`),
  ADD CONSTRAINT `FK_students_terms_users` FOREIGN KEY (`student`) REFERENCES `users` (`id`),
  ADD CONSTRAINT `FK_students_terms_users_2` FOREIGN KEY (`Created_by`) REFERENCES `users` (`id`),
  ADD CONSTRAINT `FK_students_terms_users_3` FOREIGN KEY (`last_update_by`) REFERENCES `users` (`id`),
  ADD CONSTRAINT `FK_students_terms_users_4` FOREIGN KEY (`deleted_by`) REFERENCES `users` (`id`);

--
-- Constraints for table `students_types`
--
ALTER TABLE `students_types`
  ADD CONSTRAINT `FK_students_types_study_types` FOREIGN KEY (`study_type`) REFERENCES `study_types` (`id`),
  ADD CONSTRAINT `FK_students_types_users` FOREIGN KEY (`Created_by`) REFERENCES `users` (`id`),
  ADD CONSTRAINT `FK_students_types_users_2` FOREIGN KEY (`last_update_by`) REFERENCES `users` (`id`),
  ADD CONSTRAINT `FK_students_types_users_3` FOREIGN KEY (`deleted_by`) REFERENCES `users` (`id`);

--
-- Constraints for table `study_academicyears`
--
ALTER TABLE `study_academicyears`
  ADD CONSTRAINT `FK_study_academicyears_users` FOREIGN KEY (`Created_by`) REFERENCES `users` (`id`),
  ADD CONSTRAINT `FK_study_academicyears_users_2` FOREIGN KEY (`last_update_by`) REFERENCES `users` (`id`),
  ADD CONSTRAINT `FK_study_academicyears_users_3` FOREIGN KEY (`deleted_by`) REFERENCES `users` (`id`);

--
-- Constraints for table `study_colleges`
--
ALTER TABLE `study_colleges`
  ADD CONSTRAINT `FK_study_colleges_users` FOREIGN KEY (`Created_by`) REFERENCES `users` (`id`),
  ADD CONSTRAINT `FK_study_colleges_users_2` FOREIGN KEY (`last_update_by`) REFERENCES `users` (`id`),
  ADD CONSTRAINT `FK_study_colleges_users_3` FOREIGN KEY (`deleted_by`) REFERENCES `users` (`id`);

--
-- Constraints for table `study_courses`
--
ALTER TABLE `study_courses`
  ADD CONSTRAINT `FK_study_courses_study_degrees` FOREIGN KEY (`degree`) REFERENCES `study_degrees` (`id`),
  ADD CONSTRAINT `FK_study_courses_study_majors` FOREIGN KEY (`major`) REFERENCES `study_majors` (`id`),
  ADD CONSTRAINT `FK_study_courses_study_programs` FOREIGN KEY (`program`) REFERENCES `study_programs` (`id`),
  ADD CONSTRAINT `FK_study_courses_users` FOREIGN KEY (`Created_by`) REFERENCES `users` (`id`),
  ADD CONSTRAINT `FK_study_courses_users_2` FOREIGN KEY (`last_update_by`) REFERENCES `users` (`id`),
  ADD CONSTRAINT `FK_study_courses_users_3` FOREIGN KEY (`deleted_by`) REFERENCES `users` (`id`);

--
-- Constraints for table `study_courses_prerequisite`
--
ALTER TABLE `study_courses_prerequisite`
  ADD CONSTRAINT `FK_study_courses_prerequisite_study_courses` FOREIGN KEY (`prerequisite_course`) REFERENCES `study_courses` (`id`),
  ADD CONSTRAINT `FK_study_courses_prerequisite_study_courses_2` FOREIGN KEY (`course`) REFERENCES `study_courses` (`id`),
  ADD CONSTRAINT `FK_study_courses_prerequisite_users` FOREIGN KEY (`Created_by`) REFERENCES `users` (`id`);

--
-- Constraints for table `study_degrees`
--
ALTER TABLE `study_degrees`
  ADD CONSTRAINT `FK_study_degrees_users` FOREIGN KEY (`Created_by`) REFERENCES `users` (`id`),
  ADD CONSTRAINT `FK_study_degrees_users_2` FOREIGN KEY (`last_update_by`) REFERENCES `users` (`id`),
  ADD CONSTRAINT `FK_study_degrees_users_3` FOREIGN KEY (`deleted_by`) REFERENCES `users` (`id`);

--
-- Constraints for table `study_departments`
--
ALTER TABLE `study_departments`
  ADD CONSTRAINT `FK_study_departments_study_colleges` FOREIGN KEY (`college`) REFERENCES `study_colleges` (`id`),
  ADD CONSTRAINT `FK_study_departments_users` FOREIGN KEY (`Created_by`) REFERENCES `users` (`id`),
  ADD CONSTRAINT `FK_study_departments_users_2` FOREIGN KEY (`last_update_by`) REFERENCES `users` (`id`),
  ADD CONSTRAINT `FK_study_departments_users_3` FOREIGN KEY (`deleted_by`) REFERENCES `users` (`id`);

--
-- Constraints for table `study_levels`
--
ALTER TABLE `study_levels`
  ADD CONSTRAINT `FK_study_levels_study_degrees` FOREIGN KEY (`degree`) REFERENCES `study_degrees` (`id`),
  ADD CONSTRAINT `FK_study_levels_users` FOREIGN KEY (`Created_by`) REFERENCES `users` (`id`),
  ADD CONSTRAINT `FK_study_levels_users_2` FOREIGN KEY (`last_update_by`) REFERENCES `users` (`id`),
  ADD CONSTRAINT `FK_study_levels_users_3` FOREIGN KEY (`deleted_by`) REFERENCES `users` (`id`);

--
-- Constraints for table `study_levels_courses`
--
ALTER TABLE `study_levels_courses`
  ADD CONSTRAINT `FK_study_levels_courses_study_courses` FOREIGN KEY (`course`) REFERENCES `study_courses` (`id`),
  ADD CONSTRAINT `FK_study_levels_courses_study_levels` FOREIGN KEY (`level`) REFERENCES `study_levels` (`id`),
  ADD CONSTRAINT `FK_study_levels_courses_users` FOREIGN KEY (`Created_by`) REFERENCES `users` (`id`);

--
-- Constraints for table `study_majors`
--
ALTER TABLE `study_majors`
  ADD CONSTRAINT `FK_study_majors_study_colleges` FOREIGN KEY (`college`) REFERENCES `study_colleges` (`id`),
  ADD CONSTRAINT `FK_study_majors_users` FOREIGN KEY (`Created_by`) REFERENCES `users` (`id`),
  ADD CONSTRAINT `FK_study_majors_users_2` FOREIGN KEY (`last_update_by`) REFERENCES `users` (`id`),
  ADD CONSTRAINT `FK_study_majors_users_3` FOREIGN KEY (`deleted_by`) REFERENCES `users` (`id`);

--
-- Constraints for table `study_programs`
--
ALTER TABLE `study_programs`
  ADD CONSTRAINT `FK_study_programs_study_majors` FOREIGN KEY (`major`) REFERENCES `study_majors` (`id`),
  ADD CONSTRAINT `FK_study_programs_users` FOREIGN KEY (`Created_by`) REFERENCES `users` (`id`),
  ADD CONSTRAINT `FK_study_programs_users_2` FOREIGN KEY (`last_update_by`) REFERENCES `users` (`id`),
  ADD CONSTRAINT `FK_study_programs_users_3` FOREIGN KEY (`deleted_by`) REFERENCES `users` (`id`);

--
-- Constraints for table `study_rooms`
--
ALTER TABLE `study_rooms`
  ADD CONSTRAINT `FK_study_rooms_users` FOREIGN KEY (`Created_by`) REFERENCES `users` (`id`),
  ADD CONSTRAINT `FK_study_rooms_users_2` FOREIGN KEY (`last_update_by`) REFERENCES `users` (`id`),
  ADD CONSTRAINT `FK_study_rooms_users_3` FOREIGN KEY (`deleted_by`) REFERENCES `users` (`id`);

--
-- Constraints for table `study_sections`
--
ALTER TABLE `study_sections`
  ADD CONSTRAINT `FK_study_sections_study_courses` FOREIGN KEY (`course`) REFERENCES `study_courses` (`id`),
  ADD CONSTRAINT `FK_study_sections_study_majors` FOREIGN KEY (`major`) REFERENCES `study_majors` (`id`),
  ADD CONSTRAINT `FK_study_sections_study_rooms` FOREIGN KEY (`room`) REFERENCES `study_rooms` (`id`),
  ADD CONSTRAINT `FK_study_sections_study_terms` FOREIGN KEY (`term`) REFERENCES `study_terms` (`id`),
  ADD CONSTRAINT `FK_study_sections_users` FOREIGN KEY (`teacher`) REFERENCES `users` (`id`),
  ADD CONSTRAINT `FK_study_sections_users_2` FOREIGN KEY (`Created_by`) REFERENCES `users` (`id`),
  ADD CONSTRAINT `FK_study_sections_users_3` FOREIGN KEY (`last_update_by`) REFERENCES `users` (`id`),
  ADD CONSTRAINT `FK_study_sections_users_4` FOREIGN KEY (`deleted_by`) REFERENCES `users` (`id`),
  ADD CONSTRAINT `study_sections_ibfk_1` FOREIGN KEY (`gender`) REFERENCES `general_genders` (`id`);

--
-- Constraints for table `study_sections_chapters`
--
ALTER TABLE `study_sections_chapters`
  ADD CONSTRAINT `study_sections_chapters_ibfk_1` FOREIGN KEY (`section_id`) REFERENCES `study_sections` (`id`),
  ADD CONSTRAINT `study_sections_chapters_ibfk_2` FOREIGN KEY (`Created_by`) REFERENCES `users` (`id`),
  ADD CONSTRAINT `study_sections_chapters_ibfk_3` FOREIGN KEY (`last_update_by`) REFERENCES `users` (`id`),
  ADD CONSTRAINT `study_sections_chapters_ibfk_4` FOREIGN KEY (`deleted_by`) REFERENCES `users` (`id`);

--
-- Constraints for table `study_sections_dates`
--
ALTER TABLE `study_sections_dates`
  ADD CONSTRAINT `FK_study_sections_dates_study_sections` FOREIGN KEY (`section`) REFERENCES `study_sections` (`id`),
  ADD CONSTRAINT `FK_study_sections_dates_users` FOREIGN KEY (`Created_by`) REFERENCES `users` (`id`);

--
-- Constraints for table `study_sections_lessons`
--
ALTER TABLE `study_sections_lessons`
  ADD CONSTRAINT `study_sections_lessons_ibfk_1` FOREIGN KEY (`chapter_id`) REFERENCES `study_sections_chapters` (`id`),
  ADD CONSTRAINT `study_sections_lessons_ibfk_2` FOREIGN KEY (`Created_by`) REFERENCES `users` (`id`),
  ADD CONSTRAINT `study_sections_lessons_ibfk_3` FOREIGN KEY (`last_update_by`) REFERENCES `users` (`id`),
  ADD CONSTRAINT `study_sections_lessons_ibfk_4` FOREIGN KEY (`deleted_by`) REFERENCES `users` (`id`);

--
-- Constraints for table `study_terms`
--
ALTER TABLE `study_terms`
  ADD CONSTRAINT `FK_study_terms_study_academicyears` FOREIGN KEY (`academicyear`) REFERENCES `study_academicyears` (`id`),
  ADD CONSTRAINT `FK_study_terms_users` FOREIGN KEY (`Created_by`) REFERENCES `users` (`id`),
  ADD CONSTRAINT `FK_study_terms_users_2` FOREIGN KEY (`last_update_by`) REFERENCES `users` (`id`),
  ADD CONSTRAINT `FK_study_terms_users_3` FOREIGN KEY (`deleted_by`) REFERENCES `users` (`id`);

--
-- Constraints for table `study_terms_degree_hours`
--
ALTER TABLE `study_terms_degree_hours`
  ADD CONSTRAINT `FK_study_terms_degree_hours_study_degrees` FOREIGN KEY (`degree`) REFERENCES `study_degrees` (`id`),
  ADD CONSTRAINT `FK_study_terms_degree_hours_study_terms` FOREIGN KEY (`term`) REFERENCES `study_terms` (`id`),
  ADD CONSTRAINT `study_terms_degree_hours_ibfk_2` FOREIGN KEY (`Created_by`) REFERENCES `users` (`id`),
  ADD CONSTRAINT `study_terms_degree_hours_ibfk_3` FOREIGN KEY (`last_update_by`) REFERENCES `users` (`id`),
  ADD CONSTRAINT `study_terms_degree_hours_ibfk_4` FOREIGN KEY (`deleted_by`) REFERENCES `users` (`id`);

--
-- Constraints for table `study_types`
--
ALTER TABLE `study_types`
  ADD CONSTRAINT `FK_study_types_users` FOREIGN KEY (`Created_by`) REFERENCES `users` (`id`),
  ADD CONSTRAINT `FK_study_types_users_2` FOREIGN KEY (`last_update_by`) REFERENCES `users` (`id`),
  ADD CONSTRAINT `FK_study_types_users_3` FOREIGN KEY (`deleted_by`) REFERENCES `users` (`id`);

--
-- Constraints for table `tags`
--
ALTER TABLE `tags`
  ADD CONSTRAINT `FK_tags_users` FOREIGN KEY (`deleted_by`) REFERENCES `users` (`id`),
  ADD CONSTRAINT `FK_tags_users_2` FOREIGN KEY (`last_update_by`) REFERENCES `users` (`id`),
  ADD CONSTRAINT `FK_tags_users_3` FOREIGN KEY (`Created_by`) REFERENCES `users` (`id`);

--
-- Constraints for table `users`
--
ALTER TABLE `users`
  ADD CONSTRAINT `FK_users_users` FOREIGN KEY (`last_update_by`) REFERENCES `users` (`id`),
  ADD CONSTRAINT `FK_users_users_2` FOREIGN KEY (`Created_by`) REFERENCES `users` (`id`),
  ADD CONSTRAINT `FK_users_users_group` FOREIGN KEY (`user_groub`) REFERENCES `users_group` (`id`);

--
-- Constraints for table `users_files`
--
ALTER TABLE `users_files`
  ADD CONSTRAINT `users_files_ibfk_1` FOREIGN KEY (`last_update_by`) REFERENCES `users` (`id`),
  ADD CONSTRAINT `users_files_ibfk_2` FOREIGN KEY (`Created_by`) REFERENCES `users` (`id`);

--
-- Constraints for table `user_tokens`
--
ALTER TABLE `user_tokens`
  ADD CONSTRAINT `user_tokens_ibfk_1` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE;

