-- Table structure for table `transactions`
--

CREATE TABLE `transactions` (
  `id` bigint UNSIGNED NOT NULL,
  `company_id` bigint UNSIGNED NOT NULL,
  `account_id` bigint UNSIGNED NOT NULL,
  `date` date DEFAULT NULL,
  `description` varchar(400) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `amount` double(16,2) NOT NULL DEFAULT '0.00',
  `transaction_type` bigint UNSIGNED NOT NULL DEFAULT '18',
  `client_id` bigint UNSIGNED DEFAULT NULL,
  `income_expense_category_id` bigint UNSIGNED DEFAULT NULL,
  `status_id` bigint UNSIGNED NOT NULL DEFAULT '9',
  `created_by` bigint UNSIGNED NOT NULL DEFAULT '1',
  `updated_by` bigint UNSIGNED NOT NULL DEFAULT '1',
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `transactions`
--

INSERT INTO `transactions` (`id`, `company_id`, `account_id`, `date`, `description`, `amount`, `transaction_type`, `client_id`, `income_expense_category_id`, `status_id`, `created_by`, `updated_by`, `created_at`, `updated_at`) VALUES
(1, 2, 1, '2022-03-14', 'Income from Upwork', 7142.00, 19, 1, NULL, 8, 1, 1, '2023-04-18 01:08:05', '2023-04-18 01:08:05'),
(2, 2, 1, '2022-01-28', 'Income from Fiverr', 1380.00, 19, 1, NULL, 9, 1, 1, '2023-04-18 01:08:05', '2023-04-18 01:08:05'),
(3, 1, 1, '2021-09-17', 'Income from Freelancer', 4028.00, 19, 1, NULL, 8, 1, 1, '2023-04-18 01:08:05', '2023-04-18 01:08:05'),
(4, 1, 1, '2021-09-27', 'Income from Project', 3988.00, 19, 1, NULL, 8, 1, 1, '2023-04-18 01:08:05', '2023-04-18 01:08:05'),
(5, 2, 1, '2022-10-04', 'Income from Transfer', 7872.00, 19, 1, NULL, 9, 1, 1, '2023-04-18 01:08:05', '2023-04-18 01:08:05'),
(6, 1, 1, '2021-03-24', 'Income from Upwork', 6094.00, 19, 1, NULL, 8, 1, 1, '2023-04-18 01:08:05', '2023-04-18 01:08:05'),
(7, 2, 1, '2021-10-25', 'Income from Fiverr', 9947.00, 19, 1, NULL, 9, 1, 1, '2023-04-18 01:08:05', '2023-04-18 01:08:05'),
(8, 1, 1, '2022-07-25', 'Income from Freelancer', 4555.00, 19, 1, NULL, 8, 1, 1, '2023-04-18 01:08:05', '2023-04-18 01:08:05'),
(9, 2, 1, '2021-06-25', 'Income from Project', 6004.00, 19, 1, NULL, 8, 1, 1, '2023-04-18 01:08:05', '2023-04-18 01:08:05'),
(10, 2, 1, '2021-03-03', 'Income from Transfer', 2407.00, 19, 1, NULL, 9, 1, 1, '2023-04-18 01:08:05', '2023-04-18 01:08:05'),
(11, 2, 1, '2022-08-07', 'Income from Upwork', 3415.00, 19, 1, NULL, 9, 1, 1, '2023-04-18 01:08:05', '2023-04-18 01:08:05'),
(12, 1, 1, '2022-10-10', 'Income from Fiverr', 1990.00, 19, 1, NULL, 9, 1, 1, '2023-04-18 01:08:05', '2023-04-18 01:08:05'),
(13, 1, 1, '2021-06-12', 'Income from Freelancer', 3848.00, 19, 1, NULL, 8, 1, 1, '2023-04-18 01:08:05', '2023-04-18 01:08:05'),
(14, 2, 1, '2022-10-02', 'Income from Project', 6135.00, 19, 1, NULL, 8, 1, 1, '2023-04-18 01:08:05', '2023-04-18 01:08:05'),
(15, 2, 1, '2022-09-26', 'Income from Transfer', 5203.00, 19, 1, NULL, 9, 1, 1, '2023-04-18 01:08:05', '2023-04-18 01:08:05'),
(16, 1, 1, '2022-06-07', 'Income from Upwork', 2787.00, 19, 1, NULL, 9, 1, 1, '2023-04-18 01:08:05', '2023-04-18 01:08:05'),
(17, 2, 1, '2022-05-13', 'Income from Fiverr', 6483.00, 19, 1, NULL, 9, 1, 1, '2023-04-18 01:08:05', '2023-04-18 01:08:05'),
(18, 2, 1, '2021-01-18', 'Income from Freelancer', 2955.00, 19, 1, NULL, 8, 1, 1, '2023-04-18 01:08:05', '2023-04-18 01:08:05'),
(19, 1, 1, '2021-06-25', 'Income from Project', 8305.00, 19, 1, NULL, 8, 1, 1, '2023-04-18 01:08:05', '2023-04-18 01:08:05'),
(20, 1, 1, '2022-11-26', 'Income from Transfer', 8636.00, 19, 1, NULL, 8, 1, 1, '2023-04-18 01:08:05', '2023-04-18 01:08:05'),
(21, 2, 1, '2022-10-12', 'Income from Upwork', 3012.00, 19, 2, NULL, 9, 1, 1, '2023-04-18 01:08:05', '2023-04-18 01:08:05'),
(22, 2, 1, '2021-01-10', 'Income from Fiverr', 2397.00, 19, 2, NULL, 9, 1, 1, '2023-04-18 01:08:05', '2023-04-18 01:08:05'),
(23, 2, 1, '2022-08-03', 'Income from Freelancer', 1686.00, 19, 2, NULL, 9, 1, 1, '2023-04-18 01:08:05', '2023-04-18 01:08:05'),
(24, 2, 1, '2022-04-12', 'Income from Project', 6348.00, 19, 2, NULL, 8, 1, 1, '2023-04-18 01:08:05', '2023-04-18 01:08:05'),
(25, 1, 1, '2021-10-28', 'Income from Transfer', 4894.00, 19, 2, NULL, 8, 1, 1, '2023-04-18 01:08:05', '2023-04-18 01:08:05'),
(26, 1, 1, '2022-07-02', 'Income from Upwork', 9726.00, 19, 2, NULL, 9, 1, 1, '2023-04-18 01:08:05', '2023-04-18 01:08:05'),
(27, 1, 1, '2022-09-14', 'Income from Fiverr', 7165.00, 19, 2, NULL, 8, 1, 1, '2023-04-18 01:08:05', '2023-04-18 01:08:05'),
(28, 2, 1, '2022-12-13', 'Income from Freelancer', 4562.00, 19, 2, NULL, 8, 1, 1, '2023-04-18 01:08:05', '2023-04-18 01:08:05'),
(29, 1, 1, '2021-11-26', 'Income from Project', 3099.00, 19, 2, NULL, 9, 1, 1, '2023-04-18 01:08:05', '2023-04-18 01:08:05'),
(30, 2, 1, '2021-12-01', 'Income from Transfer', 9370.00, 19, 2, NULL, 9, 1, 1, '2023-04-18 01:08:05', '2023-04-18 01:08:05'),
(31, 2, 1, '2021-08-23', 'Income from Upwork', 5881.00, 19, 2, NULL, 9, 1, 1, '2023-04-18 01:08:05', '2023-04-18 01:08:05'),
(32, 2, 1, '2021-06-08', 'Income from Fiverr', 9592.00, 19, 2, NULL, 9, 1, 1, '2023-04-18 01:08:05', '2023-04-18 01:08:05'),
(33, 2, 1, '2021-01-19', 'Income from Freelancer', 4919.00, 19, 2, NULL, 9, 1, 1, '2023-04-18 01:08:05', '2023-04-18 01:08:05'),
(34, 1, 1, '2022-01-21', 'Income from Project', 2598.00, 19, 2, NULL, 9, 1, 1, '2023-04-18 01:08:05', '2023-04-18 01:08:05'),
(35, 2, 1, '2021-08-16', 'Income from Transfer', 6443.00, 19, 2, NULL, 8, 1, 1, '2023-04-18 01:08:05', '2023-04-18 01:08:05'),
(36, 2, 1, '2022-09-08', 'Income from Upwork', 2190.00, 19, 2, NULL, 8, 1, 1, '2023-04-18 01:08:05', '2023-04-18 01:08:05'),
(37, 2, 1, '2021-12-18', 'Income from Fiverr', 8853.00, 19, 2, NULL, 9, 1, 1, '2023-04-18 01:08:05', '2023-04-18 01:08:05'),
(38, 1, 1, '2021-12-04', 'Income from Freelancer', 5172.00, 19, 2, NULL, 9, 1, 1, '2023-04-18 01:08:05', '2023-04-18 01:08:05'),
(39, 1, 1, '2022-08-01', 'Income from Project', 1983.00, 19, 2, NULL, 9, 1, 1, '2023-04-18 01:08:05', '2023-04-18 01:08:05'),
(40, 2, 1, '2022-06-11', 'Income from Transfer', 1565.00, 19, 2, NULL, 9, 1, 1, '2023-04-18 01:08:05', '2023-04-18 01:08:05'),
(41, 2, 1, '2021-07-25', 'Income from Upwork', 1181.00, 19, 3, NULL, 8, 1, 1, '2023-04-18 01:08:05', '2023-04-18 01:08:05'),
(42, 2, 1, '2021-08-19', 'Income from Fiverr', 6315.00, 19, 3, NULL, 9, 1, 1, '2023-04-18 01:08:05', '2023-04-18 01:08:05'),
(43, 2, 1, '2021-05-02', 'Income from Freelancer', 4742.00, 19, 3, NULL, 8, 1, 1, '2023-04-18 01:08:05', '2023-04-18 01:08:05'),
(44, 1, 1, '2022-04-19', 'Income from Project', 4452.00, 19, 3, NULL, 9, 1, 1, '2023-04-18 01:08:05', '2023-04-18 01:08:05'),
(45, 2, 1, '2021-10-07', 'Income from Transfer', 7823.00, 19, 3, NULL, 8, 1, 1, '2023-04-18 01:08:05', '2023-04-18 01:08:05'),
(46, 2, 1, '2021-04-13', 'Income from Upwork', 3905.00, 19, 3, NULL, 9, 1, 1, '2023-04-18 01:08:05', '2023-04-18 01:08:05'),
(47, 2, 1, '2021-05-14', 'Income from Fiverr', 4441.00, 19, 3, NULL, 9, 1, 1, '2023-04-18 01:08:05', '2023-04-18 01:08:05'),
(48, 2, 1, '2021-02-26', 'Income from Freelancer', 3855.00, 19, 3, NULL, 9, 1, 1, '2023-04-18 01:08:05', '2023-04-18 01:08:05'),
(49, 2, 1, '2021-12-25', 'Income from Project', 3671.00, 19, 3, NULL, 8, 1, 1, '2023-04-18 01:08:05', '2023-04-18 01:08:05'),
(50, 1, 1, '2022-07-18', 'Income from Transfer', 8607.00, 19, 3, NULL, 8, 1, 1, '2023-04-18 01:08:05', '2023-04-18 01:08:05'),
(51, 1, 1, '2021-11-06', 'Income from Upwork', 1735.00, 19, 3, NULL, 9, 1, 1, '2023-04-18 01:08:05', '2023-04-18 01:08:05'),
(52, 1, 1, '2022-04-23', 'Income from Fiverr', 8187.00, 19, 3, NULL, 8, 1, 1, '2023-04-18 01:08:05', '2023-04-18 01:08:05'),
(53, 1, 1, '2022-06-08', 'Income from Freelancer', 4826.00, 19, 3, NULL, 8, 1, 1, '2023-04-18 01:08:05', '2023-04-18 01:08:05'),
(54, 1, 1, '2021-01-22', 'Income from Project', 1538.00, 19, 3, NULL, 9, 1, 1, '2023-04-18 01:08:05', '2023-04-18 01:08:05'),
(55, 2, 1, '2022-11-21', 'Income from Transfer', 2752.00, 19, 3, NULL, 9, 1, 1, '2023-04-18 01:08:05', '2023-04-18 01:08:05'),
(56, 1, 1, '2022-05-26', 'Income from Upwork', 7484.00, 19, 3, NULL, 8, 1, 1, '2023-04-18 01:08:05', '2023-04-18 01:08:05'),
(57, 2, 1, '2021-04-25', 'Income from Fiverr', 3591.00, 19, 3, NULL, 9, 1, 1, '2023-04-18 01:08:05', '2023-04-18 01:08:05'),
(58, 1, 1, '2022-09-22', 'Income from Freelancer', 2858.00, 19, 3, NULL, 9, 1, 1, '2023-04-18 01:08:05', '2023-04-18 01:08:05'),
(59, 1, 1, '2021-05-13', 'Income from Project', 8505.00, 19, 3, NULL, 8, 1, 1, '2023-04-18 01:08:05', '2023-04-18 01:08:05'),
(60, 1, 1, '2021-06-24', 'Income from Transfer', 6472.00, 19, 3, NULL, 9, 1, 1, '2023-04-18 01:08:05', '2023-04-18 01:08:05'),
(61, 2, 1, '2022-11-20', 'Income from Upwork', 7082.00, 19, 4, NULL, 9, 1, 1, '2023-04-18 01:08:05', '2023-04-18 01:08:05'),
(62, 1, 1, '2022-01-21', 'Income from Fiverr', 1604.00, 19, 4, NULL, 9, 1, 1, '2023-04-18 01:08:05', '2023-04-18 01:08:05'),
(63, 2, 1, '2022-07-28', 'Income from Freelancer', 1045.00, 19, 4, NULL, 8, 1, 1, '2023-04-18 01:08:05', '2023-04-18 01:08:05'),
(64, 1, 1, '2022-07-08', 'Income from Project', 8412.00, 19, 4, NULL, 9, 1, 1, '2023-04-18 01:08:05', '2023-04-18 01:08:05'),
(65, 1, 1, '2021-05-13', 'Income from Transfer', 3762.00, 19, 4, NULL, 8, 1, 1, '2023-04-18 01:08:05', '2023-04-18 01:08:05'),
(66, 2, 1, '2021-09-21', 'Income from Upwork', 7852.00, 19, 4, NULL, 9, 1, 1, '2023-04-18 01:08:05', '2023-04-18 01:08:05'),
(67, 1, 1, '2021-03-28', 'Income from Fiverr', 9609.00, 19, 4, NULL, 8, 1, 1, '2023-04-18 01:08:05', '2023-04-18 01:08:05'),
(68, 2, 1, '2021-01-22', 'Income from Freelancer', 7690.00, 19, 4, NULL, 9, 1, 1, '2023-04-18 01:08:05', '2023-04-18 01:08:05'),
(69, 2, 1, '2021-11-12', 'Income from Project', 5624.00, 19, 4, NULL, 8, 1, 1, '2023-04-18 01:08:05', '2023-04-18 01:08:05'),
(70, 1, 1, '2021-05-13', 'Income from Transfer', 6357.00, 19, 4, NULL, 8, 1, 1, '2023-04-18 01:08:05', '2023-04-18 01:08:05'),
(71, 1, 1, '2022-10-01', 'Income from Upwork', 6966.00, 19, 4, NULL, 9, 1, 1, '2023-04-18 01:08:05', '2023-04-18 01:08:05'),
(72, 2, 1, '2021-09-06', 'Income from Fiverr', 8272.00, 19, 4, NULL, 9, 1, 1, '2023-04-18 01:08:05', '2023-04-18 01:08:05'),
(73, 2, 1, '2022-02-01', 'Income from Freelancer', 1979.00, 19, 4, NULL, 9, 1, 1, '2023-04-18 01:08:05', '2023-04-18 01:08:05'),
(74, 2, 1, '2021-03-10', 'Income from Project', 6283.00, 19, 4, NULL, 8, 1, 1, '2023-04-18 01:08:05', '2023-04-18 01:08:05'),
(75, 1, 1, '2022-04-24', 'Income from Transfer', 2667.00, 19, 4, NULL, 9, 1, 1, '2023-04-18 01:08:05', '2023-04-18 01:08:05'),
(76, 2, 1, '2022-05-01', 'Income from Upwork', 6927.00, 19, 4, NULL, 9, 1, 1, '2023-04-18 01:08:05', '2023-04-18 01:08:05'),
(77, 2, 1, '2021-04-24', 'Income from Fiverr', 1756.00, 19, 4, NULL, 9, 1, 1, '2023-04-18 01:08:05', '2023-04-18 01:08:05'),
(78, 1, 1, '2021-09-16', 'Income from Freelancer', 2021.00, 19, 4, NULL, 8, 1, 1, '2023-04-18 01:08:05', '2023-04-18 01:08:05'),
(79, 1, 1, '2022-11-05', 'Income from Project', 7554.00, 19, 4, NULL, 9, 1, 1, '2023-04-18 01:08:05', '2023-04-18 01:08:05'),
(80, 1, 1, '2021-07-14', 'Income from Transfer', 9772.00, 19, 4, NULL, 8, 1, 1, '2023-04-18 01:08:05', '2023-04-18 01:08:05'),
(81, 1, 1, '2022-05-17', 'Income from Upwork', 6947.00, 19, 5, NULL, 8, 1, 1, '2023-04-18 01:08:05', '2023-04-18 01:08:05'),
(82, 1, 1, '2022-10-27', 'Income from Fiverr', 4373.00, 19, 5, NULL, 8, 1, 1, '2023-04-18 01:08:05', '2023-04-18 01:08:05'),
(83, 1, 1, '2021-08-16', 'Income from Freelancer', 1138.00, 19, 5, NULL, 8, 1, 1, '2023-04-18 01:08:05', '2023-04-18 01:08:05'),
(84, 1, 1, '2021-01-20', 'Income from Project', 5247.00, 19, 5, NULL, 9, 1, 1, '2023-04-18 01:08:05', '2023-04-18 01:08:05'),
(85, 1, 1, '2022-01-10', 'Income from Transfer', 8729.00, 19, 5, NULL, 9, 1, 1, '2023-04-18 01:08:05', '2023-04-18 01:08:05'),
(86, 1, 1, '2022-08-15', 'Income from Upwork', 5814.00, 19, 5, NULL, 8, 1, 1, '2023-04-18 01:08:05', '2023-04-18 01:08:05'),
(87, 2, 1, '2022-07-16', 'Income from Fiverr', 3815.00, 19, 5, NULL, 8, 1, 1, '2023-04-18 01:08:05', '2023-04-18 01:08:05'),
(88, 1, 1, '2022-11-06', 'Income from Freelancer', 1724.00, 19, 5, NULL, 8, 1, 1, '2023-04-18 01:08:05', '2023-04-18 01:08:05'),
(89, 1, 1, '2021-12-03', 'Income from Project', 7007.00, 19, 5, NULL, 8, 1, 1, '2023-04-18 01:08:05', '2023-04-18 01:08:05'),
(90, 2, 1, '2022-02-27', 'Income from Transfer', 3898.00, 19, 5, NULL, 8, 1, 1, '2023-04-18 01:08:05', '2023-04-18 01:08:05'),
(91, 2, 1, '2021-04-27', 'Income from Upwork', 7954.00, 19, 5, NULL, 9, 1, 1, '2023-04-18 01:08:05', '2023-04-18 01:08:05'),
(92, 2, 1, '2022-11-10', 'Income from Fiverr', 7575.00, 19, 5, NULL, 8, 1, 1, '2023-04-18 01:08:05', '2023-04-18 01:08:05'),
(93, 2, 1, '2021-07-05', 'Income from Freelancer', 4357.00, 19, 5, NULL, 8, 1, 1, '2023-04-18 01:08:05', '2023-04-18 01:08:05'),
(94, 1, 1, '2021-03-04', 'Income from Project', 5344.00, 19, 5, NULL, 9, 1, 1, '2023-04-18 01:08:05', '2023-04-18 01:08:05'),
(95, 2, 1, '2021-01-13', 'Income from Transfer', 1369.00, 19, 5, NULL, 8, 1, 1, '2023-04-18 01:08:05', '2023-04-18 01:08:05'),
(96, 1, 1, '2021-01-14', 'Income from Upwork', 6598.00, 19, 5, NULL, 9, 1, 1, '2023-04-18 01:08:05', '2023-04-18 01:08:05'),
(97, 2, 1, '2022-06-14', 'Income from Fiverr', 9287.00, 19, 5, NULL, 9, 1, 1, '2023-04-18 01:08:05', '2023-04-18 01:08:05'),
(98, 2, 1, '2021-07-21', 'Income from Freelancer', 3574.00, 19, 5, NULL, 9, 1, 1, '2023-04-18 01:08:05', '2023-04-18 01:08:05'),
(99, 2, 1, '2021-03-22', 'Income from Project', 1056.00, 19, 5, NULL, 9, 1, 1, '2023-04-18 01:08:05', '2023-04-18 01:08:05'),
(100, 1, 1, '2022-01-06', 'Income from Transfer', 2535.00, 19, 5, NULL, 9, 1, 1, '2023-04-18 01:08:05', '2023-04-18 01:08:05'),
(101, 1, 1, '2021-02-01', 'Income from Upwork', 4353.00, 19, 6, NULL, 8, 1, 1, '2023-04-18 01:08:05', '2023-04-18 01:08:05'),
(102, 1, 1, '2021-03-16', 'Income from Fiverr', 5548.00, 19, 6, NULL, 8, 1, 1, '2023-04-18 01:08:05', '2023-04-18 01:08:05'),
(103, 1, 1, '2021-01-23', 'Income from Freelancer', 3762.00, 19, 6, NULL, 8, 1, 1, '2023-04-18 01:08:05', '2023-04-18 01:08:05'),
(104, 1, 1, '2022-08-13', 'Income from Project', 9334.00, 19, 6, NULL, 9, 1, 1, '2023-04-18 01:08:05', '2023-04-18 01:08:05'),
(105, 1, 1, '2021-12-04', 'Income from Transfer', 4608.00, 19, 6, NULL, 9, 1, 1, '2023-04-18 01:08:05', '2023-04-18 01:08:05'),
(106, 1, 1, '2021-03-14', 'Income from Upwork', 8542.00, 19, 6, NULL, 9, 1, 1, '2023-04-18 01:08:05', '2023-04-18 01:08:05'),
(107, 2, 1, '2022-04-05', 'Income from Fiverr', 5590.00, 19, 6, NULL, 9, 1, 1, '2023-04-18 01:08:05', '2023-04-18 01:08:05'),
(108, 2, 1, '2021-03-26', 'Income from Freelancer', 5735.00, 19, 6, NULL, 8, 1, 1, '2023-04-18 01:08:05', '2023-04-18 01:08:05'),
(109, 2, 1, '2021-05-02', 'Income from Project', 8848.00, 19, 6, NULL, 9, 1, 1, '2023-04-18 01:08:05', '2023-04-18 01:08:05'),
(110, 1, 1, '2021-09-15', 'Income from Transfer', 6260.00, 19, 6, NULL, 9, 1, 1, '2023-04-18 01:08:05', '2023-04-18 01:08:05'),
(111, 1, 1, '2022-11-15', 'Income from Upwork', 8636.00, 19, 6, NULL, 9, 1, 1, '2023-04-18 01:08:05', '2023-04-18 01:08:05'),
(112, 2, 1, '2021-04-24', 'Income from Fiverr', 1038.00, 19, 6, NULL, 8, 1, 1, '2023-04-18 01:08:05', '2023-04-18 01:08:05'),
(113, 2, 1, '2021-04-21', 'Income from Freelancer', 2105.00, 19, 6, NULL, 8, 1, 1, '2023-04-18 01:08:05', '2023-04-18 01:08:05'),
(114, 1, 1, '2022-07-15', 'Income from Project', 4657.00, 19, 6, NULL, 9, 1, 1, '2023-04-18 01:08:05', '2023-04-18 01:08:05'),
(115, 1, 1, '2021-09-22', 'Income from Transfer', 4785.00, 19, 6, NULL, 8, 1, 1, '2023-04-18 01:08:05', '2023-04-18 01:08:05'),
(116, 1, 1, '2021-02-25', 'Income from Upwork', 6533.00, 19, 6, NULL, 8, 1, 1, '2023-04-18 01:08:05', '2023-04-18 01:08:05'),
(117, 2, 1, '2021-10-27', 'Income from Fiverr', 4425.00, 19, 6, NULL, 8, 1, 1, '2023-04-18 01:08:05', '2023-04-18 01:08:05'),
(118, 2, 1, '2021-08-14', 'Income from Freelancer', 2332.00, 19, 6, NULL, 9, 1, 1, '2023-04-18 01:08:05', '2023-04-18 01:08:05'),
(119, 2, 1, '2022-04-08', 'Income from Project', 7143.00, 19, 6, NULL, 9, 1, 1, '2023-04-18 01:08:05', '2023-04-18 01:08:05'),
(120, 2, 1, '2021-01-15', 'Income from Transfer', 7141.00, 19, 6, NULL, 8, 1, 1, '2023-04-18 01:08:05', '2023-04-18 01:08:05'),
(121, 2, 1, '2022-09-25', 'Income from Upwork', 2911.00, 19, 7, NULL, 8, 1, 1, '2023-04-18 01:08:05', '2023-04-18 01:08:05'),
(122, 1, 1, '2022-05-11', 'Income from Fiverr', 5797.00, 19, 7, NULL, 9, 1, 1, '2023-04-18 01:08:05', '2023-04-18 01:08:05'),
(123, 1, 1, '2021-11-21', 'Income from Freelancer', 8457.00, 19, 7, NULL, 9, 1, 1, '2023-04-18 01:08:05', '2023-04-18 01:08:05'),
(124, 2, 1, '2022-09-05', 'Income from Project', 4511.00, 19, 7, NULL, 9, 1, 1, '2023-04-18 01:08:05', '2023-04-18 01:08:05'),
(125, 2, 1, '2021-02-05', 'Income from Transfer', 3467.00, 19, 7, NULL, 8, 1, 1, '2023-04-18 01:08:05', '2023-04-18 01:08:05'),
(126, 1, 1, '2021-03-13', 'Income from Upwork', 8862.00, 19, 7, NULL, 9, 1, 1, '2023-04-18 01:08:05', '2023-04-18 01:08:05'),
(127, 2, 1, '2021-08-07', 'Income from Fiverr', 9928.00, 19, 7, NULL, 8, 1, 1, '2023-04-18 01:08:05', '2023-04-18 01:08:05'),
(128, 2, 1, '2022-03-15', 'Income from Freelancer', 5432.00, 19, 7, NULL, 9, 1, 1, '2023-04-18 01:08:05', '2023-04-18 01:08:05'),
(129, 1, 1, '2022-03-08', 'Income from Project', 7704.00, 19, 7, NULL, 8, 1, 1, '2023-04-18 01:08:05', '2023-04-18 01:08:05'),
(130, 1, 1, '2021-04-22', 'Income from Transfer', 4928.00, 19, 7, NULL, 8, 1, 1, '2023-04-18 01:08:05', '2023-04-18 01:08:05'),
(131, 2, 1, '2022-08-05', 'Income from Upwork', 5139.00, 19, 7, NULL, 9, 1, 1, '2023-04-18 01:08:05', '2023-04-18 01:08:05'),
(132, 1, 1, '2022-10-05', 'Income from Fiverr', 8814.00, 19, 7, NULL, 8, 1, 1, '2023-04-18 01:08:05', '2023-04-18 01:08:05'),
(133, 2, 1, '2022-11-17', 'Income from Freelancer', 7896.00, 19, 7, NULL, 9, 1, 1, '2023-04-18 01:08:05', '2023-04-18 01:08:05'),
(134, 1, 1, '2022-11-01', 'Income from Project', 3233.00, 19, 7, NULL, 8, 1, 1, '2023-04-18 01:08:05', '2023-04-18 01:08:05'),
(135, 1, 1, '2022-04-22', 'Income from Transfer', 5439.00, 19, 7, NULL, 9, 1, 1, '2023-04-18 01:08:05', '2023-04-18 01:08:05'),
(136, 2, 1, '2021-08-01', 'Income from Upwork', 6498.00, 19, 7, NULL, 9, 1, 1, '2023-04-18 01:08:05', '2023-04-18 01:08:05'),
(137, 2, 1, '2021-04-01', 'Income from Fiverr', 1604.00, 19, 7, NULL, 9, 1, 1, '2023-04-18 01:08:05', '2023-04-18 01:08:05'),
(138, 2, 1, '2021-09-10', 'Income from Freelancer', 8520.00, 19, 7, NULL, 8, 1, 1, '2023-04-18 01:08:05', '2023-04-18 01:08:05'),
(139, 2, 1, '2022-07-07', 'Income from Project', 8940.00, 19, 7, NULL, 9, 1, 1, '2023-04-18 01:08:05', '2023-04-18 01:08:05'),
(140, 2, 1, '2021-10-06', 'Income from Transfer', 6069.00, 19, 7, NULL, 9, 1, 1, '2023-04-18 01:08:05', '2023-04-18 01:08:05'),
(141, 1, 1, '2021-09-13', 'Income from Upwork', 5500.00, 19, 8, NULL, 9, 1, 1, '2023-04-18 01:08:05', '2023-04-18 01:08:05'),
(142, 2, 1, '2022-12-06', 'Income from Fiverr', 6148.00, 19, 8, NULL, 9, 1, 1, '2023-04-18 01:08:05', '2023-04-18 01:08:05'),
(143, 1, 1, '2022-01-04', 'Income from Freelancer', 6590.00, 19, 8, NULL, 9, 1, 1, '2023-04-18 01:08:05', '2023-04-18 01:08:05'),
(144, 1, 1, '2021-10-26', 'Income from Project', 8358.00, 19, 8, NULL, 8, 1, 1, '2023-04-18 01:08:05', '2023-04-18 01:08:05'),
(145, 1, 1, '2022-06-15', 'Income from Transfer', 4635.00, 19, 8, NULL, 8, 1, 1, '2023-04-18 01:08:05', '2023-04-18 01:08:05'),
(146, 2, 1, '2021-02-17', 'Income from Upwork', 3763.00, 19, 8, NULL, 9, 1, 1, '2023-04-18 01:08:05', '2023-04-18 01:08:05'),
(147, 2, 1, '2022-04-11', 'Income from Fiverr', 8376.00, 19, 8, NULL, 9, 1, 1, '2023-04-18 01:08:05', '2023-04-18 01:08:05'),
(148, 1, 1, '2021-07-02', 'Income from Freelancer', 6663.00, 19, 8, NULL, 9, 1, 1, '2023-04-18 01:08:05', '2023-04-18 01:08:05'),
(149, 2, 1, '2021-09-02', 'Income from Project', 7417.00, 19, 8, NULL, 8, 1, 1, '2023-04-18 01:08:05', '2023-04-18 01:08:05'),
(150, 2, 1, '2022-10-03', 'Income from Transfer', 8468.00, 19, 8, NULL, 9, 1, 1, '2023-04-18 01:08:05', '2023-04-18 01:08:05'),
(151, 1, 1, '2022-08-19', 'Income from Upwork', 9220.00, 19, 8, NULL, 9, 1, 1, '2023-04-18 01:08:05', '2023-04-18 01:08:05'),
(152, 1, 1, '2022-10-24', 'Income from Fiverr', 2766.00, 19, 8, NULL, 9, 1, 1, '2023-04-18 01:08:05', '2023-04-18 01:08:05'),
(153, 2, 1, '2022-10-20', 'Income from Freelancer', 1973.00, 19, 8, NULL, 9, 1, 1, '2023-04-18 01:08:05', '2023-04-18 01:08:05'),
(154, 2, 1, '2022-08-16', 'Income from Project', 8024.00, 19, 8, NULL, 9, 1, 1, '2023-04-18 01:08:05', '2023-04-18 01:08:05'),
(155, 1, 1, '2021-09-27', 'Income from Transfer', 4682.00, 19, 8, NULL, 9, 1, 1, '2023-04-18 01:08:05', '2023-04-18 01:08:05'),
(156, 1, 1, '2022-03-22', 'Income from Upwork', 1898.00, 19, 8, NULL, 9, 1, 1, '2023-04-18 01:08:05', '2023-04-18 01:08:05'),
(157, 1, 1, '2022-10-20', 'Income from Fiverr', 8213.00, 19, 8, NULL, 9, 1, 1, '2023-04-18 01:08:05', '2023-04-18 01:08:05'),
(158, 1, 1, '2021-10-01', 'Income from Freelancer', 4869.00, 19, 8, NULL, 9, 1, 1, '2023-04-18 01:08:05', '2023-04-18 01:08:05'),
(159, 2, 1, '2022-05-27', 'Income from Project', 2217.00, 19, 8, NULL, 9, 1, 1, '2023-04-18 01:08:05', '2023-04-18 01:08:05'),
(160, 2, 1, '2021-05-27', 'Income from Transfer', 8040.00, 19, 8, NULL, 8, 1, 1, '2023-04-18 01:08:05', '2023-04-18 01:08:05'),
(161, 2, 1, '2022-02-08', 'Income from Upwork', 2294.00, 19, 9, NULL, 9, 1, 1, '2023-04-18 01:08:05', '2023-04-18 01:08:05'),
(162, 1, 1, '2021-11-14', 'Income from Fiverr', 4419.00, 19, 9, NULL, 9, 1, 1, '2023-04-18 01:08:05', '2023-04-18 01:08:05'),
(163, 2, 1, '2021-03-20', 'Income from Freelancer', 9206.00, 19, 9, NULL, 9, 1, 1, '2023-04-18 01:08:05', '2023-04-18 01:08:05'),
(164, 1, 1, '2021-05-20', 'Income from Project', 3387.00, 19, 9, NULL, 8, 1, 1, '2023-04-18 01:08:05', '2023-04-18 01:08:05'),
(165, 2, 1, '2022-06-27', 'Income from Transfer', 7361.00, 19, 9, NULL, 9, 1, 1, '2023-04-18 01:08:05', '2023-04-18 01:08:05'),
(166, 1, 1, '2022-12-03', 'Income from Upwork', 7773.00, 19, 9, NULL, 8, 1, 1, '2023-04-18 01:08:05', '2023-04-18 01:08:05'),
(167, 1, 1, '2021-01-21', 'Income from Fiverr', 9488.00, 19, 9, NULL, 9, 1, 1, '2023-04-18 01:08:05', '2023-04-18 01:08:05'),
(168, 1, 1, '2021-09-22', 'Income from Freelancer', 3623.00, 19, 9, NULL, 8, 1, 1, '2023-04-18 01:08:05', '2023-04-18 01:08:05'),
(169, 2, 1, '2021-09-05', 'Income from Project', 7915.00, 19, 9, NULL, 9, 1, 1, '2023-04-18 01:08:05', '2023-04-18 01:08:05'),
(170, 2, 1, '2022-05-26', 'Income from Transfer', 1551.00, 19, 9, NULL, 9, 1, 1, '2023-04-18 01:08:05', '2023-04-18 01:08:05'),
(171, 1, 1, '2022-12-15', 'Income from Upwork', 4934.00, 19, 9, NULL, 9, 1, 1, '2023-04-18 01:08:05', '2023-04-18 01:08:05'),
(172, 2, 1, '2021-04-14', 'Income from Fiverr', 9389.00, 19, 9, NULL, 9, 1, 1, '2023-04-18 01:08:05', '2023-04-18 01:08:05'),
(173, 2, 1, '2021-04-10', 'Income from Freelancer', 3180.00, 19, 9, NULL, 9, 1, 1, '2023-04-18 01:08:05', '2023-04-18 01:08:05'),
(174, 1, 1, '2022-11-16', 'Income from Project', 9943.00, 19, 9, NULL, 9, 1, 1, '2023-04-18 01:08:05', '2023-04-18 01:08:05'),
(175, 1, 1, '2021-02-08', 'Income from Transfer', 5128.00, 19, 9, NULL, 9, 1, 1, '2023-04-18 01:08:05', '2023-04-18 01:08:05'),
(176, 2, 1, '2021-04-16', 'Income from Upwork', 6947.00, 19, 9, NULL, 9, 1, 1, '2023-04-18 01:08:05', '2023-04-18 01:08:05'),
(177, 1, 1, '2021-09-07', 'Income from Fiverr', 6445.00, 19, 9, NULL, 8, 1, 1, '2023-04-18 01:08:05', '2023-04-18 01:08:05'),
(178, 1, 1, '2022-03-20', 'Income from Freelancer', 5051.00, 19, 9, NULL, 9, 1, 1, '2023-04-18 01:08:05', '2023-04-18 01:08:05'),
(179, 1, 1, '2022-10-16', 'Income from Project', 7970.00, 19, 9, NULL, 8, 1, 1, '2023-04-18 01:08:05', '2023-04-18 01:08:05'),
(180, 1, 1, '2021-06-18', 'Income from Transfer', 1797.00, 19, 9, NULL, 9, 1, 1, '2023-04-18 01:08:05', '2023-04-18 01:08:05'),
(181, 2, 1, '2021-10-17', 'Income from Upwork', 5964.00, 19, 10, NULL, 9, 1, 1, '2023-04-18 01:08:05', '2023-04-18 01:08:05'),
(182, 1, 1, '2021-06-07', 'Income from Fiverr', 7421.00, 19, 10, NULL, 9, 1, 1, '2023-04-18 01:08:05', '2023-04-18 01:08:05'),
(183, 1, 1, '2022-03-18', 'Income from Freelancer', 7642.00, 19, 10, NULL, 9, 1, 1, '2023-04-18 01:08:05', '2023-04-18 01:08:05'),
(184, 1, 1, '2021-07-08', 'Income from Project', 5233.00, 19, 10, NULL, 9, 1, 1, '2023-04-18 01:08:05', '2023-04-18 01:08:05'),
(185, 1, 1, '2022-05-20', 'Income from Transfer', 8652.00, 19, 10, NULL, 8, 1, 1, '2023-04-18 01:08:05', '2023-04-18 01:08:05'),
(186, 1, 1, '2022-01-18', 'Income from Upwork', 7111.00, 19, 10, NULL, 8, 1, 1, '2023-04-18 01:08:05', '2023-04-18 01:08:05'),
(187, 1, 1, '2022-01-28', 'Income from Fiverr', 8385.00, 19, 10, NULL, 8, 1, 1, '2023-04-18 01:08:05', '2023-04-18 01:08:05'),
(188, 2, 1, '2021-02-23', 'Income from Freelancer', 3216.00, 19, 10, NULL, 9, 1, 1, '2023-04-18 01:08:05', '2023-04-18 01:08:05'),
(189, 1, 1, '2021-06-03', 'Income from Project', 7546.00, 19, 10, NULL, 9, 1, 1, '2023-04-18 01:08:05', '2023-04-18 01:08:05'),
(190, 1, 1, '2021-06-04', 'Income from Transfer', 1953.00, 19, 10, NULL, 9, 1, 1, '2023-04-18 01:08:05', '2023-04-18 01:08:05'),
(191, 1, 1, '2021-10-19', 'Income from Upwork', 8849.00, 19, 10, NULL, 8, 1, 1, '2023-04-18 01:08:05', '2023-04-18 01:08:05'),
(192, 1, 1, '2021-08-14', 'Income from Fiverr', 7506.00, 19, 10, NULL, 9, 1, 1, '2023-04-18 01:08:05', '2023-04-18 01:08:05'),
(193, 1, 1, '2021-07-07', 'Income from Freelancer', 5767.00, 19, 10, NULL, 9, 1, 1, '2023-04-18 01:08:05', '2023-04-18 01:08:05'),
(194, 2, 1, '2022-02-12', 'Income from Project', 2563.00, 19, 10, NULL, 8, 1, 1, '2023-04-18 01:08:05', '2023-04-18 01:08:05'),
(195, 1, 1, '2021-03-09', 'Income from Transfer', 5460.00, 19, 10, NULL, 8, 1, 1, '2023-04-18 01:08:05', '2023-04-18 01:08:05'),
(196, 1, 1, '2021-03-24', 'Income from Upwork', 9322.00, 19, 10, NULL, 8, 1, 1, '2023-04-18 01:08:05', '2023-04-18 01:08:05'),
(197, 2, 1, '2022-11-26', 'Income from Fiverr', 7839.00, 19, 10, NULL, 8, 1, 1, '2023-04-18 01:08:05', '2023-04-18 01:08:05'),
(198, 2, 1, '2022-06-27', 'Income from Freelancer', 5709.00, 19, 10, NULL, 8, 1, 1, '2023-04-18 01:08:05', '2023-04-18 01:08:05'),
(199, 1, 1, '2022-02-14', 'Income from Project', 4064.00, 19, 10, NULL, 8, 1, 1, '2023-04-18 01:08:05', '2023-04-18 01:08:05'),
(200, 2, 1, '2021-01-04', 'Income from Transfer', 1410.00, 19, 10, NULL, 9, 1, 1, '2023-04-18 01:08:05', '2023-04-18 01:08:05'),
(201, 1, 1, '2021-01-03', 'Expense from Rent', 7820.00, 18, 10, NULL, 9, 1, 1, '2023-04-18 01:08:05', '2023-04-18 01:08:05'),
(202, 2, 1, '2022-03-26', 'Expense from Electricity', 9030.00, 18, 10, NULL, 9, 1, 1, '2023-04-18 01:08:05', '2023-04-18 01:08:05'),
(203, 2, 1, '2022-05-20', 'Expense from Internet', 9651.00, 18, 10, NULL, 9, 1, 1, '2023-04-18 01:08:05', '2023-04-18 01:08:05'),
(204, 2, 1, '2021-08-09', 'Expense from Water', 2563.00, 18, 10, NULL, 8, 1, 1, '2023-04-18 01:08:05', '2023-04-18 01:08:05'),
(205, 1, 1, '2021-11-19', 'Expense from Transfer', 5511.00, 18, 10, NULL, 8, 1, 1, '2023-04-18 01:08:05', '2023-04-18 01:08:05'),
(206, 2, 1, '2021-01-25', 'Expense from Rent', 9455.00, 18, 10, NULL, 8, 1, 1, '2023-04-18 01:08:06', '2023-04-18 01:08:06'),
(207, 2, 1, '2021-02-26', 'Expense from Electricity', 7062.00, 18, 10, NULL, 9, 1, 1, '2023-04-18 01:08:06', '2023-04-18 01:08:06'),
(208, 1, 1, '2022-07-21', 'Expense from Internet', 4595.00, 18, 10, NULL, 9, 1, 1, '2023-04-18 01:08:06', '2023-04-18 01:08:06'),
(209, 1, 1, '2021-01-05', 'Expense from Water', 6179.00, 18, 10, NULL, 9, 1, 1, '2023-04-18 01:08:06', '2023-04-18 01:08:06'),
(210, 1, 1, '2022-02-18', 'Expense from Transfer', 1058.00, 18, 10, NULL, 8, 1, 1, '2023-04-18 01:08:06', '2023-04-18 01:08:06'),
(211, 1, 1, '2021-09-15', 'Expense from Rent', 9557.00, 18, 10, NULL, 9, 1, 1, '2023-04-18 01:08:06', '2023-04-18 01:08:06'),
(212, 2, 1, '2021-06-19', 'Expense from Electricity', 6220.00, 18, 10, NULL, 8, 1, 1, '2023-04-18 01:08:06', '2023-04-18 01:08:06'),
(213, 1, 1, '2022-01-03', 'Expense from Internet', 4107.00, 18, 10, NULL, 9, 1, 1, '2023-04-18 01:08:06', '2023-04-18 01:08:06'),
(214, 2, 1, '2022-10-24', 'Expense from Water', 8961.00, 18, 10, NULL, 8, 1, 1, '2023-04-18 01:08:06', '2023-04-18 01:08:06'),
(215, 1, 1, '2021-02-15', 'Expense from Transfer', 3642.00, 18, 10, NULL, 9, 1, 1, '2023-04-18 01:08:06', '2023-04-18 01:08:06'),
(216, 1, 1, '2022-09-17', 'Expense from Rent', 4727.00, 18, 10, NULL, 8, 1, 1, '2023-04-18 01:08:06', '2023-04-18 01:08:06'),
(217, 1, 1, '2022-05-12', 'Expense from Electricity', 8080.00, 18, 10, NULL, 9, 1, 1, '2023-04-18 01:08:06', '2023-04-18 01:08:06'),
(218, 1, 1, '2021-09-23', 'Expense from Internet', 6894.00, 18, 10, NULL, 9, 1, 1, '2023-04-18 01:08:06', '2023-04-18 01:08:06'),
(219, 2, 1, '2021-08-12', 'Expense from Water', 8503.00, 18, 10, NULL, 9, 1, 1, '2023-04-18 01:08:06', '2023-04-18 01:08:06'),
(220, 2, 1, '2021-05-02', 'Expense from Transfer', 6007.00, 18, 10, NULL, 8, 1, 1, '2023-04-18 01:08:06', '2023-04-18 01:08:06');

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

--
-- Table structure for table `translations`
--

CREATE TABLE `translations` (
  `id` bigint UNSIGNED NOT NULL,
  `default` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `en` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin,
  `bn` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Table structure for table `travel`
--

CREATE TABLE `travel` (
  `id` bigint UNSIGNED NOT NULL,
  `company_id` bigint UNSIGNED NOT NULL,
  `user_id` bigint UNSIGNED NOT NULL,
  `created_by` bigint UNSIGNED NOT NULL,
  `travel_type_id` bigint UNSIGNED NOT NULL,
  `start_date` date DEFAULT NULL,
  `end_date` date DEFAULT NULL,
  `status_id` bigint UNSIGNED NOT NULL DEFAULT '1',
  `expect_amount` double(16,2) DEFAULT NULL,
  `amount` double(16,2) DEFAULT NULL,
  `description` longtext COLLATE utf8mb4_unicode_ci NOT NULL,
  `attachment` bigint UNSIGNED DEFAULT NULL,
  `purpose` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `place` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `mode` enum('bus','train','plane') COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `goal_id` bigint UNSIGNED DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `travel`
--

INSERT INTO `travel` (`id`, `company_id`, `user_id`, `created_by`, `travel_type_id`, `start_date`, `end_date`, `status_id`, `expect_amount`, `amount`, `description`, `attachment`, `purpose`, `place`, `mode`, `goal_id`, `created_at`, `updated_at`) VALUES
(1, 2, 2, 2, 1, '2023-04-18', '2023-04-25', 1, 100.00, 100.00, '<strong>Lorem Ipsum</strong>&nbsp;is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry&#39;s standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.', NULL, 'test', 'test', 'bus', NULL, '2023-04-18 01:07:53', '2023-04-18 01:07:53');

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

--
-- Table structure for table `travel_types`
--

CREATE TABLE `travel_types` (
  `id` bigint UNSIGNED NOT NULL,
  `name` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `company_id` bigint UNSIGNED NOT NULL,
  `status_id` bigint UNSIGNED NOT NULL DEFAULT '1',
  `created_by` bigint UNSIGNED DEFAULT '1',
  `updated_by` bigint UNSIGNED DEFAULT '1',
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `travel_types`
--

INSERT INTO `travel_types` (`id`, `name`, `company_id`, `status_id`, `created_by`, `updated_by`, `created_at`, `updated_at`) VALUES
(1, 'Business', 2, 2, 2, 1, '2023-04-18 01:07:53', '2023-04-18 01:07:53'),
(2, 'Personal', 2, 2, 2, 1, '2023-04-18 01:07:53', '2023-04-18 01:07:53'),
(3, 'Vacation', 2, 2, 2, 1, '2023-04-18 01:07:53', '2023-04-18 01:07:53'),
(4, 'Other', 2, 2, 2, 1, '2023-04-18 01:07:53', '2023-04-18 01:07:53');

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

--
-- Table structure for table `uploads`
--

CREATE TABLE `uploads` (
  `id` bigint UNSIGNED NOT NULL,
  `user_id` bigint UNSIGNED DEFAULT NULL,
  `file_original_name` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `file_name` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `img_path` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `big_path` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '1920 x 1080',
  `small_path` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '300 x 300',
  `thumbnail_path` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '500 x 400',
  `extension` varchar(10) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `type` varchar(15) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `file_size` int DEFAULT NULL,
  `width` int DEFAULT NULL,
  `height` int DEFAULT NULL,
  `status_id` bigint UNSIGNED DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `uploads`
--

INSERT INTO `uploads` (`id`, `user_id`, `file_original_name`, `file_name`, `img_path`, `big_path`, `small_path`, `thumbnail_path`, `extension`, `type`, `file_size`, `width`, `height`, `status_id`, `created_at`, `updated_at`) VALUES
(1, 1, 'dark_logo', 'dark.png', '/assets/images/dark.png', '/assets/images/dark.png', '/assets/images/dark.png', '/assets/images/dark.png', '.png', 'png', 0, 100, 100, 1, '2023-04-18 01:07:41', '2023-04-18 01:07:41'),
(2, 1, 'white_logo', 'white.png', '/assets/images/white.png', '/assets/images/white.png', '/assets/images/white.png', '/assets/images/white.png', '.png', 'png', 0, 100, 100, 1, '2023-04-18 01:07:41', '2023-04-18 01:07:41'),
(3, 1, 'fav', 'fav.png', '/assets/images/favicon.png', '/assets/images/favicon.png', '/assets/images/favicon.png', '/assets/images/favicon.png', '.png', 'png', 0, 100, 100, 1, '2023-04-18 01:07:41', '2023-04-18 01:07:41'),
(4, 1, 'background_image', 'background_image.png', 'public/static/background_image.png', 'public/static/background_image.png', 'public/static/background_image.png', 'public/static/background_image.png', '.png', 'png', 0, 100, 100, 1, '2023-04-18 01:07:41', '2023-04-18 01:07:41'),
(5, 1, 'android_icon', 'android_icon.png', 'public/static/android_icon.png', 'public/static/android_icon.png', 'public/static/android_icon.png', 'public/static/android_icon.png', '.png', 'png', 0, 100, 100, 1, '2023-04-18 01:07:41', '2023-04-18 01:07:41'),
(6, 1, 'iso_icon', 'iso_icon.png', 'public/static/iso_icon.png', 'public/static/iso_icon.png', 'public/static/iso_icon.png', 'public/static/iso_icon.png', '.png', 'png', 0, 100, 100, 1, '2023-04-18 01:07:41', '2023-04-18 01:07:41'),
(7, 1, 'support', 'support.png', 'public/static/support.png', 'public/static/support.png', 'public/static/support.png', 'public/static/support.png', '.png', 'png', 0, 100, 100, 1, '2023-04-18 01:07:41', '2023-04-18 01:07:41'),
(8, 1, 'attendance', 'attendance.png', 'public/static/attendance.png', 'public/static/attendance.png', 'public/static/attendance.png', 'public/static/attendance.png', '.png', 'png', 0, 100, 100, 1, '2023-04-18 01:07:41', '2023-04-18 01:07:41'),
(9, 1, 'notice', 'notice.png', 'public/static/notice.png', 'public/static/notice.png', 'public/static/notice.png', 'public/static/notice.png', '.png', 'png', 0, 100, 100, 1, '2023-04-18 01:07:41', '2023-04-18 01:07:41'),
(10, 1, 'expense', 'expense.png', 'public/static/expense.png', 'public/static/expense.png', 'public/static/expense.png', 'public/static/expense.png', '.png', 'png', 0, 100, 100, 1, '2023-04-18 01:07:41', '2023-04-18 01:07:41'),
(11, 1, 'leave', 'leave.png', 'public/static/leave.png', 'public/static/leave.png', 'public/static/leave.png', 'public/static/leave.png', '.png', 'png', 0, 100, 100, 1, '2023-04-18 01:07:41', '2023-04-18 01:07:41'),
(12, 1, 'approval', 'approval.png', 'public/static/approval.png', 'public/static/approval.png', 'public/static/approval.png', 'public/static/approval.png', '.png', 'png', 0, 100, 100, 1, '2023-04-18 01:07:41', '2023-04-18 01:07:41'),
(13, 1, 'phonebook', 'phonebook.png', 'public/static/phonebook.png', 'public/static/phonebook.png', 'public/static/phonebook.png', 'public/static/phonebook.png', '.png', 'png', 0, 100, 100, 1, '2023-04-18 01:07:41', '2023-04-18 01:07:41'),
(14, 1, 'visit', 'visit.png', 'public/static/visit.png', 'public/static/visit.png', 'public/static/visit.png', 'public/static/visit.png', '.png', 'png', 0, 100, 100, 1, '2023-04-18 01:07:41', '2023-04-18 01:07:41'),
(15, 1, 'appointments', 'appointments.png', 'public/static/appointments.png', 'public/static/appointments.png', 'public/static/appointments.png', 'public/static/appointments.png', '.png', 'png', 0, 100, 100, 1, '2023-04-18 01:07:41', '2023-04-18 01:07:41'),
(16, 1, 'break', 'break.png', 'public/static/break.png', 'public/static/break.png', 'public/static/break.png', 'public/static/break.png', '.png', 'png', 0, 100, 100, 1, '2023-04-18 01:07:41', '2023-04-18 01:07:41'),
(17, 1, 'report', 'report.png', 'public/static/report.png', 'public/static/report.png', 'public/static/report.png', 'public/static/report.png', '.png', 'png', 0, 100, 100, 1, '2023-04-18 01:07:41', '2023-04-18 01:07:41'),
(21, 1, 'portfolio1', 'portfolio1.png', 'public/static/portfolio1.png', 'public/static/portfolio1.png', 'public/static/portfolio1.png', 'public/static/portfolio1.png', '.png', 'png', 0, 100, 100, 1, '2023-04-18 01:07:41', '2023-04-18 01:07:41'),
(22, 1, 'portfolio2', 'portfolio2.png', 'public/static/portfolio2.png', 'public/static/portfolio2.png', 'public/static/portfolio2.png', 'public/static/portfolio2.png', '.png', 'png', 0, 100, 100, 1, '2023-04-18 01:07:41', '2023-04-18 01:07:41'),
(23, 1, 'portfolio3', 'portfolio3.png', 'public/static/portfolio3.png', 'public/static/portfolio3.png', 'public/static/portfolio3.png', 'public/static/portfolio3.png', '.png', 'png', 0, 100, 100, 1, '2023-04-18 01:07:41', '2023-04-18 01:07:41'),
(24, 1, 'portfolio4', 'portfolio4.png', 'public/static/portfolio4.png', 'public/static/portfolio4.png', 'public/static/portfolio4.png', 'public/static/portfolio4.png', '.png', 'png', 0, 100, 100, 1, '2023-04-18 01:07:41', '2023-04-18 01:07:41'),
(25, 1, 'portfolio5', 'portfolio5.png', 'public/static/portfolio5.png', 'public/static/portfolio5.png', 'public/static/portfolio5.png', 'public/static/portfolio5.png', '.png', 'png', 0, 100, 100, 1, '2023-04-18 01:07:41', '2023-04-18 01:07:41'),
(26, 1, 'portfolio6', 'portfolio6.png', 'public/static/portfolio6.png', 'public/static/portfolio6.png', 'public/static/portfolio6.png', 'public/static/portfolio6.png', '.png', 'png', 0, 100, 100, 1, '2023-04-18 01:07:41', '2023-04-18 01:07:41'),
(27, 1, 'portfolio7', 'portfolio7.png', 'public/static/portfolio7.png', 'public/static/portfolio7.png', 'public/static/portfolio7.png', 'public/static/portfolio7.png', '.png', 'png', 0, 100, 100, 1, '2023-04-18 01:07:41', '2023-04-18 01:07:41'),
(28, 1, 'portfolio8', 'portfolio8.png', 'public/static/portfolio8.png', 'public/static/portfolio8.png', 'public/static/portfolio8.png', 'public/static/portfolio8.png', '.png', 'png', 0, 100, 100, 1, '2023-04-18 01:07:41', '2023-04-18 01:07:41'),
(29, 1, 'team1', 'team1.png', 'public/static/team1.png', 'public/static/team1.png', 'public/static/team1.png', 'public/static/team1.png', '.png', 'png', 0, 100, 100, 1, '2023-04-18 01:07:41', '2023-04-18 01:07:41'),
(30, 1, 'team2', 'team2.png', 'public/static/team2.png', 'public/static/team2.png', 'public/static/team2.png', 'public/static/team2.png', '.png', 'png', 0, 100, 100, 1, '2023-04-18 01:07:41', '2023-04-18 01:07:41'),
(31, 1, 'team3', 'team3.png', 'public/static/team3.png', 'public/static/team3.png', 'public/static/team3.png', 'public/static/team3.png', '.png', 'png', 0, 100, 100, 1, '2023-04-18 01:07:41', '2023-04-18 01:07:41'),
(32, 1, 'team4', 'team4.png', 'public/static/team4.png', 'public/static/team4.png', 'public/static/team4.png', 'public/static/team4.png', '.png', 'png', 0, 100, 100, 1, '2023-04-18 01:07:41', '2023-04-18 01:07:41'),
(33, 1, 'team5', 'team5.png', 'public/static/team5.png', 'public/static/team5.png', 'public/static/team5.png', 'public/static/team5.png', '.png', 'png', 0, 100, 100, 1, '2023-04-18 01:07:41', '2023-04-18 01:07:41'),
(34, 1, 'team6', 'team6.png', 'public/static/team6.png', 'public/static/team6.png', 'public/static/team6.png', 'public/static/team6.png', '.png', 'png', 0, 100, 100, 1, '2023-04-18 01:07:41', '2023-04-18 01:07:41'),
(35, 1, 'team7', 'team7.png', 'public/static/team7.png', 'public/static/team7.png', 'public/static/team7.png', 'public/static/team7.png', '.png', 'png', 0, 100, 100, 1, '2023-04-18 01:07:41', '2023-04-18 01:07:41'),
(36, 1, 'team8', 'team8.png', 'public/static/team8.png', 'public/static/team8.png', 'public/static/team8.png', 'public/static/team8.png', '.png', 'png', 0, 100, 100, 1, '2023-04-18 01:07:41', '2023-04-18 01:07:41'),
(37, 1, '1', '1.jpg', 'public/uploads/avatar/1.jpg', 'public/uploads/avatar/1.jpg', 'public/uploads/avatar/1.jpg', 'public/uploads/avatar/1.jpg', '.jpg', 'jpg', 0, 100, 100, 1, '2023-04-18 01:07:41', '2023-04-18 01:07:41'),
(38, 1, '2', '2.jpg', 'public/uploads/avatar/2.jpg', 'public/uploads/avatar/2.jpg', 'public/uploads/avatar/2.jpg', 'public/uploads/avatar/2.jpg', '.jpg', 'jpg', 0, 100, 100, 1, '2023-04-18 01:07:41', '2023-04-18 01:07:41'),
(39, 1, '3', '3.jpg', 'public/uploads/avatar/3.jpg', 'public/uploads/avatar/3.jpg', 'public/uploads/avatar/3.jpg', 'public/uploads/avatar/3.jpg', '.jpg', 'jpg', 0, 100, 100, 1, '2023-04-18 01:07:41', '2023-04-18 01:07:41'),
(40, 1, '4', '4.jpg', 'public/uploads/avatar/4.jpg', 'public/uploads/avatar/4.jpg', 'public/uploads/avatar/4.jpg', 'public/uploads/avatar/4.jpg', '.jpg', 'jpg', 0, 100, 100, 1, '2023-04-18 01:07:41', '2023-04-18 01:07:41'),
(41, 1, '5', '5.jpg', 'public/uploads/avatar/5.jpg', 'public/uploads/avatar/5.jpg', 'public/uploads/avatar/5.jpg', 'public/uploads/avatar/5.jpg', '.jpg', 'jpg', 0, 100, 100, 1, '2023-04-18 01:07:41', '2023-04-18 01:07:41'),
(42, 1, '6', '6.jpg', 'public/uploads/avatar/6.jpg', 'public/uploads/avatar/6.jpg', 'public/uploads/avatar/6.jpg', 'public/uploads/avatar/6.jpg', '.jpg', 'jpg', 0, 100, 100, 1, '2023-04-18 01:07:41', '2023-04-18 01:07:41'),
(43, 1, '7', '7.jpg', 'public/uploads/avatar/7.jpg', 'public/uploads/avatar/7.jpg', 'public/uploads/avatar/7.jpg', 'public/uploads/avatar/7.jpg', '.jpg', 'jpg', 0, 100, 100, 1, '2023-04-18 01:07:41', '2023-04-18 01:07:41'),
(44, 1, '8', '8.jpg', 'public/uploads/avatar/8.jpg', 'public/uploads/avatar/8.jpg', 'public/uploads/avatar/8.jpg', 'public/uploads/avatar/8.jpg', '.jpg', 'jpg', 0, 100, 100, 1, '2023-04-18 01:07:41', '2023-04-18 01:07:41'),
(45, 1, '9', '9.jpg', 'public/uploads/avatar/9.jpg', 'public/uploads/avatar/9.jpg', 'public/uploads/avatar/9.jpg', 'public/uploads/avatar/9.jpg', '.jpg', 'jpg', 0, 100, 100, 1, '2023-04-18 01:07:41', '2023-04-18 01:07:41'),
(46, 1, '10', '10.jpg', 'public/uploads/avatar/10.jpg', 'public/uploads/avatar/10.jpg', 'public/uploads/avatar/10.jpg', 'public/uploads/avatar/10.jpg', '.jpg', 'jpg', 0, 100, 100, 1, '2023-04-18 01:07:41', '2023-04-18 01:07:41'),
(47, 1, '11', '11.jpg', 'public/uploads/avatar/11.jpg', 'public/uploads/avatar/11.jpg', 'public/uploads/avatar/11.jpg', 'public/uploads/avatar/11.jpg', '.jpg', 'jpg', 0, 100, 100, 1, '2023-04-18 01:07:41', '2023-04-18 01:07:41'),
(48, 1, '12', '12.jpg', 'public/uploads/avatar/12.jpg', 'public/uploads/avatar/12.jpg', 'public/uploads/avatar/12.jpg', 'public/uploads/avatar/12.jpg', '.jpg', 'jpg', 0, 100, 100, 1, '2023-04-18 01:07:41', '2023-04-18 01:07:41'),
(49, 1, '13', '13.jpg', 'public/uploads/avatar/13.jpg', 'public/uploads/avatar/13.jpg', 'public/uploads/avatar/13.jpg', 'public/uploads/avatar/13.jpg', '.jpg', 'jpg', 0, 100, 100, 1, '2023-04-18 01:07:41', '2023-04-18 01:07:41'),
(50, 1, '14', '14.jpg', 'public/uploads/avatar/14.jpg', 'public/uploads/avatar/14.jpg', 'public/uploads/avatar/14.jpg', 'public/uploads/avatar/14.jpg', '.jpg', 'jpg', 0, 100, 100, 1, '2023-04-18 01:07:41', '2023-04-18 01:07:41'),
(51, 1, '15', '15.jpg', 'public/uploads/avatar/15.jpg', 'public/uploads/avatar/15.jpg', 'public/uploads/avatar/15.jpg', 'public/uploads/avatar/15.jpg', '.jpg', 'jpg', 0, 100, 100, 1, '2023-04-18 01:07:41', '2023-04-18 01:07:41'),
(52, 1, '16', '16.jpg', 'public/uploads/avatar/16.jpg', 'public/uploads/avatar/16.jpg', 'public/uploads/avatar/16.jpg', 'public/uploads/avatar/16.jpg', '.jpg', 'jpg', 0, 100, 100, 1, '2023-04-18 01:07:41', '2023-04-18 01:07:41'),
(53, 1, '17', '17.jpg', 'public/uploads/avatar/17.jpg', 'public/uploads/avatar/17.jpg', 'public/uploads/avatar/17.jpg', 'public/uploads/avatar/17.jpg', '.jpg', 'jpg', 0, 100, 100, 1, '2023-04-18 01:07:41', '2023-04-18 01:07:41'),
(54, 1, '18', '18.jpg', 'public/uploads/avatar/18.jpg', 'public/uploads/avatar/18.jpg', 'public/uploads/avatar/18.jpg', 'public/uploads/avatar/18.jpg', '.jpg', 'jpg', 0, 100, 100, 1, '2023-04-18 01:07:41', '2023-04-18 01:07:41'),
(55, 1, '19', '19.jpg', 'public/uploads/avatar/19.jpg', 'public/uploads/avatar/19.jpg', 'public/uploads/avatar/19.jpg', 'public/uploads/avatar/19.jpg', '.jpg', 'jpg', 0, 100, 100, 1, '2023-04-18 01:07:41', '2023-04-18 01:07:41'),
(56, 1, '20', '20.jpg', 'public/uploads/avatar/20.jpg', 'public/uploads/avatar/20.jpg', 'public/uploads/avatar/20.jpg', 'public/uploads/avatar/20.jpg', '.jpg', 'jpg', 0, 100, 100, 1, '2023-04-18 01:07:41', '2023-04-18 01:07:41'),
(57, 1, '20', '1.jpg', 'public/uploads/avatar/projects/1.jpg', 'public/uploads/avatar/projects/1.jpg', 'public/uploads/avatar/projects/1.jpg', 'public/uploads/avatar/projects/1.jpg', '.jpg', 'jpg', 0, 100, 100, 1, '2023-04-18 01:07:41', '2023-04-18 01:07:41'),
(58, 1, '20', '2.jpg', 'public/uploads/avatar/projects/2.jpg', 'public/uploads/avatar/projects/2.jpg', 'public/uploads/avatar/projects/2.jpg', 'public/uploads/avatar/projects/2.jpg', '.jpg', 'jpg', 0, 100, 100, 1, '2023-04-18 01:07:41', '2023-04-18 01:07:41'),
(59, 1, '20', '3.jpg', 'public/uploads/avatar/projects/3.jpg', 'public/uploads/avatar/projects/3.jpg', 'public/uploads/avatar/projects/3.jpg', 'public/uploads/avatar/projects/3.jpg', '.jpg', 'jpg', 0, 100, 100, 1, '2023-04-18 01:07:41', '2023-04-18 01:07:41'),
(60, 1, '20', '4.jpg', 'public/uploads/avatar/projects/4.jpg', 'public/uploads/avatar/projects/4.jpg', 'public/uploads/avatar/projects/4.jpg', 'public/uploads/avatar/projects/4.jpg', '.jpg', 'jpg', 0, 100, 100, 1, '2023-04-18 01:07:41', '2023-04-18 01:07:41'),
(61, 1, '20', '5.jpg', 'public/uploads/avatar/projects/5.jpg', 'public/uploads/avatar/projects/5.jpg', 'public/uploads/avatar/projects/5.jpg', 'public/uploads/avatar/projects/5.jpg', '.jpg', 'jpg', 0, 100, 100, 1, '2023-04-18 01:07:41', '2023-04-18 01:07:41'),
(62, 1, '20', '6.jpg', 'public/uploads/avatar/projects/6.jpg', 'public/uploads/avatar/projects/6.jpg', 'public/uploads/avatar/projects/6.jpg', 'public/uploads/avatar/projects/6.jpg', '.jpg', 'jpg', 0, 100, 100, 1, '2023-04-18 01:07:41', '2023-04-18 01:07:41'),
(63, 1, '20', '7.jpg', 'public/uploads/avatar/projects/7.jpg', 'public/uploads/avatar/projects/7.jpg', 'public/uploads/avatar/projects/7.jpg', 'public/uploads/avatar/projects/7.jpg', '.jpg', 'jpg', 0, 100, 100, 1, '2023-04-18 01:07:41', '2023-04-18 01:07:41'),
(64, 1, '20', '8.jpg', 'public/uploads/avatar/projects/8.jpg', 'public/uploads/avatar/projects/8.jpg', 'public/uploads/avatar/projects/8.jpg', 'public/uploads/avatar/projects/8.jpg', '.jpg', 'jpg', 0, 100, 100, 1, '2023-04-18 01:07:41', '2023-04-18 01:07:41'),
(65, 1, '20', '9.jpg', 'public/uploads/avatar/projects/9.jpg', 'public/uploads/avatar/projects/9.jpg', 'public/uploads/avatar/projects/9.jpg', 'public/uploads/avatar/projects/9.jpg', '.jpg', 'jpg', 0, 100, 100, 1, '2023-04-18 01:07:41', '2023-04-18 01:07:41'),
(66, 1, '20', '10.jpg', 'public/uploads/avatar/projects/10.jpg', 'public/uploads/avatar/projects/10.jpg', 'public/uploads/avatar/projects/10.jpg', 'public/uploads/avatar/projects/10.jpg', '.jpg', 'jpg', 0, 100, 100, 1, '2023-04-18 01:07:41', '2023-04-18 01:07:41');

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

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

CREATE TABLE `users` (
  `id` bigint UNSIGNED NOT NULL,
  `company_id` bigint UNSIGNED NOT NULL,
  `country_id` bigint UNSIGNED NOT NULL,
  `name` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `userID` int DEFAULT NULL,
  `face_recognition` tinyint DEFAULT '1',
  `face_data` longtext COLLATE utf8mb4_unicode_ci,
  `email` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `phone` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `is_admin` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '0',
  `is_hr` tinyint DEFAULT NULL,
  `role_id` bigint UNSIGNED DEFAULT NULL,
  `department_id` bigint UNSIGNED DEFAULT NULL,
  `shift_id` bigint UNSIGNED DEFAULT NULL,
  `designation_id` bigint UNSIGNED DEFAULT NULL,
  `permissions` text COLLATE utf8mb4_unicode_ci,
  `verification_code` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT 'email verification code',
  `manager_id` bigint UNSIGNED DEFAULT NULL,
  `employee_id` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `employee_type` enum('Permanent','On Probation','Contractual','Intern') COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'On Probation',
  `grade` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `nationality` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `nid_card_number` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `nid_card_id` bigint UNSIGNED DEFAULT NULL COMMENT 'this will be uploaded file',
  `facebook_link` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `linkedin_link` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `instagram_link` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `passport_number` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `passport_file_id` bigint UNSIGNED DEFAULT NULL COMMENT 'this will be passport file',
  `tin` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `tin_id_front_file` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `tin_id_back_file` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `bank_name` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `bank_account` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `emergency_name` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `emergency_mobile_number` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `emergency_mobile_relationship` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `email_verify_token` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT 'email verify token',
  `is_email_verified` enum('verified','non-verified') COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'verified',
  `email_verified_at` timestamp NULL DEFAULT NULL COMMENT 'email verified at',
  `phone_verify_token` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT 'phone verify token',
  `is_phone_verified` enum('verified','non-verified') COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'verified',
  `phone_verified_at` timestamp NULL DEFAULT NULL COMMENT 'phone verified at',
  `password` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `password_hints` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT 'user can set a password hint for easy remember',
  `avatar_id` bigint UNSIGNED DEFAULT NULL,
  `status_id` bigint UNSIGNED NOT NULL DEFAULT '1',
  `last_login_at` timestamp NULL DEFAULT NULL COMMENT 'last login at',
  `last_logout_at` timestamp NULL DEFAULT NULL COMMENT 'last logout at',
  `last_login_ip` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT 'last login ip',
  `device_token` longtext COLLATE utf8mb4_unicode_ci COMMENT 'device_token from firebase',
  `login_access` tinyint NOT NULL DEFAULT '1' COMMENT '0 = off, 1 = on',
  `address` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `gender` enum('Male','Female','Unisex','Others') COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `birth_date` date DEFAULT NULL,
  `religion` enum('Islam','Hindu','Christan') COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'Islam',
  `blood_group` enum('A+','A-','B+','B-','O+','O-','AB+','AB-') COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `joining_date` date DEFAULT NULL,
  `basic_salary` double(16,2) NOT NULL DEFAULT '0.00',
  `marital_status` enum('Married','Unmarried') COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'Unmarried',
  `contract_start_date` date DEFAULT NULL,
  `contract_end_date` date DEFAULT NULL,
  `payslip_type` tinyint NOT NULL DEFAULT '1' COMMENT '1 = monthly, 2 = weekly, 3 = daily',
  `late_check_in` int NOT NULL DEFAULT '0',
  `early_check_out` int NOT NULL DEFAULT '0',
  `extra_leave` int NOT NULL DEFAULT '0',
  `monthly_leave` int NOT NULL DEFAULT '0',
  `is_free_location` tinyint NOT NULL DEFAULT '0',
  `time_zone` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'Asia/Dhaka',
  `social_id` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `social_type` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `about_me` text COLLATE utf8mb4_unicode_ci,
  `lang` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `remember_token` varchar(100) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `stripe_id` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `pm_type` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `pm_last_four` varchar(4) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `trial_ends_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

INSERT INTO `users` (`id`, `company_id`, `country_id`, `name`, `userID`, `face_recognition`, `face_data`, `email`, `phone`, `is_admin`, `is_hr`, `role_id`, `department_id`, `shift_id`, `designation_id`, `permissions`, `verification_code`, `manager_id`, `employee_id`, `employee_type`, `grade`, `nationality`, `nid_card_number`, `nid_card_id`, `facebook_link`, `linkedin_link`, `instagram_link`, `passport_number`, `passport_file_id`, `tin`, `tin_id_front_file`, `tin_id_back_file`, `bank_name`, `bank_account`, `emergency_name`, `emergency_mobile_number`, `emergency_mobile_relationship`, `email_verify_token`, `is_email_verified`, `email_verified_at`, `phone_verify_token`, `is_phone_verified`, `phone_verified_at`, `password`, `password_hints`, `avatar_id`, `status_id`, `last_login_at`, `last_logout_at`, `last_login_ip`, `device_token`, `login_access`, `address`, `gender`, `birth_date`, `religion`, `blood_group`, `joining_date`, `basic_salary`, `marital_status`, `contract_start_date`, `contract_end_date`, `payslip_type`, `late_check_in`, `early_check_out`, `extra_leave`, `monthly_leave`, `is_free_location`, `time_zone`, `social_id`, `social_type`, `about_me`, `lang`, `remember_token`, `deleted_at`, `created_at`, `updated_at`, `stripe_id`, `pm_type`, `pm_last_four`, `trial_ends_at`) VALUES
(1, 1, 17, 'Super Admin', NULL, 1, NULL, 'superadmin@onesttech.com', '+8801910077628', '1', 0, 1, 1, 1, 1, '[\"company_read\",\"company_create\",\"company_update\",\"company_delete\",\"user_banned\",\"user_unbanned\",\"general_settings_read\",\"general_settings_update\",\"email_settings_read\",\"email_settings_update\",\"storage_settings_update\",\"user_read\",\"user_edit\",\"user_update\",\"content_update\",\"subscriptions_read\"]', NULL, NULL, 'EMP-1', 'On Probation', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '9THd7SwuJL', 'verified', '2023-04-18 01:07:41', NULL, 'verified', NULL, '$2y$10$LR9NMSTnMHSX99yL1Rdrr.wgO/aXF1m4i0dnkdDmO2PDhpVqsjN4i', NULL, 55, 1, NULL, NULL, NULL, NULL, 1, NULL, NULL, NULL, 'Islam', NULL, NULL, 0.00, 'Unmarried', NULL, NULL, 1, 0, 0, 0, 0, 0, 'Asia/Dhaka', NULL, NULL, NULL, NULL, '41Qqy6oJT7', NULL, '2023-04-18 01:07:41', '2023-04-18 01:07:41', NULL, NULL, NULL, NULL),
(2, 2, 17, 'Admin', NULL, 1, NULL, 'admin@onesttech.com', '+880177777777', '1', 0, 6, 4, 3, 7, '[\"team_menu\",\"team_list\",\"team_create\",\"team_update\",\"team_edit\",\"team_delete\",\"team_member_view\",\"team_member_create\",\"team_member_edit\",\"team_member_delete\",\"team_member_assign\",\"team_member_unassign\",\"dashboard\",\"hr_menu\",\"designation_read\",\"designation_create\",\"designation_update\",\"designation_delete\",\"shift_read\",\"shift_create\",\"shift_update\",\"shift_delete\",\"department_read\",\"department_create\",\"department_update\",\"department_delete\",\"user_menu\",\"user_read\",\"profile_view\",\"user_create\",\"user_edit\",\"user_update\",\"user_delete\",\"user_banned\",\"user_unbanned\",\"make_hr\",\"user_permission\",\"profile_image_view\",\"phonebook_profile\",\"support_ticket_profile\",\"advance_profile\",\"commission_profile\",\"salary_profile\",\"project_profile\",\"task_profile\",\"award_profile\",\"travel_profile\",\"attendance_profile\",\"appointment_profile\",\"visit_profile\",\"leave_request_profile\",\"notice_profile\",\"role_read\",\"role_create\",\"role_update\",\"role_delete\",\"leave_menu\",\"leave_type_read\",\"leave_type_create\",\"leave_type_update\",\"leave_type_delete\",\"leave_assign_read\",\"leave_assign_create\",\"leave_assign_update\",\"leave_assign_delete\",\"leave_request_read\",\"leave_request_create\",\"leave_request_store\",\"leave_request_update\",\"leave_request_approve\",\"leave_request_reject\",\"leave_request_delete\",\"appointment_read\",\"appointment_menu\",\"appointment_create\",\"appointment_approve\",\"appointment_reject\",\"appointment_delete\",\"weekend_read\",\"weekend_update\",\"attendance_update\",\"holiday_read\",\"holiday_create\",\"holiday_update\",\"holiday_delete\",\"schedule_read\",\"schedule_create\",\"schedule_update\",\"schedule_delete\",\"attendance_menu\",\"attendance_read\",\"attendance_create\",\"attendance_update\",\"attendance_delete\",\"generate_qr_code\",\"leave_settings_read\",\"leave_settings_update\",\"company_settings_read\",\"company_settings_update\",\"locationApi\",\"company_setup_menu\",\"company_setup_activation\",\"company_setup_configuration\",\"company_setup_ip_whitelist\",\"company_setup_location\",\"location_create\",\"location_store\",\"location_edit\",\"location_update\",\"location_delete\",\"ip_read\",\"ip_create\",\"ip_update\",\"ip_delete\",\"attendance_report_read\",\"live_tracking_read\",\"report_menu\",\"report\",\"claim_read\",\"claim_create\",\"claim_update\",\"claim_delete\",\"payment_read\",\"payment_create\",\"payment_update\",\"payment_delete\",\"visit_menu\",\"visit_read\",\"visit_view\",\"visit_update\",\"payroll_menu\",\"list_payroll_item\",\"create_payroll_item\",\"store_payroll_item\",\"update_payroll_item\",\"delete_payroll_item\",\"view_payroll_item\",\"payroll_item_menu\",\"list_payroll_set\",\"create_payroll_set\",\"store_payroll_set\",\"update_payroll_set\",\"delete_payroll_set\",\"view_payroll_set\",\"edit_payroll_set\",\"payroll_set_menu\",\"advance_salaries_menu\",\"advance_salaries_create\",\"advance_salaries_store\",\"advance_salaries_edit\",\"advance_salaries_update\",\"advance_salaries_delete\",\"advance_salaries_view\",\"advance_salaries_approve\",\"advance_salaries_list\",\"advance_salaries_pay\",\"advance_salaries_invoice\",\"advance_salaries_search\",\"payslip_menu\",\"salary_generate\",\"salary_view\",\"salary_delete\",\"salary_edit\",\"salary_update\",\"salary_payment\",\"payslip_list\",\"advance_type_menu\",\"advance_type_create\",\"advance_type_store\",\"advance_type_edit\",\"advance_type_update\",\"advance_type_delete\",\"advance_type_view\",\"advance_type_list\",\"salary_menu\",\"salary_store\",\"salary_edit\",\"salary_update\",\"salary_delete\",\"salary_view\",\"salary_list\",\"salary_search\",\"salary_pay\",\"salary_invoice\",\"salary_approve\",\"salary_generate\",\"salary_calculate\",\"account_menu\",\"account_create\",\"account_store\",\"account_edit\",\"account_update\",\"account_delete\",\"account_view\",\"account_list\",\"account_search\",\"deposit_menu\",\"deposit_create\",\"deposit_store\",\"deposit_edit\",\"deposit_update\",\"deposit_delete\",\"deposit_list\",\"expense_menu\",\"expense_create\",\"expense_store\",\"expense_edit\",\"expense_update\",\"expense_delete\",\"expense_list\",\"expense_view\",\"expense_approve\",\"expense_invoice\",\"expense_pay\",\"transaction_menu\",\"transaction_create\",\"transaction_store\",\"transaction_edit\",\"transaction_update\",\"transaction_delete\",\"transaction_view\",\"transaction_list\",\"deposit_category_menu\",\"deposit_category_create\",\"deposit_category_store\",\"deposit_category_edit\",\"deposit_category_update\",\"deposit_category_delete\",\"deposit_category_list\",\"payment_method_menu\",\"payment_method_create\",\"payment_method_store\",\"payment_method_edit\",\"payment_method_update\",\"payment_method_delete\",\"payment_method_list\",\"project_menu\",\"project_create\",\"project_store\",\"project_edit\",\"project_update\",\"project_delete\",\"project_view\",\"project_list\",\"project_activity_view\",\"project_member_view\",\"project_member_delete\",\"project_complete\",\"project_payment\",\"project_invoice_view\",\"project_discussion_create\",\"project_discussion_store\",\"project_discussion_edit\",\"project_discussion_update\",\"project_discussion_delete\",\"project_discussion_view\",\"project_discussion_list\",\"project_discussion_comment\",\"project_discussion_reply\",\"project_file_create\",\"project_file_store\",\"project_file_edit\",\"project_file_update\",\"project_file_delete\",\"project_file_view\",\"project_file_list\",\"project_file_download\",\"project_file_comment\",\"project_file_reply\",\"project_notes_create\",\"project_notes_store\",\"project_notes_edit\",\"project_notes_update\",\"project_notes_delete\",\"project_notes_list\",\"client_menu\",\"client_create\",\"client_store\",\"client_edit\",\"client_update\",\"client_delete\",\"client_view\",\"client_list\",\"task_menu\",\"task_create\",\"task_store\",\"task_edit\",\"task_update\",\"task_delete\",\"task_view\",\"task_list\",\"task_activity_view\",\"task_assign_view\",\"task_assign_delete\",\"task_complete\",\"task_discussion_create\",\"task_discussion_store\",\"task_discussion_edit\",\"task_discussion_update\",\"task_discussion_delete\",\"task_discussion_view\",\"task_discussion_list\",\"task_discussion_comment\",\"task_discussion_reply\",\"task_file_create\",\"task_file_store\",\"task_file_edit\",\"task_file_update\",\"task_file_delete\",\"task_file_view\",\"task_file_list\",\"task_file_download\",\"task_file_comment\",\"task_file_reply\",\"task_notes_create\",\"task_notes_store\",\"task_notes_edit\",\"task_notes_update\",\"task_notes_delete\",\"task_notes_list\",\"task_files_comment\",\"award_type_menu\",\"award_type_create\",\"award_type_store\",\"award_type_edit\",\"award_type_update\",\"award_type_delete\",\"award_type_view\",\"award_type_list\",\"award_menu\",\"award_create\",\"award_store\",\"award_edit\",\"award_update\",\"award_delete\",\"award_list\",\"travel_type_menu\",\"travel_type_create\",\"travel_type_store\",\"travel_type_edit\",\"travel_type_update\",\"travel_type_delete\",\"travel_type_view\",\"travel_type_list\",\"travel_menu\",\"travel_create\",\"travel_store\",\"travel_edit\",\"travel_update\",\"travel_delete\",\"travel_list\",\"travel_approve\",\"travel_payment\",\"meeting_menu\",\"meeting_create\",\"meeting_store\",\"meeting_edit\",\"meeting_update\",\"meeting_delete\",\"meeting_list\",\"performance_menu\",\"performance_settings\",\"performance_indicator_menu\",\"performance_indicator_list\",\"performance_indicator_create\",\"performance_indicator_store\",\"performance_indicator_edit\",\"performance_indicator_update\",\"performance_indicator_delete\",\"performance_appraisal_menu\",\"performance_appraisal_create\",\"performance_appraisal_store\",\"performance_appraisal_edit\",\"performance_appraisal_update\",\"performance_appraisal_delete\",\"performance_appraisal_list\",\"performance_appraisal_view\",\"performance_goal_type_menu\",\"performance_goal_type_create\",\"performance_goal_type_store\",\"performance_goal_type_edit\",\"performance_goal_type_update\",\"performance_goal_type_delete\",\"performance_goal_type_list\",\"performance_goal_menu\",\"performance_goal_create\",\"performance_goal_store\",\"performance_goal_edit\",\"performance_goal_update\",\"performance_goal_delete\",\"performance_goal_view\",\"performance_goal_list\",\"performance_competence_type_list\",\"performance_competence_type_menu\",\"performance_competence_type_create\",\"performance_competence_type_store\",\"performance_competence_type_edit\",\"performance_competence_type_update\",\"performance_competence_type_delete\",\"performance_competence_type_view\",\"performance_competence_menu\",\"performance_competence_create\",\"performance_competence_store\",\"performance_competence_edit\",\"performance_competence_update\",\"performance_competence_delete\",\"performance_competence_view\",\"performance_competence_list\",\"app_settings_menu\",\"app_settings_update\",\"language_menu\",\"make_default\",\"sales_menu\",\"sales_products_menu\",\"sales_products_create\",\"sales_products_store\",\"sales_products_edit\",\"sales_products_update\",\"sales_products_delete\",\"sales_products_view\",\"sales_products_history\",\"sales_products_import\",\"sales_product_category_menu\",\"sales_product_category_create\",\"sales_product_category_store\",\"sales_product_category_edit\",\"sales_product_category_update\",\"sales_product_category_delete\",\"sales_product_category_import\",\"sales_product_brand_menu\",\"sales_product_brand_create\",\"sales_product_brand_store\",\"sales_product_brand_edit\",\"sales_product_brand_update\",\"sales_product_brand_delete\",\"sales_product_brand_import\",\"sales_product_unit_menu\",\"sales_product_unit_create\",\"sales_product_unit_store\",\"sales_product_unit_edit\",\"sales_product_unit_update\",\"sales_product_unit_delete\",\"sales_product_unit_import\",\"sales_product_tax_menu\",\"sales_product_tax_create\",\"sales_product_tax_store\",\"sales_product_tax_edit\",\"sales_product_tax_update\",\"sales_product_tax_delete\",\"sales_product_tax_import\",\"sales_product_warehouse_menu\",\"sales_product_warehouse_create\",\"sales_product_warehouse_store\",\"sales_product_warehouse_edit\",\"sales_product_warehouse_update\",\"sales_product_warehouse_delete\",\"sales_product_warehouse_import\",\"sales_product_supplier_menu\",\"sales_product_supplier_create\",\"sales_product_supplier_store\",\"sales_product_supplier_edit\",\"sales_product_supplier_update\",\"sales_product_supplier_delete\",\"sales_product_supplier_import\",\"sales_product_supplier_clear_due\",\"sales_product_barcode_menu\",\"sales_product_barcode_generate\",\"sales_product_stock_adjustment_menu\",\"sales_product_stock_adjustment_create\",\"sales_product_stock_adjustment_store\",\"sales_product_stock_adjustment_edit\",\"sales_product_stock_adjustment_update\",\"sales_product_stock_adjustment_delete\",\"sales_product_stock_count_menu\",\"sales_product_stock_count_create\",\"sales_product_stock_count_store\",\"sales_product_stock_count_edit\",\"sales_product_stock_count_update\",\"sales_product_stock_count_delete\",\"sales_purchase_menu\",\"sales_purchase_create\",\"sales_purchase_store\",\"sales_purchase_edit\",\"sales_purchase_update\",\"sales_purchase_delete\",\"sales_purchase_add_payment\",\"sales_purchase_view_payment\",\"sales_purchase_import\",\"sales_create\",\"sales_store\",\"sales_edit\",\"sales_update\",\"sales_delete\",\"sales_add_payment\",\"sales_view_payment\",\"sales_delivery\",\"sales_invoice\",\"sales_pos_menu\",\"sales_giftcard_menu\",\"sales_giftcard_create\",\"sales_giftcard_store\",\"sales_giftcard_edit\",\"sales_giftcard_update\",\"sales_giftcard_delete\",\"sales_coupon_menu\",\"sales_coupon_create\",\"sales_coupon_store\",\"sales_coupon_edit\",\"sales_coupon_update\",\"sales_coupon_delete\",\"sales_delivery_menu\",\"sales_delivery_store\",\"sales_delivery_edit\",\"sales_delivery_update\",\"sales_delivery_delete\",\"sales_expense_category_menu\",\"sales_expense_category_create\",\"sales_expense_category_store\",\"sales_expense_category_edit\",\"sales_expense_category_update\",\"sales_expense_category_delete\",\"sales_expense_category_import\",\"sales_expense_menu\",\"sales_expense_create\",\"sales_expense_store\",\"sales_expense_edit\",\"sales_expense_update\",\"sales_expense_delete\",\"sales_quotation_menu\",\"sales_quotation_create\",\"sales_quotation_store\",\"sales_quotation_edit\",\"sales_quotation_update\",\"sales_quotation_delete\",\"sales_quotation_sale_create\",\"sales_quotation_purchase_create\",\"sales_transfer_menu\",\"sales_transfer_create\",\"sales_transfer_store\",\"sales_transfer_edit\",\"sales_transfer_update\",\"sales_transfer_delete\",\"sales_transfer_view\",\"sales_return_menu\",\"sales_return_sale_menu\",\"sales_return_sale_create\",\"sales_return_sale_store\",\"sales_return_sale_edit\",\"sales_return_sale_update\",\"sales_return_sale_delete\",\"sales_return_purchase_menu\",\"sales_return_purchase_create\",\"sales_return_purchase_store\",\"sales_return_purchase_edit\",\"sales_return_purchase_update\",\"sales_return_purchase_delete\",\"lead_type_menu\",\"lead_type_create\",\"lead_type_store\",\"lead_type_edit\",\"lead_type_update\",\"lead_type_delete\",\"lead_source_menu\",\"lead_source_create\",\"lead_source_store\",\"lead_source_edit\",\"lead_source_update\",\"lead_source_delete\",\"lead_status_menu\",\"lead_status_create\",\"lead_status_store\",\"lead_status_edit\",\"lead_status_update\",\"lead_status_delete\",\"lead_menu\",\"lead_create\",\"lead_store\",\"lead_edit\",\"lead_update\",\"lead_delete\",\"lead_view\",\"lead_detail_profile\",\"lead_detail_attachment\",\"lead_detail_email\",\"lead_detail_call\",\"lead_detail_note\",\"lead_detail_task\",\"lead_detail_reminder\",\"lead_detail_tag\",\"lead_detail_activities\",\"general_settings_read\",\"general_settings_update\",\"language_create\",\"language_store\",\"language_edit\",\"language_update\",\"language_delete\",\"setup_language\",\"content_menu\",\"content_create\",\"content_store\",\"content_edit\",\"content_update\",\"content_delete\",\"contact_menu\",\"contact_create\",\"contact_store\",\"contact_edit\",\"contact_update\",\"contact_delete\",\"announcement_menu\",\"notice_menu\",\"notice_list\",\"notice_create\",\"notice_update\",\"notice_edit\",\"notice_delete\",\"send_sms_menu\",\"send_sms_list\",\"send_sms_create\",\"send_sms_update\",\"send_sms_edit\",\"send_sms_delete\",\"send_email_menu\",\"send_email_list\",\"send_email_create\",\"send_email_update\",\"send_email_edit\",\"send_email_delete\",\"send_notification_menu\",\"send_notification_list\",\"send_notification_create\",\"send_notification_update\",\"send_notification_edit\",\"send_notification_delete\",\"announcement_menu\",\"notice_menu\",\"notice_list\",\"notice_create\",\"notice_update\",\"notice_edit\",\"notice_delete\",\"send_sms_menu\",\"send_sms_list\",\"send_sms_create\",\"send_sms_update\",\"send_sms_edit\",\"send_sms_delete\",\"send_email_menu\",\"send_email_list\",\"send_email_create\",\"send_email_update\",\"send_email_edit\",\"send_email_delete\",\"send_notification_menu\",\"send_notification_list\",\"send_notification_create\",\"send_notification_update\",\"send_notification_edit\",\"send_notification_delete\",\"support_menu\",\"support_read\",\"support_create\",\"support_reply\",\"support_delete\"]', NULL, NULL, 'EMP-2', 'On Probation', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'ld9X6uTMyZ', 'verified', '2023-04-18 01:07:42', NULL, 'verified', NULL, '$2y$10$DF1z4Y3paHZe.aIqWbRFReZV.pu3g6JBlCPX6vGsLa3rgq6pD4zLS', NULL, 48, 1, NULL, NULL, NULL, NULL, 1, NULL, NULL, NULL, 'Islam', NULL, NULL, 0.00, 'Unmarried', NULL, NULL, 1, 0, 0, 0, 0, 0, 'Asia/Dhaka', NULL, NULL, NULL, NULL, 'B6O3LXILnU', NULL, '2023-04-18 01:07:42', '2023-04-18 01:07:42', NULL, NULL, NULL, NULL),
(3, 2, 17, 'Manager', NULL, 1, NULL, 'manager@onesttech.com', '+88014555887', '0', 0, 3, 17, 4, 33, '[\"team_menu\",\"team_list\",\"team_create\",\"team_update\",\"team_edit\",\"team_delete\",\"team_member_view\",\"team_member_create\",\"team_member_edit\",\"team_member_delete\",\"team_member_assign\",\"team_member_unassign\",\"dashboard\",\"designation_read\",\"designation_create\",\"designation_update\",\"designation_delete\",\"shift_read\",\"shift_create\",\"shift_update\",\"shift_delete\",\"department_read\",\"department_create\",\"department_update\",\"department_delete\",\"user_menu\",\"user_read\",\"profile_view\",\"user_create\",\"user_edit\",\"user_update\",\"user_delete\",\"user_banned\",\"user_unbanned\",\"make_hr\",\"user_permission\",\"profile_image_view\",\"role_read\",\"role_create\",\"role_update\",\"role_delete\",\"leave_menu\",\"leave_type_read\",\"leave_type_create\",\"leave_type_update\",\"leave_type_delete\",\"leave_assign_read\",\"leave_assign_create\",\"leave_assign_update\",\"leave_assign_delete\",\"leave_request_read\",\"leave_request_create\",\"leave_request_approve\",\"leave_request_reject\",\"leave_request_delete\",\"appointment_read\",\"appointment_menu\",\"appointment_create\",\"appointment_approve\",\"appointment_reject\",\"appointment_delete\",\"weekend_read\",\"weekend_update\",\"attendance_update\",\"holiday_read\",\"holiday_create\",\"holiday_update\",\"holiday_delete\",\"schedule_read\",\"schedule_create\",\"schedule_update\",\"schedule_delete\",\"attendance_menu\",\"attendance_read\",\"attendance_create\",\"attendance_update\",\"attendance_delete\",\"leave_settings_read\",\"leave_settings_update\",\"company_settings_read\",\"company_settings_update\",\"locationApi\",\"company_setup_menu\",\"company_setup_activation\",\"company_setup_configuration\",\"company_setup_ip_whitelist\",\"company_setup_location\",\"ip_read\",\"ip_create\",\"ip_update\",\"ip_delete\",\"attendance_report_read\",\"live_tracking_read\",\"report_menu\",\"report\",\"claim_read\",\"claim_create\",\"claim_update\",\"claim_delete\",\"payment_read\",\"payment_create\",\"payment_update\",\"payment_delete\",\"visit_menu\",\"visit_read\",\"visit_view\",\"visit_update\",\"payroll_menu\",\"list_payroll_item\",\"create_payroll_item\",\"store_payroll_item\",\"update_payroll_item\",\"delete_payroll_item\",\"view_payroll_item\",\"payroll_item_menu\",\"list_payroll_set\",\"create_payroll_set\",\"store_payroll_set\",\"update_payroll_set\",\"delete_payroll_set\",\"view_payroll_set\",\"edit_payroll_set\",\"payroll_set_menu\",\"advance_salaries_menu\",\"advance_salaries_create\",\"advance_salaries_store\",\"advance_salaries_edit\",\"advance_salaries_update\",\"advance_salaries_delete\",\"advance_salaries_view\",\"advance_salaries_approve\",\"advance_salaries_list\",\"advance_salaries_pay\",\"advance_salaries_invoice\",\"advance_salaries_search\",\"payslip_menu\",\"salary_generate\",\"salary_view\",\"salary_delete\",\"salary_edit\",\"salary_update\",\"salary_payment\",\"payslip_list\",\"advance_type_menu\",\"advance_type_create\",\"advance_type_store\",\"advance_type_edit\",\"advance_type_update\",\"advance_type_delete\",\"advance_type_view\",\"advance_type_list\",\"salary_menu\",\"salary_store\",\"salary_edit\",\"salary_update\",\"salary_delete\",\"salary_view\",\"salary_list\",\"salary_search\",\"salary_pay\",\"salary_invoice\",\"salary_approve\",\"salary_generate\",\"salary_calculate\",\"account_menu\",\"account_create\",\"account_store\",\"account_edit\",\"account_update\",\"account_delete\",\"account_view\",\"account_list\",\"account_search\",\"deposit_menu\",\"deposit_create\",\"deposit_store\",\"deposit_edit\",\"deposit_update\",\"deposit_delete\",\"deposit_list\",\"expense_menu\",\"expense_create\",\"expense_store\",\"expense_edit\",\"expense_update\",\"expense_delete\",\"expense_list\",\"expense_view\",\"expense_approve\",\"expense_invoice\",\"expense_pay\",\"transaction_menu\",\"transaction_create\",\"transaction_store\",\"transaction_edit\",\"transaction_update\",\"transaction_delete\",\"transaction_view\",\"transaction_list\",\"deposit_category_menu\",\"deposit_category_create\",\"deposit_category_store\",\"deposit_category_edit\",\"deposit_category_update\",\"deposit_category_delete\",\"deposit_category_list\",\"payment_method_menu\",\"payment_method_create\",\"payment_method_store\",\"payment_method_edit\",\"payment_method_update\",\"payment_method_delete\",\"payment_method_list\",\"travel_menu\",\"travel_create\",\"travel_store\",\"travel_edit\",\"travel_update\",\"travel_delete\",\"travel_list\",\"travel_view\",\"travel_approve\",\"travel_invoice\",\"travel_pay\",\"meeting_menu\",\"meeting_create\",\"meeting_store\",\"meeting_edit\",\"meeting_update\",\"meeting_delete\",\"meeting_list\",\"meeting_view\",\"announcement_menu\",\"notice_menu\",\"notice_list\",\"notice_create\",\"notice_update\",\"notice_edit\",\"notice_delete\",\"send_sms_menu\",\"send_sms_list\",\"send_sms_create\",\"send_sms_update\",\"send_sms_edit\",\"send_sms_delete\",\"send_email_menu\",\"send_email_list\",\"send_email_create\",\"send_email_update\",\"send_email_edit\",\"send_email_delete\",\"send_notification_menu\",\"send_notification_list\",\"send_notification_create\",\"send_notification_update\",\"send_notification_edit\",\"send_notification_delete\",\"announcement_menu\",\"notice_menu\",\"notice_list\",\"notice_create\",\"notice_update\",\"notice_edit\",\"notice_delete\",\"send_sms_menu\",\"send_sms_list\",\"send_sms_create\",\"send_sms_update\",\"send_sms_edit\",\"send_sms_delete\",\"send_email_menu\",\"send_email_list\",\"send_email_create\",\"send_email_update\",\"send_email_edit\",\"send_email_delete\",\"send_notification_menu\",\"send_notification_list\",\"send_notification_create\",\"send_notification_update\",\"send_notification_edit\",\"send_notification_delete\",\"support_menu\",\"support_read\",\"support_create\",\"support_reply\",\"support_delete\"]', NULL, NULL, 'EMP-3', 'On Probation', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'CajWyc8J0o', 'verified', '2023-04-18 01:07:42', NULL, 'verified', NULL, '$2y$10$kv8hpgYcc4/gdm9O2kqmSeVY175kT1Knw6ixk7XZjq4ST/z8mMiUq', NULL, 55, 1, NULL, NULL, NULL, NULL, 1, NULL, NULL, NULL, 'Islam', NULL, NULL, 0.00, 'Unmarried', NULL, NULL, 1, 0, 0, 0, 0, 0, 'Asia/Dhaka', NULL, NULL, NULL, NULL, 'MIYFKKOlJv', NULL, '2023-04-18 01:07:42', '2023-04-18 01:07:42', NULL, NULL, NULL, NULL),
(4, 2, 17, 'Staff', NULL, 1, NULL, 'staff@onesttech.com', '+8855412547', '0', 0, 7, 18, 4, 44, '[\"team_menu\",\"team_list\",\"team_create\",\"team_update\",\"team_edit\",\"team_delete\",\"team_member_view\",\"team_member_create\",\"team_member_edit\",\"team_member_delete\",\"team_member_assign\",\"team_member_unassign\",\"dashboard\",\"designation_read\",\"designation_create\",\"designation_update\",\"designation_delete\",\"shift_read\",\"shift_create\",\"shift_update\",\"shift_delete\",\"department_read\",\"department_create\",\"department_update\",\"department_delete\",\"user_menu\",\"user_read\",\"profile_view\",\"user_create\",\"user_edit\",\"user_update\",\"user_delete\",\"user_banned\",\"user_unbanned\",\"make_hr\",\"user_permission\",\"profile_image_view\",\"role_read\",\"role_create\",\"role_update\",\"role_delete\",\"leave_menu\",\"leave_type_read\",\"leave_type_create\",\"leave_type_update\",\"leave_type_delete\",\"leave_assign_read\",\"leave_assign_create\",\"leave_assign_update\",\"leave_assign_delete\",\"leave_request_read\",\"leave_request_create\",\"leave_request_approve\",\"leave_request_reject\",\"leave_request_delete\",\"appointment_read\",\"appointment_menu\",\"appointment_create\",\"appointment_approve\",\"appointment_reject\",\"appointment_delete\",\"weekend_read\",\"weekend_update\",\"attendance_update\",\"holiday_read\",\"holiday_create\",\"holiday_update\",\"holiday_delete\",\"schedule_read\",\"schedule_create\",\"schedule_update\",\"schedule_delete\",\"attendance_menu\",\"attendance_read\",\"attendance_create\",\"attendance_update\",\"attendance_delete\",\"leave_settings_read\",\"leave_settings_update\",\"company_settings_read\",\"company_settings_update\",\"locationApi\",\"company_setup_menu\",\"company_setup_activation\",\"company_setup_configuration\",\"company_setup_ip_whitelist\",\"company_setup_location\",\"ip_read\",\"ip_create\",\"ip_update\",\"ip_delete\",\"attendance_report_read\",\"live_tracking_read\",\"report_menu\",\"report\",\"claim_read\",\"claim_create\",\"claim_update\",\"claim_delete\",\"payment_read\",\"payment_create\",\"payment_update\",\"payment_delete\",\"visit_menu\",\"visit_read\",\"visit_view\",\"visit_update\",\"payroll_menu\",\"list_payroll_item\",\"create_payroll_item\",\"store_payroll_item\",\"update_payroll_item\",\"delete_payroll_item\",\"view_payroll_item\",\"payroll_item_menu\",\"list_payroll_set\",\"create_payroll_set\",\"store_payroll_set\",\"update_payroll_set\",\"delete_payroll_set\",\"view_payroll_set\",\"edit_payroll_set\",\"payroll_set_menu\",\"advance_salaries_menu\",\"advance_salaries_create\",\"advance_salaries_store\",\"advance_salaries_edit\",\"advance_salaries_update\",\"advance_salaries_delete\",\"advance_salaries_view\",\"advance_salaries_approve\",\"advance_salaries_list\",\"advance_salaries_pay\",\"advance_salaries_invoice\",\"advance_salaries_search\",\"payslip_menu\",\"salary_generate\",\"salary_view\",\"salary_delete\",\"salary_edit\",\"salary_update\",\"salary_payment\",\"payslip_list\",\"advance_type_menu\",\"advance_type_create\",\"advance_type_store\",\"advance_type_edit\",\"advance_type_update\",\"advance_type_delete\",\"advance_type_view\",\"advance_type_list\",\"salary_menu\",\"salary_store\",\"salary_edit\",\"salary_update\",\"salary_delete\",\"salary_view\",\"salary_list\",\"salary_search\",\"salary_pay\",\"salary_invoice\",\"salary_approve\",\"salary_generate\",\"salary_calculate\",\"account_menu\",\"account_create\",\"account_store\",\"account_edit\",\"account_update\",\"account_delete\",\"account_view\",\"account_list\",\"account_search\",\"deposit_menu\",\"deposit_create\",\"deposit_store\",\"deposit_edit\",\"deposit_update\",\"deposit_delete\",\"deposit_list\",\"expense_menu\",\"expense_create\",\"expense_store\",\"expense_edit\",\"expense_update\",\"expense_delete\",\"expense_list\",\"expense_view\",\"expense_approve\",\"expense_invoice\",\"expense_pay\",\"transaction_menu\",\"transaction_create\",\"transaction_store\",\"transaction_edit\",\"transaction_update\",\"transaction_delete\",\"transaction_view\",\"transaction_list\",\"deposit_category_menu\",\"deposit_category_create\",\"deposit_category_store\",\"deposit_category_edit\",\"deposit_category_update\",\"deposit_category_delete\",\"deposit_category_list\",\"payment_method_menu\",\"payment_method_create\",\"payment_method_store\",\"payment_method_edit\",\"payment_method_update\",\"payment_method_delete\",\"payment_method_list\",\"travel_menu\",\"travel_create\",\"travel_store\",\"travel_edit\",\"travel_update\",\"travel_delete\",\"travel_list\",\"travel_view\",\"travel_approve\",\"travel_invoice\",\"travel_pay\",\"meeting_menu\",\"meeting_create\",\"meeting_store\",\"meeting_edit\",\"meeting_update\",\"meeting_delete\",\"meeting_list\",\"meeting_view\",\"announcement_menu\",\"notice_menu\",\"notice_list\",\"notice_create\",\"notice_update\",\"notice_edit\",\"notice_delete\",\"send_sms_menu\",\"send_sms_list\",\"send_sms_create\",\"send_sms_update\",\"send_sms_edit\",\"send_sms_delete\",\"send_email_menu\",\"send_email_list\",\"send_email_create\",\"send_email_update\",\"send_email_edit\",\"send_email_delete\",\"send_notification_menu\",\"send_notification_list\",\"send_notification_create\",\"send_notification_update\",\"send_notification_edit\",\"send_notification_delete\",\"announcement_menu\",\"notice_menu\",\"notice_list\",\"notice_create\",\"notice_update\",\"notice_edit\",\"notice_delete\",\"send_sms_menu\",\"send_sms_list\",\"send_sms_create\",\"send_sms_update\",\"send_sms_edit\",\"send_sms_delete\",\"send_email_menu\",\"send_email_list\",\"send_email_create\",\"send_email_update\",\"send_email_edit\",\"send_email_delete\",\"send_notification_menu\",\"send_notification_list\",\"send_notification_create\",\"send_notification_update\",\"send_notification_edit\",\"send_notification_delete\",\"support_menu\",\"support_read\",\"support_create\",\"support_reply\",\"support_delete\"]', NULL, NULL, 'EMP-4', 'On Probation', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'hU66naB72V', 'verified', '2023-04-18 01:07:42', NULL, 'verified', NULL, '$2y$10$eot1OOx6RKwJUJROBgJjhuXTicP4CGOPAITl9J4RVM0phN2zPbphK', NULL, 48, 1, NULL, NULL, NULL, NULL, 1, NULL, NULL, NULL, 'Islam', NULL, NULL, 0.00, 'Unmarried', NULL, NULL, 1, 0, 0, 0, 0, 0, 'Asia/Dhaka', NULL, NULL, NULL, NULL, 'fJFyFsjsZo', NULL, '2023-04-18 01:07:42', '2023-04-18 01:07:42', NULL, NULL, NULL, NULL),
(5, 2, 17, 'Mr. Client', NULL, 1, NULL, 'client@onesttech.com', '+885541254701', '0', 0, 9, 18, 4, 44, '[\"dashboard\",\"profile_view\",\"profile_update\",\"profile_change_password\",\"user_menu\",\"user_read\",\"profile_view\",\"profile_image_view\",\"project_menu\",\"project_edit\",\"project_update\",\"project_view\",\"project_list\",\"project_activity_view\",\"project_member_view\",\"project_complete\",\"project_payment\",\"project_invoice_view\",\"project_discussion_create\",\"project_discussion_store\",\"project_discussion_edit\",\"project_discussion_update\",\"project_discussion_view\",\"project_discussion_list\",\"project_discussion_comment\",\"project_discussion_reply\",\"project_file_create\",\"project_file_store\",\"project_file_edit\",\"project_file_update\",\"project_file_view\",\"project_file_list\",\"project_file_download\",\"project_file_comment\",\"project_file_reply\",\"project_notes_create\",\"project_notes_store\",\"project_notes_edit\",\"project_notes_update\",\"project_notes_list\",\"client_menu\",\"client_edit\",\"client_update\",\"client_view\",\"client_list\",\"task_menu\",\"task_create\",\"task_store\",\"task_edit\",\"task_update\",\"task_view\",\"task_list\",\"task_activity_view\",\"task_assign_view\",\"task_complete\",\"task_discussion_create\",\"task_discussion_store\",\"task_discussion_edit\",\"task_discussion_update\",\"task_discussion_view\",\"task_discussion_list\",\"task_discussion_comment\",\"task_discussion_reply\",\"task_file_create\",\"task_file_store\",\"task_file_edit\",\"task_file_update\",\"task_file_view\",\"task_file_list\",\"task_file_download\",\"task_file_comment\",\"task_file_reply\",\"task_notes_create\",\"task_notes_store\",\"task_notes_edit\",\"task_notes_list\",\"task_files_comment\",\"support_menu\",\"support_read\",\"support_create\",\"support_reply\"]', NULL, NULL, 'EMP-5', 'On Probation', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'K8Bw5myFOD', 'verified', '2023-04-18 01:07:42', NULL, 'verified', NULL, '$2y$10$WSCsJkTWM5AKmJF4t.yOseRznBMAL2VR1gbLEkUhnkiTW7gjDGMgy', NULL, 52, 1, NULL, NULL, NULL, NULL, 1, NULL, NULL, NULL, 'Islam', NULL, NULL, 0.00, 'Unmarried', NULL, NULL, 1, 0, 0, 0, 0, 0, 'Asia/Dhaka', NULL, NULL, NULL, NULL, 'iNoh55BEUI', NULL, '2023-04-18 01:07:42', '2023-04-18 01:07:42', NULL, NULL, NULL, NULL);

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

--
-- Table structure for table `user_devices`
--

CREATE TABLE `user_devices` (
  `id` bigint UNSIGNED NOT NULL,
  `user_id` bigint UNSIGNED NOT NULL,
  `device_token` longtext COLLATE utf8mb4_unicode_ci COMMENT 'device_token from firebase',
  `device_name` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT 'device_name from firebase',
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Table structure for table `virtual_meetings`
--

CREATE TABLE `virtual_meetings` (
  `id` bigint UNSIGNED NOT NULL,
  `title` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `duration` int DEFAULT '0' COMMENT '0 means unlimited',
  `start_time` timestamp NULL DEFAULT NULL,
  `end_time` timestamp NULL DEFAULT NULL,
  `host` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'jitsi',
  `description` text COLLATE utf8mb4_unicode_ci,
  `datetime` text COLLATE utf8mb4_unicode_ci,
  `status_id` bigint UNSIGNED NOT NULL DEFAULT '1',
  `company_id` bigint UNSIGNED NOT NULL,
  `created_by` bigint UNSIGNED NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Table structure for table `visits`
--

CREATE TABLE `visits` (
  `id` bigint UNSIGNED NOT NULL,
  `company_id` bigint UNSIGNED NOT NULL,
  `date` date NOT NULL,
  `title` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `description` text COLLATE utf8mb4_unicode_ci,
  `user_id` bigint UNSIGNED NOT NULL,
  `status` enum('created','started','reached','completed','cancelled') COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'created',
  `cancel_note` text COLLATE utf8mb4_unicode_ci,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `visits`
--

INSERT INTO `visits` (`id`, `company_id`, `date`, `title`, `description`, `user_id`, `status`, `cancel_note`, `created_at`, `updated_at`) VALUES
(1, 1, '2013-02-16', 'Quasi officiis est odit sunt perferendis necessitatibus dolorem.', 'Voluptate et et numquam illum hic adipisci. Molestiae aut expedita necessitatibus repellat sed. At quas autem quaerat fugit.', 1, 'completed', NULL, '2023-04-18 01:07:43', '2023-04-18 01:07:43'),
(2, 1, '2014-01-17', 'Velit corrupti modi dolor harum aliquid et laudantium soluta.', 'Ullam repudiandae doloribus maxime ducimus consequatur. Eos magni animi sapiente aut qui saepe. Voluptatem sint blanditiis in sed. Consequatur consequatur et aut provident eveniet.', 1, 'cancelled', NULL, '2023-04-18 01:07:43', '2023-04-18 01:07:43'),
(3, 1, '1974-01-22', 'Suscipit dolores quod dolorum explicabo placeat aperiam.', 'Doloribus et eum fuga natus voluptatibus deserunt iure. Adipisci deleniti aut voluptatem labore ut occaecati. Magnam praesentium sed possimus quia est impedit libero repellat.', 1, 'reached', NULL, '2023-04-18 01:07:43', '2023-04-18 01:07:43'),
(4, 1, '1995-10-24', 'Eveniet quia modi explicabo dolores.', 'Corporis veritatis aliquam voluptatem possimus. Et ullam consectetur enim a qui. Sit rerum id quisquam velit distinctio et nobis eos.', 1, 'cancelled', NULL, '2023-04-18 01:07:43', '2023-04-18 01:07:43'),
(5, 1, '2011-05-22', 'Odit laborum odit tempora ea.', 'Aliquam nisi ad cum exercitationem consequatur natus et officiis. Consequuntur commodi laboriosam numquam beatae dicta accusamus.', 1, 'started', NULL, '2023-04-18 01:07:43', '2023-04-18 01:07:43'),
(6, 1, '2014-03-09', 'Veritatis repudiandae laudantium quasi non qui.', 'Ab quasi et eum ducimus deserunt. Molestiae ipsam nobis omnis quis in. Ducimus voluptatem quia ipsum repellendus quod sed. Occaecati dolorem fugit rerum repudiandae cupiditate officia veniam tempore.', 1, 'completed', NULL, '2023-04-18 01:07:43', '2023-04-18 01:07:43'),
(7, 2, '2019-07-03', 'Et laborum minima nulla dolores sed.', 'Incidunt quis qui debitis est consequatur vero distinctio. Earum itaque voluptatem aut qui.', 2, 'started', NULL, '2023-04-18 01:07:43', '2023-04-18 01:07:43'),
(8, 2, '1987-01-01', 'Pariatur voluptas ipsa qui enim est eum reiciendis.', 'Laborum in perferendis dolorem facilis quia enim. Officiis ad quo repellat unde et reiciendis. Exercitationem laboriosam ad pariatur perspiciatis.', 2, 'reached', NULL, '2023-04-18 01:07:43', '2023-04-18 01:07:43'),
(9, 2, '1999-04-11', 'Exercitationem architecto odit tempore assumenda.', 'Ea consectetur ut distinctio. Vitae consequuntur rem ab sunt expedita. Modi voluptates veritatis eos et impedit dignissimos qui.', 2, 'cancelled', NULL, '2023-04-18 01:07:43', '2023-04-18 01:07:43'),
(10, 2, '1985-03-03', 'Aut nostrum nulla beatae iste nihil debitis consequatur.', 'Blanditiis quo officia ea est illum et ut. Pariatur praesentium et ut et pariatur. Neque iure doloremque eveniet.', 2, 'completed', NULL, '2023-04-18 01:07:43', '2023-04-18 01:07:43'),
(11, 2, '1999-08-09', 'Quisquam nobis sunt et odit repellendus beatae aut ea.', 'Consequatur quaerat dolores harum consectetur. Magni nisi quo omnis quos dolores nobis magni. Inventore et quia aliquam itaque.', 2, 'cancelled', NULL, '2023-04-18 01:07:43', '2023-04-18 01:07:43'),
(12, 2, '2004-02-15', 'Eius dolor sint odit expedita et a.', 'Et in nobis iure enim quia. Provident ducimus sint pariatur dolorem perspiciatis earum voluptate qui. Ducimus ipsa magni est dolorum.', 2, 'completed', NULL, '2023-04-18 01:07:43', '2023-04-18 01:07:43'),
(13, 2, '1981-02-20', 'Doloremque excepturi magnam corporis ratione.', 'Cupiditate eum et nesciunt quia similique. Deleniti iusto nemo officiis qui. In quaerat laborum quaerat quis. In illum molestias est maxime.', 3, 'reached', NULL, '2023-04-18 01:07:43', '2023-04-18 01:07:43'),
(14, 2, '1974-08-21', 'Tempora et dolores aperiam quia ducimus dolor quia.', 'Et quo quam exercitationem sunt vel. Molestiae impedit sit nam est quo in aut. Reiciendis a doloremque laboriosam omnis rerum vel earum harum.', 3, 'created', NULL, '2023-04-18 01:07:43', '2023-04-18 01:07:43'),
(15, 2, '2001-05-05', 'Amet consequuntur eaque sit nihil.', 'Ullam incidunt consequuntur voluptas vel. Repudiandae corrupti ea nam suscipit ut hic quos ab. Natus maxime ut mollitia id. Sit maxime ducimus eligendi natus exercitationem eveniet voluptas.', 3, 'reached', NULL, '2023-04-18 01:07:43', '2023-04-18 01:07:43'),
(16, 2, '2002-04-22', 'Modi vel magnam rerum maxime.', 'Maiores ab repudiandae nihil ipsum ullam sequi. Iusto numquam distinctio corporis maxime non praesentium velit id. Harum accusantium porro esse molestiae ullam voluptas.', 3, 'completed', NULL, '2023-04-18 01:07:43', '2023-04-18 01:07:43'),
(17, 2, '1995-11-17', 'Delectus doloribus quasi fugit assumenda ut omnis.', 'Numquam qui fuga doloremque et cumque ut. Est sunt quaerat nesciunt placeat impedit non. Dolores sit dolorem odio sunt corrupti magnam nesciunt.', 3, 'completed', NULL, '2023-04-18 01:07:43', '2023-04-18 01:07:43'),
(18, 2, '1971-08-07', 'Exercitationem voluptates eaque sequi repellat delectus quia doloremque.', 'Minus consequatur aliquam pariatur dolorem autem tempora ut aliquam. Atque maiores ea laborum aut et tempore alias.', 3, 'created', NULL, '2023-04-18 01:07:43', '2023-04-18 01:07:43'),
(19, 2, '2020-07-18', 'Eius et eaque ducimus cupiditate quia distinctio.', 'Numquam occaecati quis et delectus quia. Nisi repudiandae harum quasi at laborum beatae est. Nemo excepturi dolorum libero aperiam vitae labore dolor est.', 4, 'completed', NULL, '2023-04-18 01:07:43', '2023-04-18 01:07:43'),
(20, 2, '1993-04-16', 'Sequi sed consequatur accusamus voluptates adipisci consectetur.', 'Exercitationem inventore illum aspernatur. Maiores rem sapiente qui maiores est commodi magni. Rerum asperiores qui eius esse fugit.', 4, 'reached', NULL, '2023-04-18 01:07:43', '2023-04-18 01:07:43'),
(21, 2, '2012-06-24', 'Corrupti beatae similique aliquid sit perferendis dicta.', 'Eligendi voluptas id corporis rem. Ut id fugiat ullam tempora. Omnis iure aut exercitationem est ducimus.', 4, 'started', NULL, '2023-04-18 01:07:43', '2023-04-18 01:07:43'),
(22, 2, '1981-01-21', 'Laboriosam ipsam odio corrupti sequi est.', 'Dolore temporibus quisquam non voluptatem ut maxime. Placeat et ullam eius et possimus aut. Error expedita aspernatur repudiandae doloremque culpa.', 4, 'completed', NULL, '2023-04-18 01:07:43', '2023-04-18 01:07:43'),
(23, 2, '1992-06-28', 'Tempora molestias sequi itaque impedit accusantium assumenda esse.', 'Magnam qui ut necessitatibus unde dicta vel. Esse omnis non harum deleniti nihil molestiae. Et voluptatibus eos quidem animi tempore nihil corrupti ea.', 4, 'cancelled', NULL, '2023-04-18 01:07:43', '2023-04-18 01:07:43'),
(24, 2, '2017-01-31', 'Veritatis voluptas velit necessitatibus.', 'Molestiae reiciendis totam dolore consequuntur vitae. Quidem qui similique natus. Ipsa eos placeat sed sunt doloribus veritatis quo. Eos dolorem eius delectus vitae et eos.', 4, 'completed', NULL, '2023-04-18 01:07:43', '2023-04-18 01:07:43'),
(25, 2, '2021-04-07', 'Labore optio velit eos aliquid et.', 'Harum sit distinctio quae consequatur neque deleniti. Hic placeat enim ullam rerum. Blanditiis qui et rerum nemo aut voluptates dignissimos.', 5, 'reached', NULL, '2023-04-18 01:07:43', '2023-04-18 01:07:43'),
(26, 2, '2005-08-07', 'Cumque non eos autem qui tenetur consectetur id mollitia.', 'Doloremque quas at rerum et quos neque nihil. Vel repudiandae delectus similique praesentium harum deserunt. Aspernatur veniam ipsa tempore doloremque. Et at omnis quasi quia pariatur.', 5, 'started', NULL, '2023-04-18 01:07:43', '2023-04-18 01:07:43'),
(27, 2, '2007-08-01', 'Odit illo incidunt minima ut maiores eos.', 'Cupiditate aut aut labore. Non corporis laudantium ut mollitia ipsum corrupti occaecati voluptatibus. Quod quisquam quo corporis voluptatem sunt et et nihil.', 5, 'completed', NULL, '2023-04-18 01:07:43', '2023-04-18 01:07:43'),
(28, 2, '1998-09-02', 'Esse non quasi omnis non quia cum dicta.', 'Molestias sit aspernatur et aut perspiciatis animi. Minus voluptatum quas vero ut quod dolorem odio. Quibusdam repellat rerum et expedita soluta esse neque.', 5, 'created', NULL, '2023-04-18 01:07:43', '2023-04-18 01:07:43'),
(29, 2, '2001-03-17', 'Voluptatibus nihil quis aut dolores tempore.', 'Qui necessitatibus minus deserunt quo qui ut. Fugit impedit quos eos nobis nostrum aut. Quia molestiae natus maxime minima numquam voluptatem odit voluptas.', 5, 'cancelled', NULL, '2023-04-18 01:07:43', '2023-04-18 01:07:43'),
(30, 2, '2008-01-18', 'Praesentium provident sunt delectus.', 'Provident et in alias unde aperiam accusantium. Asperiores dolorum velit doloribus unde. Aut sunt nihil molestias sit et sequi reiciendis. Asperiores aspernatur et nostrum quisquam magnam.', 5, 'created', NULL, '2023-04-18 01:07:43', '2023-04-18 01:07:43');

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

--
-- Table structure for table `visit_images`
--

CREATE TABLE `visit_images` (
  `id` bigint UNSIGNED NOT NULL,
  `imageable_id` int UNSIGNED NOT NULL,
  `imageable_type` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `file_title` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `file_id` int NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Table structure for table `visit_notes`
--

CREATE TABLE `visit_notes` (
  `id` bigint UNSIGNED NOT NULL,
  `visit_id` bigint UNSIGNED NOT NULL,
  `note` text COLLATE utf8mb4_unicode_ci NOT NULL,
  `status` enum('created','started','reached') COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'created',
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `visit_notes`
--

INSERT INTO `visit_notes` (`id`, `visit_id`, `note`, `status`, `created_at`, `updated_at`) VALUES
(1, 1, 'Autem omnis soluta nesciunt. Ex consectetur explicabo perferendis quae quos et nisi. Blanditiis ut quasi molestiae doloribus doloremque. Excepturi fugiat voluptate alias sapiente sunt.', 'created', '2023-04-18 01:07:43', '2023-04-18 01:07:43'),
(2, 2, 'Quas sit nihil quia. Et voluptate dolore voluptate quo et repellendus. Omnis labore facere totam deleniti maiores. Unde quidem eos cum.', 'created', '2023-04-18 01:07:43', '2023-04-18 01:07:43'),
(3, 3, 'Nemo quam molestiae harum autem similique ut dicta. Iure mollitia excepturi consequatur iste itaque perferendis assumenda. Praesentium fugiat qui magnam et neque.', 'created', '2023-04-18 01:07:43', '2023-04-18 01:07:43'),
(4, 4, 'Quo ipsum eum enim unde eligendi. Eius voluptas reprehenderit exercitationem. Quis deleniti accusamus suscipit minus iusto similique consectetur.', 'created', '2023-04-18 01:07:43', '2023-04-18 01:07:43'),
(5, 5, 'Accusantium est magnam et velit est occaecati. Voluptates qui sed officia sint blanditiis non non. Quidem vero officia corporis sunt aut ullam. Perferendis perspiciatis rem aut quia praesentium est.', 'created', '2023-04-18 01:07:43', '2023-04-18 01:07:43'),
(6, 6, 'Natus eveniet dolore distinctio quo autem. Eum quam enim voluptates molestiae eveniet rerum sit. Quod dicta nisi quas error inventore. Facilis dolor harum soluta.', 'created', '2023-04-18 01:07:43', '2023-04-18 01:07:43'),
(7, 7, 'Similique eligendi doloremque aut id ipsum. Modi sed debitis rerum ea illum sit. Omnis quis qui consequatur in id ducimus.', 'created', '2023-04-18 01:07:43', '2023-04-18 01:07:43'),
(8, 8, 'Libero voluptatem non optio. Sapiente aut sed vel aspernatur omnis. Accusamus ipsam voluptate consequuntur voluptatem nobis velit molestias. Culpa sit ipsum voluptate sed quod ex.', 'created', '2023-04-18 01:07:43', '2023-04-18 01:07:43'),
(9, 9, 'Id dolor voluptate et quia sunt. Nesciunt qui alias beatae possimus quis. Quo laudantium deserunt enim est sed. Fugiat eos vitae repellendus eveniet velit.', 'created', '2023-04-18 01:07:43', '2023-04-18 01:07:43'),
(10, 10, 'Fuga ut facere maiores ullam quas ipsam. Soluta et voluptatum quam laudantium esse expedita corrupti. Non et culpa incidunt odit ut porro.', 'created', '2023-04-18 01:07:43', '2023-04-18 01:07:43'),
(11, 11, 'Magni qui iste labore reiciendis nam deserunt fugiat. Optio rerum quia non. Commodi pariatur nam earum dolorem beatae distinctio. Aut est culpa vitae. Saepe consequatur ut sint quas maxime id.', 'created', '2023-04-18 01:07:43', '2023-04-18 01:07:43'),
(12, 12, 'Saepe odit veniam est cum autem. Non iusto possimus et ex. Eaque quas possimus mollitia consequuntur sunt.', 'created', '2023-04-18 01:07:43', '2023-04-18 01:07:43'),
(13, 13, 'Dicta dolores ut animi ipsa sed quisquam. Maxime totam voluptatem dolores ut doloribus ea. Unde totam voluptas perspiciatis cum laboriosam.', 'created', '2023-04-18 01:07:43', '2023-04-18 01:07:43'),
(14, 14, 'Ab voluptatem voluptate adipisci officia. Inventore odit aliquid aut fuga. Nesciunt et error ducimus ratione.', 'created', '2023-04-18 01:07:43', '2023-04-18 01:07:43'),
(15, 15, 'Optio velit perspiciatis nihil magnam et. Voluptatem molestias laborum earum sint culpa fugiat. Excepturi aperiam quaerat quo unde occaecati. Earum aut accusamus sit rem ipsam unde.', 'created', '2023-04-18 01:07:43', '2023-04-18 01:07:43'),
(16, 16, 'Dignissimos dolorum eius doloribus in iste vel. Facilis accusamus cum id autem architecto voluptas. Atque non officia quo corporis quia. Illo beatae sed sunt ipsam sapiente autem.', 'created', '2023-04-18 01:07:43', '2023-04-18 01:07:43'),
(17, 17, 'Blanditiis esse et sed quae quibusdam ad perferendis. Dolorem officia nulla aut. Aut aliquam ut numquam excepturi cumque cum sit.', 'created', '2023-04-18 01:07:43', '2023-04-18 01:07:43'),
(18, 18, 'Reprehenderit qui laborum facere veniam incidunt. Molestias fugit est deleniti mollitia. Rerum et animi aspernatur sed eveniet qui eum. Aliquam est itaque nobis eligendi doloribus.', 'created', '2023-04-18 01:07:43', '2023-04-18 01:07:43'),
(19, 19, 'Illo sed aliquam velit ipsa aliquid numquam. Voluptates quas libero harum enim quia. Enim impedit aut officia est dolorum provident non.', 'created', '2023-04-18 01:07:43', '2023-04-18 01:07:43'),
(20, 20, 'Explicabo omnis inventore at veniam. Corrupti id et veritatis nemo molestiae non pariatur aut. Quo qui quas cupiditate voluptas natus odit sed. Doloremque et aperiam id enim.', 'created', '2023-04-18 01:07:43', '2023-04-18 01:07:43'),
(21, 21, 'Ad eos accusamus ut dolorem. Commodi a aliquam sed provident recusandae laudantium. Blanditiis omnis deleniti qui ratione qui illum ut.', 'created', '2023-04-18 01:07:43', '2023-04-18 01:07:43'),
(22, 22, 'Voluptas quos tempore consequatur ipsa aut voluptatum. Et optio rerum numquam fugiat. Vel dicta et porro aut rerum sit.', 'created', '2023-04-18 01:07:43', '2023-04-18 01:07:43'),
(23, 23, 'Consequatur ea perferendis quos et consequatur occaecati voluptas. Recusandae voluptate sit amet voluptatibus. Eaque nulla ut quas exercitationem.', 'created', '2023-04-18 01:07:43', '2023-04-18 01:07:43'),
(24, 24, 'Nulla itaque soluta voluptate unde fuga voluptatem. Quis enim quo architecto qui et. Sed molestias est cupiditate exercitationem occaecati nobis.', 'created', '2023-04-18 01:07:43', '2023-04-18 01:07:43'),
(25, 25, 'Iste et eaque sapiente vel sit quaerat. Perspiciatis eum alias sed dolores. Fugiat eaque tempora culpa assumenda deleniti sed vitae. Quis a et dolores nihil corrupti illum qui.', 'created', '2023-04-18 01:07:43', '2023-04-18 01:07:43'),
(26, 26, 'Nihil sit delectus quam adipisci cum dicta magni. Vel quos magni vel vero. Non vel omnis vero quia asperiores dignissimos. Dolores aut minus sed voluptas sit praesentium.', 'created', '2023-04-18 01:07:43', '2023-04-18 01:07:43'),
(27, 27, 'Earum quo est iusto non eum. Inventore quos consectetur debitis consequatur. Dolor aliquam itaque at eum eligendi quod velit. Vel vel harum aut.', 'created', '2023-04-18 01:07:43', '2023-04-18 01:07:43'),
(28, 28, 'Qui magnam dolorem quibusdam fuga aut aspernatur doloremque. Ullam eligendi omnis voluptatem. Quo veritatis ut enim dolor qui.', 'created', '2023-04-18 01:07:43', '2023-04-18 01:07:43'),
(29, 29, 'Aperiam ea a quaerat unde voluptas quia fugit. Et consequatur et fugiat sapiente. Qui voluptatem consequuntur perferendis eos omnis tempore delectus.', 'created', '2023-04-18 01:07:43', '2023-04-18 01:07:43'),
(30, 30, 'Quia cum libero sit odit excepturi qui qui corrupti. Voluptatem maxime vel ducimus aliquam error. Nihil necessitatibus nostrum vel dolores consequatur. Optio eum quam aut magni.', 'created', '2023-04-18 01:07:43', '2023-04-18 01:07:43');

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

--
-- Table structure for table `visit_schedules`
--

CREATE TABLE `visit_schedules` (
  `id` bigint UNSIGNED NOT NULL,
  `title` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `visit_id` bigint UNSIGNED NOT NULL,
  `latitude` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `longitude` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `note` longtext COLLATE utf8mb4_unicode_ci,
  `status` enum('created','started','reached','end') COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'created',
  `started_at` timestamp NULL DEFAULT NULL,
  `reached_at` timestamp NULL DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `visit_schedules`
--

INSERT INTO `visit_schedules` (`id`, `title`, `visit_id`, `latitude`, `longitude`, `note`, `status`, `started_at`, `reached_at`, `created_at`, `updated_at`) VALUES
(1, 'Reached Destination', 1, NULL, NULL, NULL, 'reached', NULL, NULL, '2023-04-18 01:07:43', '2023-04-18 01:07:43'),
(2, 'Visit Rescheduled', 2, NULL, NULL, NULL, 'created', NULL, NULL, '2023-04-18 01:07:43', '2023-04-18 01:07:43'),
(3, 'End Visit', 3, NULL, NULL, NULL, 'end', NULL, NULL, '2023-04-18 01:07:43', '2023-04-18 01:07:43'),
(4, 'End Visit', 4, NULL, NULL, NULL, 'end', NULL, NULL, '2023-04-18 01:07:43', '2023-04-18 01:07:43'),
(5, 'Started Visit', 5, NULL, NULL, NULL, 'started', NULL, NULL, '2023-04-18 01:07:43', '2023-04-18 01:07:43'),
(6, 'Reached Destination', 6, NULL, NULL, NULL, 'reached', NULL, NULL, '2023-04-18 01:07:43', '2023-04-18 01:07:43'),
(7, 'Started Visit', 7, NULL, NULL, NULL, 'started', NULL, NULL, '2023-04-18 01:07:43', '2023-04-18 01:07:43'),
(8, 'End Visit', 8, NULL, NULL, NULL, 'end', NULL, NULL, '2023-04-18 01:07:43', '2023-04-18 01:07:43'),
(9, 'Visit Rescheduled', 9, NULL, NULL, NULL, 'created', NULL, NULL, '2023-04-18 01:07:43', '2023-04-18 01:07:43'),
(10, 'End Visit', 10, NULL, NULL, NULL, 'end', NULL, NULL, '2023-04-18 01:07:43', '2023-04-18 01:07:43'),
(11, 'End Visit', 11, NULL, NULL, NULL, 'end', NULL, NULL, '2023-04-18 01:07:43', '2023-04-18 01:07:43'),
(12, 'Visit Rescheduled', 12, NULL, NULL, NULL, 'created', NULL, NULL, '2023-04-18 01:07:43', '2023-04-18 01:07:43'),
(13, 'End Visit', 13, NULL, NULL, NULL, 'end', NULL, NULL, '2023-04-18 01:07:43', '2023-04-18 01:07:43'),
(14, 'End Visit', 14, NULL, NULL, NULL, 'end', NULL, NULL, '2023-04-18 01:07:43', '2023-04-18 01:07:43'),
(15, 'Reached Destination', 15, NULL, NULL, NULL, 'reached', NULL, NULL, '2023-04-18 01:07:43', '2023-04-18 01:07:43'),
(16, 'Reached Destination', 16, NULL, NULL, NULL, 'reached', NULL, NULL, '2023-04-18 01:07:43', '2023-04-18 01:07:43'),
(17, 'Reached Destination', 17, NULL, NULL, NULL, 'reached', NULL, NULL, '2023-04-18 01:07:43', '2023-04-18 01:07:43'),
(18, 'Reached Destination', 18, NULL, NULL, NULL, 'reached', NULL, NULL, '2023-04-18 01:07:43', '2023-04-18 01:07:43'),
(19, 'End Visit', 19, NULL, NULL, NULL, 'end', NULL, NULL, '2023-04-18 01:07:43', '2023-04-18 01:07:43'),
(20, 'End Visit', 20, NULL, NULL, NULL, 'end', NULL, NULL, '2023-04-18 01:07:43', '2023-04-18 01:07:43'),
(21, 'Visit Rescheduled', 21, NULL, NULL, NULL, 'created', NULL, NULL, '2023-04-18 01:07:43', '2023-04-18 01:07:43'),
(22, 'Started Visit', 22, NULL, NULL, NULL, 'started', NULL, NULL, '2023-04-18 01:07:43', '2023-04-18 01:07:43'),
(23, 'Started Visit', 23, NULL, NULL, NULL, 'started', NULL, NULL, '2023-04-18 01:07:43', '2023-04-18 01:07:43'),
(24, 'Reached Destination', 24, NULL, NULL, NULL, 'reached', NULL, NULL, '2023-04-18 01:07:43', '2023-04-18 01:07:43'),
(25, 'Reached Destination', 25, NULL, NULL, NULL, 'reached', NULL, NULL, '2023-04-18 01:07:43', '2023-04-18 01:07:43'),
(26, 'Started Visit', 26, NULL, NULL, NULL, 'started', NULL, NULL, '2023-04-18 01:07:43', '2023-04-18 01:07:43'),
(27, 'End Visit', 27, NULL, NULL, NULL, 'end', NULL, NULL, '2023-04-18 01:07:43', '2023-04-18 01:07:43'),
(28, 'Visit Rescheduled', 28, NULL, NULL, NULL, 'created', NULL, NULL, '2023-04-18 01:07:43', '2023-04-18 01:07:43'),
(29, 'Reached Destination', 29, NULL, NULL, NULL, 'reached', NULL, NULL, '2023-04-18 01:07:43', '2023-04-18 01:07:43'),
(30, 'Reached Destination', 30, NULL, NULL, NULL, 'reached', NULL, NULL, '2023-04-18 01:07:43', '2023-04-18 01:07:43');

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

--
-- Table structure for table `web_to_leads`
--

CREATE TABLE `web_to_leads` (
  `id` bigint UNSIGNED NOT NULL,
  `form_key` varchar(32) COLLATE utf8mb4_unicode_ci NOT NULL,
  `lead_source` int NOT NULL,
  `lead_status` int NOT NULL,
  `notify_lead_imported` int NOT NULL DEFAULT '1',
  `notify_type` varchar(20) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `notify_ids` mediumtext COLLATE utf8mb4_unicode_ci,
  `responsible` int NOT NULL DEFAULT '0',
  `name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `form_data` mediumtext COLLATE utf8mb4_unicode_ci,
  `recaptcha` int NOT NULL DEFAULT '0',
  `submit_btn_name` varchar(40) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `submit_btn_text_color` varchar(10) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '#ffffff',
  `submit_btn_bg_color` varchar(10) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '#84c529',
  `success_submit_msg` text COLLATE utf8mb4_unicode_ci,
  `submit_action` int NOT NULL DEFAULT '0',
  `lead_name_prefix` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `submit_redirect_url` mediumtext COLLATE utf8mb4_unicode_ci,
  `language` varchar(40) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `allow_duplicate` int NOT NULL DEFAULT '1',
  `mark_public` int NOT NULL DEFAULT '0',
  `track_duplicate_field` varchar(20) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `track_duplicate_field_and` varchar(20) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `create_task_on_duplicate` int NOT NULL DEFAULT '0',
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Table structure for table `weekends`
--

CREATE TABLE `weekends` (
  `id` bigint UNSIGNED NOT NULL,
  `company_id` bigint UNSIGNED NOT NULL,
  `name` enum('saturday','sunday','monday','tuesday','wednesday','thursday','friday') COLLATE utf8mb4_unicode_ci NOT NULL,
  `order` int DEFAULT NULL,
  `is_weekend` enum('yes','no') COLLATE utf8mb4_unicode_ci DEFAULT 'no',
  `status_id` bigint UNSIGNED NOT NULL,
  `created_by` bigint UNSIGNED DEFAULT '1',
  `updated_by` bigint UNSIGNED DEFAULT '1',
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `weekends`
--

INSERT INTO `weekends` (`id`, `company_id`, `name`, `order`, `is_weekend`, `status_id`, `created_by`, `updated_by`, `created_at`, `updated_at`) VALUES
(1, 1, 'saturday', NULL, 'yes', 1, 1, 1, '2023-04-18 01:07:41', '2023-04-18 01:07:41'),
(2, 1, 'sunday', NULL, 'yes', 1, 1, 1, '2023-04-18 01:07:41', '2023-04-18 01:07:41'),
(3, 1, 'monday', NULL, 'no', 1, 1, 1, '2023-04-18 01:07:41', '2023-04-18 01:07:41'),
(4, 1, 'tuesday', NULL, 'no', 1, 1, 1, '2023-04-18 01:07:41', '2023-04-18 01:07:41'),
(5, 1, 'wednesday', NULL, 'no', 1, 1, 1, '2023-04-18 01:07:41', '2023-04-18 01:07:41'),
(6, 1, 'thursday', NULL, 'no', 1, 1, 1, '2023-04-18 01:07:41', '2023-04-18 01:07:41'),
(7, 1, 'friday', NULL, 'no', 1, 1, 1, '2023-04-18 01:07:41', '2023-04-18 01:07:41'),
(8, 2, 'saturday', NULL, 'yes', 1, 1, 1, '2023-04-18 01:07:41', '2023-04-18 01:07:41'),
(9, 2, 'sunday', NULL, 'yes', 1, 1, 1, '2023-04-18 01:07:41', '2023-04-18 01:07:41'),
(10, 2, 'monday', NULL, 'no', 1, 1, 1, '2023-04-18 01:07:41', '2023-04-18 01:07:41'),
(11, 2, 'tuesday', NULL, 'no', 1, 1, 1, '2023-04-18 01:07:41', '2023-04-18 01:07:41'),
(12, 2, 'wednesday', NULL, 'no', 1, 1, 1, '2023-04-18 01:07:41', '2023-04-18 01:07:41'),
(13, 2, 'thursday', NULL, 'no', 1, 1, 1, '2023-04-18 01:07:41', '2023-04-18 01:07:41'),
(14, 2, 'friday', NULL, 'no', 1, 1, 1, '2023-04-18 01:07:41', '2023-04-18 01:07:41');

--
-- Indexes for dumped tables
--

--
-- Indexes for table `accounts`
--
ALTER TABLE `accounts`
  ADD PRIMARY KEY (`id`),
  ADD KEY `accounts_company_id_foreign` (`company_id`),
  ADD KEY `status_id` (`status_id`),
  ADD KEY `created_by` (`created_by`),
  ADD KEY `updated_by` (`updated_by`);

--
-- Indexes for table `activity_log`
--
ALTER TABLE `activity_log`
  ADD PRIMARY KEY (`id`),
  ADD KEY `subject` (`subject_type`,`subject_id`),
  ADD KEY `causer` (`causer_type`,`causer_id`),
  ADD KEY `activity_log_log_name_index` (`log_name`),
  ADD KEY `activity_log_batch_uuid_index` (`batch_uuid`);

--
-- Indexes for table `advance_salaries`
--
ALTER TABLE `advance_salaries`
  ADD PRIMARY KEY (`id`),
  ADD KEY `advance_salaries_company_id_foreign` (`company_id`),
  ADD KEY `advance_salaries_id_amount_date_index` (`id`,`amount`,`date`),
  ADD KEY `advance_type_id` (`advance_type_id`),
  ADD KEY `user_id` (`user_id`),
  ADD KEY `pay` (`pay`),
  ADD KEY `status_id` (`status_id`),
  ADD KEY `approver_id` (`approver_id`),
  ADD KEY `return_status` (`return_status`),
  ADD KEY `created_by` (`created_by`),
  ADD KEY `updated_by` (`updated_by`);

--
-- Indexes for table `advance_salary_logs`
--
ALTER TABLE `advance_salary_logs`
  ADD PRIMARY KEY (`id`),
  ADD KEY `advance_salary_logs_id_amount_index` (`id`,`amount`),
  ADD KEY `advance_salary_id` (`advance_salary_id`),
  ADD KEY `user_id` (`user_id`),
  ADD KEY `created_by` (`created_by`),
  ADD KEY `updated_by` (`updated_by`);

--
-- Indexes for table `advance_types`
--
ALTER TABLE `advance_types`
  ADD PRIMARY KEY (`id`),
  ADD KEY `advance_types_company_id_foreign` (`company_id`),
  ADD KEY `advance_types_id_index` (`id`),
  ADD KEY `status_id` (`status_id`);

--
-- Indexes for table `all_contents`
--
ALTER TABLE `all_contents`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `all_contents_title_unique` (`title`),
  ADD UNIQUE KEY `all_contents_slug_unique` (`slug`),
  ADD KEY `all_contents_company_id_foreign` (`company_id`),
  ADD KEY `all_contents_user_id_foreign` (`user_id`),
  ADD KEY `all_contents_created_by_foreign` (`created_by`),
  ADD KEY `all_contents_updated_by_foreign` (`updated_by`),
  ADD KEY `all_contents_type_title_slug_index` (`type`,`title`,`slug`),
  ADD KEY `status_id` (`status_id`);

--
-- Indexes for table `api_setups`
--
ALTER TABLE `api_setups`
  ADD PRIMARY KEY (`id`),
  ADD KEY `api_setups_company_id_foreign` (`company_id`),
  ADD KEY `status_id` (`status_id`);

--
-- Indexes for table `appoinments`
--
ALTER TABLE `appoinments`
  ADD PRIMARY KEY (`id`),
  ADD KEY `appoinments_company_id_foreign` (`company_id`),
  ADD KEY `appoinments_created_by_foreign` (`created_by`),
  ADD KEY `appoinments_appoinment_with_foreign` (`appoinment_with`),
  ADD KEY `appoinments_attachment_file_id_foreign` (`attachment_file_id`),
  ADD KEY `status_id` (`status_id`);

--
-- Indexes for table `appoinment_participants`
--
ALTER TABLE `appoinment_participants`
  ADD PRIMARY KEY (`id`),
  ADD KEY `appoinment_participants_participant_id_foreign` (`participant_id`),
  ADD KEY `appoinment_participants_appoinment_id_foreign` (`appoinment_id`);

--
-- Indexes for table `appraisals`
--
ALTER TABLE `appraisals`
  ADD PRIMARY KEY (`id`),
  ADD KEY `appraisals_company_id_foreign` (`company_id`),
  ADD KEY `appraisals_user_id_foreign` (`user_id`),
  ADD KEY `appraisals_added_by_foreign` (`added_by`);

--
-- Indexes for table `appreciates`
--
ALTER TABLE `appreciates`
  ADD PRIMARY KEY (`id`),
  ADD KEY `appreciates_user_id_foreign` (`user_id`),
  ADD KEY `appreciates_appreciate_by_foreign` (`appreciate_by`);

--
-- Indexes for table `app_screens`
--
ALTER TABLE `app_screens`
  ADD PRIMARY KEY (`id`),
  ADD KEY `app_screens_status_id_foreign` (`status_id`);

--
-- Indexes for table `assign_leaves`
--
ALTER TABLE `assign_leaves`
  ADD PRIMARY KEY (`id`),
  ADD KEY `assign_leaves_type_id_foreign` (`type_id`),
  ADD KEY `assign_leaves_department_id_foreign` (`department_id`),
  ADD KEY `assign_leaves_status_id_foreign` (`status_id`),
  ADD KEY `assign_leaves_company_id_type_id_department_id_status_id_index` (`company_id`,`type_id`,`department_id`,`status_id`);

--
-- Indexes for table `attendances`
--
ALTER TABLE `attendances`
  ADD PRIMARY KEY (`id`),
  ADD KEY `attendances_company_id_foreign` (`company_id`),
  ADD KEY `attendances_user_id_foreign` (`user_id`),
  ADD KEY `attendances_status_id_foreign` (`status_id`);

--
-- Indexes for table `author_infos`
--
ALTER TABLE `author_infos`
  ADD PRIMARY KEY (`id`),
  ADD KEY `author_infos_authorable_type_authorable_id_index` (`authorable_type`,`authorable_id`),
  ADD KEY `author_infos_created_by_foreign` (`created_by`),
  ADD KEY `author_infos_updated_by_foreign` (`updated_by`),
  ADD KEY `author_infos_approved_by_foreign` (`approved_by`),
  ADD KEY `author_infos_rejected_by_foreign` (`rejected_by`),
  ADD KEY `author_infos_cancelled_by_foreign` (`cancelled_by`),
  ADD KEY `author_infos_published_by_foreign` (`published_by`),
  ADD KEY `author_infos_unpublished_by_foreign` (`unpublished_by`),
  ADD KEY `author_infos_deleted_by_foreign` (`deleted_by`),
  ADD KEY `author_infos_archived_by_foreign` (`archived_by`),
  ADD KEY `author_infos_restored_by_foreign` (`restored_by`),
  ADD KEY `author_infos_referred_by_foreign` (`referred_by`);

--
-- Indexes for table `awards`
--
ALTER TABLE `awards`
  ADD PRIMARY KEY (`id`),
  ADD KEY `awards_company_id_foreign` (`company_id`),
  ADD KEY `awards_user_id_foreign` (`user_id`),
  ADD KEY `awards_created_by_foreign` (`created_by`),
  ADD KEY `awards_award_type_id_foreign` (`award_type_id`),
  ADD KEY `awards_attachment_foreign` (`attachment`),
  ADD KEY `awards_goal_id_foreign` (`goal_id`),
  ADD KEY `awards_id_award_type_id_company_id_status_id_user_id_index` (`id`,`award_type_id`,`company_id`,`status_id`,`user_id`),
  ADD KEY `status_id` (`status_id`);

--
-- Indexes for table `award_types`
--
ALTER TABLE `award_types`
  ADD PRIMARY KEY (`id`),
  ADD KEY `award_types_company_id_foreign` (`company_id`),
  ADD KEY `award_types_id_index` (`id`),
  ADD KEY `status_id` (`status_id`);

--
-- Indexes for table `bank_accounts`
--
ALTER TABLE `bank_accounts`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `bank_accounts_account_number_unique` (`account_number`),
  ADD KEY `bank_accounts_user_id_index` (`user_id`),
  ADD KEY `bank_accounts_status_id_index` (`status_id`),
  ADD KEY `bank_accounts_author_info_id_index` (`author_info_id`);

--
-- Indexes for table `categories`
--
ALTER TABLE `categories`
  ADD PRIMARY KEY (`id`),
  ADD KEY `categories_name_type_serial_index` (`name`,`type`,`serial`),
  ADD KEY `categories_status_id_index` (`status_id`),
  ADD KEY `categories_author_info_id_index` (`author_info_id`);

--
-- Indexes for table `clients`
--
ALTER TABLE `clients`
  ADD PRIMARY KEY (`id`),
  ADD KEY `clients_company_id_foreign` (`company_id`),
  ADD KEY `clients_avatar_id_foreign` (`avatar_id`),
  ADD KEY `status_id` (`status_id`);

--
-- Indexes for table `commissions`
--
ALTER TABLE `commissions`
  ADD PRIMARY KEY (`id`),
  ADD KEY `commissions_company_id_foreign` (`company_id`),
  ADD KEY `commissions_id_index` (`id`),
  ADD KEY `status_id` (`status_id`);

--
-- Indexes for table `companies`
--
ALTER TABLE `companies`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `companies_email_unique` (`email`),
  ADD UNIQUE KEY `companies_phone_unique` (`phone`),
  ADD KEY `companies_country_id_foreign` (`country_id`),
  ADD KEY `trade_licence_id` (`trade_licence_id`),
  ADD KEY `status_id` (`status_id`);

--
-- Indexes for table `company_configs`
--
ALTER TABLE `company_configs`
  ADD PRIMARY KEY (`id`),
  ADD KEY `company_configs_company_id_foreign` (`company_id`);

--
-- Indexes for table `competences`
--
ALTER TABLE `competences`
  ADD PRIMARY KEY (`id`),
  ADD KEY `competences_competence_type_id_foreign` (`competence_type_id`),
  ADD KEY `competences_company_id_foreign` (`company_id`),
  ADD KEY `competences_id_status_id_company_id_index` (`id`,`status_id`,`company_id`),
  ADD KEY `status_id` (`status_id`);

--
-- Indexes for table `competence_types`
--
ALTER TABLE `competence_types`
  ADD PRIMARY KEY (`id`),
  ADD KEY `competence_types_company_id_foreign` (`company_id`),
  ADD KEY `competence_types_id_status_id_company_id_index` (`id`,`status_id`,`company_id`),
  ADD KEY `status_id` (`status_id`);

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

--
-- Indexes for table `conversations`
--
ALTER TABLE `conversations`
  ADD PRIMARY KEY (`id`),
  ADD KEY `conversations_sender_id_foreign` (`sender_id`),
  ADD KEY `conversations_receiver_id_foreign` (`receiver_id`),
  ADD KEY `conversations_image_id_foreign` (`image_id`);

--
-- Indexes for table `countries`
--
ALTER TABLE `countries`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `countries_country_code_unique` (`country_code`),
  ADD UNIQUE KEY `countries_name_unique` (`name`);

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

--
-- Indexes for table `daily_leaves`
--
ALTER TABLE `daily_leaves`
  ADD PRIMARY KEY (`id`),
  ADD KEY `daily_leaves_company_id_foreign` (`company_id`),
  ADD KEY `daily_leaves_user_id_foreign` (`user_id`),
  ADD KEY `daily_leaves_approved_by_tl_foreign` (`approved_by_tl`),
  ADD KEY `daily_leaves_approved_by_hr_foreign` (`approved_by_hr`),
  ADD KEY `daily_leaves_rejected_by_tl_foreign` (`rejected_by_tl`),
  ADD KEY `daily_leaves_rejected_by_hr_foreign` (`rejected_by_hr`),
  ADD KEY `status_id` (`status_id`);

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

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

--
-- Indexes for table `departments`
--
ALTER TABLE `departments`
  ADD PRIMARY KEY (`id`),
  ADD KEY `departments_company_id_foreign` (`company_id`),
  ADD KEY `departments_status_id_foreign` (`status_id`);

--
-- Indexes for table `deposits`
--
ALTER TABLE `deposits`
  ADD PRIMARY KEY (`id`),
  ADD KEY `deposits_income_expense_category_id_foreign` (`income_expense_category_id`),
  ADD KEY `deposits_company_id_foreign` (`company_id`),
  ADD KEY `deposits_attachment_foreign` (`attachment`),
  ADD KEY `deposits_id_amount_date_index` (`id`,`amount`,`date`),
  ADD KEY `user_id` (`user_id`),
  ADD KEY `payment_method_id` (`payment_method_id`),
  ADD KEY `transaction_id` (`transaction_id`),
  ADD KEY `pay` (`pay`),
  ADD KEY `status_id` (`status_id`),
  ADD KEY `approver_id` (`approver_id`),
  ADD KEY `created_by` (`created_by`),
  ADD KEY `updated_by` (`updated_by`);

--
-- Indexes for table `designations`
--
ALTER TABLE `designations`
  ADD PRIMARY KEY (`id`),
  ADD KEY `designations_company_id_foreign` (`company_id`),
  ADD KEY `designations_status_id_foreign` (`status_id`);

--
-- Indexes for table `discussions`
--
ALTER TABLE `discussions`
  ADD PRIMARY KEY (`id`),
  ADD KEY `discussions_company_id_foreign` (`company_id`),
  ADD KEY `discussions_project_id_foreign` (`project_id`),
  ADD KEY `discussions_user_id_foreign` (`user_id`),
  ADD KEY `discussions_id_project_id_company_id_status_id_user_id_index` (`id`,`project_id`,`company_id`,`status_id`,`user_id`),
  ADD KEY `show_to_customer` (`show_to_customer`),
  ADD KEY `status_id` (`status_id`);

--
-- Indexes for table `discussion_comments`
--
ALTER TABLE `discussion_comments`
  ADD PRIMARY KEY (`id`),
  ADD KEY `discussion_comments_company_id_foreign` (`company_id`),
  ADD KEY `discussion_comments_discussion_id_foreign` (`discussion_id`),
  ADD KEY `discussion_comments_user_id_foreign` (`user_id`),
  ADD KEY `discussion_comments_attachment_foreign` (`attachment`),
  ADD KEY `discussion_comments_id_discussion_id_company_id_user_id_index` (`id`,`discussion_id`,`company_id`,`user_id`);

--
-- Indexes for table `discussion_likes`
--
ALTER TABLE `discussion_likes`
  ADD PRIMARY KEY (`id`),
  ADD KEY `discussion_likes_discussion_id_foreign` (`discussion_id`),
  ADD KEY `discussion_likes_user_id_foreign` (`user_id`);

--
-- Indexes for table `duty_schedules`
--
ALTER TABLE `duty_schedules`
  ADD PRIMARY KEY (`id`),
  ADD KEY `duty_schedules_company_id_foreign` (`company_id`),
  ADD KEY `duty_schedules_shift_id_foreign` (`shift_id`),
  ADD KEY `duty_schedules_status_id_foreign` (`status_id`),
  ADD KEY `duty_schedules_id_index` (`id`);

--
-- Indexes for table `employee_breaks`
--
ALTER TABLE `employee_breaks`
  ADD PRIMARY KEY (`id`),
  ADD KEY `employee_breaks_company_id_foreign` (`company_id`),
  ADD KEY `employee_breaks_user_id_foreign` (`user_id`);

--
-- Indexes for table `employee_tasks`
--
ALTER TABLE `employee_tasks`
  ADD PRIMARY KEY (`id`),
  ADD KEY `employee_tasks_assigned_id_foreign` (`assigned_id`),
  ADD KEY `employee_tasks_created_by_foreign` (`created_by`),
  ADD KEY `employee_tasks_attachment_file_id_foreign` (`attachment_file_id`),
  ADD KEY `status_id` (`status_id`);

--
-- Indexes for table `expenses`
--
ALTER TABLE `expenses`
  ADD PRIMARY KEY (`id`),
  ADD KEY `expenses_income_expense_category_id_foreign` (`income_expense_category_id`),
  ADD KEY `expenses_company_id_foreign` (`company_id`),
  ADD KEY `expenses_attachment_foreign` (`attachment`),
  ADD KEY `expenses_id_amount_date_index` (`id`,`amount`,`date`),
  ADD KEY `user_id` (`user_id`),
  ADD KEY `pay` (`pay`),
  ADD KEY `status_id` (`status_id`),
  ADD KEY `transaction_id` (`transaction_id`),
  ADD KEY `payment_method_id` (`payment_method_id`),
  ADD KEY `approver_id` (`approver_id`),
  ADD KEY `created_by` (`created_by`),
  ADD KEY `updated_by` (`updated_by`);

--
-- Indexes for table `expense_claims`
--
ALTER TABLE `expense_claims`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `expense_claims_invoice_number_unique` (`invoice_number`),
  ADD KEY `expense_claims_company_id_foreign` (`company_id`),
  ADD KEY `expense_claims_user_id_foreign` (`user_id`),
  ADD KEY `expense_claims_attachment_file_id_foreign` (`attachment_file_id`),
  ADD KEY `status_id` (`status_id`);

--
-- Indexes for table `expense_claim_details`
--
ALTER TABLE `expense_claim_details`
  ADD PRIMARY KEY (`id`),
  ADD KEY `expense_claim_details_company_id_foreign` (`company_id`),
  ADD KEY `expense_claim_details_user_id_foreign` (`user_id`),
  ADD KEY `expense_claim_details_hrm_expense_id_foreign` (`hrm_expense_id`),
  ADD KEY `expense_claim_details_expense_claim_id_foreign` (`expense_claim_id`);

--
-- Indexes for table `failed_jobs`
--
ALTER TABLE `failed_jobs`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `failed_jobs_uuid_unique` (`uuid`);

--
-- Indexes for table `features`
--
ALTER TABLE `features`
  ADD PRIMARY KEY (`id`),
  ADD KEY `features_attachment_file_id_foreign` (`attachment_file_id`),
  ADD KEY `status_id` (`status_id`);

--
-- Indexes for table `front_teams`
--
ALTER TABLE `front_teams`
  ADD PRIMARY KEY (`id`),
  ADD KEY `front_teams_attachment_foreign` (`attachment`),
  ADD KEY `front_teams_user_id_foreign` (`user_id`),
  ADD KEY `status_id` (`status_id`);

--
-- Indexes for table `goals`
--
ALTER TABLE `goals`
  ADD PRIMARY KEY (`id`),
  ADD KEY `goals_company_id_foreign` (`company_id`),
  ADD KEY `goals_goal_type_id_foreign` (`goal_type_id`),
  ADD KEY `status_id` (`status_id`),
  ADD KEY `created_by` (`created_by`);

--
-- Indexes for table `goal_types`
--
ALTER TABLE `goal_types`
  ADD PRIMARY KEY (`id`),
  ADD KEY `goal_types_company_id_foreign` (`company_id`),
  ADD KEY `goal_types_id_status_id_company_id_index` (`id`,`status_id`,`company_id`),
  ADD KEY `status_id` (`status_id`);

--
-- Indexes for table `holidays`
--
ALTER TABLE `holidays`
  ADD PRIMARY KEY (`id`),
  ADD KEY `holidays_company_id_foreign` (`company_id`),
  ADD KEY `holidays_attachment_id_foreign` (`attachment_id`),
  ADD KEY `holidays_status_id_foreign` (`status_id`),
  ADD KEY `holidays_id_index` (`id`);

--
-- Indexes for table `home_pages`
--
ALTER TABLE `home_pages`
  ADD PRIMARY KEY (`id`),
  ADD KEY `status_id` (`status_id`),
  ADD KEY `created_by` (`created_by`),
  ADD KEY `updated_by` (`updated_by`);

--
-- Indexes for table `hrm_expenses`
--
ALTER TABLE `hrm_expenses`
  ADD PRIMARY KEY (`id`),
  ADD KEY `hrm_expenses_company_id_foreign` (`company_id`),
  ADD KEY `hrm_expenses_user_id_foreign` (`user_id`),
  ADD KEY `hrm_expenses_income_expense_category_id_foreign` (`income_expense_category_id`),
  ADD KEY `hrm_expenses_attachment_file_id_foreign` (`attachment_file_id`),
  ADD KEY `status_id` (`status_id`),
  ADD KEY `claimed_status_id` (`is_claimed_status_id`),
  ADD KEY `claimed_approved_status_id` (`claimed_approved_status_id`);

--
-- Indexes for table `hrm_languages`
--
ALTER TABLE `hrm_languages`
  ADD PRIMARY KEY (`id`),
  ADD KEY `status_id` (`status_id`);

--
-- Indexes for table `income_expense_categories`
--
ALTER TABLE `income_expense_categories`
  ADD PRIMARY KEY (`id`),
  ADD KEY `income_expense_categories_company_id_foreign` (`company_id`),
  ADD KEY `income_expense_categories_attachment_file_id_foreign` (`attachment_file_id`),
  ADD KEY `status_id` (`status_id`);

--
-- Indexes for table `indicators`
--
ALTER TABLE `indicators`
  ADD PRIMARY KEY (`id`),
  ADD KEY `indicators_company_id_foreign` (`company_id`),
  ADD KEY `indicators_department_id_foreign` (`department_id`),
  ADD KEY `indicators_shift_id_foreign` (`shift_id`),
  ADD KEY `indicators_designation_id_foreign` (`designation_id`),
  ADD KEY `indicators_added_by_foreign` (`added_by`);

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

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

--
-- Indexes for table `ip_setups`
--
ALTER TABLE `ip_setups`
  ADD PRIMARY KEY (`id`),
  ADD KEY `ip_setups_status_id_foreign` (`status_id`),
  ADD KEY `ip_setups_company_id_foreign` (`company_id`);

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

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

--
-- Indexes for table `late_in_out_reasons`
--
ALTER TABLE `late_in_out_reasons`
  ADD PRIMARY KEY (`id`),
  ADD KEY `late_in_out_reasons_company_id_foreign` (`company_id`),
  ADD KEY `late_in_out_reasons_attendance_id_foreign` (`attendance_id`);

--
-- Indexes for table `leads`
--
ALTER TABLE `leads`
  ADD PRIMARY KEY (`id`),
  ADD KEY `leads_lead_type_id_foreign` (`lead_type_id`),
  ADD KEY `leads_lead_source_id_foreign` (`lead_source_id`),
  ADD KEY `leads_lead_status_id_foreign` (`lead_status_id`),
  ADD KEY `leads_created_by_foreign` (`created_by`),
  ADD KEY `leads_company_id_foreign` (`company_id`),
  ADD KEY `status_id` (`status_id`);

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

--
-- Indexes for table `lead_activity_logs`
--
ALTER TABLE `lead_activity_logs`
  ADD PRIMARY KEY (`id`),
  ADD KEY `lead_activity_logs_lead_type_id_foreign` (`lead_type_id`),
  ADD KEY `lead_activity_logs_lead_source_id_foreign` (`lead_source_id`),
  ADD KEY `lead_activity_logs_lead_status_id_foreign` (`lead_status_id`),
  ADD KEY `lead_activity_logs_lead_id_foreign` (`lead_id`),
  ADD KEY `lead_activity_logs_created_by_foreign` (`created_by`),
  ADD KEY `lead_activity_logs_company_id_foreign` (`company_id`),
  ADD KEY `status_id` (`status_id`);

--
-- Indexes for table `lead_attachments`
--
ALTER TABLE `lead_attachments`
  ADD PRIMARY KEY (`id`),
  ADD KEY `lead_attachments_user_id_foreign` (`user_id`),
  ADD KEY `lead_attachments_lead_id_foreign` (`lead_id`),
  ADD KEY `lead_attachments_company_id_foreign` (`company_id`),
  ADD KEY `show_to_clients` (`show_to_clients`),
  ADD KEY `status_id` (`status_id`);

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

--
-- Indexes for table `lead_sources`
--
ALTER TABLE `lead_sources`
  ADD PRIMARY KEY (`id`),
  ADD KEY `lead_sources_created_by_foreign` (`created_by`),
  ADD KEY `lead_sources_updated_by_foreign` (`updated_by`),
  ADD KEY `lead_sources_company_id_foreign` (`company_id`),
  ADD KEY `status_id` (`status_id`);

--
-- Indexes for table `lead_statuses`
--
ALTER TABLE `lead_statuses`
  ADD PRIMARY KEY (`id`),
  ADD KEY `lead_statuses_created_by_foreign` (`created_by`),
  ADD KEY `lead_statuses_updated_by_foreign` (`updated_by`),
  ADD KEY `lead_statuses_company_id_foreign` (`company_id`),
  ADD KEY `status_id` (`status_id`);

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

--
-- Indexes for table `lead_types`
--
ALTER TABLE `lead_types`
  ADD PRIMARY KEY (`id`),
  ADD KEY `lead_types_created_by_foreign` (`created_by`),
  ADD KEY `lead_types_updated_by_foreign` (`updated_by`),
  ADD KEY `lead_types_company_id_foreign` (`company_id`),
  ADD KEY `status_id` (`status_id`);

--
-- Indexes for table `leave_requests`
--
ALTER TABLE `leave_requests`
  ADD PRIMARY KEY (`id`),
  ADD KEY `leave_requests_company_id_foreign` (`company_id`),
  ADD KEY `leave_requests_assign_leave_id_foreign` (`assign_leave_id`),
  ADD KEY `leave_requests_user_id_foreign` (`user_id`),
  ADD KEY `leave_requests_substitute_id_foreign` (`substitute_id`),
  ADD KEY `leave_requests_attachment_file_id_foreign` (`attachment_file_id`),
  ADD KEY `leave_requests_status_id_foreign` (`status_id`),
  ADD KEY `leave_requests_author_info_id_foreign` (`author_info_id`);

--
-- Indexes for table `leave_settings`
--
ALTER TABLE `leave_settings`
  ADD PRIMARY KEY (`id`),
  ADD KEY `leave_settings_company_id_foreign` (`company_id`);

--
-- Indexes for table `leave_types`
--
ALTER TABLE `leave_types`
  ADD PRIMARY KEY (`id`),
  ADD KEY `leave_types_company_id_foreign` (`company_id`),
  ADD KEY `leave_types_status_id_foreign` (`status_id`),
  ADD KEY `leave_types_name_status_id_index` (`name`,`status_id`);

--
-- Indexes for table `location_binds`
--
ALTER TABLE `location_binds`
  ADD PRIMARY KEY (`id`),
  ADD KEY `location_binds_user_id_foreign` (`user_id`),
  ADD KEY `location_binds_company_id_foreign` (`company_id`),
  ADD KEY `status_id` (`status_id`);

--
-- Indexes for table `location_logs`
--
ALTER TABLE `location_logs`
  ADD PRIMARY KEY (`id`),
  ADD KEY `location_logs_user_id_foreign` (`user_id`),
  ADD KEY `location_logs_company_id_foreign` (`company_id`),
  ADD KEY `location_logs_id_user_id_company_id_date_index` (`id`,`user_id`,`company_id`,`date`);

--
-- Indexes for table `meetings`
--
ALTER TABLE `meetings`
  ADD PRIMARY KEY (`id`),
  ADD KEY `meetings_company_id_foreign` (`company_id`),
  ADD KEY `meetings_user_id_foreign` (`user_id`),
  ADD KEY `meetings_attachment_file_id_foreign` (`attachment_file_id`),
  ADD KEY `status_id` (`status_id`);

--
-- Indexes for table `meeting_members`
--
ALTER TABLE `meeting_members`
  ADD PRIMARY KEY (`id`),
  ADD KEY `status_id` (`status_id`);

--
-- Indexes for table `meeting_participants`
--
ALTER TABLE `meeting_participants`
  ADD PRIMARY KEY (`id`),
  ADD KEY `meeting_participants_participant_id_foreign` (`participant_id`),
  ADD KEY `meeting_participants_meeting_id_foreign` (`meeting_id`);

--
-- Indexes for table `meeting_setups`
--
ALTER TABLE `meeting_setups`
  ADD PRIMARY KEY (`id`),
  ADD KEY `meeting_setups_company_id_foreign` (`company_id`),
  ADD KEY `status_id` (`status_id`);

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

--
-- Indexes for table `meta_information`
--
ALTER TABLE `meta_information`
  ADD PRIMARY KEY (`id`),
  ADD KEY `meta_information_created_by_foreign` (`created_by`),
  ADD KEY `meta_information_updated_by_foreign` (`updated_by`),
  ADD KEY `meta_information_id_type_index` (`id`,`type`);

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

--
-- Indexes for table `notes`
--
ALTER TABLE `notes`
  ADD PRIMARY KEY (`id`),
  ADD KEY `notes_company_id_foreign` (`company_id`),
  ADD KEY `notes_project_id_foreign` (`project_id`),
  ADD KEY `notes_user_id_foreign` (`user_id`),
  ADD KEY `notes_id_project_id_company_id_status_id_user_id_index` (`id`,`project_id`,`company_id`,`status_id`,`user_id`),
  ADD KEY `show_to_customer` (`show_to_customer`),
  ADD KEY `status_id` (`status_id`);

--
-- Indexes for table `notices`
--
ALTER TABLE `notices`
  ADD PRIMARY KEY (`id`),
  ADD KEY `notices_created_by_foreign` (`created_by`),
  ADD KEY `notices_company_id_foreign` (`company_id`),
  ADD KEY `notices_department_id_foreign` (`department_id`),
  ADD KEY `notices_attachment_file_id_foreign` (`attachment_file_id`),
  ADD KEY `notices_status_id_foreign` (`status_id`);

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

--
-- Indexes for table `notice_view_logs`
--
ALTER TABLE `notice_view_logs`
  ADD PRIMARY KEY (`id`),
  ADD KEY `notice_view_logs_company_id_foreign` (`company_id`),
  ADD KEY `notice_view_logs_user_id_foreign` (`user_id`),
  ADD KEY `notice_view_logs_notice_id_foreign` (`notice_id`);

--
-- Indexes for table `notifications`
--
ALTER TABLE `notifications`
  ADD PRIMARY KEY (`id`),
  ADD KEY `notifications_notifiable_type_notifiable_id_index` (`notifiable_type`,`notifiable_id`);

--
-- Indexes for table `notifications_old`
--
ALTER TABLE `notifications_old`
  ADD PRIMARY KEY (`id`),
  ADD KEY `notifications_old_sender_id_foreign` (`sender_id`),
  ADD KEY `notifications_old_receiver_id_foreign` (`receiver_id`),
  ADD KEY `notifications_old_image_id_foreign` (`image_id`);

--
-- Indexes for table `notification_types`
--
ALTER TABLE `notification_types`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `notification_types_type_unique` (`type`),
  ADD KEY `notification_types_icon_foreign` (`icon`),
  ADD KEY `status_id` (`status_id`);

--
-- Indexes for table `password_resets`
--
ALTER TABLE `password_resets`
  ADD KEY `password_resets_email_index` (`email`);

--
-- Indexes for table `payment_histories`
--
ALTER TABLE `payment_histories`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `payment_histories_code_unique` (`code`),
  ADD KEY `payment_histories_company_id_foreign` (`company_id`),
  ADD KEY `payment_histories_user_id_foreign` (`user_id`),
  ADD KEY `payment_histories_expense_claim_id_foreign` (`expense_claim_id`),
  ADD KEY `payment_histories_attachment_file_id_foreign` (`attachment_file_id`),
  ADD KEY `status_id` (`payment_status_id`);

--
-- Indexes for table `payment_history_details`
--
ALTER TABLE `payment_history_details`
  ADD PRIMARY KEY (`id`),
  ADD KEY `payment_history_details_company_id_foreign` (`company_id`),
  ADD KEY `payment_history_details_user_id_foreign` (`user_id`),
  ADD KEY `payment_history_details_payment_history_id_foreign` (`payment_history_id`),
  ADD KEY `payment_history_details_payment_method_id_foreign` (`payment_method_id`),
  ADD KEY `payment_history_details_paid_by_id_foreign` (`paid_by_id`),
  ADD KEY `payment_status_id` (`payment_status_id`);

--
-- Indexes for table `payment_history_logs`
--
ALTER TABLE `payment_history_logs`
  ADD PRIMARY KEY (`id`),
  ADD KEY `payment_history_logs_user_id_foreign` (`user_id`),
  ADD KEY `payment_history_logs_company_id_foreign` (`company_id`),
  ADD KEY `payment_history_logs_payment_history_id_foreign` (`payment_history_id`),
  ADD KEY `payment_history_logs_expense_claim_id_foreign` (`expense_claim_id`),
  ADD KEY `payment_history_logs_paid_by_id_foreign` (`paid_by_id`);

--
-- Indexes for table `payment_methods`
--
ALTER TABLE `payment_methods`
  ADD PRIMARY KEY (`id`),
  ADD KEY `payment_methods_company_id_foreign` (`company_id`),
  ADD KEY `payment_methods_attachment_file_id_foreign` (`attachment_file_id`),
  ADD KEY `status_id` (`status_id`);

--
-- Indexes for table `payment_types`
--
ALTER TABLE `payment_types`
  ADD PRIMARY KEY (`id`),
  ADD KEY `payment_types_status_id_index` (`status_id`);

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

--
-- Indexes for table `portfolios`
--
ALTER TABLE `portfolios`
  ADD PRIMARY KEY (`id`),
  ADD KEY `portfolios_attachment_foreign` (`attachment`),
  ADD KEY `portfolios_user_id_foreign` (`user_id`),
  ADD KEY `status_id` (`status_id`);

--
-- Indexes for table `product_purchases`
--
ALTER TABLE `product_purchases`
  ADD PRIMARY KEY (`id`),
  ADD KEY `product_purchases_company_id_foreign` (`company_id`),
  ADD KEY `product_purchases_stock_payment_history_id_foreign` (`stock_payment_history_id`),
  ADD KEY `product_purchases_client_id_foreign` (`client_id`);

--
-- Indexes for table `product_purchase_histories`
--
ALTER TABLE `product_purchase_histories`
  ADD PRIMARY KEY (`id`),
  ADD KEY `product_purchase_histories_company_id_foreign` (`company_id`),
  ADD KEY `product_purchase_histories_product_purchase_id_foreign` (`product_purchase_id`),
  ADD KEY `product_purchase_histories_product_unit_id_foreign` (`product_unit_id`);

--
-- Indexes for table `product_units`
--
ALTER TABLE `product_units`
  ADD PRIMARY KEY (`id`),
  ADD KEY `product_units_company_id_foreign` (`company_id`),
  ADD KEY `product_units_attachment_file_id_foreign` (`attachment_file_id`),
  ADD KEY `status_id` (`status_id`);

--
-- Indexes for table `projects`
--
ALTER TABLE `projects`
  ADD PRIMARY KEY (`id`),
  ADD KEY `projects_client_id_foreign` (`client_id`),
  ADD KEY `projects_company_id_foreign` (`company_id`),
  ADD KEY `projects_goal_id_foreign` (`goal_id`),
  ADD KEY `projects_avatar_id_foreign` (`avatar_id`),
  ADD KEY `projects_id_client_id_company_id_status_id_index` (`id`,`client_id`,`company_id`,`status_id`),
  ADD KEY `status_id` (`status_id`),
  ADD KEY `priority` (`priority`),
  ADD KEY `payment` (`payment`),
  ADD KEY `created_by` (`created_by`);

--
-- Indexes for table `project_activities`
--
ALTER TABLE `project_activities`
  ADD PRIMARY KEY (`id`),
  ADD KEY `project_activities_company_id_foreign` (`company_id`),
  ADD KEY `project_activities_project_id_foreign` (`project_id`),
  ADD KEY `project_activities_user_id_foreign` (`user_id`),
  ADD KEY `project_activities_id_project_id_company_id_user_id_index` (`id`,`project_id`,`company_id`,`user_id`);

--
-- Indexes for table `project_files`
--
ALTER TABLE `project_files`
  ADD PRIMARY KEY (`id`),
  ADD KEY `project_files_company_id_foreign` (`company_id`),
  ADD KEY `project_files_project_id_foreign` (`project_id`),
  ADD KEY `project_files_user_id_foreign` (`user_id`),
  ADD KEY `project_files_attachment_foreign` (`attachment`),
  ADD KEY `project_files_id_project_id_company_id_status_id_user_id_index` (`id`,`project_id`,`company_id`,`status_id`,`user_id`),
  ADD KEY `show_to_customer` (`show_to_customer`),
  ADD KEY `status_id` (`status_id`);

--
-- Indexes for table `project_file_comments`
--
ALTER TABLE `project_file_comments`
  ADD PRIMARY KEY (`id`),
  ADD KEY `project_file_comments_company_id_foreign` (`company_id`),
  ADD KEY `project_file_comments_project_file_id_foreign` (`project_file_id`),
  ADD KEY `project_file_comments_user_id_foreign` (`user_id`),
  ADD KEY `project_file_comments_attachment_foreign` (`attachment`),
  ADD KEY `project_file_comments_id_project_file_id_user_id_index` (`id`,`project_file_id`,`user_id`);

--
-- Indexes for table `project_membars`
--
ALTER TABLE `project_membars`
  ADD PRIMARY KEY (`id`),
  ADD KEY `project_membars_company_id_foreign` (`company_id`),
  ADD KEY `project_membars_project_id_foreign` (`project_id`),
  ADD KEY `project_membars_user_id_foreign` (`user_id`),
  ADD KEY `project_membars_added_by_foreign` (`added_by`),
  ADD KEY `project_membars_id_project_id_company_id_status_id_user_id_index` (`id`,`project_id`,`company_id`,`status_id`,`user_id`),
  ADD KEY `status_id` (`status_id`);

--
-- Indexes for table `project_payments`
--
ALTER TABLE `project_payments`
  ADD PRIMARY KEY (`id`),
  ADD KEY `project_payments_project_id_foreign` (`project_id`),
  ADD KEY `project_payments_company_id_foreign` (`company_id`),
  ADD KEY `project_payments_id_amount_index` (`id`,`amount`),
  ADD KEY `transaction_id` (`transaction_id`),
  ADD KEY `payment_method_id` (`payment_method_id`),
  ADD KEY `paid_by` (`paid_by`),
  ADD KEY `created_by` (`created_by`),
  ADD KEY `updated_by` (`updated_by`);

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

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

--
-- Indexes for table `roles`
--
ALTER TABLE `roles`
  ADD PRIMARY KEY (`id`),
  ADD KEY `roles_company_id_foreign` (`company_id`),
  ADD KEY `roles_status_id_foreign` (`status_id`);

--
-- Indexes for table `role_users`
--
ALTER TABLE `role_users`
  ADD PRIMARY KEY (`id`),
  ADD KEY `role_users_user_id_foreign` (`user_id`),
  ADD KEY `role_users_role_id_foreign` (`role_id`);

--
-- Indexes for table `salary_generates`
--
ALTER TABLE `salary_generates`
  ADD PRIMARY KEY (`id`),
  ADD KEY `salary_generates_company_id_foreign` (`company_id`),
  ADD KEY `salary_generates_id_amount_date_index` (`id`,`amount`,`date`),
  ADD KEY `user_id` (`user_id`),
  ADD KEY `status_id` (`status_id`),
  ADD KEY `created_by` (`created_by`),
  ADD KEY `updated_by` (`updated_by`);

--
-- Indexes for table `salary_payment_logs`
--
ALTER TABLE `salary_payment_logs`
  ADD PRIMARY KEY (`id`),
  ADD KEY `salary_payment_logs_salary_generate_id_foreign` (`salary_generate_id`),
  ADD KEY `salary_payment_logs_company_id_foreign` (`company_id`),
  ADD KEY `salary_payment_logs_id_amount_index` (`id`,`amount`),
  ADD KEY `transaction_id` (`transaction_id`),
  ADD KEY `payment_method_id` (`payment_method_id`),
  ADD KEY `paid_by` (`paid_by`),
  ADD KEY `user_id` (`user_id`),
  ADD KEY `created_by` (`created_by`),
  ADD KEY `updated_by` (`updated_by`);

--
-- Indexes for table `salary_setups`
--
ALTER TABLE `salary_setups`
  ADD PRIMARY KEY (`id`),
  ADD KEY `salary_setups_company_id_foreign` (`company_id`),
  ADD KEY `salary_setups_id_gross_salary_index` (`id`,`gross_salary`),
  ADD KEY `user_id` (`user_id`),
  ADD KEY `status_id` (`status_id`),
  ADD KEY `created_by` (`created_by`),
  ADD KEY `updated_by` (`updated_by`);

--
-- Indexes for table `salary_setup_details`
--
ALTER TABLE `salary_setup_details`
  ADD PRIMARY KEY (`id`),
  ADD KEY `salary_setup_details_company_id_foreign` (`company_id`),
  ADD KEY `salary_setup_details_id_amount_index` (`id`,`amount`),
  ADD KEY `user_id` (`user_id`),
  ADD KEY `salary_setup_id` (`salary_setup_id`),
  ADD KEY `commission_id` (`commission_id`),
  ADD KEY `status_id` (`status_id`),
  ADD KEY `created_by` (`created_by`),
  ADD KEY `updated_by` (`updated_by`);

--
-- Indexes for table `sales`
--
ALTER TABLE `sales`
  ADD PRIMARY KEY (`id`),
  ADD KEY `created_by` (`created_by`),
  ADD KEY `updated_by` (`updated_by`);

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

--
-- Indexes for table `sale_adjustments`
--
ALTER TABLE `sale_adjustments`
  ADD PRIMARY KEY (`id`),
  ADD KEY `created_by` (`created_by`),
  ADD KEY `updated_by` (`updated_by`);

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

--
-- Indexes for table `sale_brands`
--
ALTER TABLE `sale_brands`
  ADD PRIMARY KEY (`id`),
  ADD KEY `created_by` (`created_by`),
  ADD KEY `updated_by` (`updated_by`);

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

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

--
-- Indexes for table `sale_coupons`
--
ALTER TABLE `sale_coupons`
  ADD PRIMARY KEY (`id`),
  ADD KEY `created_by` (`created_by`),
  ADD KEY `updated_by` (`updated_by`);

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

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

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

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

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

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

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

--
-- Indexes for table `sale_expenses`
--
ALTER TABLE `sale_expenses`
  ADD PRIMARY KEY (`id`),
  ADD KEY `created_by` (`created_by`),
  ADD KEY `updated_by` (`updated_by`);

--
-- Indexes for table `sale_expense_categories`
--
ALTER TABLE `sale_expense_categories`
  ADD PRIMARY KEY (`id`),
  ADD KEY `created_by` (`created_by`),
  ADD KEY `updated_by` (`updated_by`);

--
-- Indexes for table `sale_gift_cards`
--
ALTER TABLE `sale_gift_cards`
  ADD PRIMARY KEY (`id`),
  ADD KEY `created_by` (`created_by`),
  ADD KEY `updated_by` (`updated_by`);

--
-- Indexes for table `sale_gift_card_recharges`
--
ALTER TABLE `sale_gift_card_recharges`
  ADD PRIMARY KEY (`id`),
  ADD KEY `created_by` (`created_by`),
  ADD KEY `updated_by` (`updated_by`);

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

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

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

--
-- Indexes for table `sale_products`
--
ALTER TABLE `sale_products`
  ADD PRIMARY KEY (`id`),
  ADD KEY `created_by` (`created_by`),
  ADD KEY `updated_by` (`updated_by`);

--
-- Indexes for table `sale_product_adjustments`
--
ALTER TABLE `sale_product_adjustments`
  ADD PRIMARY KEY (`id`),
  ADD KEY `created_by` (`created_by`),
  ADD KEY `updated_by` (`updated_by`);

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

--
-- Indexes for table `sale_product_purchases`
--
ALTER TABLE `sale_product_purchases`
  ADD PRIMARY KEY (`id`),
  ADD KEY `created_by` (`created_by`),
  ADD KEY `updated_by` (`updated_by`);

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

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

--
-- Indexes for table `sale_product_sales`
--
ALTER TABLE `sale_product_sales`
  ADD PRIMARY KEY (`id`),
  ADD KEY `created_by` (`created_by`),
  ADD KEY `updated_by` (`updated_by`);

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

--
-- Indexes for table `sale_product_variants`
--
ALTER TABLE `sale_product_variants`
  ADD PRIMARY KEY (`id`),
  ADD KEY `created_by` (`created_by`),
  ADD KEY `updated_by` (`updated_by`);

--
-- Indexes for table `sale_product_warehouses`
--
ALTER TABLE `sale_product_warehouses`
  ADD PRIMARY KEY (`id`),
  ADD KEY `created_by` (`created_by`),
  ADD KEY `updated_by` (`updated_by`);

--
-- Indexes for table `sale_purchases`
--
ALTER TABLE `sale_purchases`
  ADD PRIMARY KEY (`id`),
  ADD KEY `created_by` (`created_by`),
  ADD KEY `updated_by` (`updated_by`);

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

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

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

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

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

--
-- Indexes for table `sale_stock_counts`
--
ALTER TABLE `sale_stock_counts`
  ADD PRIMARY KEY (`id`),
  ADD KEY `created_by` (`created_by`),
  ADD KEY `updated_by` (`updated_by`);

--
-- Indexes for table `sale_suppliers`
--
ALTER TABLE `sale_suppliers`
  ADD PRIMARY KEY (`id`),
  ADD KEY `created_by` (`created_by`),
  ADD KEY `updated_by` (`updated_by`);

--
-- Indexes for table `sale_taxes`
--
ALTER TABLE `sale_taxes`
  ADD PRIMARY KEY (`id`),
  ADD KEY `created_by` (`created_by`),
  ADD KEY `updated_by` (`updated_by`);

--
-- Indexes for table `sale_transfers`
--
ALTER TABLE `sale_transfers`
  ADD PRIMARY KEY (`id`),
  ADD KEY `created_by` (`created_by`),
  ADD KEY `updated_by` (`updated_by`);

--
-- Indexes for table `sale_units`
--
ALTER TABLE `sale_units`
  ADD PRIMARY KEY (`id`),
  ADD KEY `created_by` (`created_by`),
  ADD KEY `updated_by` (`updated_by`);

--
-- Indexes for table `sale_variants`
--
ALTER TABLE `sale_variants`
  ADD PRIMARY KEY (`id`),
  ADD KEY `created_by` (`created_by`),
  ADD KEY `updated_by` (`updated_by`);

--
-- Indexes for table `sale_warehouses`
--
ALTER TABLE `sale_warehouses`
  ADD PRIMARY KEY (`id`),
  ADD KEY `created_by` (`created_by`),
  ADD KEY `updated_by` (`updated_by`);

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

--
-- Indexes for table `services`
--
ALTER TABLE `services`
  ADD PRIMARY KEY (`id`),
  ADD KEY `services_user_id_foreign` (`user_id`),
  ADD KEY `services_attachment_foreign` (`attachment`),
  ADD KEY `status_id` (`status_id`);

--
-- Indexes for table `settings`
--
ALTER TABLE `settings`
  ADD PRIMARY KEY (`id`),
  ADD KEY `settings_company_id_foreign` (`company_id`),
  ADD KEY `settings_name_value_context_index` (`name`,`value`,`context`);

--
-- Indexes for table `shifts`
--
ALTER TABLE `shifts`
  ADD PRIMARY KEY (`id`),
  ADD KEY `shifts_company_id_foreign` (`company_id`),
  ADD KEY `shifts_status_id_foreign` (`status_id`);

--
-- Indexes for table `skills`
--
ALTER TABLE `skills`
  ADD PRIMARY KEY (`id`),
  ADD KEY `skills_user_id_foreign` (`user_id`);

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

--
-- Indexes for table `social_identities`
--
ALTER TABLE `social_identities`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `social_identities_provider_id_unique` (`provider_id`),
  ADD KEY `social_identities_user_id_foreign` (`user_id`);

--
-- Indexes for table `statuses`
--
ALTER TABLE `statuses`
  ADD PRIMARY KEY (`id`),
  ADD KEY `statuses_name_class_index` (`name`,`class`),
  ADD KEY `statuses_name_index` (`name`),
  ADD KEY `statuses_class_index` (`class`);

--
-- Indexes for table `stock_brands`
--
ALTER TABLE `stock_brands`
  ADD PRIMARY KEY (`id`),
  ADD KEY `stock_brands_company_id_foreign` (`company_id`),
  ADD KEY `stock_brands_avatar_id_foreign` (`avatar_id`),
  ADD KEY `stock_brands_status_id_index` (`status_id`),
  ADD KEY `stock_brands_author_info_id_index` (`author_info_id`);

--
-- Indexes for table `stock_categories`
--
ALTER TABLE `stock_categories`
  ADD PRIMARY KEY (`id`),
  ADD KEY `stock_categories_company_id_foreign` (`company_id`),
  ADD KEY `stock_categories_avatar_id_foreign` (`avatar_id`),
  ADD KEY `stock_categories_status_id_index` (`status_id`),
  ADD KEY `stock_categories_author_info_id_index` (`author_info_id`);

--
-- Indexes for table `stock_histories`
--
ALTER TABLE `stock_histories`
  ADD PRIMARY KEY (`id`),
  ADD KEY `stock_histories_company_id_foreign` (`company_id`),
  ADD KEY `stock_histories_stock_product_id_foreign` (`stock_product_id`),
  ADD KEY `stock_histories_product_purchase_id_foreign` (`product_purchase_id`),
  ADD KEY `stock_histories_product_unit_id_foreign` (`product_unit_id`),
  ADD KEY `status_id` (`status_id`);

--
-- Indexes for table `stock_payment_histories`
--
ALTER TABLE `stock_payment_histories`
  ADD PRIMARY KEY (`id`),
  ADD KEY `stock_payment_histories_company_id_foreign` (`company_id`),
  ADD KEY `stock_payment_histories_bank_id_foreign` (`bank_id`),
  ADD KEY `stock_payment_histories_payment_method_id_foreign` (`payment_method_id`);

--
-- Indexes for table `stock_products`
--
ALTER TABLE `stock_products`
  ADD PRIMARY KEY (`id`),
  ADD KEY `stock_products_company_id_foreign` (`company_id`),
  ADD KEY `stock_products_avatar_id_foreign` (`avatar_id`),
  ADD KEY `status_id` (`status_id`),
  ADD KEY `author_id` (`author_id`),
  ADD KEY `stock_brand_id` (`stock_brand_id`),
  ADD KEY `category_id` (`stock_category_id`);

--
-- Indexes for table `stock_sales`
--
ALTER TABLE `stock_sales`
  ADD PRIMARY KEY (`id`),
  ADD KEY `stock_sales_company_id_foreign` (`company_id`),
  ADD KEY `stock_sales_client_id_foreign` (`client_id`),
  ADD KEY `stock_sales_stock_product_id_foreign` (`stock_product_id`),
  ADD KEY `stock_sales_stock_payment_history_id_foreign` (`stock_payment_history_id`),
  ADD KEY `stock_sales_status_id_foreign` (`status_id`),
  ADD KEY `stock_sales_payment_status_id_foreign` (`payment_status_id`),
  ADD KEY `stock_sales_created_by_foreign` (`created_by`),
  ADD KEY `stock_sales_updated_by_foreign` (`updated_by`),
  ADD KEY `stock_sales_deleted_by_foreign` (`deleted_by`);

--
-- Indexes for table `stock_sale_histories`
--
ALTER TABLE `stock_sale_histories`
  ADD PRIMARY KEY (`id`),
  ADD KEY `stock_sale_histories_company_id_foreign` (`company_id`),
  ADD KEY `stock_sale_histories_stock_sale_id_foreign` (`stock_sale_id`),
  ADD KEY `stock_sale_histories_stock_product_id_foreign` (`stock_product_id`);

--
-- Indexes for table `subscriptions`
--
ALTER TABLE `subscriptions`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `subscriptions_stripe_id_unique` (`stripe_id`),
  ADD KEY `subscriptions_user_id_stripe_status_index` (`user_id`,`stripe_status`);

--
-- Indexes for table `subscription_items`
--
ALTER TABLE `subscription_items`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `subscription_items_subscription_id_stripe_price_unique` (`subscription_id`,`stripe_price`),
  ADD UNIQUE KEY `subscription_items_stripe_id_unique` (`stripe_id`);

--
-- Indexes for table `subscription_plans`
--
ALTER TABLE `subscription_plans`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `subscription_plans_identifier_unique` (`identifier`),
  ADD UNIQUE KEY `subscription_plans_stripe_id_unique` (`stripe_id`),
  ADD KEY `status_id` (`status_id`);

--
-- Indexes for table `support_tickets`
--
ALTER TABLE `support_tickets`
  ADD PRIMARY KEY (`id`),
  ADD KEY `support_tickets_company_id_foreign` (`company_id`),
  ADD KEY `support_tickets_user_id_foreign` (`user_id`),
  ADD KEY `support_tickets_assigned_id_foreign` (`assigned_id`),
  ADD KEY `support_tickets_attachment_file_id_foreign` (`attachment_file_id`),
  ADD KEY `support_tickets_status_id_foreign` (`status_id`),
  ADD KEY `support_tickets_type_id_foreign` (`type_id`),
  ADD KEY `support_tickets_priority_id_foreign` (`priority_id`);

--
-- Indexes for table `tasks`
--
ALTER TABLE `tasks`
  ADD PRIMARY KEY (`id`),
  ADD KEY `tasks_company_id_foreign` (`company_id`),
  ADD KEY `tasks_goal_id_foreign` (`goal_id`),
  ADD KEY `tasks_id_company_id_status_id_index` (`id`,`company_id`,`status_id`),
  ADD KEY `status_id` (`status_id`),
  ADD KEY `priority` (`priority`),
  ADD KEY `created_by` (`created_by`),
  ADD KEY `client_id` (`client_id`),
  ADD KEY `project_id` (`project_id`);

--
-- Indexes for table `task_activities`
--
ALTER TABLE `task_activities`
  ADD PRIMARY KEY (`id`),
  ADD KEY `task_activities_company_id_foreign` (`company_id`),
  ADD KEY `task_activities_task_id_foreign` (`task_id`),
  ADD KEY `task_activities_user_id_foreign` (`user_id`),
  ADD KEY `task_activities_id_task_id_company_id_user_id_index` (`id`,`task_id`,`company_id`,`user_id`);

--
-- Indexes for table `task_discussions`
--
ALTER TABLE `task_discussions`
  ADD PRIMARY KEY (`id`),
  ADD KEY `task_discussions_company_id_foreign` (`company_id`),
  ADD KEY `task_discussions_task_id_foreign` (`task_id`),
  ADD KEY `task_discussions_user_id_foreign` (`user_id`),
  ADD KEY `task_discussions_file_id_foreign` (`file_id`),
  ADD KEY `task_discussions_id_task_id_company_id_status_id_user_id_index` (`id`,`task_id`,`company_id`,`status_id`,`user_id`),
  ADD KEY `show_to_customer` (`show_to_customer`),
  ADD KEY `status_id` (`status_id`);

--
-- Indexes for table `task_discussion_comments`
--
ALTER TABLE `task_discussion_comments`
  ADD PRIMARY KEY (`id`),
  ADD KEY `task_discussion_comments_company_id_foreign` (`company_id`),
  ADD KEY `task_discussion_comments_task_discussion_id_foreign` (`task_discussion_id`),
  ADD KEY `task_discussion_comments_user_id_foreign` (`user_id`),
  ADD KEY `task_discussion_comments_attachment_foreign` (`attachment`),
  ADD KEY `task_discussion_comments_id_task_discussion_id_company_id_index` (`id`,`task_discussion_id`,`company_id`);

--
-- Indexes for table `task_files`
--
ALTER TABLE `task_files`
  ADD PRIMARY KEY (`id`),
  ADD KEY `task_files_company_id_foreign` (`company_id`),
  ADD KEY `task_files_task_id_foreign` (`task_id`),
  ADD KEY `task_files_user_id_foreign` (`user_id`),
  ADD KEY `task_files_attachment_foreign` (`attachment`),
  ADD KEY `task_files_id_task_id_company_id_status_id_user_id_index` (`id`,`task_id`,`company_id`,`status_id`,`user_id`),
  ADD KEY `show_to_customer` (`show_to_customer`),
  ADD KEY `status_id` (`status_id`);

--
-- Indexes for table `task_file_comments`
--
ALTER TABLE `task_file_comments`
  ADD PRIMARY KEY (`id`),
  ADD KEY `task_file_comments_company_id_foreign` (`company_id`),
  ADD KEY `task_file_comments_task_file_id_foreign` (`task_file_id`),
  ADD KEY `task_file_comments_user_id_foreign` (`user_id`),
  ADD KEY `task_file_comments_attachment_foreign` (`attachment`),
  ADD KEY `task_file_comments_id_task_file_id_user_id_index` (`id`,`task_file_id`,`user_id`);

--
-- Indexes for table `task_members`
--
ALTER TABLE `task_members`
  ADD PRIMARY KEY (`id`),
  ADD KEY `task_members_company_id_foreign` (`company_id`),
  ADD KEY `task_members_task_id_foreign` (`task_id`),
  ADD KEY `task_members_user_id_foreign` (`user_id`),
  ADD KEY `task_members_added_by_foreign` (`added_by`),
  ADD KEY `task_members_id_task_id_company_id_status_id_user_id_index` (`id`,`task_id`,`company_id`,`status_id`,`user_id`),
  ADD KEY `task_members_is_creator_foreign` (`is_creator`),
  ADD KEY `status_id` (`status_id`);

--
-- Indexes for table `task_notes`
--
ALTER TABLE `task_notes`
  ADD PRIMARY KEY (`id`),
  ADD KEY `task_notes_company_id_foreign` (`company_id`),
  ADD KEY `task_notes_task_id_foreign` (`task_id`),
  ADD KEY `task_notes_user_id_foreign` (`user_id`),
  ADD KEY `task_notes_id_task_id_company_id_status_id_user_id_index` (`id`,`task_id`,`company_id`,`status_id`,`user_id`),
  ADD KEY `show_to_customer` (`show_to_customer`),
  ADD KEY `status_id` (`status_id`);

--
-- Indexes for table `teams`
--
ALTER TABLE `teams`
  ADD PRIMARY KEY (`id`),
  ADD KEY `teams_attachment_file_id_foreign` (`attachment_file_id`),
  ADD KEY `teams_company_id_foreign` (`company_id`),
  ADD KEY `teams_user_id_foreign` (`user_id`),
  ADD KEY `teams_team_lead_id_foreign` (`team_lead_id`),
  ADD KEY `status_id` (`status_id`);

--
-- Indexes for table `team_members`
--
ALTER TABLE `team_members`
  ADD PRIMARY KEY (`id`),
  ADD KEY `team_members_team_id_foreign` (`team_id`),
  ADD KEY `team_members_user_id_foreign` (`user_id`);

--
-- Indexes for table `testimonials`
--
ALTER TABLE `testimonials`
  ADD PRIMARY KEY (`id`),
  ADD KEY `testimonials_company_id_foreign` (`company_id`),
  ADD KEY `status_id` (`status_id`);

--
-- Indexes for table `ticket_replies`
--
ALTER TABLE `ticket_replies`
  ADD PRIMARY KEY (`id`),
  ADD KEY `ticket_replies_support_ticket_id_foreign` (`support_ticket_id`),
  ADD KEY `ticket_replies_user_id_foreign` (`user_id`);

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

--
-- Indexes for table `transactions`
--
ALTER TABLE `transactions`
  ADD PRIMARY KEY (`id`),
  ADD KEY `transactions_company_id_foreign` (`company_id`),
  ADD KEY `transactions_account_id_foreign` (`account_id`),
  ADD KEY `transaction_type` (`transaction_type`),
  ADD KEY `client_id` (`client_id`),
  ADD KEY `income_expense_category_id` (`income_expense_category_id`),
  ADD KEY `status_id` (`status_id`),
  ADD KEY `created_by` (`created_by`),
  ADD KEY `updated_by` (`updated_by`);

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

--
-- Indexes for table `travel`
--
ALTER TABLE `travel`
  ADD PRIMARY KEY (`id`),
  ADD KEY `travel_company_id_foreign` (`company_id`),
  ADD KEY `travel_user_id_foreign` (`user_id`),
  ADD KEY `travel_created_by_foreign` (`created_by`),
  ADD KEY `travel_travel_type_id_foreign` (`travel_type_id`),
  ADD KEY `travel_attachment_foreign` (`attachment`),
  ADD KEY `travel_goal_id_foreign` (`goal_id`),
  ADD KEY `travel_id_travel_type_id_company_id_status_id_user_id_index` (`id`,`travel_type_id`,`company_id`,`status_id`,`user_id`),
  ADD KEY `status_id` (`status_id`);

--
-- Indexes for table `travel_types`
--
ALTER TABLE `travel_types`
  ADD PRIMARY KEY (`id`),
  ADD KEY `travel_types_company_id_foreign` (`company_id`),
  ADD KEY `travel_types_id_status_id_company_id_index` (`id`,`status_id`,`company_id`),
  ADD KEY `status_id` (`status_id`);

--
-- Indexes for table `uploads`
--
ALTER TABLE `uploads`
  ADD PRIMARY KEY (`id`),
  ADD KEY `uploads_status_id_index` (`status_id`);

--
-- Indexes for table `users`
--
ALTER TABLE `users`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `users_email_unique` (`email`),
  ADD UNIQUE KEY `users_phone_unique` (`phone`),
  ADD KEY `users_company_id_foreign` (`company_id`),
  ADD KEY `users_country_id_foreign` (`country_id`),
  ADD KEY `users_role_id_foreign` (`role_id`),
  ADD KEY `users_department_id_foreign` (`department_id`),
  ADD KEY `users_shift_id_foreign` (`shift_id`),
  ADD KEY `users_designation_id_foreign` (`designation_id`),
  ADD KEY `users_manager_id_foreign` (`manager_id`),
  ADD KEY `users_nid_card_id_foreign` (`nid_card_id`),
  ADD KEY `users_passport_file_id_foreign` (`passport_file_id`),
  ADD KEY `users_avatar_id_foreign` (`avatar_id`),
  ADD KEY `users_status_id_index` (`status_id`),
  ADD KEY `users_stripe_id_index` (`stripe_id`);

--
-- Indexes for table `user_devices`
--
ALTER TABLE `user_devices`
  ADD PRIMARY KEY (`id`),
  ADD KEY `user_devices_user_id_foreign` (`user_id`);

--
-- Indexes for table `virtual_meetings`
--
ALTER TABLE `virtual_meetings`
  ADD PRIMARY KEY (`id`),
  ADD KEY `virtual_meetings_company_id_foreign` (`company_id`),
  ADD KEY `virtual_meetings_created_by_foreign` (`created_by`),
  ADD KEY `status_id` (`status_id`);

--
-- Indexes for table `visits`
--
ALTER TABLE `visits`
  ADD PRIMARY KEY (`id`),
  ADD KEY `visits_company_id_foreign` (`company_id`),
  ADD KEY `visits_user_id_foreign` (`user_id`);

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

--
-- Indexes for table `visit_notes`
--
ALTER TABLE `visit_notes`
  ADD PRIMARY KEY (`id`),
  ADD KEY `visit_notes_visit_id_foreign` (`visit_id`);

--
-- Indexes for table `visit_schedules`
--
ALTER TABLE `visit_schedules`
  ADD PRIMARY KEY (`id`),
  ADD KEY `visit_schedules_visit_id_foreign` (`visit_id`);

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

--
-- Indexes for table `weekends`
--
ALTER TABLE `weekends`
  ADD PRIMARY KEY (`id`),
  ADD KEY `weekends_company_id_foreign` (`company_id`),
  ADD KEY `weekends_status_id_foreign` (`status_id`),
  ADD KEY `weekends_id_index` (`id`);

--
-- AUTO_INCREMENT for dumped tables
--

--
-- AUTO_INCREMENT for table `accounts`
--
ALTER TABLE `accounts`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;

--
-- AUTO_INCREMENT for table `activity_log`
--
ALTER TABLE `activity_log`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `advance_salaries`
--
ALTER TABLE `advance_salaries`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `advance_salary_logs`
--
ALTER TABLE `advance_salary_logs`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `advance_types`
--
ALTER TABLE `advance_types`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;

--
-- AUTO_INCREMENT for table `all_contents`
--
ALTER TABLE `all_contents`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=6;

--
-- AUTO_INCREMENT for table `api_setups`
--
ALTER TABLE `api_setups`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5;

--
-- AUTO_INCREMENT for table `appoinments`
--
ALTER TABLE `appoinments`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5;

--
-- AUTO_INCREMENT for table `appoinment_participants`
--
ALTER TABLE `appoinment_participants`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=9;

--
-- AUTO_INCREMENT for table `appraisals`
--
ALTER TABLE `appraisals`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;

--
-- AUTO_INCREMENT for table `appreciates`
--
ALTER TABLE `appreciates`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `app_screens`
--
ALTER TABLE `app_screens`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=12;

--
-- AUTO_INCREMENT for table `assign_leaves`
--
ALTER TABLE `assign_leaves`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=31;

--
-- AUTO_INCREMENT for table `attendances`
--
ALTER TABLE `attendances`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `author_infos`
--
ALTER TABLE `author_infos`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=6;

--
-- AUTO_INCREMENT for table `awards`
--
ALTER TABLE `awards`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;

--
-- AUTO_INCREMENT for table `award_types`
--
ALTER TABLE `award_types`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;

--
-- AUTO_INCREMENT for table `bank_accounts`
--
ALTER TABLE `bank_accounts`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `categories`
--
ALTER TABLE `categories`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `clients`
--
ALTER TABLE `clients`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=11;

--
-- AUTO_INCREMENT for table `commissions`
--
ALTER TABLE `commissions`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;

--
-- AUTO_INCREMENT for table `companies`
--
ALTER TABLE `companies`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;

--
-- AUTO_INCREMENT for table `company_configs`
--
ALTER TABLE `company_configs`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=31;

--
-- AUTO_INCREMENT for table `competences`
--
ALTER TABLE `competences`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=7;

--
-- AUTO_INCREMENT for table `competence_types`
--
ALTER TABLE `competence_types`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;

--
-- AUTO_INCREMENT for table `contacts`
--
ALTER TABLE `contacts`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `conversations`
--
ALTER TABLE `conversations`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `countries`
--
ALTER TABLE `countries`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=212;

--
-- AUTO_INCREMENT for table `currencies`
--
ALTER TABLE `currencies`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=121;

--
-- AUTO_INCREMENT for table `daily_leaves`
--
ALTER TABLE `daily_leaves`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `database_backups`
--
ALTER TABLE `database_backups`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `date_formats`
--
ALTER TABLE `date_formats`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=16;

--
-- AUTO_INCREMENT for table `departments`
--
ALTER TABLE `departments`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=7;

--
-- AUTO_INCREMENT for table `deposits`
--
ALTER TABLE `deposits`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=201;

--
-- AUTO_INCREMENT for table `designations`
--
ALTER TABLE `designations`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=13;

--
-- AUTO_INCREMENT for table `discussions`
--
ALTER TABLE `discussions`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `discussion_comments`
--
ALTER TABLE `discussion_comments`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `discussion_likes`
--
ALTER TABLE `discussion_likes`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `duty_schedules`
--
ALTER TABLE `duty_schedules`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=6;

--
-- AUTO_INCREMENT for table `employee_breaks`
--
ALTER TABLE `employee_breaks`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `employee_tasks`
--
ALTER TABLE `employee_tasks`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=6;

--
-- AUTO_INCREMENT for table `expenses`
--
ALTER TABLE `expenses`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=21;

--
-- AUTO_INCREMENT for table `expense_claims`
--
ALTER TABLE `expense_claims`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `expense_claim_details`
--
ALTER TABLE `expense_claim_details`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `failed_jobs`
--
ALTER TABLE `failed_jobs`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `features`
--
ALTER TABLE `features`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=19;

--
-- AUTO_INCREMENT for table `front_teams`
--
ALTER TABLE `front_teams`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=9;

--
-- AUTO_INCREMENT for table `goals`
--
ALTER TABLE `goals`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;

--
-- AUTO_INCREMENT for table `goal_types`
--
ALTER TABLE `goal_types`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=7;

--
-- AUTO_INCREMENT for table `holidays`
--
ALTER TABLE `holidays`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=33;

--
-- AUTO_INCREMENT for table `home_pages`
--
ALTER TABLE `home_pages`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;

--
-- AUTO_INCREMENT for table `hrm_expenses`
--
ALTER TABLE `hrm_expenses`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=391;

--
-- AUTO_INCREMENT for table `hrm_languages`
--
ALTER TABLE `hrm_languages`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;

--
-- AUTO_INCREMENT for table `income_expense_categories`
--
ALTER TABLE `income_expense_categories`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=105;

--
-- AUTO_INCREMENT for table `indicators`
--
ALTER TABLE `indicators`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;

--
-- AUTO_INCREMENT for table `invoices`
--
ALTER TABLE `invoices`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `invoice_payment_records`
--
ALTER TABLE `invoice_payment_records`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `ip_setups`
--
ALTER TABLE `ip_setups`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `jitsi_meetings`
--
ALTER TABLE `jitsi_meetings`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `languages`
--
ALTER TABLE `languages`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=115;

--
-- AUTO_INCREMENT for table `late_in_out_reasons`
--
ALTER TABLE `late_in_out_reasons`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `leads`
--
ALTER TABLE `leads`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=13;

--
-- AUTO_INCREMENT for table `leads_email_integrations`
--
ALTER TABLE `leads_email_integrations`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `lead_activity_logs`
--
ALTER TABLE `lead_activity_logs`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `lead_attachments`
--
ALTER TABLE `lead_attachments`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `lead_integration_emails`
--
ALTER TABLE `lead_integration_emails`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `lead_sources`
--
ALTER TABLE `lead_sources`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=37;

--
-- AUTO_INCREMENT for table `lead_statuses`
--
ALTER TABLE `lead_statuses`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=15;

--
-- AUTO_INCREMENT for table `lead_subscriptions`
--
ALTER TABLE `lead_subscriptions`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `lead_types`
--
ALTER TABLE `lead_types`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=11;

--
-- AUTO_INCREMENT for table `leave_requests`
--
ALTER TABLE `leave_requests`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `leave_settings`
--
ALTER TABLE `leave_settings`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;

--
-- AUTO_INCREMENT for table `leave_types`
--
ALTER TABLE `leave_types`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=11;

--
-- AUTO_INCREMENT for table `location_binds`
--
ALTER TABLE `location_binds`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `location_logs`
--
ALTER TABLE `location_logs`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `meetings`
--
ALTER TABLE `meetings`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=6;

--
-- AUTO_INCREMENT for table `meeting_members`
--
ALTER TABLE `meeting_members`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `meeting_participants`
--
ALTER TABLE `meeting_participants`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `meeting_setups`
--
ALTER TABLE `meeting_setups`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `menus`
--
ALTER TABLE `menus`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=6;

--
-- AUTO_INCREMENT for table `meta_information`
--
ALTER TABLE `meta_information`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=15;

--
-- AUTO_INCREMENT for table `migrations`
--
ALTER TABLE `migrations`
  MODIFY `id` int UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=208;

--
-- AUTO_INCREMENT for table `notes`
--
ALTER TABLE `notes`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `notices`
--
ALTER TABLE `notices`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=61;

--
-- AUTO_INCREMENT for table `notice_departments`
--
ALTER TABLE `notice_departments`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `notice_view_logs`
--
ALTER TABLE `notice_view_logs`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=21;

--
-- AUTO_INCREMENT for table `notifications_old`
--
ALTER TABLE `notifications_old`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `notification_types`
--
ALTER TABLE `notification_types`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=7;

--
-- AUTO_INCREMENT for table `payment_histories`
--
ALTER TABLE `payment_histories`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `payment_history_details`
--
ALTER TABLE `payment_history_details`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `payment_history_logs`
--
ALTER TABLE `payment_history_logs`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `payment_methods`
--
ALTER TABLE `payment_methods`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=57;

--
-- AUTO_INCREMENT for table `payment_types`
--
ALTER TABLE `payment_types`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `permissions`
--
ALTER TABLE `permissions`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=94;

--
-- AUTO_INCREMENT for table `portfolios`
--
ALTER TABLE `portfolios`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=9;

--
-- AUTO_INCREMENT for table `product_purchases`
--
ALTER TABLE `product_purchases`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `product_purchase_histories`
--
ALTER TABLE `product_purchase_histories`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `product_units`
--
ALTER TABLE `product_units`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `projects`
--
ALTER TABLE `projects`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `project_activities`
--
ALTER TABLE `project_activities`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `project_files`
--
ALTER TABLE `project_files`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `project_file_comments`
--
ALTER TABLE `project_file_comments`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `project_membars`
--
ALTER TABLE `project_membars`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `project_payments`
--
ALTER TABLE `project_payments`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `proposals`
--
ALTER TABLE `proposals`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `proposal_comments`
--
ALTER TABLE `proposal_comments`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `roles`
--
ALTER TABLE `roles`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=10;

--
-- AUTO_INCREMENT for table `role_users`
--
ALTER TABLE `role_users`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=6;

--
-- AUTO_INCREMENT for table `salary_generates`
--
ALTER TABLE `salary_generates`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `salary_payment_logs`
--
ALTER TABLE `salary_payment_logs`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `salary_setups`
--
ALTER TABLE `salary_setups`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `salary_setup_details`
--
ALTER TABLE `salary_setup_details`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `sales`
--
ALTER TABLE `sales`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `sale_accounts`
--
ALTER TABLE `sale_accounts`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `sale_adjustments`
--
ALTER TABLE `sale_adjustments`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `sale_billers`
--
ALTER TABLE `sale_billers`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `sale_brands`
--
ALTER TABLE `sale_brands`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `sale_cash_registers`
--
ALTER TABLE `sale_cash_registers`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `sale_categories`
--
ALTER TABLE `sale_categories`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `sale_coupons`
--
ALTER TABLE `sale_coupons`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `sale_customers`
--
ALTER TABLE `sale_customers`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `sale_customer_groups`
--
ALTER TABLE `sale_customer_groups`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `sale_deliveries`
--
ALTER TABLE `sale_deliveries`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `sale_discounts`
--
ALTER TABLE `sale_discounts`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `sale_discount_plans`
--
ALTER TABLE `sale_discount_plans`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `sale_discount_plan_customers`
--
ALTER TABLE `sale_discount_plan_customers`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `sale_discount_plan_discounts`
--
ALTER TABLE `sale_discount_plan_discounts`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `sale_expenses`
--
ALTER TABLE `sale_expenses`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `sale_expense_categories`
--
ALTER TABLE `sale_expense_categories`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `sale_gift_cards`
--
ALTER TABLE `sale_gift_cards`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `sale_gift_card_recharges`
--
ALTER TABLE `sale_gift_card_recharges`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `sale_payments`
--
ALTER TABLE `sale_payments`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `sale_payment_with_cheques`
--
ALTER TABLE `sale_payment_with_cheques`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `sale_pos_settings`
--
ALTER TABLE `sale_pos_settings`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `sale_products`
--
ALTER TABLE `sale_products`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `sale_product_adjustments`
--
ALTER TABLE `sale_product_adjustments`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `sale_product_batches`
--
ALTER TABLE `sale_product_batches`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `sale_product_purchases`
--
ALTER TABLE `sale_product_purchases`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `sale_product_quotations`
--
ALTER TABLE `sale_product_quotations`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `sale_product_returns`
--
ALTER TABLE `sale_product_returns`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `sale_product_sales`
--
ALTER TABLE `sale_product_sales`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `sale_product_transfers`
--
ALTER TABLE `sale_product_transfers`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `sale_product_variants`
--
ALTER TABLE `sale_product_variants`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `sale_product_warehouses`
--
ALTER TABLE `sale_product_warehouses`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `sale_purchases`
--
ALTER TABLE `sale_purchases`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `sale_purchase_product_returns`
--
ALTER TABLE `sale_purchase_product_returns`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `sale_quotations`
--
ALTER TABLE `sale_quotations`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `sale_returns`
--
ALTER TABLE `sale_returns`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `sale_return_purchases`
--
ALTER TABLE `sale_return_purchases`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `sale_reward_point_settings`
--
ALTER TABLE `sale_reward_point_settings`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `sale_stock_counts`
--
ALTER TABLE `sale_stock_counts`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `sale_suppliers`
--
ALTER TABLE `sale_suppliers`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `sale_taxes`
--
ALTER TABLE `sale_taxes`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `sale_transfers`
--
ALTER TABLE `sale_transfers`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `sale_units`
--
ALTER TABLE `sale_units`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `sale_variants`
--
ALTER TABLE `sale_variants`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `sale_warehouses`
--
ALTER TABLE `sale_warehouses`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;

--
-- AUTO_INCREMENT for table `search_menus`
--
ALTER TABLE `search_menus`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `services`
--
ALTER TABLE `services`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=7;

--
-- AUTO_INCREMENT for table `settings`
--
ALTER TABLE `settings`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=16;

--
-- AUTO_INCREMENT for table `shifts`
--
ALTER TABLE `shifts`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5;

--
-- AUTO_INCREMENT for table `skills`
--
ALTER TABLE `skills`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `sms_logs`
--
ALTER TABLE `sms_logs`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `social_identities`
--
ALTER TABLE `social_identities`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `statuses`
--
ALTER TABLE `statuses`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=36;

--
-- AUTO_INCREMENT for table `stock_brands`
--
ALTER TABLE `stock_brands`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `stock_categories`
--
ALTER TABLE `stock_categories`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `stock_histories`
--
ALTER TABLE `stock_histories`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `stock_payment_histories`
--
ALTER TABLE `stock_payment_histories`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `stock_products`
--
ALTER TABLE `stock_products`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `stock_sales`
--
ALTER TABLE `stock_sales`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `stock_sale_histories`
--
ALTER TABLE `stock_sale_histories`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `subscriptions`
--
ALTER TABLE `subscriptions`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `subscription_items`
--
ALTER TABLE `subscription_items`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `subscription_plans`
--
ALTER TABLE `subscription_plans`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;

--
-- AUTO_INCREMENT for table `support_tickets`
--
ALTER TABLE `support_tickets`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;

--
-- AUTO_INCREMENT for table `tasks`
--
ALTER TABLE `tasks`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `task_activities`
--
ALTER TABLE `task_activities`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `task_discussions`
--
ALTER TABLE `task_discussions`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `task_discussion_comments`
--
ALTER TABLE `task_discussion_comments`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `task_files`
--
ALTER TABLE `task_files`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `task_file_comments`
--
ALTER TABLE `task_file_comments`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `task_members`
--
ALTER TABLE `task_members`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `task_notes`
--
ALTER TABLE `task_notes`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `teams`
--
ALTER TABLE `teams`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=7;

--
-- AUTO_INCREMENT for table `team_members`
--
ALTER TABLE `team_members`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;

--
-- AUTO_INCREMENT for table `testimonials`
--
ALTER TABLE `testimonials`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;

--
-- AUTO_INCREMENT for table `ticket_replies`
--
ALTER TABLE `ticket_replies`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `time_zones`
--
ALTER TABLE `time_zones`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=425;

--
-- AUTO_INCREMENT for table `transactions`
--
ALTER TABLE `transactions`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=221;

--
-- AUTO_INCREMENT for table `translations`
--
ALTER TABLE `translations`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `travel`
--
ALTER TABLE `travel`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;

--
-- AUTO_INCREMENT for table `travel_types`
--
ALTER TABLE `travel_types`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5;

--
-- AUTO_INCREMENT for table `uploads`
--
ALTER TABLE `uploads`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=67;

--
-- AUTO_INCREMENT for table `users`
--
ALTER TABLE `users`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=6;

--
-- AUTO_INCREMENT for table `user_devices`
--
ALTER TABLE `user_devices`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `virtual_meetings`
--
ALTER TABLE `virtual_meetings`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `visits`
--
ALTER TABLE `visits`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=31;

--
-- AUTO_INCREMENT for table `visit_images`
--
ALTER TABLE `visit_images`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `visit_notes`
--
ALTER TABLE `visit_notes`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=31;

--
-- AUTO_INCREMENT for table `visit_schedules`
--
ALTER TABLE `visit_schedules`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=31;

--
-- AUTO_INCREMENT for table `web_to_leads`
--
ALTER TABLE `web_to_leads`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `weekends`
--
ALTER TABLE `weekends`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=15;

--
-- Constraints for dumped tables
--

--
-- Constraints for table `accounts`
--
ALTER TABLE `accounts`
  ADD CONSTRAINT `accounts_company_id_foreign` FOREIGN KEY (`company_id`) REFERENCES `companies` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `accounts_created_by_foreign` FOREIGN KEY (`created_by`) REFERENCES `users` (`id`),
  ADD CONSTRAINT `accounts_status_id_foreign` FOREIGN KEY (`status_id`) REFERENCES `statuses` (`id`),
  ADD CONSTRAINT `accounts_updated_by_foreign` FOREIGN KEY (`updated_by`) REFERENCES `users` (`id`);

--
-- Constraints for table `advance_salaries`
--
ALTER TABLE `advance_salaries`
  ADD CONSTRAINT `advance_salaries_advance_type_id_foreign` FOREIGN KEY (`advance_type_id`) REFERENCES `advance_types` (`id`),
  ADD CONSTRAINT `advance_salaries_approver_id_foreign` FOREIGN KEY (`approver_id`) REFERENCES `users` (`id`),
  ADD CONSTRAINT `advance_salaries_company_id_foreign` FOREIGN KEY (`company_id`) REFERENCES `companies` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `advance_salaries_created_by_foreign` FOREIGN KEY (`created_by`) REFERENCES `users` (`id`),
  ADD CONSTRAINT `advance_salaries_pay_foreign` FOREIGN KEY (`pay`) REFERENCES `statuses` (`id`),
  ADD CONSTRAINT `advance_salaries_return_status_foreign` FOREIGN KEY (`return_status`) REFERENCES `statuses` (`id`),
  ADD CONSTRAINT `advance_salaries_status_id_foreign` FOREIGN KEY (`status_id`) REFERENCES `statuses` (`id`),
  ADD CONSTRAINT `advance_salaries_updated_by_foreign` FOREIGN KEY (`updated_by`) REFERENCES `users` (`id`),
  ADD CONSTRAINT `advance_salaries_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`);

--
-- Constraints for table `advance_salary_logs`
--
ALTER TABLE `advance_salary_logs`
  ADD CONSTRAINT `advance_salary_logs_advance_salary_id_foreign` FOREIGN KEY (`advance_salary_id`) REFERENCES `advance_salaries` (`id`),
  ADD CONSTRAINT `advance_salary_logs_created_by_foreign` FOREIGN KEY (`created_by`) REFERENCES `users` (`id`),
  ADD CONSTRAINT `advance_salary_logs_updated_by_foreign` FOREIGN KEY (`updated_by`) REFERENCES `users` (`id`),
  ADD CONSTRAINT `advance_salary_logs_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`);

--
-- Constraints for table `advance_types`
--
ALTER TABLE `advance_types`
  ADD CONSTRAINT `advance_types_company_id_foreign` FOREIGN KEY (`company_id`) REFERENCES `companies` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `advance_types_status_id_foreign` FOREIGN KEY (`status_id`) REFERENCES `statuses` (`id`);

--
-- Constraints for table `all_contents`
--
ALTER TABLE `all_contents`
  ADD CONSTRAINT `all_contents_company_id_foreign` FOREIGN KEY (`company_id`) REFERENCES `companies` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `all_contents_created_by_foreign` FOREIGN KEY (`created_by`) REFERENCES `users` (`id`),
  ADD CONSTRAINT `all_contents_status_id_foreign` FOREIGN KEY (`status_id`) REFERENCES `statuses` (`id`),
  ADD CONSTRAINT `all_contents_updated_by_foreign` FOREIGN KEY (`updated_by`) REFERENCES `users` (`id`),
  ADD CONSTRAINT `all_contents_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `api_setups`
--
ALTER TABLE `api_setups`
  ADD CONSTRAINT `api_setups_company_id_foreign` FOREIGN KEY (`company_id`) REFERENCES `companies` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `api_setups_status_id_foreign` FOREIGN KEY (`status_id`) REFERENCES `statuses` (`id`);

--
-- Constraints for table `appoinments`
--
ALTER TABLE `appoinments`
  ADD CONSTRAINT `appoinments_appoinment_with_foreign` FOREIGN KEY (`appoinment_with`) REFERENCES `users` (`id`),
  ADD CONSTRAINT `appoinments_attachment_file_id_foreign` FOREIGN KEY (`attachment_file_id`) REFERENCES `uploads` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `appoinments_company_id_foreign` FOREIGN KEY (`company_id`) REFERENCES `companies` (`id`),
  ADD CONSTRAINT `appoinments_created_by_foreign` FOREIGN KEY (`created_by`) REFERENCES `users` (`id`),
  ADD CONSTRAINT `appoinments_status_id_foreign` FOREIGN KEY (`status_id`) REFERENCES `statuses` (`id`);

--
-- Constraints for table `appoinment_participants`
--
ALTER TABLE `appoinment_participants`
  ADD CONSTRAINT `appoinment_participants_appoinment_id_foreign` FOREIGN KEY (`appoinment_id`) REFERENCES `appoinments` (`id`),
  ADD CONSTRAINT `appoinment_participants_participant_id_foreign` FOREIGN KEY (`participant_id`) REFERENCES `users` (`id`);

--
-- Constraints for table `appraisals`
--
ALTER TABLE `appraisals`
  ADD CONSTRAINT `appraisals_added_by_foreign` FOREIGN KEY (`added_by`) REFERENCES `users` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `appraisals_company_id_foreign` FOREIGN KEY (`company_id`) REFERENCES `companies` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `appraisals_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `appreciates`
--
ALTER TABLE `appreciates`
  ADD CONSTRAINT `appreciates_appreciate_by_foreign` FOREIGN KEY (`appreciate_by`) REFERENCES `users` (`id`),
  ADD CONSTRAINT `appreciates_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`);

--
-- Constraints for table `app_screens`
--
ALTER TABLE `app_screens`
  ADD CONSTRAINT `app_screens_status_id_foreign` FOREIGN KEY (`status_id`) REFERENCES `statuses` (`id`);

--
-- Constraints for table `assign_leaves`
--
ALTER TABLE `assign_leaves`
  ADD CONSTRAINT `assign_leaves_company_id_foreign` FOREIGN KEY (`company_id`) REFERENCES `companies` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `assign_leaves_department_id_foreign` FOREIGN KEY (`department_id`) REFERENCES `departments` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `assign_leaves_status_id_foreign` FOREIGN KEY (`status_id`) REFERENCES `statuses` (`id`),
  ADD CONSTRAINT `assign_leaves_type_id_foreign` FOREIGN KEY (`type_id`) REFERENCES `leave_types` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `attendances`
--
ALTER TABLE `attendances`
  ADD CONSTRAINT `attendances_company_id_foreign` FOREIGN KEY (`company_id`) REFERENCES `companies` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `attendances_status_id_foreign` FOREIGN KEY (`status_id`) REFERENCES `statuses` (`id`),
  ADD CONSTRAINT `attendances_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `author_infos`
--
ALTER TABLE `author_infos`
  ADD CONSTRAINT `author_infos_approved_by_foreign` FOREIGN KEY (`approved_by`) REFERENCES `users` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `author_infos_archived_by_foreign` FOREIGN KEY (`archived_by`) REFERENCES `users` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `author_infos_cancelled_by_foreign` FOREIGN KEY (`cancelled_by`) REFERENCES `users` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `author_infos_created_by_foreign` FOREIGN KEY (`created_by`) REFERENCES `users` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `author_infos_deleted_by_foreign` FOREIGN KEY (`deleted_by`) REFERENCES `users` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `author_infos_published_by_foreign` FOREIGN KEY (`published_by`) REFERENCES `users` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `author_infos_referred_by_foreign` FOREIGN KEY (`referred_by`) REFERENCES `users` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `author_infos_rejected_by_foreign` FOREIGN KEY (`rejected_by`) REFERENCES `users` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `author_infos_restored_by_foreign` FOREIGN KEY (`restored_by`) REFERENCES `users` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `author_infos_unpublished_by_foreign` FOREIGN KEY (`unpublished_by`) REFERENCES `users` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `author_infos_updated_by_foreign` FOREIGN KEY (`updated_by`) REFERENCES `users` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `awards`
--
ALTER TABLE `awards`
  ADD CONSTRAINT `awards_attachment_foreign` FOREIGN KEY (`attachment`) REFERENCES `uploads` (`id`),
  ADD CONSTRAINT `awards_award_type_id_foreign` FOREIGN KEY (`award_type_id`) REFERENCES `award_types` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `awards_company_id_foreign` FOREIGN KEY (`company_id`) REFERENCES `companies` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `awards_created_by_foreign` FOREIGN KEY (`created_by`) REFERENCES `users` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `awards_goal_id_foreign` FOREIGN KEY (`goal_id`) REFERENCES `goals` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `awards_status_id_foreign` FOREIGN KEY (`status_id`) REFERENCES `statuses` (`id`),
  ADD CONSTRAINT `awards_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `award_types`
--
ALTER TABLE `award_types`
  ADD CONSTRAINT `award_types_company_id_foreign` FOREIGN KEY (`company_id`) REFERENCES `companies` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `award_types_status_id_foreign` FOREIGN KEY (`status_id`) REFERENCES `statuses` (`id`);

--
-- Constraints for table `bank_accounts`
--
ALTER TABLE `bank_accounts`
  ADD CONSTRAINT `bank_accounts_author_info_id_foreign` FOREIGN KEY (`author_info_id`) REFERENCES `author_infos` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `bank_accounts_status_id_foreign` FOREIGN KEY (`status_id`) REFERENCES `statuses` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `bank_accounts_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`);

--
-- Constraints for table `categories`
--
ALTER TABLE `categories`
  ADD CONSTRAINT `categories_author_info_id_foreign` FOREIGN KEY (`author_info_id`) REFERENCES `author_infos` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `categories_status_id_foreign` FOREIGN KEY (`status_id`) REFERENCES `statuses` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `clients`
--
ALTER TABLE `clients`
  ADD CONSTRAINT `clients_avatar_id_foreign` FOREIGN KEY (`avatar_id`) REFERENCES `uploads` (`id`),
  ADD CONSTRAINT `clients_company_id_foreign` FOREIGN KEY (`company_id`) REFERENCES `companies` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `clients_status_id_foreign` FOREIGN KEY (`status_id`) REFERENCES `statuses` (`id`);

--
-- Constraints for table `commissions`
--
ALTER TABLE `commissions`
  ADD CONSTRAINT `commissions_company_id_foreign` FOREIGN KEY (`company_id`) REFERENCES `companies` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `commissions_status_id_foreign` FOREIGN KEY (`status_id`) REFERENCES `statuses` (`id`);

--
-- Constraints for table `companies`
--
ALTER TABLE `companies`
  ADD CONSTRAINT `companies_country_id_foreign` FOREIGN KEY (`country_id`) REFERENCES `countries` (`id`),
  ADD CONSTRAINT `companies_status_id_foreign` FOREIGN KEY (`status_id`) REFERENCES `statuses` (`id`),
  ADD CONSTRAINT `companies_trade_licence_id_foreign` FOREIGN KEY (`trade_licence_id`) REFERENCES `uploads` (`id`);

--
-- Constraints for table `company_configs`
--
ALTER TABLE `company_configs`
  ADD CONSTRAINT `company_configs_company_id_foreign` FOREIGN KEY (`company_id`) REFERENCES `companies` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `competences`
--
ALTER TABLE `competences`
  ADD CONSTRAINT `competences_company_id_foreign` FOREIGN KEY (`company_id`) REFERENCES `companies` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `competences_competence_type_id_foreign` FOREIGN KEY (`competence_type_id`) REFERENCES `competence_types` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `competences_status_id_foreign` FOREIGN KEY (`status_id`) REFERENCES `statuses` (`id`);

--
-- Constraints for table `competence_types`
--
ALTER TABLE `competence_types`
  ADD CONSTRAINT `competence_types_company_id_foreign` FOREIGN KEY (`company_id`) REFERENCES `companies` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `competence_types_status_id_foreign` FOREIGN KEY (`status_id`) REFERENCES `statuses` (`id`);

--
-- Constraints for table `conversations`
--
ALTER TABLE `conversations`
  ADD CONSTRAINT `conversations_image_id_foreign` FOREIGN KEY (`image_id`) REFERENCES `uploads` (`id`),
  ADD CONSTRAINT `conversations_receiver_id_foreign` FOREIGN KEY (`receiver_id`) REFERENCES `users` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `conversations_sender_id_foreign` FOREIGN KEY (`sender_id`) REFERENCES `users` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `daily_leaves`
--
ALTER TABLE `daily_leaves`
  ADD CONSTRAINT `daily_leaves_approved_by_hr_foreign` FOREIGN KEY (`approved_by_hr`) REFERENCES `users` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `daily_leaves_approved_by_tl_foreign` FOREIGN KEY (`approved_by_tl`) REFERENCES `users` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `daily_leaves_company_id_foreign` FOREIGN KEY (`company_id`) REFERENCES `companies` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `daily_leaves_rejected_by_hr_foreign` FOREIGN KEY (`rejected_by_hr`) REFERENCES `users` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `daily_leaves_rejected_by_tl_foreign` FOREIGN KEY (`rejected_by_tl`) REFERENCES `users` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `daily_leaves_status_id_foreign` FOREIGN KEY (`status_id`) REFERENCES `statuses` (`id`),
  ADD CONSTRAINT `daily_leaves_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `departments`
--
ALTER TABLE `departments`
  ADD CONSTRAINT `departments_company_id_foreign` FOREIGN KEY (`company_id`) REFERENCES `companies` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `departments_status_id_foreign` FOREIGN KEY (`status_id`) REFERENCES `statuses` (`id`);

--
-- Constraints for table `deposits`
--
ALTER TABLE `deposits`
  ADD CONSTRAINT `deposits_approver_id_foreign` FOREIGN KEY (`approver_id`) REFERENCES `users` (`id`),
  ADD CONSTRAINT `deposits_attachment_foreign` FOREIGN KEY (`attachment`) REFERENCES `uploads` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `deposits_company_id_foreign` FOREIGN KEY (`company_id`) REFERENCES `companies` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `deposits_created_by_foreign` FOREIGN KEY (`created_by`) REFERENCES `users` (`id`),
  ADD CONSTRAINT `deposits_income_expense_category_id_foreign` FOREIGN KEY (`income_expense_category_id`) REFERENCES `income_expense_categories` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `deposits_pay_foreign` FOREIGN KEY (`pay`) REFERENCES `statuses` (`id`),
  ADD CONSTRAINT `deposits_payment_method_id_foreign` FOREIGN KEY (`payment_method_id`) REFERENCES `payment_methods` (`id`),
  ADD CONSTRAINT `deposits_status_id_foreign` FOREIGN KEY (`status_id`) REFERENCES `statuses` (`id`),
  ADD CONSTRAINT `deposits_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`),
  ADD CONSTRAINT `deposits_updated_by_foreign` FOREIGN KEY (`updated_by`) REFERENCES `users` (`id`),
  ADD CONSTRAINT `deposits_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`);

--
-- Constraints for table `designations`
--
ALTER TABLE `designations`
  ADD CONSTRAINT `designations_company_id_foreign` FOREIGN KEY (`company_id`) REFERENCES `companies` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `designations_status_id_foreign` FOREIGN KEY (`status_id`) REFERENCES `statuses` (`id`);

--
-- Constraints for table `discussions`
--
ALTER TABLE `discussions`
  ADD CONSTRAINT `discussions_company_id_foreign` FOREIGN KEY (`company_id`) REFERENCES `companies` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `discussions_project_id_foreign` FOREIGN KEY (`project_id`) REFERENCES `projects` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `discussions_show_to_customer_foreign` FOREIGN KEY (`show_to_customer`) REFERENCES `statuses` (`id`),
  ADD CONSTRAINT `discussions_status_id_foreign` FOREIGN KEY (`status_id`) REFERENCES `statuses` (`id`),
  ADD CONSTRAINT `discussions_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `discussion_comments`
--
ALTER TABLE `discussion_comments`
  ADD CONSTRAINT `discussion_comments_attachment_foreign` FOREIGN KEY (`attachment`) REFERENCES `uploads` (`id`),
  ADD CONSTRAINT `discussion_comments_company_id_foreign` FOREIGN KEY (`company_id`) REFERENCES `companies` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `discussion_comments_discussion_id_foreign` FOREIGN KEY (`discussion_id`) REFERENCES `discussions` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `discussion_comments_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `discussion_likes`
--
ALTER TABLE `discussion_likes`
  ADD CONSTRAINT `discussion_likes_discussion_id_foreign` FOREIGN KEY (`discussion_id`) REFERENCES `discussions` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `discussion_likes_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `duty_schedules`
--
ALTER TABLE `duty_schedules`
  ADD CONSTRAINT `duty_schedules_company_id_foreign` FOREIGN KEY (`company_id`) REFERENCES `companies` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `duty_schedules_shift_id_foreign` FOREIGN KEY (`shift_id`) REFERENCES `shifts` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `duty_schedules_status_id_foreign` FOREIGN KEY (`status_id`) REFERENCES `statuses` (`id`);

--
-- Constraints for table `employee_breaks`
--
ALTER TABLE `employee_breaks`
  ADD CONSTRAINT `employee_breaks_company_id_foreign` FOREIGN KEY (`company_id`) REFERENCES `companies` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `employee_breaks_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `employee_tasks`
--
ALTER TABLE `employee_tasks`
  ADD CONSTRAINT `employee_tasks_assigned_id_foreign` FOREIGN KEY (`assigned_id`) REFERENCES `users` (`id`),
  ADD CONSTRAINT `employee_tasks_attachment_file_id_foreign` FOREIGN KEY (`attachment_file_id`) REFERENCES `uploads` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `employee_tasks_created_by_foreign` FOREIGN KEY (`created_by`) REFERENCES `users` (`id`),
  ADD CONSTRAINT `employee_tasks_status_id_foreign` FOREIGN KEY (`status_id`) REFERENCES `statuses` (`id`);

--
-- Constraints for table `expenses`
--
ALTER TABLE `expenses`
  ADD CONSTRAINT `expenses_approver_id_foreign` FOREIGN KEY (`approver_id`) REFERENCES `users` (`id`),
  ADD CONSTRAINT `expenses_attachment_foreign` FOREIGN KEY (`attachment`) REFERENCES `uploads` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `expenses_company_id_foreign` FOREIGN KEY (`company_id`) REFERENCES `companies` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `expenses_created_by_foreign` FOREIGN KEY (`created_by`) REFERENCES `users` (`id`),
  ADD CONSTRAINT `expenses_income_expense_category_id_foreign` FOREIGN KEY (`income_expense_category_id`) REFERENCES `income_expense_categories` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `expenses_pay_foreign` FOREIGN KEY (`pay`) REFERENCES `statuses` (`id`),
  ADD CONSTRAINT `expenses_payment_method_id_foreign` FOREIGN KEY (`payment_method_id`) REFERENCES `payment_methods` (`id`),
  ADD CONSTRAINT `expenses_status_id_foreign` FOREIGN KEY (`status_id`) REFERENCES `statuses` (`id`),
  ADD CONSTRAINT `expenses_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`),
  ADD CONSTRAINT `expenses_updated_by_foreign` FOREIGN KEY (`updated_by`) REFERENCES `users` (`id`),
  ADD CONSTRAINT `expenses_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`);

--
-- Constraints for table `expense_claims`
--
ALTER TABLE `expense_claims`
  ADD CONSTRAINT `expense_claims_attachment_file_id_foreign` FOREIGN KEY (`attachment_file_id`) REFERENCES `uploads` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `expense_claims_company_id_foreign` FOREIGN KEY (`company_id`) REFERENCES `companies` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `expense_claims_status_id_foreign` FOREIGN KEY (`status_id`) REFERENCES `statuses` (`id`),
  ADD CONSTRAINT `expense_claims_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `expense_claim_details`
--
ALTER TABLE `expense_claim_details`
  ADD CONSTRAINT `expense_claim_details_company_id_foreign` FOREIGN KEY (`company_id`) REFERENCES `companies` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `expense_claim_details_expense_claim_id_foreign` FOREIGN KEY (`expense_claim_id`) REFERENCES `expense_claims` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `expense_claim_details_hrm_expense_id_foreign` FOREIGN KEY (`hrm_expense_id`) REFERENCES `hrm_expenses` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `expense_claim_details_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `features`
--
ALTER TABLE `features`
  ADD CONSTRAINT `features_attachment_file_id_foreign` FOREIGN KEY (`attachment_file_id`) REFERENCES `uploads` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `features_status_id_foreign` FOREIGN KEY (`status_id`) REFERENCES `statuses` (`id`);

--
-- Constraints for table `front_teams`
--
ALTER TABLE `front_teams`
  ADD CONSTRAINT `front_teams_attachment_foreign` FOREIGN KEY (`attachment`) REFERENCES `uploads` (`id`),
  ADD CONSTRAINT `front_teams_status_id_foreign` FOREIGN KEY (`status_id`) REFERENCES `statuses` (`id`),
  ADD CONSTRAINT `front_teams_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `goals`
--
ALTER TABLE `goals`
  ADD CONSTRAINT `goals_company_id_foreign` FOREIGN KEY (`company_id`) REFERENCES `companies` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `goals_created_by_foreign` FOREIGN KEY (`created_by`) REFERENCES `users` (`id`),
  ADD CONSTRAINT `goals_goal_type_id_foreign` FOREIGN KEY (`goal_type_id`) REFERENCES `goal_types` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `goals_status_id_foreign` FOREIGN KEY (`status_id`) REFERENCES `statuses` (`id`);

--
-- Constraints for table `goal_types`
--
ALTER TABLE `goal_types`
  ADD CONSTRAINT `goal_types_company_id_foreign` FOREIGN KEY (`company_id`) REFERENCES `companies` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `goal_types_status_id_foreign` FOREIGN KEY (`status_id`) REFERENCES `statuses` (`id`);

--
-- Constraints for table `holidays`
--
ALTER TABLE `holidays`
  ADD CONSTRAINT `holidays_attachment_id_foreign` FOREIGN KEY (`attachment_id`) REFERENCES `uploads` (`id`),
  ADD CONSTRAINT `holidays_company_id_foreign` FOREIGN KEY (`company_id`) REFERENCES `companies` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `holidays_status_id_foreign` FOREIGN KEY (`status_id`) REFERENCES `statuses` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `home_pages`
--
ALTER TABLE `home_pages`
  ADD CONSTRAINT `home_pages_created_by_foreign` FOREIGN KEY (`created_by`) REFERENCES `users` (`id`),
  ADD CONSTRAINT `home_pages_status_id_foreign` FOREIGN KEY (`status_id`) REFERENCES `statuses` (`id`),
  ADD CONSTRAINT `home_pages_updated_by_foreign` FOREIGN KEY (`updated_by`) REFERENCES `users` (`id`);

--
-- Constraints for table `hrm_expenses`
--
ALTER TABLE `hrm_expenses`
  ADD CONSTRAINT `hrm_expenses_attachment_file_id_foreign` FOREIGN KEY (`attachment_file_id`) REFERENCES `uploads` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `hrm_expenses_claimed_approved_status_id_foreign` FOREIGN KEY (`claimed_approved_status_id`) REFERENCES `statuses` (`id`),
  ADD CONSTRAINT `hrm_expenses_company_id_foreign` FOREIGN KEY (`company_id`) REFERENCES `companies` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `hrm_expenses_income_expense_category_id_foreign` FOREIGN KEY (`income_expense_category_id`) REFERENCES `income_expense_categories` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `hrm_expenses_is_claimed_status_id_foreign` FOREIGN KEY (`is_claimed_status_id`) REFERENCES `statuses` (`id`),
  ADD CONSTRAINT `hrm_expenses_status_id_foreign` FOREIGN KEY (`status_id`) REFERENCES `statuses` (`id`),
  ADD CONSTRAINT `hrm_expenses_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `hrm_languages`
--
ALTER TABLE `hrm_languages`
  ADD CONSTRAINT `hrm_languages_status_id_foreign` FOREIGN KEY (`status_id`) REFERENCES `statuses` (`id`);

--
-- Constraints for table `income_expense_categories`
--
ALTER TABLE `income_expense_categories`
  ADD CONSTRAINT `income_expense_categories_attachment_file_id_foreign` FOREIGN KEY (`attachment_file_id`) REFERENCES `uploads` (`id`),
  ADD CONSTRAINT `income_expense_categories_company_id_foreign` FOREIGN KEY (`company_id`) REFERENCES `companies` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `income_expense_categories_status_id_foreign` FOREIGN KEY (`status_id`) REFERENCES `statuses` (`id`);

--
-- Constraints for table `indicators`
--
ALTER TABLE `indicators`
  ADD CONSTRAINT `indicators_added_by_foreign` FOREIGN KEY (`added_by`) REFERENCES `users` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `indicators_company_id_foreign` FOREIGN KEY (`company_id`) REFERENCES `companies` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `indicators_department_id_foreign` FOREIGN KEY (`department_id`) REFERENCES `departments` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `indicators_designation_id_foreign` FOREIGN KEY (`designation_id`) REFERENCES `designations` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `indicators_shift_id_foreign` FOREIGN KEY (`shift_id`) REFERENCES `shifts` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `ip_setups`
--
ALTER TABLE `ip_setups`
  ADD CONSTRAINT `ip_setups_company_id_foreign` FOREIGN KEY (`company_id`) REFERENCES `companies` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `ip_setups_status_id_foreign` FOREIGN KEY (`status_id`) REFERENCES `statuses` (`id`);

--
-- Constraints for table `late_in_out_reasons`
--
ALTER TABLE `late_in_out_reasons`
  ADD CONSTRAINT `late_in_out_reasons_attendance_id_foreign` FOREIGN KEY (`attendance_id`) REFERENCES `attendances` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `late_in_out_reasons_company_id_foreign` FOREIGN KEY (`company_id`) REFERENCES `companies` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `leads`
--
ALTER TABLE `leads`
  ADD CONSTRAINT `leads_company_id_foreign` FOREIGN KEY (`company_id`) REFERENCES `companies` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `leads_created_by_foreign` FOREIGN KEY (`created_by`) REFERENCES `users` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `leads_lead_source_id_foreign` FOREIGN KEY (`lead_source_id`) REFERENCES `lead_sources` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `leads_lead_status_id_foreign` FOREIGN KEY (`lead_status_id`) REFERENCES `lead_statuses` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `leads_lead_type_id_foreign` FOREIGN KEY (`lead_type_id`) REFERENCES `lead_types` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `leads_status_id_foreign` FOREIGN KEY (`status_id`) REFERENCES `statuses` (`id`);

--
-- Constraints for table `lead_activity_logs`
--
ALTER TABLE `lead_activity_logs`
  ADD CONSTRAINT `lead_activity_logs_company_id_foreign` FOREIGN KEY (`company_id`) REFERENCES `companies` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `lead_activity_logs_created_by_foreign` FOREIGN KEY (`created_by`) REFERENCES `users` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `lead_activity_logs_lead_id_foreign` FOREIGN KEY (`lead_id`) REFERENCES `leads` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `lead_activity_logs_lead_source_id_foreign` FOREIGN KEY (`lead_source_id`) REFERENCES `lead_sources` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `lead_activity_logs_lead_status_id_foreign` FOREIGN KEY (`lead_status_id`) REFERENCES `lead_statuses` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `lead_activity_logs_lead_type_id_foreign` FOREIGN KEY (`lead_type_id`) REFERENCES `lead_types` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `lead_activity_logs_status_id_foreign` FOREIGN KEY (`status_id`) REFERENCES `statuses` (`id`);

--
-- Constraints for table `lead_attachments`
--
ALTER TABLE `lead_attachments`
  ADD CONSTRAINT `lead_attachments_company_id_foreign` FOREIGN KEY (`company_id`) REFERENCES `companies` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `lead_attachments_lead_id_foreign` FOREIGN KEY (`lead_id`) REFERENCES `leads` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `lead_attachments_show_to_clients_foreign` FOREIGN KEY (`show_to_clients`) REFERENCES `statuses` (`id`),
  ADD CONSTRAINT `lead_attachments_status_id_foreign` FOREIGN KEY (`status_id`) REFERENCES `statuses` (`id`),
  ADD CONSTRAINT `lead_attachments_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `lead_sources`
--
ALTER TABLE `lead_sources`
  ADD CONSTRAINT `lead_sources_company_id_foreign` FOREIGN KEY (`company_id`) REFERENCES `companies` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `lead_sources_created_by_foreign` FOREIGN KEY (`created_by`) REFERENCES `users` (`id`),
  ADD CONSTRAINT `lead_sources_status_id_foreign` FOREIGN KEY (`status_id`) REFERENCES `statuses` (`id`),
  ADD CONSTRAINT `lead_sources_updated_by_foreign` FOREIGN KEY (`updated_by`) REFERENCES `users` (`id`);

--
-- Constraints for table `lead_statuses`
--
ALTER TABLE `lead_statuses`
  ADD CONSTRAINT `lead_statuses_company_id_foreign` FOREIGN KEY (`company_id`) REFERENCES `companies` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `lead_statuses_created_by_foreign` FOREIGN KEY (`created_by`) REFERENCES `users` (`id`),
  ADD CONSTRAINT `lead_statuses_status_id_foreign` FOREIGN KEY (`status_id`) REFERENCES `statuses` (`id`),
  ADD CONSTRAINT `lead_statuses_updated_by_foreign` FOREIGN KEY (`updated_by`) REFERENCES `users` (`id`);

--
-- Constraints for table `lead_types`
--
ALTER TABLE `lead_types`
  ADD CONSTRAINT `lead_types_company_id_foreign` FOREIGN KEY (`company_id`) REFERENCES `companies` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `lead_types_created_by_foreign` FOREIGN KEY (`created_by`) REFERENCES `users` (`id`),
  ADD CONSTRAINT `lead_types_status_id_foreign` FOREIGN KEY (`status_id`) REFERENCES `statuses` (`id`),
  ADD CONSTRAINT `lead_types_updated_by_foreign` FOREIGN KEY (`updated_by`) REFERENCES `users` (`id`);

--
-- Constraints for table `leave_requests`
--
ALTER TABLE `leave_requests`
  ADD CONSTRAINT `leave_requests_assign_leave_id_foreign` FOREIGN KEY (`assign_leave_id`) REFERENCES `assign_leaves` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `leave_requests_attachment_file_id_foreign` FOREIGN KEY (`attachment_file_id`) REFERENCES `uploads` (`id`),
  ADD CONSTRAINT `leave_requests_author_info_id_foreign` FOREIGN KEY (`author_info_id`) REFERENCES `author_infos` (`id`),
  ADD CONSTRAINT `leave_requests_company_id_foreign` FOREIGN KEY (`company_id`) REFERENCES `companies` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `leave_requests_status_id_foreign` FOREIGN KEY (`status_id`) REFERENCES `statuses` (`id`),
  ADD CONSTRAINT `leave_requests_substitute_id_foreign` FOREIGN KEY (`substitute_id`) REFERENCES `users` (`id`),
  ADD CONSTRAINT `leave_requests_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `leave_settings`
--
ALTER TABLE `leave_settings`
  ADD CONSTRAINT `leave_settings_company_id_foreign` FOREIGN KEY (`company_id`) REFERENCES `companies` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `leave_types`
--
ALTER TABLE `leave_types`
  ADD CONSTRAINT `leave_types_company_id_foreign` FOREIGN KEY (`company_id`) REFERENCES `companies` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `leave_types_status_id_foreign` FOREIGN KEY (`status_id`) REFERENCES `statuses` (`id`);

--
-- Constraints for table `location_binds`
--
ALTER TABLE `location_binds`
  ADD CONSTRAINT `location_binds_company_id_foreign` FOREIGN KEY (`company_id`) REFERENCES `companies` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `location_binds_status_id_foreign` FOREIGN KEY (`status_id`) REFERENCES `statuses` (`id`),
  ADD CONSTRAINT `location_binds_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `location_logs`
--
ALTER TABLE `location_logs`
  ADD CONSTRAINT `location_logs_company_id_foreign` FOREIGN KEY (`company_id`) REFERENCES `companies` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `location_logs_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `meetings`
--
ALTER TABLE `meetings`
  ADD CONSTRAINT `meetings_attachment_file_id_foreign` FOREIGN KEY (`attachment_file_id`) REFERENCES `uploads` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `meetings_company_id_foreign` FOREIGN KEY (`company_id`) REFERENCES `companies` (`id`),
  ADD CONSTRAINT `meetings_status_id_foreign` FOREIGN KEY (`status_id`) REFERENCES `statuses` (`id`),
  ADD CONSTRAINT `meetings_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`);

--
-- Constraints for table `meeting_members`
--
ALTER TABLE `meeting_members`
  ADD CONSTRAINT `meeting_members_status_id_foreign` FOREIGN KEY (`status_id`) REFERENCES `statuses` (`id`);

--
-- Constraints for table `meeting_participants`
--
ALTER TABLE `meeting_participants`
  ADD CONSTRAINT `meeting_participants_meeting_id_foreign` FOREIGN KEY (`meeting_id`) REFERENCES `meetings` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `meeting_participants_participant_id_foreign` FOREIGN KEY (`participant_id`) REFERENCES `users` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `meeting_setups`
--
ALTER TABLE `meeting_setups`
  ADD CONSTRAINT `meeting_setups_company_id_foreign` FOREIGN KEY (`company_id`) REFERENCES `companies` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `meeting_setups_status_id_foreign` FOREIGN KEY (`status_id`) REFERENCES `statuses` (`id`);

--
-- Constraints for table `menus`
--
ALTER TABLE `menus`
  ADD CONSTRAINT `menus_status_id_foreign` FOREIGN KEY (`status_id`) REFERENCES `statuses` (`id`);

--
-- Constraints for table `meta_information`
--
ALTER TABLE `meta_information`
  ADD CONSTRAINT `meta_information_created_by_foreign` FOREIGN KEY (`created_by`) REFERENCES `users` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `meta_information_updated_by_foreign` FOREIGN KEY (`updated_by`) REFERENCES `users` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `notes`
--
ALTER TABLE `notes`
  ADD CONSTRAINT `notes_company_id_foreign` FOREIGN KEY (`company_id`) REFERENCES `companies` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `notes_project_id_foreign` FOREIGN KEY (`project_id`) REFERENCES `projects` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `notes_show_to_customer_foreign` FOREIGN KEY (`show_to_customer`) REFERENCES `statuses` (`id`),
  ADD CONSTRAINT `notes_status_id_foreign` FOREIGN KEY (`status_id`) REFERENCES `statuses` (`id`),
  ADD CONSTRAINT `notes_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `notices`
--
ALTER TABLE `notices`
  ADD CONSTRAINT `notices_attachment_file_id_foreign` FOREIGN KEY (`attachment_file_id`) REFERENCES `uploads` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `notices_company_id_foreign` FOREIGN KEY (`company_id`) REFERENCES `companies` (`id`),
  ADD CONSTRAINT `notices_created_by_foreign` FOREIGN KEY (`created_by`) REFERENCES `users` (`id`),
  ADD CONSTRAINT `notices_department_id_foreign` FOREIGN KEY (`department_id`) REFERENCES `departments` (`id`),
  ADD CONSTRAINT `notices_status_id_foreign` FOREIGN KEY (`status_id`) REFERENCES `statuses` (`id`);

--
-- Constraints for table `notice_view_logs`
--
ALTER TABLE `notice_view_logs`
  ADD CONSTRAINT `notice_view_logs_company_id_foreign` FOREIGN KEY (`company_id`) REFERENCES `companies` (`id`),
  ADD CONSTRAINT `notice_view_logs_notice_id_foreign` FOREIGN KEY (`notice_id`) REFERENCES `notices` (`id`),
  ADD CONSTRAINT `notice_view_logs_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`);

--
-- Constraints for table `notifications_old`
--
ALTER TABLE `notifications_old`
  ADD CONSTRAINT `notifications_old_image_id_foreign` FOREIGN KEY (`image_id`) REFERENCES `uploads` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `notifications_old_receiver_id_foreign` FOREIGN KEY (`receiver_id`) REFERENCES `users` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `notifications_old_sender_id_foreign` FOREIGN KEY (`sender_id`) REFERENCES `users` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `notification_types`
--
ALTER TABLE `notification_types`
  ADD CONSTRAINT `notification_types_icon_foreign` FOREIGN KEY (`icon`) REFERENCES `uploads` (`id`),
  ADD CONSTRAINT `notification_types_status_id_foreign` FOREIGN KEY (`status_id`) REFERENCES `statuses` (`id`);

--
-- Constraints for table `payment_histories`
--
ALTER TABLE `payment_histories`
  ADD CONSTRAINT `payment_histories_attachment_file_id_foreign` FOREIGN KEY (`attachment_file_id`) REFERENCES `uploads` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `payment_histories_company_id_foreign` FOREIGN KEY (`company_id`) REFERENCES `companies` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `payment_histories_expense_claim_id_foreign` FOREIGN KEY (`expense_claim_id`) REFERENCES `expense_claims` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `payment_histories_payment_status_id_foreign` FOREIGN KEY (`payment_status_id`) REFERENCES `statuses` (`id`),
  ADD CONSTRAINT `payment_histories_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `payment_history_details`
--
ALTER TABLE `payment_history_details`
  ADD CONSTRAINT `payment_history_details_company_id_foreign` FOREIGN KEY (`company_id`) REFERENCES `companies` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `payment_history_details_paid_by_id_foreign` FOREIGN KEY (`paid_by_id`) REFERENCES `users` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `payment_history_details_payment_history_id_foreign` FOREIGN KEY (`payment_history_id`) REFERENCES `payment_histories` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `payment_history_details_payment_method_id_foreign` FOREIGN KEY (`payment_method_id`) REFERENCES `payment_methods` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `payment_history_details_payment_status_id_foreign` FOREIGN KEY (`payment_status_id`) REFERENCES `statuses` (`id`),
  ADD CONSTRAINT `payment_history_details_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `payment_history_logs`
--
ALTER TABLE `payment_history_logs`
  ADD CONSTRAINT `payment_history_logs_company_id_foreign` FOREIGN KEY (`company_id`) REFERENCES `companies` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `payment_history_logs_expense_claim_id_foreign` FOREIGN KEY (`expense_claim_id`) REFERENCES `expense_claims` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `payment_history_logs_paid_by_id_foreign` FOREIGN KEY (`paid_by_id`) REFERENCES `users` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `payment_history_logs_payment_history_id_foreign` FOREIGN KEY (`payment_history_id`) REFERENCES `payment_histories` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `payment_history_logs_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `payment_methods`
--
ALTER TABLE `payment_methods`
  ADD CONSTRAINT `payment_methods_attachment_file_id_foreign` FOREIGN KEY (`attachment_file_id`) REFERENCES `uploads` (`id`),
  ADD CONSTRAINT `payment_methods_company_id_foreign` FOREIGN KEY (`company_id`) REFERENCES `companies` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `payment_methods_status_id_foreign` FOREIGN KEY (`status_id`) REFERENCES `statuses` (`id`);

--
-- Constraints for table `payment_types`
--
ALTER TABLE `payment_types`
  ADD CONSTRAINT `payment_types_status_id_foreign` FOREIGN KEY (`status_id`) REFERENCES `statuses` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `portfolios`
--
ALTER TABLE `portfolios`
  ADD CONSTRAINT `portfolios_attachment_foreign` FOREIGN KEY (`attachment`) REFERENCES `uploads` (`id`),
  ADD CONSTRAINT `portfolios_status_id_foreign` FOREIGN KEY (`status_id`) REFERENCES `statuses` (`id`),
  ADD CONSTRAINT `portfolios_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `product_purchases`
--
ALTER TABLE `product_purchases`
  ADD CONSTRAINT `product_purchases_client_id_foreign` FOREIGN KEY (`client_id`) REFERENCES `clients` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `product_purchases_company_id_foreign` FOREIGN KEY (`company_id`) REFERENCES `companies` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `product_purchases_stock_payment_history_id_foreign` FOREIGN KEY (`stock_payment_history_id`) REFERENCES `stock_payment_histories` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `product_purchase_histories`
--
ALTER TABLE `product_purchase_histories`
  ADD CONSTRAINT `product_purchase_histories_company_id_foreign` FOREIGN KEY (`company_id`) REFERENCES `companies` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `product_purchase_histories_product_purchase_id_foreign` FOREIGN KEY (`product_purchase_id`) REFERENCES `product_purchases` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `product_purchase_histories_product_unit_id_foreign` FOREIGN KEY (`product_unit_id`) REFERENCES `product_units` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `product_units`
--
ALTER TABLE `product_units`
  ADD CONSTRAINT `product_units_attachment_file_id_foreign` FOREIGN KEY (`attachment_file_id`) REFERENCES `uploads` (`id`),
  ADD CONSTRAINT `product_units_company_id_foreign` FOREIGN KEY (`company_id`) REFERENCES `companies` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `product_units_status_id_foreign` FOREIGN KEY (`status_id`) REFERENCES `statuses` (`id`);

--
-- Constraints for table `projects`
--
ALTER TABLE `projects`
  ADD CONSTRAINT `projects_avatar_id_foreign` FOREIGN KEY (`avatar_id`) REFERENCES `uploads` (`id`),
  ADD CONSTRAINT `projects_client_id_foreign` FOREIGN KEY (`client_id`) REFERENCES `clients` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `projects_company_id_foreign` FOREIGN KEY (`company_id`) REFERENCES `companies` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `projects_created_by_foreign` FOREIGN KEY (`created_by`) REFERENCES `users` (`id`),
  ADD CONSTRAINT `projects_goal_id_foreign` FOREIGN KEY (`goal_id`) REFERENCES `goals` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `projects_payment_foreign` FOREIGN KEY (`payment`) REFERENCES `statuses` (`id`),
  ADD CONSTRAINT `projects_priority_foreign` FOREIGN KEY (`priority`) REFERENCES `statuses` (`id`),
  ADD CONSTRAINT `projects_status_id_foreign` FOREIGN KEY (`status_id`) REFERENCES `statuses` (`id`);

--
-- Constraints for table `project_activities`
--
ALTER TABLE `project_activities`
  ADD CONSTRAINT `project_activities_company_id_foreign` FOREIGN KEY (`company_id`) REFERENCES `companies` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `project_activities_project_id_foreign` FOREIGN KEY (`project_id`) REFERENCES `projects` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `project_activities_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `project_files`
--
ALTER TABLE `project_files`
  ADD CONSTRAINT `project_files_attachment_foreign` FOREIGN KEY (`attachment`) REFERENCES `uploads` (`id`),
  ADD CONSTRAINT `project_files_company_id_foreign` FOREIGN KEY (`company_id`) REFERENCES `companies` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `project_files_project_id_foreign` FOREIGN KEY (`project_id`) REFERENCES `projects` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `project_files_show_to_customer_foreign` FOREIGN KEY (`show_to_customer`) REFERENCES `statuses` (`id`),
  ADD CONSTRAINT `project_files_status_id_foreign` FOREIGN KEY (`status_id`) REFERENCES `statuses` (`id`),
  ADD CONSTRAINT `project_files_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `project_file_comments`
--
ALTER TABLE `project_file_comments`
  ADD CONSTRAINT `project_file_comments_attachment_foreign` FOREIGN KEY (`attachment`) REFERENCES `uploads` (`id`),
  ADD CONSTRAINT `project_file_comments_company_id_foreign` FOREIGN KEY (`company_id`) REFERENCES `companies` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `project_file_comments_project_file_id_foreign` FOREIGN KEY (`project_file_id`) REFERENCES `project_files` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `project_file_comments_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `project_membars`
--
ALTER TABLE `project_membars`
  ADD CONSTRAINT `project_membars_added_by_foreign` FOREIGN KEY (`added_by`) REFERENCES `users` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `project_membars_company_id_foreign` FOREIGN KEY (`company_id`) REFERENCES `companies` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `project_membars_project_id_foreign` FOREIGN KEY (`project_id`) REFERENCES `projects` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `project_membars_status_id_foreign` FOREIGN KEY (`status_id`) REFERENCES `statuses` (`id`),
  ADD CONSTRAINT `project_membars_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `project_payments`
--
ALTER TABLE `project_payments`
  ADD CONSTRAINT `project_payments_company_id_foreign` FOREIGN KEY (`company_id`) REFERENCES `companies` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `project_payments_created_by_foreign` FOREIGN KEY (`created_by`) REFERENCES `users` (`id`),
  ADD CONSTRAINT `project_payments_paid_by_foreign` FOREIGN KEY (`paid_by`) REFERENCES `clients` (`id`),
  ADD CONSTRAINT `project_payments_payment_method_id_foreign` FOREIGN KEY (`payment_method_id`) REFERENCES `payment_methods` (`id`),
  ADD CONSTRAINT `project_payments_project_id_foreign` FOREIGN KEY (`project_id`) REFERENCES `projects` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `project_payments_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`),
  ADD CONSTRAINT `project_payments_updated_by_foreign` FOREIGN KEY (`updated_by`) REFERENCES `users` (`id`);

--
-- Constraints for table `roles`
--
ALTER TABLE `roles`
  ADD CONSTRAINT `roles_company_id_foreign` FOREIGN KEY (`company_id`) REFERENCES `companies` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `roles_status_id_foreign` FOREIGN KEY (`status_id`) REFERENCES `statuses` (`id`);

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

--
-- Constraints for table `salary_generates`
--
ALTER TABLE `salary_generates`
  ADD CONSTRAINT `salary_generates_company_id_foreign` FOREIGN KEY (`company_id`) REFERENCES `companies` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `salary_generates_created_by_foreign` FOREIGN KEY (`created_by`) REFERENCES `users` (`id`),
  ADD CONSTRAINT `salary_generates_status_id_foreign` FOREIGN KEY (`status_id`) REFERENCES `statuses` (`id`),
  ADD CONSTRAINT `salary_generates_updated_by_foreign` FOREIGN KEY (`updated_by`) REFERENCES `users` (`id`),
  ADD CONSTRAINT `salary_generates_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`);

--
-- Constraints for table `salary_payment_logs`
--
ALTER TABLE `salary_payment_logs`
  ADD CONSTRAINT `salary_payment_logs_company_id_foreign` FOREIGN KEY (`company_id`) REFERENCES `companies` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `salary_payment_logs_created_by_foreign` FOREIGN KEY (`created_by`) REFERENCES `users` (`id`),
  ADD CONSTRAINT `salary_payment_logs_paid_by_foreign` FOREIGN KEY (`paid_by`) REFERENCES `users` (`id`),
  ADD CONSTRAINT `salary_payment_logs_payment_method_id_foreign` FOREIGN KEY (`payment_method_id`) REFERENCES `payment_methods` (`id`),
  ADD CONSTRAINT `salary_payment_logs_salary_generate_id_foreign` FOREIGN KEY (`salary_generate_id`) REFERENCES `salary_generates` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `salary_payment_logs_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`),
  ADD CONSTRAINT `salary_payment_logs_updated_by_foreign` FOREIGN KEY (`updated_by`) REFERENCES `users` (`id`),
  ADD CONSTRAINT `salary_payment_logs_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`);

--
-- Constraints for table `salary_setups`
--
ALTER TABLE `salary_setups`
  ADD CONSTRAINT `salary_setups_company_id_foreign` FOREIGN KEY (`company_id`) REFERENCES `companies` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `salary_setups_created_by_foreign` FOREIGN KEY (`created_by`) REFERENCES `users` (`id`),
  ADD CONSTRAINT `salary_setups_status_id_foreign` FOREIGN KEY (`status_id`) REFERENCES `statuses` (`id`),
  ADD CONSTRAINT `salary_setups_updated_by_foreign` FOREIGN KEY (`updated_by`) REFERENCES `users` (`id`),
  ADD CONSTRAINT `salary_setups_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`);

--
-- Constraints for table `salary_setup_details`
--
ALTER TABLE `salary_setup_details`
  ADD CONSTRAINT `salary_setup_details_commission_id_foreign` FOREIGN KEY (`commission_id`) REFERENCES `commissions` (`id`),
  ADD CONSTRAINT `salary_setup_details_company_id_foreign` FOREIGN KEY (`company_id`) REFERENCES `companies` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `salary_setup_details_created_by_foreign` FOREIGN KEY (`created_by`) REFERENCES `users` (`id`),
  ADD CONSTRAINT `salary_setup_details_salary_setup_id_foreign` FOREIGN KEY (`salary_setup_id`) REFERENCES `salary_setups` (`id`),
  ADD CONSTRAINT `salary_setup_details_status_id_foreign` FOREIGN KEY (`status_id`) REFERENCES `statuses` (`id`),
  ADD CONSTRAINT `salary_setup_details_updated_by_foreign` FOREIGN KEY (`updated_by`) REFERENCES `users` (`id`),
  ADD CONSTRAINT `salary_setup_details_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`);

--
-- Constraints for table `sales`
--
ALTER TABLE `sales`
  ADD CONSTRAINT `sales_created_by_foreign` FOREIGN KEY (`created_by`) REFERENCES `users` (`id`),
  ADD CONSTRAINT `sales_updated_by_foreign` FOREIGN KEY (`updated_by`) REFERENCES `users` (`id`);

--
-- Constraints for table `sale_adjustments`
--
ALTER TABLE `sale_adjustments`
  ADD CONSTRAINT `sale_adjustments_created_by_foreign` FOREIGN KEY (`created_by`) REFERENCES `users` (`id`),
  ADD CONSTRAINT `sale_adjustments_updated_by_foreign` FOREIGN KEY (`updated_by`) REFERENCES `users` (`id`);

--
-- Constraints for table `sale_brands`
--
ALTER TABLE `sale_brands`
  ADD CONSTRAINT `sale_brands_created_by_foreign` FOREIGN KEY (`created_by`) REFERENCES `users` (`id`),
  ADD CONSTRAINT `sale_brands_updated_by_foreign` FOREIGN KEY (`updated_by`) REFERENCES `users` (`id`);

--
-- Constraints for table `sale_coupons`
--
ALTER TABLE `sale_coupons`
  ADD CONSTRAINT `sale_coupons_created_by_foreign` FOREIGN KEY (`created_by`) REFERENCES `users` (`id`),
  ADD CONSTRAINT `sale_coupons_updated_by_foreign` FOREIGN KEY (`updated_by`) REFERENCES `users` (`id`);

--
-- Constraints for table `sale_expenses`
--
ALTER TABLE `sale_expenses`
  ADD CONSTRAINT `sale_expenses_created_by_foreign` FOREIGN KEY (`created_by`) REFERENCES `users` (`id`),
  ADD CONSTRAINT `sale_expenses_updated_by_foreign` FOREIGN KEY (`updated_by`) REFERENCES `users` (`id`);

--
-- Constraints for table `sale_expense_categories`
--
ALTER TABLE `sale_expense_categories`
  ADD CONSTRAINT `sale_expense_categories_created_by_foreign` FOREIGN KEY (`created_by`) REFERENCES `users` (`id`),
  ADD CONSTRAINT `sale_expense_categories_updated_by_foreign` FOREIGN KEY (`updated_by`) REFERENCES `users` (`id`);

--
-- Constraints for table `sale_gift_cards`
--
ALTER TABLE `sale_gift_cards`
  ADD CONSTRAINT `sale_gift_cards_created_by_foreign` FOREIGN KEY (`created_by`) REFERENCES `users` (`id`),
  ADD CONSTRAINT `sale_gift_cards_updated_by_foreign` FOREIGN KEY (`updated_by`) REFERENCES `users` (`id`);

--
-- Constraints for table `sale_gift_card_recharges`
--
ALTER TABLE `sale_gift_card_recharges`
  ADD CONSTRAINT `sale_gift_card_recharges_created_by_foreign` FOREIGN KEY (`created_by`) REFERENCES `users` (`id`),
  ADD CONSTRAINT `sale_gift_card_recharges_updated_by_foreign` FOREIGN KEY (`updated_by`) REFERENCES `users` (`id`);

--
-- Constraints for table `sale_products`
--
ALTER TABLE `sale_products`
  ADD CONSTRAINT `sale_products_created_by_foreign` FOREIGN KEY (`created_by`) REFERENCES `users` (`id`),
  ADD CONSTRAINT `sale_products_updated_by_foreign` FOREIGN KEY (`updated_by`) REFERENCES `users` (`id`);

--
-- Constraints for table `sale_product_adjustments`
--
ALTER TABLE `sale_product_adjustments`
  ADD CONSTRAINT `sale_product_adjustments_created_by_foreign` FOREIGN KEY (`created_by`) REFERENCES `users` (`id`),
  ADD CONSTRAINT `sale_product_adjustments_updated_by_foreign` FOREIGN KEY (`updated_by`) REFERENCES `users` (`id`);

--
-- Constraints for table `sale_product_purchases`
--
ALTER TABLE `sale_product_purchases`
  ADD CONSTRAINT `sale_product_purchases_created_by_foreign` FOREIGN KEY (`created_by`) REFERENCES `users` (`id`),
  ADD CONSTRAINT `sale_product_purchases_updated_by_foreign` FOREIGN KEY (`updated_by`) REFERENCES `users` (`id`);

--
-- Constraints for table `sale_product_sales`
--
ALTER TABLE `sale_product_sales`
  ADD CONSTRAINT `sale_product_sales_created_by_foreign` FOREIGN KEY (`created_by`) REFERENCES `users` (`id`),
  ADD CONSTRAINT `sale_product_sales_updated_by_foreign` FOREIGN KEY (`updated_by`) REFERENCES `users` (`id`);

--
-- Constraints for table `sale_product_variants`
--
ALTER TABLE `sale_product_variants`
  ADD CONSTRAINT `sale_product_variants_created_by_foreign` FOREIGN KEY (`created_by`) REFERENCES `users` (`id`),
  ADD CONSTRAINT `sale_product_variants_updated_by_foreign` FOREIGN KEY (`updated_by`) REFERENCES `users` (`id`);

--
-- Constraints for table `sale_product_warehouses`
--
ALTER TABLE `sale_product_warehouses`
  ADD CONSTRAINT `sale_product_warehouses_created_by_foreign` FOREIGN KEY (`created_by`) REFERENCES `users` (`id`),
  ADD CONSTRAINT `sale_product_warehouses_updated_by_foreign` FOREIGN KEY (`updated_by`) REFERENCES `users` (`id`);

--
-- Constraints for table `sale_purchases`
--
ALTER TABLE `sale_purchases`
  ADD CONSTRAINT `sale_purchases_created_by_foreign` FOREIGN KEY (`created_by`) REFERENCES `users` (`id`),
  ADD CONSTRAINT `sale_purchases_updated_by_foreign` FOREIGN KEY (`updated_by`) REFERENCES `users` (`id`);

--
-- Constraints for table `sale_stock_counts`
--
ALTER TABLE `sale_stock_counts`
  ADD CONSTRAINT `sale_stock_counts_created_by_foreign` FOREIGN KEY (`created_by`) REFERENCES `users` (`id`),
  ADD CONSTRAINT `sale_stock_counts_updated_by_foreign` FOREIGN KEY (`updated_by`) REFERENCES `users` (`id`);

--
-- Constraints for table `sale_suppliers`
--
ALTER TABLE `sale_suppliers`
  ADD CONSTRAINT `sale_suppliers_created_by_foreign` FOREIGN KEY (`created_by`) REFERENCES `users` (`id`),
  ADD CONSTRAINT `sale_suppliers_updated_by_foreign` FOREIGN KEY (`updated_by`) REFERENCES `users` (`id`);

--
-- Constraints for table `sale_taxes`
--
ALTER TABLE `sale_taxes`
  ADD CONSTRAINT `sale_taxes_created_by_foreign` FOREIGN KEY (`created_by`) REFERENCES `users` (`id`),
  ADD CONSTRAINT `sale_taxes_updated_by_foreign` FOREIGN KEY (`updated_by`) REFERENCES `users` (`id`);

--
-- Constraints for table `sale_transfers`
--
ALTER TABLE `sale_transfers`
  ADD CONSTRAINT `sale_transfers_created_by_foreign` FOREIGN KEY (`created_by`) REFERENCES `users` (`id`),
  ADD CONSTRAINT `sale_transfers_updated_by_foreign` FOREIGN KEY (`updated_by`) REFERENCES `users` (`id`);

--
-- Constraints for table `sale_units`
--
ALTER TABLE `sale_units`
  ADD CONSTRAINT `sale_units_created_by_foreign` FOREIGN KEY (`created_by`) REFERENCES `users` (`id`),
  ADD CONSTRAINT `sale_units_updated_by_foreign` FOREIGN KEY (`updated_by`) REFERENCES `users` (`id`);

--
-- Constraints for table `sale_variants`
--
ALTER TABLE `sale_variants`
  ADD CONSTRAINT `sale_variants_created_by_foreign` FOREIGN KEY (`created_by`) REFERENCES `users` (`id`),
  ADD CONSTRAINT `sale_variants_updated_by_foreign` FOREIGN KEY (`updated_by`) REFERENCES `users` (`id`);

--
-- Constraints for table `sale_warehouses`
--
ALTER TABLE `sale_warehouses`
  ADD CONSTRAINT `sale_warehouses_created_by_foreign` FOREIGN KEY (`created_by`) REFERENCES `users` (`id`),
  ADD CONSTRAINT `sale_warehouses_updated_by_foreign` FOREIGN KEY (`updated_by`) REFERENCES `users` (`id`);

--
-- Constraints for table `services`
--
ALTER TABLE `services`
  ADD CONSTRAINT `services_attachment_foreign` FOREIGN KEY (`attachment`) REFERENCES `uploads` (`id`),
  ADD CONSTRAINT `services_status_id_foreign` FOREIGN KEY (`status_id`) REFERENCES `statuses` (`id`),
  ADD CONSTRAINT `services_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `settings`
--
ALTER TABLE `settings`
  ADD CONSTRAINT `settings_company_id_foreign` FOREIGN KEY (`company_id`) REFERENCES `companies` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `shifts`
--
ALTER TABLE `shifts`
  ADD CONSTRAINT `shifts_company_id_foreign` FOREIGN KEY (`company_id`) REFERENCES `companies` (`id`),
  ADD CONSTRAINT `shifts_status_id_foreign` FOREIGN KEY (`status_id`) REFERENCES `statuses` (`id`);

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

--
-- Constraints for table `social_identities`
--
ALTER TABLE `social_identities`
  ADD CONSTRAINT `social_identities_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`);

--
-- Constraints for table `stock_brands`
--
ALTER TABLE `stock_brands`
  ADD CONSTRAINT `stock_brands_author_info_id_foreign` FOREIGN KEY (`author_info_id`) REFERENCES `author_infos` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `stock_brands_avatar_id_foreign` FOREIGN KEY (`avatar_id`) REFERENCES `uploads` (`id`),
  ADD CONSTRAINT `stock_brands_company_id_foreign` FOREIGN KEY (`company_id`) REFERENCES `companies` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `stock_brands_status_id_foreign` FOREIGN KEY (`status_id`) REFERENCES `statuses` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `stock_categories`
--
ALTER TABLE `stock_categories`
  ADD CONSTRAINT `stock_categories_author_info_id_foreign` FOREIGN KEY (`author_info_id`) REFERENCES `author_infos` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `stock_categories_avatar_id_foreign` FOREIGN KEY (`avatar_id`) REFERENCES `uploads` (`id`),
  ADD CONSTRAINT `stock_categories_company_id_foreign` FOREIGN KEY (`company_id`) REFERENCES `companies` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `stock_categories_status_id_foreign` FOREIGN KEY (`status_id`) REFERENCES `statuses` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `stock_histories`
--
ALTER TABLE `stock_histories`
  ADD CONSTRAINT `stock_histories_company_id_foreign` FOREIGN KEY (`company_id`) REFERENCES `companies` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `stock_histories_product_purchase_id_foreign` FOREIGN KEY (`product_purchase_id`) REFERENCES `product_purchases` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `stock_histories_product_unit_id_foreign` FOREIGN KEY (`product_unit_id`) REFERENCES `product_units` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `stock_histories_status_id_foreign` FOREIGN KEY (`status_id`) REFERENCES `statuses` (`id`),
  ADD CONSTRAINT `stock_histories_stock_product_id_foreign` FOREIGN KEY (`stock_product_id`) REFERENCES `stock_products` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `stock_payment_histories`
--
ALTER TABLE `stock_payment_histories`
  ADD CONSTRAINT `stock_payment_histories_bank_id_foreign` FOREIGN KEY (`bank_id`) REFERENCES `bank_accounts` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `stock_payment_histories_company_id_foreign` FOREIGN KEY (`company_id`) REFERENCES `companies` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `stock_payment_histories_payment_method_id_foreign` FOREIGN KEY (`payment_method_id`) REFERENCES `payment_methods` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `stock_products`
--
ALTER TABLE `stock_products`
  ADD CONSTRAINT `stock_products_author_id_foreign` FOREIGN KEY (`author_id`) REFERENCES `users` (`id`),
  ADD CONSTRAINT `stock_products_avatar_id_foreign` FOREIGN KEY (`avatar_id`) REFERENCES `uploads` (`id`),
  ADD CONSTRAINT `stock_products_company_id_foreign` FOREIGN KEY (`company_id`) REFERENCES `companies` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `stock_products_status_id_foreign` FOREIGN KEY (`status_id`) REFERENCES `statuses` (`id`),
  ADD CONSTRAINT `stock_products_stock_brand_id_foreign` FOREIGN KEY (`stock_brand_id`) REFERENCES `stock_brands` (`id`),
  ADD CONSTRAINT `stock_products_stock_category_id_foreign` FOREIGN KEY (`stock_category_id`) REFERENCES `stock_categories` (`id`);

--
-- Constraints for table `stock_sales`
--
ALTER TABLE `stock_sales`
  ADD CONSTRAINT `stock_sales_client_id_foreign` FOREIGN KEY (`client_id`) REFERENCES `clients` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `stock_sales_company_id_foreign` FOREIGN KEY (`company_id`) REFERENCES `companies` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `stock_sales_created_by_foreign` FOREIGN KEY (`created_by`) REFERENCES `users` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `stock_sales_deleted_by_foreign` FOREIGN KEY (`deleted_by`) REFERENCES `users` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `stock_sales_payment_status_id_foreign` FOREIGN KEY (`payment_status_id`) REFERENCES `statuses` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `stock_sales_status_id_foreign` FOREIGN KEY (`status_id`) REFERENCES `statuses` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `stock_sales_stock_payment_history_id_foreign` FOREIGN KEY (`stock_payment_history_id`) REFERENCES `stock_payment_histories` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `stock_sales_stock_product_id_foreign` FOREIGN KEY (`stock_product_id`) REFERENCES `stock_products` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `stock_sales_updated_by_foreign` FOREIGN KEY (`updated_by`) REFERENCES `users` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `stock_sale_histories`
--
ALTER TABLE `stock_sale_histories`
  ADD CONSTRAINT `stock_sale_histories_company_id_foreign` FOREIGN KEY (`company_id`) REFERENCES `companies` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `stock_sale_histories_stock_product_id_foreign` FOREIGN KEY (`stock_product_id`) REFERENCES `stock_products` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `stock_sale_histories_stock_sale_id_foreign` FOREIGN KEY (`stock_sale_id`) REFERENCES `stock_sales` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `subscription_plans`
--
ALTER TABLE `subscription_plans`
  ADD CONSTRAINT `subscription_plans_status_id_foreign` FOREIGN KEY (`status_id`) REFERENCES `statuses` (`id`);

--
-- Constraints for table `support_tickets`
--
ALTER TABLE `support_tickets`
  ADD CONSTRAINT `support_tickets_assigned_id_foreign` FOREIGN KEY (`assigned_id`) REFERENCES `users` (`id`),
  ADD CONSTRAINT `support_tickets_attachment_file_id_foreign` FOREIGN KEY (`attachment_file_id`) REFERENCES `uploads` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `support_tickets_company_id_foreign` FOREIGN KEY (`company_id`) REFERENCES `companies` (`id`),
  ADD CONSTRAINT `support_tickets_priority_id_foreign` FOREIGN KEY (`priority_id`) REFERENCES `statuses` (`id`),
  ADD CONSTRAINT `support_tickets_status_id_foreign` FOREIGN KEY (`status_id`) REFERENCES `statuses` (`id`),
  ADD CONSTRAINT `support_tickets_type_id_foreign` FOREIGN KEY (`type_id`) REFERENCES `statuses` (`id`),
  ADD CONSTRAINT `support_tickets_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`);

--
-- Constraints for table `tasks`
--
ALTER TABLE `tasks`
  ADD CONSTRAINT `tasks_client_id_foreign` FOREIGN KEY (`client_id`) REFERENCES `clients` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `tasks_company_id_foreign` FOREIGN KEY (`company_id`) REFERENCES `companies` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `tasks_created_by_foreign` FOREIGN KEY (`created_by`) REFERENCES `users` (`id`),
  ADD CONSTRAINT `tasks_goal_id_foreign` FOREIGN KEY (`goal_id`) REFERENCES `goals` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `tasks_priority_foreign` FOREIGN KEY (`priority`) REFERENCES `statuses` (`id`),
  ADD CONSTRAINT `tasks_project_id_foreign` FOREIGN KEY (`project_id`) REFERENCES `projects` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `tasks_status_id_foreign` FOREIGN KEY (`status_id`) REFERENCES `statuses` (`id`);

--
-- Constraints for table `task_activities`
--
ALTER TABLE `task_activities`
  ADD CONSTRAINT `task_activities_company_id_foreign` FOREIGN KEY (`company_id`) REFERENCES `companies` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `task_activities_task_id_foreign` FOREIGN KEY (`task_id`) REFERENCES `tasks` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `task_activities_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `task_discussions`
--
ALTER TABLE `task_discussions`
  ADD CONSTRAINT `task_discussions_company_id_foreign` FOREIGN KEY (`company_id`) REFERENCES `companies` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `task_discussions_file_id_foreign` FOREIGN KEY (`file_id`) REFERENCES `uploads` (`id`),
  ADD CONSTRAINT `task_discussions_show_to_customer_foreign` FOREIGN KEY (`show_to_customer`) REFERENCES `statuses` (`id`),
  ADD CONSTRAINT `task_discussions_status_id_foreign` FOREIGN KEY (`status_id`) REFERENCES `statuses` (`id`),
  ADD CONSTRAINT `task_discussions_task_id_foreign` FOREIGN KEY (`task_id`) REFERENCES `tasks` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `task_discussions_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `task_discussion_comments`
--
ALTER TABLE `task_discussion_comments`
  ADD CONSTRAINT `task_discussion_comments_attachment_foreign` FOREIGN KEY (`attachment`) REFERENCES `uploads` (`id`),
  ADD CONSTRAINT `task_discussion_comments_company_id_foreign` FOREIGN KEY (`company_id`) REFERENCES `companies` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `task_discussion_comments_task_discussion_id_foreign` FOREIGN KEY (`task_discussion_id`) REFERENCES `task_discussions` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `task_discussion_comments_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `task_files`
--
ALTER TABLE `task_files`
  ADD CONSTRAINT `task_files_attachment_foreign` FOREIGN KEY (`attachment`) REFERENCES `uploads` (`id`),
  ADD CONSTRAINT `task_files_company_id_foreign` FOREIGN KEY (`company_id`) REFERENCES `companies` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `task_files_show_to_customer_foreign` FOREIGN KEY (`show_to_customer`) REFERENCES `statuses` (`id`),
  ADD CONSTRAINT `task_files_status_id_foreign` FOREIGN KEY (`status_id`) REFERENCES `statuses` (`id`),
  ADD CONSTRAINT `task_files_task_id_foreign` FOREIGN KEY (`task_id`) REFERENCES `tasks` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `task_files_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `task_file_comments`
--
ALTER TABLE `task_file_comments`
  ADD CONSTRAINT `task_file_comments_attachment_foreign` FOREIGN KEY (`attachment`) REFERENCES `uploads` (`id`),
  ADD CONSTRAINT `task_file_comments_company_id_foreign` FOREIGN KEY (`company_id`) REFERENCES `companies` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `task_file_comments_task_file_id_foreign` FOREIGN KEY (`task_file_id`) REFERENCES `task_files` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `task_file_comments_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `task_members`
--
ALTER TABLE `task_members`
  ADD CONSTRAINT `task_members_added_by_foreign` FOREIGN KEY (`added_by`) REFERENCES `users` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `task_members_company_id_foreign` FOREIGN KEY (`company_id`) REFERENCES `companies` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `task_members_is_creator_foreign` FOREIGN KEY (`is_creator`) REFERENCES `users` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `task_members_status_id_foreign` FOREIGN KEY (`status_id`) REFERENCES `statuses` (`id`),
  ADD CONSTRAINT `task_members_task_id_foreign` FOREIGN KEY (`task_id`) REFERENCES `tasks` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `task_members_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `task_notes`
--
ALTER TABLE `task_notes`
  ADD CONSTRAINT `task_notes_company_id_foreign` FOREIGN KEY (`company_id`) REFERENCES `companies` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `task_notes_show_to_customer_foreign` FOREIGN KEY (`show_to_customer`) REFERENCES `statuses` (`id`),
  ADD CONSTRAINT `task_notes_status_id_foreign` FOREIGN KEY (`status_id`) REFERENCES `statuses` (`id`),
  ADD CONSTRAINT `task_notes_task_id_foreign` FOREIGN KEY (`task_id`) REFERENCES `tasks` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `task_notes_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `teams`
--
ALTER TABLE `teams`
  ADD CONSTRAINT `teams_attachment_file_id_foreign` FOREIGN KEY (`attachment_file_id`) REFERENCES `uploads` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `teams_company_id_foreign` FOREIGN KEY (`company_id`) REFERENCES `companies` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `teams_status_id_foreign` FOREIGN KEY (`status_id`) REFERENCES `statuses` (`id`),
  ADD CONSTRAINT `teams_team_lead_id_foreign` FOREIGN KEY (`team_lead_id`) REFERENCES `users` (`id`),
  ADD CONSTRAINT `teams_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`);

--
-- Constraints for table `team_members`
--
ALTER TABLE `team_members`
  ADD CONSTRAINT `team_members_team_id_foreign` FOREIGN KEY (`team_id`) REFERENCES `teams` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `team_members_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`);

--
-- Constraints for table `testimonials`
--
ALTER TABLE `testimonials`
  ADD CONSTRAINT `testimonials_company_id_foreign` FOREIGN KEY (`company_id`) REFERENCES `companies` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `testimonials_status_id_foreign` FOREIGN KEY (`status_id`) REFERENCES `statuses` (`id`);

--
-- Constraints for table `ticket_replies`
--
ALTER TABLE `ticket_replies`
  ADD CONSTRAINT `ticket_replies_support_ticket_id_foreign` FOREIGN KEY (`support_ticket_id`) REFERENCES `support_tickets` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `ticket_replies_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `transactions`
--
ALTER TABLE `transactions`
  ADD CONSTRAINT `transactions_account_id_foreign` FOREIGN KEY (`account_id`) REFERENCES `accounts` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `transactions_client_id_foreign` FOREIGN KEY (`client_id`) REFERENCES `clients` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `transactions_company_id_foreign` FOREIGN KEY (`company_id`) REFERENCES `companies` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `transactions_created_by_foreign` FOREIGN KEY (`created_by`) REFERENCES `users` (`id`),
  ADD CONSTRAINT `transactions_income_expense_category_id_foreign` FOREIGN KEY (`income_expense_category_id`) REFERENCES `income_expense_categories` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `transactions_status_id_foreign` FOREIGN KEY (`status_id`) REFERENCES `statuses` (`id`),
  ADD CONSTRAINT `transactions_transaction_type_foreign` FOREIGN KEY (`transaction_type`) REFERENCES `statuses` (`id`),
  ADD CONSTRAINT `transactions_updated_by_foreign` FOREIGN KEY (`updated_by`) REFERENCES `users` (`id`);

--
-- Constraints for table `travel`
--
ALTER TABLE `travel`
  ADD CONSTRAINT `travel_attachment_foreign` FOREIGN KEY (`attachment`) REFERENCES `uploads` (`id`),
  ADD CONSTRAINT `travel_company_id_foreign` FOREIGN KEY (`company_id`) REFERENCES `companies` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `travel_created_by_foreign` FOREIGN KEY (`created_by`) REFERENCES `users` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `travel_goal_id_foreign` FOREIGN KEY (`goal_id`) REFERENCES `goals` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `travel_status_id_foreign` FOREIGN KEY (`status_id`) REFERENCES `statuses` (`id`),
  ADD CONSTRAINT `travel_travel_type_id_foreign` FOREIGN KEY (`travel_type_id`) REFERENCES `travel_types` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `travel_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `travel_types`
--
ALTER TABLE `travel_types`
  ADD CONSTRAINT `travel_types_company_id_foreign` FOREIGN KEY (`company_id`) REFERENCES `companies` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `travel_types_status_id_foreign` FOREIGN KEY (`status_id`) REFERENCES `statuses` (`id`);

--
-- Constraints for table `uploads`
--
ALTER TABLE `uploads`
  ADD CONSTRAINT `uploads_status_id_foreign` FOREIGN KEY (`status_id`) REFERENCES `statuses` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `users`
--
ALTER TABLE `users`
  ADD CONSTRAINT `users_avatar_id_foreign` FOREIGN KEY (`avatar_id`) REFERENCES `uploads` (`id`),
  ADD CONSTRAINT `users_company_id_foreign` FOREIGN KEY (`company_id`) REFERENCES `companies` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `users_country_id_foreign` FOREIGN KEY (`country_id`) REFERENCES `countries` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `users_department_id_foreign` FOREIGN KEY (`department_id`) REFERENCES `departments` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `users_designation_id_foreign` FOREIGN KEY (`designation_id`) REFERENCES `designations` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `users_manager_id_foreign` FOREIGN KEY (`manager_id`) REFERENCES `users` (`id`),
  ADD CONSTRAINT `users_nid_card_id_foreign` FOREIGN KEY (`nid_card_id`) REFERENCES `uploads` (`id`),
  ADD CONSTRAINT `users_passport_file_id_foreign` FOREIGN KEY (`passport_file_id`) REFERENCES `uploads` (`id`),
  ADD CONSTRAINT `users_role_id_foreign` FOREIGN KEY (`role_id`) REFERENCES `roles` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `users_shift_id_foreign` FOREIGN KEY (`shift_id`) REFERENCES `shifts` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `users_status_id_foreign` FOREIGN KEY (`status_id`) REFERENCES `statuses` (`id`) ON UPDATE CASCADE;

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

--
-- Constraints for table `virtual_meetings`
--
ALTER TABLE `virtual_meetings`
  ADD CONSTRAINT `virtual_meetings_company_id_foreign` FOREIGN KEY (`company_id`) REFERENCES `companies` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `virtual_meetings_created_by_foreign` FOREIGN KEY (`created_by`) REFERENCES `users` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `virtual_meetings_status_id_foreign` FOREIGN KEY (`status_id`) REFERENCES `statuses` (`id`);

--
-- Constraints for table `visits`
--
ALTER TABLE `visits`
  ADD CONSTRAINT `visits_company_id_foreign` FOREIGN KEY (`company_id`) REFERENCES `companies` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `visits_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`);

--
-- Constraints for table `visit_notes`
--
ALTER TABLE `visit_notes`
  ADD CONSTRAINT `visit_notes_visit_id_foreign` FOREIGN KEY (`visit_id`) REFERENCES `visits` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `visit_schedules`
--
ALTER TABLE `visit_schedules`
  ADD CONSTRAINT `visit_schedules_visit_id_foreign` FOREIGN KEY (`visit_id`) REFERENCES `visits` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `weekends`
--
ALTER TABLE `weekends`
  ADD CONSTRAINT `weekends_company_id_foreign` FOREIGN KEY (`company_id`) REFERENCES `companies` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `weekends_status_id_foreign` FOREIGN KEY (`status_id`) REFERENCES `statuses` (`id`) ON DELETE CASCADE;
COMMIT;

