-- phpMyAdmin SQL Dump
-- version 5.2.2
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1:3306
-- Generation Time: Sep 05, 2025 at 11:05 AM
-- Server version: 10.11.10-MariaDB-log
-- PHP Version: 7.2.34

SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
START TRANSACTION;
SET time_zone = "+00:00";


/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8mb4 */;

--
-- Database: `u667309807_trace_audit`
--

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

--
-- Table structure for table `auditors`
--

CREATE TABLE `auditors` (
  `id` int(11) NOT NULL,
  `entity_id` int(11) DEFAULT NULL,
  `associated_by` varchar(25) DEFAULT NULL,
  `title` varchar(50) DEFAULT NULL,
  `first_name` varchar(50) NOT NULL,
  `middle_name` varchar(50) DEFAULT NULL,
  `last_name` varchar(50) DEFAULT NULL,
  `ID_Number` varchar(100) DEFAULT NULL,
  `location` text DEFAULT NULL,
  `date_of_appointment` date DEFAULT NULL,
  `Qualifications` text DEFAULT NULL,
  `experience_years` int(11) DEFAULT 0,
  `experience_months` int(11) DEFAULT 0,
  `designation` varchar(255) DEFAULT NULL,
  `skill` text DEFAULT NULL,
  `documents` text DEFAULT NULL,
  `evaluated_by` varchar(255) DEFAULT NULL,
  `name_of_the_evaluator` varchar(255) DEFAULT NULL,
  `reporting_authority` varchar(255) DEFAULT NULL,
  `internal_or_external` text DEFAULT NULL,
  `trainings_completed` text DEFAULT NULL,
  `inspections_completed` text DEFAULT NULL,
  `responsibilities_assigned` text DEFAULT NULL,
  `created_by` int(11) DEFAULT NULL,
  `updated_by` int(11) DEFAULT NULL,
  `status` tinyint(1) DEFAULT 1,
  `created_at` datetime DEFAULT current_timestamp(),
  `updated_at` datetime DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `photo` text DEFAULT NULL,
  `Person_Photo` text NOT NULL,
  `email` varchar(255) DEFAULT NULL,
  `password` varchar(255) DEFAULT NULL,
  `remark` text DEFAULT NULL,
  `department` int(11) NOT NULL,
  `role` int(11) NOT NULL,
  `skill_distribution` int(11) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `auditors`
--

INSERT INTO `auditors` (`id`, `entity_id`, `associated_by`, `title`, `first_name`, `middle_name`, `last_name`, `ID_Number`, `location`, `date_of_appointment`, `Qualifications`, `experience_years`, `experience_months`, `designation`, `skill`, `documents`, `evaluated_by`, `name_of_the_evaluator`, `reporting_authority`, `internal_or_external`, `trainings_completed`, `inspections_completed`, `responsibilities_assigned`, `created_by`, `updated_by`, `status`, `created_at`, `updated_at`, `photo`, `Person_Photo`, `email`, `password`, `remark`, `department`, `role`, `skill_distribution`) VALUES
(1, 45, 'audit_company', 'Mr', 'ramachandran ', 'fsdfsd', 'selvam', 'auditor-45_1', '[]', '0000-00-00', '', 16, NULL, '', '{\"20\":[\"rtre\",\"erter\",\"retert\"]}', NULL, 'employee', '', NULL, NULL, '', '', '', 73, 73, 1, '2025-05-29 12:28:46', '2025-06-03 05:46:45', '[]', 'uploads/entity_profile/45/Internal_auditors/1/Person_Photo//1748521726_ac4bb38479e1a80cf05b.png', 'ramachafgfgfndrantamil007@gmail.com', '$2y$10$HXfj1lkxp112qbQ2oAsiQ.xhmKmKNKacoKuZAOyUiRKok41VVf.6m', '   ', 0, 29, 20),
(2, 50, 'audit_company', 'Mr', 'Shakthivel', '', '', 'auditor-50_2', '[]', '0000-00-00', '', NULL, NULL, 'Executive', NULL, NULL, NULL, '', NULL, NULL, '', '', '', 100, 100, 1, '2025-06-02 13:46:51', '2025-06-02 13:46:51', NULL, 'uploads/entity_profile/50/Internal_auditors/2/Person_Photo//1748872011_47a6b63e1e87f37f4b4a.jpg', 'shakthi@abc.com', '$2y$10$f42nfN20DjOm5XF0Lt6wreRcZneO.du.m3OuGjg1H8RbNtPLBrwPO', '', 26, 34, NULL);

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

--
-- Table structure for table `audit_company_logs`
--

CREATE TABLE `audit_company_logs` (
  `id` int(255) NOT NULL,
  `subscription_id` int(11) DEFAULT NULL,
  `message_to_auditor` text DEFAULT NULL,
  `message_from_auditor` text DEFAULT NULL,
  `who_send` enum('auditor','subscriber') DEFAULT NULL,
  `audit_template_id` int(11) DEFAULT NULL,
  `audit_company_id` int(11) DEFAULT NULL,
  `documents_status` text DEFAULT NULL,
  `audit_Status` int(11) DEFAULT NULL,
  `message_readed` int(11) DEFAULT NULL,
  `subscriber_associated_by` varchar(50) DEFAULT NULL,
  `subscriber_entity_id` int(11) DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT current_timestamp(),
  `created_by` int(11) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

--
-- Dumping data for table `audit_company_logs`
--

INSERT INTO `audit_company_logs` (`id`, `subscription_id`, `message_to_auditor`, `message_from_auditor`, `who_send`, `audit_template_id`, `audit_company_id`, `documents_status`, `audit_Status`, `message_readed`, `subscriber_associated_by`, `subscriber_entity_id`, `created_at`, `created_by`) VALUES
(1, 10, 'dfsdfdssd', NULL, 'subscriber', 1, 45, '[{\"name\":\"gfd\",\"date\":\"2025-05-13\",\"file\":\"uploads\\/entity_profile\\/33\\/subscribed_audit_template\\/10\\/documants\\/1748158578_97211f1c37383cd677f5.jpeg\",\"user_comments\":\"\",\"auditor_comments\":null},{\"name\":\"fdgdfgdf\",\"date\":\"\",\"file\":null,\"user_comments\":\"\",\"auditor_comments\":null},{\"name\":\"fgdfgfd\",\"date\":\"\",\"file\":null,\"user_comments\":\"\",\"auditor_comments\":null},{\"name\":\"gdfgdfg\",\"date\":\"\",\"file\":null,\"user_comments\":\"\",\"auditor_comments\":null},{\"name\":\"fsfsdf\",\"date\":\"2025-05-22\",\"file\":\"uploads\\/entity_profile\\/33\\/subscribed_audit_template\\/10\\/documants\\/1748158578_7c3fbb537183ee3eaf13.png\",\"user_comments\":\"fsdfdfsfd\",\"auditor_comments\":null}]', 1, NULL, 'fpo', 33, '2025-05-25 02:06:18', 45),
(2, 10, 'xxx', NULL, 'subscriber', 1, 45, '[{\"name\":\"gfd\",\"date\":\"2025-05-13\",\"file\":\"uploads\\/entity_profile\\/33\\/subscribed_audit_template\\/10\\/documants\\/1748158578_97211f1c37383cd677f5.jpeg\",\"user_comments\":\"\",\"auditor_comments\":\"yyyy\",\"doc_status\":\"selected\"},{\"name\":\"fdgdfgdf\",\"date\":\"\",\"file\":\"\",\"user_comments\":\"\",\"auditor_comments\":\"aaa\",\"doc_status\":\"not_selected\"},{\"name\":\"fgdfgfd\",\"date\":\"\",\"file\":\"\",\"user_comments\":\"\",\"auditor_comments\":\"eeee\",\"doc_status\":\"not_selected\"},{\"name\":\"gdfgdfg\",\"date\":\"\",\"file\":\"\",\"user_comments\":\"\",\"auditor_comments\":\"tttt\",\"doc_status\":\"not_selected\"},{\"name\":\"fsfsdf\",\"date\":\"2025-05-22\",\"file\":\"uploads\\/entity_profile\\/33\\/subscribed_audit_template\\/10\\/documants\\/1748158578_7c3fbb537183ee3eaf13.png\",\"user_comments\":\"fsdfdfsfd\",\"auditor_comments\":\"wwww\",\"doc_status\":\"selected\"}]', 1, NULL, 'fpo', 33, '2025-05-25 23:19:51', 45),
(3, 10, 'xxx', NULL, 'subscriber', 1, 45, '[{\"name\":\"gfd\",\"date\":\"2025-05-13\",\"file\":\"uploads\\/entity_profile\\/33\\/subscribed_audit_template\\/10\\/documants\\/1748158578_97211f1c37383cd677f5.jpeg\",\"user_comments\":\"\",\"auditor_comments\":\"yyyy\",\"doc_status\":\"selected\"},{\"name\":\"fdgdfgdf\",\"date\":\"\",\"file\":\"\",\"user_comments\":\"\",\"auditor_comments\":\"aaa\",\"doc_status\":\"not_selected\"},{\"name\":\"fgdfgfd\",\"date\":\"\",\"file\":\"\",\"user_comments\":\"\",\"auditor_comments\":\"eeee\",\"doc_status\":\"not_selected\"},{\"name\":\"gdfgdfg\",\"date\":\"\",\"file\":\"\",\"user_comments\":\"\",\"auditor_comments\":\"tttt\",\"doc_status\":\"not_selected\"},{\"name\":\"fsfsdf\",\"date\":\"2025-05-22\",\"file\":\"uploads\\/entity_profile\\/33\\/subscribed_audit_template\\/10\\/documants\\/1748158578_7c3fbb537183ee3eaf13.png\",\"user_comments\":\"fsdfdfsfd\",\"auditor_comments\":\"wwww\",\"doc_status\":\"selected\"}]', 1, NULL, 'fpo', 33, '2025-05-25 23:30:14', 45),
(4, 10, 'xxx', NULL, 'subscriber', 1, 45, '[{\"name\":\"gfd\",\"date\":\"2025-05-13\",\"file\":\"uploads\\/entity_profile\\/33\\/subscribed_audit_template\\/10\\/documants\\/1748158578_97211f1c37383cd677f5.jpeg\",\"user_comments\":\"\",\"auditor_comments\":\"yyyy\",\"doc_status\":\"selected\"},{\"name\":\"fdgdfgdf\",\"date\":\"\",\"file\":\"uploads\\/entity_profile\\/33\\/subscribed_audit_template\\/10\\/documants\\/1748235685_a39882048e1479ca023b.jpg\",\"user_comments\":\"\",\"auditor_comments\":\"aaa\",\"doc_status\":\"not_selected\"},{\"name\":\"fgdfgfd\",\"date\":\"\",\"file\":\"\",\"user_comments\":\"\",\"auditor_comments\":\"eeee\",\"doc_status\":\"not_selected\"},{\"name\":\"gdfgdfg\",\"date\":\"\",\"file\":\"\",\"user_comments\":\"\",\"auditor_comments\":\"tttt\",\"doc_status\":\"not_selected\"},{\"name\":\"fsfsdf\",\"date\":\"2025-05-22\",\"file\":\"uploads\\/entity_profile\\/33\\/subscribed_audit_template\\/10\\/documants\\/1748158578_7c3fbb537183ee3eaf13.png\",\"user_comments\":\"fsdfdfsfd\",\"auditor_comments\":\"wwww\",\"doc_status\":\"selected\"}]', 1, NULL, 'fpo', 33, '2025-05-25 23:31:25', 45),
(5, 10, 'xxx', NULL, 'subscriber', 1, 45, '[{\"name\":\"gfd\",\"date\":\"2025-05-13\",\"file\":\"uploads\\/entity_profile\\/33\\/subscribed_audit_template\\/10\\/documants\\/1748158578_97211f1c37383cd677f5.jpeg\",\"user_comments\":\"\",\"auditor_comments\":\"yyyy\",\"doc_status\":\"selected\"},{\"name\":\"fdgdfgdf\",\"date\":\"\",\"file\":\"uploads\\/entity_profile\\/33\\/subscribed_audit_template\\/10\\/documants\\/1748235685_a39882048e1479ca023b.jpg\",\"user_comments\":\"\",\"auditor_comments\":\"aaa\",\"doc_status\":\"selected\"},{\"name\":\"fgdfgfd\",\"date\":\"\",\"file\":\"\",\"user_comments\":\"\",\"auditor_comments\":\"eeee\",\"doc_status\":\"not_selected\"},{\"name\":\"gdfgdfg\",\"date\":\"\",\"file\":\"\",\"user_comments\":\"\",\"auditor_comments\":\"tttt\",\"doc_status\":\"not_selected\"},{\"name\":\"fsfsdf\",\"date\":\"2025-05-22\",\"file\":\"uploads\\/entity_profile\\/33\\/subscribed_audit_template\\/10\\/documants\\/1748158578_7c3fbb537183ee3eaf13.png\",\"user_comments\":\"fsdfdfsfd\",\"auditor_comments\":\"wwww\",\"doc_status\":\"selected\"},{\"name\":\"tes\",\"date\":\"2025-05-14\",\"file\":\"uploads\\/entity_profile\\/33\\/subscribed_audit_template\\/10\\/documants\\/1748236426_8ff65cc3393e804cbb5e.jpg\",\"user_comments\":null,\"auditor_comments\":null,\"doc_status\":null}]', 1, NULL, 'fpo', 33, '2025-05-25 23:43:46', 45),
(6, 10, 'xxx', NULL, 'subscriber', 1, 45, '[{\"name\":\"gfd\",\"date\":\"2025-05-13\",\"file\":\"uploads\\/entity_profile\\/33\\/subscribed_audit_template\\/10\\/documants\\/1748158578_97211f1c37383cd677f5.jpeg\",\"user_comments\":\"\",\"auditor_comments\":\"yyyy\",\"doc_status\":\"selected\"},{\"name\":\"fdgdfgdf\",\"date\":\"\",\"file\":\"uploads\\/entity_profile\\/33\\/subscribed_audit_template\\/10\\/documants\\/1748235685_a39882048e1479ca023b.jpg\",\"user_comments\":\"\",\"auditor_comments\":\"aaa\",\"doc_status\":\"selected\"},{\"name\":\"fgdfgfd\",\"date\":\"\",\"file\":\"\",\"user_comments\":\"\",\"auditor_comments\":\"eeee\",\"doc_status\":\"not_selected\"},{\"name\":\"gdfgdfg\",\"date\":\"\",\"file\":\"\",\"user_comments\":\"\",\"auditor_comments\":\"tttt\",\"doc_status\":\"not_selected\"},{\"name\":\"fsfsdf\",\"date\":\"2025-05-22\",\"file\":\"uploads\\/entity_profile\\/33\\/subscribed_audit_template\\/10\\/documants\\/1748158578_7c3fbb537183ee3eaf13.png\",\"user_comments\":\"fsdfdfsfd\",\"auditor_comments\":\"wwww\",\"doc_status\":\"selected\"},{\"name\":\"tes\",\"date\":\"2025-05-14\",\"file\":\"uploads\\/entity_profile\\/33\\/subscribed_audit_template\\/10\\/documants\\/1748236426_8ff65cc3393e804cbb5e.jpg\",\"user_comments\":\"\",\"auditor_comments\":\"test\",\"doc_status\":\"\"}]', 1, NULL, 'fpo', 33, '2025-05-25 23:45:32', 45),
(7, 10, 'xxx', NULL, 'subscriber', 1, 45, '[{\"name\":\"gfd\",\"date\":\"2025-05-13\",\"file\":\"uploads\\/entity_profile\\/33\\/subscribed_audit_template\\/10\\/documants\\/1748158578_97211f1c37383cd677f5.jpeg\",\"user_comments\":\"\",\"auditor_comments\":\"yyyy\",\"doc_status\":\"selected\"},{\"name\":\"fdgdfgdf\",\"date\":\"\",\"file\":\"uploads\\/entity_profile\\/33\\/subscribed_audit_template\\/10\\/documants\\/1748235685_a39882048e1479ca023b.jpg\",\"user_comments\":\"\",\"auditor_comments\":\"aaa\",\"doc_status\":\"selected\"},{\"name\":\"fgdfgfd\",\"date\":\"\",\"file\":\"\",\"user_comments\":\"\",\"auditor_comments\":\"eeee\",\"doc_status\":\"not_selected\"},{\"name\":\"gdfgdfg\",\"date\":\"\",\"file\":\"\",\"user_comments\":\"\",\"auditor_comments\":\"tttt\",\"doc_status\":\"not_selected\"},{\"name\":\"fsfsdf\",\"date\":\"2025-05-22\",\"file\":\"uploads\\/entity_profile\\/33\\/subscribed_audit_template\\/10\\/documants\\/1748158578_7c3fbb537183ee3eaf13.png\",\"user_comments\":\"fsdfdfsfd\",\"auditor_comments\":\"wwww\",\"doc_status\":\"selected\"},{\"name\":\"tes\",\"date\":\"2025-05-14\",\"file\":\"uploads\\/entity_profile\\/33\\/subscribed_audit_template\\/10\\/documants\\/1748236426_8ff65cc3393e804cbb5e.jpg\",\"user_comments\":\"\",\"auditor_comments\":\"test\",\"doc_status\":\"\"},{\"name\":\"tg\",\"date\":\"2025-05-25\",\"file\":\"uploads\\/entity_profile\\/33\\/subscribed_audit_template\\/10\\/documants\\/1748236556_fe14a26bc28af8e7d83d.jpg\",\"user_comments\":\"tg\",\"auditor_comments\":null,\"doc_status\":null}]', NULL, NULL, 'fpo', 33, '2025-05-25 23:45:56', 45),
(8, 10, 'xxx', NULL, 'subscriber', 1, 45, '[{\"name\":\"gfd\",\"date\":\"2025-05-13\",\"file\":\"uploads\\/entity_profile\\/33\\/subscribed_audit_template\\/10\\/documants\\/1748158578_97211f1c37383cd677f5.jpeg\",\"user_comments\":\"\",\"auditor_comments\":\"yyyy\",\"doc_status\":\"selected\"},{\"name\":\"fdgdfgdf\",\"date\":\"\",\"file\":\"uploads\\/entity_profile\\/33\\/subscribed_audit_template\\/10\\/documants\\/1748235685_a39882048e1479ca023b.jpg\",\"user_comments\":\"\",\"auditor_comments\":\"aaa\",\"doc_status\":\"selected\"},{\"name\":\"fgdfgfd\",\"date\":\"\",\"file\":\"\",\"user_comments\":\"\",\"auditor_comments\":\"eeee\",\"doc_status\":\"not_selected\"},{\"name\":\"gdfgdfg\",\"date\":\"\",\"file\":\"\",\"user_comments\":\"\",\"auditor_comments\":\"tttt\",\"doc_status\":\"not_selected\"},{\"name\":\"fsfsdf\",\"date\":\"2025-05-22\",\"file\":\"uploads\\/entity_profile\\/33\\/subscribed_audit_template\\/10\\/documants\\/1748158578_7c3fbb537183ee3eaf13.png\",\"user_comments\":\"fsdfdfsfd\",\"auditor_comments\":\"wwww\",\"doc_status\":\"selected\"},{\"name\":\"tes\",\"date\":\"2025-05-14\",\"file\":\"uploads\\/entity_profile\\/33\\/subscribed_audit_template\\/10\\/documants\\/1748236426_8ff65cc3393e804cbb5e.jpg\",\"user_comments\":\"\",\"auditor_comments\":\"test\",\"doc_status\":\"not_selected\"},{\"name\":\"tg\",\"date\":\"2025-05-25\",\"file\":\"uploads\\/entity_profile\\/33\\/subscribed_audit_template\\/10\\/documants\\/1748236556_fe14a26bc28af8e7d83d.jpg\",\"user_comments\":\"tg\",\"auditor_comments\":\"ggf\",\"doc_status\":\"not_selected\"}]', NULL, NULL, 'fpo', 33, '2025-05-25 23:50:43', 45),
(9, 10, NULL, 'sss', 'auditor', 1, NULL, '[{\"name\":\"gfd\",\"date\":\"2025-05-13\",\"file\":\"uploads\\/entity_profile\\/33\\/subscribed_audit_template\\/10\\/documants\\/1748158578_97211f1c37383cd677f5.jpeg\",\"user_comments\":\"\",\"auditor_comments\":\"yyyy\",\"doc_status\":\"selected\"},{\"name\":\"fdgdfgdf\",\"date\":\"\",\"file\":\"uploads\\/entity_profile\\/33\\/subscribed_audit_template\\/10\\/documants\\/1748235685_a39882048e1479ca023b.jpg\",\"user_comments\":\"\",\"auditor_comments\":\"aaa\",\"doc_status\":\"selected\"},{\"name\":\"fgdfgfd\",\"date\":\"\",\"file\":\"\",\"user_comments\":\"\",\"auditor_comments\":\"eeee\",\"doc_status\":\"selected\"},{\"name\":\"gdfgdfg\",\"date\":\"\",\"file\":\"\",\"user_comments\":\"\",\"auditor_comments\":\"tttt\",\"doc_status\":\"not_selected\"},{\"name\":\"fsfsdf\",\"date\":\"2025-05-22\",\"file\":\"uploads\\/entity_profile\\/33\\/subscribed_audit_template\\/10\\/documants\\/1748158578_7c3fbb537183ee3eaf13.png\",\"user_comments\":\"fsdfdfsfd\",\"auditor_comments\":\"wwww\",\"doc_status\":\"selected\"},{\"name\":\"tes\",\"date\":\"2025-05-14\",\"file\":\"uploads\\/entity_profile\\/33\\/subscribed_audit_template\\/10\\/documants\\/1748236426_8ff65cc3393e804cbb5e.jpg\",\"user_comments\":\"\",\"auditor_comments\":\"test\",\"doc_status\":\"not_selected\"},{\"name\":\"tg\",\"date\":\"2025-05-25\",\"file\":\"uploads\\/entity_profile\\/33\\/subscribed_audit_template\\/10\\/documants\\/1748236556_fe14a26bc28af8e7d83d.jpg\",\"user_comments\":\"tg\",\"auditor_comments\":\"ggf\",\"doc_status\":\"not_selected\"}]', 2, NULL, 'fpo', 33, '2025-05-26 00:05:54', 73),
(10, 10, NULL, 'sss', 'auditor', 1, NULL, '[{\"name\":\"gfd\",\"date\":\"2025-05-13\",\"file\":\"uploads\\/entity_profile\\/33\\/subscribed_audit_template\\/10\\/documants\\/1748158578_97211f1c37383cd677f5.jpeg\",\"user_comments\":\"\",\"auditor_comments\":\"yyyy\",\"doc_status\":\"selected\"},{\"name\":\"fdgdfgdf\",\"date\":\"\",\"file\":\"uploads\\/entity_profile\\/33\\/subscribed_audit_template\\/10\\/documants\\/1748235685_a39882048e1479ca023b.jpg\",\"user_comments\":\"\",\"auditor_comments\":\"aaa\",\"doc_status\":\"selected\"},{\"name\":\"fgdfgfd\",\"date\":\"\",\"file\":\"\",\"user_comments\":\"\",\"auditor_comments\":\"eeee\",\"doc_status\":\"selected\"},{\"name\":\"gdfgdfg\",\"date\":\"\",\"file\":\"\",\"user_comments\":\"\",\"auditor_comments\":\"tttt\",\"doc_status\":\"not_selected\"},{\"name\":\"fsfsdf\",\"date\":\"2025-05-22\",\"file\":\"uploads\\/entity_profile\\/33\\/subscribed_audit_template\\/10\\/documants\\/1748158578_7c3fbb537183ee3eaf13.png\",\"user_comments\":\"fsdfdfsfd\",\"auditor_comments\":\"wwww\",\"doc_status\":\"selected\"},{\"name\":\"tes\",\"date\":\"2025-05-14\",\"file\":\"uploads\\/entity_profile\\/33\\/subscribed_audit_template\\/10\\/documants\\/1748236426_8ff65cc3393e804cbb5e.jpg\",\"user_comments\":\"\",\"auditor_comments\":\"test\",\"doc_status\":\"not_selected\"},{\"name\":\"tg\",\"date\":\"2025-05-25\",\"file\":\"uploads\\/entity_profile\\/33\\/subscribed_audit_template\\/10\\/documants\\/1748236556_fe14a26bc28af8e7d83d.jpg\",\"user_comments\":\"tg\",\"auditor_comments\":\"ggf\",\"doc_status\":\"not_selected\"}]', 1, NULL, 'fpo', 33, '2025-05-26 00:11:20', 73),
(11, 10, 'xxx', NULL, 'subscriber', 1, 45, '[{\"name\":\"gfd\",\"date\":\"2025-05-13\",\"file\":\"uploads\\/entity_profile\\/33\\/subscribed_audit_template\\/10\\/documants\\/1748158578_97211f1c37383cd677f5.jpeg\",\"user_comments\":\"\",\"auditor_comments\":\"yyyy\",\"doc_status\":\"selected\"},{\"name\":\"fdgdfgdf\",\"date\":\"\",\"file\":\"uploads\\/entity_profile\\/33\\/subscribed_audit_template\\/10\\/documants\\/1748235685_a39882048e1479ca023b.jpg\",\"user_comments\":\"\",\"auditor_comments\":\"aaa\",\"doc_status\":\"selected\"},{\"name\":\"fgdfgfd\",\"date\":\"\",\"file\":\"\",\"user_comments\":\"\",\"auditor_comments\":\"eeee\",\"doc_status\":\"selected\"},{\"name\":\"gdfgdfg\",\"date\":\"\",\"file\":\"uploads\\/entity_profile\\/33\\/subscribed_audit_template\\/10\\/documants\\/1748238107_fe496cca430aed4e4bdd.jpg\",\"user_comments\":\"\",\"auditor_comments\":\"new\",\"doc_status\":\"not_selected\"},{\"name\":\"fsfsdf\",\"date\":\"2025-05-22\",\"file\":\"uploads\\/entity_profile\\/33\\/subscribed_audit_template\\/10\\/documants\\/1748158578_7c3fbb537183ee3eaf13.png\",\"user_comments\":\"fsdfdfsfd\",\"auditor_comments\":\"wwww\",\"doc_status\":\"selected\"},{\"name\":\"tes\",\"date\":\"2025-05-14\",\"file\":\"uploads\\/entity_profile\\/33\\/subscribed_audit_template\\/10\\/documants\\/1748236426_8ff65cc3393e804cbb5e.jpg\",\"user_comments\":\"\",\"auditor_comments\":\"test\",\"doc_status\":\"not_selected\"},{\"name\":\"tg\",\"date\":\"2025-05-25\",\"file\":\"uploads\\/entity_profile\\/33\\/subscribed_audit_template\\/10\\/documants\\/1748236556_fe14a26bc28af8e7d83d.jpg\",\"user_comments\":\"tg\",\"auditor_comments\":\"ggf\",\"doc_status\":\"not_selected\"}]', NULL, NULL, 'fpo', 33, '2025-05-26 00:11:47', 45),
(12, 10, NULL, 'sss', 'auditor', 1, NULL, '[{\"name\":\"gfd\",\"date\":\"2025-05-13\",\"file\":\"uploads\\/entity_profile\\/33\\/subscribed_audit_template\\/10\\/documants\\/1748158578_97211f1c37383cd677f5.jpeg\",\"user_comments\":\"\",\"auditor_comments\":\"yyyy\",\"doc_status\":\"selected\"},{\"name\":\"fdgdfgdf\",\"date\":\"\",\"file\":\"uploads\\/entity_profile\\/33\\/subscribed_audit_template\\/10\\/documants\\/1748235685_a39882048e1479ca023b.jpg\",\"user_comments\":\"\",\"auditor_comments\":\"aaa\",\"doc_status\":\"selected\"},{\"name\":\"fgdfgfd\",\"date\":\"\",\"file\":\"\",\"user_comments\":\"\",\"auditor_comments\":\"eeee\",\"doc_status\":\"selected\"},{\"name\":\"gdfgdfg\",\"date\":\"\",\"file\":\"uploads\\/entity_profile\\/33\\/subscribed_audit_template\\/10\\/documants\\/1748238107_fe496cca430aed4e4bdd.jpg\",\"user_comments\":\"\",\"auditor_comments\":\"new\",\"doc_status\":\"selected\"},{\"name\":\"fsfsdf\",\"date\":\"2025-05-22\",\"file\":\"uploads\\/entity_profile\\/33\\/subscribed_audit_template\\/10\\/documants\\/1748158578_7c3fbb537183ee3eaf13.png\",\"user_comments\":\"fsdfdfsfd\",\"auditor_comments\":\"wwww\",\"doc_status\":\"selected\"},{\"name\":\"tes\",\"date\":\"2025-05-14\",\"file\":\"uploads\\/entity_profile\\/33\\/subscribed_audit_template\\/10\\/documants\\/1748236426_8ff65cc3393e804cbb5e.jpg\",\"user_comments\":\"\",\"auditor_comments\":\"test\",\"doc_status\":\"not_selected\"},{\"name\":\"tg\",\"date\":\"2025-05-25\",\"file\":\"uploads\\/entity_profile\\/33\\/subscribed_audit_template\\/10\\/documants\\/1748236556_fe14a26bc28af8e7d83d.jpg\",\"user_comments\":\"tg\",\"auditor_comments\":\"ggf\",\"doc_status\":\"not_selected\"}]', 1, NULL, 'fpo', 33, '2025-05-26 00:12:13', 73),
(13, 10, NULL, 'sss', 'auditor', 1, NULL, '[{\"name\":\"gfd\",\"date\":\"2025-05-13\",\"file\":\"uploads\\/entity_profile\\/33\\/subscribed_audit_template\\/10\\/documants\\/1748158578_97211f1c37383cd677f5.jpeg\",\"user_comments\":\"\",\"auditor_comments\":\"yyyy\",\"doc_status\":\"selected\"},{\"name\":\"fdgdfgdf\",\"date\":\"\",\"file\":\"uploads\\/entity_profile\\/33\\/subscribed_audit_template\\/10\\/documants\\/1748235685_a39882048e1479ca023b.jpg\",\"user_comments\":\"\",\"auditor_comments\":\"aaa\",\"doc_status\":\"selected\"},{\"name\":\"fgdfgfd\",\"date\":\"\",\"file\":\"\",\"user_comments\":\"\",\"auditor_comments\":\"eeee\",\"doc_status\":\"selected\"},{\"name\":\"gdfgdfg\",\"date\":\"\",\"file\":\"uploads\\/entity_profile\\/33\\/subscribed_audit_template\\/10\\/documants\\/1748238107_fe496cca430aed4e4bdd.jpg\",\"user_comments\":\"\",\"auditor_comments\":\"new\",\"doc_status\":\"selected\"},{\"name\":\"fsfsdf\",\"date\":\"2025-05-22\",\"file\":\"uploads\\/entity_profile\\/33\\/subscribed_audit_template\\/10\\/documants\\/1748158578_7c3fbb537183ee3eaf13.png\",\"user_comments\":\"fsdfdfsfd\",\"auditor_comments\":\"wwww\",\"doc_status\":\"selected\"},{\"name\":\"tes\",\"date\":\"2025-05-14\",\"file\":\"uploads\\/entity_profile\\/33\\/subscribed_audit_template\\/10\\/documants\\/1748236426_8ff65cc3393e804cbb5e.jpg\",\"user_comments\":\"\",\"auditor_comments\":\"test\",\"doc_status\":\"not_selected\"},{\"name\":\"tg\",\"date\":\"2025-05-25\",\"file\":\"uploads\\/entity_profile\\/33\\/subscribed_audit_template\\/10\\/documants\\/1748236556_fe14a26bc28af8e7d83d.jpg\",\"user_comments\":\"tg\",\"auditor_comments\":\"ggf\",\"doc_status\":\"not_selected\"}]', 6, NULL, 'fpo', 33, '2025-05-26 02:45:06', 73),
(14, 11, '', NULL, 'subscriber', 2, 45, '[{\"name\":\"anuval reports\",\"date\":\"2025-05-05\",\"file\":\"uploads\\/entity_profile\\/33\\/subscribed_audit_template\\/11\\/documants\\/1748261246_f37c7415af00d74cf13b.jpeg\",\"user_comments\":\"anuval report\",\"auditor_comments\":null},{\"name\":\"quaterly_reports\",\"date\":\"2025-05-13\",\"file\":null,\"user_comments\":\"quaterly_report\",\"auditor_comments\":null}]', NULL, NULL, 'fpo', 33, '2025-05-26 06:37:26', 45),
(15, 11, NULL, 'pleae give full audit report', 'auditor', 2, NULL, '[{\"name\":\"anuval reports\",\"date\":\"2025-05-05\",\"file\":\"uploads\\/entity_profile\\/33\\/subscribed_audit_template\\/11\\/documants\\/1748261246_f37c7415af00d74cf13b.jpeg\",\"user_comments\":\"anuval report\",\"auditor_comments\":\"\",\"doc_status\":\"selected\"},{\"name\":\"quaterly_reports\",\"date\":\"2025-05-13\",\"file\":\"\",\"user_comments\":\"quaterly_report\",\"auditor_comments\":\"need clarification\",\"doc_status\":\"not_selected\"}]', 3, NULL, 'fpo', 33, '2025-05-26 06:38:18', 73),
(16, 11, '', NULL, 'subscriber', 2, 45, '[{\"name\":\"anuval reports\",\"date\":\"2025-05-05\",\"file\":\"uploads\\/entity_profile\\/33\\/subscribed_audit_template\\/11\\/documants\\/1748261246_f37c7415af00d74cf13b.jpeg\",\"user_comments\":\"anuval report\",\"auditor_comments\":\"\",\"doc_status\":\"selected\"},{\"name\":\"quaterly_reports\",\"date\":\"2025-05-13\",\"file\":\"uploads\\/entity_profile\\/33\\/subscribed_audit_template\\/11\\/documants\\/1748261320_1fbc45ecbd828ae9f5c1.jpg\",\"user_comments\":\"quaterly_report\",\"auditor_comments\":\"need clarification\",\"doc_status\":\"not_selected\"}]', NULL, NULL, 'fpo', 33, '2025-05-26 06:38:40', 45),
(17, 11, NULL, 'pleae give full audit repor2', 'auditor', 2, NULL, '[{\"name\":\"anuval reports\",\"date\":\"2025-05-05\",\"file\":\"uploads\\/entity_profile\\/33\\/subscribed_audit_template\\/11\\/documants\\/1748261246_f37c7415af00d74cf13b.jpeg\",\"user_comments\":\"anuval report\",\"auditor_comments\":\"\",\"doc_status\":\"selected\"},{\"name\":\"quaterly_reports\",\"date\":\"2025-05-13\",\"file\":\"uploads\\/entity_profile\\/33\\/subscribed_audit_template\\/11\\/documants\\/1748261320_1fbc45ecbd828ae9f5c1.jpg\",\"user_comments\":\"quaterly_report\",\"auditor_comments\":\"need clarification\",\"doc_status\":\"not_selected\"}]', 3, NULL, 'fpo', 33, '2025-05-26 06:39:01', 73),
(18, 11, 'hi bro', NULL, 'subscriber', 2, 45, '[{\"name\":\"anuval reports\",\"date\":\"2025-05-05\",\"file\":\"uploads\\/entity_profile\\/33\\/subscribed_audit_template\\/11\\/documants\\/1748261246_f37c7415af00d74cf13b.jpeg\",\"user_comments\":\"anuval report\",\"auditor_comments\":\"\",\"doc_status\":\"selected\"},{\"name\":\"quaterly_reports\",\"date\":\"2025-05-13\",\"file\":\"uploads\\/entity_profile\\/33\\/subscribed_audit_template\\/11\\/documants\\/1748261320_1fbc45ecbd828ae9f5c1.jpg\",\"user_comments\":\"quaterly_report\",\"auditor_comments\":\"need clarification\",\"doc_status\":\"not_selected\"}]', NULL, NULL, 'fpo', 33, '2025-05-26 06:39:20', 45),
(19, 10, NULL, 'sss', 'auditor', 1, NULL, '[{\"name\":\"gfd\",\"date\":\"2025-05-13\",\"file\":\"uploads\\/entity_profile\\/33\\/subscribed_audit_template\\/10\\/documants\\/1748158578_97211f1c37383cd677f5.jpeg\",\"user_comments\":\"\",\"auditor_comments\":\"yyyy\",\"doc_status\":\"selected\"},{\"name\":\"fdgdfgdf\",\"date\":\"\",\"file\":\"uploads\\/entity_profile\\/33\\/subscribed_audit_template\\/10\\/documants\\/1748235685_a39882048e1479ca023b.jpg\",\"user_comments\":\"\",\"auditor_comments\":\"aaa\",\"doc_status\":\"selected\"},{\"name\":\"fgdfgfd\",\"date\":\"\",\"file\":\"\",\"user_comments\":\"\",\"auditor_comments\":\"eeee\",\"doc_status\":\"selected\"},{\"name\":\"gdfgdfg\",\"date\":\"\",\"file\":\"uploads\\/entity_profile\\/33\\/subscribed_audit_template\\/10\\/documants\\/1748238107_fe496cca430aed4e4bdd.jpg\",\"user_comments\":\"\",\"auditor_comments\":\"new\",\"doc_status\":\"selected\"},{\"name\":\"fsfsdf\",\"date\":\"2025-05-22\",\"file\":\"uploads\\/entity_profile\\/33\\/subscribed_audit_template\\/10\\/documants\\/1748158578_7c3fbb537183ee3eaf13.png\",\"user_comments\":\"fsdfdfsfd\",\"auditor_comments\":\"wwww\",\"doc_status\":\"selected\"},{\"name\":\"tes\",\"date\":\"2025-05-14\",\"file\":\"uploads\\/entity_profile\\/33\\/subscribed_audit_template\\/10\\/documants\\/1748236426_8ff65cc3393e804cbb5e.jpg\",\"user_comments\":\"\",\"auditor_comments\":\"test\",\"doc_status\":\"not_selected\"},{\"name\":\"tg\",\"date\":\"2025-05-25\",\"file\":\"uploads\\/entity_profile\\/33\\/subscribed_audit_template\\/10\\/documants\\/1748236556_fe14a26bc28af8e7d83d.jpg\",\"user_comments\":\"tg\",\"auditor_comments\":\"ggf\",\"doc_status\":\"not_selected\"}]', 4, NULL, 'fpo', 33, '2025-05-27 00:28:08', 73),
(20, 11, NULL, 'pleae give full audit repor2', 'auditor', 2, NULL, '[{\"name\":\"anuval reports\",\"date\":\"2025-05-05\",\"file\":\"uploads\\/entity_profile\\/33\\/subscribed_audit_template\\/11\\/documants\\/1748261246_f37c7415af00d74cf13b.jpeg\",\"user_comments\":\"anuval report\",\"auditor_comments\":\"\",\"doc_status\":\"selected\"},{\"name\":\"quaterly_reports\",\"date\":\"2025-05-13\",\"file\":\"uploads\\/entity_profile\\/33\\/subscribed_audit_template\\/11\\/documants\\/1748261320_1fbc45ecbd828ae9f5c1.jpg\",\"user_comments\":\"quaterly_report\",\"auditor_comments\":\"need clarification\",\"doc_status\":\"not_selected\"}]', 4, NULL, 'fpo', 33, '2025-05-27 05:26:35', 73),
(21, 12, 'dfdsfsd', NULL, 'subscriber', 4, 45, '[{\"name\":\"fgdfg\",\"date\":\"2025-05-13\",\"file\":\"uploads\\/entity_profile\\/37\\/subscribed_audit_template\\/12\\/documants\\/1748408075_2962495e31f10af66881.jpg\",\"user_comments\":\"dsfsdfsd\",\"auditor_comments\":null},{\"name\":\"fdgdfgdf\",\"date\":\"\",\"file\":null,\"user_comments\":\"\",\"auditor_comments\":null}]', NULL, NULL, 'organisation', 37, '2025-05-27 23:24:35', 49),
(22, 12, NULL, '', 'auditor', 4, NULL, '[{\"name\":\"fgdfg\",\"date\":\"2025-05-13\",\"file\":\"uploads\\/entity_profile\\/37\\/subscribed_audit_template\\/12\\/documants\\/1748408075_2962495e31f10af66881.jpg\",\"user_comments\":\"dsfsdfsd\",\"auditor_comments\":\"\",\"doc_status\":\"not_selected\"},{\"name\":\"fdgdfgdf\",\"date\":\"\",\"file\":\"\",\"user_comments\":\"\",\"auditor_comments\":\"\",\"doc_status\":\"not_selected\"}]', 1, NULL, 'organisation', 37, '2025-05-27 23:25:02', 73),
(23, 13, '', NULL, 'subscriber', 4, 45, '[{\"name\":\"fgdfg\",\"date\":\"\",\"file\":null,\"user_comments\":\"\",\"auditor_comments\":null},{\"name\":\"fdgdfgdf\",\"date\":\"\",\"file\":null,\"user_comments\":\"\",\"auditor_comments\":null}]', NULL, NULL, 'farmers', 15, '2025-05-28 23:04:30', 64),
(24, 13, NULL, '', 'auditor', 4, NULL, '[{\"name\":\"fgdfg\",\"date\":\"\",\"file\":\"\",\"user_comments\":\"\",\"auditor_comments\":\"\",\"doc_status\":\"not_selected\"},{\"name\":\"fdgdfgdf\",\"date\":\"\",\"file\":\"\",\"user_comments\":\"\",\"auditor_comments\":\"\",\"doc_status\":\"not_selected\"}]', 3, NULL, 'farmers', 15, '2025-05-29 00:01:38', 73),
(25, 13, NULL, '', 'auditor', 4, NULL, '[{\"name\":\"fgdfg\",\"date\":\"\",\"file\":\"\",\"user_comments\":\"\",\"auditor_comments\":\"\",\"doc_status\":\"not_selected\"},{\"name\":\"fdgdfgdf\",\"date\":\"\",\"file\":\"\",\"user_comments\":\"\",\"auditor_comments\":\"\",\"doc_status\":\"not_selected\"}]', 2, NULL, 'farmers', 15, '2025-05-29 09:53:03', 73),
(26, 14, '', NULL, 'subscriber', 4, 45, '[{\"name\":\"fgdfg\",\"date\":\"2025-05-19\",\"file\":null,\"user_comments\":\"\",\"auditor_comments\":null},{\"name\":\"fdgdfgdf\",\"date\":\"\",\"file\":null,\"user_comments\":\"\",\"auditor_comments\":null}]', NULL, NULL, 'farmers', 11, '2025-05-30 03:25:03', 61),
(27, 15, 'rtytry', NULL, 'subscriber', 5, 44, '[{\"name\":\"farming dta\",\"date\":\"2025-06-02\",\"file\":\"uploads\\/entity_profile\\/16\\/subscribed_audit_template\\/15\\/documants\\/1748856962_c56c32f2c9d90c4426ef.pdf\",\"user_comments\":\"rtyrty\",\"auditor_comments\":null},{\"name\":\"others\",\"date\":\"2025-06-02\",\"file\":\"uploads\\/entity_profile\\/16\\/subscribed_audit_template\\/15\\/documants\\/1748856962_453715508245305f74c7.pdf\",\"user_comments\":\"rtyrt\",\"auditor_comments\":null},{\"name\":\"fdgfd\",\"date\":\"2025-06-02\",\"file\":\"uploads\\/entity_profile\\/16\\/subscribed_audit_template\\/15\\/documants\\/1748856962_0bc5084cb86004dbcf23.pdf\",\"user_comments\":\"rtyrty\",\"auditor_comments\":null}]', NULL, NULL, 'farmers', 16, '2025-06-02 04:06:02', 71),
(28, 15, 'rtytry', NULL, 'subscriber', 5, 44, '[{\"name\":\"farming dta\",\"date\":\"2025-06-02\",\"file\":\"uploads\\/entity_profile\\/16\\/subscribed_audit_template\\/15\\/documants\\/1748856962_c56c32f2c9d90c4426ef.pdf\",\"user_comments\":\"rtyrty\",\"auditor_comments\":\"\",\"doc_status\":\"\"},{\"name\":\"others\",\"date\":\"2025-06-02\",\"file\":\"uploads\\/entity_profile\\/16\\/subscribed_audit_template\\/15\\/documants\\/1748856962_453715508245305f74c7.pdf\",\"user_comments\":\"rtyrt\",\"auditor_comments\":\"\",\"doc_status\":\"\"},{\"name\":\"fdgfd\",\"date\":\"2025-06-02\",\"file\":\"uploads\\/entity_profile\\/16\\/subscribed_audit_template\\/15\\/documants\\/1748856962_0bc5084cb86004dbcf23.pdf\",\"user_comments\":\"rtyrty\",\"auditor_comments\":\"nothing\",\"doc_status\":\"\"}]', NULL, NULL, 'farmers', 16, '2025-06-02 04:06:43', 71),
(29, 16, '-', NULL, 'subscriber', 5, 44, '[{\"name\":\"farming dta\",\"date\":\"\",\"file\":\"uploads\\/entity_profile\\/48\\/subscribed_audit_template\\/16\\/documants\\/1748862706_2f940966695864b959fd.pdf\",\"user_comments\":\"\",\"auditor_comments\":null},{\"name\":\"others\",\"date\":\"\",\"file\":null,\"user_comments\":\"\",\"auditor_comments\":null},{\"name\":\"fdgfd\",\"date\":\"\",\"file\":null,\"user_comments\":\"\",\"auditor_comments\":null}]', NULL, NULL, 'organisation', 48, '2025-06-02 05:41:46', 88),
(30, 17, 'fgh', NULL, 'subscriber', 5, 44, '[{\"name\":\"farming dta\",\"date\":\"2025-06-02\",\"file\":\"uploads\\/entity_profile\\/49\\/subscribed_audit_template\\/17\\/documants\\/1748865056_708d51e1663dddcc25fe.pdf\",\"user_comments\":\"fgh\",\"auditor_comments\":null},{\"name\":\"others\",\"date\":\"2025-06-02\",\"file\":\"uploads\\/entity_profile\\/49\\/subscribed_audit_template\\/17\\/documants\\/1748865056_8522ffd131a8d6930aa9.pdf\",\"user_comments\":\"fgh\",\"auditor_comments\":null},{\"name\":\"fdgfd\",\"date\":\"2025-06-02\",\"file\":\"uploads\\/entity_profile\\/49\\/subscribed_audit_template\\/17\\/documants\\/1748865056_5e66010b4ef89136c784.pdf\",\"user_comments\":\"fgh\",\"auditor_comments\":null}]', NULL, NULL, 'fpo', 49, '2025-06-02 06:20:56', 89),
(31, 18, '-', NULL, 'subscriber', 5, 44, '[{\"name\":\"farming dta\",\"date\":\"\",\"file\":null,\"user_comments\":\"\",\"auditor_comments\":null},{\"name\":\"others\",\"date\":\"\",\"file\":null,\"user_comments\":\"\",\"auditor_comments\":null},{\"name\":\"fdgfd\",\"date\":\"\",\"file\":null,\"user_comments\":\"\",\"auditor_comments\":null}]', NULL, NULL, 'organisation', 51, '2025-06-02 08:39:49', 107),
(32, 19, 'None', NULL, 'subscriber', 2, 45, '[{\"name\":\"anuval reports\",\"date\":\"\",\"file\":null,\"user_comments\":\"\",\"auditor_comments\":null},{\"name\":\"quaterly_reports\",\"date\":\"\",\"file\":null,\"user_comments\":\"\",\"auditor_comments\":null}]', NULL, NULL, 'fpo', 47, '2025-06-02 09:35:31', 82),
(33, 20, 'None', NULL, 'subscriber', 3, 45, '[{\"name\":\"dfdsf\",\"date\":\"\",\"file\":null,\"user_comments\":\"\",\"auditor_comments\":null},{\"name\":\"sdfsdfsd\",\"date\":\"\",\"file\":null,\"user_comments\":\"\",\"auditor_comments\":null}]', NULL, NULL, 'farmers', 23, '2025-06-03 00:11:16', 112),
(34, 12, 'dfdsfsd', NULL, 'subscriber', 4, 45, '[{\"name\":\"fgdfg\",\"date\":\"2025-05-13\",\"file\":\"uploads\\/entity_profile\\/37\\/subscribed_audit_template\\/12\\/documants\\/1748408075_2962495e31f10af66881.jpg\",\"user_comments\":\"dsfsdfsd\",\"auditor_comments\":\"\",\"doc_status\":\"not_selected\"},{\"name\":\"fdgdfgdf\",\"date\":\"\",\"file\":\"\",\"user_comments\":\"\",\"auditor_comments\":\"\",\"doc_status\":\"not_selected\"}]', NULL, NULL, 'organisation', 37, '2025-06-03 11:28:21', 49),
(35, 21, '', NULL, 'subscriber', 4, 45, '[{\"name\":\"fgdfg\",\"date\":\"2025-06-03\",\"file\":\"uploads\\/entity_profile\\/36\\/subscribed_audit_template\\/21\\/documants\\/1748962466_c72e106ff80c595fe483.pdf\",\"user_comments\":\"Test\",\"auditor_comments\":null},{\"name\":\"fdgdfgdf\",\"date\":\"2025-06-03\",\"file\":\"uploads\\/entity_profile\\/36\\/subscribed_audit_template\\/21\\/documants\\/1748962466_cf8e78d3177448aaae3b.pdf\",\"user_comments\":\"Test2\",\"auditor_comments\":null}]', NULL, NULL, 'organisation', 36, '2025-06-03 14:54:26', 48),
(36, 22, '', NULL, 'subscriber', 6, 50, '[{\"name\":\"Financial Reports\",\"date\":\"2025-06-02\",\"file\":\"uploads\\/entity_profile\\/48\\/subscribed_audit_template\\/22\\/documants\\/1748963991_2054d1144209dcfbbe14.pdf\",\"user_comments\":\"Test\",\"auditor_comments\":null}]', NULL, NULL, 'organisation', 48, '2025-06-03 15:19:51', 88),
(37, 22, NULL, '', 'auditor', 6, NULL, '[{\"name\":\"Financial Reports\",\"date\":\"2025-06-02\",\"file\":\"uploads\\/entity_profile\\/48\\/subscribed_audit_template\\/22\\/documants\\/1748963991_2054d1144209dcfbbe14.pdf\",\"user_comments\":\"Test\",\"auditor_comments\":\"Test1\",\"doc_status\":\"selected\"}]', 3, NULL, 'organisation', 48, '2025-06-03 15:20:56', 100),
(38, 22, '', NULL, 'subscriber', 6, 50, '[{\"name\":\"Financial Reports\",\"date\":\"2025-06-02\",\"file\":\"uploads\\/entity_profile\\/48\\/subscribed_audit_template\\/22\\/documants\\/1748963991_2054d1144209dcfbbe14.pdf\",\"user_comments\":\"Test\",\"auditor_comments\":\"Test1\",\"doc_status\":\"selected\"},{\"name\":\"Testing\",\"date\":\"2025-06-02\",\"file\":\"uploads\\/entity_profile\\/48\\/subscribed_audit_template\\/22\\/documants\\/1748964174_df61dd29de150a0198e9.pdf\",\"user_comments\":\"Testing\",\"auditor_comments\":null,\"doc_status\":null}]', NULL, NULL, 'organisation', 48, '2025-06-03 15:22:54', 88),
(39, 22, NULL, '', 'auditor', 6, NULL, '[{\"name\":\"Financial Reports\",\"date\":\"2025-06-02\",\"file\":\"uploads\\/entity_profile\\/48\\/subscribed_audit_template\\/22\\/documants\\/1748963991_2054d1144209dcfbbe14.pdf\",\"user_comments\":\"Test\",\"auditor_comments\":\"Test1\",\"doc_status\":\"selected\"},{\"name\":\"Testing\",\"date\":\"2025-06-02\",\"file\":\"uploads\\/entity_profile\\/48\\/subscribed_audit_template\\/22\\/documants\\/1748964174_df61dd29de150a0198e9.pdf\",\"user_comments\":\"Testing\",\"auditor_comments\":\"This is to be validated\",\"doc_status\":\"selected\"}]', 3, NULL, 'organisation', 48, '2025-06-03 15:23:51', 100),
(40, 23, 'Completed', NULL, 'subscriber', 4, 45, '[{\"name\":\"fgdfg\",\"date\":\"\",\"file\":null,\"user_comments\":\"\",\"auditor_comments\":null},{\"name\":\"fdgdfgdf\",\"date\":\"\",\"file\":null,\"user_comments\":\"\",\"auditor_comments\":null}]', NULL, NULL, 'fpo', 47, '2025-06-04 11:24:45', 82),
(41, 22, NULL, 'Good', 'auditor', 6, NULL, '[{\"name\":\"Financial Reports\",\"date\":\"2025-06-02\",\"file\":\"uploads\\/entity_profile\\/48\\/subscribed_audit_template\\/22\\/documants\\/1748963991_2054d1144209dcfbbe14.pdf\",\"user_comments\":\"Test\",\"auditor_comments\":\"Test1\",\"doc_status\":\"selected\"},{\"name\":\"Testing\",\"date\":\"2025-06-02\",\"file\":\"uploads\\/entity_profile\\/48\\/subscribed_audit_template\\/22\\/documants\\/1748964174_df61dd29de150a0198e9.pdf\",\"user_comments\":\"Testing\",\"auditor_comments\":\"This is to be validated\",\"doc_status\":\"selected\"}]', 6, NULL, 'organisation', 48, '2025-06-05 04:41:03', 100),
(42, 24, 'Good', NULL, 'subscriber', 4, 45, '[{\"name\":\"fgdfg\",\"date\":\"2025-06-03\",\"file\":\"uploads\\/entity_profile\\/23\\/subscribed_audit_template\\/24\\/documants\\/1749099234_80497ed55df29f3c4470.pdf\",\"user_comments\":\"\",\"auditor_comments\":null},{\"name\":\"fdgdfgdf\",\"date\":\"2025-06-02\",\"file\":\"uploads\\/entity_profile\\/23\\/subscribed_audit_template\\/24\\/documants\\/1749099234_0d89b3c70d75b9a0ab7a.pdf\",\"user_comments\":\"\",\"auditor_comments\":null}]', NULL, NULL, 'farmers', 23, '2025-06-05 04:53:54', 112),
(43, 25, 'Good', NULL, 'subscriber', 5, 44, '[{\"name\":\"farming dta\",\"date\":\"\",\"file\":null,\"user_comments\":\"\",\"auditor_comments\":null},{\"name\":\"others\",\"date\":\"\",\"file\":null,\"user_comments\":\"\",\"auditor_comments\":null},{\"name\":\"fdgfd\",\"date\":\"\",\"file\":null,\"user_comments\":\"\",\"auditor_comments\":null}]', NULL, NULL, 'farmers', 23, '2025-06-05 05:14:51', 112),
(44, 26, 'Good', NULL, 'subscriber', 7, 50, '[{\"name\":\"Reports\",\"date\":\"2025-06-04\",\"file\":\"uploads\\/entity_profile\\/23\\/subscribed_audit_template\\/26\\/documants\\/1749100669_97e7710cbf6111f95400.pdf\",\"user_comments\":\"\",\"auditor_comments\":null}]', NULL, NULL, 'farmers', 23, '2025-06-05 05:17:49', 112),
(45, 26, NULL, '', 'auditor', 7, NULL, '[{\"name\":\"Reports\",\"date\":\"2025-06-04\",\"file\":\"uploads\\/entity_profile\\/23\\/subscribed_audit_template\\/26\\/documants\\/1749100669_97e7710cbf6111f95400.pdf\",\"user_comments\":\"\",\"auditor_comments\":\"\",\"doc_status\":\"not_selected\"}]', 6, NULL, 'farmers', 23, '2025-06-05 05:18:30', 100),
(46, 27, 'NA', NULL, 'subscriber', 6, 50, '[{\"name\":\"Financial Reports\",\"date\":\"2025-07-05\",\"file\":\"uploads\\/entity_profile\\/38\\/subscribed_audit_template\\/27\\/documants\\/1751699191_08a3b08539e51ef31d4f.pdf\",\"user_comments\":\"NA\",\"auditor_comments\":null}]', NULL, NULL, 'organisation', 38, '2025-07-05 07:06:31', 51),
(47, 28, 'Thank you for conducting the audit at GreenHarvest Rice Farms on 10th July 2025. We appreciate your detailed observations, guidance, and support throughout the process.\r\nThe audit helped us identify key areas for improvement and implement corrective ', NULL, 'subscriber', 2, 45, '[{\"name\":\"anuval reports\",\"date\":\"2025-07-10\",\"file\":\"uploads\\/entity_profile\\/54\\/subscribed_audit_template\\/28\\/documants\\/1752128954_f234e4e49f63cf1e5ca6.pdf\",\"user_comments\":\"\",\"auditor_comments\":null},{\"name\":\"quaterly_reports\",\"date\":\"2025-07-10\",\"file\":\"uploads\\/entity_profile\\/54\\/subscribed_audit_template\\/28\\/documants\\/1752128954_ea6da28fa52d21ebfb2c.pdf\",\"user_comments\":\"\",\"auditor_comments\":null}]', NULL, NULL, 'fpo', 54, '2025-07-10 06:29:14', 135);

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

--
-- Table structure for table `audit_template`
--

CREATE TABLE `audit_template` (
  `id` int(11) NOT NULL,
  `template_name` varchar(255) NOT NULL,
  `template_for` text NOT NULL,
  `template_expiry_date` date DEFAULT NULL,
  `required_documents` text NOT NULL,
  `description` text NOT NULL,
  `status` int(11) NOT NULL DEFAULT 1,
  `created_at` timestamp NOT NULL DEFAULT current_timestamp(),
  `created_by` int(11) NOT NULL,
  `updated_by` int(11) NOT NULL,
  `associated_by` varchar(50) NOT NULL,
  `entity_id` int(11) NOT NULL,
  `updated_at` datetime NOT NULL DEFAULT '0000-00-00 00:00:00' ON UPDATE current_timestamp()
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

--
-- Dumping data for table `audit_template`
--

INSERT INTO `audit_template` (`id`, `template_name`, `template_for`, `template_expiry_date`, `required_documents`, `description`, `status`, `created_at`, `created_by`, `updated_by`, `associated_by`, `entity_id`, `updated_at`) VALUES
(1, 'gffgfd', 'organization', '0000-00-00', 'gfd,fdgdfgdf,fgdfgfd,gdfgdfg', 'hfgfdgfg', 1, '2025-05-23 09:29:06', 73, 73, 'audit_company', 45, '2025-05-24 06:09:55'),
(2, 'yearly total closing', 'farmer_organization', '0000-00-00', 'anuval reports,quaterly_reports', 'send all year report', 1, '2025-05-26 06:36:46', 73, 73, 'audit_company', 45, '2025-05-28 04:11:11'),
(3, 'yearly total closing', 'farmer', '0000-00-00', 'dfdsf,sdfsdfsd', '', 1, '2025-05-27 22:28:34', 73, 73, 'audit_company', 45, '2025-06-03 05:47:05'),
(4, 'yearly total closinggdggfdgdfg', 'all', '0000-00-00', 'fgdfg,fdgdfgdf', '', 1, '2025-05-27 22:47:29', 73, 73, 'audit_company', 45, '2025-05-28 04:17:29'),
(5, 'test', 'all', '2025-06-02', 'farming dta,others,fdgfd', '', 1, '2025-06-02 01:54:27', 72, 72, 'audit_company', 44, '2025-06-02 07:24:42'),
(6, 'Audit Design', 'organization', '2025-06-06', 'Financial Reports', 'Test', 1, '2025-06-02 08:18:01', 100, 100, 'audit_company', 50, '2025-06-05 05:13:40'),
(7, 'Audit Design', 'farmer', '2025-06-05', 'Reports', '-', 1, '2025-06-05 05:09:41', 100, 100, 'audit_company', 50, '2025-06-05 05:16:57');

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

--
-- Table structure for table `certificate`
--

CREATE TABLE `certificate` (
  `id` int(11) NOT NULL,
  `certificate_name` mediumtext DEFAULT NULL,
  `suporting_documant` longtext DEFAULT NULL,
  `associated_by` mediumtext DEFAULT NULL,
  `entity_id` int(11) DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT current_timestamp(),
  `created_by` int(11) DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT current_timestamp(),
  `updated_by` int(11) DEFAULT NULL,
  `status` int(11) DEFAULT 1
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `certificate`
--

INSERT INTO `certificate` (`id`, `certificate_name`, `suporting_documant`, `associated_by`, `entity_id`, `created_at`, `created_by`, `updated_at`, `updated_by`, `status`) VALUES
(6, 'HACCP', '[{\"name\":\"old_documant\",\"date\":\"2025-04-14\",\"file\":\"uploads\\/entity_profile\\/15\\/certification\\/6\\/1744897231_89a9f7ad494dbb05653f.webp\"},{\"name\":\"adsfdsf\",\"date\":\"2025-04-14\",\"file\":\"uploads\\/entity_profile\\/15\\/certification\\/1744886423_cce9622d80018fe8e46d.jpg\"},{\"name\":\"adsfdsf\",\"date\":\"2025-04-22\",\"file\":\"uploads\\/entity_profile\\/15\\/certification\\/1744886423_92884cf7b4c809793ea8.png\"},{\"name\":\"new_documant\",\"date\":\"2025-04-28\",\"file\":\"uploads\\/entity_profile\\/15\\/certification\\/6\\/1744897231_cd7bfedf0b1d0652ce06.jpg\"}]', 'organisation', 15, '2025-04-17 05:10:23', 1, '2025-04-17 09:24:04', 1, 0),
(7, 'ISO 22000', '[{\"name\":\"old_documant\",\"date\":\"2025-04-21\",\"file\":\"uploads\\/entity_profile\\/15\\/certification\\/71744897287_91bea92eb6b2e9f3f655.jpg\"},{\"name\":\"old_documant\",\"date\":\"2025-04-14\",\"file\":\"uploads\\/entity_profile\\/15\\/certification\\/7\\/1744897301_ca62858c25206c8f9b1d.jpg\"}]', 'organisation', 15, '2025-04-17 08:11:27', 1, '2025-04-17 08:11:41', 1, 1),
(8, 'BRC Food', '[{\"name\":\"sts\",\"date\":\"2025-04-23\",\"file\":\"uploads\\/entity_profile\\/19\\/certification\\/81746003504_b50ce358e410f8887957.png\"}]', 'organisation', 19, '2025-04-30 03:28:24', 8, '2025-04-30 03:29:20', 8, 0),
(9, 'BRC Food', '[{\"name\":\"sts\",\"date\":\"2025-04-30\",\"file\":\"uploads\\/entity_profile\\/19\\/certification\\/91746003688_5c9937b8e6c7ea24d843.jpeg\"},{\"name\":\"sts2\",\"date\":\"2025-05-02\",\"file\":\"uploads\\/entity_profile\\/19\\/certification\\/91746003688_510c9a1634b8a30adec5.jpeg\"}]', 'organisation', 19, '2025-04-30 03:31:28', 8, '2025-04-30 03:31:28', 8, 1),
(10, 'ISO 9001', '[{\"name\":\"fgdfg\",\"date\":\"2025-04-07\",\"file\":\"uploads\\/entity_profile\\/15\\/certification\\/10\\/1746004804_798fb4793dc122b43db3.jpg\"}]', 'organisation', 15, '2025-04-30 03:46:36', 15, '2025-04-30 03:50:04', 15, 1),
(11, 'ISO 50001', '[]', 'organisation', 15, '2025-04-30 03:51:42', 15, '2025-04-30 03:51:42', 15, 1),
(12, 'ISO 14001', '[{\"name\":\"old_documant\",\"date\":\"2025-04-08\",\"file\":\"uploads\\/entity_profile\\/15\\/certification\\/12\\/1746021064_b2d16b6c3986a96caf41.png\"}]', 'organisation', 15, '2025-04-30 08:20:44', 15, '2025-04-30 08:21:04', 15, 1),
(13, 'BRC Food', '[{\"name\":\"BRC Food\",\"date\":\"2020-01-13\",\"file\":\"uploads\\/entity_profile\\/23\\/certification\\/13\\/1746022788_f68a5aeaad03ac47172b.pdf\"},{\"name\":\"BRC Food 2\",\"date\":\"2020-06-13\",\"file\":\"uploads\\/entity_profile\\/23\\/certification\\/13\\/1746022788_d6c3f3cad4a8315c7129.docx\"}]', 'organisation', 23, '2025-04-30 08:49:48', 20, '2025-04-30 08:49:48', 20, 1),
(14, 'Natural Farming', '[{\"name\":\"old_documant\",\"date\":\"2025-05-15\",\"file\":\"uploads\\/entity_profile\\/30\\/certification\\/14\\/1746436608_34e637a0241ffdc629ce.png\"}]', 'fpo', 30, '2025-05-05 03:46:48', 27, '2025-05-05 03:47:02', 27, 1),
(15, 'BRC Food', '[{\"name\":\"TestCert\",\"date\":\"2023-04-13\",\"file\":\"uploads\\/entity_profile\\/36\\/certification\\/15\\/1746723757_b864f6ea34a28389fa06.pdf\"}]', 'organisation', 36, '2025-05-08 11:32:37', 48, '2025-05-08 11:32:37', 48, 1),
(16, 'ISO 22000', '[{\"name\":\"ssa\",\"date\":\"2025-05-12\",\"file\":\"uploads\\/entity_profile\\/39\\/certification\\/16\\/1746776199_79fafc84036c52202b65.xlsx\"},{\"name\":\"sts\",\"date\":\"2025-05-08\",\"file\":\"uploads\\/entity_profile\\/39\\/certification\\/16\\/1746776199_145a2370b8bb2eddca12.pdf\"},{\"name\":\"st1\",\"date\":\"2025-05-15\",\"file\":\"uploads\\/entity_profile\\/39\\/certification\\/16\\/1746776242_3c82146c0bc410d4ff51.docx\"}]', 'organisation', 39, '2025-05-09 02:06:39', 52, '2025-05-09 02:07:22', 52, 1),
(17, 'Organic NPOP', '[{\"name\":\"dfdsfsdfsd\",\"date\":\"2025-06-09\",\"file\":\"uploads\\/entity_profile\\/33\\/certification\\/17\\/1746801811_11bec5f53c3dd5e06b87.xlsx\"}]', 'fpo', 33, '2025-05-09 09:13:31', 45, '2025-05-09 09:13:31', 45, 1),
(18, 'ISO 22000', '[{\"name\":\"22000-2018 Audit Guidance Document\",\"date\":\"2025-02-20\",\"file\":\"uploads\\/entity_profile\\/43\\/certification\\/18\\/1747390815_b073331e3dccf36c9b2a.pdf\"}]', 'organisation', 43, '2025-05-16 04:50:15', 65, '2025-05-16 04:50:15', 65, 1),
(19, 'ISO 22000', '[{\"name\":\"dfdsf\",\"date\":\"2025-06-02\",\"file\":\"uploads\\/entity_profile\\/37\\/certification\\/19\\/1748966133_037d2cf4b5b9388d7430.xlsx\"}]', 'organisation', 37, '2025-06-03 11:27:04', 49, '2025-06-03 15:55:33', 49, 1),
(20, 'Natural farming', '[]', 'audit_company', 45, '2025-06-03 11:41:49', 73, '2025-06-03 11:42:55', 73, 1),
(21, 'BRC Food', '[{\"name\":\"Test2\",\"date\":\"2025-06-01\",\"file\":\"uploads\\/entity_profile\\/48\\/certification\\/21\\/1748963451_058bd3e7e33bd89be108.pdf\"}]', 'organisation', 48, '2025-06-03 15:10:12', 88, '2025-06-03 15:10:51', 88, 1),
(22, 'Global GAP', '', 'audit_company', 50, '2025-06-03 15:12:54', 100, '2025-06-03 15:12:54', 100, 1),
(23, 'PGS', '', 'fpo', 33, '2025-06-03 15:49:17', 45, '2025-06-03 15:52:02', 45, 0),
(24, 'Natural farming', '', 'fpo', 33, '2025-06-03 15:49:33', 45, '2025-06-03 15:49:33', 45, 1),
(25, 'Organic NPOP', '', 'fpo', 33, '2025-06-03 15:49:51', 45, '2025-06-03 15:49:51', 45, 1),
(26, 'IndGAP', '[{\"name\":\"dfdsf\",\"date\":\"2025-06-01\",\"file\":\"uploads\\/entity_profile\\/33\\/certification\\/26\\/1748965838_88d7fe01a1d038697e42.xlsx\"}]', 'fpo', 33, '2025-06-03 15:50:17', 45, '2025-06-03 15:50:38', 45, 1),
(27, 'Organic NOP', '[{\"name\":\"dfdsf\",\"date\":\"2025-06-01\",\"file\":\"uploads\\/entity_profile\\/33\\/certification\\/27\\/1748965904_e15ba8d27fb246b06fce.xlsx\"}]', 'fpo', 33, '2025-06-03 15:51:44', 45, '2025-06-03 15:51:44', 45, 1),
(28, 'PGS', '[{\"name\":\"dfdsf\",\"date\":\"2025-06-01\",\"file\":\"uploads\\/entity_profile\\/33\\/certification\\/28\\/1748965934_72f34ee896047c28b538.xlsx\"}]', 'fpo', 33, '2025-06-03 15:52:14', 45, '2025-06-03 15:52:14', 45, 1),
(29, 'IndGAP', '[]', 'fpo', 33, '2025-06-03 15:52:23', 45, '2025-06-03 15:52:23', 45, 1),
(30, 'ISO 50001', '[]', 'organisation', 37, '2025-06-03 15:55:50', 49, '2025-06-03 15:55:50', 49, 1),
(31, 'Organic NOP', '[]', 'audit_company', 45, '2025-06-03 15:59:08', 73, '2025-06-03 15:59:08', 73, 1),
(32, 'IndGAP', '[{\"name\":\"Test\",\"date\":\"2025-06-02\",\"file\":\"uploads\\/entity_profile\\/47\\/certification\\/32\\/1748967819_684ba3be6818131ea1bf.pdf\"},{\"name\":\"Test2\",\"date\":\"2025-06-03\",\"file\":\"uploads\\/entity_profile\\/47\\/certification\\/32\\/1748967847_d36c1915e3777fda9ca1.pdf\"}]', 'fpo', 47, '2025-06-03 16:23:39', 82, '2025-06-05 04:22:23', 82, 1),
(33, 'ISO 22000', '[{\"name\":\"Good Agricultural Practices\",\"date\":\"2025-07-05\",\"file\":\"uploads\\/entity_profile\\/38\\/certification\\/33\\/1751690197_2295bbf88bc4224d03da.pdf\"}]', 'organisation', 38, '2025-07-05 04:36:37', 51, '2025-07-28 12:19:21', 51, 1),
(34, 'Global GAP', '[{\"name\":\"Good Agricultural Practices\",\"date\":\"2025-07-01\",\"file\":\"uploads\\/entity_profile\\/54\\/certification\\/34\\/1752046914_41902378dcd73d1bca2c.pdf\"}]', 'fpo', 54, '2025-07-09 07:41:54', 135, '2025-07-09 07:41:54', 135, 1);

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

--
-- Table structure for table `certification_body_audit`
--

CREATE TABLE `certification_body_audit` (
  `id` int(11) NOT NULL,
  `audit_id` text NOT NULL,
  `audit_category` text NOT NULL,
  `record_date` date NOT NULL,
  `certification_body_name` text DEFAULT NULL,
  `audit_date` text DEFAULT NULL,
  `location` text NOT NULL,
  `audit_for` text NOT NULL,
  `audit_type` text NOT NULL,
  `department` int(11) NOT NULL,
  `internalAudit_schedule` text DEFAULT NULL,
  `internalAudit_scope` varchar(250) NOT NULL,
  `internalAudit_checklist_used` varchar(250) NOT NULL,
  `internal_non_conformities_reported` varchar(250) NOT NULL,
  `internal_opportunities_for_improvement` varchar(250) NOT NULL,
  `internal_corrective_actions_taken` varchar(250) NOT NULL,
  `internal_corrective_actions_closed` varchar(250) NOT NULL,
  `internal_final_audit_report` text DEFAULT NULL,
  `description` varchar(250) NOT NULL,
  `remark` varchar(250) NOT NULL,
  `auditors` text NOT NULL,
  `internal_auditee_representative` text NOT NULL,
  `documants` text NOT NULL,
  `entity_id` int(11) NOT NULL,
  `associated_by` text NOT NULL,
  `created_by` int(11) NOT NULL,
  `updated_by` int(11) NOT NULL,
  `status` int(11) NOT NULL DEFAULT 1,
  `created_at` timestamp NOT NULL DEFAULT current_timestamp(),
  `updated_at` datetime NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `No_of_days_of_Audit` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `certification_body_audit`
--

INSERT INTO `certification_body_audit` (`id`, `audit_id`, `audit_category`, `record_date`, `certification_body_name`, `audit_date`, `location`, `audit_for`, `audit_type`, `department`, `internalAudit_schedule`, `internalAudit_scope`, `internalAudit_checklist_used`, `internal_non_conformities_reported`, `internal_opportunities_for_improvement`, `internal_corrective_actions_taken`, `internal_corrective_actions_closed`, `internal_final_audit_report`, `description`, `remark`, `auditors`, `internal_auditee_representative`, `documants`, `entity_id`, `associated_by`, `created_by`, `updated_by`, `status`, `created_at`, `updated_at`, `No_of_days_of_Audit`) VALUES
(1, '', 'Surveillance', '2025-04-09', 'gdfgdfgddfgf', '2025-04-09 to 2025-05-14', 'fdsfdsfsd', '{\"Factory_builidings\":[\"9\"]}', '{\"Environmental\":null}', 1, 'dsfsdfsd', 'fsdfdsf', 'dfdsfsdf', 'dsfdsfdsfsd', 'sdfsdfsdf', 'dsfsdf', 'sdfdsfd', 'fdsf', 'In writing, single and double quotation marks appear like this: According to the teacher, the test would be “the most difficult exam of the year.” “Our teacher called it \'the most difficult exam of the year,\'” Almir complained to his parents', 'fdsfsd\r\n                             ', '[{\"name\":\"dfdsfdsf\",\"file\":\"uploads\\/entity_profile\\/15\\/Certification_body_audit\\/1\\/auditor\\/1745775697_3b6c52f6ab7d8e3195f6.jpg\"}]', '[\"dsfsdsdf\"]', '[{\"name\":\"dfsdfd\",\"date\":\"2025-04-30\",\"file\":\"uploads\\/entity_profile\\/15\\/Certification_body_audit\\/1\\/documants\\/1745775697_86959eda928145a83f07.jpg\"}]', 15, 'organisation', 1, 1, 0, '2025-04-27 12:11:37', '2025-04-28 08:36:56', 0),
(2, 'CBA-19_2', 'Initial', '2025-05-08', 'dsfsf', '2025-04-15 to 2025-05-22', 'sts', '{\"Factory_builidings\":[\"13\"]}', '{\"Operational\":null}', 2, 'dsfs', 'dfsfd', 'dfsfsd', 'dfsf', 'dfs', 'dfdfs', 'dfsf', 'dfsdf', 'dfdsfdsf\r\n\r\n                             ', 'dfdsf', '[{\"name\":\"sdds\",\"file\":\"uploads\\/entity_profile\\/19\\/Certification_body_audit\\/2\\/auditor\\/1746017387_e09550d4676635c1a810.jpg\"}]', '[\"dfs\",\"jhjh\"]', '[{\"name\":\"p1\",\"date\":\"2025-05-08\",\"file\":\"uploads\\/entity_profile\\/19\\/Certification_body_audit\\/2\\/documants\\/1746017388_80e6e3d1a65e6812c462.jpeg\"}]', 19, 'organisation', 8, 8, 1, '2025-04-30 07:19:47', '2025-04-30 12:49:48', 0),
(3, 'CBA-37_3', 'Renewal', '2025-04-28', 'gdfgdfgddfgf', '2025-05-14 to 2025-06-20', 'fdsfdsfsd', '{\"Corporate_Office\":null}', '{\"Compliance\":null}', 1, '[{\"name\":\"dsfdsfsd\",\"date\":\"2025-05-14\",\"file\":\"uploads\\/entity_profile\\/37\\/Certification_body_audit\\/3\\/documants\\/1746769178_14039ccd323411bddf00.png\"}]', 'dsfdsfd', 'sfdsfds', 'fdsf', 'sdfdsf', '', '', '[{\"report_date\":\"2025-06-03\",\"report_file\":\"uploads\\/entity_profile\\/37\\/Certification_body_audit\\/3\\/reports\\/1746769178_aca39f3044e42519be05.xlsx\"}]', 'fdsfdsfsd\r\n\r\n                             ', 'sdfsd', '[{\"name\":\"dfdsfdsf\",\"file\":\"uploads\\/entity_profile\\/37\\/Certification_body_audit\\/3\\/auditor\\/1746769178_240e644b42fc121f4020.jpg\"}]', '[\"dfsdfdsf\"]', '[{\"name\":\"dsfdsfsd\",\"date\":\"2025-05-14\",\"file\":\"uploads\\/entity_profile\\/37\\/Certification_body_audit\\/3\\/documants\\/1746769178_14039ccd323411bddf00.png\"}]', 37, 'organisation', 49, 49, 0, '2025-05-09 00:09:38', '2025-05-09 12:28:14', 0),
(4, 'CBA-37_4', 'Renewal', '2025-04-29', 'gdfgdfgddfgf', '2025-05-16 to 2025-06-18', 'Factory_builidings', '{\"Corporate_Office\":null}', '{\"Operational\":null}', 2, '[{\"Schedule_date\":\"2025-05-13\",\"Schedule_file\":\"uploads\\/entity_profile\\/37\\/Certification_body_audit\\/4\\/Audit_Schedule\\/1746773969_a7714232a7223c37e944.xlsx\"}]', 'dfgdfg', 'dfgdfgdf', 'gdfg', 'dfgdfg', '', '', '[{\"name\":\"2025-05-21\",\"file\":\"uploads\\/entity_profile\\/37\\/Certification_body_audit\\/4\\/reports\\/1746775360_d854597a71cabc3c80e4.jpg\"}]', 'dfgdf', 'gdfgdfgdf\r\n\r\n                             ', '[{\"name\":\"dfggfdg\",\"file\":\"uploads\\/entity_profile\\/37\\/Certification_body_audit\\/4\\/auditor\\/1746773969_73be9fc01b0a8967d137.png\"}]', '[\"gfdfd\"]', '[{\"name\":\"dfgdfgfdg\",\"date\":\"2025-05-12\",\"file\":\"uploads\\/entity_profile\\/37\\/Certification_body_audit\\/4\\/documants\\/1746773969_95ab0c4bf27eb6e0720b.png\"}]', 37, 'organisation', 49, 49, 0, '2025-05-09 01:29:29', '2025-05-09 12:56:35', 0),
(5, 'CBA-37_5', 'Renewal', '2025-04-29', 'fgfdgfdg', '2025-05-07 to 2025-06-28', 'gfdfdfds', '{\"Corporate_Office\":null}', '{\"Compliance\":null}', 13, '[{\"Schedule_date\":\"2025-05-06\",\"Schedule_file\":\"uploads\\/entity_profile\\/37\\/Certification_body_audit\\/5\\/Audit_Schedule\\/1746775896_8f23f246a7d50f5e835b.webp\"}]', 'dsfdsf', 'sdfsdfs', 'dsfsdf', 'sdfsd', '', '', '[{\"report_date\":\"2025-05-01\",\"report_file\":\"uploads\\/entity_profile\\/37\\/Certification_body_audit\\/5\\/reports\\/1746775743_75abf1344999d492c3bc.png\"}]', 'fsdfsd', 'fsdfsdf\r\n\r\n                             ', '[{\"name\":\"dsfsdfsd\",\"file\":\"uploads\\/entity_profile\\/37\\/Certification_body_audit\\/5\\/auditor\\/1746775672_f1bfc7c5cd4dd29a2371.jpg\"}]', '[\"dsfsfsdfsdf\"]', '[{\"name\":\"old_documant\",\"date\":\"2025-05-04\",\"file\":\"uploads\\/entity_profile\\/37\\/Certification_body_audit\\/5\\/documants\\/1746775672_a12fd986877f104ffb8c.png\"}]', 37, 'organisation', 49, 49, 1, '2025-05-09 01:57:52', '2025-05-09 12:39:22', 10),
(6, 'CBA-37_6', 'Renewal', '2025-05-06', 'gdfgdfgddfgf', '2025-05-14 to 2025-06-21', 'Factory_builidings', '{\"Factory_builidings\":[\"27\"]}', '{\"Environmental\":null}', 13, '[{\"Schedule_date\":\"2025-04-30\",\"Schedule_file\":\"uploads\\/entity_profile\\/37\\/Certification_body_audit\\/6\\/Audit_Schedule\\/1746794174_8ccd54c4b4579b8e75cb.xlsx\"}]', 'gfdgfd', 'dfgfg', 'dfgfd', 'gfdgdf', '', '', '[{\"report_date\":\"2025-05-07\",\"report_file\":\"uploads\\/entity_profile\\/37\\/Certification_body_audit\\/6\\/reports\\/1746794174_10377ae0a4dac74f88b8.xlsx\"}]', '\r\n\r\n               dgfdgdfgfd              ', 'gfdgf', '[{\"name\":\"gfdfgfd\",\"file\":\"uploads\\/entity_profile\\/37\\/Certification_body_audit\\/6\\/auditor\\/1746794174_017ee5de087b57ff29cb.jpg\"}]', '[\"gfdgdfgdf\"]', '[{\"name\":\"fgdfg\",\"date\":\"2025-04-30\",\"file\":\"uploads\\/entity_profile\\/37\\/Certification_body_audit\\/6\\/documants\\/1746794174_61ae11b49e29d3cb8f75.xlsx\"}]', 37, 'organisation', 49, 49, 1, '2025-05-09 07:06:14', '2025-05-09 12:36:14', 45),
(7, 'CBA-39_7', 'Surveillance', '2025-05-08', 'dsfsf', '2025-05-08 to 2025-06-17', 'sts', '{\"Corporate_Office\":null}', '{\"Operational\":null}', 12, '[{\"Schedule_date\":\"2025-05-01\",\"Schedule_file\":\"uploads\\/entity_profile\\/39\\/Certification_body_audit\\/7\\/Audit_Schedule\\/1746794792_d99c379f0bc1eef9fb31.pdf\"}]', 'sadsa', 'sdsad', 'sdsad', 'sdasd', '', '', '[{\"report_date\":\"2025-05-08\",\"report_file\":\"uploads\\/entity_profile\\/39\\/Certification_body_audit\\/7\\/reports\\/1746794792_adea3142dba811e6e5a1.pdf\"}]', '\r\nsdsad\r\n                             ', 'sdsada', '[{\"name\":\"sadsa\",\"file\":\"uploads\\/entity_profile\\/39\\/Certification_body_audit\\/7\\/auditor\\/1746794792_220e29c236f713c03fe6.png\"}]', '[\"sadad\"]', '[{\"name\":\"sad\",\"date\":\"2025-05-08\",\"file\":\"uploads\\/entity_profile\\/39\\/Certification_body_audit\\/7\\/documants\\/1746794792_be723a3c89a656636815.pdf\"}]', 39, 'organisation', 52, 52, 1, '2025-05-09 07:16:32', '2025-05-09 12:46:32', 0),
(8, 'CBA-43_8', 'Initial', '2025-05-10', 'CertSafe Pvt. Ltd.', '2025-05-10 to 2025-05-17', 'Organizatioon', '{\"Corporate_Office\":null}', '{\"Financial\":null}', 16, '[{\"Schedule_date\":\"2025-05-11\",\"Schedule_file\":\"uploads\\/entity_profile\\/43\\/Certification_body_audit\\/8\\/Audit_Schedule\\/1747490881_bc20c4ff689b8e3f84eb.doc\"}]', 'Complete Audit', 'Attached', '5', 'NA', '', '', '[{\"report_date\":\"2025-05-11\",\"report_file\":\"uploads\\/entity_profile\\/43\\/Certification_body_audit\\/8\\/reports\\/1747490881_b5e8a4427765d6a9e7f5.docx\"}]', 'Test\r\n\r\n                             ', 'Test', '[{\"name\":\"CertSafe Pvt. Ltd.\",\"file\":\"uploads\\/entity_profile\\/43\\/Certification_body_audit\\/8\\/auditor\\/1747490881_59304ee7a8f86d75cc74.jpg\"}]', '[\"Test\"]', '[{\"name\":\"Test\",\"date\":\"2025-05-11\",\"file\":\"uploads\\/entity_profile\\/43\\/Certification_body_audit\\/8\\/documants\\/1747490881_75f669d22e5f17162a56.pdf\"}]', 43, 'organisation', 65, 65, 1, '2025-05-17 08:38:01', '2025-05-17 14:08:01', 10),
(9, 'CBA-48_9', 'Initial', '2025-06-02', 'Building Audit', '2025-03-06 to 2025-04-14', 'Chennai', '{\"Corporate_Office\":null}', '{\"Financial\":null}', 24, '[{\"Schedule_date\":\"2025-02-04\",\"Schedule_file\":\"uploads\\/entity_profile\\/48\\/Certification_body_audit\\/9\\/Audit_Schedule\\/1748862509_62fde345ced83b79d170.pdf\"}]', 'Checking', 'Standard', '-', '-', '', '', '[{\"report_date\":\"2025-06-01\",\"report_file\":\"uploads\\/entity_profile\\/48\\/Certification_body_audit\\/9\\/reports\\/1748862509_ff8ece1c3121f8683f1d.pdf\"}]', '-', '-\r\n                             ', '[{\"name\":\"Vivek\",\"file\":\"uploads\\/entity_profile\\/48\\/Certification_body_audit\\/9\\/auditor\\/1748862509_9ec606684b51d5a32e06.jpg\"}]', '[\"Dhanush\"]', '[{\"name\":\"Agreement\",\"date\":\"2025-06-02\",\"file\":\"uploads\\/entity_profile\\/48\\/Certification_body_audit\\/9\\/documants\\/1748862509_dc5a917ee7e091dda0eb.pdf\"}]', 48, 'organisation', 88, 88, 1, '2025-06-02 05:38:29', '2025-06-04 10:51:36', 29),
(10, 'CBA-51_10', 'Initial', '2025-06-02', 'Building Audit', '2025-06-04 to 2025-07-14', 'Chennai', '{\"Corporate_Office\":null}', '{\"Financial\":null}', 27, '[{\"Schedule_date\":\"2025-06-02\",\"Schedule_file\":\"uploads\\/entity_profile\\/51\\/Certification_body_audit\\/10\\/Audit_Schedule\\/1748873321_bf3a87afb6676f3eedee.pdf\"}]', 'Checking the Reports', '-', '-', '-', '', '', '[{\"report_date\":\"2025-06-02\",\"report_file\":\"uploads\\/entity_profile\\/51\\/Certification_body_audit\\/10\\/reports\\/1748873321_78e1d22de55b5e6a897d.pdf\"}]', '-\r\n\r\n                             ', '-', '[{\"name\":\"Vivek\",\"file\":\"uploads\\/entity_profile\\/51\\/Certification_body_audit\\/10\\/auditor\\/1748873321_3db18bcf02b66d2c076b.jpg\"}]', '[\"Dhanush\"]', '[{\"name\":\"Agreement\",\"date\":\"2025-06-02\",\"file\":\"uploads\\/entity_profile\\/51\\/Certification_body_audit\\/10\\/documants\\/1748873321_822a5853dfe01985be8d.pdf\"}]', 51, 'organisation', 107, 107, 1, '2025-06-02 08:38:41', '2025-06-02 14:08:41', 40),
(11, 'CBA-39_11', 'Initial', '2025-07-02', 'test', '2025-07-02 to 2025-08-04', 'test', '{\"Corporate_Office\":null}', '{\"Operational\":null}', 12, '[{\"Schedule_date\":\"2025-07-02\",\"Schedule_file\":\"uploads\\/entity_profile\\/39\\/Certification_body_audit\\/11\\/Audit_Schedule\\/1751449252_26b7dedc1d4927471b75.png\"}]', 'test', 'test', 'test', 'test', '', '', '[{\"report_date\":\"2025-07-02\",\"report_file\":\"uploads\\/entity_profile\\/39\\/Certification_body_audit\\/11\\/reports\\/1751449252_600bfd6fa16e225ecfaa.png\"}]', 'test\r\n\r\n                             ', 'test', '[{\"name\":\"test\",\"file\":\"uploads\\/entity_profile\\/39\\/Certification_body_audit\\/11\\/auditor\\/1751449252_5c9f2446cb16e536ba32.png\"}]', '[{\"name\":\"test\",\"department\":\"12\",\"file\":\"uploads\\/entity_profile\\/39\\/Internal_audit\\/11\\/auditee\\/1751449252_830dde6054324b592953.png\"},{\"name\":\"test\",\"department\":\"14\",\"file\":\"uploads\\/entity_profile\\/39\\/Internal_audit\\/11\\/auditee\\/1751449252_4965519991d87c3a57bb.png\"}]', '[{\"name\":\"test\",\"date\":\"2025-07-02\",\"file\":\"uploads\\/entity_profile\\/39\\/Certification_body_audit\\/11\\/documants\\/1751449252_018250f22fe68e2734e1.png\"}]', 39, 'organisation', 39, 39, 1, '2025-07-02 09:40:52', '2025-07-02 09:40:52', 0),
(12, 'CBA-38_12', 'Surveillance', '2025-07-05', 'Indocert', '2025-07-05 to 2025-07-05', 'Hyderabad', '{\"Corporate_Office\":null}', '{\"Financial\":null}', 34, '[{\"Schedule_date\":\"2025-07-05\",\"Schedule_file\":\"uploads\\/entity_profile\\/38\\/Certification_body_audit\\/12\\/Audit_Schedule\\/1751698985_e1468a5ca01fa263155a.pdf\"}]', 'NA', 'NA', 'NA', 'NA', '', '', '[{\"report_date\":\"2025-07-05\",\"report_file\":\"uploads\\/entity_profile\\/38\\/Certification_body_audit\\/12\\/reports\\/1751698985_64fdc167b9318b4e5e99.pdf\"}]', 'NA\r\n\r\n                             ', 'NA', '[{\"name\":\"Sai Krishna\",\"file\":\"uploads\\/entity_profile\\/38\\/Certification_body_audit\\/12\\/auditor\\/1751698985_1d20c19ea09ba0ea6ac6.png\"}]', '[{\"name\":\"Vani\",\"department\":\"35\",\"file\":\"uploads\\/entity_profile\\/38\\/Internal_audit\\/12\\/auditee\\/1751698985_47f55e95fc86c97bd9f2.pdf\"}]', '[{\"name\":\"Internal Inspector\",\"date\":\"2025-07-05\",\"file\":\"uploads\\/entity_profile\\/38\\/Certification_body_audit\\/12\\/documants\\/1751698985_cafbfd1fa303aa041f02.pdf\"}]', 38, 'organisation', 51, 51, 1, '2025-07-05 07:03:05', '2025-07-05 07:03:05', 5);

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

--
-- Table structure for table `certified_audit`
--

CREATE TABLE `certified_audit` (
  `id` int(11) NOT NULL,
  `audit_id` text NOT NULL,
  `audit_category` text NOT NULL,
  `record_date` date NOT NULL,
  `certification_body_name` text DEFAULT NULL,
  `audit_date` text DEFAULT NULL,
  `AMSAudit_For` text NOT NULL,
  `location` text NOT NULL,
  `internalAudit_schedule` text DEFAULT NULL,
  `internalAudit_scope` varchar(250) NOT NULL,
  `internalAudit_checklist_used` varchar(250) NOT NULL,
  `internal_non_conformities_reported` varchar(250) NOT NULL,
  `internal_opportunities_for_improvement` varchar(250) NOT NULL,
  `internal_corrective_actions_taken` varchar(250) NOT NULL,
  `internal_corrective_actions_closed` varchar(250) NOT NULL,
  `internal_final_audit_report` text DEFAULT NULL,
  `description` varchar(250) NOT NULL,
  `remark` varchar(250) NOT NULL,
  `auditors` text NOT NULL,
  `internal_auditee_representative` text NOT NULL,
  `documants` text NOT NULL,
  `entity_id` int(11) NOT NULL,
  `associated_by` text NOT NULL,
  `created_by` int(11) NOT NULL,
  `updated_by` int(11) NOT NULL,
  `status` int(11) NOT NULL DEFAULT 1,
  `created_at` timestamp NOT NULL DEFAULT current_timestamp(),
  `updated_at` datetime NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `No_of_days_of_Audit` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `certified_audit`
--

INSERT INTO `certified_audit` (`id`, `audit_id`, `audit_category`, `record_date`, `certification_body_name`, `audit_date`, `AMSAudit_For`, `location`, `internalAudit_schedule`, `internalAudit_scope`, `internalAudit_checklist_used`, `internal_non_conformities_reported`, `internal_opportunities_for_improvement`, `internal_corrective_actions_taken`, `internal_corrective_actions_closed`, `internal_final_audit_report`, `description`, `remark`, `auditors`, `internal_auditee_representative`, `documants`, `entity_id`, `associated_by`, `created_by`, `updated_by`, `status`, `created_at`, `updated_at`, `No_of_days_of_Audit`) VALUES
(1, 'C_A-49_1', 'Initial', '2025-06-02', 'qwrwe', '2025-06-02 to 2025-06-21', '{\"Corporate_Office\":null}', 'chennai', '[{\"Schedule_date\":\"2025-06-02\",\"Schedule_file\":\"uploads\\/entity_profile\\/49\\/certified_audit\\/1\\/Audit_Schedule\\/1748864458_2549b6c2505b6edcb266.pdf\"}]', 'fdsf', 'sdf', 'sdf', 'sdf', '', '', '[{\"report_date\":\"2025-06-02\",\"report_file\":\"uploads\\/entity_profile\\/49\\/certified_audit\\/1\\/reports\\/1748864458_f04835d2b14a0d09810d.pdf\"}]', 'dsf', 'dsf\r\n                             ', '[{\"name\":\"dsfdsfdf\",\"file\":\"uploads\\/entity_profile\\/49\\/certified_audit\\/1\\/auditor\\/1748864458_d9b6c1cdf532c6ae7cc7.jpg\"}]', '[\"fdsfdsf\"]', '[{\"name\":\"fdsf\",\"date\":\"2025-06-02\",\"file\":\"uploads\\/entity_profile\\/49\\/certified_audit\\/1\\/documants\\/1748864458_3521ab708b981f84f486.pdf\"}]', 49, 'fpo', 89, 89, 1, '2025-06-02 06:10:58', '2025-06-02 11:41:09', 2),
(2, 'C_A-47_2', 'Initial', '2025-06-01', 'Building Audit', '2025-05-05 to 2025-06-30', '{\"Corporate_Office\":null}', '', '[{\"Schedule_date\":\"2025-06-02\",\"Schedule_file\":\"uploads\\/entity_profile\\/47\\/certified_audit\\/2\\/Audit_Schedule\\/1748876584_7ac32670f63534bf4d00.pdf\"}]', 'Correction', '', 'Not bad', 'Yes', '', '', '[{\"report_date\":\"2025-06-02\",\"report_file\":\"uploads\\/entity_profile\\/47\\/certified_audit\\/2\\/reports\\/1748876584_072fbfe6bc1f55d89494.pdf\"}]', '', '\r\n                             ', '[{\"name\":\"Vivek\",\"file\":\"uploads\\/entity_profile\\/47\\/certified_audit\\/2\\/auditor\\/1748876584_425a6d67974f0cc9d3f3.jpg\"}]', '[\"Dhanush\"]', '', 47, 'fpo', 82, 82, 1, '2025-06-02 09:33:04', '2025-06-03 05:50:16', 55),
(3, 'C_A-47_3', 'Surveillance', '2025-03-12', 'ISO clearance', '2025-04-29 to 2025-05-08', '{\"storage_details\":[\"16\"]}', '', '[{\"Schedule_date\":\"2025-06-01\",\"Schedule_file\":\"uploads\\/entity_profile\\/47\\/certified_audit\\/3\\/Audit_Schedule\\/1749035863_321d6303e153a35c72e9.pdf\"}]', 'Clearance', '', 'Arjun', 'Shankar', '', '', '[{\"report_date\":\"2025-06-03\",\"report_file\":\"uploads\\/entity_profile\\/47\\/certified_audit\\/3\\/reports\\/1749035862_87c1f202b021f40d7b89.pdf\"}]', '', '\r\n                             ', '[{\"name\":\"Vivek\",\"file\":\"uploads\\/entity_profile\\/47\\/certified_audit\\/3\\/auditor\\/1749035862_5e77b1db7acda36ce21d.jpg\"}]', '[\"Simbu\"]', '', 47, 'fpo', 82, 82, 1, '2025-06-04 11:17:42', '2025-06-05 05:01:15', 10),
(4, 'C_A-54_4', 'Initial', '2025-07-01', 'TQCERT', '2025-07-08 to 2025-07-09', '{\"packaging_unit\":[\"12\"]}', 'Hyderabad', '[{\"Schedule_date\":\"2025-07-08\",\"Schedule_file\":\"uploads\\/entity_profile\\/54\\/certified_audit\\/4\\/Audit_Schedule\\/1752126145_1c88f14d7084b55d2aa6.pdf\"}]', 'To verify compliance with internal quality standards and applicable external certification requirements (e.g., GLOBALG.A.P. Version 6.0, Food Safety Practices, Record Maintenance, and Traceability Systems).', 'Are clean and accessible handwashing stations available in field areas', 'Two pesticide containers found without proper labels or expiry date markings Soap missing at one of the handwashing stations near harvest zone', 'mplement a strict protocol for labeling all agrochemicals upon receipt; conduct weekly label verification checks Introduce a daily hygiene checklist; assign responsibility for replenishing hygiene materials ', '', '', '[{\"report_date\":\"2025-07-08\",\"report_file\":\"uploads\\/entity_profile\\/54\\/certified_audit\\/4\\/reports\\/1752126145_b07b2c554ceb7b6de08d.pdf\"}]', '', '\r\n                             ', '[{\"name\":\"Mr. Anil Kumar (Lead Auditor)\",\"file\":\"uploads\\/entity_profile\\/54\\/certified_audit\\/4\\/auditor\\/1752126145_c9ee180cb83b71b3b2a7.png\"}]', '[\"Ms. Radhika Verma (Co-Auditor)\"]', '', 54, 'fpo', 135, 135, 1, '2025-07-10 05:42:25', '2025-07-29 09:08:39', 2),
(5, 'C_A-64_5', 'Initial', '2025-07-07', '', '2025-07-20 to 2025-08-29', '[]', '', '[{\"Schedule_date\":\"2025-07-10\",\"Schedule_file\":\"uploads\\/entity_profile\\/64\\/certified_audit\\/5\\/Audit_Schedule\\/1752918163_19d50f87baa6e18f9384.jpg\"}]', 'fsdfsdsdfsdf', '', 'fsdf', 'sdfdsf', '', '', '[{\"report_date\":\"2025-07-15\",\"report_file\":\"uploads\\/entity_profile\\/64\\/certified_audit\\/5\\/reports\\/1752918163_2ed6eedf989b109ecc65.jpg\"}]', 'sdfsdfsd', '\r\n\r\n                             ', '[{\"name\":\"gdfsgfdg\",\"file\":\"uploads\\/entity_profile\\/64\\/certified_audit\\/5\\/auditor\\/1752918163_2f24904304b7a03ae9dd.jpg\"}]', '[\"fgdfgdfgdfg\"]', '', 64, 'fpo', 157, 157, 1, '2025-07-19 09:42:43', '2025-07-19 09:42:43', 0);

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

--
-- Table structure for table `challenges_and_feedback`
--

CREATE TABLE `challenges_and_feedback` (
  `id` int(11) NOT NULL,
  `Challenges_Faced` varchar(250) NOT NULL,
  `Feedback_from_Farmer` varchar(250) DEFAULT NULL,
  `Suggestions_for_Improvement` varchar(250) DEFAULT NULL,
  `remark` varchar(255) NOT NULL,
  `documents` text NOT NULL,
  `entity_id` int(11) NOT NULL,
  `associated_by` varchar(50) NOT NULL,
  `created_by` int(11) NOT NULL,
  `updated_by` int(11) NOT NULL,
  `status` int(11) NOT NULL DEFAULT 1,
  `created_at` timestamp NOT NULL DEFAULT current_timestamp(),
  `updated_at` datetime NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp()
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

--
-- Dumping data for table `challenges_and_feedback`
--

INSERT INTO `challenges_and_feedback` (`id`, `Challenges_Faced`, `Feedback_from_Farmer`, `Suggestions_for_Improvement`, `remark`, `documents`, `entity_id`, `associated_by`, `created_by`, `updated_by`, `status`, `created_at`, `updated_at`) VALUES
(1, 'ghg', 'gfh', 'fhfgh', 'fghfgh', '[{\"name\":\"fghfgh\",\"date\":\"2025-06-02\",\"file\":\"uploads\\/entity_profile\\/49\\/Challenge_and_feedback\\/1\\/documants\\/1748865003_57fac2cc0733529032fc.pdf\"}]', 49, 'fpo', 89, 89, 1, '2025-06-02 06:20:03', '2025-06-02 11:50:10'),
(2, 'Issues', '', 'Checking', 'Good', '[{\"name\":\"Agreement\",\"date\":\"2025-06-03\",\"file\":\"uploads\\/entity_profile\\/47\\/Challenge_and_feedback\\/2\\/documants\\/1749036216_7bdfae12a2c839299bf5.pdf\"}]', 47, 'fpo', 82, 82, 1, '2025-06-04 11:23:36', '2025-06-04 11:23:36'),
(3, 'Need for Capacity Building: Management requested support for periodic training on food safety and documentation standards.\r\n\r\nResource Constraints Noted: A few SOP implementations were delayed due to limited staff and budgetary flexibility.\r\n\r\nReques', 'The audit helped us understand the importance of keeping records properly and handling pesticides safely. Our team now knows how to follow standard practices for labeling and hygiene.', 'Provide more training in Telugu, especially for field workers.\"\r\n\r\n\"Visual SOPs should be displayed on the farm noticeboard.\"\r\n\r\n\"Request for periodic internal checks before formal audits to stay compliant.\"\r\n\r\n', 'Na', '[{\"name\":\"Final_Clean_Paddy_Audit_Report_GreenHarvest_July2025\",\"date\":\"2025-07-10\",\"file\":\"uploads\\/entity_profile\\/54\\/Challenge_and_feedback\\/3\\/documants\\/1752127768_cc3c479f73c8d69982ac.pdf\"}]', 54, 'fpo', 135, 135, 1, '2025-07-10 06:09:28', '2025-07-29 09:10:57');

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

--
-- Table structure for table `contact_person`
--

CREATE TABLE `contact_person` (
  `id` int(11) NOT NULL,
  `entity_id` int(11) DEFAULT NULL,
  `associated_by` varchar(255) DEFAULT NULL,
  `Contact_Person_Title` varchar(255) DEFAULT NULL,
  `Contact_Person_First_Name` varchar(255) DEFAULT NULL,
  `Contact_Person_Middle_Name` varchar(255) DEFAULT NULL,
  `Contact_Person_Last_Name` varchar(255) DEFAULT NULL,
  `designation` varchar(50) DEFAULT NULL,
  `Contact_Number` mediumtext NOT NULL,
  `Person_Photo` mediumtext DEFAULT NULL,
  `email` varchar(255) NOT NULL,
  `status` tinyint(4) DEFAULT 1,
  `password` mediumtext NOT NULL,
  `created_at` datetime DEFAULT current_timestamp(),
  `created_by` int(11) NOT NULL,
  `updated_at` timestamp NOT NULL DEFAULT current_timestamp(),
  `updated_by` int(11) NOT NULL,
  `department` int(11) DEFAULT NULL,
  `role` int(11) NOT NULL,
  `skill_distribution` int(11) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `contact_person`
--

INSERT INTO `contact_person` (`id`, `entity_id`, `associated_by`, `Contact_Person_Title`, `Contact_Person_First_Name`, `Contact_Person_Middle_Name`, `Contact_Person_Last_Name`, `designation`, `Contact_Number`, `Person_Photo`, `email`, `status`, `password`, `created_at`, `created_by`, `updated_at`, `updated_by`, `department`, `role`, `skill_distribution`) VALUES
(52, 36, 'organisation', 'Mr', 'Hari', '', 'Madhavan', 'AVP', '9840352595', 'uploads/entity_profile/36/contact_person/52/1746724237_b2fcdeec0279f584ca88.jpg', 'hari@sanrnd.com', 1, '$2y$10$NSX.TIog5sJN7WQnkPPQqu.nNqMRvi53y5fBC1YA3Nw9abOrBR46G', '2025-05-08 22:40:37', 48, '2025-05-08 17:10:37', 48, 11, 11, 0),
(53, 39, 'organisation', 'Mr', 'rama', '', 'saran', 'Manager', '9677770553', 'uploads/entity_profile/39/contact_person/53/1746773202_02750a8530ed3aa57f4b.jpg', 'tha@gmail.com', 1, '$2y$10$2wQz1kP.pe9MmR1YjsG5..8UrBFnckPzbafwIuz47c3rGOicjwSnK', '2025-05-09 12:16:42', 52, '2025-05-09 06:46:42', 52, 12, 15, 0),
(54, 37, 'organisation', 'Mr', 'ramachandran', '', 'selvam', 'fsdfsd', '9360135395', 'uploads/entity_profile/37/contact_person/54/1746785929_62e2c5dd5fae7a46b6b9.jpg', 'ramachandrantamil002@gmail.com', 1, '$2y$10$7jzeATTQtdDRz9Ymd/n9Juzf3KfZAD/x.ktam4cF8mAahY61Mz45K', '2025-05-09 15:48:49', 49, '2025-05-09 10:20:16', 49, 13, 14, 0),
(55, 33, 'fpo', 'Mr', 'rdfsd', 'sdfsdf', 'selvam', 'sfdsf', '9566262691', 'uploads/entity_profile/33/contact_person/55/1746801949_60caed5e5176c638d3a2.png', 'ramachandrantamil01@gmail.com', 1, '$2y$10$/1vqv3Lz.5UxDauJE8mFaebR51LdZlsvnO8L66yRb1luHNIkE8fOG', '2025-05-09 20:15:49', 45, '2025-05-09 14:45:49', 45, 15, 22, 0),
(56, 43, 'organisation', 'Mr', 'Rajeev', '', 'Kumar', 'QA Manager', '9988776655', 'uploads/entity_profile/43/contact_person/56/1747390406_d9252eba9ed563ccbbf7.jpg', 'qa@freshharvest.in', 1, '$2y$10$u6ATQ/L726OVvFEbd0oRZ.vQb0gCUaiJ/fACg99yW3VF8FgJTdiku', '2025-05-16 15:43:26', 65, '2025-05-16 10:13:26', 65, 16, 23, 0),
(57, 45, 'audit_company', 'Mr', 'rdfsd', '', 'selvam', '', '9566262691', 'uploads/entity_profile/45/contact_person/57/1748516139_3f6f02d405dbb23fc3e7.jpg', 'ramachandrafgntamil007@gmail.com', 1, '$2y$10$3C0YwttcGbqRfRQ/J1LtcO1lkDMCufPJojY6vt5iqrpgrBB85Knky', '2025-05-29 16:25:39', 73, '2025-05-29 10:55:39', 73, 0, 29, NULL),
(58, 47, 'fpo', 'Mrs', 'Shanthi', '', 'Ramachandran', 'Supervisor', '9876543210', 'uploads/entity_profile/47/contact_person/58/1748967942_50a97e583dc3f0df970d.png', 'shanthi@myoffice.com', 1, '$2y$10$sMBEx5OxNIKVy0DQRz.Ey.RIi4h7Wv1Ou.X4syaCDqDu5/3DIjLHq', '2025-06-03 16:25:42', 82, '2025-06-03 16:25:42', 82, 23, 31, NULL),
(59, 48, 'organisation', 'Mr', 'Abdul', '', 'Azar', 'hr', '8536537531', 'uploads/entity_profile/48/contact_person/59/1749034055_abde58df11ab3e134759.jpg', 'azar@abc.com', 1, '$2y$10$YJ2pwSnrz/dsARXLV3A7tujWYU7TFuQ4jB0y6LL/vyrOual9bznbi', '2025-06-04 10:47:35', 88, '2025-06-04 10:47:35', 88, 24, 32, NULL),
(60, 38, 'organisation', 'Mr', 'Anji', 'Reddy', 'Durgampudi', 'Manager', '9010466610', 'uploads/entity_profile/38/contact_person/60/1751865602_cc4d89120bdb42ffa3d8.jpg', 'anjireddy1@efreshglobal.com', 1, '$2y$10$ztlvMvnzMTFeoyGmeNKi..QDfshzmw8Nq7slHko0cdBRrvoCNCu/u', '2025-07-07 05:20:02', 51, '2025-07-28 17:48:49', 51, 34, 41, NULL),
(61, 54, 'fpo', 'Mr', 'Anji', 'Reddy', 'Durgampudi', 'Manager', '9010466610', 'uploads/entity_profile/54/contact_person/61/1752046884_5d12c06609ff1b4a6386.jpg', 'reddy.anji201012@gmail.com', 1, '$2y$10$EZ.Clpgq4FVcX4rgOrpj8eCmxTHiq10g8Kj.Sqr3ELxOfwbUANoTm', '2025-07-09 07:41:24', 135, '2025-07-09 07:41:24', 135, 33, 44, NULL),
(62, 54, 'fpo', 'Mr', 'Ravi', 'Reddy', 'kiran', 'Manager', '9010466610', 'uploads/entity_profile/54/contact_person/62/1752219424_bdf34335dc36b67f465e.png', 'ravi@gmail.com', 1, '$2y$10$QmWdaHMiKvDSw5Hm4f/yBu2//pP9kmHPnInwAgQiLn4K9UXDCVupK', '2025-07-11 07:37:04', 135, '2025-07-11 07:37:04', 135, 36, 46, NULL);

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

--
-- Table structure for table `crop_master`
--

CREATE TABLE `crop_master` (
  `id` int(11) NOT NULL,
  `crop_variety` varchar(30) NOT NULL,
  `crop_name` text NOT NULL,
  `status` int(11) NOT NULL DEFAULT 1,
  `entity_id` int(11) NOT NULL,
  `associated_by` text NOT NULL,
  `created_by` int(11) NOT NULL,
  `updated_by` int(11) NOT NULL,
  `created_at` timestamp NOT NULL DEFAULT current_timestamp(),
  `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00' ON UPDATE current_timestamp()
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `crop_master`
--

INSERT INTO `crop_master` (`id`, `crop_variety`, `crop_name`, `status`, `entity_id`, `associated_by`, `created_by`, `updated_by`, `created_at`, `updated_at`) VALUES
(1, 'top ag', 'agi 1', 0, 30, 'fpo', 27, 27, '2025-05-05 09:46:07', '2025-05-05 15:27:50'),
(2, 'gdfgdf', 'ggjj,mk,jh', 1, 33, 'fpo', 45, 45, '2025-05-09 09:16:07', '2025-05-10 10:12:44'),
(3, 'nana_to', 'rise,weet,frute', 1, 33, 'fpo', 45, 45, '2025-05-10 04:13:42', '2025-05-10 09:44:16'),
(4, 'rise', 'saer,dsds,ddsdsd,sdsd', 1, 33, 'fpo', 45, 45, '2025-05-13 05:18:58', '2025-05-13 05:18:58'),
(5, 'rise', 'bas,fg', 0, 16, 'farmers', 0, 71, '2025-05-13 06:00:49', '2025-05-20 17:54:00'),
(6, 'dfg', 'dfg,fgdg', 1, 16, 'farmers', 71, 71, '2025-05-20 02:56:07', '2025-05-20 08:32:41'),
(7, 'rice', 'fg,fdg', 1, 16, 'farmers', 71, 71, '2025-05-20 02:59:47', '2025-05-20 02:59:47'),
(8, 'dfg', 'dfg', 1, 16, 'farmers', 71, 71, '2025-05-20 03:00:24', '2025-05-20 03:00:24'),
(9, 'fgbh', 'fgh', 1, 16, 'farmers', 71, 71, '2025-05-20 03:00:58', '2025-05-20 03:00:58'),
(10, 'gfh', 'gfh,fdgdfg,dfgdfg', 0, 16, 'farmers', 71, 71, '2025-05-20 03:02:17', '2025-05-20 08:34:39'),
(11, 'dfg', 'fghfg,fghfgh', 1, 16, 'farmers', 71, 71, '2025-05-20 07:44:08', '2025-05-20 07:44:08'),
(12, 'wheat', 'daa,asd', 1, 16, 'farmers', 71, 71, '2025-05-20 12:23:41', '2025-05-20 12:23:41'),
(13, 'nana_to', '676', 1, 15, 'farmers', 64, 64, '2025-05-28 11:18:45', '2025-05-28 17:01:41'),
(14, 'fgdfgdfg', 'fgfdgdf,fdgfdgfd', 1, 15, 'farmers', 64, 64, '2025-05-28 22:33:58', '2025-05-28 22:33:58'),
(15, 'fdgdfgdf', 'g,fdgfdg,gf', 1, 11, 'farmers', 61, 61, '2025-05-29 10:44:05', '2025-05-29 10:44:05'),
(16, 'top agi', 'dsfdsf,dsfsdfsd', 1, 33, 'fpo', 45, 45, '2025-06-02 04:39:54', '2025-06-02 04:39:54'),
(17, 'dsf', 'dsf', 1, 49, 'fpo', 89, 89, '2025-06-02 05:04:44', '2025-06-02 05:04:44'),
(18, 'Rice', 'Leaves', 1, 47, 'fpo', 82, 82, '2025-06-02 08:43:24', '2025-06-02 08:43:24'),
(19, 'top agi', 'gfgfdgfd,gfdgfd', 1, 33, 'fpo', 45, 45, '2025-06-02 08:51:32', '2025-06-02 08:51:32'),
(20, 'Rice', 'Leaves', 1, 23, 'farmers', 112, 112, '2025-06-03 00:06:47', '2025-06-03 00:06:47'),
(21, 'chilli Teja 235', 'Chilli', 1, 54, 'fpo', 135, 135, '2025-06-18 04:46:05', '2025-07-29 17:27:14'),
(22, 'chilli Teja 235', 'chilli', 1, 30, 'farmers', 145, 145, '2025-06-24 11:37:36', '2025-06-24 11:37:36'),
(23, 'nca 125', 'paddy', 1, 30, 'farmers', 145, 145, '2025-06-24 11:37:59', '2025-06-24 11:37:59'),
(24, 'test', 'test', 1, 60, 'fpo', 141, 141, '2025-07-07 09:11:07', '2025-07-07 09:11:07'),
(25, 'Paddy BPT', 'Paddy', 1, 54, 'fpo', 135, 135, '2025-07-10 04:37:36', '2025-07-10 04:37:36'),
(26, 'Maize N2545', 'Maize', 1, 54, 'fpo', 135, 135, '2025-07-10 04:38:25', '2025-07-10 04:38:25');

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

--
-- Table structure for table `department`
--

CREATE TABLE `department` (
  `id` int(11) NOT NULL,
  `department_name` text DEFAULT NULL,
  `designation_name` text DEFAULT NULL,
  `associated_by` text DEFAULT NULL,
  `entity_id` int(11) DEFAULT NULL,
  `created_at` timestamp NOT NULL DEFAULT current_timestamp(),
  `created_by` int(11) DEFAULT NULL,
  `updated_at` timestamp NOT NULL DEFAULT current_timestamp(),
  `updated_by` int(11) DEFAULT NULL,
  `status` int(11) NOT NULL DEFAULT 1
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `department`
--

INSERT INTO `department` (`id`, `department_name`, `designation_name`, `associated_by`, `entity_id`, `created_at`, `created_by`, `updated_at`, `updated_by`, `status`) VALUES
(1, 'finance department', 'PHP  ', 'organisation', 15, '2025-04-17 11:10:06', 1, '2025-04-17 17:08:55', 1, 1),
(2, 'sts', 'manager', 'organisation', 19, '2025-04-30 03:38:13', 8, '2025-04-30 03:38:13', 8, 1),
(3, 'package ', 'supervisor', 'organisation', 19, '2025-04-30 03:38:35', 8, '2025-04-30 09:09:12', 8, 1),
(4, 'storage', 'manager', 'organisation', 19, '2025-04-30 03:38:54', 8, '2025-04-30 03:38:54', 8, 1),
(5, 'Production', 'Prd Mgr', 'organisation', 23, '2025-04-30 08:53:11', 20, '2025-04-30 08:53:11', 20, 1),
(6, 'Production', 'Prd Asst', 'organisation', 23, '2025-04-30 08:53:26', 20, '2025-04-30 08:53:26', 20, 1),
(7, 'test', 'tr', 'organisation', 25, '2025-04-30 09:59:44', 23, '2025-04-30 15:30:00', 23, 1),
(8, 'new_departement', 'manager,clerk,dada', 'organisation', 32, '2025-05-07 11:30:56', 37, '2025-05-07 17:17:04', 37, 1),
(9, 'new_departement', 'dsfdsf,dsfdsfsdf,sdfsdfsd', 'organisation', 33, '2025-05-08 06:24:07', 45, '2025-05-08 06:24:07', 45, 1),
(10, 'Production', 'Production Manager,Assistant Manager,Senior Manager', 'organisation', 36, '2025-05-08 11:34:19', 48, '2025-05-08 11:34:19', 48, 1),
(11, 'Operations', 'Operations Manager,AVP', 'organisation', 36, '2025-05-08 11:34:38', 48, '2025-05-08 11:34:38', 48, 1),
(12, 'HR', 'Manager', 'organisation', 39, '2025-05-09 01:12:25', 52, '2025-05-09 01:12:25', 52, 1),
(13, 'finance department', 'fdsfsd,fsdfsd,sfsdf,dsfsdfsdf', 'organisation', 37, '2025-05-09 04:48:11', 49, '2025-05-09 04:48:11', 49, 1),
(14, 'contractors', 'subcontractor', 'organisation', 39, '2025-05-09 06:20:06', 52, '2025-05-09 06:20:06', 52, 1),
(15, 'new_departement', 'dfsdf,dsfsf,dsfsd,sfdsf,fdsf,dfds,dsdfs', 'fpo', 33, '2025-05-09 09:14:36', 45, '2025-05-09 09:14:36', 45, 1),
(16, 'Quality Control', 'QA Manager,QC Assistant', 'organisation', 43, '2025-05-16 04:39:27', 65, '2025-05-17 13:14:19', 65, 1),
(17, 'Operations', 'Sorting Operator', 'organisation', 43, '2025-05-17 07:43:55', 65, '2025-05-17 07:43:55', 65, 1),
(18, 'Packaging', 'Packing Supervisor', 'organisation', 43, '2025-05-17 07:44:46', 65, '2025-05-17 07:44:46', 65, 1),
(19, 'Store', 'Storekeeper', 'organisation', 43, '2025-05-17 07:45:10', 65, '2025-05-17 07:45:10', 65, 1),
(20, 'human resourse', 'hra,sdf', 'audit_company', 44, '2025-05-21 12:17:02', 72, '2025-06-02 06:09:28', 72, 1),
(21, 'fdsfsd', 'dsfsdf,fdsf,dfsdfsdf', 'audit_company', 45, '2025-05-29 05:25:19', 73, '2025-05-29 05:25:19', 73, 1),
(22, 'sdf', 'dsf,sdfdsf', 'audit_company', 44, '2025-06-02 00:39:21', 72, '2025-06-02 00:39:21', 72, 1),
(23, 'Admin', 'Supervisor', 'fpo', 47, '2025-06-02 00:40:23', 82, '2025-06-02 00:40:23', 82, 1),
(24, 'Admin', 'hr', 'organisation', 48, '2025-06-02 03:08:36', 88, '2025-06-05 09:41:02', 88, 1),
(25, 'development', 'backend,frontend', 'fpo', 49, '2025-06-02 04:15:12', 89, '2025-06-02 04:15:12', 89, 1),
(26, 'Admin', 'Executive', 'audit_company', 50, '2025-06-02 08:11:21', 100, '2025-06-02 08:11:21', 100, 1),
(27, 'Admin', 'Executive', 'organisation', 51, '2025-06-02 08:23:32', 107, '2025-06-02 08:23:32', 107, 1),
(28, 'dsfsdf', 'sdfsdf,dfd,eeee', 'audit_company', 45, '2025-06-03 00:13:44', 73, '2025-06-03 00:13:44', 73, 1),
(29, 'Purchase', 'Purchase manager', 'organisation', 48, '2025-06-04 10:28:50', 88, '2025-06-04 15:59:11', 88, 0),
(30, 'test', 'test2', 'app_user', 1, '2025-06-12 13:12:31', 1, '2025-06-12 18:42:45', 1, 0),
(31, 'test', 'test', 'app_user', 1, '2025-06-17 07:31:48', 1, '2025-06-17 07:31:48', 1, 1),
(32, 'Test', 'Test', 'audit_company', 63, '2025-06-24 04:51:22', 144, '2025-06-24 04:51:22', 144, 1),
(33, 'Test', 'Manager', 'fpo', 54, '2025-06-24 05:54:51', 135, '2025-07-29 17:26:54', 135, 1),
(34, 'QCA', 'Manager', 'organisation', 38, '2025-07-04 11:34:55', 51, '2025-07-04 11:34:55', 51, 1),
(35, 'HR', 'Manager,Executive officer', 'organisation', 38, '2025-07-05 06:09:45', 51, '2025-07-05 06:09:45', 51, 1),
(36, 'QCA', 'Manager', 'fpo', 54, '2025-07-09 09:36:29', 135, '2025-07-29 17:26:48', 135, 1);

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

--
-- Table structure for table `employee`
--

CREATE TABLE `employee` (
  `id` int(11) NOT NULL,
  `title` enum('Mr','Mrs','Ms') DEFAULT NULL,
  `first_name` varchar(30) DEFAULT NULL,
  `middle_name` varchar(30) DEFAULT NULL,
  `last_name` varchar(30) DEFAULT NULL,
  `employee_id` text DEFAULT NULL,
  `location` text DEFAULT NULL,
  `photo` text DEFAULT NULL,
  `Person_Photo` text DEFAULT NULL,
  `appointment_date` date DEFAULT NULL,
  `qualification` varchar(100) DEFAULT NULL,
  `experience_years` int(11) DEFAULT NULL,
  `experience_months` int(11) DEFAULT NULL,
  `designation` varchar(11) DEFAULT NULL,
  `skills` text DEFAULT NULL,
  `skill_distribution` int(11) DEFAULT NULL,
  `trainings` varchar(100) DEFAULT NULL,
  `documents` text DEFAULT NULL,
  `responsibilities` varchar(100) DEFAULT NULL,
  `reporting_authority_id` int(11) DEFAULT NULL,
  `email` text DEFAULT NULL,
  `password` text DEFAULT NULL,
  `remark` text DEFAULT NULL,
  `created_at` datetime DEFAULT current_timestamp(),
  `updated_at` datetime DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `status` int(11) DEFAULT 1,
  `associated_by` text DEFAULT NULL,
  `entity_id` int(11) DEFAULT NULL,
  `created_by` int(11) DEFAULT NULL,
  `updated_by` int(11) DEFAULT NULL,
  `department` varchar(100) DEFAULT NULL,
  `role` int(11) DEFAULT NULL,
  `ID_Number` varchar(255) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `employee`
--

INSERT INTO `employee` (`id`, `title`, `first_name`, `middle_name`, `last_name`, `employee_id`, `location`, `photo`, `Person_Photo`, `appointment_date`, `qualification`, `experience_years`, `experience_months`, `designation`, `skills`, `skill_distribution`, `trainings`, `documents`, `responsibilities`, `reporting_authority_id`, `email`, `password`, `remark`, `created_at`, `updated_at`, `status`, `associated_by`, `entity_id`, `created_by`, `updated_by`, `department`, `role`, `ID_Number`) VALUES
(22, 'Mr', 'tham', 'sel', 'sga', 'Employee-39_1', '{\"Corporate_Office\":null}', '[\"uploads\\/entity_profile\\/39\\/Employee\\/21\\/photos\\/1746790421_16b2de8de3ccfa971cf9.png\"]', 'uploads/entity_profile/39/Employee/21/Person_Photo//1746790421_d2ab32b72825391e4912.jpeg', '2025-05-08', 'sdasd', 15, 8, 'Manager', '{\"11\":[\"dfsd\",\"dfsdfsd\",\"sdfsdfsd\",\"dsfds\"]}', 11, 'dfss', '[{\"name\":\"st1\",\"date\":\"2025-05-08\",\"file\":\"uploads\\/entity_profile\\/39\\/Employee\\/21\\/documants\\/1746790421_2fea5fccbff26bd9ebab.pdf\"}]', 'dfsd', NULL, 'thamilone@gmail.com', '$2y$10$/0JCcnIcLFRw99VxHr6bxeyAF9ILe8nbBsJJ01BdZPJB/rQ7QbhNK', '   dfsf', '2025-05-09 11:33:41', '2025-05-30 13:07:55', 1, 'fpo', 33, 52, 45, 'Select department', 0, 'Employee-39_1'),
(23, 'Ms', 'Anita', '', 'Verma', 'Employee-43_3', '{\"Storage_Details\":[\"12\"]}', '[\"uploads\\/entity_profile\\/43\\/Employee\\/23\\/photos\\/1747488501_27a15cdf9107d2c03cd6.png\"]', 'uploads/entity_profile/43/Employee/23/Person_Photo//1747488501_8f1efc5e7f76d75530cb.png', '2025-05-01', '10th', 9, 7, 'Sorting Ope', '{\"12\":[\"Test\"]}', 0, 'FSMS', '[{\"name\":\"Test\",\"date\":\"2025-05-01\",\"file\":\"uploads\\/entity_profile\\/43\\/Employee\\/23\\/documants\\/1747488501_128c5ada6d2aab69c37b.pdf\"}]', 'Store Operator', NULL, 'anita@ga.com', '$2y$10$e7zOhasX.Mer4EQaJBYCteUa4ENO3AbSEaTCtmmFiyDk5sIMPjfRW', 'Test', '2025-05-17 13:28:21', '2025-05-30 13:07:55', 1, 'organisation', 43, 65, 65, '17', 23, 'Employee-43_3'),
(24, 'Mr', 'Ramesh', '', 'Kumar', 'Employee-43_4', '{\"Storage_Details\":[\"11\"]}', '[\"uploads\\/entity_profile\\/43\\/Employee\\/24\\/photos\\/1747488810_07d0be9f530a46461d60.png\"]', 'uploads/entity_profile/43/Employee/24/Person_Photo//1747488810_51fa189469329beccc85.png', '2025-05-01', '12th', 13, 10, 'Packing Sup', '{\"12\":[\"Test\"]}', 0, 'FSMS', '[{\"name\":\"Test3\",\"date\":\"2025-05-01\",\"file\":\"uploads\\/entity_profile\\/43\\/Employee\\/24\\/documants\\/1747488810_1494476f31c84a5de223.pdf\"}]', 'Packing Supervisor', NULL, 'ramesh@ga.com', '$2y$10$ojt1NROnprGerTI00Sg2IO97X4VGtZuFWWA4KPXWwzBqaM1uXOTCC', 'Test2', '2025-05-17 13:33:30', '2025-05-30 13:07:55', 1, 'organisation', 43, 65, 65, '18', 23, 'Employee-43_4'),
(25, 'Ms', 'Sunita', '', 'Das', 'Employee-43_5', '{\"Storage_Details\":[\"12\",\"13\"]}', '[\"uploads\\/entity_profile\\/43\\/Employee\\/25\\/photos\\/1747488964_653481a4fdd9d20ce146.jpg\"]', 'uploads/entity_profile/43/Employee/25/Person_Photo//1747488964_98f5848d5b6d4328ca78.png', '2025-05-15', 'BA', 12, 5, 'QC Assistan', '{\"12\":[\"Test\"]}', 0, 'Pending FSMS', '[{\"name\":\"Test\",\"date\":\"2025-05-15\",\"file\":\"uploads\\/entity_profile\\/43\\/Employee\\/25\\/documants\\/1747488964_62f04d87a633954e9e5e.pdf\"}]', 'Quality Control activities', 24, 'sunita@ga.com', '$2y$10$JFUDatNhskbVLaB3/8ykIuqP/f5haT/zKENOE4V8fVKQYaf21ojZm', 'Test', '2025-05-17 13:36:04', '2025-05-30 13:07:55', 1, 'organisation', 43, 65, 65, '16', 23, 'Employee-43_5'),
(26, 'Mr', 'Gopal', '', 'Rao', 'Employee-43_6', '{\"Storage_Details\":[\"13\"]}', '[\"uploads\\/entity_profile\\/43\\/Employee\\/26\\/photos\\/1747489096_1a5b7b49b01a50e725e1.png\"]', 'uploads/entity_profile/43/Employee/26/Person_Photo//1747489096_fe4133341842b2158b7b.jpg', '2025-04-25', 'Test', 3, 9, 'Storekeeper', '{\"12\":[\"Test\"]}', 0, 'FSMS', '[{\"name\":\"Testing\",\"date\":\"2025-04-24\",\"file\":\"uploads\\/entity_profile\\/43\\/Employee\\/26\\/documants\\/1747489096_f7b7570dd325cd21a674.pdf\"}]', 'Store Keeper', NULL, 'gopal@ga.com', '$2y$10$p1FoAXyGdc4Qs5d2VADD5eD2/DeXn2e3j9s76FligtdathHMCwnmy', 'Test5', '2025-05-17 13:38:16', '2025-05-30 13:07:55', 1, 'organisation', 43, 65, 65, '19', 23, 'Employee-43_6'),
(27, NULL, 'ramachandran', '', 'selvam', 'Employee-33_6', '[]', NULL, 'uploads/entity_profile/33/Employee/27/Person_Photo//1748364118_7b1a2fd2903d7a67a962.jpeg', '0000-00-00', '', NULL, NULL, NULL, '{\"19\":[\"fgfdg\",\"dfgdfgdf\",\"gdfgdf\",\"5656\"]}', 19, '', NULL, '', NULL, 'ramachandrantamil0sa06@gmail.com', '$2y$10$B78Ro029f5WEjdBUbrejDuDKFUdZaS4zohe5dxi/DY4qXOGWnXYOi', '', '2025-05-27 16:41:58', '2025-05-30 13:07:55', 1, 'fpo', 33, 45, 45, '', 25, 'Employee-33_6'),
(28, NULL, 'ramachandran ', '', 'selvam', 'Employee-45_7', '[]', NULL, 'uploads/entity_profile/45/Employee/28/Person_Photo//1748518697_1575ca9204ab333608f0.jpg', '0000-00-00', '', NULL, NULL, NULL, NULL, NULL, '', NULL, '', NULL, 'ramachanvbdrantamil007@gmail.com', '$2y$10$wtBx4jaSNx74dupHImw3YeBwqvifCfUeYbsBZ8HKvKz0iPROHtgQ2', '', '2025-05-29 11:38:17', '2025-05-30 13:07:55', 1, 'audit_company', 45, 73, 73, '', 29, 'Employee-45_7'),
(29, 'Mr', 'sdf', 'sdf', 'sdf', 'Employee-44_8', '[]', '[\"uploads\\/entity_profile\\/44\\/Employee\\/29\\/photos\\/1748844819_c9c8fea2760140034a21.jpg\"]', 'uploads/entity_profile/44/Employee/29/Person_Photo//1748844819_c985ed6435375658d6ca.jpg', '2025-06-02', 'dsf', 1, 1, 'hra', '{\"22\":[\"sdf\"]}', 22, 'qweqwe', '[{\"name\":\"wqe\",\"date\":\"2025-06-02\",\"file\":\"uploads\\/entity_profile\\/44\\/Employee\\/29\\/documants\\/1748844819_d202500a73da8449e4e7.pdf\"}]', 'qweqwe', 29, 'wqe@gmail.com', '$2y$10$5hFnhQOSykv1WYz9.5c57eRmAvLid6eOCWrWZYTo6HHxj9EwzF4wm', ' wqeq', '2025-06-02 06:13:39', '2025-06-02 06:18:14', 1, 'audit_company', 44, 72, 72, '20', 30, NULL),
(30, 'Mr', 'Shiva', '', '', 'Employee-48_9', '{\"Corporate_Office\":null}', NULL, 'uploads/entity_profile/48/Employee/30/Person_Photo//1748858013_81207575d6f27145e8b4.jpg', '0000-00-00', '', NULL, NULL, NULL, NULL, NULL, '', '[{\"name\":\"Agreement\",\"date\":\"2022-07-21\",\"file\":\"uploads\\/entity_profile\\/48\\/Employee\\/30\\/documants\\/1748858013_4fb4b1d406e296e1a981.pdf\"}]', '', NULL, 'shiva@abc.com', '$2y$10$o.sqfEz1izYsyFpmkCo8We7MMwpDv9gh2dG5UgGX.no0g.j3Sox02', '', '2025-06-02 09:53:33', '2025-06-02 09:53:33', 1, 'organisation', 48, 88, 88, '', 32, NULL),
(31, 'Mr', 'dfgh', 'fdg', 'dfg', 'Employee-49_10', '{\"Corporate_Office\":null}', '[\"uploads\\/entity_profile\\/49\\/Employee\\/31\\/photos\\/1748863738_b8d97efb963ca6d5b0cf.jpg\"]', 'uploads/entity_profile/49/Employee/31/Person_Photo//1748863738_42cd8ddcae8decd2b8c0.jpg', '2025-06-02', 'dfg', 1, 1, 'frontend', '{\"25\":[\"cvbcvb\",\"bvcb\"]}', 25, '345', '[{\"name\":\"qwe\",\"date\":\"2025-06-02\",\"file\":\"uploads\\/entity_profile\\/49\\/Employee\\/31\\/documants\\/1748863738_f233b08058424d306a2b.pdf\"}]', 'qwe', NULL, 'ewr@dd.com', '$2y$10$rZgtibpIwkeQGGvKVsv57./RpTMlzFvbGzktK/iEEP8U2zcR6xPVK', 'weq', '2025-06-02 11:28:58', '2025-06-02 16:58:58', 1, 'fpo', 49, 89, 89, '25', 33, NULL),
(32, 'Mr', 'Kannan', '', '', 'Employee-50_11', '[]', NULL, 'uploads/entity_profile/50/Employee/32/Person_Photo//1748871767_5e3a1c3b57cf9208b3fe.jpg', '0000-00-00', '', NULL, NULL, 'Executive', NULL, NULL, '', '[{\"name\":\"Agreement\",\"date\":\"2025-06-01\",\"file\":\"uploads\\/entity_profile\\/50\\/Employee\\/32\\/documants\\/1748871767_dbc47c2ea5b3f3a102b0.pdf\"}]', '', NULL, 'kannan@abc.com', '$2y$10$YK4.5u9/7J/wLoVk0sWbhejhXfz0NZYqhfVTFawlDJ.dxow.x4WUG', '', '2025-06-02 13:42:47', '2025-06-02 19:12:47', 1, 'audit_company', 50, 100, 100, '26', 34, NULL),
(33, 'Mr', 'Mithran', '', '', 'Employee-51_12', '{\"Corporate_Office\":null}', NULL, 'uploads/entity_profile/51/Employee/33/Person_Photo//1748872797_bc8bb490187a682ee36d.jpg', '0000-00-00', '', NULL, NULL, 'Executive', NULL, NULL, '', '[{\"name\":\"Agreement\",\"date\":\"2025-06-02\",\"file\":\"uploads\\/entity_profile\\/51\\/Employee\\/33\\/documants\\/1748872797_0fea7c7df4d5fe8a4f80.pdf\"}]', '', NULL, 'mithran@abc.com', '$2y$10$DVtJkFj9PvXAY.eZ3Eqd4OZK3t/XHvqoCKdOpdiddTWscRQg7K/qa', '', '2025-06-02 13:59:57', '2025-06-02 19:29:57', 1, 'organisation', 51, 107, 107, '27', 35, NULL),
(34, 'Mr', 'kathir', '', '', 'Employee-47_13', '{\"Corporate_Office\":null}', NULL, 'uploads/entity_profile/47/Employee/34/Person_Photo//1748875876_800ae5c0f682bf899602.jpg', '0000-00-00', '', NULL, NULL, 'Supervisor', NULL, NULL, '', '[{\"name\":\"Agreement\",\"date\":\"2025-06-02\",\"file\":\"uploads\\/entity_profile\\/47\\/Employee\\/34\\/documants\\/1748875876_a2cd75f35d95a7853811.pdf\"}]', '', NULL, 'kathir@abc.com', '$2y$10$kS3Zny0fmzSSlkysw0iJzu.gqANRg0Y9jkEgHOkgaiml3yKZL9/UG', '', '2025-06-02 14:51:16', '2025-06-02 20:21:16', 1, 'fpo', 47, 82, 82, '23', 31, NULL),
(35, NULL, 'ramachandran', '', 'selvam', 'Employee-45_14', '[]', NULL, 'uploads/entity_profile/45/Employee/35/Person_Photo//1748929459_b1dc1be09af1e55659bb.jpg', '0000-00-00', '', NULL, NULL, NULL, NULL, NULL, '', NULL, '', NULL, 'ramachandfdfdfrantamil006@gmail.com', '$2y$10$shS7ZTnjg7HmJ85kIvyDeOuIMNXAgZDtFskc1gLW56VsbBYOaapB.', '', '2025-06-03 05:44:19', '2025-06-03 05:44:19', 1, 'audit_company', 45, 73, 73, '', 36, NULL),
(36, 'Ms', 'Shashmika', '', '', 'Employee-47_15', '{\"Corporate_Office\":null}', NULL, 'uploads/entity_profile/47/Employee/36/Person_Photo//1749035158_41bf579413a445d765f1.avif', '0000-00-00', '', NULL, NULL, NULL, NULL, NULL, '', '[{\"name\":\"farming dta\",\"date\":\"2025-06-03\",\"file\":\"uploads\\/entity_profile\\/47\\/Employee\\/36\\/documants\\/1749035157_2109cfc9af650bb573a5.pdf\"}]', '', NULL, 'sashmika@abc.com', '$2y$10$azD15JJOUPdyFQqvH/M9Z.ecYCRrzX9Tlx8zu7hC27xoEn0yPFtsm', '', '2025-06-04 11:05:57', '2025-06-04 11:05:58', 1, 'fpo', 47, 82, 82, '', 31, NULL),
(37, 'Mr', 'TaAdmin', 'test', 'test', 'Employee-1_16', '{\"Corporate_Office\":null}', '[\"uploads\\/entity_profile\\/1\\/Employee\\/37\\/photos\\/1750147576_894bb74f31fd61235121.jpg\"]', 'uploads/entity_profile/1/Employee/37/Person_Photo//1750147576_072d6862bd4a86f60dd3.jpg', '0000-00-00', '', NULL, NULL, 'test', NULL, NULL, '', '[{\"name\":\"test\",\"date\":\"2025-06-17\",\"file\":\"uploads\\/entity_profile\\/1\\/Employee\\/37\\/documants\\/1750147576_7d50ddfc1fb1447da6ce.jpg\"}]', '', NULL, 'Test@taadmin.com', '$2y$10$zkNzLvTwb7cTKmlQOvGGVe2xTsOowxegx/j3JE7rRYKqoHr7.kCxW', '     ', '2025-06-17 08:06:16', '2025-06-18 16:02:09', 1, 'app_user', 1, 1, 1, '31', 40, NULL),
(38, 'Mr', 'Anji', 'Reddy', 'Durgampudi', 'Employee-38_17', '{\"factory_builidings\":[\"29\"]}', '[]', 'uploads/entity_profile/38/Employee/38/Person_Photo//1751953750_349d551f6c4125877f0f.jpg', '2025-07-01', 'BSC', 5, 3, 'Manager', '{\"36\":[\"Skilled in data analysis and use of quality tools (5S\",\"Six Sigma\",\"SPC\",\"Pareto\",\"Fishbone\",\"etc.)\"]}', 36, 'Testing', '[{\"name\":\"Good Agricultural Practices\",\"date\":\"2025-07-01\",\"file\":\"uploads\\/entity_profile\\/38\\/Employee\\/38\\/documants\\/1751953750_715e1ed4b2d52a39d8ce.pdf\"}]', 'NA', NULL, 'testing@gmail.com', '$2y$10$wAI19Kzi2vMxhbM6srBhgenyqUDR7N.F2vtFvB46osrjXrQqViguW', ' Na', '2025-07-08 05:49:10', '2025-07-28 12:21:44', 1, 'organisation', 38, 51, 51, '35', 41, NULL),
(39, 'Mr', 'Anji', 'Reddy', 'Durgampudi', 'Employee-54_18', '{\"Corporate_Office\":null}', '[]', 'uploads/entity_profile/54/Employee/39/Person_Photo//1752047310_13df45b24af711a3cbb6.jpg', '2025-07-01', 'BSC', 8, 4, 'Manager', '{\"34\":[\"test\"]}', 34, 'Testing', NULL, '', NULL, 'anji@gmail.com', '$2y$10$6TGCjdD.EfAEgTgLs8jYseW1HVtv.6SjTcaF1mytp7nnoUUjzrI0.', ' ', '2025-07-09 07:48:30', '2025-07-29 07:41:08', 1, 'fpo', 54, 135, 135, '33', 44, NULL),
(40, 'Mr', 'Anji', 'Reddy', 'Durgampudi', 'Employee-54_19', '{\"storage_details\":[\"19\"]}', '[]', 'uploads/entity_profile/54/Employee/40/Person_Photo//1752047845_545f961b462709a8b2da.jpg', '2025-07-01', 'BSC', 9, 3, 'Manager', '{\"34\":[\"test\"]}', 34, 'Testing', '[{\"name\":\"Good Agricultural Practices\",\"date\":\"2025-07-01\",\"file\":\"uploads\\/entity_profile\\/54\\/Employee\\/40\\/documants\\/1752047845_e9720c33380bb8c8a14c.pdf\"}]', '', 39, 'reddy@gmail.com', '$2y$10$Eb9UevfNLTK9aCG1VXJsiOdCDVor58gJtXtv7x6H7n8/F8KhqAFhe', ' ', '2025-07-09 07:57:25', '2025-07-29 07:41:01', 1, 'fpo', 54, 135, 135, '33', 44, NULL);

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

--
-- Table structure for table `entity_profiles`
--

CREATE TABLE `entity_profiles` (
  `id` int(11) NOT NULL,
  `establishment_name` varchar(50) DEFAULT NULL,
  `incorporation_date` date DEFAULT NULL,
  `registration_number` varchar(30) NOT NULL,
  `gstin_or_vat_id` varchar(15) DEFAULT NULL,
  `company_logo` varchar(255) DEFAULT NULL,
  `employer_income_tax_number` varchar(15) DEFAULT NULL,
  `Income_Tax_TAN_No` varchar(30) NOT NULL,
  `address_line1` varchar(50) NOT NULL,
  `address_line2` varchar(50) DEFAULT NULL,
  `village` varchar(30) DEFAULT NULL,
  `country` varchar(50) DEFAULT NULL,
  `state` varchar(50) DEFAULT NULL,
  `city` varchar(50) DEFAULT NULL,
  `pin_code` varchar(6) NOT NULL,
  `contact_mobile` varchar(10) DEFAULT NULL,
  `contact_fixedline` varchar(10) DEFAULT NULL,
  `email` varchar(50) NOT NULL,
  `password` varchar(255) NOT NULL,
  `Legal_identity` varchar(30) DEFAULT NULL,
  `user_type` enum('app_user','organisation','fpo','audit_company') NOT NULL,
  `created_at` datetime DEFAULT current_timestamp(),
  `updated_at` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `status` int(11) NOT NULL DEFAULT 0,
  `updated_by` int(11) DEFAULT NULL,
  `audo_id_gendrator` int(11) NOT NULL DEFAULT 0,
  `documents` text DEFAULT '[]'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `entity_profiles`
--

INSERT INTO `entity_profiles` (`id`, `establishment_name`, `incorporation_date`, `registration_number`, `gstin_or_vat_id`, `company_logo`, `employer_income_tax_number`, `Income_Tax_TAN_No`, `address_line1`, `address_line2`, `village`, `country`, `state`, `city`, `pin_code`, `contact_mobile`, `contact_fixedline`, `email`, `password`, `Legal_identity`, `user_type`, `created_at`, `updated_at`, `status`, `updated_by`, `audo_id_gendrator`, `documents`) VALUES
(1, 'Trace-Audit', '2025-05-16', '123ffg332', '1234455666', 'uploads/entity_profile/1/logo/1750065633_2794e2181d998473ca24.jpg', '1234545666', '', '3/420', 'bagavati street', 'fdfdfdf', 'India', 'Tamil Nadu', 'Chennai', '600100', '9566262691', '9566262691', 'super_admin@traceaudit.com', '$2y$10$qLg9VTrzssTn7OLmjM5U/OzmbB4KPyLDR9xgQ5qinZGwgzrX2WnYO', 'Partnership', 'app_user', '2025-05-08 11:22:48', '2025-06-17 14:38:18', 1, 1, 1, ''),
(33, 'rakesh_for', '2025-05-16', '123ffg332', '1234455666', 'uploads/entity_profile/33/logo/1746703368_7df28e1fe87adf0dc6f6.png', '1234545666', '', '3/420', 'bagavati street', 'fdfdfdf', 'Albania', 'Berat District', 'Bashkia Kuçovë', '600100', '9566262691', '9566262691', 'yazhitechtn@gmail.com', '$2y$10$wpBCIygLc7a.W1zzj0zGF.sinxi766kVMVbimJR7eZ4r09VLkxSlG', 'Partnership', 'fpo', '2025-05-08 11:22:48', '2025-06-02 09:14:50', 1, 45, 1, ''),
(35, 'SAN RnD', '2000-12-12', 'UAN1234566', '33ABCD2390381ZR', 'uploads/entity_profile/35/logo/1746723340_3bf080712395f86ddf59.jpg', 'TANO9ETUNDN', '', 'Test', '', 'Village', 'India', 'Tamil Nadu', 'Chennai', '634657', '4478654345', '0987654123', 'test@myoffice.com', '$2y$10$kDrbLYfgmIj79QjzN3FOEOhkeGN3.v5aJvhDfvZTnmC5EoVrAriGe', NULL, 'organisation', '2025-05-08 16:55:40', '2025-06-14 08:15:28', 0, NULL, 0, ''),
(36, 'SAN RnD', '2020-06-16', 'URN123458e8', '33ABCD2390381ZR', 'uploads/entity_profile/36/logo/1746723463_2c1c87a41d083639617d.jpg', 'TANO9ETUNDN', '', 'Test', '', 'Village', 'India', 'Tamil Nadu', 'Chennai', '786543', '9840352595', '9840352595', 'hari@highbrowdiligence.com', '$2y$10$fJlLT5pW04i05h5TX.nfNO4a5Y28e9RjTbknICLzCpEzvs1UpvV.y', NULL, 'organisation', '2025-05-08 16:57:43', '2025-05-16 10:00:46', 1, NULL, 1, ''),
(37, 'Rama', '2025-05-22', 'Nfnff', 'Ndndnd', 'uploads/entity_profile/37/logo/1746723806_17094513a6a058a63df9.jpg', 'Ndndnd', '', '4/242,tneb colony,ambethkar street,ponmar', 'டன்ஹப் கோலோனி, அம்பேத்கர் ஸ்ட்ரீட்', 'Bfnffn', 'Algeria', 'Aïn Defla Province', 'El Attaf', '600127', '9360135395', '9360135395', 'forsong007@gmail.com', '$2y$10$9RXrS882Vz6y74jKIiaU2OB2fvHZNTOYX.oWwc1a.1kw5SzRl1IFu', 'Public Company', 'organisation', '2025-05-08 17:03:26', '2025-06-03 11:19:51', 1, 49, 1, ''),
(38, 'Krishigap Digital Solutions Pvt ltd', '2023-01-01', 'U62013TS2023PTC172865', '12587858523', 'uploads/entity_profile/38/logo/1746766292_c9016b5752f52a331087.jpg', 'AD125874', '', 'House No 5-106/281B, Narsing Municipality ', 'Manchirevula ', 'Manchirevula ', 'India', 'Telangana', 'Hyderābād', '500075', '9010466610', '9010466610', 'anjireddy@efreshglobal.com', '$2y$10$RAR1CNgSZFK.jTtqZjPcnO3zc5T5RAgonc/kKTO6AsufZbn51cL8m', NULL, 'organisation', '2025-05-09 04:51:32', '2025-07-05 04:31:12', 1, NULL, 1, '[{\"name\":\"\",\"date\":\"\",\"file\":\"\"}]'),
(39, 'Native Sparrow Software Solutions', '2021-01-09', '12345', 'gst3456728', 'uploads/entity_profile/39/logo/1746770451_e48427fbc0b843a61678.jpg', 'thamilselvan', '', 'Ram nagar 5 th street', 'velachery', 'velachery', 'India', 'Tamil Nadu', 'Madurai', '600042', '9677770552', '9677770552', 'thamilselvan2005@gmail.com', '$2y$10$QHCy8wg2S5Rhm7pbYtlq5.qbcdSVgignoh1WQL6/PpbEfCwwQNcvq', 'Private Limited', 'organisation', '2025-05-09 06:00:51', '2025-05-09 06:36:16', 1, 52, 1, ''),
(40, 'techno', '2025-01-02', '52226,26262626', 'nfkwganbklbe', 'uploads/entity_profile/40/logo/1746781879_76c4eeb7b3a389748c85.jpg', '485948843', '', '667', 'gggwg', 'wgwgwgwg', 'India', 'Puducherry', 'Mahe', '789000', '6690708080', '2262626266', 'krish45@rediffmail.com', '$2y$10$UPbx8zN8apX6zGr0Pm10x.wdxrx1uhl1ObZ8XbEquRhsevMhlB68C', NULL, 'organisation', '2025-05-09 09:11:19', '2025-05-09 09:11:47', 1, NULL, 0, ''),
(41, 'test', '2025-05-16', 'qw233344', 'rew111111111', 'uploads/entity_profile/41/logo/1747385308_0cd32f273ddfdb8348ff.png', '111122ssss', '', '128 , Ayyar street, venmani village , Polur, 60680', 'Near to Oxford school', 'qqqq', 'India', 'Tamil Nadu', 'Chennai', '606803', '8531075313', '8531075313', 'silambarasandp12@gmail.com', '$2y$10$jSchbfUmTkSeNVOIC92TSOoPDFWepqFds.gnidswAiBYch7GZ4KRa', NULL, 'organisation', '2025-05-16 08:48:28', '2025-06-14 08:15:25', 0, NULL, 0, ''),
(42, 'Jv', '2025-05-16', '123456', '7894561230', 'uploads/entity_profile/42/logo/1747385669_7c15e9090ab991ac8939.jpg', '9876543210', '', '1 , floor , newway colony,', 'Main area', 'village', 'India', 'Tamil Nadu', 'Erode', '123456', '9876543210', '7894561230', 'jv@gmail.com', '$2y$10$6WNge21yEw122SfjqBHWW.br2p/yDZweczGc9AsstQtyjaKPBlVUa', NULL, 'organisation', '2025-05-16 08:54:29', '2025-06-14 08:32:01', 1, NULL, 0, ''),
(43, 'FreshHarvest Agro Foods Pvt. Ltd.', '2025-12-01', 'FHAFPT123456', '33ABCD2390381ZR', 'uploads/entity_profile/43/logo/1747390059_1804665005ea93e6171c.png', 'TL1234567', '', 'Plot No. 45, Agri Industrial Zone, Hyderabad, Indi', '', 'Hyderabad', 'India', 'Telangana', 'Hyderābād', '546378', '9988776655', '9988776655', 'hkmadhavan@gmail.com', '$2y$10$tsJgEOPSHEGbSo9DShI95OOSndq/9rDyy/GslLCTTU6086.VumQq6', NULL, 'organisation', '2025-05-16 10:07:39', '2025-05-16 10:21:06', 1, NULL, 1, ''),
(44, 'dheena', '2025-05-22', '5487465444', 'werwe85554', 'uploads/entity_profile/44/logo/1747829071_6509df7b06e1d9353d31.jpg', 'wer8545454', '', '272, Vishnu Flats', '1st main road, engineer\'s avanue,  S kolatur', 'defsdf', 'India', 'Tamil Nadu', 'Chengam', '600117', '7871391394', '7871391394', 'dheena1992@gmail.com', '$2y$10$xlhUz7EYiUgFSIzppxmQlOVVN4zQwxBAerT7CxQg/JptTUhV7cxkq', '', 'audit_company', '2025-05-21 12:04:31', '2025-06-14 08:31:56', 1, 72, 1, ''),
(45, 'rakesh_fortdfdfdf', '2025-05-08', '123ffg332', '1234455666', 'uploads/entity_profile/45/logo/1747992022_c05a6c42df516aa0fce2.png', '1234545666', '', '3/420', 'bagavati street', 'fdfdfdf', 'Albania', 'Berat District', 'Bashkia Kuçovë', '600100', '9566262691', '9566262691', 'ramachandrantamil001@gmail.com', '$2y$10$luxoQHZYAEHQr.KcLuv3iObzSKsLHUIKgufhZJxb88LJSefSWId2O', '', 'audit_company', '2025-05-23 09:20:22', '2025-06-03 11:21:54', 1, 73, 1, ''),
(46, 'ramachandran@webverkz.com', '2025-05-01', '123ffg332', '1234455666', 'uploads/entity_profile/46/logo/1748602044_212979ddfa3a9ef178b4.jpeg', '1234545666', '', '3/420', 'bagavati street', 'fdfdfdf', 'Albania', 'Berat District', 'Bashkia Berat', '600100', '9566262691', '9566262691', 'ramachandran@webverkz.com', '$2y$10$5xOezMTtT0gGcVgoUtU5KetKfBYuVjbvZclH6rCC5otrFVksgJw4e', NULL, 'organisation', '2025-05-30 10:47:24', '2025-05-30 10:47:41', 1, NULL, 0, ''),
(47, 'Diligence Company', '2025-06-02', '12345', '1234567890', 'uploads/entity_profile/47/logo/1748844525_066c49f04f82538256fb.jpg', '12345', '', '42, 12th street', 'Valmigi nagar, Thiruvanmiyur', 'Chennai', 'India', 'Tamil Nadu', 'Chennai', '600041', '7358779925', '0441234567', 'annapurani@highbrowdiligence.com', '$2y$10$l3ifkG9cED5eywtElrcXZeoDoBWoMxGnUwiBYMagDhK8pSn4SSECO', NULL, 'fpo', '2025-06-02 06:08:45', '2025-06-02 08:28:40', 1, NULL, 1, ''),
(48, 'Highbrow Company', '2025-01-29', '12345678', '1234567890', 'uploads/entity_profile/48/logo/1748853426_92b9af0cf07398e99e60.jpg', '12345', '', '12,', 'Kumaran nagar,', 'Chennai', 'India', 'Tamil Nadu', 'Chennai', '600049', '1234567890', '0441234567', 'rahithyapoorani09@gmail.com', '$2y$10$NWTPzcrWhFcllV8xz4PstufVHx78i4z6WWTYg5nZD9bPK0IS8s3XO', NULL, 'organisation', '2025-06-02 08:37:06', '2025-06-02 08:39:07', 1, NULL, 1, ''),
(49, 'dfdsf', '2025-06-01', '123457890', '58556946545', 'uploads/entity_profile/49/logo/1748857337_eeb33f4c99395239ec44.jpg', 'wer8545454', '', '272, Vishnu Flats', '1st main road, engineer\'s avanue,  S kolatur', 'sdf', 'India', 'Tamil Nadu', 'Chennai', '600117', '7871391394', '1234567890', 'quxuzonu@cyclelove.cc', '$2y$10$RtjPxlHFdACXXsA5Q3sWIeEZdTBKebN9XLzV.a0VtmWB0ZBf3LkFO', NULL, 'fpo', '2025-06-02 09:42:17', '2025-06-14 09:40:02', 1, NULL, 1, ''),
(50, 'Limited Company', '2025-01-13', '12345678', '1234567890', 'uploads/entity_profile/50/logo/1748863932_adbf395c9d48f5bcd09a.jpg', '12345', '', '78', '45th street, saravana nagar', 'Chennai', 'India', 'Tamil Nadu', 'Chennai', '600010', '1234567890', '0441234567', 'suja@highbrowdiligence.com', '$2y$10$rrOyW3iiH9dSEHOerTZ3re0igbQuXaamOexcir/.JXkZ/TU5xuYE.', NULL, 'audit_company', '2025-06-02 11:32:12', '2025-06-02 13:41:47', 1, NULL, 1, ''),
(51, 'Private Company', '2025-01-20', '12345678', '1234567890', 'uploads/entity_profile/51/logo/1748872332_95b54ec5aa16efcf58fa.jpg', '12345', '', '78, 56th street', 'Sidco Nagar', 'Chennai', 'India', 'Tamil Nadu', 'Chennai', '600049', '1234567890', '0441234567', 'mrskumar2023@gmail.com', '$2y$10$Kr/q/YA6YHtqcnPY1YtlGOrMAHZuiVqzKUELrSo2frC9.l02sbupe', NULL, 'organisation', '2025-06-02 13:52:12', '2025-06-02 13:54:00', 1, NULL, 1, ''),
(52, 'test', '2025-06-10', 'qw233344', 'rew111111111', 'uploads/entity_profile/52/logo/1749532683_6708d1c3615176efcd70.png', '111122ssss', '', '128 , Ayyar street, venmani village , Polur, 60680', 'Near to Oxford school', 'qqqq', 'India', 'Andaman and Nicobar Islands', 'Bamboo Flat', '606803', '8531075313', '8531075313', 'fejomey610@linacit.com', '$2y$10$VI2SIFOG1pZxbYdMo5/Lzebk8wqLwty9QYeeLh4TzHejdbq23D6aG', NULL, 'organisation', '2025-06-10 05:18:03', '2025-06-10 05:19:11', 1, NULL, 0, ''),
(53, 'Krishigap Digital Solutions Pvt ltd', '2022-12-01', 'anjireddy2010@hotmail.com', '125878585252', 'uploads/entity_profile/53/logo/1749540279_a4b4911db88888677548.png', 'AD125874', '', 'House No 5-106/281B, Narsing Municipality ', 'Manchirevula ', 'Manchirevula ', 'India', 'Telangana', 'Hyderābād', '500075', '9010466610', '9010466610', 'anjireddy2010@hotmail.com', '$2y$10$Qw6nEcZ1eu5A59Ldx.o4yOiTlZLysL7QlEGBsjLP4CWWnZCVKWsVm', NULL, 'fpo', '2025-06-10 07:24:39', '2025-06-14 08:15:19', 0, NULL, 0, ''),
(54, 'Krishigap Digital Solutions Pvt ltd', '2022-12-01', '12512585', '125878585252', 'uploads/entity_profile/54/logo/1749541484_e5297c7e1a865c11d7f0.png', 'AD125874', '', 'House No 5-106/281B, Narsing Municipality ', 'Manchirevula ', 'Manchirevula ', 'India', 'Telangana', 'Hyderābād', '500075', '9010466610', '9010466610', 'reddy.anji2010@gmail.com', '$2y$10$GM/dHrCptFfq5OrqlHN8eOJkHwAUu/rF063g6ip6X4epsAw39jhY.', NULL, 'fpo', '2025-06-10 07:44:44', '2025-08-12 09:48:15', 1, NULL, 1, '[{\"name\":\"\",\"date\":\"\",\"file\":\"\"}]'),
(57, '12334444', '2025-06-16', '12334444', '123ggggg', 'uploads/entity_profile/57/logo/1750059211_cb29eb6d48789fa2d521.jpg', '1234ffff', '1234ffff', '123', '123', '', 'India', 'Tamil Nadu', 'Chennai', '632009', '9786706042', '', 'Test@entity.com', '$2y$10$641eqgQuV7wxRt1vLUgPVefvyfbdAXmO.pgDf32JZKcLnTlXZ.k/C', NULL, 'audit_company', '2025-06-16 07:33:31', '2025-06-18 10:01:00', 0, NULL, 0, ''),
(58, 'TestFPO', '2025-06-17', '12334444', 'qqqqqqw123', 'uploads/entity_profile/58/logo/1750142644_215b5ae2c5cb20494401.jpg', '1234ffff', '', '123', '123', 'test', 'India', 'Tamil Nadu', 'Chetput', '632009', '9786706043', '9786706043', 'tigaji4483@hosliy.com', '$2y$10$HToLnXtrMtrV3ElQ7Pgcr.4Pw.fZoWuXTDELQVUS9lVaqJW65GX92', NULL, 'fpo', '2025-06-17 06:44:04', '2025-06-17 06:44:33', 1, NULL, 0, ''),
(59, '12334444', '2025-06-17', '12334444', 'qqqqqqw123', 'uploads/entity_profile/59/logo/1750242678_87a8dac579128ed5b0e8.jpg', '1234ffff', '', '123', '123', 'test', 'Afghanistan', 'Badakhshan', 'Ashkāsham', '632009', '9786706043', '9786706043', 'silam.hds@gmail.com', '$2y$10$MqLuwA7mwgm.zsgNQtH3pe5n4femM1zUYN3pJ8XVEc.DPa6ohvTky', NULL, 'organisation', '2025-06-18 10:31:18', '2025-06-18 10:38:00', 1, NULL, 0, ''),
(60, '12334444', '2025-06-18', 'silam.hds@gmail.com', 'qqqqqqw123', 'uploads/entity_profile/60/logo/1750243258_0c4c2b1a5a4c7841f792.jpg', '1234ffff', '', '123', '123', 'test', 'India', 'Tamil Nadu', 'Polūr', '632009', '9786706043', '9786706043', 'silam.hds@gmail.com', '$2y$10$i5QvZicWhyc5VI04Ts2ajOvs5UKM0hc7hhE/sd.2H57SqiyOQJgMK', '', 'fpo', '2025-06-18 10:40:58', '2025-07-02 11:18:51', 1, 60, 0, '[{\"name\":\"test\",\"date\":\"2025-07-02\",\"file\":\"uploads\\/entity_profile\\/60\\/documants\\/1751455113_fa053dbc87a5e12e17cc.png\"},{\"name\":\"tests\",\"date\":\"2025-07-02\",\"file\":\"uploads\\/entity_profile\\/60\\/documants\\/1751455113_38aa345ae7f52f3f8f86.png\"}]'),
(61, '12334444', '2025-06-18', 'silam.hds@gmail.com', 'qqqqqqw123', 'uploads/entity_profile/61/logo/1750243424_6f7b0f0101a637cb362a.jpg', '1234ffff', 'test', '123', '123', 'test', 'Afghanistan', 'Badakhshan', 'Ashkāsham', '632009', '9786706043', '9786706043', 'silam.hds@gmail.com', '$2y$10$BuFLVJshcB9ubjSJfRopbu1Lw5o6R.WyZvXYDpHFcZuKApyk9tcZ6', '', 'audit_company', '2025-06-18 10:43:44', '2025-07-02 11:07:13', 1, 61, 0, '[{\"name\":\"test\",\"date\":\"2025-07-02\",\"file\":\"uploads\\/entity_profile\\/61\\/documants\\/1751453514_f0bedf5710960b250135.png\"},{\"name\":\"tests\",\"date\":\"2025-07-02\",\"file\":\"uploads\\/entity_profile\\/61\\/documants\\/1751453514_d91e9b771d447bbed6e5.png\"},{\"name\":\"test\",\"date\":\"2025-07-02\",\"file\":\"uploads\\/entity_profile\\/61\\/documants\\/1751454413_31f71b4d16e4b2682c36.png\"}]'),
(62, '12334444', '2025-06-19', 'super_admin@traceaudit.com', 'qqqqqqw123', 'uploads/entity_profile/62/logo/1750337596_977bbe68f1d78d19586e.jpg', '1234ffff', 'test', '123', '123', 'test', 'Afghanistan', 'Badakhshan', 'Ashkāsham', '632009', '9786706043', '9786706043', 'Test@entitytest.com', '$2y$10$Ddt1Z/z0.jGNEHjq6tngNeTas1IuvGIBGNrw0mkcym.oGoXNm6UCu', NULL, 'organisation', '2025-06-19 12:53:16', '2025-06-19 12:53:16', 0, NULL, 0, ''),
(63, 'Krishigap Digital Solutions Pvt ltd', '2025-01-01', 'anjireddy@efreshglobal.com', '12587858523', 'uploads/entity_profile/63/logo/1750740448_fd7857646530363e3c10.png', 'AD125874', 'axrpd6240r', 'Survey No. 45, Near NH-563,', 'Hyderabad', 'Manchirevula ', 'India', 'Telangana', 'Hyderābād', '500070', '9010466610', '9010466610', 'anjireddy@efreshglobal.com', '$2y$10$ZZxR4E7zPw84L9YRreSTveDbhHYUZBpi8BUzaRwfc/BurG0OtH5V6', NULL, 'audit_company', '2025-06-24 04:47:28', '2025-08-01 10:43:05', 1, NULL, 0, ''),
(64, 'rajarajan', '2025-07-14', '123ffg332', '1234455666', 'uploads/entity_profile/64/logo/1752732959_2264b331bd76b15f15b4.jpg', '1234545666', '1234', '4/242,tneb colony,ambethkar street,ponmar', 'bagavati street', 'fdfdfdf', 'India', 'Tamil Nadu', 'Chetput', '600127', '9566262691', '9566262691', 'ramachandrantamil007@gmail.com', '$2y$10$99FfWq3WHkaPxbqKzNuEHuWGqHMPY7NXyzM.SyQtMnJjkCBLnXPDq', NULL, 'fpo', '2025-07-17 06:15:59', '2025-07-29 07:08:28', 1, NULL, 1, '[]'),
(65, 'ydfdsf', '2025-07-06', '3213213213123', '1234455666', 'uploads/entity_profile/65/logo/1753772856_68011c815221fa4f295e.jpg', '1234545666', '1234', '4/242,tneb colony,ambethkar street,ponmar', 'Vijayanagaram', 'fdfdfdf', 'India', 'Tamil Nadu', 'Chengam', '600127', '9360135395', '9360135395', 'ramachandrantamil006@gmail.com', '$2y$10$qCyE6amCAjfy1AI0v5uk2um7/kvoILTHfUOdYoIK.6cONQWMz.gHi', NULL, 'organisation', '2025-07-29 07:07:36', '2025-07-29 07:07:36', 0, NULL, 0, '[]');

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

--
-- Table structure for table `factory_builidings`
--

CREATE TABLE `factory_builidings` (
  `id` int(11) NOT NULL,
  `name` varchar(30) NOT NULL,
  `building_id` varchar(30) NOT NULL,
  `photo` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL,
  `location` text NOT NULL,
  `location_lat` text DEFAULT NULL,
  `location_long` text DEFAULT NULL,
  `fact_address1` varchar(50) NOT NULL,
  `fact_address2` varchar(50) DEFAULT NULL,
  `fact_village` varchar(30) DEFAULT NULL,
  `fact_country` varchar(100) DEFAULT NULL,
  `fact_state` varchar(100) DEFAULT NULL,
  `fact_city` varchar(100) DEFAULT NULL,
  `fact_pin_code` varchar(6) NOT NULL,
  `ownership` enum('Own','Leasehold') DEFAULT NULL,
  `number_of_years_leasehold` int(11) DEFAULT NULL,
  `structure_type` text DEFAULT NULL,
  `area` float DEFAULT NULL,
  `product_wise_activities` varchar(250) DEFAULT NULL,
  `process_flow_files` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL,
  `Responsible_Person_Name` text DEFAULT NULL,
  `Designation` text DEFAULT NULL,
  `Contact_Number` varchar(15) DEFAULT NULL,
  `remark` text DEFAULT NULL,
  `status` int(11) NOT NULL DEFAULT 1,
  `created_at` datetime DEFAULT current_timestamp(),
  `updated_at` datetime DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `created_by` int(11) DEFAULT NULL,
  `updated_by` int(11) DEFAULT NULL,
  `associated_by` text DEFAULT NULL,
  `entity_id` int(11) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `factory_builidings`
--

INSERT INTO `factory_builidings` (`id`, `name`, `building_id`, `photo`, `location`, `location_lat`, `location_long`, `fact_address1`, `fact_address2`, `fact_village`, `fact_country`, `fact_state`, `fact_city`, `fact_pin_code`, `ownership`, `number_of_years_leasehold`, `structure_type`, `area`, `product_wise_activities`, `process_flow_files`, `Responsible_Person_Name`, `Designation`, `Contact_Number`, `remark`, `status`, `created_at`, `updated_at`, `created_by`, `updated_by`, `associated_by`, `entity_id`) VALUES
(9, 'ramachandran selvam', 'BUILDING', '[\"uploads/entity_profile/15/Factory_buildings/9/photos/1744943458_3973ce0d4c1b78066a07.png\", \"uploads/entity_profile/15/Factory_buildings/9/photos/1744943458_97d026d7531734e36269.png\", \"uploads/entity_profile/15/Factory_buildings/9/photos/1744943458_a4371c4c82b37cdfa867.png\"]', '', '32.30000000', '34.32000000', 'chennai', 'tamil nadu', 'kjlkjldsf', 'Albania', 'Berat District', 'Bashkia Poliçan', '600100', 'Own', NULL, 'Makeshift (Asbestos/Lightroofing)', 333, '\r\nfdfds\r\n                             ', '[{\"date\": \"2025-04-22\", \"file\": \"uploads/entity_profile/15/Factory_buildings/9/process_flow_files/1744943458_e581201d3cadb7712958.jpg\", \"name\": \"trtret\"}, {\"date\": \"2025-04-21\", \"file\": \"uploads/entity_profile/15/Factory_buildings/9/process_flow_files/1744943458_fd14437ec253e0a2bd5c.jpg\", \"name\": \"fdsf\"}]', '3434', 'dsdsdsd', '2147483647', '\r\ndfsfds\r\n                             ', 1, '2025-04-18 02:30:58', '2025-04-19 06:35:47', 1, 1, 'organisation', 15),
(10, 'new building', 'BUILDING', '[\"uploads/entity_profile/15/Factory_buildings/10/photos/1744988039_c411916d7c28114da0bc.png\", \"uploads/entity_profile/15/Factory_buildings/10/photos/1744987956_d7055bc98dfd42907a85.jpg\", \"uploads/entity_profile/15/Factory_buildings/10/photos/1744953192_bffaffa26494ede1d6a5.png\", \"uploads/entity_profile/15/Factory_buildings/10/photos/1744953192_71a27db8491a54484d43.jpg\"]', '', '12.55300000', '21.44320000', 'chennai', 'tamil nadu', 'medavakkam ', 'Albania', 'Berat District', 'Bashkia Poliçan', '600100', 'Own', NULL, 'Makeshift (Asbestos/Lightroofing)', 3434, '34343\r\n\r\n                             ', '[{\"date\": \"2025-04-21\", \"file\": \"uploads/entity_profile/15/Factory_buildings/10/process_flow_files/1744988039_630bfe6ea09ca3238d18.webp\", \"name\": \"old_documant_new_updated\"}, {\"date\": \"2025-04-13\", \"file\": \"uploads/entity_profile/15/Factory_buildings/10/process_flow_files/1744953192_28f9e4ddc38ca09423a8.jpg\", \"name\": \"343434\"}, {\"date\": \"2025-04-14\", \"file\": \"uploads/entity_profile/15/Factory_buildings/10/process_flow_files1744987956_3d86127c103968e0451d.jpg\", \"name\": \"wqeqwe\"}]', '434', '3434', '34343', '343434\r\n                             ', 1, '2025-04-18 05:13:12', '2025-04-18 20:23:59', 1, 1, 'organisation', 15),
(11, 'ramachandranWs selvam', '', NULL, '', '34.00000000', '34.00000000', '', NULL, NULL, NULL, NULL, NULL, '', 'Own', NULL, NULL, NULL, NULL, NULL, '3434', '4343', '2147483647', 'rere\r\n\r\n                             ', 0, '2025-04-21 10:19:04', '2025-04-30 21:26:29', 1, 15, 'organisation', 15),
(12, 'fgfdgdfgfd', 'BUILDING-15_4', '[\"uploads/entity_profile/15/Factory_buildings/12/photos/1746004978_0ad930247816d7968bee.jpg\"]', '', '22', '2', 'dkfdsjkjk', 'tamil nadu', '3245435', 'Albania', 'Berat District', 'Bashkia Poliçan', '600100', 'Own', NULL, 'Makeshift (Asbestos/Lightroofing)', 4545, '\r\ndfsdfds\r\n                             ', '[{\"date\": \"2025-04-15\", \"file\": \"uploads/entity_profile/15/Factory_buildings/12/process_flow_files/1746004978_d5b1b48341ae7110f101.jpg\", \"name\": \"dfdsfsdf\"}]', '3434', ' dfdsfds', '2147483647', '\r\nfsdfsdfsd\r\n                             ', 0, '2025-04-30 09:22:58', '2025-04-30 21:26:54', 15, 15, 'organisation', 15),
(13, 'stsone', 'BUILDING-19_5', NULL, '', '23', '25', '20 soma sundram', 'villapuram', 'madurai', 'India', 'Tamil Nadu', 'Madurai', '625002', 'Own', NULL, 'Makeshift (Asbestos/Lightroofing)', 2500, 'sfds\r\n\r\n                             ', '[{\"date\": \"2025-05-02\", \"file\": \"uploads/entity_profile/19/Factory_buildings/13/process_flow_files/1746005329_04b55a346f5d1b4353ed.png\", \"name\": \"d2\"}]', 'thamil', 'manager', '2147483647', 'dfsd\r\n\r\n                             ', 1, '2025-04-30 09:28:49', '2025-04-30 09:28:49', 8, 8, 'organisation', 19),
(15, 'ramachandran selvam', 'BUILDING-15_6', NULL, '', '2', '22', 'chennai', 'tamil nadu', '3245435', 'Albania', 'Berat District', 'Bashkia Poliçan', '600100', 'Own', NULL, 'Permanent (Brick & Steel)', 34, 'sdfdsf\r\n\r\n                             ', '[{\"date\": \"2025-04-16\", \"file\": \"uploads/entity_profile/15/Factory_buildings/15/process_flow_files/1746005766_5b8049621b5bcc971846.jpg\", \"name\": \"d2\"}]', '3r', '4343', '2147483647', 'sdfdsfds\r\n\r\n                             ', 1, '2025-04-30 09:36:06', '2025-04-30 09:36:06', 15, 15, 'organisation', 15),
(16, 'ramachandran selvam', 'BUILDING-15_6', NULL, '', '2', '22', 'chennai', 'tamil nadu', '3245435', 'Albania', 'Berat District', 'Bashkia Poliçan', '600100', 'Own', NULL, 'Permanent (Brick & Steel)', 34, 'sdfdsf\r\n\r\n                             ', '[{\"date\": \"2025-04-16\", \"file\": \"uploads/entity_profile/15/Factory_buildings/16/process_flow_files/1746005887_cd40b98059c023013ce3.jpg\", \"name\": \"d2\"}]', '3r', '4343', '2147483647', 'sdfdsfds\r\n\r\n                             ', 1, '2025-04-30 09:38:07', '2025-04-30 09:38:07', 15, 15, 'organisation', 15),
(17, 'ramachandran selvam', 'BUILDING-15_6', NULL, '', '2', '22', 'chennai', 'tamil nadu', '3245435', 'Albania', 'Berat District', 'Bashkia Poliçan', '600100', 'Own', NULL, 'Permanent (Brick & Steel)', 34, 'sdfdsf\r\n\r\n                             ', '[{\"date\": \"2025-04-16\", \"file\": \"uploads/entity_profile/15/Factory_buildings/17/process_flow_files/1746005912_305b38e650d464e9ffb3.jpg\", \"name\": \"d2\"}]', '3r', '4343', '2147483647', 'sdfdsfds\r\n\r\n                             ', 1, '2025-04-30 09:38:32', '2025-04-30 09:38:32', 15, 15, 'organisation', 15),
(18, 'ramachandran selvam', 'BUILDING-15_6', '[\"uploads/entity_profile/15/Factory_buildings/18/photos/1746010646_631fc714ab8b115c5dea.jpg\"]', '', '2', '22', 'chennai', 'tamil nadu', '3245435', 'Albania', 'Berat District', 'Bashkia Poliçan', '600100', 'Own', NULL, 'Permanent (Brick & Steel)', 34, 'sdfdsf\r\n\r\n                             ', '[{\"date\": \"2025-04-22\", \"file\": \"uploads/entity_profile/15/Factory_buildings/18/process_flow_files/1746006095_f8e0fd42d609f5995998.jpg\", \"name\": \"d1\"}, {\"date\": \"2025-04-16\", \"file\": \"uploads/entity_profile/15/Factory_buildings/18/process_flow_files/1746006095_eab6c1f1dd28a807ccdb.jpg\", \"name\": \"d2\"}]', '3r', '4343', '2147483647', 'sdfdsfds\r\n\r\n                             ', 1, '2025-04-30 09:41:35', '2025-04-30 16:27:26', 15, 15, 'organisation', 15),
(19, 'Factory1', 'BUILDING-23_10', '[\"uploads/entity_profile/23/Factory_buildings/19/photos/1746023779_ddffc882efacf969be42.jpg\"]', '', '89.999998', '26.7777', '12', 'Just', 'Village', 'India', 'Tamil Nadu', 'Chennai', '512345', 'Own', NULL, 'Makeshift (Asbestos/Lightroofing)', 2000, '\r\nAll products manufacturers\r\n                             ', '[{\"date\": \"2020-12-13\", \"file\": \"uploads/entity_profile/23/Factory_buildings/19/process_flow_files/1746023779_ebd1aa6047be4c3ff7da.pdf\", \"name\": \"FactorDocument\"}]', 'Santhosh', 'Test', '2147483647', 'All remarks entered here\r\n\r\n                             ', 1, '2025-04-30 14:36:19', '2025-04-30 14:36:19', 20, 20, 'organisation', 23),
(20, 'ramachandran selvam', 'BUILDING-15_11', '[\"uploads/entity_profile/15/Factory_buildings/20/photos/1746161757_5787d864bb45c95508bf.jpg\"]', '', '12', '12', 'chennai', 'tamil nadu', '3245435', 'Albania', 'Berat District', 'Bashkia Poliçan', '600100', 'Leasehold', 32, 'Makeshift (Asbestos/Lightroofing)', 44, 'fsdfds', '[{\"date\": \"2025-05-13\", \"file\": \"uploads/entity_profile/15/Factory_buildings/20/process_flow_files/1746161757_f6b0b0ae38cab8af7853.jpg\", \"name\": \"old_documant\"}]', 'wewe', 'dsdsdsd', '2147483647', 'fsdfsdfsdf', 1, '2025-05-02 04:55:57', '2025-05-02 10:38:43', 15, 15, 'organisation', 15),
(21, 'ramachandran selvam', 'BUILDING-15_11', '[\"uploads/entity_profile/15/Factory_buildings/21/photos/1746161782_49afcba6e4db532a7df9.jpg\"]', '', '12', '12', 'chennai', 'tamil nadu', '3245435', 'Albania', 'Berat District', 'Bashkia Poliçan', '600100', 'Own', NULL, 'Makeshift (Asbestos/Lightroofing)', 44, 'fsdfds', '[{\"date\": \"2025-05-13\", \"file\": \"uploads/entity_profile/15/Factory_buildings/21/process_flow_files/1746161782_a1883494ae3272457f98.jpg\", \"name\": \"old_documant\"}]', 'wewe', 'dsdsdsd', '2147483647', 'fsdfsdfsdf', 0, '2025-05-02 04:56:22', '2025-05-02 10:27:04', 15, 15, 'organisation', 15),
(22, 'ramachandran selvam', 'BUILDING-15_11', '[\"uploads/entity_profile/15/Factory_buildings/22/photos/1746161797_958afbe1ffa2a09e1c87.jpg\"]', '', '12', '12', 'chennai', 'tamil nadu', '3245435', 'Albania', 'Berat District', 'Bashkia Poliçan', '600100', 'Own', NULL, 'Makeshift (Asbestos/Lightroofing)', 44, 'fsdfds', '[{\"date\": \"2025-05-13\", \"file\": \"uploads/entity_profile/15/Factory_buildings/22/process_flow_files/1746161797_994c1d1853eb7e47ac4d.jpg\", \"name\": \"old_documant\"}]', 'wewe', 'dsdsdsd', '2147483647', 'fsdfsdfsdf', 0, '2025-05-02 04:56:37', '2025-05-02 10:26:52', 15, 15, 'organisation', 15),
(23, 'Maruti Suzuki India Ltd', '001', '[\"uploads/entity_profile/29/Factory_buildings/23/photos/1746249876_e0fc80b207c3a553fd6d.jpg\", \"uploads/entity_profile/29/Factory_buildings/23/photos/1746249876_980ab4897fa285dffc82.jpg\"]', '', '17.3303', '17.3303', 'Hyderabad', 'Hyderabad', 'Vanastalipuram', 'India', 'Telangana', 'Hyderābād', '500070', 'Own', 0, 'Makeshift (Asbestos/Lightroofing)', 15000, 'Sales, service, and spare parts for Maruti Suzuki vehicles', '[{\"date\": \"2025-05-02\", \"file\": \"uploads/entity_profile/29/Factory_buildings/23/process_flow_files/1746249876_21d0c5e88bc8d75dae8c.pdf\", \"name\": \"125875\"}]', 'Ravi', 'Manager', '2147483647', 'est drives and vehicle quotes available', 1, '2025-05-03 05:24:36', '2025-05-03 05:24:36', 26, 26, 'organisation', 29),
(24, 'Nestlé India', '002', '[\"uploads/entity_profile/29/Factory_buildings/24/photos/1746250459_31bc8e52b1ded3599b78.jpg\"]', '', '30.8038', '75.1494', 'Moga (Punjab),', 'Moga (Punjab),', 'Moga', 'India', 'Punjab', 'Moga', '142001', 'Leasehold', 10, 'Makeshift (Asbestos/Lightroofing)', 12000, 'Chocolate manufacturer offering a wide range of delectable chocolate products.', '[{\"date\": \"2025-05-03\", \"file\": \"uploads/entity_profile/29/Factory_buildings/24/process_flow_files/1746250459_65aa9297e7a33562c98e.pdf\", \"name\": \"1258785\"}]', 'Kiran', 'Manager', '2147483647', 'Chocolate manufacturer offering a wide range of delectable chocolate products.', 1, '2025-05-03 05:34:19', '2025-05-03 05:34:19', 26, 26, 'organisation', 29),
(25, 'rekaburr', 'BUILDING-15_16', '[\"uploads/entity_profile/15/Factory_buildings/25/photos/1746372314_ea040cda6ea3d9a1d1dc.jpg\"]', '{\"Factory_builidings\":[\"15\",\"16\",\"10\",\"9\"]}', '33', '2', 'ddsf', 'd', 'kjlkjldsf', 'Albania', 'Berat District', 'Bashkia Poliçan', '322212', 'Own', 0, 'Makeshift (Asbestos/Lightroofing)', 454544000, '543543543', '[{\"date\": \"2025-05-19\", \"file\": \"uploads/entity_profile/15/Factory_buildings/25/process_flow_files/1746372314_43601023fd1c2a04b921.jpg\", \"name\": \"dsfsdfsdf\"}]', '3434', '4343', '2147483647', 'ewrewrewr', 1, '2025-05-04 15:25:14', '2025-05-04 15:25:14', 15, 15, 'organisation', 15),
(26, 'Factory 3', 'BUILDING-23_17', '[\"uploads/entity_profile/23/Factory_buildings/26/photos/1746721996_8c7f15fe06ca91a74d7f.png\"]', '{\"Factory_builidings\":[\"19\"]}', '12.2344', '23.4566', 'All India', 'Test', 'Village', 'India', 'Tamil Nadu', 'Chennai', '600002', 'Leasehold', 10, 'Permanent (Brick & Steel)', 4000, 'All activities', '[{\"date\": \"2024-12-12\", \"file\": \"uploads/entity_profile/23/Factory_buildings/26/process_flow_files/1746721996_8b0809b71e5093a0442e.pdf\", \"name\": \"Test2\"}]', 'Santhosh', 'Manager', '2147483647', 'Test', 1, '2025-05-08 16:33:16', '2025-05-08 16:33:16', 20, 20, 'organisation', 23),
(27, 'dheena', 'BUILDING-37_18', '[\"uploads/entity_profile/37/Factory_buildings/27/photos/1746723984_f86dca080231481ae89b.jpg\"]', '{\"Corporate_Office\":null}', '12', '12', '7/426, bajanai kovil street', 'Jdjdnf', 'Nfnfnf', 'Algeria', 'Aïn Defla Province', 'El Attaf', '600127', 'Own', 0, 'Makeshift (Asbestos/Lightroofing)', 95959, 'Ccjckfnfkf', '[{\"date\": \"2025-05-16\", \"file\": \"uploads/entity_profile/37/Factory_buildings/27/process_flow_files/1746723984_e6364023919ab63270f8.log\", \"name\": \"Hxhdhd\"}]', 'Rnahja', 'Jdjdnd', '2147483647', 'Bfnfbffn', 1, '2025-05-08 17:06:24', '2025-05-08 17:06:24', 49, 49, 'organisation', 37),
(28, 'TestFactory', '123456', '[\"uploads/entity_profile/36/Factory_buildings/28/photos/1746724412_07c7997f9fc2370ffd77.jpg\"]', '{\"Corporate_Office\":null}', '12.2345', '24.4567', 'Test', 'Test2', 'Village', 'India', 'Tamil Nadu', 'Chennai', '700800', 'Leasehold', 10, 'Makeshift (Asbestos/Lightroofing)', 4000, 'All', '[{\"date\": \"2024-12-12\", \"file\": \"uploads/entity_profile/36/Factory_buildings/28/process_flow_files/1746724412_d3cc15e9cd379d0d0f4e.pdf\", \"name\": \"TestFactory1\"}]', 'Hari', 'Manager', '2147483647', 'Test', 1, '2025-05-08 17:13:32', '2025-05-08 17:13:32', 48, 48, 'organisation', 36),
(29, 'GreenAgro Fertilizers Pvt. Ltd', 'FA001', '[\"uploads\\/entity_profile\\/38\\/Factory_buildings\\/29\\/photos\\/1746771971_2adad5b15ed778548ee5.jpg\"]', '{\"Corporate_Office\":null}', '18.6725', '78.0941', 'Plot No. 12, Industrial Area,', 'Nizamabad, ', 'Chandur', 'India', 'Telangana', 'Nizamabad', '503001', 'Own', 0, 'Makeshift (Asbestos/Lightroofing)', 12585, 'Organic Fertilizer Mixing\r\n\r\nPacking & Labelling', '[{\"name\":\"125875\",\"date\":\"2025-05-02\",\"file\":\"uploads\\/entity_profile\\/38\\/Factory_buildings\\/29\\/process_flow_files\\/1746771971_69ac599f04cc168657e2.pdf\"}]', 'Ravi', 'Manager', '2147483647', 'Organic Fertilizer Mixing\r\n\r\nPacking & Labelling', 1, '2025-05-09 06:26:11', '2025-07-28 17:49:40', 51, 51, 'organisation', 38),
(30, 'stsone', 'Factory-39_21', '[\"uploads/entity_profile/39/Factory_buildings/30/photos/1746779484_fed768fba3b5f38b8baa.png\"]', '{\"Corporate_Office\":null}', '45', '56', '20 soma sundram', '', 'madurai', 'India', 'Tamil Nadu', 'Madurai', '625002', 'Leasehold', 4, 'Makeshift (Asbestos/Lightroofing)', 3000, 'sadad', '[{\"date\": \"2025-05-07\", \"file\": \"uploads/entity_profile/39/Factory_buildings/30/process_flow_files/1746779484_0405158412dd8314cb3d.docx\", \"name\": \"sts\"}]', 'thamil', 'manager', '2147483647', 'sdada', 1, '2025-05-09 08:31:24', '2025-05-09 08:31:24', 52, 52, 'organisation', 39),
(31, 'thamilfactory', 'Factory-39_22', '[\"uploads/entity_profile/39/Factory_buildings/31/photos/1746787584_e9e11090125408bb766b.jpg\"]', '{\"Corporate_Office\":null}', '56', '45', '20 soma sundram', 'villapuram', 'madurai', 'India', 'Tamil Nadu', 'Madurai', '625004', 'Own', 0, 'Makeshift (Asbestos/Lightroofing)', 5000, 'sdfsdfd', '[{\"date\": \"2025-05-07\", \"file\": \"uploads/entity_profile/39/Factory_buildings/31/process_flow_files/1746787584_ba4f3366fb06f5e47e25.pdf\", \"name\": \"p1\"}]', 'thamil', 'cvbc', '2147483647', 'dfsdfsdf', 1, '2025-05-09 10:46:24', '2025-05-09 10:46:24', 52, 52, 'organisation', 39),
(32, 'Factory 1A', 'ABCD123', '[\"uploads/entity_profile/36/Factory_buildings/32/photos/1746977166_0337233fadd4101153b6.jpg\"]', '{\"Corporate_Office\":null}', '12.2345', '24.4567', 'Test', 'Test2', 'Village', 'India', 'Tamil Nadu', 'Chennai', '700800', '', 0, 'Choose...', 4000, 'All', '[{\"date\": \"2025-05-05\", \"file\": \"uploads/entity_profile/36/Factory_buildings/32/process_flow_files/1746977166_aea02041367b886f5604.pdf\", \"name\": \"TestFactory1\"}]', 'Hari', 'Manager', '2147483647', 'Test', 1, '2025-05-11 15:26:06', '2025-05-11 15:26:06', 48, 48, 'organisation', 36),
(33, 'Factory 1B', 'XYZ123', '[\"uploads/entity_profile/36/Factory_buildings/33/photos/1746977239_c0207fc89418fd55286e.jpg\"]', '{\"Corporate_Office\":null}', '12.2345', '24.4567', 'Test', 'Test2', 'Village', 'India', 'Tamil Nadu', 'Chennai', '700800', '', 0, 'Choose...', 6000, 'All', '[{\"date\": \"2025-04-22\", \"file\": \"uploads/entity_profile/36/Factory_buildings/33/process_flow_files/1746977240_e926c19558d83855b0ae.docx\", \"name\": \"TestFactory1\"}]', 'Hari', 'Senior Manager', '2147483647', 'Test', 1, '2025-05-11 15:27:19', '2025-05-11 15:27:20', 48, 48, 'organisation', 36),
(34, 'selvam', 'farmer-33_6', NULL, '[]', '', '', '3/420', 'bagavati street', '', 'Albania', 'Berat District', 'Bashkia Berat', '600100', '', 0, 'Choose...', 0, '', '[]', '', '', '9566262691', '', 1, '2025-05-30 11:14:40', '2025-05-30 11:14:40', 81, 81, 'organisation', 46),
(35, 'Dalmia', 'Factory-48_26', '[]', '{\"Corporate_Office\":null}', '', '', '23', '', '', 'India', 'Tamil Nadu', 'Chennai', '600049', NULL, 0, 'Choose...', 28, '', '[]', 'Vetri', '', '1234567890', '', 1, '2025-06-02 08:39:49', '2025-06-03 11:12:15', 88, 88, 'organisation', 48),
(36, 'Dalmia', 'Factory-51_27', NULL, '{\"Corporate_Office\":null}', '', '', '34', '', '', 'India', 'Tamil Nadu', 'Chennai', '600043', '', 0, 'Choose...', 0, '', '[]', '', '', '', '', 1, '2025-06-02 13:54:35', '2025-06-02 13:54:35', 107, 107, 'organisation', 51),
(37, 'Sekar', 'Factory-48_28', '[\"uploads\\/entity_profile\\/48\\/Factory_buildings\\/37\\/photos\\/1749033284_7ddb5e14a78469f88f94.jpg\"]', '{\"Corporate_Office\":null}', '', '', '56', '', '', 'India', 'Tamil Nadu', 'Chennai', '600045', '', 0, 'Choose...', 0, '', '[{\"name\":\"Agreement\",\"date\":\"2025-06-02\",\"file\":\"uploads\\/entity_profile\\/48\\/Factory_buildings\\/37\\/process_flow_files\\/1749033284_f68ea57c9a8a964608fa.pdf\"}]', 'Sai', 'Supervisor', '1234567890', '', 1, '2025-06-04 10:34:44', '2025-06-04 10:34:44', 88, 88, 'organisation', 48),
(38, 'test test test', 'audit-39_12', NULL, '[]', '', '', '123', '123', '', 'Afghanistan', 'Badakhshan', 'Ashkāsham', '632009', '', 0, 'Choose...', 0, '', '[]', '', '', '9786706043', '', 1, '2025-07-09 09:15:45', '2025-07-09 09:15:45', 59, 59, 'organisation', 59),
(39, 'test test test', 'audit-39_12', NULL, '[]', '', '', '123', '123', '', 'Afghanistan', 'Badakhshan', 'Ashkāsham', '632009', '', 0, 'Choose...', 0, '', '[]', '', '', '9786706043', '', 1, '2025-07-09 09:40:16', '2025-07-09 09:40:16', 62, 62, 'organisation', 62),
(40, 'selvam', 'Factory-64_31', '[]', '[]', '', '', '3/420', 'bagavati street', '', 'India', 'Tamil Nadu', 'Chetput', '600100', NULL, 0, 'Choose...', 0, '', '[]', '', '', '9566262691', '', 1, '2025-07-17 06:18:06', '2025-07-17 11:48:30', 157, 157, 'organisation', 64);

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

--
-- Table structure for table `farmers`
--

CREATE TABLE `farmers` (
  `id` int(11) NOT NULL,
  `title` varchar(10) DEFAULT NULL,
  `first_name` varchar(30) NOT NULL,
  `middle_name` varchar(30) DEFAULT NULL,
  `last_name` varchar(30) DEFAULT NULL,
  `dob` date DEFAULT NULL,
  `income_tax_number` varchar(10) DEFAULT NULL,
  `permanent_address1` varchar(50) DEFAULT NULL,
  `permanent_address2` varchar(50) DEFAULT NULL,
  `permanent_village` varchar(30) DEFAULT NULL,
  `permanent_country` varchar(50) DEFAULT NULL,
  `permanent_state` varchar(50) DEFAULT NULL,
  `permanent_city` varchar(50) DEFAULT NULL,
  `permanent_pincode` varchar(6) DEFAULT NULL,
  `communication_address1` varchar(50) DEFAULT NULL,
  `communication_address2` varchar(50) DEFAULT NULL,
  `communication_village` varchar(30) DEFAULT NULL,
  `communication_country` varchar(50) DEFAULT NULL,
  `communication_state` varchar(50) DEFAULT NULL,
  `communication_city` varchar(50) DEFAULT NULL,
  `communication_pincode` varchar(6) DEFAULT NULL,
  `contact_mobile` varchar(10) DEFAULT NULL,
  `contact_fixedline` varchar(10) NOT NULL,
  `email` varchar(50) NOT NULL,
  `password` text DEFAULT NULL,
  `created_at` timestamp NOT NULL DEFAULT current_timestamp(),
  `updated_at` datetime NOT NULL,
  `status` int(11) NOT NULL DEFAULT 0,
  `farmer_id` varchar(50) DEFAULT NULL,
  `supervisory_from` text DEFAULT NULL,
  `name_of_the_supervisor` int(11) DEFAULT NULL,
  `gender` varchar(25) DEFAULT NULL,
  `membership_start_date` date DEFAULT NULL,
  `insurance_coverage` varchar(4) DEFAULT NULL,
  `training_received` text DEFAULT NULL,
  `training_title` text DEFAULT NULL,
  `training_date` date DEFAULT NULL,
  `conducted_by` varchar(100) DEFAULT NULL,
  `associated_by` varchar(30) NOT NULL DEFAULT 'farmers',
  `entity_id` int(11) DEFAULT NULL,
  `created_by` int(11) DEFAULT NULL,
  `updated_by` int(11) DEFAULT NULL,
  `Photos` text NOT NULL,
  `documents` text NOT NULL,
  `Person_Photo` text NOT NULL,
  `remark` text DEFAULT NULL,
  `audo_id_gendrator` int(11) NOT NULL DEFAULT 0,
  `user_type` varchar(255) DEFAULT '''farmers'''
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `farmers`
--

INSERT INTO `farmers` (`id`, `title`, `first_name`, `middle_name`, `last_name`, `dob`, `income_tax_number`, `permanent_address1`, `permanent_address2`, `permanent_village`, `permanent_country`, `permanent_state`, `permanent_city`, `permanent_pincode`, `communication_address1`, `communication_address2`, `communication_village`, `communication_country`, `communication_state`, `communication_city`, `communication_pincode`, `contact_mobile`, `contact_fixedline`, `email`, `password`, `created_at`, `updated_at`, `status`, `farmer_id`, `supervisory_from`, `name_of_the_supervisor`, `gender`, `membership_start_date`, `insurance_coverage`, `training_received`, `training_title`, `training_date`, `conducted_by`, `associated_by`, `entity_id`, `created_by`, `updated_by`, `Photos`, `documents`, `Person_Photo`, `remark`, `audo_id_gendrator`, `user_type`) VALUES
(5, 'Ms', 'ramachandran', 'rajs', 'admin', '2025-05-08', '4554354353', 'chennai', 'tamil nadu', 'fdsfdsf', 'Albania', 'Berat District', 'Bashkia Berat', '600100', 'chennai', 'tamil nadu', 'fdsfdsf', 'Albania', 'Berat District', 'Bashkia Berat', '600100', '9360135395', '9360135395', 'ramachandrantamil006@gmail.com', '$2y$10$KNsjk38VV3N00fROIsV5e.KGj18WA87velu4xVklTTlZ6rDFDXECy', '2025-04-17 00:20:31', '2025-04-17 05:50:31', 0, '', '', 0, '', '0000-00-00', '0', '0', '0', '0000-00-00', '0', 'farmers', 0, NULL, NULL, '', '', '', NULL, 0, 'farmers'),
(10, 'Mrs', 'ramachandran', 'sdfsdfds', 'selvam', NULL, '', 'chennai', 'tamil nadu', 'medavakkam ', 'Albania', 'Berat District', 'Berat', '600100', 'chennai', 'tamil nadu', 'medavakkam ', 'Albania', 'Berat District', 'Berat', '600100', '9360135395', '', 'ramachandrantamil075@gmail.com', '$2y$10$ltX25bpGIM4YzCCBOxbsjuR8BvN9R5qRBlDJYUH3nJn5AwoM/rcqq', '2025-05-06 08:52:15', '2025-05-07 21:09:45', 1, 'farmer-30_2', 'employee', 19, 'Male', '2025-05-20', 'No', 'Yes', 'fgfdgfdg', '2025-05-21', 'dsfdsfdsfsdf', 'fpo', 30, 27, 27, '[\"uploads\\/entity_profile\\/30\\/Farmer\\/10\\/photos\\/1746541335_5ddc38d5d8f9ba857a97.jpg\"]', '[{\"name\":\"dfdsf\",\"date\":\"2025-05-20\",\"file\":\"uploads\\/entity_profile\\/30\\/Farmer\\/10\\/documants\\/1746541335_92c35e1b0d63b4b05f4e.png\"}]', 'uploads/entity_profile/30/Farmer/10/photos//1746632314_a628401e62e92fe29786.jpg', '     fdgdfgdfg', 0, 'farmers'),
(11, 'Mrs', 'ramachandran ', '', 'selvam', NULL, '', '3/420', 'bagavati street', 'd', 'Albania', 'Berat District', 'Bashkia Kuçovë', '600100', '3/420', 'bagavati street', 'd', 'Albania', 'Berat District', 'Bashkia Kuçovë', '600100', '9566262691', '', 'ramachandrantamil007@gmail.com', '$2y$10$Zh5bE3WbhRFMMgVCX3tzRuTg8KchQY1mKBVQ4SwFnyc0gi/1OU806', '2025-05-09 09:28:48', '2025-06-02 19:13:03', 0, 'farmer-33_3', 'employee', 0, 'Female', '2025-05-11', 'Yes', 'Yes', 'fdsfdsf', '2025-05-15', 'fsdfdsfsdf', 'fpo', 33, 45, 45, '[\"uploads\\/entity_profile\\/33\\/Farmer\\/11\\/photos\\/1746802728_73ef3f69fbff95a12718.png\"]', '[{\"name\":\"fdsfsdf\",\"date\":\"2025-05-28\",\"file\":\"uploads\\/entity_profile\\/33\\/Farmer\\/11\\/documants\\/1746802728_63c5cd1e537a15a23bc3.jpg\"}]', 'uploads/entity_profile/30/Farmer/10/photos//1746632314_a628401e62e92fe29786.jpg', '     fdf', 1, 'farmers'),
(12, 'Mrs', 'ramachandran ', '', 'selvam', NULL, '', '3/420', 'bagavati street', 'd', 'Albania', 'Berat District', 'Bashkia Kuçovë', '600100', '3/420', 'bagavati street', 'd', 'Albania', 'Berat District', 'Bashkia Kuçovë', '600100', '9566262691', '', 'ramachandrantamil075@gmail.com', '$2y$10$fJDpfjPMZ4VgwFS1He7m4u7KVIv4RFc11KZ07Wn92.0I5KganGgzy', '2025-05-09 09:28:48', '2025-05-09 20:34:41', 0, 'farmer-33_3', 'employee', 22, 'Female', '2025-05-29', 'Yes', 'Yes', 'fdsfdsf', '2025-05-15', 'fsdfdsfsdf', 'fpo', 33, 45, 45, '[\"uploads\\/entity_profile\\/33\\/Farmer\\/11\\/photos\\/1746802728_73ef3f69fbff95a12718.png\"]', '[{\"name\":\"fdsfsdf\",\"date\":\"2025-05-28\",\"file\":\"uploads\\/entity_profile\\/33\\/Farmer\\/11\\/documants\\/1746802728_63c5cd1e537a15a23bc3.jpg\"}]', '', '  fdf', 0, 'farmers'),
(15, 'Mrs', 'fgfd', 'dgdfgdf', 'gfdgdfg', '2025-05-05', '9566262691', '3/420', 'bagavati street', 'fdgfdg', 'Albania', 'Berat District', 'Bashkia Berat', '600100', '34', 'bagavati street', 'fdgfdg', 'Albania', 'Berat District', 'Bashkia Berat', '600100', '9566262691', '9566262691', 'agniworkers@gmail.com', '$2y$10$iBL5Z/SjSO9iJbcvGqEPU.3sUQrzZaJT7FjMnnJq1HJvGZiYqh0Oq', '2025-05-13 21:34:44', '2025-05-28 15:35:53', 1, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'farmers', NULL, NULL, NULL, '', '', '', NULL, 1, 'farmers'),
(16, 'Mr', 'Dheenadhayalan', 'efew', 'perumal', '2025-05-13', '1234567890', '272, Vishnu Flats', '1st main road, engineer\'s avanue,  S kolatur', 'dfdf', 'India', 'Bihar', 'Amarpur', '600117', '272, Vishnu Flats', '1st main road, engineer\'s avanue,  S kolatur', 'dfdf', 'India', 'Bihar', 'Amarpur', '600117', '7871391394', '7871391394', 'dheenadhayalanperumal@gmail.com', '$2y$10$XaC0kOZ2lQDwq8KcrZ2aNemW2XNlWiBpkexB2HiHHFF0b6G.uq3q6', '2025-05-19 00:23:25', '2025-06-02 09:33:17', 1, NULL, NULL, NULL, NULL, NULL, NULL, 'fghdfgd', 'dfgfdg', '1992-09-12', 'dheenadhay', 'farmers', 16, NULL, NULL, '', '', '', '', 1, 'farmers'),
(17, 'Mr', 'Muthu', '', '', NULL, NULL, '12,', 'Kumaran nagar,', '', 'India', 'Tamil Nadu', 'Chennai', '600049', '12,', 'Kumaran nagar,', '', 'India', 'Tamil Nadu', 'Chennai', '600049', '1234567890', '', 'aathipoorani25@gmail.com', NULL, '2025-06-02 00:42:33', '2025-06-03 05:46:37', 1, '001', NULL, 0, 'Male', '0000-00-00', 'Yes', NULL, '', '2024-01-09', 'Murali', 'fpo', 47, 82, 82, '[]', '', 'uploads/entity_profile/47/Farmer/17/Person_Photo/1748844753_93106488d8cc6af95f74.jpg', ' ', 0, '\'farmers\''),
(18, 'Mr', 'Muthu', '', '', NULL, NULL, '12,', 'Kumaran nagar,', '', 'India', 'Tamil Nadu', 'Chennai', '600049', '12,', 'Kumaran nagar,', '', 'India', 'Tamil Nadu', 'Chennai', '600049', '1234567890', '', 'vimalaathi25@gmail.com', NULL, '2025-06-02 00:54:13', '2025-06-03 05:46:25', 1, '001', NULL, 0, 'Male', '0000-00-00', 'Yes', NULL, '', '2024-01-09', 'Murali', 'fpo', 47, 82, 82, '[]', '', 'uploads/entity_profile/47/Farmer/18/Person_Photo/1748845453_19d7e71547d6e34e8a02.jpg', ' ', 0, '\'farmers\''),
(19, 'Mr', 'thamil', 'fgd', 'selvan', '2000-02-02', '12345dff12', 'Ram nagar 5 th street', 'velachery', 'velachery', 'India', 'Andaman and Nicobar Islands', 'Port Blair', '600042', 'Ram nagar 5 th street', 'velachery', 'velachery', 'India', 'Andaman and Nicobar Islands', 'Port Blair', '600042', '9677770552', '9677770552', 'thamil@nativesparrow.com', '$2y$10$Zw0fNl0polqdPFF72yTudOc7d7FzHsWhD5yMN.q6Q0wFudxjnYjzS', '2025-06-02 03:45:36', '2025-06-02 09:15:36', 1, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'farmers', NULL, NULL, NULL, '', '', '', NULL, 0, '\'farmers\''),
(20, 'Mr', 'dfgdfg', 'dfg', 'dfg', NULL, NULL, 'dfgdfg', 'dfg', 'dfgdf', 'Iceland', 'Southern Peninsula Region', 'Keflavík', '546464', 'dfgdfg', 'dfg', 'dfgdf', 'Iceland', 'Southern Peninsula Region', 'Keflavík', '546464', '2233665544', '', 'asdfdsf@gmail.com', NULL, '2025-06-02 04:18:54', '2025-06-02 09:48:54', 1, 'farmer-49_10', NULL, 0, 'Male', '2025-06-02', 'Yes', 'Yes', 'vfgfg', '0000-00-00', 'dfgdfg', 'fpo', 49, 89, 89, '[\"uploads\\/entity_profile\\/49\\/Farmer\\/20\\/photos\\/1748857734_25f4dc37bcb5fb409fc7.jpg\"]', '[{\"name\":\"dsf\",\"date\":\"2025-06-02\",\"file\":\"uploads\\/entity_profile\\/49\\/Farmer\\/20\\/documants\\/1748857734_6749bed0b65607d28b58.pdf\"}]', 'uploads/entity_profile/49/Farmer/20/Person_Photo/1748857734_fc31209f17ed8f4495d0.jpg', 'dsf', 0, '\'farmers\''),
(21, 'Mrs', 'tyu', 'ert', 'tyu', NULL, NULL, 'tyu', 'tyu', 'ytu', 'India', 'Tamil Nadu', 'Chennai', '600112', 'tyu', 'tyu', 'ytu', 'India', 'Tamil Nadu', 'Chennai', '600112', '1234567895', '', 'dheenyuyua1992@gmail.com', NULL, '2025-06-02 04:45:19', '2025-06-02 11:36:31', 1, 'farmer-49_11', NULL, 1, 'Male', '2025-06-02', 'Yes', 'Yes', 'tyu', '2025-06-02', 'dfgdfg', 'fpo', 49, 89, 89, '[\"uploads\\/entity_profile\\/49\\/Farmer\\/21\\/photos\\/1748859319_1aed702b435c958a594b.jpg\"]', '[{\"name\":\"tyu\",\"date\":\"2025-06-02\",\"file\":\"uploads\\/entity_profile\\/49\\/Farmer\\/21\\/documants\\/1748859320_41acc94892a1045ba007.pdf\"}]', 'uploads/entity_profile/49/Farmer/21/Person_Photo/1748859320_08439bec2ecf071ade6d.jpg', ' ', 0, '\'farmers\''),
(23, 'Mr', 'Kumar', 'N', 'Rathnam', '2024-12-31', 'axwpa0217g', '12, 50th street', 'Sidco  nagar, ', 'Villivakkam, Chennai', 'India', 'Tamil Nadu', 'Chennai', '600049', '12, 50th street', 'Sidco  nagar, ', 'Villivakkam, Chennai', 'India', 'Tamil Nadu', 'Chennai', '600049', '1234567890', '0441233455', 'anuharan20@gmail.com', '$2y$10$KNsjk38VV3N00fROIsV5e.KGj18WA87velu4xVklTTlZ6rDFDXECy', '2025-06-02 09:02:59', '2025-06-02 14:32:59', 1, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'farmers', NULL, NULL, NULL, '', '', 'uploads/entity_profile/49/Farmer/21/Person_Photo/1748859320_08439bec2ecf071ade6d.jpg', NULL, 1, '\'farmers\''),
(24, 'Mr', 'ramachandran', '', 'selvam', NULL, NULL, 'chennai', 'tamil nadu', '', 'Albania', 'Berat District', 'Bashkia Kuçovë', '600100', 'chennai', 'tamil nadu', '', 'Albania', 'Berat District', 'Bashkia Kuçovë', '600100', '9360135395', '', 'rew@gmail.com', '$2y$10$mL3XypfwdJFqUstqSMZh7eTq1c/RaiIxzwDvUm6DpmR7fZvl91ice', '2025-06-04 16:12:59', '2025-06-04 16:18:12', 1, 'farmer-33_13', NULL, 0, '', '0000-00-00', 'Yes', NULL, '', '0000-00-00', '', 'fpo', 33, 45, 45, '[]', '', 'uploads/entity_profile/33/Farmer/24/Person_Photo/1749053579_054a397e8f146978d699.jpg', ' ', 0, '\'farmers\''),
(27, 'Mr', 'testFarmer', 'test', 'test', '0000-00-00', '12345testq', '123', '123', '', 'India', 'Tamil Nadu', NULL, '632009', '123', '123', '', 'India', 'Tamil Nadu', 'Chennai', '632009', '9786706043', '', 'Test@farmer.com', '$2y$10$DmEKVIQNNiouNWeS6WDZoe27IT5OVyFKD45yzcZlmJ7BAjhP9tmhO', '2025-06-16 13:41:24', '2025-06-17 02:22:10', 1, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'farmers', NULL, NULL, NULL, '', '', '', NULL, 0, '\'farmers\''),
(28, 'Mr', 'Anji', 'Reddy', 'Durgampudi', NULL, NULL, 'Survey No. 45, Near NH-563, ', 'Hyderabad', 'Vanastalipuram', 'India', 'Telangana', 'Hyderābād', '500070', 'Survey No. 45, Near NH-563, ', 'Hyderabad', 'Vanastalipuram', 'India', 'Telangana', 'Hyderābād', '500070', '9010466610', '', 'anjiredd2010@hotmail.com', '$2y$10$7fpsbT0R3seP6r9RXqHyo.wh4NMYmo4eg6xSevcGT8pWi7nCU8eIu', '2025-06-18 04:40:12', '2025-07-29 07:37:59', 1, 'PM001', NULL, 0, 'Male', '2025-06-02', 'Yes', 'Yes', 'QMS ', '2025-06-04', 'TQ cert', 'fpo', 54, 135, 135, '[]', '', 'uploads/entity_profile/54/Farmer/28/Person_Photo/1750221612_1704197cd09789da1bb5.jpg', ' Na', 0, '\'farmers\''),
(29, 'Ms', 'test', 'test', 'silam.hds@gmail.com', '2025-06-18', '12345testq', '123', '123', 'polue', 'Afghanistan', 'Badakhshan', 'Ashkāsham', '632009', '123', '123', 'polue', 'Afghanistan', 'Badakhshan', 'Ashkāsham', '632009', '9786706043', '9786706043', 'silam.hds@gmail.com', '$2y$10$bMkgjiU3upXPWfvpzV6V6e0VJrhMXXjF1nESSYI.gXg78w9MPec2C', '2025-06-18 11:04:43', '2025-06-18 11:04:43', 1, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'farmers', NULL, NULL, NULL, '', '', '', NULL, 0, '\'farmers\''),
(30, 'Ms', 'Anji', 'Reddy', 'anjireddy@efreshglobal.com', '1982-02-02', 'axrpd6240r', 'Survey No. 45, Near NH-563,', 'Hyderabad', 'Jammalamadaka', 'India', 'Telangana', 'Hyderābād', '500070', 'Survey No. 45, Near NH-563,', 'Hyderabad', 'lb', 'India', 'Telangana', 'Hyderābād', '500070', '9010466610', '9010466610', 'anjireddy@efreshglobal.com', '$2y$10$GIYw4FEnA9MM362ITRpWeOU2NHtH/Hhovb1q6h/KeFqD6mgN3Ajrq', '2025-06-24 11:15:53', '2025-06-24 11:15:53', 1, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'farmers', NULL, NULL, NULL, '', '', '', NULL, 1, '\'farmers\''),
(31, 'Mr', 'test', 'test', 'test', NULL, NULL, '123', '123', '', 'India', 'Tamil Nadu', 'Polūr', '632009', '123', '123', '', 'India', 'Tamil Nadu', 'Polūr', '632009', '9786706043', '', 'Test@entity.com', '$2y$10$0nrIHUIpEqpyqq4qeUdSQeMAA/Ff0s.adaH.xr2fx32ybAeS2hSl.', '2025-07-07 09:09:35', '2025-07-07 09:09:35', 1, '123', NULL, 0, '', '0000-00-00', 'Yes', NULL, '', '2025-07-07', 'test', 'fpo', 60, 141, 141, '[\"uploads\\/entity_profile\\/60\\/Farmer\\/31\\/photos\\/1751879375_5933d3f8b9da00b5aa2a.png\"]', '', 'uploads/entity_profile/60/Farmer/31/Person_Photo/1751879375_2cb79c9b4e0b7afcf2bb.png', '', 0, '\'farmers\''),
(32, 'Mr', 'Gadde', 'Kiran ', 'Ravi ', NULL, NULL, 'Survey No. 45, Near NH-563,', 'Hyderabad', 'Chandur', 'India', 'Telangana', 'Hyderābād', '500070', 'Survey No. 45, Near NH-563,', 'Hyderabad', 'Chandur', 'India', 'Telangana', 'Hyderābād', '500070', '9010466618', '', 'bbc258@gmail.com', '$2y$10$.4ByPszq4stcSBhMuOkJV.Z9SLK3sa7ujBEt2be5af7F416lO/60m', '2025-07-10 06:40:27', '2025-07-29 07:38:08', 1, 'farmer-54_19', NULL, 5, 'Male', '2025-07-01', 'Yes', 'Yes', 'QMS ', '2025-07-02', 'TQ cert', 'fpo', 54, 135, 135, '[]', '', 'uploads/entity_profile/54/Farmer/32/Person_Photo/1752129627_b913b069739c6cb7e7e3.png', ' ', 0, '\'farmers\'');

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

--
-- Table structure for table `farmer_land_details`
--

CREATE TABLE `farmer_land_details` (
  `id` int(11) NOT NULL,
  `farm_iD` text DEFAULT NULL,
  `location` text DEFAULT NULL,
  `year` int(11) DEFAULT NULL,
  `ownership` varchar(50) DEFAULT NULL,
  `no_of_years_Leasehold` int(11) DEFAULT NULL,
  `mandal` varchar(100) DEFAULT NULL,
  `district` varchar(100) DEFAULT NULL,
  `survey_parcel_number` int(11) DEFAULT NULL,
  `farm_area` int(11) DEFAULT NULL,
  `total_extent_of_land` int(11) DEFAULT NULL,
  `extent_under_cultivation` int(11) DEFAULT NULL,
  `Remark` varchar(250) DEFAULT NULL,
  `document` text DEFAULT NULL,
  `associated_by` varchar(50) DEFAULT NULL,
  `entity_id` int(11) DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT current_timestamp(),
  `created_by` int(11) DEFAULT NULL,
  `updated_at` datetime DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `updated_by` int(11) DEFAULT NULL,
  `farmer_id` int(11) DEFAULT NULL,
  `status` int(11) DEFAULT 1,
  `season` varchar(255) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `farmer_land_details`
--

INSERT INTO `farmer_land_details` (`id`, `farm_iD`, `location`, `year`, `ownership`, `no_of_years_Leasehold`, `mandal`, `district`, `survey_parcel_number`, `farm_area`, `total_extent_of_land`, `extent_under_cultivation`, `Remark`, `document`, `associated_by`, `entity_id`, `created_at`, `created_by`, `updated_at`, `updated_by`, `farmer_id`, `status`, `season`) VALUES
(1, 'Farm-33_1', '334fdsfdsfffffffffffffffffffff', 1901, 'Own', 0, 'd', 'sdfds', 0, 54, 4, 34, 'dfdfdsf', '[{\"name\":\"dfdsfsdfsd\",\"date\":\"2025-05-08\",\"file\":\"uploads\\/entity_profile\\/33\\/farm\\/1\\/Document\\/1746806337_28cf36b9c0d4889a52de.xlsx\"}]', 'fpo', 33, '2025-05-09 10:28:57', 45, '2025-05-09 11:37:10', 45, 0, 0, NULL),
(2, 'Farm-33_2', '334fdsfdsfffffffffffffffffffff', 1902, 'Own', 0, 'dfdsfsdf', 'sdfds', 0, 5, 4, 4, ' fdfsdf ', '[{\"name\":\"dfsdf\",\"date\":\"2025-05-14\",\"file\":\"uploads\\/entity_profile\\/33\\/farm\\/2\\/Document\\/1746806406_e6ae10bfc3261ae32ea2.xlsx\"}]', 'fpo', 33, '2025-05-09 10:30:06', 45, '2025-05-09 11:37:18', 45, 11, 1, NULL),
(3, 'Farm-33_3', 'rwss', 1903, 'Own', 45, '4545', '454', 45, 45, 45, 4545, '   fsdfsd   ', '[{\"name\":\"fdsfsdf\",\"date\":\"2025-05-13\",\"file\":\"uploads\\/entity_profile\\/33\\/farm\\/3\\/Document\\/1746806514_6eabbbf41776e8602015.xlsx\"}]', 'fpo', 33, '2025-05-09 10:31:54', 45, '2025-05-09 11:35:38', 45, 11, 1, NULL),
(4, '444', 'ertret', 1901, 'Own', 0, 'wer', 'ewr', 345, 345, 4, 54, '  f  fghfghfghf', '[{\"name\":\"fdg\",\"date\":\"2025-05-07\",\"file\":\"uploads\\/entity_profile\\/16\\/farm\\/4\\/Document\\/1747677513_bba1d92f73927d81442a.pdf\"}]', 'farmers', 16, '2025-05-19 12:28:33', 71, '2025-05-21 07:31:00', 71, 16, 0, NULL),
(5, '444', 'ertret', 1902, 'Own', 0, 'wer', 'ewr', 456, 45, 52, 5, '  gdfgdfg  ', '[{\"name\":\"fdgdfg\",\"date\":\"2025-04-30\",\"file\":\"uploads\\/entity_profile\\/16\\/farm\\/5\\/Document\\/1747734617_dbf39edeeb31f8d471b3.pdf\"},{\"name\":\"old_documant\",\"date\":\"2025-05-08\",\"file\":\"uploads\\/entity_profile\\/16\\/farm\\/5\\/Document\\/1747830927_9386c74badb76b96e5fb.xlsx\"}]', 'farmers', 16, '2025-05-20 04:20:17', 71, '2025-05-21 07:05:27', 71, 0, 1, NULL),
(6, '34', 'dfgfgdf', 1901, 'Own', 0, 'fg', 'dfg', 345, 435, 4335, 435, '435', '[{\"name\":\"fdg\",\"date\":\"2025-05-13\",\"file\":\"uploads\\/entity_profile\\/16\\/farm\\/6\\/Document\\/1747735099_8186503506c0891f1c7f.pdf\"}]', 'farmers', 16, '2025-05-20 04:28:19', 71, '2025-05-20 04:28:19', 71, 16, 1, NULL),
(7, 'Employee', '34', 1902, 'Own', 0, 'ff', 'sdfsdf', 0, 3434, 3434, 343, '3434', '[{\"name\":\"dfdsf\",\"date\":\"2025-05-08\",\"file\":\"uploads\\/entity_profile\\/16\\/farm\\/7\\/Document\\/1747748785_06904bd781fe8c6430be.xlsx\"}]', 'farmers', 16, '2025-05-20 08:16:25', 71, '2025-05-20 12:28:50', 71, 16, 0, NULL),
(8, '4443', 'ertret', 1999, 'Own', 0, 'werdf', 'fdgdfg', 345, 23, 23, 23, 'dfgdfg', '[{\"name\":\"fdg\",\"date\":\"2025-05-29\",\"file\":\"uploads\\/entity_profile\\/16\\/farm\\/8\\/Document\\/1747749509_e6b27a92a3705fd169a6.pdf\"}]', 'farmers', 16, '2025-05-20 08:28:29', 71, '2025-05-20 08:28:29', 71, 16, 1, NULL),
(9, '4444', 'ertret', 2025, 'Own', 0, 'werre', 'ewrret', 455, 5, 4, 54, 'fh', '[{\"name\":\"fgh\",\"date\":\"2025-05-21\",\"file\":\"uploads\\/entity_profile\\/16\\/farm\\/9\\/Document\\/1747763987_d1182f60bc82ecddf7f3.pdf\"}]', 'farmers', 16, '2025-05-20 12:29:47', 71, '2025-05-20 12:29:47', 71, 16, 1, NULL),
(10, 'Farm-15_10', '', NULL, NULL, 0, '', '', 45, 65654, 0, 0, '', NULL, 'farmers', 15, '2025-05-28 19:35:03', 64, '2025-05-29 01:05:03', 64, 15, 1, NULL),
(11, 'Farm-15_11', 'dggf', 1906, 'Own', 0, 'dfsdf', 'sdfsdf', 0, 544, 0, 0, '', NULL, 'farmers', 15, '2025-05-28 22:34:47', 64, '2025-05-29 04:04:47', 64, 15, 1, NULL),
(12, 'Farm-11_12', '334fdsfdsfffffffffffffffffffff', 1902, NULL, 0, '', '', 54545454, 6545, 0, 0, '', NULL, 'farmers', 11, '2025-05-29 10:23:57', 61, '2025-05-29 15:53:57', 61, 11, 1, NULL),
(13, 'Farm-49_13', 'ertret', 1901, 'Leasehold', 2, 'wer', 'ewr', 345, 34, 34, 44, ' 43 ', '[{\"name\":\"fdg\",\"date\":\"2025-06-02\",\"file\":\"uploads\\/entity_profile\\/49\\/farm\\/13\\/Document\\/1748860438_2827e0102bea61150c84.pdf\"}]', 'fpo', 49, '2025-06-02 05:03:58', 89, '2025-06-02 10:34:16', 89, 20, 1, NULL),
(14, 'Farm-47_14', '', NULL, NULL, 0, '', '', 7789393, 3, 4, 7, '  ', NULL, 'fpo', 47, '2025-06-02 08:44:06', 82, '2025-06-03 05:27:12', 82, 17, 1, NULL),
(15, 'Farm-33_15', '34', 1901, 'Own', 0, '', '', 0, 33, 0, 0, '', NULL, 'fpo', 33, '2025-06-02 23:30:37', 45, '2025-06-03 05:00:37', 45, 22, 1, NULL),
(16, 'Farm-23_16', 'Vanagaram', 2020, 'Own', 0, '', '', 12345678, 29, 23, 12, '', '[{\"name\":\"Agreement\",\"date\":\"2025-06-02\",\"file\":\"uploads\\/entity_profile\\/23\\/farm\\/16\\/Document\\/1748929070_bf392a40a443b906c5f8.pdf\"}]', 'farmers', 23, '2025-06-03 00:07:50', 112, '2025-06-03 05:37:50', 112, 23, 1, NULL),
(17, 'Farm-47_17', '', 2020, 'Own', 0, 'Kanchipuram', 'Kanchipuram', 5674344, 56, 67, 34, '', '[{\"name\":\"Agreement\",\"date\":\"2025-06-02\",\"file\":\"uploads\\/entity_profile\\/47\\/farm\\/17\\/Document\\/1749034651_7289572faf86eb5e0fad.pdf\"}]', 'fpo', 47, '2025-06-04 10:57:31', 82, '2025-06-04 10:57:31', 82, 18, 1, NULL),
(18, 'PM001', '', 2025, 'Own', 0, 'Macherla', 'Palnadu', 258752, 5, 5, 4, ' Na ', '[{\"name\":\"HAZARD AND RISK MANAGEMENT\",\"date\":\"2025-06-10\",\"file\":\"uploads\\/entity_profile\\/54\\/farm\\/18\\/Document\\/1750221722_15beac8e39144f6821bb.pdf\"}]', 'fpo', 54, '2025-06-18 04:42:02', 135, '2025-07-29 07:38:26', 135, 28, 1, NULL),
(19, 'Farm-23_19', 'test', 1900, 'Own', 0, '', '', 1233, 111, 0, 0, '', NULL, 'farmers', 23, '2025-06-24 16:24:08', 112, '2025-06-24 16:24:08', 112, 23, 1, NULL),
(20, '123', 'test', 1900, 'Own', 0, '1', '1', 1, 0, 10, 30, 'test', '[{\"name\":\"test\",\"date\":\"2025-07-07\",\"file\":\"uploads\\/entity_profile\\/60\\/farm\\/20\\/Document\\/1751881565_5fe074e470ec9d9cb88e.png\"}]', 'fpo', 60, '2025-07-07 09:46:05', 141, '2025-07-07 09:46:05', 141, 31, 1, NULL),
(21, 'Farm-54_21', '17.385044', 2022, 'Own', 0, 'Macherla', 'Palnadu', 2587558, 0, 12, 10, '  ', '[{\"name\":\"Sample Land Ownership Paper - Agricultural Land\",\"date\":\"2025-07-10\",\"file\":\"uploads\\/entity_profile\\/54\\/farm\\/21\\/Document\\/1752129843_3ea023baeea1e3911494.pdf\"}]', 'fpo', 54, '2025-07-10 06:44:03', 135, '2025-07-29 07:38:56', 135, 32, 1, NULL),
(22, 'Farm-54_22', '17.325673', 2004, 'Own', 0, 'Hyderabad', 'Rangareddy', 5875, 0, 8, 5, ' Na ', '[{\"name\":\"Land Hyderabad\",\"date\":\"2025-07-01\",\"file\":\"uploads\\/entity_profile\\/54\\/farm\\/22\\/Document\\/1752131449_71b8ca29efc73b374609.pdf\"}]', 'fpo', 54, '2025-07-10 07:10:49', 135, '2025-07-29 07:38:49', 135, 32, 1, NULL),
(23, 'Farm-54_', '17.325673', 1999, 'Leasehold', 10, 'Hyderabad', 'Rangareddy', 5875, 0, 15, 12, '  ', NULL, 'fpo', 54, '2025-07-11 07:33:00', 135, '2025-07-29 07:38:40', 135, 32, 1, NULL),
(24, 'Farm-30_24', '17.325673', 2000, 'Own', 0, 'Macherla', 'Palnadu', 258752, 12, 12, 10, 'Na', '[{\"name\":\"Chilli\",\"date\":\"2025-07-02\",\"file\":\"uploads\\/entity_profile\\/30\\/farm\\/24\\/Document\\/1754029026_84236903873d60f36827.xlsx\"}]', 'farmers', 30, '2025-08-01 06:17:06', 145, '2025-08-01 06:17:06', 145, 30, 1, NULL);

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

--
-- Table structure for table `farmer_supervisors`
--

CREATE TABLE `farmer_supervisors` (
  `id` int(11) NOT NULL,
  `supervisor_id` varchar(255) NOT NULL,
  `Supervisory_From` varchar(255) NOT NULL,
  `Name_of_the_Supervisor` varchar(255) NOT NULL,
  `remark` varchar(255) NOT NULL,
  `entity_id` int(11) NOT NULL,
  `associated_by` varchar(50) NOT NULL,
  `created_by` int(11) NOT NULL,
  `updated_by` int(11) NOT NULL,
  `status` int(11) NOT NULL DEFAULT 1,
  `created_at` timestamp NOT NULL DEFAULT current_timestamp(),
  `updated_at` datetime NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp()
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

--
-- Dumping data for table `farmer_supervisors`
--

INSERT INTO `farmer_supervisors` (`id`, `supervisor_id`, `Supervisory_From`, `Name_of_the_Supervisor`, `remark`, `entity_id`, `associated_by`, `created_by`, `updated_by`, `status`, `created_at`, `updated_at`) VALUES
(1, 'F_S-49_6', 'subcontractors', '20', 'f', 49, 'fpo', 89, 89, 1, '2025-06-02 06:06:21', '2025-06-02 11:36:21'),
(2, 'F_S-47_9', 'subcontractors', '26', '  Good', 47, 'fpo', 82, 82, 1, '2025-06-02 09:24:49', '2025-06-24 13:42:36'),
(3, 'F_S-47_10', 'employee', '36', 'Good', 47, 'fpo', 82, 82, 1, '2025-06-04 11:10:50', '2025-06-04 11:10:50'),
(4, 'F_S-54_10', 'employee', '39', ' ', 54, 'fpo', 54, 135, 1, '2025-07-09 07:54:25', '2025-07-29 07:42:14'),
(5, 'F_S-54_10', 'employee', '39', ' ', 54, 'fpo', 135, 135, 1, '2025-07-09 07:55:43', '2025-07-29 07:42:09'),
(6, 'F_S-54_10', 'subcontractors', '27', ' Na', 54, 'fpo', 54, 135, 1, '2025-07-10 04:46:17', '2025-07-29 07:42:02');

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

--
-- Table structure for table `farm_crop_details`
--

CREATE TABLE `farm_crop_details` (
  `id` int(10) UNSIGNED NOT NULL,
  `farmer_id` int(10) UNSIGNED DEFAULT NULL COMMENT 'References farmers.id',
  `farm_id` int(10) UNSIGNED DEFAULT NULL COMMENT 'References farmer_land_details.id',
  `crop_id` int(10) UNSIGNED DEFAULT NULL COMMENT 'References Crop_master.id',
  `crop_name` text DEFAULT NULL,
  `produce_specs` varchar(50) DEFAULT NULL COMMENT 'Produce Specifications',
  `crop_qty_measure` varchar(20) DEFAULT NULL COMMENT 'Kilograms/Qunital/Tonnes/Pounds',
  `production_estimate_qty` decimal(10,2) DEFAULT NULL COMMENT 'Estimated production quantity',
  `crop_date` date DEFAULT NULL,
  `harvested_date` date DEFAULT NULL,
  `crop_sales_qty` decimal(10,2) DEFAULT NULL COMMENT 'Quantity sold',
  `sales_date` date DEFAULT NULL,
  `inventory_qty_location_wise` decimal(10,2) DEFAULT NULL COMMENT 'Inventory quantity by location',
  `season` enum('Kharif','Rabi','Zaid') DEFAULT NULL,
  `year` varchar(250) DEFAULT NULL,
  `crop_certification_standard` varchar(100) DEFAULT NULL,
  `remark` text DEFAULT NULL,
  `status` tinyint(1) DEFAULT 1,
  `associated_by` varchar(50) DEFAULT NULL,
  `entity_id` int(10) UNSIGNED DEFAULT NULL,
  `created_by` int(10) UNSIGNED DEFAULT NULL,
  `created_at` datetime DEFAULT current_timestamp(),
  `updated_by` int(10) UNSIGNED DEFAULT NULL,
  `updated_at` datetime DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `wastage_qty` decimal(10,0) DEFAULT NULL,
  `harvest_qty` decimal(10,0) DEFAULT NULL,
  `inventory_date` date DEFAULT NULL,
  `inventory_qty` decimal(10,0) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `farm_crop_details`
--

INSERT INTO `farm_crop_details` (`id`, `farmer_id`, `farm_id`, `crop_id`, `crop_name`, `produce_specs`, `crop_qty_measure`, `production_estimate_qty`, `crop_date`, `harvested_date`, `crop_sales_qty`, `sales_date`, `inventory_qty_location_wise`, `season`, `year`, `crop_certification_standard`, `remark`, `status`, `associated_by`, `entity_id`, `created_by`, `created_at`, `updated_by`, `updated_at`, `wastage_qty`, `harvest_qty`, `inventory_date`, `inventory_qty`) VALUES
(1, 11, 2, 2, NULL, 'gfgffdg', 'Qunital', 4.00, '2025-05-15', '2025-05-05', 454.00, '2025-05-07', 5454.00, 'Kharif', NULL, '454554', '    hfgh  ', 0, 'fpo', 33, 45, '2025-05-09 18:33:53', 45, '2025-05-29 16:27:48', NULL, NULL, NULL, NULL),
(2, 11, 3, 2, 'rise', 'gfgffdg', 'Qunital', 4.00, '2025-05-15', '2025-05-20', 454.00, '2025-05-07', 5454.00, 'Kharif', NULL, '454554', '', 1, 'fpo', 33, 45, '2025-05-09 18:34:13', 45, '2025-05-10 23:27:05', NULL, NULL, NULL, NULL),
(3, 11, 3, 3, 'weet,rise', 'gfgffdg', 'Kilograms', 454.00, '2025-05-07', '2025-05-05', 54534.00, '2025-05-21', 45.00, 'Kharif', NULL, '3fdsfds', '    dsfsdfdfdsf    ', 1, 'fpo', 33, 45, '2025-05-10 10:52:37', 45, '2025-05-11 09:02:31', NULL, NULL, NULL, NULL),
(4, 16, 8, 7, 'fdg,fg', 'High quality grain', 'Kilograms', 1500.50, '2024-07-01', '2024-12-01', 1300.00, '2025-01-05', 200.50, 'Kharif', NULL, 'Organic Certified', '  No pest issues reported sdfds ', 1, 'farmers', 16, 1, '2025-05-20 10:05:13', 71, '2025-05-20 19:38:18', NULL, NULL, NULL, NULL),
(5, 16, 4443, 7, 'fdg', 'High quality grain', 'Qunital', 45.00, '2025-05-05', '2025-05-07', 54.00, '2025-05-13', 546.00, 'Rabi', NULL, '2001', '54645', 1, 'farmers', 16, 71, '2025-05-21 07:02:50', 71, '2025-05-21 07:02:50', NULL, NULL, NULL, NULL),
(6, 16, 4443, 8, 'dfg', 'df', 'Kilograms', 4567.00, '2025-05-06', '2025-05-14', 67.00, '2025-05-13', 65.00, 'Kharif', NULL, '2001', '657', 1, 'farmers', 16, 71, '2025-05-21 07:08:20', 71, '2025-05-21 07:08:20', NULL, NULL, NULL, NULL),
(7, 15, 10, 13, '676', 'gfgffdg', 'Qunital', 5.00, '2025-05-06', '2025-05-07', 0.00, NULL, NULL, 'Kharif', '2025', '', '    ', 1, 'farmers', 15, 64, '2025-05-29 01:17:53', 64, '2025-05-29 02:28:40', NULL, NULL, NULL, NULL),
(8, 15, 11, 14, 'fdgfdgfd,fgfdgdf', '', NULL, 0.00, '0000-00-00', '0000-00-00', 0.00, NULL, NULL, NULL, '2009', '', '', 1, 'farmers', 15, 64, '2025-05-29 04:05:02', 64, '2025-05-29 04:05:02', NULL, NULL, NULL, NULL),
(9, 11, 12, 15, 'fdgfdg,gf', 'gfhghfg', NULL, 4565.00, '2025-05-21', '2025-05-04', 5.00, NULL, NULL, 'Kharif', '2015', '', '  ', 1, 'farmers', 11, 61, '2025-05-29 16:14:26', 61, '2025-05-29 16:32:55', NULL, NULL, NULL, NULL),
(10, 11, 12, 2, 'ggjj,mk', '', NULL, 0.00, '0000-00-00', '0000-00-00', 0.00, NULL, NULL, NULL, '2025', '', '', 1, 'fpo', 33, 45, '2025-05-29 16:26:01', 45, '2025-05-29 16:26:01', NULL, NULL, NULL, NULL),
(11, 11, 12, 2, 'ggjj,mk,jh', '', NULL, 0.00, '0000-00-00', '0000-00-00', 0.00, NULL, NULL, NULL, '2025', '', '', 1, 'fpo', 33, 45, '2025-05-29 16:26:37', 45, '2025-05-29 16:26:37', NULL, NULL, NULL, NULL),
(12, 11, 12, 2, 'ggjj,mk,jh', '', NULL, 0.00, '0000-00-00', '0000-00-00', 0.00, NULL, NULL, NULL, '2025', '', '', 1, 'fpo', 33, 45, '2025-05-29 16:28:32', 45, '2025-05-29 16:28:32', NULL, NULL, NULL, NULL),
(13, 11, 12, 3, 'rise,weet,frute', '', NULL, 0.00, '0000-00-00', '0000-00-00', 0.00, NULL, NULL, NULL, '2025', '', '', 1, 'fpo', 33, 45, '2025-05-30 08:21:31', 45, '2025-05-30 08:21:31', NULL, NULL, NULL, NULL),
(14, 17, 14, 18, 'Leaves', 'Leaves', NULL, 20.00, '2025-01-20', '2025-06-01', 18.00, NULL, NULL, 'Kharif', '2025', '', ' Good ', 1, 'fpo', 47, 82, '2025-06-02 14:44:58', 82, '2025-06-03 05:28:01', NULL, NULL, NULL, NULL),
(15, 23, 16, 20, 'Leaves', 'Dhall', 'Kilograms', 23.00, '2025-01-13', '2025-05-20', 34.00, NULL, NULL, 'Kharif', '2025', 'ISO9001', 'Good', 1, 'farmers', 23, 112, '2025-06-03 05:38:49', 112, '2025-06-03 05:38:49', NULL, NULL, NULL, NULL),
(16, 17, 14, 18, 'Leaves', 'Basmathi', 'Kilograms', 56.00, '2025-01-20', '2025-03-10', 56.00, NULL, NULL, 'Rabi', '2025', 'ISO9001', ' Good  ', 1, 'fpo', 47, 82, '2025-06-04 10:58:48', 47, '2025-07-07 09:05:33', NULL, NULL, NULL, NULL),
(17, 28, 18, 21, 'Chilli', 'chilli Teja ', 'Qunital', 100.00, '2025-06-16', '2025-06-18', 100.00, NULL, NULL, 'Kharif', '2025', '', ' Na ', 1, 'fpo', 54, 135, '2025-06-18 05:47:53', 135, '2025-07-29 07:39:15', 0, 0, '0000-00-00', 0),
(18, 31, 20, 24, 'test', 'Basmathi', 'Kilograms', 100.00, '2025-07-07', '2025-07-07', 10.00, NULL, NULL, 'Kharif', '2025', 'ISO9001', '     test     ', 1, 'fpo', 60, 141, '2025-07-07 09:51:01', 141, '2025-07-07 10:07:09', 10, 90, '2025-07-07', 70),
(19, 31, 20, 24, 'test', 'Basmathi', 'Kilograms', 250.00, '2025-07-07', '2025-07-07', 20.00, NULL, NULL, 'Kharif', '2024', 'ISO9001', '  test  ', 1, 'fpo', 60, 141, '2025-07-07 10:41:42', 141, '2025-07-07 10:43:39', 20, 200, '2025-07-07', 140),
(20, 32, 21, 25, 'Paddy', 'Complies with national food safety and export qual', 'Qunital', 500.00, '2025-07-01', '2025-07-09', 90.00, NULL, NULL, 'Rabi', '2025', 'GAP', ' NA ', 1, 'fpo', 54, 135, '2025-07-10 06:46:04', 135, '2025-07-29 07:39:07', 5, 90, '2025-07-09', 95),
(21, 30, 24, 22, 'chilli', 'chilli Teja ', 'Qunital', 1000.00, '2025-05-01', '2025-08-01', 900.00, NULL, NULL, 'Kharif', '2007', 'GAP', 'Na', 1, 'farmers', 30, 145, '2025-08-01 06:39:48', 145, '2025-08-01 06:39:48', NULL, NULL, NULL, NULL);

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

--
-- Table structure for table `farm_inspection`
--

CREATE TABLE `farm_inspection` (
  `id` int(10) UNSIGNED NOT NULL,
  `farmer_id` int(10) UNSIGNED NOT NULL,
  `farm_id` int(10) UNSIGNED NOT NULL,
  `crop_id` int(10) UNSIGNED NOT NULL,
  `crop_name` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `season` enum('Kharif','Rabi','Zaid') CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `year` int(11) NOT NULL,
  `Record_Date` date NOT NULL,
  `Inspection_Date` date NOT NULL,
  `Inspector_Name` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `Non-Conformities_Reported` varchar(250) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `Corrective_Actions_Taken` varchar(250) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `Corrective_Action_Approved_and_Closed` varchar(250) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `documents` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `remark` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `status` tinyint(1) NOT NULL DEFAULT 1,
  `associated_by` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `entity_id` int(10) UNSIGNED NOT NULL,
  `created_by` int(10) UNSIGNED NOT NULL,
  `created_at` datetime NOT NULL DEFAULT current_timestamp(),
  `updated_by` int(10) UNSIGNED NOT NULL,
  `updated_at` datetime NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `inspection_status` int(11) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

--
-- Dumping data for table `farm_inspection`
--

INSERT INTO `farm_inspection` (`id`, `farmer_id`, `farm_id`, `crop_id`, `crop_name`, `season`, `year`, `Record_Date`, `Inspection_Date`, `Inspector_Name`, `Non-Conformities_Reported`, `Corrective_Actions_Taken`, `Corrective_Action_Approved_and_Closed`, `documents`, `remark`, `status`, `associated_by`, `entity_id`, `created_by`, `created_at`, `updated_by`, `updated_at`, `inspection_status`) VALUES
(1, 17, 14, 18, 'Leaves', 'Kharif', 2025, '2025-01-20', '2025-06-02', 'Vivek', 'Not Bad', 'Yes', 'Closed', '', 'Good', 1, 'fpo', 47, 82, '2025-06-02 15:04:22', 82, '2025-06-02 15:04:22', 0),
(2, 17, 14, 18, 'Leaves', 'Rabi', 2025, '2025-06-02', '2025-06-04', 'Prabakaran', 'Arjun', 'Shankar', 'Raghuvaran', '', 'Good only', 1, 'fpo', 47, 82, '2025-06-04 11:18:51', 82, '2025-06-04 11:18:51', 0),
(3, 28, 18, 25, 'Paddy', 'Rabi', 2025, '2025-07-01', '2025-07-02', 'Guna', 'Pesticide drums found without secondary containment; labels faded Sown seed variety not recorded in field logbook Rice threshers and sickles were not cleaned before harvest Missing dosage details for urea application in May batch ', 'Secondary containment trays installed; all faded labels replaced with new waterproof labels Field logbook updated with seed variety, lot number, and purchase source Tools cleaned and SOP posted in tool shed; staff instructed on cleaning before harves', 'All reported non-conformities have been addressed satisfactorily. Documentation and visual inspections confirm effective implementation. Preventive systems are now in place to avoid recurrence.', '[{\"name\":\"Paddy_Audit_Report_GreenHarvest_July2025\",\"date\":\"2025-07-10\",\"file\":\"uploads\\/entity_profile\\/54\\/farm_inspection\\/3\\/documants\\/1752126738_1fcc45062924b0b1d0be.pdf\"}]', 'he farm has shown responsiveness and commitment to compliance.\r\n\r\nAll non-conformities have been addressed with supporting documentation and on-site verification.\r\n\r\nPreventive measures (such as SOPs, logs, and training) are now in place and functioning.', 1, 'fpo', 54, 135, '2025-07-10 05:52:18', 135, '2025-07-29 09:08:50', NULL);

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

--
-- Table structure for table `fpo_otherdocs_reports`
--

CREATE TABLE `fpo_otherdocs_reports` (
  `id` int(11) NOT NULL,
  `certification_standard` enum('IndGAP','Global GAP','Organic NPOP','Organic NOP') DEFAULT NULL,
  `plant_protection_products` varchar(250) DEFAULT NULL,
  `fertilizers_micro_nutrients` varchar(250) DEFAULT NULL,
  `organic_inputs` varchar(250) DEFAULT NULL,
  `seeds_propagation_material` varchar(250) DEFAULT NULL,
  `sampling_date` date NOT NULL,
  `qty_collected` int(11) DEFAULT NULL,
  `who_collected` varchar(50) DEFAULT NULL,
  `test_report_date` date DEFAULT NULL,
  `lab_name` varchar(50) DEFAULT NULL,
  `lab_type` enum('Internal','External') DEFAULT NULL,
  `report_result` enum('Positive','Negative') DEFAULT NULL,
  `report_summary` varchar(250) DEFAULT NULL,
  `remarks` varchar(250) DEFAULT NULL,
  `document` text NOT NULL,
  `created_at` timestamp NOT NULL DEFAULT current_timestamp(),
  `updated_at` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `created_by` int(11) NOT NULL,
  `updated_by` int(11) NOT NULL,
  `status` int(11) NOT NULL DEFAULT 1,
  `associated_by` varchar(10) NOT NULL,
  `entity_id` int(11) NOT NULL,
  `farmer_id` int(11) DEFAULT NULL,
  `farm_id` int(11) DEFAULT NULL,
  `crop_id` text DEFAULT NULL,
  `others` varchar(255) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `fpo_otherdocs_reports`
--

INSERT INTO `fpo_otherdocs_reports` (`id`, `certification_standard`, `plant_protection_products`, `fertilizers_micro_nutrients`, `organic_inputs`, `seeds_propagation_material`, `sampling_date`, `qty_collected`, `who_collected`, `test_report_date`, `lab_name`, `lab_type`, `report_result`, `report_summary`, `remarks`, `document`, `created_at`, `updated_at`, `created_by`, `updated_by`, `status`, `associated_by`, `entity_id`, `farmer_id`, `farm_id`, `crop_id`, `others`) VALUES
(1, 'IndGAP', 'Fire safety', 'Nutrients', 'Oraganic', 'Metrials', '2025-04-29', 20, 'Shanmugam', '2025-02-18', 'Ganesh Lab', 'Internal', 'Positive', 'Good', '', '', '2025-06-02 09:26:41', '2025-06-03 00:15:15', 82, 82, 1, 'fpo', 47, NULL, NULL, '0', NULL),
(2, 'IndGAP', '', '', '', '', '2025-06-03', 23, 'Shanmugam', '2025-06-04', 'Indra Lab', 'Internal', 'Positive', 'Good', NULL, '', '2025-06-05 12:35:30', '2025-06-05 12:35:30', 82, 82, 1, 'fpo', 47, 17, 14, '0', ''),
(3, 'IndGAP', '', '', '', '', '2025-07-02', 0, '', '0000-00-00', '', NULL, NULL, '', NULL, '', '2025-07-02 04:41:15', '2025-07-02 04:48:42', 54, 54, 0, 'fpo', 54, 28, 18, NULL, ''),
(4, 'IndGAP', '', '', '', '', '2025-07-02', 0, '', '0000-00-00', '', NULL, NULL, '', NULL, '', '2025-07-02 04:44:54', '2025-07-02 04:48:47', 54, 54, 0, 'fpo', 54, 28, 18, NULL, ''),
(5, 'IndGAP', '', '', '', '', '2025-07-02', 0, '', '0000-00-00', '', NULL, NULL, '', NULL, '', '2025-07-02 04:46:36', '2025-07-02 04:48:51', 54, 54, 0, 'fpo', 54, 28, 18, NULL, ''),
(6, 'IndGAP', '', '', '', '', '2025-07-02', 0, '', '0000-00-00', '', NULL, NULL, '', NULL, '', '2025-07-02 04:49:08', '2025-07-02 04:50:09', 54, 54, 0, 'fpo', 54, 28, NULL, '21', ''),
(7, 'IndGAP', '', '', '', '', '2025-07-02', 0, '', '0000-00-00', '', '', '', '', '', '', '2025-07-02 04:50:41', '2025-07-29 07:43:12', 54, 135, 1, 'fpo', 54, 28, 18, '21', ''),
(8, 'Global GAP', 'Urea .DAP', 'Nitrogen (N) Phosphorus (P) Zinc (Zn) Iron (Fe)  Manganese (Mn)', 'Vermicompost  Green Manure  Neem Cake / Castor Cake', 'Hybrid tomatoes, Chili', '2025-07-01', 0, 'ANJIREDDY', '2025-07-04', 'TESTING ', 'Internal', 'Positive', 'Na', '', '', '2025-07-09 10:17:25', '2025-07-29 07:42:57', 135, 135, 1, 'fpo', 54, 28, 18, '21', '');

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

--
-- Table structure for table `impact_creation`
--

CREATE TABLE `impact_creation` (
  `id` int(11) NOT NULL,
  `market_access_gained` varchar(250) NOT NULL,
  `premium_price_achieved` varchar(250) DEFAULT NULL,
  `impact_on_fp_income` varchar(250) NOT NULL,
  `impact_on_farmers_income` varchar(250) NOT NULL,
  `new_opportunities_identified` varchar(250) NOT NULL,
  `remark` varchar(255) NOT NULL,
  `documents` text NOT NULL,
  `entity_id` int(11) NOT NULL,
  `associated_by` varchar(50) NOT NULL,
  `created_by` int(11) NOT NULL,
  `updated_by` int(11) NOT NULL,
  `status` int(11) NOT NULL DEFAULT 1,
  `created_at` timestamp NOT NULL DEFAULT current_timestamp(),
  `updated_at` datetime NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp()
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

--
-- Dumping data for table `impact_creation`
--

INSERT INTO `impact_creation` (`id`, `market_access_gained`, `premium_price_achieved`, `impact_on_fp_income`, `impact_on_farmers_income`, `new_opportunities_identified`, `remark`, `documents`, `entity_id`, `associated_by`, `created_by`, `updated_by`, `status`, `created_at`, `updated_at`) VALUES
(1, 'df', 'sdfds', '6765', '65765', '756', '657rt', '[{\"name\":\"6657\",\"date\":\"2025-06-02\",\"file\":\"uploads\\/entity_profile\\/49\\/impact_creation\\/1\\/documants\\/1748864974_235d519b4b583fb31eab.pdf\"}]', 49, 'fpo', 89, 89, 1, '2025-06-02 06:19:34', '2025-06-02 11:49:41'),
(2, 'Yes', '', 'Acheived', 'Yes', 'Yes', 'Good only', '[{\"name\":\"Agreement\",\"date\":\"2025-06-02\",\"file\":\"uploads\\/entity_profile\\/47\\/impact_creation\\/2\\/documants\\/1749017003_6f0d9facb246d4602901.pdf\"}]', 47, 'fpo', 82, 82, 1, '2025-06-04 06:03:23', '2025-06-04 06:03:23'),
(3, 'Yes', '', 'Yes', 'Yes', 'Yes', 'Good only', '[{\"name\":\"Agreement\",\"date\":\"2025-06-03\",\"file\":\"uploads\\/entity_profile\\/47\\/impact_creation\\/3\\/documants\\/1749036139_0206eb693e404883d9c8.pdf\"}]', 47, 'fpo', 82, 82, 1, '2025-06-04 11:22:19', '2025-06-04 11:22:19'),
(4, 'The improvements made post-audit have positioned the farm to access higher-value markets and secure long-term buyer confidence. Continued adherence to SOPs and traceability practices will support further market expansion.', 'yes', 'yes', 'yes', 'Reassess market access results in 6 months', 'Na', '[{\"name\":\"Paddy_Audit_Report_With_Impact_GreenHarvest_July2025\",\"date\":\"2025-07-10\",\"file\":\"uploads\\/entity_profile\\/54\\/impact_creation\\/4\\/documants\\/1752127416_872fa8b1f3b844983a63.pdf\"}]', 54, 'fpo', 135, 135, 1, '2025-07-10 06:03:36', '2025-07-29 09:10:43');

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

--
-- Table structure for table `implementation_compliance`
--

CREATE TABLE `implementation_compliance` (
  `id` int(11) NOT NULL,
  `section_data` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL CHECK (json_valid(`section_data`)),
  `created_at` datetime DEFAULT current_timestamp(),
  `updated_at` datetime DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `status` int(11) NOT NULL DEFAULT 1,
  `entity_id` int(11) NOT NULL,
  `associated_by` varchar(30) NOT NULL,
  `created_by` int(11) NOT NULL,
  `updated_by` int(11) NOT NULL,
  `upload_type` varchar(50) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `implementation_compliance`
--

INSERT INTO `implementation_compliance` (`id`, `section_data`, `created_at`, `updated_at`, `status`, `entity_id`, `associated_by`, `created_by`, `updated_by`, `upload_type`) VALUES
(20, '[{\"heading\":\"sdsadas\",\"upload_type\":\"file\",\"file_path\":\"uploads\\/entity_profile\\/64\\/Implementation_compliance\\/temp\\/1754671528_a124a98320711107306d.png\",\"link\":null,\"requirement_clause\":\"dfsdffdsffdf\",\"implementation\":\"dfsdfs\",\"remarks\":\"dfsdfsdf\"},{\"heading\":\"rrr\",\"upload_type\":\"link\",\"file_path\":null,\"link\":\"http:\\/\\/localhost\\/krishgap_silambu_updated\\/trace-audit_07_08\\/Fpo\\/add_ImplementationCompliance\",\"requirement_clause\":\"fdsfsddsfdsf\",\"implementation\":\"dfdsfds\",\"remarks\":\"dfsdf\"}]', '2025-08-08 16:45:28', '2025-08-10 00:07:12', 0, 64, 'fpo', 157, 157, ''),
(21, '{\"main_clause\":{\"clause_no\":\"5\",\"requirement\":\"Leadership\",\"implementation\":\"\",\"input_type\":\"\",\"link\":null,\"file_path\":null,\"remark\":\"\"},\"subclauses\":[{\"clause_no\":\"5.1\",\"requirement\":\"Leadership and commitment\",\"implementation\":\"5.1\\tLeadership and commitment\\t1. Establishing Food safety policy & objectives.\\r\\n2. Compliance to applicable statutory, regulatory and customer requirements. \\r\\n3. Providing resources.\",\"input_type\":\"\",\"link\":null,\"file_path\":null,\"remark\":\"\"},{\"clause_no\":\"5.2\",\"requirement\":\"Policy\",\"implementation\":\"\",\"input_type\":\"\",\"link\":null,\"file_path\":null,\"remark\":\"\"},{\"clause_no\":\"5.2.1.\",\"requirement\":\"Establishing the food safety policy and communication of the policy.\",\"implementation\":\"Food safety policy to be documented and established. Policy to be communicated and understood at all levels in the organisation.\",\"input_type\":\"link\",\"link\":\"https://www.krishigap.com/steps_in_obtaining_certificate.php\",\"file_path\":null,\"remark\":\"Document 01 - FS Policy\"},{\"clause_no\":\"5.3\",\"requirement\":\"Organizational roles, responsibilities and authorities\",\"implementation\":\"\",\"input_type\":\"\",\"link\":null,\"file_path\":null,\"remark\":\"\"},{\"clause_no\":\"5.3.1.\",\"requirement\":\"Top management shall ensure that the responsibilities and authorities for relevant roles are assigned, communicated and understood within the organization.\",\"implementation\":\"Organization chart indicating all positions in the organization.\\r\\n\\r\\nDefine the responsibilities and authorities for all posts and its communication.  (Job Descriptions)\",\"input_type\":\"link\",\"link\":\"https://www.krishigap.com/steps_in_obtaining_certificate.php\",\"file_path\":null,\"remark\":\"Document 02 - Organization chart\"},{\"clause_no\":\"5.3.2.\",\"requirement\":\"Appointing the food safety team and the food safety team leader\",\"implementation\":\"Appointing Food Safety team and team leader.\",\"input_type\":\"\",\"link\":null,\"file_path\":null,\"remark\":\"\"}]}', '2025-08-09 18:39:29', '2025-08-11 13:58:46', 1, 64, 'fpo', 157, 157, ''),
(22, '{\"main_clause\":{\"clause_no\":\"5\",\"requirement\":\"Leadership\",\"implementation\":\"\",\"input_type\":\"\",\"link\":null,\"file_path\":null,\"remark\":\"\"},\"subclauses\":[{\"clause_no\":\"5.1\",\"requirement\":\"Leadership and commitment\",\"implementation\":\"5.1\\tLeadership and commitment\\t1. Establishing Food safety policy & objectives.\\r\\n2. Compliance to applicable statutory, regulatory and customer requirements. \\r\\n3. Providing resources.\",\"input_type\":\"\",\"link\":null,\"file_path\":null,\"remark\":\"\"},{\"clause_no\":\"5.2\",\"requirement\":\"Policy\",\"implementation\":\"\",\"input_type\":\"\",\"link\":null,\"file_path\":null,\"remark\":\"\"},{\"clause_no\":\"5.2.1.\",\"requirement\":\"Establishing the food safety policy and communication of the policy.\",\"implementation\":\"Food safety policy to be documented and established. Policy to be communicated and understood at all levels in the organisation.\",\"input_type\":\"link\",\"link\":\"https://www.krishigap.com/steps_in_obtaining_certificate.php\",\"file_path\":null,\"remark\":\"Document 01 - FS Policy\"},{\"clause_no\":\"5.3\",\"requirement\":\"Organizational roles, responsibilities and authorities\",\"implementation\":\"\",\"input_type\":\"\",\"link\":null,\"file_path\":null,\"remark\":\"\"},{\"clause_no\":\"5.3.1.\",\"requirement\":\"Top management shall ensure that the responsibilities and authorities for relevant roles are assigned, communicated and understood within the organization.\",\"implementation\":\"Organization chart indicating all positions in the organization.\\r\\n\\r\\nDefine the responsibilities and authorities for all posts and its communication.  (Job Descriptions)\",\"input_type\":\"link\",\"link\":\"https://www.krishigap.com/steps_in_obtaining_certificate.php\",\"file_path\":null,\"remark\":\"Document 02 - Organization chart\"},{\"clause_no\":\"5.3.2.\",\"requirement\":\"Appointing the food safety team and the food safety team leader\",\"implementation\":\"Appointing Food Safety team and team leader.\",\"input_type\":\"\",\"link\":null,\"file_path\":null,\"remark\":\"\"}]}', '2025-08-10 16:52:51', '2025-08-11 13:58:38', 1, 39, 'organisation', 59, 59, ''),
(23, '{\"main_clause\":{\"clause_no\":\"5\",\"requirement\":\"Leadership\",\"implementation\":\"\",\"remark\":\"\",\"input_type\":\"\",\"link\":null,\"file_path\":null},\"subclauses\":[{\"clause_no\":\"5.1\",\"requirement\":\"Leadership and commitment\",\"implementation\":\"5.1\\tLeadership and commitment\\t1. Establishing Food safety policy & objectives.\\r\\n2. Compliance to applicable statutory, regulatory and customer requirements. \\r\\n3. Providing resources.\",\"input_type\":\"\",\"link\":null,\"file_path\":null,\"remark\":\"\"},{\"clause_no\":\"5.2\",\"requirement\":\"Policy\",\"implementation\":\"\",\"input_type\":\"\",\"link\":null,\"file_path\":null,\"remark\":\"\"},{\"clause_no\":\"5.2.1.\",\"requirement\":\"Establishing the food safety policy and communication of the policy.\",\"implementation\":\"Food safety policy to be documented and established. Policy to be communicated and understood at all levels in the organisation.\",\"input_type\":\"link\",\"link\":\"https:\\/\\/www.krishigap.com\\/steps_in_obtaining_certificate.php\",\"file_path\":null,\"remark\":\"Document 01 - FS Policy\"},{\"clause_no\":\"5.3\",\"requirement\":\"Organizational roles, responsibilities and authorities\",\"implementation\":\"\",\"input_type\":\"\",\"link\":null,\"file_path\":null,\"remark\":\"\"},{\"clause_no\":\"5.3.1.\",\"requirement\":\"Top management shall ensure that the responsibilities and authorities for relevant roles are assigned, communicated and understood within the organization.\",\"implementation\":\"Organization chart indicating all positions in the organization.\\r\\n\\r\\nDefine the responsibilities and authorities for all posts and its communication.  (Job Descriptions)\",\"input_type\":\"link\",\"link\":\"https:\\/\\/www.krishigap.com\\/steps_in_obtaining_certificate.php\",\"file_path\":null,\"remark\":\"Document 02 - Organization chart\"},{\"clause_no\":\"5.3.2.\",\"requirement\":\"Appointing the food safety team and the food safety team leader\",\"implementation\":\"Appointing Food Safety team and team leader.\",\"input_type\":\"\",\"link\":null,\"file_path\":null,\"remark\":\"\"},{\"clause_no\":\"ram\",\"requirement\":\"sdasd\",\"implementation\":\"dsadasd\",\"remark\":\"sadsadas\",\"input_type\":\"\",\"link\":null,\"file_path\":\"\",\"is_heading\":false}]}', '2025-08-11 07:18:35', '2025-08-12 07:06:47', 1, 64, 'fpo', 157, 157, ''),
(24, '{\"main_clause\":{\"clause_no\":\"5\",\"requirement\":\"Leadership\",\"implementation\":\"\",\"remark\":\"\",\"input_type\":\"\",\"link\":null,\"file_path\":null},\"subclauses\":[{\"clause_no\":\"5.1\",\"requirement\":\"Leadership and Commitment\",\"implementation\":\"1. Establishing Food safety policy & objectives.\\r\\n2. Compliance to applicable statutory, regulatory and customer requirements. \\r\\n3. Providing resources.\",\"input_type\":\"\",\"link\":null,\"file_path\":null,\"remark\":\"\"},{\"clause_no\":\"5.2\",\"requirement\":\"Policy\",\"implementation\":\"\",\"input_type\":\"\",\"link\":null,\"file_path\":null,\"remark\":\"\"},{\"clause_no\":\"5.2.1.\",\"requirement\":\"Establishing the food safety policy and communication of the policy.\",\"implementation\":\"Food safety policy to be documented and established. Policy to be communicated and understood at all levels in the organisation.\",\"input_type\":\"link\",\"link\":\"https:\\/\\/www.krishigap.com\\/home3.php\",\"file_path\":null,\"remark\":\"Document 01 - FS Policy\"},{\"clause_no\":\"5.3\",\"requirement\":\"Organizational roles, responsibilities and authorities\",\"implementation\":\"\",\"input_type\":\"\",\"link\":null,\"file_path\":null,\"remark\":\"\"},{\"clause_no\":\"5.3.1.\",\"requirement\":\"Top management shall ensure that the responsibilities and authorities for relevant roles are assigned, communicated and understood within the organization.\",\"implementation\":\"Organization chart indicating all positions in the organization.\\r\\n\\r\\nDefine the responsibilities and authorities for all posts and its communication.  (Job Descriptions)\",\"input_type\":\"link\",\"link\":\"https:\\/\\/www.krishigap.com\\/home3.php\",\"file_path\":null,\"remark\":\"Document 02 - Organization chart\"},{\"clause_no\":\"5.3.2.\",\"requirement\":\"Appointing the food safety team and the food safety team leader\",\"implementation\":\"Appointing Food Safety team and team leader.\",\"input_type\":\"\",\"link\":null,\"file_path\":null,\"remark\":\"\"},{\"clause_no\":\"6\",\"requirement\":\"Test\",\"implementation\":\"Test\",\"remark\":\"Test\",\"input_type\":\"file\",\"link\":null,\"file_path\":\"uploads\\/entity_profile\\/59\\/Implementation_compliance\\/24\\/sub\\/6\\/1754971953_8fd7a75a9403aaf7e266.docx\"}]}', '2025-08-12 04:03:30', '2025-08-12 04:12:33', 1, 59, 'organisation', 59, 59, ''),
(25, '{\"main_clause\":{\"clause_no\":\"Leadership\",\"requirement\":\"Leadership\",\"implementation\":\"Leadership\",\"remark\":\"Leadership\",\"input_type\":\"file\",\"link\":null,\"file_path\":\"uploads\\/entity_profile\\/64\\/Implementation_compliance\\/25\\/main\\/1754978104_43ab3e3003affef268e0.png\"},\"subclauses\":[{\"clause_no\":\"100\",\"requirement\":\"Leadership and commitment\",\"implementation\":\"Leadership and commitment\",\"remark\":\"Leadership and commitment\",\"input_type\":\"link\",\"link\":\"https:\\/\\/trace-audit.thehismart.com\\/\",\"file_path\":null}]}', '2025-08-12 05:52:07', '2025-08-12 07:14:25', 1, 64, 'fpo', 157, 157, ''),
(26, '{\"main_clause\":{\"clause_no\":\"FV-Smart 01.01\",\"requirement\":\"A procedure is in place to manage and control documents and records.\",\"implementation\":\"Refer to Document Control Procedure indicated in link P-25 (Procedure For Document and Data Control) and maintain all documents accordingly.\",\"input_type\":\"\",\"link\":null,\"file_path\":null,\"remark\":\"\"},\"subclauses\":[]}', '2025-08-12 09:32:52', '2025-08-12 09:32:52', 1, 54, 'fpo', 135, 135, ''),
(27, '{\"main_clause\":{\"clause_no\":\"FV-Smart 01.02\",\"requirement\":\"Records for auditing purposes are up-to-date. Records are kept for a minimum period of two years, unless a longer period is required.\",\"implementation\":\"Refer to Document Control Procedure indicated in link P-25 (Procedure For Document and Data Control) and maintain all documents accordingly.\",\"input_type\":\"\",\"link\":null,\"file_path\":null,\"remark\":\"\"},\"subclauses\":[]}', '2025-08-12 09:33:42', '2025-08-12 09:33:42', 1, 54, 'fpo', 135, 135, ''),
(28, '{\"main_clause\":{\"clause_no\":\"FV-Smart 01.03\",\"requirement\":\"The producer completes a minimum of one self-assessment / internal audit annually to the standard.\",\"implementation\":\"The self-assessment is to be carried out for option 1 by the applicant himself or take support, as per the this checklist; Whereas for option 2 it is carried out by internal farm audit inspector using this checklist, at least once a year and in any case before the CB audit is carried out.\\r\\n\\r\\nComments to be recorded against all principles based on evidence available. For detailed guidance please refer GG GR - rules for producer groups and multisite producer groups.\",\"input_type\":\"\",\"link\":null,\"file_path\":null,\"remark\":\"\"},\"subclauses\":[]}', '2025-08-12 09:34:36', '2025-08-12 09:34:36', 1, 54, 'fpo', 135, 135, ''),
(29, '{\"main_clause\":{\"clause_no\":\"FV-Smart 01.04\",\"requirement\":\"Effective corrective actions are taken to address non-conformances detected during the self-assessments/internal audits.\",\"implementation\":\"Corrective action for NCs observed during internal self-assessment to be carried out to meet compliance requirements - 100% for all applicable major musts and at least 95% of all applicable minor musts.\",\"input_type\":\"file\",\"link\":null,\"file_path\":\"uploads/entity_profile/54/Implementation_compliance/main_1754991366_1754991366_5d49f6155a66ab03b7ce.docx\",\"remark\":\"\"},\"subclauses\":[]}', '2025-08-12 09:36:06', '2025-08-12 09:36:06', 1, 54, 'fpo', 135, 135, '');

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

--
-- Table structure for table `internal_audit`
--

CREATE TABLE `internal_audit` (
  `id` int(11) NOT NULL,
  `audit_id` text NOT NULL,
  `audit_category` text NOT NULL,
  `record_date` date NOT NULL,
  `location` text NOT NULL,
  `audit_for` text NOT NULL,
  `audit_type` text NOT NULL,
  `department` int(11) NOT NULL,
  `internalAudit_schedule` varchar(250) NOT NULL,
  `internalAudit_scope` varchar(250) NOT NULL,
  `internalAudit_checklist_used` varchar(250) NOT NULL,
  `internal_non_conformities_reported` varchar(250) NOT NULL,
  `internal_opportunities_for_improvement` varchar(250) NOT NULL,
  `internal_corrective_actions_taken` varchar(250) NOT NULL,
  `internal_corrective_actions_closed` varchar(250) NOT NULL,
  `internal_final_audit_report` varchar(250) NOT NULL,
  `description` varchar(250) NOT NULL,
  `remark` varchar(250) NOT NULL,
  `auditors` text NOT NULL,
  `internal_auditee_representative` text NOT NULL,
  `documants` text NOT NULL,
  `entity_id` int(11) NOT NULL,
  `associated_by` text NOT NULL,
  `created_by` int(11) NOT NULL,
  `updated_by` int(11) NOT NULL,
  `status` int(11) NOT NULL DEFAULT 1,
  `created_at` timestamp NOT NULL DEFAULT current_timestamp(),
  `updated_at` datetime NOT NULL DEFAULT '0000-00-00 00:00:00' ON UPDATE current_timestamp(),
  `year` int(11) DEFAULT NULL,
  `due_date` date DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `internal_audit`
--

INSERT INTO `internal_audit` (`id`, `audit_id`, `audit_category`, `record_date`, `location`, `audit_for`, `audit_type`, `department`, `internalAudit_schedule`, `internalAudit_scope`, `internalAudit_checklist_used`, `internal_non_conformities_reported`, `internal_opportunities_for_improvement`, `internal_corrective_actions_taken`, `internal_corrective_actions_closed`, `internal_final_audit_report`, `description`, `remark`, `auditors`, `internal_auditee_representative`, `documants`, `entity_id`, `associated_by`, `created_by`, `updated_by`, `status`, `created_at`, `updated_at`, `year`, `due_date`) VALUES
(6, 'erer', 'Initial', '2025-04-09', 'dfsdfdf', '{\"Storage_Details\":[\"5\"]}', '{\"Compliance\":null}', 1, 'sfdfsdf', 'sdfsd', 'fsdf', 'sdfs', 'dfdsfsd', 'fsdf', 'dsf', 'dsfsdf', '\r\nfdsfdf\r\n                             ', '\r\nfdsfdf\r\n                             ', '[{\"name\":\"dsfdsf\",\"file\":\"uploads\\/entity_profile\\/15\\/Internal_audit\\/6\\/auditor\\/1745750016_0956563fa42bc93e8bb4.jpg\"}]', '[\"fdsfdsfsdf\"]', '[{\"name\":\"adsfdsf\",\"date\":\"2025-04-14\",\"file\":\"uploads\\/entity_profile\\/15\\/Product_sampling\\/6\\/documants\\/1745750016_97dc3dd33a445e1e32fa.jpg\"}]', 15, 'organisation', 1, 1, 0, '2025-04-27 05:03:36', '2025-04-27 20:13:44', NULL, NULL),
(7, 'werwerewr', 'Initial', '2025-04-22', 'Factory_builidings', '{\"Storage_Details\":[\"5\"]}', '{\"Financial\":null}', 1, 'fgdfgdffd', 'gdfgd', 'fgdfg', 'dfgdf', 'gdfgfdg', 'fdgfd', 'gfdg', 'dfgdf', 'dfgdfgdfg\r\n\r\n                             ', 'dfgdfgdfg\r\n\r\n                             ', '[{\"name\":\"fdgdfgdfgdf\",\"file\":\"uploads\\/entity_profile\\/15\\/Internal_audit\\/7\\/auditor\\/1745750074_c9007ccbb41b859eb9eb.jpg\"},{\"name\":\"ereee\",\"file\":\"uploads\\/entity_profile\\/15\\/Internal_audit\\/7\\/auditor\\/1745763768_681c6f76885c8a0db78e.jpg\"}]', '[\"fgdfgfdgfd\"]', '[{\"name\":\"fgsgfsg\",\"date\":\"2025-04-29\",\"file\":\"uploads\\/entity_profile\\/15\\/Product_sampling\\/7\\/documants\\/1745750074_029eb57be932dc27c9db.jpg\"}]', 15, 'organisation', 1, 1, 1, '2025-04-27 05:04:34', '2025-04-27 14:23:38', NULL, NULL),
(8, 'audit-19_3', 'Initial', '2025-04-24', 'sts', '{\"Factory_builidings\":[\"13\"]}', '{\"Operational\":null}', 2, 'dfsf', 'dsfdfd', 'dfs', 'dfsdf', 'dsf', 'dfsd', 'dfsdf', 'dfsf', 'dfdf\r\n\r\n                             ', 'dfdsf', '[{\"name\":\"dsfsd\",\"file\":\"uploads\\/entity_profile\\/19\\/Internal_audit\\/8\\/auditor\\/1746017260_c3ac868e6e8c0f0874ac.png\"}]', '[\"dsfdsfs\",\"dsfdsfsf\"]', '[{\"name\":\"dfds\",\"date\":\"2025-04-24\",\"file\":\"uploads\\/entity_profile\\/19\\/Internal_audit\\/8\\/documants\\/1746017261_89838745ed8a1a4574cc.png\"}]', 19, 'organisation', 8, 8, 1, '2025-04-30 07:17:40', '2025-04-30 12:47:41', NULL, NULL),
(9, 'audit-39_4', 'Initial', '2025-05-08', 'sts', '{\"Factory_builidings\":[\"30\"]}', '{\"Financial\":null}', 3, 'zzXz', 'zxX', 'zxX', 'zxX', 'ZxX', 'zXX', 'zXz', 'zxX', '', 'zxX', '[{\"name\":\"daya\",\"file\":\"uploads\\/entity_profile\\/39\\/Internal_audit\\/9\\/auditor\\/1746794609_8c48f9b347f3d9a588b5.jpeg\"}]', '[\"sdadsa\"]', '[{\"name\":\"asda\",\"date\":\"2025-05-08\",\"file\":\"uploads\\/entity_profile\\/39\\/Internal_audit\\/9\\/documants\\/1746794609_d2b4e3742aae931a9a68.pdf\"}]', 39, 'organisation', 52, 52, 1, '2025-05-09 07:13:29', '2025-05-09 12:43:29', NULL, NULL),
(10, 'audit-43_5', 'Initial', '2025-05-01', 'Organization', '{\"Corporate_Office\":null}', '{\"Financial\":null}', 16, 'Test', 'Test', 'Attached', '3 Minor ', 'Yes', 'Corrective action in progress', 'wip', 'in progress', 'Test', 'NA', '[{\"name\":\"QA Team\",\"file\":\"uploads\\/entity_profile\\/43\\/Internal_audit\\/10\\/auditor\\/1747490213_6f66b6120b86470e56ea.png\"}]', '[\"Test\"]', '[{\"name\":\"Checklist\",\"date\":\"2025-05-01\",\"file\":\"uploads\\/entity_profile\\/43\\/Internal_audit\\/10\\/documants\\/1747490213_0483a0c71777210db5c7.doc\"},{\"name\":\"Annual Audit\",\"date\":\"2025-05-01\",\"file\":\"uploads\\/entity_profile\\/43\\/Internal_audit\\/10\\/documants\\/1747490213_102105daaed7bf0f8a26.doc\"},{\"name\":\"Audit Schedule\",\"date\":\"2025-05-01\",\"file\":\"uploads\\/entity_profile\\/43\\/Internal_audit\\/10\\/documants\\/1747490213_8a6eafb9be8c4d8d6545.doc\"}]', 43, 'organisation', 65, 65, 1, '2025-05-17 08:26:53', '2025-05-17 13:56:53', NULL, NULL),
(11, 'audit-43_6', 'Initial', '2025-05-20', 'Hyderabad', '{\"Hyderabad\":[\"11\"]}', '{\"IT\":null}', 17, 'Testing ', 'Testing ', 'Yes', 'no', 'yes', 'yes', 'yes', 'testing', 'na', 'na', '[{\"name\":\"Ramu\",\"file\":\"uploads\\/entity_profile\\/43\\/Internal_audit\\/11\\/auditor\\/1747717925_19ea1107d62f45461303.jpg\"}]', '[\"Kiran\"]', '[{\"name\":\"Good Agricultural Practices\",\"date\":\"2025-05-20\",\"file\":\"uploads\\/entity_profile\\/43\\/Internal_audit\\/11\\/documants\\/1747717926_8a30f2ec67df7b1ceb4a.pdf\"}]', 43, 'organisation', 65, 65, 1, '2025-05-19 23:42:05', '2025-05-20 05:12:06', NULL, NULL),
(12, 'audit-48_7', 'Initial', '2025-06-02', '', '[]', '{\"Financial\":null}', 0, '', '', '', 'Not bad', 'Yes', 'Yes', 'Closed', 'Good ', '', '', '[]', '[\"\"]', '', 48, 'organisation', 88, 88, 1, '2025-06-02 10:10:07', '2025-06-02 15:40:07', NULL, NULL),
(13, 'audit-47_8', 'Initial', '2025-06-01', 'Chennai', '{\"Corporate_Office\":null}', '{\"Financial\":null}', 23, '', '', '', 'None', 'None', 'None', 'None', 'None', '', 'None', '[]', '[\"\"]', '[{\"name\":\"Testing\",\"date\":\"2025-06-02\",\"file\":\"uploads\\/entity_profile\\/47\\/Internal_audit\\/13\\/documants\\/1748963152_d7e3379fc547f6947c3f.pdf\"}]', 47, 'fpo', 82, 82, 1, '2025-06-02 22:00:47', '2025-06-03 15:05:52', NULL, NULL),
(14, 'audit-47_9', 'Initial', '2025-01-29', '', '{\"Corporate_Office\":null}', '{\"Compliance\":null}', 23, '', '', '', 'Good', 'Yes', 'Yes', 'Closed', 'Financial good', '', '', '[]', '[\"\"]', '', 47, 'fpo', 82, 82, 1, '2025-06-04 11:13:49', '2025-06-04 11:14:08', NULL, NULL),
(15, 'audit-39_10', 'Initial', '2025-07-02', '', '[]', '{\"Compliance\":null}', 0, '', '', '', 'test', 'test', 'test', 'test', 'test', '', 'test', '[]', '', '', 39, 'organisation', 39, 39, 1, '2025-07-02 07:18:53', '2025-07-02 07:18:53', NULL, NULL),
(16, 'audit-39_10', 'Initial', '2025-07-02', '', '[]', '{\"Compliance\":null}', 0, '', '', '', 'test', 'test', 'test', 'test', 'test', '', 'test', '[]', '', '', 39, 'organisation', 39, 39, 1, '2025-07-02 07:20:57', '2025-07-02 07:20:57', NULL, NULL),
(18, 'audit-39_12', 'Surveillance', '2025-07-02', '', '[]', '{\"Operational\":null}', 12, '', '', '', 'test', 'test', 'test', 'test', 'test', '', '', '[]', '[{\"name\":\"tests\",\"department\":\"12\",\"file\":\"\"},{\"name\":\"test1\",\"department\":\"14\",\"file\":\"\"}]', '', 39, 'organisation', 39, 39, 1, '2025-07-02 07:27:02', '2025-07-02 08:19:20', NULL, NULL),
(19, 'audit-38_13', 'Initial', '2025-07-05', 'Hyderabad', '[]', '{\"Financial\":null}', 35, '', '', '', 'NA', 'NA', 'NA', 'NA', 'NA', '', '', '[{\"name\":\"Sai Krishna\",\"file\":\"uploads\\/entity_profile\\/38\\/Internal_audit\\/19\\/auditor\\/1751697303_9ce43e0994ad25146dbc.png\"}]', '[{\"name\":\"Vani\",\"department\":\"35\",\"file\":\"\"}]', '[{\"name\":\"Internal Inspector\",\"date\":\"2025-07-05\",\"file\":\"uploads\\/entity_profile\\/38\\/Internal_audit\\/19\\/documants\\/1751697303_b1a9a9eca57bab3ae142.pdf\"}]', 38, 'organisation', 51, 51, 1, '2025-07-05 06:35:03', '2025-07-05 06:35:45', NULL, NULL),
(20, 'audit-38_14', 'Surveillance', '2025-07-05', 'Hyderabad', '{\"Corporate_Office\":null}', '{\"Financial\":null}', 34, '', '', '', 'NA', 'NA', 'NA', 'NA', 'NA', '', '', '[{\"name\":\"Shiva \",\"file\":\"uploads\\/entity_profile\\/38\\/Internal_audit\\/20\\/auditor\\/1751697998_2d1ed6889e7c106afcb2.png\"}]', '[{\"name\":\"Shiva\",\"department\":\"34\",\"file\":\"uploads\\/entity_profile\\/38\\/Internal_audit\\/20\\/auditee\\/1751697998_14fbfd6901d6ad295a25.pdf\"}]', '[{\"name\":\"Internal Inspector\",\"date\":\"2025-07-05\",\"file\":\"uploads\\/entity_profile\\/38\\/Internal_audit\\/20\\/documants\\/1751697998_f0921897c3d6e7cb78b2.pdf\"}]', 38, 'organisation', 51, 51, 1, '2025-07-05 06:46:38', '2025-07-05 06:46:38', NULL, NULL),
(21, 'Employee', 'Initial', '2025-07-08', 'test', '{\"Corporate_Office\":null}', '{\"Financial\":null}', 0, '', '', '', 'test', 'test', 'test', 'test', 'test', '', '', '[]', '', '', 60, 'fpo', 60, 60, 0, '2025-07-08 11:20:49', '2025-07-08 16:58:00', 2025, '2025-07-08'),
(22, 'Employee', 'Initial', '2025-07-08', 'test', '{\"Corporate_Office\":null}', '{\"Financial\":null}', 0, '', '', '', 'test', 'test', 'test', 'test', 'test', '', '', '[]', '', '', 60, 'fpo', 60, 60, 0, '2025-07-08 11:22:19', '2025-07-08 16:58:05', 2025, '2025-07-08'),
(23, 'Employee', 'Initial', '2025-07-08', 'test', '{\"Corporate_Office\":null}', '{\"Financial\":null}', 0, '', '', '', 'test', 'test', 'test', 'test', 'test', '', '', '[{\"name\":\"\",\"file\":\"uploads\\/entity_profile\\/60\\/Internal_audit\\/23\\/auditor\\/1751973820_00da8bdbf0006f038766.png\"}]', '', '', 60, 'fpo', 60, 60, 0, '2025-07-08 11:23:40', '2025-07-08 16:58:10', 2025, '2025-07-08'),
(24, 'Employee', 'Initial', '2025-07-08', 'test', '{\"Corporate_Office\":null}', '{\"Financial\":null}', 0, '', '', '', 'test', 'test', 'test', 'test', 'test', '', '', '[{\"name\":\"\",\"file\":\"uploads\\/entity_profile\\/60\\/Internal_audit\\/24\\/auditor\\/1751973975_befdfdb8d0a224f7c9ad.png\"}]', '', '', 60, 'fpo', 60, 60, 0, '2025-07-08 11:26:15', '2025-07-08 16:58:13', 2025, '2025-07-08'),
(25, 'Employee', 'Initial', '2025-07-08', 'test', '{\"Corporate_Office\":null}', '{\"Financial\":null}', 0, '', '', '', 'test', 'test', 'test', 'test', 'test', '', '', '[{\"name\":\"\",\"file\":\"uploads\\/entity_profile\\/60\\/Internal_audit\\/25\\/auditor\\/1751974020_86451ea8cc7711269f34.png\"}]', '', '', 60, 'fpo', 60, 60, 0, '2025-07-08 11:27:00', '2025-07-08 16:58:16', 2025, '2025-07-08'),
(26, 'Employee', 'Initial', '2025-07-08', 'test', '{\"Corporate_Office\":null}', '{\"Financial\":null}', 0, '', '', '', 'test', 'test', 'test', 'test', 'test', '', '', '[{\"name\":\"\",\"file\":\"uploads\\/entity_profile\\/60\\/Internal_audit\\/26\\/auditor\\/1751974070_87f03f4fd5fd1351a8c5.png\"}]', '', '', 60, 'fpo', 60, 60, 1, '2025-07-08 11:27:50', '2025-07-08 11:27:50', 2025, '2025-07-08'),
(27, 'audit-54_21', 'Initial', '2025-07-04', 'Hyderabad', '{\"Corporate_Office\":null}', '{\"Financial\":null}', 36, '', '', '', 'Na', 'Na', 'NA', 'Na', 'Na', '', '', '[]', '', '', 54, 'fpo', 135, 135, 1, '2025-07-09 10:30:24', '2025-07-09 10:30:24', 2025, '2025-07-01'),
(28, 'audit-54_22', 'Surveillance', '2025-07-03', 'Hyderabad', '{\"storage_details\":[\"19\"]}', '{\"Operational\":null}', 36, '', '', '', 'NA', 'Na', 'NA', 'Na', 'NA', '', '', '[{\"name\":\"Mr. Anil Kumar (Lead Auditor)\",\"file\":\"uploads\\/entity_profile\\/54\\/Internal_audit\\/28\\/auditor\\/1752218805_eb996145a36b7693ca3c.jpg\"}]', '', '', 54, 'fpo', 135, 135, 1, '2025-07-11 07:26:45', '2025-07-11 07:26:45', 2025, '2025-07-01'),
(29, 'audit-64_23', 'Initial', '2025-07-14', '', '[]', '{\"Financial\":null}', 0, '', '', '', 'dsfsd', 'fdsfsd', 'fsdf', 'dsfsdfdsf', 'dsfsdfsdf', '', '', '[]', '', '', 64, 'fpo', 157, 157, 1, '2025-07-19 09:42:06', '2025-07-19 09:42:06', 2025, '2025-07-14');

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

--
-- Table structure for table `internal_auditors`
--

CREATE TABLE `internal_auditors` (
  `id` int(11) NOT NULL,
  `entity_id` int(11) DEFAULT NULL,
  `associated_by` varchar(25) DEFAULT NULL,
  `title` varchar(50) DEFAULT NULL,
  `first_name` varchar(50) NOT NULL,
  `middle_name` varchar(50) DEFAULT NULL,
  `last_name` varchar(50) DEFAULT NULL,
  `ID_Number` varchar(100) DEFAULT NULL,
  `location` text DEFAULT NULL,
  `date_of_appointment` date DEFAULT NULL,
  `Qualifications` text DEFAULT NULL,
  `experience_years` int(11) DEFAULT 0,
  `experience_months` int(11) DEFAULT 0,
  `designation` varchar(255) DEFAULT NULL,
  `skill` text DEFAULT NULL,
  `documents` text DEFAULT NULL,
  `evaluated_by` varchar(255) DEFAULT NULL,
  `name_of_the_evaluator` varchar(255) DEFAULT NULL,
  `reporting_authority` varchar(255) DEFAULT NULL,
  `internal_or_external` text DEFAULT NULL,
  `trainings_completed` text DEFAULT NULL,
  `inspections_completed` text DEFAULT NULL,
  `responsibilities_assigned` text DEFAULT NULL,
  `created_by` int(11) DEFAULT NULL,
  `updated_by` int(11) DEFAULT NULL,
  `status` tinyint(1) DEFAULT 1,
  `created_at` datetime DEFAULT current_timestamp(),
  `updated_at` datetime DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `photo` text DEFAULT NULL,
  `Person_Photo` text NOT NULL,
  `email` varchar(255) DEFAULT NULL,
  `password` varchar(255) DEFAULT NULL,
  `remark` text DEFAULT NULL,
  `department` int(11) NOT NULL,
  `role` int(11) NOT NULL,
  `skill_distribution` int(11) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `internal_auditors`
--

INSERT INTO `internal_auditors` (`id`, `entity_id`, `associated_by`, `title`, `first_name`, `middle_name`, `last_name`, `ID_Number`, `location`, `date_of_appointment`, `Qualifications`, `experience_years`, `experience_months`, `designation`, `skill`, `documents`, `evaluated_by`, `name_of_the_evaluator`, `reporting_authority`, `internal_or_external`, `trainings_completed`, `inspections_completed`, `responsibilities_assigned`, `created_by`, `updated_by`, `status`, `created_at`, `updated_at`, `photo`, `Person_Photo`, `email`, `password`, `remark`, `department`, `role`, `skill_distribution`) VALUES
(3, 39, 'organisation', 'Mr', 'ram', 'sri', 'lakshmi', 'Internal_Inspector-39_1', '{\"Corporate_Office\":null}', '2025-05-09', 'sdasd', 17, 10, 'Manager', '{\"10\":[\"diploma\",\"master\"]}', '[{\"name\":\"dfsfd\",\"date\":\"2025-05-08\",\"file\":\"uploads\\/entity_profile\\/39\\/Internal_auditors\\/3\\/documants\\/1746794177_64eb2b46bc2c56827fa3.docx\"}]', 'employee', '21', '21', 'External', 'dsfs', 'dsfssdfdsf', 'dsfds', 52, 52, 1, '2025-05-09 12:36:17', '2025-05-09 12:36:49', '[\"uploads\\/entity_profile\\/39\\/Internal_auditors\\/3\\/photos\\/1746794177_522314e754f25a9a9e35.jpg\"]', '', 'ram@gmail.com', '$2y$10$XAWHHQYJO4dzjpOzU.sBouQrufB0MTzedzmJCo4O4atXkf8T365nO', '', 12, 15, NULL),
(4, 33, 'fpo', 'Mr', 'ramachandran', '', 'selvam', 'Internal_Inspector-33_2', '[]', '0000-00-00', '', NULL, NULL, NULL, '{\"19\":[\"fgfdg\",\"dfgdfgdf\",\"gdfgdf\",\"5656\"]}', NULL, 'employee', '', NULL, NULL, '', '', '', 45, 45, 1, '2025-05-27 16:40:18', '2025-05-27 16:40:49', '[]', 'uploads/entity_profile/33/Internal_auditors/4/Person_Photo//1748364018_993bed8586c9dae4864b.jpg', 'ramachd@gd.cs', '$2y$10$ompVw1SQG/gOMqPjuEx7V.LSf/4D7VmOXVPTaJ9.QKU.WAXxRlIG6', ' ', 0, 24, 19),
(5, 45, 'audit_company', 'Mr', 'ramachandran ', '', 'selvam', 'auditor-45_1', '[]', '0000-00-00', '', 17, NULL, NULL, NULL, NULL, 'auditors', '', NULL, NULL, '', '', '', 73, 73, 1, '2025-05-29 12:27:27', '2025-06-03 05:45:08', '[]', 'uploads/entity_profile/45/Internal_auditors/5/Person_Photo//1748521647_7d515629a2c7c77ee77d.png', 'ramachandrddantamil007@gmail.com', '$2y$10$soUovH/ary9HWJnfZVSoAuUTQKCePziJ.8VQM6C6JMwUFSKoIdtrq', ' ', 0, 29, NULL),
(6, 48, 'organisation', 'Mr', 'Vasanth', '', '', 'Internal_Inspector-48_4', '{\"Corporate_Office\":null}', '0000-00-00', '', NULL, NULL, NULL, NULL, NULL, NULL, '', NULL, NULL, '', '', '', 88, 88, 1, '2025-06-02 09:59:57', '2025-06-02 09:59:57', NULL, 'uploads/entity_profile/48/Internal_auditors/6/Person_Photo//1748858397_56ec19ee9efa49eac2e6.jpg', 'vasanth@abc.com', '$2y$10$Q3RS1I2kKPkRFZGqzU1rpOEd3rqs2SY72S3ZMBCoa7glEFH1HpmCy', '', 0, 32, NULL),
(7, 49, 'fpo', 'Mr', 'Dheenadhayalan', '', 'perumal', 'Internal_Inspector-49_5', '{\"Corporate_Office\":null}', '2025-06-02', 'dfg', 3, 1, 'frontend', '{\"25\":[\"cvbcvb\",\"bvcb\"]}', '[{\"name\":\"hf\",\"date\":\"2025-06-02\",\"file\":\"uploads\\/entity_profile\\/49\\/Internal_auditors\\/7\\/documants\\/1748864141_839b9c98077eaaa5287b.jpg\"}]', 'subcontractors', '20', '31', 'Internal', 'fg', 'gfh', 'fh', 89, 89, 1, '2025-06-02 11:35:41', '2025-06-02 11:35:51', '[\"uploads\\/entity_profile\\/49\\/Internal_auditors\\/7\\/photos\\/1748864141_ab3a9717c9d157031293.jpg\"]', 'uploads/entity_profile/49/Internal_auditors/7/Person_Photo//1748864141_0f21eeab680ccb1198af.jpg', 'dhe55ena1992@gmail.com', '$2y$10$vme8Hk5.lf0GTuKwIWp8Re.pjja65vj7xwv00glsXDnEydlYxJHIG', ' fh', 25, 33, 25),
(8, 50, 'audit_company', 'Mr', 'Alwin', '', '', 'Internal_Inspector-50_6', '[]', '0000-00-00', '', NULL, NULL, 'Executive', NULL, NULL, NULL, '', NULL, NULL, '', '', '', 100, 100, 1, '2025-06-02 13:45:59', '2025-06-02 13:45:59', NULL, 'uploads/entity_profile/50/Internal_auditors/8/Person_Photo//1748871959_81359c440be78c3a57cd.jpg', 'alwin@abc.com', '$2y$10$.I9NdP4IZDUV4lH933KMWuG7SUma4U0ro1Fr2nEUus6nL3ygHlItq', '', 26, 34, NULL),
(9, 51, 'organisation', 'Mr', 'Guru', '', '', 'Internal_Inspector-51_7', '{\"Corporate_Office\":null}', '0000-00-00', '', NULL, NULL, 'Executive', NULL, NULL, NULL, '', NULL, NULL, '', '', '', 107, 107, 1, '2025-06-02 14:03:04', '2025-06-02 14:03:04', NULL, 'uploads/entity_profile/51/Internal_auditors/9/Person_Photo//1748872984_b17162380a3dd2d4c005.jpg', 'guru@abc.com', '$2y$10$WKHeGN.ZJz..5bHAvqDj7.0M4Nuvj3dS83.osP8pV6tSXNCiauKNC', '', 27, 35, NULL),
(10, 47, 'fpo', 'Mr', 'Yash', '', '', 'Internal_Inspector-47_8', '{\"Corporate_Office\":null}', '0000-00-00', '', NULL, NULL, 'Supervisor', NULL, NULL, NULL, '', NULL, NULL, '', '', '', 82, 82, 1, '2025-06-02 14:54:28', '2025-06-02 14:54:28', NULL, 'uploads/entity_profile/47/Internal_auditors/10/Person_Photo//1748876068_82a67178a332270bb353.jpg', 'yash@abc.com', '$2y$10$Glf1JjX5xCH0M7NqAJOZ4ecc01v0Ev1837Vn7ZIvvXrK2H4JteIxO', '', 23, 31, NULL),
(11, 47, 'fpo', 'Ms', 'Aishwarya', '', '', 'Internal_Inspector-47_9', '{\"packaging_unit\":[\"11\"]}', '0000-00-00', '', NULL, NULL, 'Supervisor', NULL, NULL, 'employee', '', NULL, NULL, '', '', '', 82, 82, 1, '2025-06-04 11:10:20', '2025-06-05 04:33:12', '[]', 'uploads/entity_profile/47/Internal_auditors/11/Person_Photo//1749035420_bf3329b42cea4d11b0a6.jpg', 'aish@abc.com', '$2y$10$LI7aTKImdpYj.KB/EdK15.Xudkm.1MwRgwnTT3gtn4kw2r/BxL4yO', ' ', 23, 31, NULL),
(12, 54, 'fpo', 'Mr', 'Anji', 'Reddy', 'Durgampudi', 'Internal_Inspector-54_10', '{\"packaging_unit\":[\"12\"]}', '2025-07-01', 'BSC', 9, 3, 'Manager', '{\"34\":[\"test\"]}', NULL, 'internal_auditors', '12', '39', 'Internal', '', '', '', 135, 135, 1, '2025-07-10 05:21:32', '2025-07-29 07:41:47', '[]', 'uploads/entity_profile/54/Internal_auditors/12/Person_Photo//1752124892_c0e7151f16be04e68772.jpg', 'bbc123@gmail.com', '$2y$10$jMI.XGtL.QuDK//B0m3gQe1prrOOAVS9H/f6UxEwyhLRY1/Swfrry', ' ', 36, 45, 34);

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

--
-- Table structure for table `internal_farm_inspection`
--

CREATE TABLE `internal_farm_inspection` (
  `id` int(10) UNSIGNED NOT NULL,
  `farmer_id` int(10) UNSIGNED NOT NULL,
  `farm_id` int(10) UNSIGNED NOT NULL,
  `crop_id` int(10) UNSIGNED NOT NULL,
  `crop_name` text DEFAULT NULL,
  `season` enum('Kharif','Rabi','Zaid') NOT NULL,
  `year` int(11) NOT NULL,
  `Record_Date` date NOT NULL,
  `Inspection_Date` date NOT NULL,
  `Inspector_Name` varchar(50) NOT NULL,
  `Non-Conformities_Reported` varchar(250) NOT NULL,
  `Corrective_Actions_Taken` varchar(250) NOT NULL,
  `Corrective_Action_Approved_and_Closed` varchar(250) NOT NULL,
  `documents` text NOT NULL,
  `remark` text DEFAULT NULL,
  `status` tinyint(1) NOT NULL DEFAULT 1,
  `associated_by` varchar(50) NOT NULL,
  `entity_id` int(10) UNSIGNED NOT NULL,
  `created_by` int(10) UNSIGNED NOT NULL,
  `created_at` datetime NOT NULL DEFAULT current_timestamp(),
  `updated_by` int(10) UNSIGNED NOT NULL,
  `updated_at` datetime NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `inspection_status` int(11) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `internal_farm_inspection`
--

INSERT INTO `internal_farm_inspection` (`id`, `farmer_id`, `farm_id`, `crop_id`, `crop_name`, `season`, `year`, `Record_Date`, `Inspection_Date`, `Inspector_Name`, `Non-Conformities_Reported`, `Corrective_Actions_Taken`, `Corrective_Action_Approved_and_Closed`, `documents`, `remark`, `status`, `associated_by`, `entity_id`, `created_by`, `created_at`, `updated_by`, `updated_at`, `inspection_status`) VALUES
(1, 17, 14, 18, 'Leaves', 'Kharif', 2025, '2025-06-02', '2025-06-02', 'Vivek', 'Not bad', 'Yes', 'Closed', '', '', 1, 'fpo', 47, 82, '2025-06-02 15:31:16', 82, '2025-06-02 15:31:16', NULL),
(2, 18, 17, 18, 'Leaves', 'Rabi', 2025, '2025-02-12', '2025-06-04', '', 'Shankar', 'Arjun', 'Raghuvaran', '', '', 1, 'fpo', 47, 82, '2025-06-04 11:15:21', 82, '2025-06-04 11:15:21', NULL),
(3, 31, 20, 24, 'test', 'Kharif', 2025, '2025-07-07', '2025-07-07', 'test', 'test', 'test', 'test', '', 'test', 1, 'fpo', 60, 141, '2025-07-07 14:37:23', 141, '2025-07-07 14:42:05', 0),
(4, 28, 18, 26, 'Maize', 'Kharif', 2025, '2025-07-01', '2025-07-02', 'Guna', 'Unlabeled pesticide containers found in the storage room No soap available at handwashing station near harvest area Fertilizer application logbook not updated since May 2025 ', 'All containers labeled correctly as per MSDS guidelines  Replenished all hygiene stations with soap and hand sanitizers Records brought up to date; staff retrained on timely entry', 'All corrective actions have been approved and closed.', '', 'Overall operations demonstrate good awareness of hygiene and safety practices.\r\nDocumentation practices require consistent updates.\r\nSeveral minor non-conformities identified; corrective action required.\r\nInternal monitoring can be  strengthened', 1, 'fpo', 54, 135, '2025-07-10 05:31:38', 135, '2025-07-29 09:08:24', NULL);

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

--
-- Table structure for table `internal_inspectors`
--

CREATE TABLE `internal_inspectors` (
  `id` int(11) NOT NULL,
  `entity_id` int(11) DEFAULT NULL,
  `associated_by` varchar(25) DEFAULT NULL,
  `title` varchar(50) DEFAULT NULL,
  `first_name` varchar(50) NOT NULL,
  `middle_name` varchar(50) DEFAULT NULL,
  `last_name` varchar(50) DEFAULT NULL,
  `ID_Number` varchar(100) DEFAULT NULL,
  `location` text DEFAULT NULL,
  `date_of_appointment` date DEFAULT NULL,
  `Qualifications` text DEFAULT NULL,
  `experience_years` int(11) DEFAULT 0,
  `experience_months` int(11) DEFAULT 0,
  `designation` varchar(255) DEFAULT NULL,
  `skill` text DEFAULT NULL,
  `documents` text DEFAULT NULL,
  `evaluated_by` varchar(255) DEFAULT NULL,
  `name_of_the_evaluator` varchar(255) DEFAULT NULL,
  `reporting_authority` varchar(255) DEFAULT NULL,
  `internal_or_external` text DEFAULT NULL,
  `trainings_completed` text DEFAULT NULL,
  `inspections_completed` text DEFAULT NULL,
  `responsibilities_assigned` text DEFAULT NULL,
  `created_by` int(11) DEFAULT NULL,
  `updated_by` int(11) DEFAULT NULL,
  `status` tinyint(1) DEFAULT 1,
  `created_at` datetime DEFAULT current_timestamp(),
  `updated_at` datetime DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `photo` text DEFAULT NULL,
  `Person_Photo` text NOT NULL,
  `email` varchar(255) DEFAULT NULL,
  `password` varchar(255) DEFAULT NULL,
  `remark` text DEFAULT NULL,
  `department` int(11) NOT NULL,
  `role` int(11) NOT NULL,
  `skill_distribution` int(11) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `internal_inspectors`
--

INSERT INTO `internal_inspectors` (`id`, `entity_id`, `associated_by`, `title`, `first_name`, `middle_name`, `last_name`, `ID_Number`, `location`, `date_of_appointment`, `Qualifications`, `experience_years`, `experience_months`, `designation`, `skill`, `documents`, `evaluated_by`, `name_of_the_evaluator`, `reporting_authority`, `internal_or_external`, `trainings_completed`, `inspections_completed`, `responsibilities_assigned`, `created_by`, `updated_by`, `status`, `created_at`, `updated_at`, `photo`, `Person_Photo`, `email`, `password`, `remark`, `department`, `role`, `skill_distribution`) VALUES
(5, 39, 'organisation', 'Mr', 'dhaya', 'sel', 'lakshmi', 'Internal_Inspector-39_1', '{\"Factory_builidings\":[\"30\"]}', '2025-05-08', 'dfsd', 15, 10, 'subcontractor', '{\"10\":[\"diploma\",\"phd\"]}', '[{\"name\":\"sda\",\"date\":\"2025-05-08\",\"file\":\"uploads\\/entity_profile\\/39\\/Internal_Inspectors\\/5\\/documants\\/1746793858_c34595d638b2ce9d0059.pdf\"}]', 'employee', '21', '21', 'External', 'fdfdsfs', 'sdadasd', 'adsdasad', 52, 52, 1, '2025-05-09 12:30:58', '2025-05-09 12:30:58', '[\"uploads\\/entity_profile\\/39\\/Internal_Inspectors\\/5\\/photos\\/1746793858_2a03425d4ac4e981ca48.png\"]', 'uploads/entity_profile/39/Internal_Inspectors/5/Person_Photo//1746793858_1650942869c3ee3f1137.png', 'dhaya@gmail.com', '$2y$10$koUUwxzqeH3yQgUqoNoUP.sOnQ.mxfMFZr5WGT1BnFTKHVyRbBbXW', ' sdads', 14, 21, NULL),
(6, 33, 'fpo', 'Mr', 'ramachandran', '', 'selvam', 'Internal_Inspector-33_2', '[]', '0000-00-00', '', NULL, NULL, NULL, '{\"11\":[\"dfsd\",\"dfsdfsd\",\"sdfsdfsd\",\"dsfds\"]}', NULL, 'employee', '', NULL, NULL, '', '', '', 45, 45, 1, '2025-05-27 11:35:44', '2025-05-27 16:10:47', '[]', 'uploads/entity_profile/33/Internal_Inspectors/6/Person_Photo//1748345745_8d9d0f29f84122c81180.jpg', 'rama@gmail.com', '$2y$10$W/aLS7/hF2fjJJTngHKI7.hlEx0EiDf5Ix/CfzOnyBDfoHp7vuVOq', '  ', 0, 22, 11),
(7, 44, 'audit_company', 'Mr', 'sdf', 'fdg', 'dfg', 'Internal_Inspector-44_3', '[]', '0000-00-00', 'dfg', 1, 1, 'sdf', '{\"22\":[\"sdf\"]}', '[{\"name\":\"sdf\",\"date\":\"2025-06-01\",\"file\":\"uploads\\/entity_profile\\/44\\/Internal_Inspectors\\/7\\/documants\\/1748848931_f0b1f73f123b30db7961.pdf\"}]', 'subcontractors', '18', '29', 'Internal', 'dfg', 'dfg', 'dfgdfg', 72, 72, 1, '2025-06-02 07:22:11', '2025-06-02 07:23:27', '[\"uploads\\/entity_profile\\/44\\/Internal_Inspectors\\/7\\/photos\\/1748848931_2161d07ff90ad8ae13ab.jpg\"]', 'uploads/entity_profile/44/Internal_Inspectors/7/Person_Photo//1748848931_b4e006919a14a4ba7232.jpg', 'wqeff@gmail.com', '$2y$10$.6FYi.2J0gVkEYyP9HKzxe9NQqM/h9y3xKso.ej3G58spxmeBPA7i', '  fdgdfghg', 20, 30, 22),
(8, 48, 'organisation', NULL, 'Vetri', '', '', 'Internal_Inspector-48_4', '[]', '0000-00-00', '', NULL, NULL, '', NULL, NULL, NULL, '', NULL, NULL, '', '', '', 88, 88, 1, '2025-06-02 09:56:45', '2025-06-02 09:56:45', NULL, 'uploads/entity_profile/48/Internal_Inspectors/8/Person_Photo//1748858205_3dcec0b53812d4cd1c8f.jpg', 'vetri@abc.com', '$2y$10$zmqlYa2oMm6guB7o5dTM2OpCbIYyqmK2Y0XJR.DOlrGPhzdDTTuhi', ' ', 0, 32, NULL),
(9, 49, 'fpo', 'Mr', 'Dheenadhayalan', 'ert', 'perumal', 'Internal_Inspector-49_5', '{\"Corporate_Office\":null}', '2025-06-02', 'dfg', 1, 1, 'frontend', '{\"26\":[\"vcbcv\",\"cvbcv\",\"cvb\",\"cv\"]}', '[{\"name\":\"ret\",\"date\":\"2025-06-02\",\"file\":\"uploads\\/entity_profile\\/49\\/Internal_Inspectors\\/9\\/documants\\/1748864038_34f7ba6f9f701334e469.pdf\"}]', 'subcontractors', '20', '31', 'Internal', 'ert', 'ert', 'ret', 89, 89, 1, '2025-06-02 11:33:58', '2025-06-02 11:33:58', '[\"uploads\\/entity_profile\\/49\\/Internal_Inspectors\\/9\\/photos\\/1748864038_868c0e0921f2daa5d50b.jpg\"]', 'uploads/entity_profile/49/Internal_Inspectors/9/Person_Photo//1748864038_caed421c59f32423cd01.jpg', 'dheerdna1992@gmail.com', '$2y$10$n8LxHxuZ7cjdvpXN2eaLUemIBqG2aw9RMzUK/gyi.9KWDO64.zNXC', ' ert', 25, 33, 26),
(10, 50, 'audit_company', 'Mr', 'Prabakaran', '', '', 'Internal_Inspector-50_6', '[]', '0000-00-00', '', NULL, NULL, 'Executive', NULL, NULL, NULL, '', NULL, NULL, '', '', '', 100, 100, 1, '2025-06-02 13:44:50', '2025-06-02 13:44:50', NULL, 'uploads/entity_profile/50/Internal_Inspectors/10/Person_Photo//1748871890_5b43553413e4e9c00b1e.jpg', 'praba@abc.com', '$2y$10$mr9/OcUNQjX3.hNhXHaKQ.spg3CD48fu2nIcCQcEEgNqFZfU8oaIe', ' ', 26, 34, NULL),
(11, 51, 'organisation', 'Mr', 'Thanvanthri', '', '', 'Internal_Inspector-51_7', '{\"Corporate_Office\":null}', '0000-00-00', '', NULL, NULL, 'Executive', NULL, NULL, NULL, '', NULL, NULL, '', '', '', 107, 107, 1, '2025-06-02 14:01:51', '2025-06-02 14:01:51', NULL, 'uploads/entity_profile/51/Internal_Inspectors/11/Person_Photo//1748872911_24af4066fd011a01afc6.jpg', 'thanvanthri@abc.com', '$2y$10$QR1q9uY3kWJyxFcSco4TY.PZO/S3ZrKZ1eSouvojO9Q5Q.co1PpT2', ' ', 27, 35, NULL),
(12, 47, 'fpo', 'Mr', 'Sarvesh', '', '', 'Internal_Inspector-47_8', '{\"Corporate_Office\":null}', '0000-00-00', '', NULL, NULL, 'Supervisor', NULL, NULL, NULL, '', NULL, NULL, '', '', '', 82, 82, 1, '2025-06-02 14:53:03', '2025-06-02 14:53:03', NULL, 'uploads/entity_profile/47/Internal_Inspectors/12/Person_Photo//1748875983_dfe0e2df3e190da63e43.jpg', 'sarvesh@abc.com', '$2y$10$qGRFU8kApoTCniG.zZaFM.W2UoYwSrFpuQ8oiCbEffyKXpw3Uo4ve', ' ', 23, 31, NULL),
(13, 45, 'audit_company', 'Mr', 'ramachandran', '', 'selvam', 'Internal_Inspector-45_9', '[]', '0000-00-00', '', NULL, NULL, NULL, NULL, NULL, 'auditors', '', NULL, NULL, '', '', '', 73, 73, 1, '2025-06-03 05:15:59', '2025-06-03 05:44:58', '[]', 'uploads/entity_profile/45/Internal_Inspectors/13/Person_Photo//1748927759_328848d3394e2a9c34e7.jpg', 'fe@gmail.com', '$2y$10$iq2oRLiILH2Le5WFQ7X6IewR8T7X/Q4GpIEGAS8Y5SKwTZTAdyPvm', '  ', 0, 29, NULL),
(14, 47, 'fpo', 'Mr', 'Arjun', '', '', 'Internal_Inspector-47_10', '{\"storage_details\":[\"18\"]}', '0000-00-00', '', NULL, NULL, 'Supervisor', NULL, NULL, 'employee', '', NULL, NULL, '', '', '', 82, 82, 1, '2025-06-04 11:09:08', '2025-06-05 04:32:41', '[]', 'uploads/entity_profile/47/Internal_Inspectors/14/Person_Photo//1749035348_8bb58c14d62429a3fa25.jpg', 'arjun@abc.com', '$2y$10$c7enUMTwF9amrv81lykkR.Y.WUfxbWseg0RGwTbmVQ4N4OBPL5IkC', '  ', 23, 31, NULL),
(15, 54, 'fpo', 'Mr', 'Anji', 'Reddy', 'Durgampudi', 'Internal_Inspector-54_11', '{\"storage_details\":[\"19\"]}', '2025-07-01', 'BSC', 9, 4, 'Manager', '{\"34\":[\"test\"]}', NULL, 'internal_auditors', '12', '39', 'External', '', '', '', 135, 135, 1, '2025-07-09 09:35:09', '2025-07-29 07:41:34', '[]', 'uploads/entity_profile/54/Internal_Inspectors/15/Person_Photo//1752053709_2e75ed80d1008e26b718.jpg', 'bbca@gmail.com', '$2y$10$zvA7g.k5sFMqROcQ7Iy.9uJrkaHVsb8W93huCZ9bdpKMuHWBfNIAy', '  ', 33, 46, 34);

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

--
-- Table structure for table `irrigation_methods`
--

CREATE TABLE `irrigation_methods` (
  `id` int(11) NOT NULL,
  `farm_crop_id` int(11) DEFAULT NULL,
  `Type_of_Irrigation_Equipment` varchar(50) DEFAULT NULL,
  `Installation_Date` date DEFAULT NULL,
  `Manufacturer` varchar(50) DEFAULT NULL,
  `Responsible_Operator` varchar(50) DEFAULT NULL,
  `Calibration_Due_Date` date DEFAULT NULL,
  `Next_Due_Date` date DEFAULT NULL,
  `Name_of_the_Calibrator` varchar(50) DEFAULT NULL,
  `Unit_of_Water_Quantity` int(11) DEFAULT NULL,
  `Any_Other_Installations` varchar(250) DEFAULT NULL,
  `Remark` varchar(250) DEFAULT NULL,
  `Water_discharge` text DEFAULT NULL,
  `Document` text DEFAULT NULL,
  `status` int(11) DEFAULT 1,
  `entity_id` int(11) DEFAULT NULL,
  `associated_by` varchar(10) DEFAULT NULL,
  `created_by` int(11) DEFAULT NULL,
  `updated_by` int(11) DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT current_timestamp(),
  `updated_at` datetime DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `season` varchar(255) DEFAULT NULL,
  `year` int(11) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `irrigation_methods`
--

INSERT INTO `irrigation_methods` (`id`, `farm_crop_id`, `Type_of_Irrigation_Equipment`, `Installation_Date`, `Manufacturer`, `Responsible_Operator`, `Calibration_Due_Date`, `Next_Due_Date`, `Name_of_the_Calibrator`, `Unit_of_Water_Quantity`, `Any_Other_Installations`, `Remark`, `Water_discharge`, `Document`, `status`, `entity_id`, `associated_by`, `created_by`, `updated_by`, `created_at`, `updated_at`, `season`, `year`) VALUES
(1, 2, 'Sprinkler System', '2025-05-16', 'fdsds', 'dfsdfdshjhjh', '2025-05-07', '2025-05-15', 'dsfsdf', 0, 'fdsfsdfsd', 'dsfdsfsd', '[{\"crop_type\":\"rise\",\"water\":\"4\"}]', '[{\"name\":\"dfdsfsdfsd\",\"date\":\"2025-05-13\",\"file\":\"uploads\\/entity_profile\\/33\\/Irrigation_Methods\\/1\\/documants\\/1746968395_ff75954b1a4c3967d0cc.xlsx\"}]', 1, 33, 'fpo', 45, 45, '2025-05-11 07:29:55', '2025-05-29 15:49:13', NULL, 1900),
(2, 4, 'Drip Irrigation', '2025-05-15', 'dfgFG', 'GFHGFH', '2025-05-13', '2025-05-14', 'dfgFGH', 0, 'FGHTRY7', 'FGHFGHFGHF', '[{\"crop_type\":\"Hybrid Basmati Rice\",\"water\":\"45\"}]', '[{\"name\":\"GFH\",\"date\":\"2025-05-21\",\"file\":\"uploads\\/entity_profile\\/16\\/Irrigation_Methods\\/2\\/documants\\/1747743065_fc31286feb59f5e9a01e.pdf\"}]', 1, 16, 'farmers', 71, 71, '2025-05-20 06:41:05', '2025-05-20 12:11:05', NULL, NULL),
(3, 4, 'Drip Irrigation', '2025-04-28', 'dfg', 'GFHGFH', '2025-04-29', '2025-05-20', 'dfger', 0, 'retert', 'erterert', '[{\"crop_type\":\"fdg\",\"water\":\"435\"}]', '[{\"name\":\"435\",\"date\":\"2025-05-19\",\"file\":\"uploads\\/entity_profile\\/16\\/Irrigation_Methods\\/3\\/documants\\/1747770475_f7851615f652906f5d52.pdf\"}]', 0, 16, 'farmers', 71, 71, '2025-05-20 14:17:55', '2025-05-21 01:20:06', NULL, NULL),
(4, 4, 'Sprinkler System', '2025-05-14', 'dfg', 'GFHGFH', '2025-05-27', '2025-05-08', 'dfgFGH', 0, 'dfgdfg', 'dfgdfgdf', '[{\"crop_type\":\"fdg\",\"water\":\"33\"}]', '[{\"name\":\"gdfg\",\"date\":\"2025-05-22\",\"file\":\"uploads\\/entity_profile\\/16\\/Irrigation_Methods\\/4\\/documants\\/1747770646_f9afd0027d2b956c7bee.pdf\"}]', 1, 16, 'farmers', 71, 71, '2025-05-20 14:20:46', '2025-05-20 19:55:12', NULL, NULL),
(5, 8, 'Sprinkler System', '0000-00-00', '', '', '0000-00-00', '0000-00-00', '', 0, '', '', '[{\"crop_type\":\"fgfdgdf\",\"water\":\"12\"}]', '[]', 1, 15, 'farmers', 64, 64, '2025-05-28 22:33:00', '2025-05-29 04:06:31', NULL, 2025),
(6, 9, '', '0000-00-00', '', '', '0000-00-00', '0000-00-00', '', 0, '', '', '[{\"crop_type\":\"fdgfdg\",\"water\":\"6776\"}]', '[]', 1, 11, 'farmers', 61, 61, '2025-05-29 11:35:52', '2025-05-29 17:05:52', 'Kharif', 2011),
(7, 3, '', '0000-00-00', '', '', '0000-00-00', '0000-00-00', '', 0, '', '', '[{\"crop_type\":\"weet\",\"water\":\"3\"},{\"crop_type\":\"weet\",\"water\":\"4\"},{\"crop_type\":\"weet\",\"water\":\"4\"}]', '[]', 1, 33, 'fpo', 45, 45, '2025-05-30 03:22:40', '2025-05-30 08:52:40', 'Rabi', 2025),
(8, 14, 'Drip Irrigation', '0000-00-00', '', '', '0000-00-00', '0000-00-00', '', 0, '', 'Good Only', '[{\"crop_type\":\"Leaves\",\"water\":\"23\"}]', '[{\"name\":\"Agreement\",\"date\":\"2025-06-02\",\"file\":\"uploads\\/entity_profile\\/47\\/Irrigation_Methods\\/8\\/documants\\/1748927957_3552e518007f5d1b6d0c.pdf\"}]', 1, 47, 'fpo', 82, 82, '2025-06-02 23:49:17', '2025-06-05 04:29:06', 'Kharif', 2025),
(9, 15, 'Drip Irrigation', '0000-00-00', '', '', '0000-00-00', '0000-00-00', '', 0, '', 'Good Only', '[{\"crop_type\":\"Leaves\",\"water\":\"56\"}]', '[]', 1, 23, 'farmers', 112, 112, '2025-06-03 00:10:32', '2025-06-03 05:40:53', 'Kharif', 2025),
(10, 14, 'Drip Irrigation', '2025-06-03', '', '', '0000-00-00', '0000-00-00', '', 0, '', 'Good Only', '[{\"crop_type\":\"Leaves\",\"water\":\"77\"}]', '[{\"name\":\"farming dta\",\"date\":\"2025-06-03\",\"file\":\"uploads\\/entity_profile\\/47\\/Irrigation_Methods\\/10\\/documants\\/1749034926_a3bc188e25845e92cc75.pdf\"}]', 1, 47, 'fpo', 82, 82, '2025-06-04 11:02:06', '2025-06-04 11:02:06', 'Rabi', 2025),
(11, 17, 'Drip Irrigation', '2025-07-01', 'Na', 'AnjiReddy', '2025-07-01', '2025-07-08', 'Na', 0, 'Not Required ', 'Not Required ', '[{\"crop_type\":\"Chilli\",\"water\":\"20000\"},{\"crop_type\":\"Chilli\",\"water\":\"20000\"}]', '[]', 1, 54, 'fpo', 135, 135, '2025-07-09 07:44:33', '2025-07-29 07:39:56', 'Kharif', 2025),
(12, 21, 'Sprinkler System', '2025-05-01', 'Na', 'AnjiReddy', '2025-08-01', '2025-08-01', 'Na', 0, 'Not Applicable ', 'Not Applicable ', '[{\"crop_type\":\"chilli\",\"water\":\"1000000\"}]', '[{\"name\":\"Chilli\",\"date\":\"2025-08-01\",\"file\":\"uploads\\/entity_profile\\/30\\/Irrigation_Methods\\/12\\/documants\\/1754041900_eb8b29ff36a931031312.jpg\"}]', 1, 30, 'farmers', 145, 145, '2025-08-01 09:51:40', '2025-08-01 09:51:40', 'Rabi', 2025);

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

--
-- Table structure for table `manuval_and_documents`
--

CREATE TABLE `manuval_and_documents` (
  `id` int(11) NOT NULL,
  `department` int(11) NOT NULL,
  `documants` text NOT NULL,
  `Category` text NOT NULL,
  `entity_id` int(11) NOT NULL,
  `associated_by` text NOT NULL,
  `status` int(11) NOT NULL DEFAULT 1,
  `remark` text NOT NULL,
  `created_by` int(11) NOT NULL,
  `updated_by` int(11) NOT NULL,
  `created_at` timestamp NOT NULL DEFAULT current_timestamp(),
  `updated_at` datetime NOT NULL DEFAULT '0000-00-00 00:00:00' ON UPDATE current_timestamp()
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `manuval_and_documents`
--

INSERT INTO `manuval_and_documents` (`id`, `department`, `documants`, `Category`, `entity_id`, `associated_by`, `status`, `remark`, `created_by`, `updated_by`, `created_at`, `updated_at`) VALUES
(1, 1, '[{\"name\":\"dsfdsfsdaaaa\",\"date\":\"2025-05-05\",\"file\":\"uploads\\/entity_profile\\/15\\/Manuvals_and_documents\\/1\\/documants\\/1745677410_eaf5fc6c96b79d5711b4.jpg\"}]', '', 15, 'organisation', 0, 'fgdfgdfgd', 1, 1, '2025-04-26 08:53:30', '2025-04-26 20:31:03'),
(2, 2, '[{\"name\":\"sts1\",\"date\":\"2025-04-23\",\"file\":\"uploads\\/entity_profile\\/19\\/Manuvals_and_documents\\/2\\/documants\\/1746017040_7db0a17505a7476c0a10.jpg\"}]', 'Initial', 19, 'organisation', 1, 'dsaddsa\r\n\r\n                             ', 8, 8, '2025-04-30 07:14:00', '2025-04-30 12:44:00'),
(3, 3, '[{\"name\":\"Doc12\",\"date\":\"2012-12-12\",\"file\":\"uploads\\/entity_profile\\/23\\/Manuvals_and_documents\\/3\\/documants\\/1746031243_1d74005ff02ee8d9069a.pdf\"},{\"name\":\"Doc23\",\"date\":\"2022-05-23\",\"file\":\"uploads\\/entity_profile\\/23\\/Manuvals_and_documents\\/3\\/documants\\/1746031243_14fef56b1f93f8a53db8.pdf\"}]', 'Initial', 23, 'organisation', 1, '\r\nTest\r\n                             ', 20, 20, '2025-04-30 11:10:43', '2025-04-30 16:40:43'),
(4, 2, '[{\"name\":\"Test\",\"date\":\"2025-05-12\",\"file\":\"uploads\\/entity_profile\\/36\\/Manuvals_and_documents\\/4\\/documants\\/1746724671_97ef8c77da312711b181.pdf\"}]', 'Initial', 36, 'organisation', 1, 'Test', 48, 48, '2025-05-08 11:47:51', '2025-05-08 17:17:51'),
(5, 6, '[{\"name\":\"Sdoc\",\"date\":\"2025-05-29\",\"file\":\"uploads\\/entity_profile\\/36\\/Manuvals_and_documents\\/5\\/documants\\/1746724711_a5f8de7fb4002013b066.docx\"}]', 'Surveillance', 36, 'organisation', 1, 'Stest', 48, 48, '2025-05-08 11:48:31', '2025-05-08 17:18:31'),
(6, 12, '[{\"name\":\"st1\",\"date\":\"2025-05-09\",\"file\":\"uploads\\/entity_profile\\/39\\/Manuvals_and_documents\\/6\\/documants\\/1746781931_04dd687afbe067650486.pdf\"}]', 'Initial', 39, 'organisation', 1, 'fgfjg', 52, 52, '2025-05-09 03:42:11', '2025-05-09 09:12:11'),
(7, 14, '[{\"name\":\"csfds\",\"date\":\"2025-05-08\",\"file\":\"uploads\\/entity_profile\\/39\\/Manuvals_and_documents\\/7\\/documants\\/1746794273_749fe49b14bf012f537b.pdf\"}]', 'Surveillance', 39, 'organisation', 1, '', 52, 52, '2025-05-09 07:07:53', '2025-05-09 12:37:53'),
(8, 15, '[{\"name\":\"dfdfd\",\"date\":\"2025-05-14\",\"file\":\"uploads\\/entity_profile\\/33\\/Manuvals_and_documents\\/8\\/documants\\/1747014697_4814115db302e6d67ce6.xlsx\"}]', 'Initial', 33, 'fpo', 1, 'dsfdf', 45, 45, '2025-05-11 20:21:37', '2025-05-12 01:51:37'),
(9, 17, '[{\"name\":\"SOP \\u2013 Personal Hygiene\",\"date\":\"2025-05-01\",\"file\":\"uploads\\/entity_profile\\/43\\/Manuvals_and_documents\\/9\\/documants\\/1747489742_599e86c6700b32810da2.docx\"},{\"name\":\"CCP Monitoring Log\",\"date\":\"2025-05-02\",\"file\":\"uploads\\/entity_profile\\/43\\/Manuvals_and_documents\\/9\\/documants\\/1747489742_e9fec799a6bc1aff1efe.docx\"},{\"name\":\"Pest Control Record\\t\",\"date\":\"2025-05-01\",\"file\":\"uploads\\/entity_profile\\/43\\/Manuvals_and_documents\\/9\\/documants\\/1747489742_7b8060ad2cffb5412074.doc\"},{\"name\":\"Maintenance Log\\t\",\"date\":\"2025-04-30\",\"file\":\"uploads\\/entity_profile\\/43\\/Manuvals_and_documents\\/9\\/documants\\/1747489742_87e1297174ae0b1aa2da.doc\"}]', 'Initial', 43, 'organisation', 1, 'Test', 65, 65, '2025-05-17 08:19:02', '2025-05-17 13:49:02'),
(10, 17, '[{\"name\":\"Clause 4 - Context of the organization\",\"date\":\"2025-05-01\",\"file\":\"uploads\\/entity_profile\\/43\\/Manuvals_and_documents\\/10\\/documants\\/1747491100_2e93d355a5a22ac17906.docx\"},{\"name\":\"Clause 5 - Leadership\",\"date\":\"2025-05-01\",\"file\":\"uploads\\/entity_profile\\/43\\/Manuvals_and_documents\\/10\\/documants\\/1747491100_deeac0bd09dba9533aac.docx\"},{\"name\":\"Clause 6 - Planning\",\"date\":\"2025-05-01\",\"file\":\"uploads\\/entity_profile\\/43\\/Manuvals_and_documents\\/10\\/documants\\/1747491100_f3fe817d4f177b540b2a.docx\"},{\"name\":\"Clause 7 - Support\",\"date\":\"2025-05-01\",\"file\":\"uploads\\/entity_profile\\/43\\/Manuvals_and_documents\\/10\\/documants\\/1747491100_a9ff050bca8a87aeaa9e.docx\"},{\"name\":\"Clause 8 - Operation\",\"date\":\"2025-05-01\",\"file\":\"uploads\\/entity_profile\\/43\\/Manuvals_and_documents\\/10\\/documants\\/1747491100_51536d8e7e788b98f171.docx\"},{\"name\":\"Clause 9 - Performance evaluation\",\"date\":\"2025-05-01\",\"file\":\"uploads\\/entity_profile\\/43\\/Manuvals_and_documents\\/10\\/documants\\/1747491100_9dac37af6371b43a2103.docx\"},{\"name\":\"Clause 10 - Improvement\",\"date\":\"2025-05-01\",\"file\":\"uploads\\/entity_profile\\/43\\/Manuvals_and_documents\\/10\\/documants\\/1747491100_a39debaf059d07a574d2.docx\"}]', 'Initial', 43, 'organisation', 1, 'Initial', 65, 65, '2025-05-17 08:41:40', '2025-05-17 14:11:40'),
(11, 18, '[{\"name\":\"Good Agricultural Practices\",\"date\":\"2025-05-20\",\"file\":\"uploads\\/entity_profile\\/43\\/Manuvals_and_documents\\/11\\/documants\\/1747718252_b62114473503603c19be.pdf\"}]', 'Surveillance', 43, 'organisation', 1, 'tESTING ', 65, 65, '2025-05-19 23:47:32', '2025-05-20 05:17:32'),
(12, 19, '[{\"name\":\"12587887\",\"date\":\"2025-05-20\",\"file\":\"uploads\\/entity_profile\\/43\\/Manuvals_and_documents\\/12\\/documants\\/1747718286_6097072eab7584606bce.pdf\"}]', 'Renewal', 43, 'organisation', 1, 'TESTING ', 65, 65, '2025-05-19 23:48:06', '2025-05-20 05:18:06'),
(13, 45, '[]', '1', 33, 'fpo', 1, '', 45, 45, '2025-05-24 03:09:18', '2025-05-24 08:39:18'),
(14, 24, '[{\"name\":\"Agreement\",\"date\":\"2025-02-26\",\"file\":\"uploads\\/entity_profile\\/48\\/Manuvals_and_documents\\/14\\/documants\\/1748858672_8a22381ddbde14848449.pdf\"}]', 'Initial', 48, 'organisation', 1, 'Working Guides', 88, 88, '2025-06-02 04:34:32', '2025-06-02 10:04:32'),
(15, 25, '[{\"name\":\"fdg\",\"date\":\"2025-06-02\",\"file\":\"uploads\\/entity_profile\\/49\\/Manuvals_and_documents\\/15\\/documants\\/1748864238_be50f7a64260dd4e953f.pdf\"}]', 'Initial', 49, 'fpo', 1, ' fchh', 89, 89, '2025-06-02 06:07:18', '2025-06-02 11:37:29'),
(16, 27, '[{\"name\":\"Agreement\",\"date\":\"2025-06-02\",\"file\":\"uploads\\/entity_profile\\/51\\/Manuvals_and_documents\\/16\\/documants\\/1748873027_82ad9a387af9f447002b.pdf\"}]', 'Initial', 51, 'organisation', 1, 'Audit Reports', 107, 107, '2025-06-02 08:33:47', '2025-06-02 14:03:47'),
(17, 23, '[{\"name\":\"Agreement\",\"date\":\"2025-06-02\",\"file\":\"uploads\\/entity_profile\\/47\\/Manuvals_and_documents\\/17\\/documants\\/1748876131_b5df68f51b09a375125f.pdf\"}]', 'Initial', 47, 'fpo', 1, 'Good', 82, 82, '2025-06-02 09:25:31', '2025-06-02 14:55:31'),
(18, 23, '[{\"name\":\"Agreement\",\"date\":\"2025-06-02\",\"file\":\"uploads\\/entity_profile\\/47\\/Manuvals_and_documents\\/18\\/documants\\/1749035505_db57e1a73c7218d68d16.pdf\"}]', 'Surveillance', 47, 'fpo', 1, 'Good only', 82, 82, '2025-06-04 11:11:45', '2025-06-04 11:11:45'),
(19, 34, '[{\"name\":\"1. QMS- LEGALITY, ADMINISTRATION, AND STRUCTURE\",\"date\":\"2025-07-05\",\"file\":\"uploads\\/entity_profile\\/38\\/Manuvals_and_documents\\/19\\/documants\\/1751693044_fdf80da7d7f77c0ec2a5.pdf\"},{\"name\":\"2. QMS-PRODUCERS AND PRODUCTION SITES\",\"date\":\"2025-07-05\",\"file\":\"uploads\\/entity_profile\\/38\\/Manuvals_and_documents\\/19\\/documants\\/1751693044_3156610e4f712a672dff.pdf\"},{\"name\":\"3. QMS- REQUIREMENTS FOR PRODUCER GROUPS\",\"date\":\"2025-07-05\",\"file\":\"uploads\\/entity_profile\\/38\\/Manuvals_and_documents\\/19\\/documants\\/1751693044_51ea52487717090770c2.pdf\"},{\"name\":\"4. QMS- QUALITY MANAGEMENT SYSTEM OF GROUP FACILITY\",\"date\":\"2025-07-05\",\"file\":\"uploads\\/entity_profile\\/38\\/Manuvals_and_documents\\/19\\/documants\\/1751693044_b8db89aaccbbb808cfa7.pdf\"},{\"name\":\"5. QMS- DOCUMENT CONTROL\",\"date\":\"2025-07-05\",\"file\":\"uploads\\/entity_profile\\/38\\/Manuvals_and_documents\\/19\\/documants\\/1751693044_6e16b9baa2e222b6b750.pdf\"},{\"name\":\"6. QMS- RECORDS\",\"date\":\"2025-07-05\",\"file\":\"uploads\\/entity_profile\\/38\\/Manuvals_and_documents\\/19\\/documants\\/1751693044_e5f7806a3124b3445761.pdf\"},{\"name\":\"7. QMS- COMPLAINT HANDLING\",\"date\":\"2025-07-05\",\"file\":\"uploads\\/entity_profile\\/38\\/Manuvals_and_documents\\/19\\/documants\\/1751693044_692a0487f0e5f90a61f0.pdf\"},{\"name\":\"8. QMS- INTERNAL QUALITY MANAGEMENT SYSTEM AUDIT\",\"date\":\"2025-07-05\",\"file\":\"uploads\\/entity_profile\\/38\\/Manuvals_and_documents\\/19\\/documants\\/1751693044_70fa86ee34a81f482517.pdf\"}]', 'Initial', 38, 'organisation', 1, 'NA', 51, 51, '2025-07-05 05:24:04', '2025-07-05 05:24:04'),
(20, 35, '[{\"name\":\"Risk Assessments\",\"date\":\"2025-07-05\",\"file\":\"uploads\\/entity_profile\\/38\\/Manuvals_and_documents\\/20\\/documants\\/1751696077_a934b3e323f3efc9faca.pdf\"},{\"name\":\"4. Worker Safety  -Risk Analysis\",\"date\":\"2025-07-05\",\"file\":\"uploads\\/entity_profile\\/38\\/Manuvals_and_documents\\/20\\/documants\\/1751696308_de99e03ca6924d3aa9f5.pdf\"}]', 'Surveillance', 38, 'organisation', 1, ' NA', 51, 51, '2025-07-05 06:14:37', '2025-07-05 06:18:28'),
(21, 33, '[{\"name\":\"Good Agricultural Practices\",\"date\":\"2025-07-01\",\"file\":\"uploads\\/entity_profile\\/54\\/Manuvals_and_documents\\/21\\/documants\\/1752052802_a3a3aee66733651041e1.pdf\"}]', 'Surveillance', 54, 'fpo', 1, ' Na', 135, 135, '2025-07-09 09:20:02', '2025-07-29 07:42:46'),
(22, 36, '[{\"name\":\"Principles and Criteria for Fruit and Vegetables\",\"date\":\"2025-07-01\",\"file\":\"uploads\\/entity_profile\\/54\\/Manuvals_and_documents\\/22\\/documants\\/1752053901_1f47cc318662befd8282.docx\"}]', 'Initial', 54, 'fpo', 1, ' ', 135, 135, '2025-07-09 09:38:21', '2025-07-29 07:42:41'),
(23, 36, '[{\"name\":\"FV 02 CONTINUOUS IMPROVEMENT PLAN\",\"date\":\"2025-07-01\",\"file\":\"uploads\\/entity_profile\\/54\\/Manuvals_and_documents\\/23\\/documants\\/1752053956_cadd9e1c3f1919f2d067.docx\"}]', 'Initial', 54, 'fpo', 1, ' ', 135, 135, '2025-07-09 09:39:16', '2025-07-29 07:42:34');

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

--
-- Table structure for table `mass_balance_register`
--

CREATE TABLE `mass_balance_register` (
  `id` int(10) UNSIGNED NOT NULL,
  `farmer_id` int(10) UNSIGNED DEFAULT NULL,
  `farm_id` int(10) UNSIGNED DEFAULT NULL,
  `crop_id` int(10) UNSIGNED DEFAULT NULL,
  `crop_name` text DEFAULT NULL,
  `crop_qty_measure` varchar(50) DEFAULT NULL,
  `produce_specs` varchar(50) DEFAULT NULL COMMENT 'Produce Specifications',
  `production_estimate_qty` decimal(10,2) DEFAULT NULL COMMENT 'Estimated production quantity',
  `Harvested_Qty` decimal(10,2) DEFAULT NULL COMMENT 'Harvested_Qty',
  `Sales_Qty` decimal(10,2) DEFAULT NULL COMMENT 'Sales_Qty',
  `Closing_Inventory_Qty` decimal(10,2) DEFAULT NULL COMMENT 'Estimated production quantity',
  `season` enum('Kharif','Rabi','Zaid') DEFAULT NULL,
  `year` int(11) DEFAULT NULL,
  `remark` text DEFAULT NULL,
  `status` tinyint(1) DEFAULT 1,
  `associated_by` varchar(50) DEFAULT NULL,
  `entity_id` int(10) UNSIGNED DEFAULT NULL,
  `created_by` int(10) UNSIGNED DEFAULT NULL,
  `created_at` datetime DEFAULT current_timestamp(),
  `updated_by` int(10) UNSIGNED DEFAULT NULL,
  `updated_at` datetime DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `Sales_by_FPO` int(11) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `mass_balance_register`
--

INSERT INTO `mass_balance_register` (`id`, `farmer_id`, `farm_id`, `crop_id`, `crop_name`, `crop_qty_measure`, `produce_specs`, `production_estimate_qty`, `Harvested_Qty`, `Sales_Qty`, `Closing_Inventory_Qty`, `season`, `year`, `remark`, `status`, `associated_by`, `entity_id`, `created_by`, `created_at`, `updated_by`, `updated_at`, `Sales_by_FPO`) VALUES
(1, 11, 2, 2, 'ggjj,mk', NULL, '', 0.00, 0.00, 0.00, 0.00, 'Zaid', 2019, '    ', 1, 'fpo', 33, 45, '2025-05-27 11:27:43', 45, '2025-05-27 11:33:58', 0),
(2, 17, 14, 18, 'Leaves', 'Kilograms', '', 0.00, 0.00, 0.00, 0.00, 'Kharif', 2025, '', 1, 'fpo', 47, 82, '2025-06-02 14:57:14', 82, '2025-06-02 14:57:14', 0),
(3, 17, 14, 18, 'Leaves', 'Qunital', '', 0.00, 0.00, 0.00, 0.00, 'Kharif', 2025, '', 1, 'fpo', 47, 82, '2025-06-04 11:12:40', 82, '2025-06-04 11:12:40', 0),
(4, 28, 18, 21, 'Chilli', 'Qunital', 'chilli Teja ', 100.00, 100.00, 100.00, 100.00, 'Kharif', 2025, '  ', 1, 'fpo', 54, 135, '2025-07-09 09:21:06', 135, '2025-07-29 07:43:33', 0),
(5, 28, 18, 26, 'Maize', 'Qunital', 'Complies with national food safety and export qual', 100.00, 100.00, 100.00, 100.00, 'Rabi', 2025, '  ', 1, 'fpo', 54, 135, '2025-07-10 05:24:47', 135, '2025-07-29 07:43:25', 0);

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

--
-- Table structure for table `packaging_unit`
--

CREATE TABLE `packaging_unit` (
  `id` int(11) NOT NULL,
  `name` varchar(30) NOT NULL,
  `unit_id` char(100) NOT NULL,
  `location` text DEFAULT NULL,
  `location_lat` text DEFAULT NULL,
  `location_long` text DEFAULT NULL,
  `pckg_address1` varchar(50) NOT NULL,
  `pckg_address2` varchar(50) DEFAULT NULL,
  `pckg_village` varchar(30) DEFAULT NULL,
  `pckg_country` varchar(100) DEFAULT NULL,
  `pckg_state` varchar(100) DEFAULT NULL,
  `pckg_city` varchar(100) DEFAULT NULL,
  `pckg_pin_code` char(6) NOT NULL,
  `ownership` enum('Own','Leasehold') DEFAULT NULL,
  `number_of_years_leasehold` int(11) NOT NULL,
  `type_of_structure` text DEFAULT NULL,
  `area_sq_meters` text DEFAULT NULL,
  `packaging_activities` varchar(100) DEFAULT NULL,
  `commodities_handled` varchar(100) DEFAULT NULL,
  `photo` text DEFAULT NULL,
  `process_flow_files` text DEFAULT NULL,
  `status` int(11) NOT NULL DEFAULT 1,
  `entity_id` int(11) DEFAULT NULL,
  `associated_by` text NOT NULL,
  `created_by` int(11) NOT NULL,
  `updated_by` int(11) NOT NULL,
  `Responsible_Person_Name` text NOT NULL,
  `Designation` text NOT NULL,
  `Contact_Number` text NOT NULL,
  `remark` text DEFAULT NULL,
  `created_at` timestamp NOT NULL DEFAULT current_timestamp(),
  `updated_at` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp()
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `packaging_unit`
--

INSERT INTO `packaging_unit` (`id`, `name`, `unit_id`, `location`, `location_lat`, `location_long`, `pckg_address1`, `pckg_address2`, `pckg_village`, `pckg_country`, `pckg_state`, `pckg_city`, `pckg_pin_code`, `ownership`, `number_of_years_leasehold`, `type_of_structure`, `area_sq_meters`, `packaging_activities`, `commodities_handled`, `photo`, `process_flow_files`, `status`, `entity_id`, `associated_by`, `created_by`, `updated_by`, `Responsible_Person_Name`, `Designation`, `Contact_Number`, `remark`, `created_at`, `updated_at`) VALUES
(1, 'ramachandran selvam', 'Facility-15_1', '{\"Others\":\"  erewrewrw\"}', '12.000000', '21.000000', 'chennai', 'tamil nadu', '3245435', 'Albania', 'Berat District', 'Bashkia Poliçan', '600100', 'Own', 0, 'Makeshift Semi Automated', '121', '    dfdsf', '    fdsfsdsd', '[\"uploads\\/entity_profile\\/15\\/packaging_unit\\/1\\/photos\\/\\/1745330294_8b4f982b845952a4cded.jpg\",\"uploads\\/entity_profile\\/15\\/packaging_unit\\/1\\/photos\\/\\/1745330263_aa2c2e9089704e0fbd6d.jpg\",\"uploads\\/entity_profile\\/15\\/packaging_unit\\/1\\/photos\\/1745321707_cee5ec585fb52da5a836.jpg\"]', '[{\"name\":\"old_documant\",\"date\":\"2025-04-28\",\"file\":\"uploads\\/entity_profile\\/15\\/packaging_unit\\/1\\/process_flow_files\\/1745321707_d4fa1f6ec931e2de7dfc.jpg\"},{\"name\":\"fsdfsdfdd\",\"date\":\"2025-03-31\",\"file\":\"uploads\\/entity_profile\\/15\\/packaging_unit\\/1\\/process_flow_files\\/1745330294_837d4838396e63495016.jpg\"}]', 0, 15, 'organisation', 1, 1, '3434', '4343', '9360135395', '    \r\ndsfdsf\r\n                                 ', '2025-04-22 06:05:07', '2025-04-25 02:14:17'),
(2, 'stspackaging', 'Facility-19_2', '{\"Factory_builidings\":[\"13\"]}', '34', '45', '20 soma sundram', 'villapuram', 'madurai', 'India', 'Tamil Nadu', 'Chennai', '625004', 'Own', 0, 'Makeshift Semi Automated', '12000', ' zxzXZX', ' zxZX', '[\"uploads\\/entity_profile\\/19\\/packaging_unit\\/2\\/photos\\/1746011416_dc93e41927b5c32048df.png\"]', '[{\"name\":\"st1\",\"date\":\"2025-05-09\",\"file\":\"uploads\\/entity_profile\\/19\\/packaging_unit\\/2\\/process_flow_files\\/1746011416_453d87242f6dfcf81632.png\"},{\"name\":\"st2\",\"date\":\"2025-05-08\",\"file\":\"uploads\\/entity_profile\\/19\\/packaging_unit\\/2\\/process_flow_files\\/1746011416_84facb75447d020476f6.png\"}]', 1, 19, 'organisation', 8, 8, 'thamilse', 'manager', '9655550555', ' zxXXx\r\nzxXXz\r\n                              ', '2025-04-30 05:40:16', '2025-04-30 05:42:59'),
(3, 'NewPackage', 'Facility-23_3', '{\"Storage_Details\":[\"8\"]}', '12.111', '43.5677', 'Ad1', 'Ad2', 'V1', 'India', 'Tamil Nadu', 'Chennai', '321654', 'Leasehold', 0, 'Makeshift Manual', '1000', 'Packaging units', 'Commodities Handled', '[\"uploads\\/entity_profile\\/23\\/packaging_unit\\/3\\/photos\\/1746030838_e9b471546b7017bb0dd5.png\"]', '[{\"name\":\"Doc1\",\"date\":\"2021-12-12\",\"file\":\"uploads\\/entity_profile\\/23\\/packaging_unit\\/3\\/process_flow_files\\/1746030838_a832ae0b7cd0208d3f47.pdf\"}]', 1, 23, 'organisation', 20, 20, 'Santhosh', 'Tester', '9876543452', 'Remarks\r\n\r\n                             ', '2025-04-30 11:03:58', '2025-04-30 11:03:58'),
(4, 'ramachandran selvam', 'Facility-15_4', '{\"Factory_builidings\":[\"15\",\"16\",\"17\"]}', '44', '33', 'chennai', 'tamil nadu', '4343', 'Albania', 'Berat District', 'Bashkia Poliçan', '232323', 'Leasehold', 31, 'Makeshift Manual', '332', ' 3232323', ' 23232', '[\"uploads\\/entity_profile\\/15\\/packaging_unit\\/4\\/photos\\/1746168140_5a243f2d59b9dba65102.png\"]', '[{\"name\":\"dfdsfdsf\",\"date\":\"2025-05-27\",\"file\":\"uploads\\/entity_profile\\/15\\/packaging_unit\\/4\\/process_flow_files\\/1746168140_8a8d47160e96363b78f9.png\"}]', 1, 15, 'organisation', 15, 15, '32323', '2323', '232323', ' 3232323 ', '2025-05-02 01:12:20', '2025-05-02 01:12:42'),
(5, 'ramachandran selvam', 'Facility-37_5', '{\"Corporate_Office\":null}', '3', '32', 'chennai', 'tamil nadu', 'medavakkam ', 'Algeria', 'Aïn Defla Province', 'El Attaf', '600100', 'Leasehold', 3, 'Makeshift Semi Automated', '34', ' dasdasd', ' sads', '[\"uploads\\/entity_profile\\/37\\/packaging_unit\\/5\\/photos\\/1746789041_32acc3aeabc87b22cb78.jpg\"]', '[{\"name\":\"dfs\",\"date\":\"2025-04-29\",\"file\":\"uploads\\/entity_profile\\/37\\/packaging_unit\\/5\\/process_flow_files\\/1746789041_a1dd593dd610b331b74d.xlsx\"}]', 0, 37, 'organisation', 49, 49, '3434', 'dsdsdsd', '9360135395', ' adsads ', '2025-05-09 05:40:41', '2025-05-09 05:41:20'),
(6, 'stspackaging', 'Facility-39_6', '{\"Corporate_Office\":null}', '34', '45', '34 soma', 'villapuram', 'madurai', 'India', 'Tamil Nadu', 'Madurai', '625003', 'Own', 0, 'Makeshift Fully Automated', '4000', 'saaa', 'sdaad', '[\"uploads\\/entity_profile\\/39\\/packaging_unit\\/6\\/photos\\/1746789304_155e0cc5f100e3da6d2b.jpg\"]', '[{\"name\":\"ssa\",\"date\":\"2025-05-08\",\"file\":\"uploads\\/entity_profile\\/39\\/packaging_unit\\/6\\/process_flow_files\\/1746789304_d58079ba2e4d7c3a50d4.pdf\"},{\"name\":\"p1\",\"date\":\"2025-05-08\",\"file\":\"uploads\\/entity_profile\\/39\\/packaging_unit\\/6\\/process_flow_files\\/1746789304_06ab08f36c3c0637e802.xlsx\"}]', 1, 39, 'organisation', 52, 52, 'dsfs', 'sdfs', '9655550557', 'asdad', '2025-05-09 05:45:04', '2025-05-09 05:45:04'),
(7, 'ramachandran selvam', 'Facility-37_7', '{\"Factory_builidings\":[\"27\"]}', '44', '33', 'chennai', 'tamil nadu', '3245435', 'Algeria', 'Aïn Defla Province', 'El Attaf', '600100', 'Own', 0, 'Makeshift Semi Automated', '343', 'dfsdfds', 'fsd', '[\"uploads\\/entity_profile\\/37\\/packaging_unit\\/7\\/photos\\/1746790024_56a3293281a7e4d2d2e7.jpg\"]', '[{\"name\":\"dfsdfdsf\",\"date\":\"2025-05-06\",\"file\":\"uploads\\/entity_profile\\/37\\/packaging_unit\\/7\\/process_flow_files\\/1746790024_81306caee848431ae6bb.xlsx\"}]', 1, 37, 'organisation', 49, 49, 'dfdsfdsf', 'fsdfsdfsdf', '9360135395', 'fsdfsdf', '2025-05-09 05:57:04', '2025-05-09 05:57:04'),
(8, 'Tata', 'Facility-48_8', '{\"Corporate_Office\":null}', '', '', '56', '', '', 'India', 'Tamil Nadu', 'Chennai', '600049', NULL, 0, NULL, '', ' ', ' ', '[]', '[{\"name\":\"Agreement\",\"date\":\"2022-07-14\",\"file\":\"uploads\\/entity_profile\\/48\\/packaging_unit\\/8\\/process_flow_files\\/1748855656_7ce35698f455a662f9ee.pdf\"}]', 1, 48, 'organisation', 88, 88, 'Venkat', 'Manager', '1234567890', '  ', '2025-06-02 03:44:16', '2025-06-03 07:14:58'),
(9, 'Tata', 'Facility-51_9', '{\"Corporate_Office\":null}', '', '', '89', '', '', 'India', 'Tamil Nadu', 'Chennai', '600043', NULL, 0, NULL, '', '', '', NULL, '[{\"name\":\"Agreement\",\"date\":\"2025-06-02\",\"file\":\"uploads\\/entity_profile\\/51\\/packaging_unit\\/9\\/process_flow_files\\/1748872690_d4cd26883c30355b716f.pdf\"}]', 1, 51, 'organisation', 107, 107, 'Venkat', 'Manager', '1234567890', '', '2025-06-02 08:28:10', '2025-06-02 08:28:10'),
(10, 'ramachandran selvam', 'Facility-33_10', '[]', '', '', 'chennai', 'tamil nadu', '', 'Albania', 'Berat District', 'Bashkia Kuçovë', '600100', NULL, 0, NULL, '', '', '', NULL, NULL, 1, 33, 'fpo', 45, 45, '', '', '9360135395', '', '2025-06-02 09:46:36', '2025-06-02 09:46:36'),
(11, 'Tata', 'Facility-47_11', '{\"Corporate_Office\":null}', '', '', '46', '', '', 'India', 'Tamil Nadu', 'Chennai', '600049', NULL, 0, NULL, '', '  ', '  ', '[]', '[{\"name\":\"Agreement\",\"date\":\"2025-06-02\",\"file\":\"uploads\\/entity_profile\\/47\\/packaging_unit\\/11\\/process_flow_files\\/1748878125_5fa5fb626ea5fa5bc214.pdf\"}]', 1, 47, 'fpo', 82, 82, 'Shankar', 'Supervisor', '1234567890', '    ', '2025-06-02 09:58:45', '2025-06-03 00:18:54'),
(12, 'Anji Reddy Durgampudi', 'Facility-54_12', '{\"storage_details\":[\"19\"]}', '17.385044', '78.486671', 'Survey No. 45, Near NH-563,', 'Hyderabad', 'Vanastalipuram', 'India', 'Telangana', 'Hyderābād', '500070', 'Own', 0, 'Makeshift Semi Automated', '2000', ' ', ' ', '[]', NULL, 1, 54, 'fpo', 135, 135, 'Ravi', 'Manager', '9010466610', '  ', '2025-07-10 05:19:38', '2025-07-29 07:40:32'),
(13, 'Anji Reddy Durgampudi', 'Facility-38_13', '{\"Corporate_Office\":null}', '78.486671', '78.486671', 'Survey No. 45, Near NH-563,', 'Hyderabad', 'Moga', 'India', 'Telangana', 'Hyderābād', '500034', 'Own', 0, 'Makeshift Semi Automated', '20000', '', '', NULL, '[{\"name\":\"HAZARD AND RISK MANAGEMENT\",\"date\":\"2025-07-28\",\"file\":\"uploads\\/entity_profile\\/38\\/packaging_unit\\/13\\/process_flow_files\\/1753705271_9ce88ab342df543bff41.docx\"}]', 1, 38, 'organisation', 51, 51, 'Ravi', 'Manager', '9010466610', '', '2025-07-28 12:21:11', '2025-07-28 12:21:11');

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

--
-- Table structure for table `pages_acessing_control`
--

CREATE TABLE `pages_acessing_control` (
  `page_name` text NOT NULL,
  `permison` text NOT NULL,
  `roll_id` int(11) NOT NULL,
  `created_at` timestamp NOT NULL DEFAULT current_timestamp()
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `pages_acessing_control`
--

INSERT INTO `pages_acessing_control` (`page_name`, `permison`, `roll_id`, `created_at`) VALUES
('factory', 'view', 3, '2025-04-29 11:18:31'),
('factory plant and machinery', 'edit', 3, '2025-04-29 11:18:31'),
('organization-profile-page', 'add,edit,delete', 8, '2025-05-05 07:32:37'),
('contact-person', 'add,edit,delete', 8, '2025-05-05 07:32:37'),
('certificate', 'add,edit,delete', 8, '2025-05-05 07:32:37'),
('skill', 'add,edit,delete', 8, '2025-05-05 07:32:37'),
('department', 'add,edit,delete', 8, '2025-05-05 07:32:37'),
('role-and-designation', 'add,edit,delete', 8, '2025-05-05 07:32:37'),
('factory', 'add,edit,delete', 8, '2025-05-05 07:32:37'),
('storage', 'add,edit,delete', 8, '2025-05-05 07:32:37'),
('packaging', 'add,edit,delete', 8, '2025-05-05 07:32:37'),
('plant-and-machinery', 'add,edit,delete', 8, '2025-05-05 07:32:37'),
('employment', 'add,edit,delete', 8, '2025-05-05 07:32:37'),
('subcontractor', 'add,edit,delete', 8, '2025-05-05 07:32:37'),
('internal-inspector', 'add,edit,delete', 8, '2025-05-05 07:32:37'),
('internal-auditor', 'add,edit,delete', 8, '2025-05-05 07:32:37'),
('manuals-and-documents', 'add,edit,delete', 8, '2025-05-05 07:32:37'),
('product-sampling', 'add,edit,delete', 8, '2025-05-05 07:32:37'),
('internal-audit', 'add,edit,delete', 8, '2025-05-05 07:32:37'),
('certification-body-audit', 'add,edit,delete', 8, '2025-05-05 07:32:37'),
('standard-certificate', 'add,edit,delete', 8, '2025-05-05 07:32:37'),
('factory', 'edit,delete', 5, '2025-05-07 05:54:06'),
('storage', 'edit,delete', 5, '2025-05-07 05:54:06'),
('certificate', 'add,edit,delete', 7, '2025-05-07 07:47:46'),
('skill', 'add,edit,delete', 7, '2025-05-07 07:47:46'),
('department', 'add,edit,delete', 7, '2025-05-07 07:47:46'),
('role-and-designation', 'add,edit,delete', 7, '2025-05-07 07:47:46'),
('factory', 'add,edit,delete', 7, '2025-05-07 07:47:46'),
('storage', 'add,edit,delete', 7, '2025-05-07 07:47:46'),
('packaging', 'add,edit,delete', 7, '2025-05-07 07:47:46'),
('plant-and-machinery', 'add,edit,delete', 7, '2025-05-07 07:47:46'),
('employment', 'add,edit,delete', 7, '2025-05-07 07:47:46'),
('subcontractor', 'add,edit,delete', 7, '2025-05-07 07:47:46'),
('internal-inspector', 'add,edit,delete', 7, '2025-05-07 07:47:46'),
('internal-auditor', 'add,edit,delete', 7, '2025-05-07 07:47:46'),
('manuals-and-documents', 'add,edit,delete', 7, '2025-05-07 07:47:46'),
('product-sampling', 'add,edit,delete', 7, '2025-05-07 07:47:46'),
('internal-audit', 'add,edit,delete', 7, '2025-05-07 07:47:46'),
('certification-body-audit', 'add,edit,delete', 7, '2025-05-07 07:47:46'),
('standard-certificate', 'add', 7, '2025-05-07 07:47:46'),
('organization-profile-page', 'add,edit,delete', 9, '2025-05-07 16:22:42'),
('contact-person', 'add,edit,delete', 9, '2025-05-07 16:22:42'),
('certificate', 'add,edit,delete', 9, '2025-05-07 16:22:42'),
('skill', 'add,edit,delete', 9, '2025-05-07 16:22:42'),
('department', 'add,edit,delete', 9, '2025-05-07 16:22:42'),
('role-and-designation', 'add,edit,delete', 9, '2025-05-07 16:22:42'),
('factory', 'add,edit,delete', 9, '2025-05-07 16:22:42'),
('storage', 'add,edit,delete', 9, '2025-05-07 16:22:42'),
('packaging', 'add,edit,delete', 9, '2025-05-07 16:22:42'),
('plant-and-machinery', 'add,edit,delete', 9, '2025-05-07 16:22:42'),
('employment', 'add,edit,delete', 9, '2025-05-07 16:22:42'),
('subcontractor', 'add,edit,delete', 9, '2025-05-07 16:22:42'),
('internal-inspector', 'add,edit,delete', 9, '2025-05-07 16:22:42'),
('internal-auditor', 'add,edit,delete', 9, '2025-05-07 16:22:42'),
('manuals-and-documents', 'add,edit,delete', 9, '2025-05-07 16:22:42'),
('product-sampling', 'add,edit,delete', 9, '2025-05-07 16:22:42'),
('internal-audit', 'add,edit,delete', 9, '2025-05-07 16:22:42'),
('certification-body-audit', 'add,edit,delete', 9, '2025-05-07 16:22:42'),
('standard-certificate', 'add,edit,delete', 9, '2025-05-07 16:22:42'),
('contact-person', 'add,edit,delete', 10, '2025-05-08 11:57:09'),
('certificate', 'add,edit,delete', 10, '2025-05-08 11:57:09'),
('skill', 'add,edit,delete', 10, '2025-05-08 11:57:09'),
('department', 'add,edit,delete', 10, '2025-05-08 11:57:09'),
('role-and-designation', 'add,edit,delete', 10, '2025-05-08 11:57:09'),
('factory', 'add,edit,delete', 10, '2025-05-08 11:57:09'),
('storage', 'add,edit,delete', 10, '2025-05-08 11:57:09'),
('packaging', 'add,edit,delete', 10, '2025-05-08 11:57:09'),
('plant-and-machinery', 'add,edit,delete', 10, '2025-05-08 11:57:09'),
('employment', 'add,edit,delete', 10, '2025-05-08 11:57:09'),
('subcontractor', 'add,edit,delete', 10, '2025-05-08 11:57:09'),
('internal-inspector', 'add,edit,delete', 10, '2025-05-08 11:57:09'),
('internal-auditor', 'add,edit,delete', 10, '2025-05-08 11:57:09'),
('manuals-and-documents', 'add,edit,delete', 10, '2025-05-08 11:57:09'),
('product-sampling', 'add,edit,delete', 10, '2025-05-08 11:57:09'),
('internal-audit', 'add,edit,delete', 10, '2025-05-08 11:57:09'),
('certification-body-audit', 'add,edit,delete', 10, '2025-05-08 11:57:09'),
('standard-certificate', 'add,edit,delete', 10, '2025-05-08 11:57:09'),
('organization-profile-page', 'add,edit,delete', 6, '2025-05-08 16:27:48'),
('contact-person', 'add,edit,delete', 6, '2025-05-08 16:27:48'),
('certificate', 'add,edit,delete', 6, '2025-05-08 16:27:48'),
('skill', 'add,edit,delete', 6, '2025-05-08 16:27:48'),
('department', 'add,edit,delete', 6, '2025-05-08 16:27:48'),
('role-and-designation', 'add,edit,delete', 6, '2025-05-08 16:27:48'),
('factory', 'add,edit,delete', 6, '2025-05-08 16:27:48'),
('storage', 'add,edit,delete', 6, '2025-05-08 16:27:48'),
('packaging', 'add,edit,delete', 6, '2025-05-08 16:27:48'),
('plant-and-machinery', 'add,edit,delete', 6, '2025-05-08 16:27:48'),
('employment', 'add,edit,delete', 6, '2025-05-08 16:27:48'),
('subcontractor', 'add,edit,delete', 6, '2025-05-08 16:27:48'),
('internal-inspector', 'add,edit,delete', 6, '2025-05-08 16:27:48'),
('internal-auditor', 'add,edit,delete', 6, '2025-05-08 16:27:48'),
('manuals-and-documents', 'add,edit,delete', 6, '2025-05-08 16:27:48'),
('product-sampling', 'add,edit,delete', 6, '2025-05-08 16:27:48'),
('internal-audit', 'add,edit,delete', 6, '2025-05-08 16:27:48'),
('certification-body-audit', 'add,edit,delete', 6, '2025-05-08 16:27:48'),
('standard-certificate', 'add,edit,delete', 6, '2025-05-08 16:27:48'),
('organization-profile-page', 'add,edit,delete', 11, '2025-05-08 17:05:12'),
('contact-person', 'add,edit,delete', 11, '2025-05-08 17:05:12'),
('certificate', 'add,edit,delete', 11, '2025-05-08 17:05:12'),
('skill', 'add,edit,delete', 11, '2025-05-08 17:05:12'),
('department', 'add,edit,delete', 11, '2025-05-08 17:05:12'),
('role-and-designation', 'add,edit,delete', 11, '2025-05-08 17:05:12'),
('factory', 'add,edit,delete', 11, '2025-05-08 17:05:12'),
('storage', 'add,edit,delete', 11, '2025-05-08 17:05:12'),
('packaging', 'add,edit,delete', 11, '2025-05-08 17:05:12'),
('plant-and-machinery', 'add,edit,delete', 11, '2025-05-08 17:05:12'),
('employment', 'add,edit,delete', 11, '2025-05-08 17:05:12'),
('subcontractor', 'add,edit,delete', 11, '2025-05-08 17:05:12'),
('internal-inspector', 'add,edit,delete', 11, '2025-05-08 17:05:12'),
('internal-auditor', 'add,edit,delete', 11, '2025-05-08 17:05:12'),
('manuals-and-documents', 'add,edit,delete', 11, '2025-05-08 17:05:12'),
('product-sampling', 'add,edit,delete', 11, '2025-05-08 17:05:12'),
('internal-audit', 'add,edit,delete', 11, '2025-05-08 17:05:12'),
('certification-body-audit', 'add,edit,delete', 11, '2025-05-08 17:05:12'),
('standard-certificate', 'add,edit,delete', 11, '2025-05-08 17:05:12'),
('factory', 'add,edit,delete', 12, '2025-05-08 17:07:01'),
('storage', 'add,edit,delete', 12, '2025-05-08 17:07:01'),
('packaging', 'add,edit,delete', 12, '2025-05-08 17:07:01'),
('plant-and-machinery', 'add,edit,delete', 12, '2025-05-08 17:07:01'),
('organization-profile-page', 'add,edit,delete', 13, '2025-05-08 17:08:12'),
('contact-person', 'add,edit,delete', 13, '2025-05-08 17:08:12'),
('certificate', 'add,edit,delete', 13, '2025-05-08 17:08:12'),
('skill', 'add,edit,delete', 13, '2025-05-08 17:08:12'),
('department', 'add,edit,delete', 13, '2025-05-08 17:08:12'),
('role-and-designation', 'add,edit,delete', 13, '2025-05-08 17:08:12'),
('factory', 'add,edit,delete', 13, '2025-05-08 17:08:12'),
('storage', 'add,edit,delete', 13, '2025-05-08 17:08:12'),
('packaging', 'add,edit,delete', 13, '2025-05-08 17:08:12'),
('plant-and-machinery', 'add,edit,delete', 13, '2025-05-08 17:08:12'),
('employment', 'add,edit,delete', 13, '2025-05-08 17:08:12'),
('subcontractor', 'add,edit,delete', 13, '2025-05-08 17:08:12'),
('internal-inspector', 'add,edit,delete', 13, '2025-05-08 17:08:12'),
('internal-auditor', 'add,edit,delete', 13, '2025-05-08 17:08:12'),
('manuals-and-documents', 'add,edit,delete', 13, '2025-05-08 17:08:12'),
('product-sampling', 'add,edit,delete', 13, '2025-05-08 17:08:12'),
('internal-audit', 'add,edit,delete', 13, '2025-05-08 17:08:12'),
('certification-body-audit', 'add,edit,delete', 13, '2025-05-08 17:08:12'),
('standard-certificate', 'add,edit,delete', 13, '2025-05-08 17:08:12'),
('organization-profile-page', 'add,edit,delete', 14, '2025-05-09 01:59:46'),
('contact-person', 'add,edit,delete', 14, '2025-05-09 01:59:46'),
('certificate', 'add,edit,delete', 14, '2025-05-09 01:59:46'),
('skill', 'add,edit,delete', 14, '2025-05-09 01:59:46'),
('department', 'add,edit,delete', 14, '2025-05-09 01:59:46'),
('role-and-designation', 'add,edit,delete', 14, '2025-05-09 01:59:46'),
('factory', 'add,edit,delete', 14, '2025-05-09 01:59:46'),
('storage', 'add,edit,delete', 14, '2025-05-09 01:59:46'),
('packaging', 'add,edit,delete', 14, '2025-05-09 01:59:46'),
('plant-and-machinery', 'add,edit,delete', 14, '2025-05-09 01:59:46'),
('employment', 'add,edit,delete', 14, '2025-05-09 01:59:46'),
('subcontractor', 'add,edit,delete', 14, '2025-05-09 01:59:46'),
('internal-inspector', 'add,edit,delete', 14, '2025-05-09 01:59:46'),
('internal-auditor', 'add,edit,delete', 14, '2025-05-09 01:59:46'),
('manuals-and-documents', 'add,edit,delete', 14, '2025-05-09 01:59:46'),
('product-sampling', 'add,edit,delete', 14, '2025-05-09 01:59:46'),
('internal-audit', 'add,edit,delete', 14, '2025-05-09 01:59:46'),
('certification-body-audit', 'add,edit,delete', 14, '2025-05-09 01:59:46'),
('standard-certificate', 'add,edit,delete', 14, '2025-05-09 01:59:46'),
('factory', 'add,edit,delete', 15, '2025-05-09 06:45:07'),
('storage', 'add,edit,delete', 15, '2025-05-09 06:45:07'),
('packaging', 'add,edit,delete', 15, '2025-05-09 06:45:07'),
('plant-and-machinery', 'add,edit,delete', 15, '2025-05-09 06:45:07'),
('employment', 'add,edit,delete', 15, '2025-05-09 06:45:07'),
('contact-person', 'add,edit,delete', 16, '2025-05-09 08:38:26'),
('certificate', 'add,edit,delete', 16, '2025-05-09 08:38:26'),
('skill', 'add,edit,delete', 16, '2025-05-09 08:38:26'),
('department', 'add,edit,delete', 16, '2025-05-09 08:38:26'),
('role-and-designation', 'add,edit,delete', 16, '2025-05-09 08:38:26'),
('factory', 'add,edit,delete', 16, '2025-05-09 08:38:26'),
('storage', 'add,edit,delete', 16, '2025-05-09 08:38:26'),
('packaging', 'add,edit,delete', 16, '2025-05-09 08:38:26'),
('plant-and-machinery', 'add,edit,delete', 16, '2025-05-09 08:38:26'),
('employment', 'add,edit,delete', 16, '2025-05-09 08:38:26'),
('subcontractor', 'add,edit,delete', 16, '2025-05-09 08:38:26'),
('internal-inspector', 'add,edit,delete', 16, '2025-05-09 08:38:26'),
('internal-auditor', 'add,edit,delete', 16, '2025-05-09 08:38:26'),
('manuals-and-documents', 'add,edit,delete', 16, '2025-05-09 08:38:26'),
('product-sampling', 'add,edit,delete', 16, '2025-05-09 08:38:26'),
('internal-audit', 'add,edit,delete', 16, '2025-05-09 08:38:26'),
('certification-body-audit', 'add,edit,delete', 16, '2025-05-09 08:38:26'),
('standard-certificate', 'add,edit,delete', 16, '2025-05-09 08:38:26'),
('organization-profile-page', 'add,edit,delete', 17, '2025-05-09 10:37:17'),
('contact-person', 'add,edit,delete', 17, '2025-05-09 10:37:17'),
('certificate', 'add,edit,delete', 17, '2025-05-09 10:37:17'),
('skill', 'add,edit,delete', 17, '2025-05-09 10:37:17'),
('department', 'add,edit,delete', 17, '2025-05-09 10:37:17'),
('role-and-designation', 'add,edit,delete', 17, '2025-05-09 10:37:17'),
('factory', 'add,edit,delete', 17, '2025-05-09 10:37:17'),
('storage', 'add,edit,delete', 17, '2025-05-09 10:37:17'),
('packaging', 'add,edit,delete', 17, '2025-05-09 10:37:17'),
('plant-and-machinery', 'add,edit,delete', 17, '2025-05-09 10:37:17'),
('employment', 'add,edit,delete', 17, '2025-05-09 10:37:17'),
('subcontractor', 'add,edit,delete', 17, '2025-05-09 10:37:17'),
('internal-inspector', 'add,edit,delete', 17, '2025-05-09 10:37:17'),
('internal-auditor', 'add,edit,delete', 17, '2025-05-09 10:37:17'),
('manuals-and-documents', 'add,edit,delete', 17, '2025-05-09 10:37:17'),
('product-sampling', 'add,edit,delete', 17, '2025-05-09 10:37:17'),
('internal-audit', 'add,edit,delete', 17, '2025-05-09 10:37:17'),
('certification-body-audit', 'add,edit,delete', 17, '2025-05-09 10:37:17'),
('standard-certificate', 'add,edit,delete', 17, '2025-05-09 10:37:17'),
('organization-profile-page', 'add,edit,delete', 18, '2025-05-09 10:37:30'),
('contact-person', 'add,edit,delete', 18, '2025-05-09 10:37:30'),
('certificate', 'add,edit,delete', 18, '2025-05-09 10:37:30'),
('skill', 'add,edit,delete', 18, '2025-05-09 10:37:30'),
('department', 'add,edit,delete', 18, '2025-05-09 10:37:30'),
('role-and-designation', 'add,edit,delete', 18, '2025-05-09 10:37:30'),
('factory', 'add,edit,delete', 18, '2025-05-09 10:37:30'),
('storage', 'add,edit,delete', 18, '2025-05-09 10:37:30'),
('packaging', 'add,edit,delete', 18, '2025-05-09 10:37:30'),
('plant-and-machinery', 'add,edit,delete', 18, '2025-05-09 10:37:30'),
('employment', 'add,edit,delete', 18, '2025-05-09 10:37:30'),
('subcontractor', 'add,edit,delete', 18, '2025-05-09 10:37:30'),
('internal-inspector', 'add,edit,delete', 18, '2025-05-09 10:37:30'),
('internal-auditor', 'add,edit,delete', 18, '2025-05-09 10:37:30'),
('manuals-and-documents', 'add,edit,delete', 18, '2025-05-09 10:37:30'),
('product-sampling', 'add,edit,delete', 18, '2025-05-09 10:37:30'),
('internal-audit', 'add,edit,delete', 18, '2025-05-09 10:37:30'),
('certification-body-audit', 'add,edit,delete', 18, '2025-05-09 10:37:30'),
('standard-certificate', 'add,edit,delete', 18, '2025-05-09 10:37:30'),
('organization-profile-page', 'add,edit,delete', 19, '2025-05-09 10:38:17'),
('contact-person', 'add,edit,delete', 19, '2025-05-09 10:38:17'),
('certificate', 'add,edit,delete', 19, '2025-05-09 10:38:17'),
('skill', 'add,edit,delete', 19, '2025-05-09 10:38:17'),
('department', 'add,edit,delete', 19, '2025-05-09 10:38:17'),
('role-and-designation', 'add,edit,delete', 19, '2025-05-09 10:38:17'),
('factory', 'add,edit,delete', 19, '2025-05-09 10:38:17'),
('storage', 'add,edit,delete', 19, '2025-05-09 10:38:17'),
('packaging', 'add,edit,delete', 19, '2025-05-09 10:38:17'),
('plant-and-machinery', 'add,edit,delete', 19, '2025-05-09 10:38:17'),
('employment', 'add,edit,delete', 19, '2025-05-09 10:38:17'),
('subcontractor', 'add,edit,delete', 19, '2025-05-09 10:38:17'),
('internal-inspector', 'add,edit,delete', 19, '2025-05-09 10:38:17'),
('internal-auditor', 'add,edit,delete', 19, '2025-05-09 10:38:17'),
('manuals-and-documents', 'add,edit,delete', 19, '2025-05-09 10:38:17'),
('product-sampling', 'add,edit,delete', 19, '2025-05-09 10:38:17'),
('internal-audit', 'add,edit,delete', 19, '2025-05-09 10:38:17'),
('certification-body-audit', 'add,edit,delete', 19, '2025-05-09 10:38:17'),
('standard-certificate', 'add,edit,delete', 19, '2025-05-09 10:38:17'),
('organization-profile-page', 'add,edit,delete', 20, '2025-05-09 10:41:37'),
('contact-person', 'add,edit,delete', 20, '2025-05-09 10:41:37'),
('certificate', 'add,edit,delete', 20, '2025-05-09 10:41:37'),
('skill', 'add,edit,delete', 20, '2025-05-09 10:41:37'),
('department', 'add,edit,delete', 20, '2025-05-09 10:41:37'),
('role-and-designation', 'add,edit,delete', 20, '2025-05-09 10:41:37'),
('factory', 'add,edit,delete', 20, '2025-05-09 10:41:37'),
('storage', 'add,edit,delete', 20, '2025-05-09 10:41:37'),
('packaging', 'add,edit,delete', 20, '2025-05-09 10:41:37'),
('plant-and-machinery', 'add,edit,delete', 20, '2025-05-09 10:41:37'),
('employment', 'add,edit,delete', 20, '2025-05-09 10:41:37'),
('subcontractor', 'add,edit,delete', 20, '2025-05-09 10:41:37'),
('internal-inspector', 'add,edit,delete', 20, '2025-05-09 10:41:37'),
('internal-auditor', 'add,edit,delete', 20, '2025-05-09 10:41:37'),
('manuals-and-documents', 'add,edit,delete', 20, '2025-05-09 10:41:37'),
('product-sampling', 'add,edit,delete', 20, '2025-05-09 10:41:37'),
('internal-audit', 'add,edit,delete', 20, '2025-05-09 10:41:37'),
('certification-body-audit', 'add,edit,delete', 20, '2025-05-09 10:41:37'),
('standard-certificate', 'add,edit,delete', 20, '2025-05-09 10:41:37'),
('subcontractor', 'add,edit,delete', 21, '2025-05-09 11:49:21'),
('certification-body-audit', 'add,edit,delete', 21, '2025-05-09 11:49:21'),
('standard-certificate', 'add,edit,delete', 21, '2025-05-09 11:49:21'),
('organization-profile-page', 'add,edit,delete', 23, '2025-05-16 10:10:06'),
('contact-person', 'add,edit,delete', 23, '2025-05-16 10:10:06'),
('certificate', 'add,edit,delete', 23, '2025-05-16 10:10:06'),
('skill', 'add,edit,delete', 23, '2025-05-16 10:10:06'),
('department', 'add,edit,delete', 23, '2025-05-16 10:10:06'),
('role-and-designation', 'add,edit,delete', 23, '2025-05-16 10:10:06'),
('factory', 'add,edit,delete', 23, '2025-05-16 10:10:06'),
('storage', 'add,edit,delete', 23, '2025-05-16 10:10:06'),
('packaging', 'add,edit,delete', 23, '2025-05-16 10:10:06'),
('plant-and-machinery', 'add,edit,delete', 23, '2025-05-16 10:10:06'),
('employment', 'add,edit,delete', 23, '2025-05-16 10:10:06'),
('subcontractor', 'add,edit,delete', 23, '2025-05-16 10:10:06'),
('internal-inspector', 'add,edit,delete', 23, '2025-05-16 10:10:06'),
('internal-auditor', 'add,edit,delete', 23, '2025-05-16 10:10:06'),
('manuals-and-documents', 'add,edit,delete', 23, '2025-05-16 10:10:06'),
('product-sampling', 'add,edit,delete', 23, '2025-05-16 10:10:06'),
('Implementation-compliance', 'add,edit,delete', 23, '2025-05-16 10:10:06'),
('internal-audit', 'add,edit,delete', 23, '2025-05-16 10:10:06'),
('certification-body-audit', 'add,edit,delete', 23, '2025-05-16 10:10:06'),
('standard-certificate', 'add,edit,delete', 23, '2025-05-16 10:10:06'),
('organization-profile-page', 'add,edit,delete', 25, '2025-05-23 11:12:51'),
('contact-person', 'add,edit,delete', 25, '2025-05-23 11:12:51'),
('certificate', 'add,edit,delete', 25, '2025-05-23 11:12:51'),
('skill', 'add,edit,delete', 25, '2025-05-23 11:12:51'),
('department', 'add,edit,delete', 25, '2025-05-23 11:12:51'),
('role', 'add,edit,delete', 25, '2025-05-23 11:12:51'),
('Crop-master', 'add,edit,delete', 25, '2025-05-23 11:12:51'),
('farmer', 'add,edit,delete', 25, '2025-05-23 11:12:51'),
('farmer_land_details', 'add,edit,delete', 25, '2025-05-23 11:12:51'),
('crop_details', 'add,edit,delete', 25, '2025-05-23 11:12:51'),
('soil-management', 'add,edit,delete', 25, '2025-05-23 11:12:51'),
('water-management', 'add,edit,delete', 25, '2025-05-23 11:12:51'),
('irrigation-methods', 'add,edit,delete', 25, '2025-05-23 11:12:51'),
('storage', 'add,edit,delete', 25, '2025-05-23 11:12:51'),
('packaging', 'add,edit,delete', 25, '2025-05-23 11:12:51'),
('plant-and-machinery', 'add,edit,delete', 25, '2025-05-23 11:12:51'),
('employment', 'add,edit,delete', 25, '2025-05-23 11:12:51'),
('subcontractor', 'add,edit,delete', 25, '2025-05-23 11:12:51'),
('internal-inspector', 'add,edit,delete', 25, '2025-05-23 11:12:51'),
('internal-auditor', 'add,edit,delete', 25, '2025-05-23 11:12:51'),
('farmer-supervisor', 'add,edit,delete', 25, '2025-05-23 11:12:51'),
('manuals-and-documents', 'add,edit,delete', 25, '2025-05-23 11:12:51'),
('other-documents-reports', 'add,edit,delete', 25, '2025-05-23 11:12:51'),
('mass-balance-register', 'add,edit,delete', 25, '2025-05-23 11:12:51'),
('internal-audit', 'add,edit,delete', 25, '2025-05-23 11:12:51'),
('internal-farm-inspection', 'add,edit,delete', 25, '2025-05-23 11:12:51'),
('certified-audit', 'add,edit,delete', 25, '2025-05-23 11:12:51'),
('farm-inspection', 'add,edit,delete', 25, '2025-05-23 11:12:51'),
('standard-certificate', 'add,edit,delete', 25, '2025-05-23 11:12:51'),
('reference-document', 'add,edit,delete', 25, '2025-05-23 11:12:51'),
('impact-creation', 'add,edit,delete', 25, '2025-05-23 11:12:51'),
('challenges-and-feedback', 'add,edit,delete', 25, '2025-05-23 11:12:51'),
('organization-profile-page', 'add,edit,delete', 26, '2025-05-23 11:14:51'),
('contact-person', 'add,edit,delete', 26, '2025-05-23 11:14:51'),
('certificate', 'add,edit,delete', 26, '2025-05-23 11:14:51'),
('skill', 'add,edit,delete', 26, '2025-05-23 11:14:51'),
('department', 'add,edit,delete', 26, '2025-05-23 11:14:51'),
('role', 'add,edit,delete', 26, '2025-05-23 11:14:51'),
('Crop-master', 'add,edit,delete', 26, '2025-05-23 11:14:51'),
('farmer', 'add,edit,delete', 26, '2025-05-23 11:14:51'),
('farmer_land_details', 'add,edit,delete', 26, '2025-05-23 11:14:51'),
('crop_details', 'add,edit,delete', 26, '2025-05-23 11:14:51'),
('soil-management', 'add,edit,delete', 26, '2025-05-23 11:14:51'),
('water-management', 'add,edit,delete', 26, '2025-05-23 11:14:51'),
('irrigation-methods', 'add,edit,delete', 26, '2025-05-23 11:14:51'),
('storage', 'add,edit,delete', 26, '2025-05-23 11:14:51'),
('packaging', 'add,edit,delete', 26, '2025-05-23 11:14:51'),
('plant-and-machinery', 'add,edit,delete', 26, '2025-05-23 11:14:51'),
('employment', 'add,edit,delete', 26, '2025-05-23 11:14:51'),
('subcontractor', 'add,edit,delete', 26, '2025-05-23 11:14:51'),
('internal-inspector', 'add,edit,delete', 26, '2025-05-23 11:14:51'),
('internal-auditor', 'add,edit,delete', 26, '2025-05-23 11:14:51'),
('farmer-supervisor', 'add,edit,delete', 26, '2025-05-23 11:14:51'),
('manuals-and-documents', 'add,edit,delete', 26, '2025-05-23 11:14:51'),
('other-documents-reports', 'add,edit,delete', 26, '2025-05-23 11:14:51'),
('mass-balance-register', 'add,edit,delete', 26, '2025-05-23 11:14:51'),
('internal-audit', 'add,edit,delete', 26, '2025-05-23 11:14:51'),
('internal-farm-inspection', 'add,edit,delete', 26, '2025-05-23 11:14:51'),
('certified-audit', 'add,edit,delete', 26, '2025-05-23 11:14:51'),
('farm-inspection', 'add,edit,delete', 26, '2025-05-23 11:14:51'),
('standard-certificate', 'add,edit,delete', 26, '2025-05-23 11:14:51'),
('reference-document', 'add,edit,delete', 26, '2025-05-23 11:14:51'),
('impact-creation', 'add,edit,delete', 26, '2025-05-23 11:14:51'),
('challenges-and-feedback', 'add,edit,delete', 26, '2025-05-23 11:14:51'),
('organization-profile-page', 'add,edit,delete', 27, '2025-05-23 11:25:09'),
('contact-person', 'add,edit,delete', 27, '2025-05-23 11:25:09'),
('certificate', 'add,edit,delete', 27, '2025-05-23 11:25:09'),
('skill', 'add,edit,delete', 27, '2025-05-23 11:25:09'),
('department', 'add,edit,delete', 27, '2025-05-23 11:25:09'),
('role', 'add,edit,delete', 27, '2025-05-23 11:25:09'),
('Crop-master', 'add,edit,delete', 27, '2025-05-23 11:25:09'),
('farmer', 'add,edit,delete', 27, '2025-05-23 11:25:09'),
('farmer_land_details', 'add,edit,delete', 27, '2025-05-23 11:25:09'),
('crop_details', 'add,edit,delete', 27, '2025-05-23 11:25:09'),
('soil-management', 'add,edit,delete', 27, '2025-05-23 11:25:09'),
('water-management', 'add,edit,delete', 27, '2025-05-23 11:25:09'),
('irrigation-methods', 'add,edit,delete', 27, '2025-05-23 11:25:09'),
('storage', 'add,edit,delete', 27, '2025-05-23 11:25:09'),
('packaging', 'add,edit,delete', 27, '2025-05-23 11:25:09'),
('plant-and-machinery', 'add,edit,delete', 27, '2025-05-23 11:25:09'),
('employment', 'add,edit,delete', 27, '2025-05-23 11:25:09'),
('subcontractor', 'add,edit,delete', 27, '2025-05-23 11:25:09'),
('internal-inspector', 'add,edit,delete', 27, '2025-05-23 11:25:09'),
('internal-auditor', 'add,edit,delete', 27, '2025-05-23 11:25:09'),
('farmer-supervisor', 'add,edit,delete', 27, '2025-05-23 11:25:09'),
('manuals-and-documents', 'add,edit,delete', 27, '2025-05-23 11:25:09'),
('other-documents-reports', 'add,edit,delete', 27, '2025-05-23 11:25:09'),
('mass-balance-register', 'add,edit,delete', 27, '2025-05-23 11:25:09'),
('internal-audit', 'add,edit,delete', 27, '2025-05-23 11:25:09'),
('internal-farm-inspection', 'add,edit,delete', 27, '2025-05-23 11:25:09'),
('certified-audit', 'add,edit,delete', 27, '2025-05-23 11:25:09'),
('farm-inspection', 'add,edit,delete', 27, '2025-05-23 11:25:09'),
('standard-certificate', 'add,edit,delete', 27, '2025-05-23 11:25:09'),
('reference-document', 'add,edit,delete', 27, '2025-05-23 11:25:09'),
('impact-creation', 'add,edit,delete', 27, '2025-05-23 11:25:09'),
('challenges-and-feedback', 'add,edit,delete', 27, '2025-05-23 11:25:09'),
('organization-profile-page', 'add,edit,delete', 28, '2025-05-23 11:25:59'),
('contact-person', 'add,edit,delete', 28, '2025-05-23 11:25:59'),
('certificate', 'add,edit,delete', 28, '2025-05-23 11:25:59'),
('skill', 'add,edit,delete', 28, '2025-05-23 11:25:59'),
('department', 'add,edit,delete', 28, '2025-05-23 11:25:59'),
('role', 'add,edit,delete', 28, '2025-05-23 11:25:59'),
('Crop-master', 'add,edit,delete', 28, '2025-05-23 11:25:59'),
('farmer', 'add,edit,delete', 28, '2025-05-23 11:25:59'),
('farmer_land_details', 'add,edit,delete', 28, '2025-05-23 11:25:59'),
('crop_details', 'add,edit,delete', 28, '2025-05-23 11:25:59'),
('soil-management', 'add,edit,delete', 28, '2025-05-23 11:25:59'),
('water-management', 'add,edit,delete', 28, '2025-05-23 11:25:59'),
('irrigation-methods', 'add,edit,delete', 28, '2025-05-23 11:25:59'),
('storage', 'add,edit,delete', 28, '2025-05-23 11:25:59'),
('packaging', 'add,edit,delete', 28, '2025-05-23 11:25:59'),
('plant-and-machinery', 'add,edit,delete', 28, '2025-05-23 11:25:59'),
('employment', 'add,edit,delete', 28, '2025-05-23 11:25:59'),
('subcontractor', 'add,edit,delete', 28, '2025-05-23 11:25:59'),
('internal-inspector', 'add,edit,delete', 28, '2025-05-23 11:25:59'),
('internal-auditor', 'add,edit,delete', 28, '2025-05-23 11:25:59'),
('farmer-supervisor', 'add,edit,delete', 28, '2025-05-23 11:25:59'),
('manuals-and-documents', 'add,edit,delete', 28, '2025-05-23 11:25:59'),
('other-documents-reports', 'add,edit,delete', 28, '2025-05-23 11:25:59'),
('mass-balance-register', 'add,edit,delete', 28, '2025-05-23 11:25:59'),
('internal-audit', 'add,edit,delete', 28, '2025-05-23 11:25:59'),
('internal-farm-inspection', 'add,edit,delete', 28, '2025-05-23 11:25:59'),
('certified-audit', 'add,edit,delete', 28, '2025-05-23 11:25:59'),
('farm-inspection', 'add,edit,delete', 28, '2025-05-23 11:25:59'),
('standard-certificate', 'add,edit,delete', 28, '2025-05-23 11:25:59'),
('reference-document', 'add,edit,delete', 28, '2025-05-23 11:25:59'),
('impact-creation', 'add,edit,delete', 28, '2025-05-23 11:25:59'),
('challenges-and-feedback', 'add,edit,delete', 28, '2025-05-23 11:25:59'),
('organization-profile-page', 'add,edit,delete', 24, '2025-05-27 11:54:56'),
('contact-person', 'add,edit,delete', 24, '2025-05-27 11:54:56'),
('certificate', 'add,edit,delete', 24, '2025-05-27 11:54:56'),
('skill', 'add,edit,delete', 24, '2025-05-27 11:54:56'),
('department', 'add,edit,delete', 24, '2025-05-27 11:54:56'),
('role', 'add,edit,delete', 24, '2025-05-27 11:54:56'),
('Crop-master', 'add,edit,delete', 24, '2025-05-27 11:54:56'),
('farmer', 'add,edit,delete', 24, '2025-05-27 11:54:56'),
('farmer_land_details', 'add,edit,delete', 24, '2025-05-27 11:54:56'),
('crop_details', 'add,edit,delete', 24, '2025-05-27 11:54:56'),
('soil-management', 'add,edit,delete', 24, '2025-05-27 11:54:56'),
('water-management', 'add,edit,delete', 24, '2025-05-27 11:54:56'),
('irrigation-methods', 'add,edit,delete', 24, '2025-05-27 11:54:56'),
('storage', 'add,edit,delete', 24, '2025-05-27 11:54:56'),
('packaging', 'add,edit,delete', 24, '2025-05-27 11:54:56'),
('plant-and-machinery', 'add,edit,delete', 24, '2025-05-27 11:54:56'),
('employment', 'add,edit,delete', 24, '2025-05-27 11:54:56'),
('subcontractor', 'add,edit,delete', 24, '2025-05-27 11:54:56'),
('internal-inspector', 'add,edit,delete', 24, '2025-05-27 11:54:56'),
('internal-auditor', 'add,edit,delete', 24, '2025-05-27 11:54:56'),
('farmer-supervisor', 'add,edit,delete', 24, '2025-05-27 11:54:56'),
('manuals-and-documents', 'add,edit,delete', 24, '2025-05-27 11:54:56'),
('other-documents-reports', 'add,edit,delete', 24, '2025-05-27 11:54:56'),
('mass-balance-register', 'add,edit,delete', 24, '2025-05-27 11:54:56'),
('internal-audit', 'add,edit,delete', 24, '2025-05-27 11:54:56'),
('internal-farm-inspection', 'add,edit,delete', 24, '2025-05-27 11:54:56'),
('certified-audit', 'add,edit,delete', 24, '2025-05-27 11:54:56'),
('farm-inspection', 'add,edit,delete', 24, '2025-05-27 11:54:56'),
('standard-certificate', 'add,edit,delete', 24, '2025-05-27 11:54:56'),
('reference-document', 'add,edit,delete', 24, '2025-05-27 11:54:56'),
('impact-creation', 'add,edit,delete', 24, '2025-05-27 11:54:56'),
('challenges-and-feedback', 'add,edit,delete', 24, '2025-05-27 11:54:56'),
('audit-mapping', 'add,edit,delete', 24, '2025-05-27 11:54:56'),
('organization-profile-page', 'add,edit,delete', 22, '2025-05-27 11:59:08'),
('contact-person', 'add,edit,delete', 22, '2025-05-27 11:59:08'),
('certificate', 'add,edit,delete', 22, '2025-05-27 11:59:08'),
('skill', 'add,edit,delete', 22, '2025-05-27 11:59:08'),
('department', 'add,edit,delete', 22, '2025-05-27 11:59:08'),
('role', 'add,edit,delete', 22, '2025-05-27 11:59:08'),
('Crop-master', 'add,edit,delete', 22, '2025-05-27 11:59:08'),
('farmer', 'add,edit,delete', 22, '2025-05-27 11:59:08'),
('farmer_land_details', 'add,edit,delete', 22, '2025-05-27 11:59:08'),
('crop_details', 'add,edit,delete', 22, '2025-05-27 11:59:08'),
('soil-management', 'add,edit,delete', 22, '2025-05-27 11:59:08'),
('water-management', 'add,edit,delete', 22, '2025-05-27 11:59:08'),
('irrigation-methods', 'add,edit,delete', 22, '2025-05-27 11:59:08'),
('storage', 'add,edit,delete', 22, '2025-05-27 11:59:08'),
('packaging', 'add,edit,delete', 22, '2025-05-27 11:59:08'),
('plant-and-machinery', 'add,edit,delete', 22, '2025-05-27 11:59:08'),
('employment', 'add,edit,delete', 22, '2025-05-27 11:59:08'),
('subcontractor', 'add,edit,delete', 22, '2025-05-27 11:59:08'),
('internal-inspector', 'add,edit,delete', 22, '2025-05-27 11:59:08'),
('internal-auditor', 'add,edit,delete', 22, '2025-05-27 11:59:08'),
('farmer-supervisor', 'add,edit,delete', 22, '2025-05-27 11:59:08'),
('manuals-and-documents', 'add,edit,delete', 22, '2025-05-27 11:59:08'),
('other-documents-reports', 'add,edit,delete', 22, '2025-05-27 11:59:08'),
('mass-balance-register', 'add,edit,delete', 22, '2025-05-27 11:59:08'),
('internal-audit', 'add,edit,delete', 22, '2025-05-27 11:59:08'),
('internal-farm-inspection', 'add,edit,delete', 22, '2025-05-27 11:59:08'),
('certified-audit', 'add,edit,delete', 22, '2025-05-27 11:59:08'),
('farm-inspection', 'add,edit,delete', 22, '2025-05-27 11:59:08'),
('standard-certificate', 'add,edit,delete', 22, '2025-05-27 11:59:08'),
('reference-document', 'add,edit,delete', 22, '2025-05-27 11:59:08'),
('impact-creation', 'add,edit,delete', 22, '2025-05-27 11:59:08'),
('challenges-and-feedback', 'add,edit,delete', 22, '2025-05-27 11:59:08'),
('audit-mapping', 'edit', 22, '2025-05-27 11:59:08'),
('organization-profile-page', 'add,edit,delete', 29, '2025-05-29 10:54:48'),
('contact-person', 'add,edit,delete', 29, '2025-05-29 10:54:48'),
('certificate', 'add,edit,delete', 29, '2025-05-29 10:54:48'),
('skill', 'add,edit,delete', 29, '2025-05-29 10:54:48'),
('department', 'add,edit,delete', 29, '2025-05-29 10:54:48'),
('role', 'add,edit,delete', 29, '2025-05-29 10:54:48'),
('Crop-master', 'add,edit,delete', 29, '2025-05-29 10:54:48'),
('farmer', 'add,edit,delete', 29, '2025-05-29 10:54:48'),
('farmer_land_details', 'add,edit,delete', 29, '2025-05-29 10:54:48'),
('crop_details', 'add,edit,delete', 29, '2025-05-29 10:54:48'),
('soil-management', 'add,edit,delete', 29, '2025-05-29 10:54:48'),
('water-management', 'add,edit,delete', 29, '2025-05-29 10:54:48'),
('irrigation-methods', 'add,edit,delete', 29, '2025-05-29 10:54:48'),
('storage', 'add,edit,delete', 29, '2025-05-29 10:54:48'),
('packaging', 'add,edit,delete', 29, '2025-05-29 10:54:48'),
('plant-and-machinery', 'add,edit,delete', 29, '2025-05-29 10:54:48'),
('employment', 'add,edit,delete', 29, '2025-05-29 10:54:48'),
('subcontractor', 'add,edit,delete', 29, '2025-05-29 10:54:48'),
('internal-inspector', 'add,edit,delete', 29, '2025-05-29 10:54:48'),
('internal-auditor', 'add,edit,delete', 29, '2025-05-29 10:54:48'),
('farmer-supervisor', 'add,edit,delete', 29, '2025-05-29 10:54:48'),
('manuals-and-documents', 'add,edit,delete', 29, '2025-05-29 10:54:48'),
('other-documents-reports', 'add,edit,delete', 29, '2025-05-29 10:54:48'),
('mass-balance-register', 'add,edit,delete', 29, '2025-05-29 10:54:48'),
('internal-audit', 'add,edit,delete', 29, '2025-05-29 10:54:48'),
('internal-farm-inspection', 'add,edit,delete', 29, '2025-05-29 10:54:48'),
('certified-audit', 'add,edit,delete', 29, '2025-05-29 10:54:48'),
('farm-inspection', 'add,edit,delete', 29, '2025-05-29 10:54:48'),
('standard-certificate', 'add,edit,delete', 29, '2025-05-29 10:54:48'),
('reference-document', 'add,edit,delete', 29, '2025-05-29 10:54:48'),
('impact-creation', 'add,edit,delete', 29, '2025-05-29 10:54:48'),
('challenges-and-feedback', 'add,edit,delete', 29, '2025-05-29 10:54:48'),
('audit-mapping', 'add,edit,delete', 29, '2025-05-29 10:54:48'),
('organization-profile-page', 'add,edit,delete', 30, '2025-06-02 06:10:09'),
('contact-person', 'add,edit,delete', 30, '2025-06-02 06:10:09'),
('certificate', 'add,edit,delete', 30, '2025-06-02 06:10:09'),
('skill', 'add,edit,delete', 30, '2025-06-02 06:10:09'),
('department', 'add,edit,delete', 30, '2025-06-02 06:10:09'),
('role', 'add,edit,delete', 30, '2025-06-02 06:10:09'),
('auditor', 'add,edit,delete', 30, '2025-06-02 06:10:09'),
('employment', 'add,edit,delete', 30, '2025-06-02 06:10:09'),
('subcontractor', 'add,edit,delete', 30, '2025-06-02 06:10:09'),
('internal-inspector', 'add,edit,delete', 30, '2025-06-02 06:10:09'),
('internal-auditor', 'add,edit,delete', 30, '2025-06-02 06:10:09'),
('audit-template', 'add,edit,delete', 30, '2025-06-02 06:10:09'),
('review-audit', 'add,edit,delete', 30, '2025-06-02 06:10:09'),
('organization-profile-page', 'add,edit,delete', 31, '2025-06-02 06:10:57'),
('contact-person', 'add,edit,delete', 31, '2025-06-02 06:10:57'),
('certificate', 'add,edit,delete', 31, '2025-06-02 06:10:57'),
('skill', 'add,edit,delete', 31, '2025-06-02 06:10:57'),
('department', 'add,edit,delete', 31, '2025-06-02 06:10:57'),
('role', 'add,edit,delete', 31, '2025-06-02 06:10:57'),
('Crop-master', 'add,edit,delete', 31, '2025-06-02 06:10:57'),
('farmer', 'add,edit,delete', 31, '2025-06-02 06:10:57'),
('farmer_land_details', 'add,edit,delete', 31, '2025-06-02 06:10:57'),
('crop_details', 'add,edit,delete', 31, '2025-06-02 06:10:57'),
('soil-management', 'add,edit,delete', 31, '2025-06-02 06:10:57'),
('water-management', 'add,edit,delete', 31, '2025-06-02 06:10:57'),
('irrigation-methods', 'add,edit,delete', 31, '2025-06-02 06:10:57'),
('storage', 'add,edit,delete', 31, '2025-06-02 06:10:57'),
('packaging', 'add,edit,delete', 31, '2025-06-02 06:10:57'),
('plant-and-machinery', 'add,edit,delete', 31, '2025-06-02 06:10:57'),
('employment', 'add,edit,delete', 31, '2025-06-02 06:10:57'),
('subcontractor', 'add,edit,delete', 31, '2025-06-02 06:10:57'),
('internal-inspector', 'add,edit,delete', 31, '2025-06-02 06:10:57'),
('internal-auditor', 'add,edit,delete', 31, '2025-06-02 06:10:57'),
('farmer-supervisor', 'add,edit,delete', 31, '2025-06-02 06:10:57'),
('manuals-and-documents', 'add,edit,delete', 31, '2025-06-02 06:10:57'),
('other-documents-reports', 'add,edit,delete', 31, '2025-06-02 06:10:57'),
('mass-balance-register', 'add,edit,delete', 31, '2025-06-02 06:10:57'),
('internal-audit', 'add,edit,delete', 31, '2025-06-02 06:10:57'),
('internal-farm-inspection', 'add,edit,delete', 31, '2025-06-02 06:10:57'),
('certified-audit', 'add,edit,delete', 31, '2025-06-02 06:10:57'),
('farm-inspection', 'add,edit,delete', 31, '2025-06-02 06:10:57'),
('standard-certificate', 'add,edit,delete', 31, '2025-06-02 06:10:57'),
('reference-document', 'add,edit,delete', 31, '2025-06-02 06:10:57'),
('impact-creation', 'add,edit,delete', 31, '2025-06-02 06:10:57'),
('challenges-and-feedback', 'add,edit,delete', 31, '2025-06-02 06:10:57'),
('audit-mapping', 'add,edit,delete', 31, '2025-06-02 06:10:57'),
('organization-profile-page', 'add,edit,delete', 32, '2025-06-02 08:39:01'),
('contact-person', 'add,edit,delete', 32, '2025-06-02 08:39:01'),
('certificate', 'add,edit,delete', 32, '2025-06-02 08:39:01'),
('skill', 'add,edit,delete', 32, '2025-06-02 08:39:01'),
('department', 'add,edit,delete', 32, '2025-06-02 08:39:01'),
('role-and-designation', 'add,edit,delete', 32, '2025-06-02 08:39:01'),
('factory', 'add,edit,delete', 32, '2025-06-02 08:39:01'),
('storage', 'add,edit,delete', 32, '2025-06-02 08:39:01'),
('packaging', 'add,edit,delete', 32, '2025-06-02 08:39:01'),
('plant-and-machinery', 'add,edit,delete', 32, '2025-06-02 08:39:01'),
('employment', 'add,edit,delete', 32, '2025-06-02 08:39:01'),
('subcontractor', 'add,edit,delete', 32, '2025-06-02 08:39:01'),
('internal-inspector', 'add,edit,delete', 32, '2025-06-02 08:39:01'),
('internal-auditor', 'add,edit,delete', 32, '2025-06-02 08:39:01'),
('manuals-and-documents', 'add,edit,delete', 32, '2025-06-02 08:39:01'),
('product-sampling', 'add,edit,delete', 32, '2025-06-02 08:39:01'),
('Implementation-compliance', 'add,edit,delete', 32, '2025-06-02 08:39:01'),
('internal-audit', 'add,edit,delete', 32, '2025-06-02 08:39:01'),
('certification-body-audit', 'add,edit,delete', 32, '2025-06-02 08:39:01'),
('standard-certificate', 'add,edit,delete', 32, '2025-06-02 08:39:01'),
('organization-profile-page', 'add,edit,delete', 33, '2025-06-02 09:43:42'),
('contact-person', 'add,edit,delete', 33, '2025-06-02 09:43:42'),
('certificate', 'add,edit,delete', 33, '2025-06-02 09:43:42'),
('skill', 'add,edit,delete', 33, '2025-06-02 09:43:42'),
('department', 'add,edit,delete', 33, '2025-06-02 09:43:42'),
('role', 'add,edit,delete', 33, '2025-06-02 09:43:42'),
('Crop-master', 'add,edit,delete', 33, '2025-06-02 09:43:42'),
('farmer', 'add,edit,delete', 33, '2025-06-02 09:43:42'),
('farmer_land_details', 'add,edit,delete', 33, '2025-06-02 09:43:42'),
('crop_details', 'add,edit,delete', 33, '2025-06-02 09:43:42'),
('soil-management', 'add,edit,delete', 33, '2025-06-02 09:43:42'),
('water-management', 'add,edit,delete', 33, '2025-06-02 09:43:42'),
('irrigation-methods', 'add,edit,delete', 33, '2025-06-02 09:43:42'),
('storage', 'add,edit,delete', 33, '2025-06-02 09:43:42'),
('packaging', 'add,edit,delete', 33, '2025-06-02 09:43:42'),
('plant-and-machinery', 'add,edit,delete', 33, '2025-06-02 09:43:42'),
('employment', 'add,edit,delete', 33, '2025-06-02 09:43:42'),
('subcontractor', 'add,edit,delete', 33, '2025-06-02 09:43:42'),
('internal-inspector', 'add,edit,delete', 33, '2025-06-02 09:43:42'),
('internal-auditor', 'add,edit,delete', 33, '2025-06-02 09:43:42'),
('farmer-supervisor', 'add,edit,delete', 33, '2025-06-02 09:43:42'),
('manuals-and-documents', 'add,edit,delete', 33, '2025-06-02 09:43:42'),
('other-documents-reports', 'add,edit,delete', 33, '2025-06-02 09:43:42'),
('mass-balance-register', 'add,edit,delete', 33, '2025-06-02 09:43:42'),
('internal-audit', 'add,edit,delete', 33, '2025-06-02 09:43:42'),
('internal-farm-inspection', 'add,edit,delete', 33, '2025-06-02 09:43:42'),
('certified-audit', 'add,edit,delete', 33, '2025-06-02 09:43:42'),
('farm-inspection', 'add,edit,delete', 33, '2025-06-02 09:43:42'),
('standard-certificate', 'add,edit,delete', 33, '2025-06-02 09:43:42'),
('reference-document', 'add,edit,delete', 33, '2025-06-02 09:43:42'),
('impact-creation', 'add,edit,delete', 33, '2025-06-02 09:43:42'),
('challenges-and-feedback', 'add,edit,delete', 33, '2025-06-02 09:43:42'),
('audit-mapping', 'add,edit,delete', 33, '2025-06-02 09:43:42'),
('organization-profile-page', 'add,edit,delete', 34, '2025-06-02 13:41:42'),
('contact-person', 'add,edit,delete', 34, '2025-06-02 13:41:42'),
('certificate', 'add,edit,delete', 34, '2025-06-02 13:41:42'),
('skill', 'add,edit,delete', 34, '2025-06-02 13:41:42'),
('department', 'add,edit,delete', 34, '2025-06-02 13:41:42'),
('role', 'add,edit,delete', 34, '2025-06-02 13:41:42'),
('auditor', 'add,edit,delete', 34, '2025-06-02 13:41:42'),
('employment', 'add,edit,delete', 34, '2025-06-02 13:41:42'),
('subcontractor', 'add,edit,delete', 34, '2025-06-02 13:41:42'),
('internal-inspector', 'add,edit,delete', 34, '2025-06-02 13:41:42'),
('internal-auditor', 'add,edit,delete', 34, '2025-06-02 13:41:42'),
('audit-template', 'add,edit,delete', 34, '2025-06-02 13:41:42'),
('review-audit', 'add,edit,delete', 34, '2025-06-02 13:41:42'),
('organization-profile-page', 'add,edit,delete', 35, '2025-06-02 13:53:56'),
('contact-person', 'add,edit,delete', 35, '2025-06-02 13:53:56'),
('certificate', 'add,edit,delete', 35, '2025-06-02 13:53:56'),
('skill', 'add,edit,delete', 35, '2025-06-02 13:53:56'),
('department', 'add,edit,delete', 35, '2025-06-02 13:53:56'),
('role-and-designation', 'add,edit,delete', 35, '2025-06-02 13:53:56'),
('factory', 'add,edit,delete', 35, '2025-06-02 13:53:56'),
('storage', 'add,edit,delete', 35, '2025-06-02 13:53:56'),
('packaging', 'add,edit,delete', 35, '2025-06-02 13:53:56'),
('plant-and-machinery', 'add,edit,delete', 35, '2025-06-02 13:53:56'),
('employment', 'add,edit,delete', 35, '2025-06-02 13:53:56'),
('subcontractor', 'add,edit,delete', 35, '2025-06-02 13:53:56'),
('internal-inspector', 'add,edit,delete', 35, '2025-06-02 13:53:56'),
('internal-auditor', 'add,edit,delete', 35, '2025-06-02 13:53:56'),
('manuals-and-documents', 'add,edit,delete', 35, '2025-06-02 13:53:56'),
('product-sampling', 'add,edit,delete', 35, '2025-06-02 13:53:56'),
('Implementation-compliance', 'add,edit,delete', 35, '2025-06-02 13:53:56'),
('internal-audit', 'add,edit,delete', 35, '2025-06-02 13:53:56'),
('certification-body-audit', 'add,edit,delete', 35, '2025-06-02 13:53:56'),
('standard-certificate', 'add,edit,delete', 35, '2025-06-02 13:53:56'),
('organization-profile-page', 'add,edit,delete', 36, '2025-06-03 05:43:54'),
('contact-person', 'add,edit,delete', 36, '2025-06-03 05:43:54'),
('certificate', 'add,edit,delete', 36, '2025-06-03 05:43:54'),
('skill', 'add,edit,delete', 36, '2025-06-03 05:43:54'),
('department', 'add,edit,delete', 36, '2025-06-03 05:43:54'),
('role', 'add,edit,delete', 36, '2025-06-03 05:43:54'),
('auditor', 'add,edit,delete', 36, '2025-06-03 05:43:54'),
('employment', 'add,edit,delete', 36, '2025-06-03 05:43:54'),
('subcontractor', 'add,edit,delete', 36, '2025-06-03 05:43:54'),
('internal-inspector', 'add,edit,delete', 36, '2025-06-03 05:43:54'),
('internal-auditor', 'add,edit,delete', 36, '2025-06-03 05:43:54'),
('audit-template', 'add,edit,delete', 36, '2025-06-03 05:43:54'),
('review-audit', 'add,edit,delete', 36, '2025-06-03 05:43:54'),
('organization-profile-page', 'add,edit,delete', 37, '2025-06-04 10:31:47'),
('contact-person', 'add,edit,delete', 37, '2025-06-04 10:31:47'),
('certificate', 'add,edit,delete', 37, '2025-06-04 10:31:47'),
('skill', 'add,edit,delete', 37, '2025-06-04 10:31:47'),
('department', 'add,edit,delete', 37, '2025-06-04 10:31:47'),
('role-and-designation', 'add,edit,delete', 37, '2025-06-04 10:31:47'),
('factory', 'add,edit,delete', 37, '2025-06-04 10:31:47'),
('storage', 'add,edit,delete', 37, '2025-06-04 10:31:47'),
('packaging', 'add,edit,delete', 37, '2025-06-04 10:31:47'),
('plant-and-machinery', 'add,edit,delete', 37, '2025-06-04 10:31:47'),
('employment', 'add,edit,delete', 37, '2025-06-04 10:31:47'),
('subcontractor', 'add,edit,delete', 37, '2025-06-04 10:31:47'),
('internal-inspector', 'add,edit,delete', 37, '2025-06-04 10:31:47'),
('internal-auditor', 'add,edit,delete', 37, '2025-06-04 10:31:47'),
('manuals-and-documents', 'add,edit,delete', 37, '2025-06-04 10:31:47'),
('product-sampling', 'add,edit,delete', 37, '2025-06-04 10:31:47'),
('Implementation-compliance', 'add,edit,delete', 37, '2025-06-04 10:31:47'),
('internal-audit', 'add,edit,delete', 37, '2025-06-04 10:31:47'),
('certification-body-audit', 'add,edit,delete', 37, '2025-06-04 10:31:47'),
('standard-certificate', 'add,edit,delete', 37, '2025-06-04 10:31:47'),
('organization-profile-page', 'delete', 38, '2025-06-12 13:20:15'),
('contact-person', 'add,edit,delete', 38, '2025-06-12 13:20:15'),
('certificate', 'add,edit,delete', 38, '2025-06-12 13:20:15'),
('skill', 'add,edit,delete', 38, '2025-06-12 13:20:15'),
('department', 'add,edit,delete', 38, '2025-06-12 13:20:15'),
('role-and-designation', 'add,edit,delete', 38, '2025-06-12 13:20:15'),
('factory', 'add,edit,delete', 38, '2025-06-12 13:20:15'),
('storage', 'add,edit,delete', 38, '2025-06-12 13:20:15'),
('packaging', 'add,edit,delete', 38, '2025-06-12 13:20:15'),
('plant-and-machinery', 'add,edit,delete', 38, '2025-06-12 13:20:15'),
('employment', 'add,edit,delete', 38, '2025-06-12 13:20:15'),
('subcontractor', 'add,edit,delete', 38, '2025-06-12 13:20:15'),
('internal-inspector', 'add,edit,delete', 38, '2025-06-12 13:20:15'),
('internal-auditor', 'add,edit,delete', 38, '2025-06-12 13:20:15'),
('manuals-and-documents', 'add,edit,delete', 38, '2025-06-12 13:20:15'),
('product-sampling', 'add,edit,delete', 38, '2025-06-12 13:20:15'),
('Implementation-compliance', 'add,edit,delete', 38, '2025-06-12 13:20:15'),
('internal-audit', 'add,edit,delete', 38, '2025-06-12 13:20:15'),
('certification-body-audit', 'add,edit,delete', 38, '2025-06-12 13:20:15'),
('standard-certificate', 'add,edit,delete', 38, '2025-06-12 13:20:15'),
('skill', 'add,edit,delete', 39, '2025-06-17 09:47:47'),
('department', 'add,edit,delete', 39, '2025-06-17 09:47:47'),
('role-and-designation', 'add,edit,delete', 39, '2025-06-17 09:47:47'),
('entity', 'add,edit,delete', 39, '2025-06-17 09:47:47'),
('farmer', 'add,edit,delete', 39, '2025-06-17 09:47:47'),
('employee', 'add,edit,delete', 39, '2025-06-17 09:47:47'),
('profile-page', 'add,edit,delete', 39, '2025-06-17 09:47:47'),
('organization-profile-page', 'add,edit,delete', 41, '2025-07-07 05:18:37'),
('contact-person', 'add,edit,delete', 41, '2025-07-07 05:18:37'),
('certificate', 'add,edit,delete', 41, '2025-07-07 05:18:37'),
('skill', 'add,edit,delete', 41, '2025-07-07 05:18:37'),
('department', 'add,edit,delete', 41, '2025-07-07 05:18:37'),
('role-and-designation', 'add,edit,delete', 41, '2025-07-07 05:18:37'),
('factory', 'add,edit,delete', 41, '2025-07-07 05:18:37'),
('storage', 'add,edit,delete', 41, '2025-07-07 05:18:37'),
('packaging', 'add,edit,delete', 41, '2025-07-07 05:18:37'),
('plant-and-machinery', 'add,edit,delete', 41, '2025-07-07 05:18:37'),
('employment', 'add,edit,delete', 41, '2025-07-07 05:18:37'),
('subcontractor', 'add,edit,delete', 41, '2025-07-07 05:18:37'),
('internal-inspector', 'add,edit,delete', 41, '2025-07-07 05:18:37'),
('internal-auditor', 'add,edit,delete', 41, '2025-07-07 05:18:37'),
('manuals-and-documents', 'add,edit,delete', 41, '2025-07-07 05:18:37'),
('product-sampling', 'add,edit,delete', 41, '2025-07-07 05:18:37'),
('Implementation-compliance', 'add,edit,delete', 41, '2025-07-07 05:18:37'),
('internal-audit', 'add,edit,delete', 41, '2025-07-07 05:18:37'),
('certification-body-audit', 'add,edit,delete', 41, '2025-07-07 05:18:37'),
('standard-certificate', 'add,edit,delete', 41, '2025-07-07 05:18:37'),
('skill', 'add,edit,delete', 43, '2025-07-09 07:15:27'),
('department', 'add,edit,delete', 43, '2025-07-09 07:15:27'),
('role-and-designation', 'add,edit,delete', 43, '2025-07-09 07:15:27'),
('TA-Entities', 'add,edit,delete', 43, '2025-07-09 07:15:27'),
('TA-Farmer', 'add,edit,delete', 43, '2025-07-09 07:15:27'),
('TA-User', 'add,edit,delete', 43, '2025-07-09 07:15:27'),
('profile-page', 'add,edit,delete', 43, '2025-07-09 07:15:27'),
('skill', 'add,edit,delete', 42, '2025-07-09 07:15:43'),
('department', 'add,edit,delete', 42, '2025-07-09 07:15:43'),
('role-and-designation', 'add,edit,delete', 42, '2025-07-09 07:15:43'),
('TA-Entities', 'add,edit,delete', 42, '2025-07-09 07:15:43'),
('TA-Farmer', 'add,edit,delete', 42, '2025-07-09 07:15:43'),
('TA-User', 'add,edit,delete', 42, '2025-07-09 07:15:43'),
('profile-page', 'add,edit,delete', 42, '2025-07-09 07:15:43'),
('skill', 'add,edit,delete', 40, '2025-07-09 07:15:56'),
('department', 'add,edit,delete', 40, '2025-07-09 07:15:56'),
('role-and-designation', 'add,edit,delete', 40, '2025-07-09 07:15:56'),
('TA-Entities', 'add,edit,delete', 40, '2025-07-09 07:15:56'),
('TA-Farmer', 'add,edit,delete', 40, '2025-07-09 07:15:56'),
('TA-User', 'add,edit,delete', 40, '2025-07-09 07:15:56'),
('profile-page', 'add,edit,delete', 40, '2025-07-09 07:15:56'),
('organization-profile-page', 'add,edit,delete', 44, '2025-07-09 07:39:14'),
('contact-person', 'add,edit,delete', 44, '2025-07-09 07:39:14'),
('certificate', 'add,edit,delete', 44, '2025-07-09 07:39:14'),
('skill', 'add,edit,delete', 44, '2025-07-09 07:39:14'),
('department', 'add,edit,delete', 44, '2025-07-09 07:39:14'),
('role', 'add,edit,delete', 44, '2025-07-09 07:39:14'),
('Crop-master', 'add,edit,delete', 44, '2025-07-09 07:39:14'),
('farmer', 'add,edit,delete', 44, '2025-07-09 07:39:14'),
('farmer_land_details', 'add,edit,delete', 44, '2025-07-09 07:39:14'),
('crop_details', 'add,edit,delete', 44, '2025-07-09 07:39:14'),
('soil-management', 'add,edit,delete', 44, '2025-07-09 07:39:14'),
('water-management', 'add,edit,delete', 44, '2025-07-09 07:39:14'),
('irrigation-methods', 'add,edit,delete', 44, '2025-07-09 07:39:14'),
('storage', 'add,edit,delete', 44, '2025-07-09 07:39:14'),
('packaging', 'add,edit,delete', 44, '2025-07-09 07:39:14'),
('plant-and-machinery', 'add,edit,delete', 44, '2025-07-09 07:39:14'),
('employment', 'add,edit,delete', 44, '2025-07-09 07:39:14'),
('subcontractor', 'add,edit,delete', 44, '2025-07-09 07:39:14'),
('internal-inspector', 'add,edit,delete', 44, '2025-07-09 07:39:14'),
('internal-auditor', 'add,edit,delete', 44, '2025-07-09 07:39:14'),
('farmer-supervisor', 'add,edit,delete', 44, '2025-07-09 07:39:14'),
('manuals-and-documents', 'add,edit,delete', 44, '2025-07-09 07:39:14'),
('other-documents-reports', 'add,edit,delete', 44, '2025-07-09 07:39:14'),
('mass-balance-register', 'add,edit,delete', 44, '2025-07-09 07:39:14'),
('internal-audit', 'add,edit,delete', 44, '2025-07-09 07:39:14'),
('internal-farm-inspection', 'add,edit,delete', 44, '2025-07-09 07:39:14'),
('certified-audit', 'add,edit,delete', 44, '2025-07-09 07:39:14'),
('farm-inspection', 'add,edit,delete', 44, '2025-07-09 07:39:14'),
('standard-certificate', 'add,edit,delete', 44, '2025-07-09 07:39:14'),
('reference-document', 'add,edit,delete', 44, '2025-07-09 07:39:14'),
('impact-creation', 'add,edit,delete', 44, '2025-07-09 07:39:14'),
('challenges-and-feedback', 'add,edit,delete', 44, '2025-07-09 07:39:14'),
('audit-mapping', 'add,edit,delete', 44, '2025-07-09 07:39:14'),
('organization-profile-page', 'add,edit,delete', 45, '2025-07-09 07:39:33'),
('contact-person', 'add,edit,delete', 45, '2025-07-09 07:39:33'),
('certificate', 'add,edit,delete', 45, '2025-07-09 07:39:33');
INSERT INTO `pages_acessing_control` (`page_name`, `permison`, `roll_id`, `created_at`) VALUES
('skill', 'add,edit,delete', 45, '2025-07-09 07:39:33'),
('department', 'add,edit,delete', 45, '2025-07-09 07:39:33'),
('role', 'add,edit,delete', 45, '2025-07-09 07:39:33'),
('Crop-master', 'add,edit,delete', 45, '2025-07-09 07:39:33'),
('farmer', 'add,edit,delete', 45, '2025-07-09 07:39:33'),
('farmer_land_details', 'add,edit,delete', 45, '2025-07-09 07:39:33'),
('crop_details', 'add,edit,delete', 45, '2025-07-09 07:39:33'),
('soil-management', 'add,edit,delete', 45, '2025-07-09 07:39:33'),
('water-management', 'add,edit,delete', 45, '2025-07-09 07:39:33'),
('irrigation-methods', 'add,edit,delete', 45, '2025-07-09 07:39:33'),
('storage', 'add,edit,delete', 45, '2025-07-09 07:39:33'),
('packaging', 'add,edit,delete', 45, '2025-07-09 07:39:33'),
('plant-and-machinery', 'add,edit,delete', 45, '2025-07-09 07:39:33'),
('employment', 'add,edit,delete', 45, '2025-07-09 07:39:33'),
('subcontractor', 'add,edit,delete', 45, '2025-07-09 07:39:33'),
('internal-inspector', 'add,edit,delete', 45, '2025-07-09 07:39:33'),
('internal-auditor', 'add,edit,delete', 45, '2025-07-09 07:39:33'),
('farmer-supervisor', 'add,edit,delete', 45, '2025-07-09 07:39:33'),
('manuals-and-documents', 'add,edit,delete', 45, '2025-07-09 07:39:33'),
('other-documents-reports', 'add,edit,delete', 45, '2025-07-09 07:39:33'),
('mass-balance-register', 'add,edit,delete', 45, '2025-07-09 07:39:33'),
('internal-audit', 'add,edit,delete', 45, '2025-07-09 07:39:33'),
('internal-farm-inspection', 'add,edit,delete', 45, '2025-07-09 07:39:33'),
('certified-audit', 'add,edit,delete', 45, '2025-07-09 07:39:33'),
('farm-inspection', 'add,edit,delete', 45, '2025-07-09 07:39:33'),
('standard-certificate', 'add,edit,delete', 45, '2025-07-09 07:39:33'),
('reference-document', 'add,edit,delete', 45, '2025-07-09 07:39:33'),
('impact-creation', 'add,edit,delete', 45, '2025-07-09 07:39:33'),
('challenges-and-feedback', 'add,edit,delete', 45, '2025-07-09 07:39:33'),
('audit-mapping', 'add,edit,delete', 45, '2025-07-09 07:39:33'),
('organization-profile-page', 'add,edit,delete', 46, '2025-07-09 07:39:49'),
('contact-person', 'add,edit,delete', 46, '2025-07-09 07:39:49'),
('certificate', 'add,edit,delete', 46, '2025-07-09 07:39:49'),
('skill', 'add,edit,delete', 46, '2025-07-09 07:39:49'),
('department', 'add,edit,delete', 46, '2025-07-09 07:39:49'),
('role', 'add,edit,delete', 46, '2025-07-09 07:39:49'),
('Crop-master', 'add,edit,delete', 46, '2025-07-09 07:39:49'),
('farmer', 'add,edit,delete', 46, '2025-07-09 07:39:49'),
('farmer_land_details', 'add,edit,delete', 46, '2025-07-09 07:39:49'),
('crop_details', 'add,edit,delete', 46, '2025-07-09 07:39:49'),
('soil-management', 'add,edit,delete', 46, '2025-07-09 07:39:49'),
('water-management', 'add,edit,delete', 46, '2025-07-09 07:39:49'),
('irrigation-methods', 'add,edit,delete', 46, '2025-07-09 07:39:49'),
('storage', 'add,edit,delete', 46, '2025-07-09 07:39:49'),
('packaging', 'add,edit,delete', 46, '2025-07-09 07:39:49'),
('plant-and-machinery', 'add,edit,delete', 46, '2025-07-09 07:39:49'),
('employment', 'add,edit,delete', 46, '2025-07-09 07:39:49'),
('subcontractor', 'add,edit,delete', 46, '2025-07-09 07:39:49'),
('internal-inspector', 'add,edit,delete', 46, '2025-07-09 07:39:49'),
('internal-auditor', 'add,edit,delete', 46, '2025-07-09 07:39:49'),
('farmer-supervisor', 'add,edit,delete', 46, '2025-07-09 07:39:49'),
('manuals-and-documents', 'add,edit,delete', 46, '2025-07-09 07:39:49'),
('other-documents-reports', 'add,edit,delete', 46, '2025-07-09 07:39:49'),
('mass-balance-register', 'add,edit,delete', 46, '2025-07-09 07:39:49'),
('internal-audit', 'add,edit,delete', 46, '2025-07-09 07:39:49'),
('internal-farm-inspection', 'add,edit,delete', 46, '2025-07-09 07:39:49'),
('certified-audit', 'add,edit,delete', 46, '2025-07-09 07:39:49'),
('farm-inspection', 'add,edit,delete', 46, '2025-07-09 07:39:49'),
('standard-certificate', 'add,edit,delete', 46, '2025-07-09 07:39:49'),
('reference-document', 'add,edit,delete', 46, '2025-07-09 07:39:49'),
('impact-creation', 'add,edit,delete', 46, '2025-07-09 07:39:49'),
('challenges-and-feedback', 'add,edit,delete', 46, '2025-07-09 07:39:49'),
('audit-mapping', 'add,edit,delete', 46, '2025-07-09 07:39:49');

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

--
-- Table structure for table `plant_and_machinery`
--

CREATE TABLE `plant_and_machinery` (
  `id` int(11) NOT NULL,
  `location` text DEFAULT NULL,
  `searchable_location` varchar(250) DEFAULT NULL,
  `purchase_date` date DEFAULT NULL,
  `Machinery_Functiony` varchar(250) DEFAULT NULL,
  `id_number` varchar(12) DEFAULT NULL,
  `photo` text DEFAULT NULL,
  `documents` text DEFAULT NULL,
  `manufacturer` varchar(100) DEFAULT NULL,
  `usage` varchar(100) DEFAULT NULL,
  `Machinery_Operator_Name_Designation` varchar(50) DEFAULT NULL,
  `calibration_due_date` date DEFAULT NULL,
  `calibration_completed_date` date DEFAULT NULL,
  `next_due_date` date DEFAULT NULL,
  `calibrator_name` varchar(50) DEFAULT NULL,
  `insurance_coverage` varchar(100) DEFAULT NULL,
  `Insurance_Details` text DEFAULT NULL,
  `standard_certification` varchar(100) DEFAULT NULL,
  `remark` text DEFAULT NULL,
  `created_at` datetime DEFAULT current_timestamp(),
  `updated_at` datetime DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `status` int(11) DEFAULT 1,
  `associated_by` text DEFAULT NULL,
  `entity_id` int(11) DEFAULT NULL,
  `created_by` int(11) DEFAULT NULL,
  `updated_by` int(11) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `plant_and_machinery`
--

INSERT INTO `plant_and_machinery` (`id`, `location`, `searchable_location`, `purchase_date`, `Machinery_Functiony`, `id_number`, `photo`, `documents`, `manufacturer`, `usage`, `Machinery_Operator_Name_Designation`, `calibration_due_date`, `calibration_completed_date`, `next_due_date`, `calibrator_name`, `insurance_coverage`, `Insurance_Details`, `standard_certification`, `remark`, `created_at`, `updated_at`, `status`, `associated_by`, `entity_id`, `created_by`, `updated_by`) VALUES
(12, '{\"Corporate_Office\":null}', NULL, '2025-04-22', 'dsfsdfsd', 'plant-15_1', '[\"uploads\\/entity_profile\\/15\\/Plant_and_meachinery\\/12\\/photos\\/\\/1745471380_2bf3f1967f776eda3e08.png\",\"uploads\\/entity_profile\\/15\\/Plant_and_meachinery\\/12\\/photos\\/1745471188_0cdb776ae8c03428037b.png\"]', '[{\"name\":\"bea\",\"date\":\"2025-04-21\",\"file\":\"uploads\\/entity_profile\\/15\\/Plant_and_meachinery\\/12\\/documants\\/1745471188_8a49dbdc833bca35586c.jpg\"},{\"name\":\"wqeqwe\",\"date\":\"2025-04-15\",\"file\":\"uploads\\/entity_profile\\/15\\/Plant_and_meachinery\\/12\\/documants\\/1745471188_299107f31bf8b15400d3.jpg\"}]', '34335', 'rttretrt', 'retretertee', '2025-04-13', '2025-04-12', '2025-04-10', 'erwerewrewrew', 'dfsdsfsdfsd', 'reerwrew', 'fsdfsd', 'sdfdsf\r\n\r\n                             ', '2025-04-24 05:06:28', '2025-05-01 03:30:34', 1, 'organisation', 15, 1, 15),
(13, '{\"Storage_Details\":[\"6\",\"5\"]}', NULL, '2025-04-13', 'sdfdsf', 'plant-15_2', '[\"uploads\\/entity_profile\\/15\\/Plant_and_meachinery\\/13\\/photos\\/1745472297_c18273e66dff35e74529.jpg\",\"uploads\\/entity_profile\\/15\\/Plant_and_meachinery\\/13\\/photos\\/1745472297_9383c2f07d79a3158819.jpg\"]', '[{\"name\":\"fdsf\",\"date\":\"2025-05-05\",\"file\":\"uploads\\/entity_profile\\/15\\/Plant_and_meachinery\\/13\\/documants\\/1745472297_d0ce0056c056b005e0cd.png\"}]', '332', 'sdfsdfsdfdsf', 'dsfdsfsd', '2025-04-20', '2025-04-25', '2025-04-14', 'sdfsdfsdffds', 'sdfsdfsd', 'fsdfsdf', 'sdfsdf', 'dsfdsfsdf\r\n\r\n                             ', '2025-04-24 05:24:57', '2025-04-24 05:24:57', 1, 'organisation', 15, 1, 1),
(14, '{\"Corporate_Office\":null}', NULL, '2025-04-23', 'zxZ', 'plant-19_3', '[\"uploads\\/entity_profile\\/19\\/Plant_and_meachinery\\/14\\/photos\\/1746009292_afaedddf96876342f71f.png\"]', '[{\"name\":\"s1\",\"date\":\"2025-05-02\",\"file\":\"uploads\\/entity_profile\\/19\\/Plant_and_meachinery\\/14\\/documants\\/1746009292_63ef70dd88eeb9a6596e.jpeg\"},{\"name\":\"s2\",\"date\":\"2025-05-09\",\"file\":\"uploads\\/entity_profile\\/19\\/Plant_and_meachinery\\/14\\/documants\\/1746009292_124d6e5739165cd506d6.jpeg\"}]', 'zxZzx', 'zx', 'zx', '2025-05-02', '2025-05-10', '2025-05-11', 'zzxz', 'zx', 'xzx', 'zx', 'saddasd\r\n\r\n                             ', '2025-04-30 10:34:52', '2025-05-09 16:53:13', 1, 'organisation', 19, 8, 8),
(15, '{\"Factory_builidings\":[\"11\",\"12\"]}', NULL, '2025-04-15', 'dfgfdgdfg', 'plant-15_4', '[\"uploads\\/entity_profile\\/15\\/Plant_and_meachinery\\/15\\/photos\\/1746009505_6302a9fb8b7456093c62.jpg\"]', '[{\"name\":\"fgfdgfdg\",\"date\":\"2025-04-23\",\"file\":\"uploads\\/entity_profile\\/15\\/Plant_and_meachinery\\/15\\/documants\\/1746009505_b7686590f24a65fda110.jpg\"}]', 'strete', 'rttretrt', 'retretertee', '2025-04-15', '2025-04-11', '2025-04-25', 'gfdgdfg', 'fgdfgdfg', 'fdgfdgfdg', 'dfgdfg', '\r\nfdgfdgdfg\r\n                             ', '2025-04-30 10:38:25', '2025-05-09 16:53:11', 1, 'organisation', 15, 15, 15),
(16, '{\"Factory_builidings\":[\"13\"]}', NULL, '2025-04-17', 'dsadads', 'plant-19_5', '[\"uploads\\/entity_profile\\/19\\/Plant_and_meachinery\\/16\\/photos\\/1746010875_265214a135874b26dce1.png\"]', '[{\"name\":\"p1\",\"date\":\"2025-05-08\",\"file\":\"uploads\\/entity_profile\\/19\\/Plant_and_meachinery\\/16\\/documants\\/1746010875_a3c36023c9fc35f7a2f5.png\"},{\"name\":\"p2\",\"date\":\"2025-05-08\",\"file\":\"uploads\\/entity_profile\\/19\\/Plant_and_meachinery\\/16\\/documants\\/1746010875_4d28afecfaccaede49b8.jpg\"}]', 'tata', 'dfdsg', 'jcb', '2025-04-25', '2025-05-03', '2025-05-11', 'sdad', 'asdsa', 'sdadsa', 'adsdsd', '\r\nsdadasd\r\n                             ', '2025-04-30 11:01:15', '2025-04-30 11:01:15', 1, 'organisation', 19, 8, 8),
(17, '{\"Factory_builidings\":[\"13\"]}', NULL, '2025-05-01', 'wdaadsad', 'plant-19_6', '[\"uploads\\/entity_profile\\/19\\/Plant_and_meachinery\\/17\\/photos\\/1746011829_3bfa5fdd0804e52bb4ea.png\"]', '[{\"name\":\"ssa\",\"date\":\"2025-05-08\",\"file\":\"uploads\\/entity_profile\\/19\\/Plant_and_meachinery\\/17\\/documants\\/1746011829_ca791a2df58b6b652620.png\"}]', 'tata', 'dfdsg', 'zx', '2025-05-03', '2025-05-03', '2025-05-11', 'sdad', 'zx', 'sdadsa', 'adsdsd', 'sadsadad\r\n\r\n                             ', '2025-04-30 11:17:09', '2025-04-30 11:17:09', 1, 'organisation', 19, 8, 8),
(18, '{\"Corporate_Office\":null}', NULL, '2022-12-12', 'Machinery Function is good', 'plant-23_7', '[\"uploads\\/entity_profile\\/23\\/Plant_and_meachinery\\/18\\/photos\\/1746024162_9ab7f0bee55aaff131d1.jpg\"]', '[{\"name\":\"TestDoc Name\",\"date\":\"2025-04-15\",\"file\":\"uploads\\/entity_profile\\/23\\/Plant_and_meachinery\\/18\\/documants\\/1746024162_6a5f2b1dd8782b3e150b.pdf\"}]', 'Tokyo Co', 'Filling Oil', 'TestName and Test Designation', '2023-11-13', '2023-12-22', '2026-05-10', 'TestCalib', 'Yes', 'Insurance taken\r\n                               ', 'BRCFood', 'Remarks entered\r\n\r\n                             ', '2025-04-30 14:42:42', '2025-04-30 14:42:42', 1, 'organisation', 23, 20, 20),
(19, '{\"Factory_builidings\":[\"30\"]}', NULL, '2025-05-07', 'cfchg', 'P_and_M-39_8', '[\"uploads\\/entity_profile\\/39\\/Plant_and_meachinery\\/19\\/photos\\/1746780502_5d87c138418b99ced114.jpeg\"]', '[{\"name\":\"st1\",\"date\":\"2025-05-15\",\"file\":\"uploads\\/entity_profile\\/39\\/Plant_and_meachinery\\/19\\/documants\\/1746780502_c90549f0a5ef937f6872.pdf\"}]', 'tata', 'dfdsg', 'zx', '2025-05-10', '2025-05-16', '2025-05-22', 'sdad', 'zx', 'gfdfghfgfj', 'adsdsd', 'trsjhhjhk', '2025-05-09 08:48:22', '2025-05-09 08:48:22', 1, 'organisation', 39, 52, 52),
(20, '{\"Factory_builidings\":[\"30\"]}', NULL, '2025-05-10', 'sdasd', 'P_and_M-39_9', '[\"uploads\\/entity_profile\\/39\\/Plant_and_meachinery\\/20\\/photos\\/1746780694_411008970a00afc6c7d2.png\"]', '[{\"name\":\"sadds\",\"date\":\"2025-05-21\",\"file\":\"uploads\\/entity_profile\\/39\\/Plant_and_meachinery\\/20\\/documants\\/1746780695_850b37d13bf34ee77796.pdf\"}]', 'zxZzx', 'zx', 'sad', '2025-05-10', '2025-05-16', '2025-05-16', 'sdads', 'sadsa', 'sdadad', 'sada', 'sda', '2025-05-09 08:51:34', '2025-05-09 08:51:35', 1, 'organisation', 39, 52, 52),
(21, '{\"Factory_builidings\":[\"30\"]}', NULL, '2025-05-10', 'sdas', 'P_and_M-39_1', '[\"uploads\\/entity_profile\\/39\\/Plant_and_meachinery\\/21\\/photos\\/1746787233_95296c3c071291e3bd96.jpg\"]', '[{\"name\":\"sdasd\",\"date\":\"2025-05-16\",\"file\":\"uploads\\/entity_profile\\/39\\/Plant_and_meachinery\\/21\\/documants\\/1746787233_d72753f210bbc0e3668b.pdf\"}]', 'zxZzx', 'zx', 'sad', '2025-05-10', '2025-05-24', '2025-05-24', 'asda', 'sada', 'sdad', 'sdada', 'sdasda', '2025-05-09 10:40:33', '2025-05-09 10:40:33', 1, 'organisation', 39, 52, 52),
(22, '{\"packaging_unit\":[\"6\"]}', NULL, '2025-05-09', 'sdada', 'P_and_M-39_1', '[\"uploads\\/entity_profile\\/39\\/Plant_and_meachinery\\/22\\/photos\\/1746789524_729aa90602de46f9f53b.jpg\"]', '[{\"name\":\"sada\",\"date\":\"2025-05-08\",\"file\":\"uploads\\/entity_profile\\/39\\/Plant_and_meachinery\\/22\\/documants\\/1746789524_14844d9c918f97f88649.pdf\"}]', 'zxZzx', 'sada', 'sada', '2025-05-03', '2025-05-16', '2025-05-08', 'asdsa', 'sadad', 'sadad', 'sda', 'sadasd', '2025-05-09 11:18:44', '2025-05-09 11:18:44', 1, 'organisation', 39, 52, 52),
(23, '{\"packaging_unit\":[\"6\"]}', NULL, '2025-05-16', 'dfsfs', 'P_and_M-39_1', '[\"uploads\\/entity_profile\\/39\\/Plant_and_meachinery\\/23\\/photos\\/1746789869_c011942dc00af3220c86.jpeg\"]', '[{\"name\":\"s1\",\"date\":\"2025-05-08\",\"file\":\"uploads\\/entity_profile\\/39\\/Plant_and_meachinery\\/23\\/documants\\/1746789869_1fe526c0d7733a127e17.pdf\"}]', 'dghh', 'sdfas', 'dsfd', '2025-05-07', '2025-05-23', '2025-05-23', 'dsfs', 'dfsfs', 'dfsdfds', 'dsfs', 'sdfds', '2025-05-09 11:24:29', '2025-05-09 11:24:29', 1, 'organisation', 39, 52, 52),
(24, '{\"packaging_unit\":[\"6\"]}', NULL, '2025-05-13', 'fsdf', 'P_and_M-37_1', '[\"uploads\\/entity_profile\\/37\\/Plant_and_meachinery\\/24\\/photos\\/1746790066_60d934ae7989138a1892.jpg\"]', '[{\"name\":\"dfsdfsd\",\"date\":\"2025-04-29\",\"file\":\"uploads\\/entity_profile\\/37\\/Plant_and_meachinery\\/24\\/documants\\/1746790066_cafdffc4c267cbb6bd53.xlsx\"}]', 'fdsfds', 'fsdfsdfsd', 'fsdfsd', '2025-05-28', '2025-05-24', '2025-05-07', 'dfdsfs', 'dfsdfdsf', 'sdfsdf', 'sdfsd', 'sdfsdfs', '2025-05-09 11:27:46', '2025-05-09 17:10:14', 1, 'organisation', 37, 49, 49),
(25, '{\"Storage_Details\":[\"11\"]}', NULL, '1990-05-01', 'Grading Line', 'P_and_M-43_1', '[\"uploads\\/entity_profile\\/43\\/Plant_and_meachinery\\/25\\/photos\\/1747486205_130f7bca53561b59a82e.jpg\"]', '[{\"name\":\"Test\",\"date\":\"2025-05-05\",\"file\":\"uploads\\/entity_profile\\/43\\/Plant_and_meachinery\\/25\\/documants\\/1747486205_b2390aa4de46126b51e2.pdf\"}]', 'Tokyo Co', 'Grading Line', 'Anita Verma, Operator', '1990-05-01', '2025-05-14', '2026-10-01', 'TestCalib', 'Yes', 'Yes', 'NA', 'Test', '2025-05-17 12:50:05', '2025-05-17 12:50:05', 1, 'organisation', 43, 65, 65),
(26, '{\"Storage_Details\":[\"12\"]}', NULL, '1999-05-04', 'Electronic Weighing Scale', 'P_and_M-43_1', '[\"uploads\\/entity_profile\\/43\\/Plant_and_meachinery\\/26\\/photos\\/1747486530_588dde69d33474d5c020.jpg\"]', '[{\"name\":\"Test\",\"date\":\"2025-05-08\",\"file\":\"uploads\\/entity_profile\\/43\\/Plant_and_meachinery\\/26\\/documants\\/1747486530_5c3d7731375d40c37f71.pdf\"}]', 'Tokyo Co', 'Electronic Weighing Scale', 'Ramesh Kumar Packing Supervisor', '1999-05-04', '2025-08-10', '2026-04-22', 'TestCalib', 'No', 'Yes', 'NA', 'Test', '2025-05-17 12:55:30', '2025-05-17 13:03:13', 1, 'organisation', 43, 65, 65),
(27, '{\"Storage_Details\":[\"13\"]}', NULL, '1999-03-10', 'Cold Room Chamber	', 'P_and_M-43_1', '[\"uploads\\/entity_profile\\/43\\/Plant_and_meachinery\\/27\\/photos\\/1747486963_0232eda801f173d8e943.jpg\"]', '[{\"name\":\"Test2\",\"date\":\"2025-05-06\",\"file\":\"uploads\\/entity_profile\\/43\\/Plant_and_meachinery\\/27\\/documants\\/1747486963_b0d8d854472c0c717719.pdf\"}]', 'Tokyo Co', 'Cold Room Chamber', 'Anita Verma	', '2025-05-21', '2025-05-21', '2027-05-14', 'TestCalib', 'Yes', 'Y', 'NA', 'Test', '2025-05-17 13:02:43', '2025-05-17 13:02:43', 1, 'organisation', 43, 65, 65),
(28, '{\"Storage_Details\":[\"12\"]}', NULL, '1987-05-05', 'Conveyor Belt	', 'P_and_M-43_1', '[\"uploads\\/entity_profile\\/43\\/Plant_and_meachinery\\/28\\/photos\\/1747487126_afde0fd43f08a912dc6f.jpg\"]', '[{\"name\":\"Test\",\"date\":\"2025-05-08\",\"file\":\"uploads\\/entity_profile\\/43\\/Plant_and_meachinery\\/28\\/documants\\/1747487126_d30bdc79777a303bd3ba.pdf\"}]', 'Tokyo Co', 'Conveyor Belt	', 'Ramesh Kumar Packing Supervisor', '2025-05-13', '2025-05-13', '2027-05-13', 'TestCalib', 'No', 'N', 'NA', 'Requires Lubrication	', '2025-05-17 13:05:26', '2025-05-17 13:05:26', 1, 'organisation', 43, 65, 65),
(29, '{\"Corporate_Office\":null}', NULL, '2025-05-06', 'Na', 'P_and_M-43_1', NULL, '[{\"name\":\"1258785\",\"date\":\"2025-05-19\",\"file\":\"uploads\\/entity_profile\\/43\\/Plant_and_meachinery\\/29\\/documants\\/1747722428_890734a4bbeeeb08bc9e.pdf\"}]', 'Seed Grading Machine', 'Cleaning and grading hybrid seeds based on weight and size', 'Anji ', '2025-05-14', '2025-05-19', '2026-01-19', 'Seed Grading Machine', 'No', 'Na', 'No', 'Na', '2025-05-20 06:27:08', '2025-05-20 06:27:08', 1, 'organisation', 43, 65, 65),
(30, '{\"Corporate_Office\":null}', 'Corporate_Office', '2025-05-13', 'asdasd', 'P_and_M-33_1', NULL, NULL, 'fdsfds', 'gdfgdfgdf', 'asdsad', '2025-05-12', '2025-05-15', '2025-06-13', 'ssadsad', 'dasdasd', 'asdas', 'asdasd', 'dasdasd', '2025-05-23 12:09:43', '2025-05-23 12:09:43', 1, 'fpo', 33, 45, 45),
(31, '{\"Corporate_Office\":null}', 'Corporate_Office', '0000-00-00', '', 'P_and_M-48_2', NULL, '[{\"name\":\"Agreement\",\"date\":\"2023-02-14\",\"file\":\"uploads\\/entity_profile\\/48\\/Plant_and_meachinery\\/31\\/documants\\/1748854447_afc928f1d9252812754f.pdf\"}]', '', '', '', '0000-00-00', '0000-00-00', '0000-00-00', '', '', '', '', '', '2025-06-02 08:54:07', '2025-06-02 08:54:07', 1, 'organisation', 48, 88, 88),
(32, '{\"Corporate_Office\":null}', 'Corporate_Office', '0000-00-00', '', 'P_and_M-48_2', NULL, '[{\"name\":\"Agreement\",\"date\":\"2021-02-16\",\"file\":\"uploads\\/entity_profile\\/48\\/Plant_and_meachinery\\/32\\/documants\\/1748855566_26d5b02a91b1190beb74.pdf\"}]', '', '', '', '0000-00-00', '0000-00-00', '0000-00-00', '', '', '', '', '', '2025-06-02 09:12:46', '2025-06-02 09:12:46', 1, 'organisation', 48, 88, 88),
(33, '{\"Corporate_Office\":null}', 'Corporate_Office', '0000-00-00', '', 'P_and_M-48_2', NULL, '[{\"name\":\"Agreement\",\"date\":\"2022-07-27\",\"file\":\"uploads\\/entity_profile\\/48\\/Plant_and_meachinery\\/33\\/documants\\/1748855722_e49d46ed6db2e6d1d0f2.pdf\"}]', '', '', '', '0000-00-00', '0000-00-00', '0000-00-00', '', '', '', '', '', '2025-06-02 09:15:22', '2025-06-02 09:15:22', 1, 'organisation', 48, 88, 88),
(34, '{\"Corporate_Office\":null}', 'Corporate_Office', '0000-00-00', '', 'P_and_M-51_2', NULL, '[{\"name\":\"Agreement\",\"date\":\"2025-06-02\",\"file\":\"uploads\\/entity_profile\\/51\\/Plant_and_meachinery\\/34\\/documants\\/1748872525_daee23a9d134bbadea78.pdf\"}]', '', '', '', '0000-00-00', '0000-00-00', '0000-00-00', '', '', '', '', '', '2025-06-02 13:55:25', '2025-06-02 13:55:25', 1, 'organisation', 51, 107, 107),
(35, '{\"Corporate_Office\":null}', 'Corporate_Office', '0000-00-00', '', 'P_and_M-51_2', NULL, '[{\"name\":\"Agreement\",\"date\":\"2025-06-02\",\"file\":\"uploads\\/entity_profile\\/51\\/Plant_and_meachinery\\/35\\/documants\\/1748872633_cd6fc82878c5535331ab.pdf\"}]', '', '', '', '0000-00-00', '0000-00-00', '0000-00-00', '', '', '', '', '', '2025-06-02 13:57:13', '2025-06-02 13:57:13', 1, 'organisation', 51, 107, 107),
(36, '{\"Corporate_Office\":null}', 'Corporate_Office', '0000-00-00', '', 'P_and_M-51_2', NULL, '[{\"name\":\"Agreement\",\"date\":\"2025-06-02\",\"file\":\"uploads\\/entity_profile\\/51\\/Plant_and_meachinery\\/36\\/documants\\/1748872722_6a93c149b44251d32c99.pdf\"}]', '', '', '', '0000-00-00', '0000-00-00', '0000-00-00', '', '', '', '', '', '2025-06-02 13:58:42', '2025-06-02 13:58:42', 1, 'organisation', 51, 107, 107),
(37, '{\"Corporate_Office\":null}', 'Corporate_Office', '0000-00-00', '', 'P_and_M-47_2', NULL, '[{\"name\":\"Agreement\",\"date\":\"2025-06-02\",\"file\":\"uploads\\/entity_profile\\/47\\/Plant_and_meachinery\\/37\\/documants\\/1748874135_84370e949a8d630fedb0.pdf\"}]', '', '', '', '0000-00-00', '0000-00-00', '0000-00-00', '', '', '', '', '', '2025-06-02 14:22:15', '2025-06-02 14:22:15', 1, 'fpo', 47, 82, 82),
(38, '{\"Corporate_Office\":null}', 'Corporate_Office', '0000-00-00', '', 'P_and_M-47_2', NULL, '[{\"name\":\"Agreement\",\"date\":\"2025-06-02\",\"file\":\"uploads\\/entity_profile\\/47\\/Plant_and_meachinery\\/38\\/documants\\/1748875719_493b5dcec81273aecc4b.pdf\"}]', '', '', '', '0000-00-00', '0000-00-00', '0000-00-00', '', '', '', '', '', '2025-06-02 14:48:39', '2025-06-02 14:48:39', 1, 'fpo', 47, 82, 82),
(39, '{\"Corporate_Office\":null}', 'Corporate_Office', '0000-00-00', '', 'P_and_M-48_2', NULL, '[{\"name\":\"farming dta\",\"date\":\"2025-06-02\",\"file\":\"uploads\\/entity_profile\\/48\\/Plant_and_meachinery\\/39\\/documants\\/1748878629_ccd2c535b25e62150064.pdf\"}]', '', '', '', '0000-00-00', '0000-00-00', '0000-00-00', '', '', '', '', '', '2025-06-02 15:37:09', '2025-06-02 15:37:09', 1, 'organisation', 48, 88, 88),
(40, '{\"Others\":\"ttt\"}', 'Others', '0000-00-00', '', 'P_and_M-37_2', NULL, NULL, '', '', '', '0000-00-00', '0000-00-00', '0000-00-00', '', '', '', '', '', '2025-06-05 05:02:01', '2025-06-05 05:02:01', 1, 'organisation', 37, 49, 49),
(41, '{\"Corporate_Office\":null}', 'Corporate_Office', '0000-00-00', '', 'P_and_M-37_3', NULL, NULL, '', '', '', '0000-00-00', '0000-00-00', '0000-00-00', '', '', '', '', '', '2025-06-05 10:31:57', '2025-06-05 10:31:57', 1, 'organisation', 37, 49, 49),
(42, '{\"packaging_unit\":[\"10\"]}', 'packaging_unit', '0000-00-00', '', 'P_and_M-33_3', NULL, NULL, '', '', '', '0000-00-00', '0000-00-00', '0000-00-00', '', '', '', '', '', '2025-06-05 11:38:49', '2025-06-05 11:38:49', 1, 'fpo', 33, 45, 45),
(43, '{\"packaging_unit\":[\"7\"]}', 'packaging_unit', '0000-00-00', '', 'P_and_M-37_3', NULL, NULL, '', '', '', '0000-00-00', '0000-00-00', '0000-00-00', '', '', '', '', '', '2025-06-05 12:05:45', '2025-06-05 12:05:45', 1, 'organisation', 37, 49, 49),
(44, '{\"storage_details\":[\"16\"]}', 'storage_details', '0000-00-00', '', 'P_and_M-47_3', '[]', '[{\"name\":\"Agreement\",\"date\":\"2025-06-03\",\"file\":\"uploads\\/entity_profile\\/47\\/Plant_and_meachinery\\/44\\/documants\\/1749126276_b69d27e72066f3825d8e.pdf\"}]', 'Dalmia', 'Uria', 'Shankar', '0000-00-00', '0000-00-00', '0000-00-00', '', '', '', '', '', '2025-06-05 12:24:36', '2025-06-05 12:25:54', 1, 'fpo', 47, 82, 82),
(45, '{\"packaging_unit\":[\"11\"]}', 'packaging_unit', '0000-00-00', '', 'P_and_M-47_3', NULL, '[{\"name\":\"Agreement\",\"date\":\"2025-06-03\",\"file\":\"uploads\\/entity_profile\\/47\\/Plant_and_meachinery\\/45\\/documants\\/1749126429_db7e4479604379e2e132.pdf\"}]', 'Durga', 'Uria', '', '0000-00-00', '0000-00-00', '0000-00-00', '', '', '', '', '', '2025-06-05 12:27:09', '2025-06-05 12:27:09', 1, 'fpo', 47, 82, 82),
(46, '{\"factory_builidings\":[\"35\"]}', 'factory_builidings', '0000-00-00', '', 'P_and_M-48_3', NULL, '[{\"name\":\"Agreement\",\"date\":\"2025-06-03\",\"file\":\"uploads\\/entity_profile\\/48\\/Plant_and_meachinery\\/46\\/documants\\/1749126562_d7a9ff77f398a79dff24.pdf\"}]', 'Priya', 'Uria', '', '0000-00-00', '0000-00-00', '0000-00-00', '', '', '', '', '', '2025-06-05 12:29:22', '2025-06-05 12:29:22', 1, 'organisation', 48, 88, 88),
(47, '{\"storage_details\":[\"17\"]}', 'storage_details', '0000-00-00', '', 'P_and_M-48_3', NULL, '[{\"name\":\"Agreement\",\"date\":\"2025-06-02\",\"file\":\"uploads\\/entity_profile\\/48\\/Plant_and_meachinery\\/47\\/documants\\/1749126620_9c8e7e42f24854ad5b44.pdf\"}]', 'Vajram', 'Uria', '', '0000-00-00', '0000-00-00', '0000-00-00', '', '', '', '', '', '2025-06-05 12:30:20', '2025-06-05 12:30:20', 1, 'organisation', 48, 88, 88),
(48, '{\"packaging_unit\":[\"8\"]}', 'packaging_unit', '0000-00-00', '', 'P_and_M-48_3', NULL, '[{\"name\":\"Agreement\",\"date\":\"2025-06-03\",\"file\":\"uploads\\/entity_profile\\/48\\/Plant_and_meachinery\\/48\\/documants\\/1749126669_77a62bf34d50d1b3a3c8.pdf\"}]', 'TMR', 'Uria', '', '0000-00-00', '0000-00-00', '0000-00-00', '', '', '', '', '', '2025-06-05 12:31:09', '2025-06-05 12:31:09', 1, 'organisation', 48, 88, 88),
(49, '{\"Corporate_Office\":null}', 'Corporate_Office', '2025-06-18', '', 'PM001', '[]', '[{\"name\":\"HAZARD AND RISK MANAGEMENT\",\"date\":\"2025-06-18\",\"file\":\"uploads\\/entity_profile\\/54\\/Plant_and_meachinery\\/49\\/documants\\/1750319025_b940411c95f64150076e.pdf\"}]', 'Seed Grading Machine', 'Cleaning and grading hybrid seeds based on weight and size', 'Anji ', '2025-06-16', '2025-06-19', '2025-06-24', 'Seed Grading Machine', 'No', '', 'No', '', '2025-06-19 07:43:45', '2025-07-29 07:40:46', 1, 'fpo', 54, 135, 135),
(50, '{\"Others\":\"Plant and Machinery  \"}', 'Others', '2025-07-01', 'Na', 'P_and_M-38_3', '[\"uploads\\/entity_profile\\/38\\/Plant_and_meachinery\\/50\\/photos\\/1751692220_f4e1be7c1bdd76aa9413.png\"]', '[{\"name\":\"Plant And Machinery\",\"date\":\"2025-07-02\",\"file\":\"uploads\\/entity_profile\\/38\\/Plant_and_meachinery\\/50\\/documants\\/1751692220_92777c98e2c69821ec1b.pdf\"}]', 'Seed Grading Machine', 'Cleaning and grading hybrid seeds based on weight and size', 'Anji ', '2025-07-01', '2025-07-05', '2025-07-31', 'Seed Grading Machine', 'No', 'Na', 'No', 'Na', '2025-07-05 05:10:20', '2025-07-28 12:21:29', 1, 'organisation', 38, 51, 51);

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

--
-- Table structure for table `product_sampling`
--

CREATE TABLE `product_sampling` (
  `id` int(11) NOT NULL,
  `entity_id` int(11) NOT NULL,
  `associated_by` varchar(50) NOT NULL,
  `sampling_date` datetime NOT NULL,
  `sampling_for` text NOT NULL,
  `department_id` int(11) DEFAULT NULL,
  `qty_collected` int(5) DEFAULT NULL,
  `who_collected` varchar(50) DEFAULT NULL,
  `test_report_date` date DEFAULT NULL,
  `lab_name` varchar(50) DEFAULT NULL,
  `lab_type` enum('Internal','External') DEFAULT NULL,
  `report_result` enum('Positive','Negative') DEFAULT NULL,
  `documents` text DEFAULT NULL,
  `sampling_description` varchar(250) DEFAULT NULL,
  `submission_to_the_Lab_date_time` date NOT NULL,
  `Category` text NOT NULL,
  `remark` text NOT NULL,
  `created_by` int(11) DEFAULT NULL,
  `updated_by` int(11) DEFAULT NULL,
  `status` tinyint(1) DEFAULT 1,
  `created_at` timestamp NOT NULL DEFAULT current_timestamp(),
  `updated_at` datetime DEFAULT current_timestamp() ON UPDATE current_timestamp()
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `product_sampling`
--

INSERT INTO `product_sampling` (`id`, `entity_id`, `associated_by`, `sampling_date`, `sampling_for`, `department_id`, `qty_collected`, `who_collected`, `test_report_date`, `lab_name`, `lab_type`, `report_result`, `documents`, `sampling_description`, `submission_to_the_Lab_date_time`, `Category`, `remark`, `created_by`, `updated_by`, `status`, `created_at`, `updated_at`) VALUES
(1, 15, 'organisation', '2025-04-17 00:00:00', '{\"Storage_Details\":[\"6\"]}', 1, 1, '34dsf', '2025-04-17', 'dsfdsfsdfs', 'Internal', 'Positive', '[{\"name\":\"sfdfdsf\",\"date\":\"2025-05-07\",\"file\":\"uploads\\/entity_profile\\/15\\/Product_sampling\\/1\\/documants\\/1745685432_97774102f8e342c75929.jpg\"}]', '\r\n             dsfdsfsdf                ', '2025-04-26', 'Initial', 'fdsdfsd\r\n\r\n                             ', 1, 1, 0, '2025-04-26 11:07:12', '2025-04-26 23:16:21'),
(2, 15, 'organisation', '2025-04-17 00:00:00', '{\"Factory_builidings\":[\"10\"]}', 1, 0, NULL, '2025-04-08', 'fdsfdsfsd', 'Internal', 'Positive', '[{\"name\":\"dsfsdfds\",\"date\":\"2025-04-30\",\"file\":\"uploads\\/entity_profile\\/15\\/Product_sampling\\/2\\/documants\\/1745685555_62183a85fe96956c201a.jpg\"}]', 'sdfsdf\r\n\r\n                             ', '2025-04-24', 'Initial', 'sdfsdf\r\n\r\n                             ', 1, 1, 1, '2025-04-26 11:09:15', '2025-04-26 16:39:15'),
(3, 0, '', '0000-00-00 00:00:00', '', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '0000-00-00', '', '\r\nfdsfdf\r\n                             ', NULL, 1, 1, '2025-04-27 04:49:26', '2025-04-27 10:19:26'),
(4, 19, 'organisation', '2025-05-01 00:00:00', '{\"Factory_builidings\":[\"13\"]}', 2, 1, 'thamil', '2025-04-17', 'sdada', 'Internal', 'Positive', '[{\"name\":\"st1\",\"date\":\"2025-05-08\",\"file\":\"uploads\\/entity_profile\\/19\\/Product_sampling\\/4\\/documants\\/1746017141_22851de2961db84fb13b.jpg\"}]', 'sadasa\r\n\r\n                             ', '2025-05-03', 'Initial', 'sdad\r\n\r\n                             ', 8, 8, 1, '2025-04-30 07:15:41', '2025-04-30 12:45:41'),
(5, 39, 'organisation', '2025-05-09 00:00:00', '{\"Factory_builidings\":[\"30\"]}', 12, 1, 'thamil', '2025-05-23', 'sdada', 'Internal', 'Positive', '[{\"name\":\"sts\",\"date\":\"2025-05-08\",\"file\":\"uploads\\/entity_profile\\/39\\/Product_sampling\\/5\\/documants\\/1746794371_88289bb7b615b42b9d9e.pdf\"}]', 'sadsd', '2025-05-24', 'Initial', 'sadad', 52, 52, 1, '2025-05-09 07:09:31', '2025-05-09 12:39:31'),
(6, 48, 'organisation', '2023-01-08 00:00:00', '{\"Corporate_Office\":null}', 24, 1, '', '0000-00-00', '', 'Internal', '', NULL, '', '0000-00-00', '', '', 88, 88, 1, '2025-06-02 04:35:10', '2025-06-02 10:05:10'),
(7, 51, 'organisation', '2024-01-22 00:00:00', '{\"Corporate_Office\":null}', 27, 1, '', '0000-00-00', '', 'Internal', '', NULL, '', '0000-00-00', '', '', 107, 107, 1, '2025-06-02 08:34:14', '2025-06-02 14:04:14'),
(8, 37, 'organisation', '2025-06-18 23:33:00', '{\"Corporate_Office\":null}', 0, 1, '', '0000-00-00', '', 'Internal', '', NULL, '', '0000-00-00', '', '', 49, 49, 1, '2025-06-04 16:03:48', '2025-06-04 16:03:48'),
(9, 48, 'organisation', '2025-06-03 09:10:00', '{\"factory_builidings\":[\"35\"]}', 24, 1, 'Adarva', '2025-06-01', 'Ganesh Lab', 'Internal', '', NULL, '', '0000-00-00', '', '', 88, 88, 1, '2025-06-05 12:36:59', '2025-06-05 12:36:59'),
(10, 38, 'organisation', '2025-07-01 10:54:00', '{\"Others\":\"Hyderabad \"}', 34, 1, 'Gunavardhan', '2025-07-05', 'NABL', 'Internal', 'Positive', '[{\"name\":\"Sample_Testing_Report\",\"date\":\"2025-07-05\",\"file\":\"uploads\\/entity_profile\\/38\\/Product_sampling\\/10\\/documants\\/1751694103_33c230b10ee364c11983.bin\"}]', 'NA', '2025-07-04', 'Initial', 'NA', 51, 51, 1, '2025-07-05 05:38:42', '2025-07-05 05:41:43');

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

--
-- Table structure for table `reference_documents`
--

CREATE TABLE `reference_documents` (
  `id` int(11) NOT NULL,
  `serial_number` varchar(255) NOT NULL,
  `standard` varchar(100) NOT NULL,
  `subject` varchar(100) NOT NULL,
  `document` text NOT NULL,
  `source` varchar(100) NOT NULL,
  `link` varchar(100) NOT NULL,
  `remark` varchar(250) NOT NULL,
  `entity_id` int(11) NOT NULL,
  `associated_by` text NOT NULL,
  `created_by` int(11) NOT NULL,
  `updated_by` int(11) NOT NULL,
  `status` int(11) NOT NULL DEFAULT 1,
  `created_at` timestamp NOT NULL DEFAULT current_timestamp(),
  `updated_at` datetime NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp()
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

--
-- Dumping data for table `reference_documents`
--

INSERT INTO `reference_documents` (`id`, `serial_number`, `standard`, `subject`, `document`, `source`, `link`, `remark`, `entity_id`, `associated_by`, `created_by`, `updated_by`, `status`, `created_at`, `updated_at`) VALUES
(1, 'S_N -47_1', 'Financial Documents', 'Cashier', '[{\"name\":\"sdsdsd\",\"date\":\"2025-08-04\",\"file\":\"uploads\\/entity_profile\\/64\\/Manuvals_and_documents\\/7\\/documants\\/1754577005_622130772a57cbe28e6f.pdf\"}]', 'Audit Books', 'http://10.132.50.138:80/KrishiGAP/Fpo/add_new_Referance_documents', 'Good', 47, 'fpo', 82, 82, 1, '2025-06-04 11:21:23', '2025-08-08 16:39:18'),
(2, 'S_N -54_2', 'GOOD AGRICULTURAL PRACTICES (GAP) CERTIFICATE', 'Crop Type: Fruits and Vegetables Certified Products: Mango, Tomato, Okra Area Certified: 15 Acres Pr', '[{\"name\":\"sdsdsd\",\"date\":\"2025-08-04\",\"file\":\"uploads\\/entity_profile\\/64\\/Manuvals_and_documents\\/7\\/documants\\/1754577005_622130772a57cbe28e6f.pdf\"}]', 'Na', 'https://www.google.com', 'NA', 54, 'fpo', 135, 135, 1, '2025-07-10 05:58:16', '2025-08-08 16:39:23'),
(3, 'S_N -64_3', 'fdsdsfsd', 'fdsfds', '[]', 'fsdfsdfsdf', 'https://admin.nativesparrow.com/krsihgap_html/fpo/add_new_farm_inspection%20copy.php', 'sdad', 64, 'fpo', 157, 157, 1, '2025-08-08 16:46:33', '2025-08-08 16:46:33'),
(4, 'S_N -54_4', 'GOOD AGRICULTURAL PRACTICES (GAP) CERTIFICATE', 'Crop Type: Fruits and Vegetables Certified Products: Mango, Tomato, Okra Area Certified: 15 Acres Pr', '[{\"name\":\"Good Agricultural Practices\",\"date\":\"2025-08-12\",\"file\":\"uploads\\/entity_profile\\/54\\/Manuvals_and_documents\\/4\\/documants\\/1754977529_283c9d60b36d10911cec.bin\"}]', 'Na', 'https://www.google.com', 'Na', 54, 'fpo', 135, 135, 1, '2025-08-12 05:45:29', '2025-08-12 05:45:29');

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

--
-- Table structure for table `register_log`
--

CREATE TABLE `register_log` (
  `id` int(11) NOT NULL,
  `user_id` int(11) NOT NULL,
  `user_table` varchar(255) NOT NULL,
  `name_of_the_user` text DEFAULT NULL,
  `created_at` timestamp NOT NULL DEFAULT current_timestamp()
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `register_log`
--

INSERT INTO `register_log` (`id`, `user_id`, `user_table`, `name_of_the_user`, `created_at`) VALUES
(1, 1, 'entity_profiles', 'Trace-Audit (Super Admin)', '2025-04-16 04:23:00'),
(2, 3, 'farmers', NULL, '2025-04-17 05:34:29'),
(3, 4, 'farmers', NULL, '2025-04-17 05:46:15'),
(4, 5, 'farmers', NULL, '2025-04-17 05:50:49'),
(5, 17, 'entity_profiles', 'fdg', '2025-04-18 07:25:11'),
(6, 43, 'Contact_Person', 'Mrs raja raja cholan raja  cholan', '2025-04-28 06:22:31'),
(7, 4, 'employee', 'Mrs ramachandran ws  selvam', '2025-04-28 06:32:07'),
(8, 19, 'entity_profiles', 'Native Sparrow Software Solutions', '2025-04-29 10:59:54'),
(9, 44, 'Contact_Person', 'Mr ramachandran  selvam', '2025-04-29 11:44:21'),
(10, 6, 'employee', 'Mrs ramachandran  selvam', '2025-04-29 13:50:07'),
(11, 7, 'employee', 'Mr ramachandran  selvam', '2025-04-29 14:03:53'),
(12, 8, 'employee', 'Ms ramachandran  selvam', '2025-04-29 14:05:08'),
(13, 9, 'employee', 'Mr fgfdgdf gfdgdfgfd 12', '2025-04-29 17:23:32'),
(14, 2, 'internal_inspectors', 'Mrs ramachandran  selvam', '2025-04-30 07:22:36'),
(15, 1, 'internal_auditors', 'Mr dfsdfdsfsdf sdfsdfds selvam', '2025-04-30 07:48:24'),
(16, 45, 'Contact_Person', 'Mr selvan sts tha', '2025-04-30 08:54:17'),
(17, 10, 'employee', 'Mr tha sel sga', '2025-04-30 11:21:43'),
(18, 14, 'subcontractors', 'Mr tham sel sga', '2025-04-30 12:35:30'),
(19, 3, 'internal_inspectors', 'Mr tha sel sga', '2025-04-30 12:40:52'),
(20, 23, 'entity_profiles', 'Test SanRD', '2025-04-30 14:10:11'),
(21, 46, 'Contact_Person', 'Mr Hari  Madhavan', '2025-04-30 14:13:31'),
(22, 24, 'entity_profiles', 'test', '2025-04-30 14:16:56'),
(23, 25, 'entity_profiles', 'test', '2025-04-30 14:48:03'),
(24, 27, 'entity_profiles', 'krishigap', '2025-05-01 06:22:22'),
(25, 28, 'entity_profiles', 'Krishigap Digital Solutions Pvt ltd', '2025-05-02 05:11:07'),
(26, 29, 'entity_profiles', 'Krishigap Digital Solutions Pvt ltd', '2025-05-02 06:02:43'),
(27, 30, 'entity_profiles', 'nmw', '2025-05-05 06:43:01'),
(28, 47, 'Contact_Person', 'Mr ramachandran  selvam', '2025-05-05 07:32:58'),
(29, 9, 'farmers', 'Mr ramachandran  selvam', '2025-05-06 14:22:00'),
(30, 10, 'farmers', 'Mrs ramachandran sdfsdfds selvam', '2025-05-06 14:22:15'),
(31, 12, 'employee', 'Mr thamilselvan sel shanmugavel', '2025-05-07 06:00:06'),
(32, 13, 'employee', 'Mr ramachandran  selvam', '2025-05-07 06:18:06'),
(33, 14, 'employee', 'Mrs ramachandran  selvam', '2025-05-07 06:22:03'),
(34, 16, 'employee', 'Mrs ramachandran  selvam', '2025-05-07 06:28:06'),
(35, 17, 'employee', 'Mrs ramachandran  selvam', '2025-05-07 06:32:49'),
(36, 18, 'employee', 'Mr ramachandran  selvam', '2025-05-07 10:05:36'),
(37, 32, 'entity_profiles', 'rakesh_fort', '2025-05-07 16:11:24'),
(38, 20, 'employee', 'Mr ramachandran s  selvam', '2025-05-08 02:57:05'),
(39, 48, 'Contact_Person', 'Mr rdfsd sdfsdf dsfdsf', '2025-05-08 07:47:35'),
(40, 49, 'Contact_Person', 'Mr rdfsd  selvam', '2025-05-08 07:59:47'),
(41, 50, 'Contact_Person', 'Mr rdfsd  Ramachandran', '2025-05-08 08:01:44'),
(42, 15, 'subcontractors', 'Mr ramachandran   selvam', '2025-05-08 08:54:53'),
(43, 4, 'internal_inspectors', 'Mrs ramachandran   selvam', '2025-05-08 09:20:22'),
(44, 2, 'internal_auditors', 'Mr ramachandran  fsdfsd sdfsdfsdf', '2025-05-08 09:38:34'),
(45, 33, 'entity_profiles', 'rakesh_for', '2025-05-08 11:23:18'),
(46, 51, 'Contact_Person', 'Mrs rdfsd sdfsdf selvam', '2025-05-08 11:54:36'),
(47, 34, 'entity_profiles', 'rakesh_fort', '2025-05-08 15:25:04'),
(48, 36, 'entity_profiles', 'SAN RnD', '2025-05-08 16:58:19'),
(49, 37, 'entity_profiles', 'Rama', '2025-05-08 17:03:54'),
(50, 52, 'Contact_Person', 'Mr Hari  Madhavan', '2025-05-08 17:10:37'),
(51, 38, 'entity_profiles', 'Krishigap Digital Solutions Pvt ltd', '2025-05-09 04:52:08'),
(52, 39, 'entity_profiles', 'Native Sparrow Software Solutions', '2025-05-09 06:01:38'),
(53, 53, 'Contact_Person', 'Mr rama  saran', '2025-05-09 06:46:42'),
(54, 40, 'entity_profiles', 'techno', '2025-05-09 09:11:47'),
(55, 54, 'Contact_Person', 'Mr ramachandran  selvam', '2025-05-09 10:18:49'),
(56, 21, 'employee', 'Mr tham sel sga', '2025-05-09 11:33:41'),
(57, 16, 'subcontractors', 'Mr shastika sri lakshmi', '2025-05-09 11:52:09'),
(58, 5, 'internal_inspectors', 'Mr dhaya sel lakshmi', '2025-05-09 12:30:58'),
(59, 3, 'internal_auditors', 'Mr ram sri lakshmi', '2025-05-09 12:36:17'),
(60, 55, 'Contact_Person', 'Mr rdfsd sdfsdf selvam', '2025-05-09 14:45:49'),
(61, 11, 'farmers', 'Mrs ramachandran   selvam', '2025-05-09 14:58:48'),
(62, 17, 'subcontractors', 'Mr ramachandran s fd dheena', '2025-05-11 16:17:03'),
(63, 13, 'farmers', 'fgfd', '2025-05-14 02:59:29'),
(64, 15, 'farmers', 'Mrs fgfd dgdfgdf gfdgdfg', '2025-05-14 03:05:19'),
(65, 43, 'entity_profiles', 'FreshHarvest Agro Foods Pvt. Ltd.', '2025-05-16 10:08:24'),
(66, 56, 'Contact_Person', 'Mr Rajeev  Kumar', '2025-05-16 10:13:26'),
(67, 23, 'employee', 'Ms Anita  Verma', '2025-05-17 13:28:21'),
(68, 24, 'employee', 'Mr Ramesh  Kumar', '2025-05-17 13:33:30'),
(69, 25, 'employee', 'Ms Sunita  Das', '2025-05-17 13:36:04'),
(70, 26, 'employee', 'Mr Gopal  Rao', '2025-05-17 13:38:16'),
(71, 16, 'farmers', 'Mr Dheenadhayalan efew perumal', '2025-05-19 05:56:01'),
(72, 44, 'entity_profiles', 'dheena', '2025-05-21 12:04:49'),
(73, 45, 'entity_profiles', 'rakesh_fortdfdfdf', '2025-05-23 09:20:51'),
(74, 6, 'internal_inspectors', 'Mr ramachandran  selvam', '2025-05-27 11:35:45'),
(75, 4, 'internal_auditors', 'Mr ramachandran  selvam', '2025-05-27 16:40:18'),
(76, 27, 'employee', ' ramachandran  selvam', '2025-05-27 16:41:58'),
(77, 57, 'Contact_Person', 'Mr rdfsd  selvam', '2025-05-29 10:55:39'),
(78, 28, 'employee', ' ramachandran   selvam', '2025-05-29 11:38:17'),
(79, 5, 'internal_auditors', 'Mr ramachandran   selvam', '2025-05-29 12:27:27'),
(80, 1, 'internal_auditors', 'Mr ramachandran   selvam', '2025-05-29 12:28:46'),
(81, 46, 'entity_profiles', 'ramachandran@webverkz.com', '2025-05-30 10:47:41'),
(82, 47, 'entity_profiles', 'Diligence Company', '2025-06-02 06:09:07'),
(83, 17, 'farmers', 'Mr Muthu  ', '2025-06-02 06:12:33'),
(84, 29, 'employee', 'Mr sdf sdf sdf', '2025-06-02 06:13:39'),
(85, 18, 'subcontractors', 'Mrs sdf sdf sdf', '2025-06-02 06:16:54'),
(86, 18, 'farmers', 'Mr Muthu  ', '2025-06-02 06:24:13'),
(87, 7, 'internal_inspectors', 'Mr sdf fdg dfg', '2025-06-02 07:22:12'),
(88, 48, 'entity_profiles', 'Highbrow Company', '2025-06-02 08:37:31'),
(89, 49, 'entity_profiles', 'dfdsf', '2025-06-02 09:42:36'),
(90, 20, 'farmers', 'Mr dfgdfg dfg dfg', '2025-06-02 09:48:54'),
(91, 30, 'employee', 'Mr Shiva  ', '2025-06-02 09:53:33'),
(92, 19, 'subcontractors', ' Manickam  ', '2025-06-02 09:55:30'),
(93, 8, 'internal_inspectors', ' Vetri  ', '2025-06-02 09:56:45'),
(94, 6, 'internal_auditors', 'Mr Vasanth  ', '2025-06-02 09:59:57'),
(95, 21, 'farmers', 'Mrs tyu ert tyu', '2025-06-02 10:15:20'),
(96, 31, 'employee', 'Mr dfgh fdg dfg', '2025-06-02 11:28:58'),
(97, 20, 'subcontractors', 'Mr Dheenadhayalan  perumal', '2025-06-02 11:31:43'),
(98, 9, 'internal_inspectors', 'Mr Dheenadhayalan ert perumal', '2025-06-02 11:33:58'),
(99, 7, 'internal_auditors', 'Mr Dheenadhayalan  perumal', '2025-06-02 11:35:41'),
(100, 50, 'entity_profiles', 'Limited Company', '2025-06-02 11:36:32'),
(101, 32, 'employee', 'Mr Kannan  ', '2025-06-02 13:42:47'),
(102, 22, 'farmers', ' ramachandran  selvam', '2025-06-02 13:43:30'),
(103, 21, 'subcontractors', 'Mr Rajan  ', '2025-06-02 13:43:47'),
(104, 10, 'internal_inspectors', 'Mr Prabakaran  ', '2025-06-02 13:44:50'),
(105, 8, 'internal_auditors', 'Mr Alwin  ', '2025-06-02 13:45:59'),
(106, 2, 'auditors', 'Mr Shakthivel  ', '2025-06-02 13:46:51'),
(107, 51, 'entity_profiles', 'Private Company', '2025-06-02 13:52:42'),
(108, 33, 'employee', 'Mr Mithran  ', '2025-06-02 13:59:57'),
(109, 22, 'subcontractors', 'Mr Ganesh  ', '2025-06-02 14:00:51'),
(110, 11, 'internal_inspectors', 'Mr Thanvanthri  ', '2025-06-02 14:01:51'),
(111, 9, 'internal_auditors', 'Mr Guru  ', '2025-06-02 14:03:04'),
(112, 23, 'farmers', 'Kumar', '2025-06-02 14:33:18'),
(113, 34, 'employee', 'Mr kathir  ', '2025-06-02 14:51:16'),
(114, 23, 'subcontractors', 'Mr Velan  ', '2025-06-02 14:52:05'),
(115, 12, 'internal_inspectors', 'Mr Sarvesh  ', '2025-06-02 14:53:03'),
(116, 10, 'internal_auditors', 'Mr Yash  ', '2025-06-02 14:54:28'),
(117, 24, 'subcontractors', 'Mr ramachandran  selvam', '2025-06-03 05:02:10'),
(118, 13, 'internal_inspectors', 'Mr ramachandran  selvam', '2025-06-03 05:15:59'),
(119, 35, 'employee', ' ramachandran  selvam', '2025-06-03 05:44:19'),
(120, 25, 'subcontractors', 'Mr ramachandran  selvam', '2025-06-03 05:44:37'),
(121, 58, 'Contact_Person', 'Mrs Shanthi  Ramachandran', '2025-06-03 16:25:42'),
(122, 59, 'Contact_Person', 'Mr Abdul  Azar', '2025-06-04 10:47:35'),
(123, 36, 'employee', 'Ms Shashmika  ', '2025-06-04 11:05:58'),
(124, 26, 'subcontractors', 'Ms Miya  ', '2025-06-04 11:06:43'),
(125, 14, 'internal_inspectors', 'Mr Arjun  ', '2025-06-04 11:09:08'),
(126, 11, 'internal_auditors', 'Ms Aishwarya  ', '2025-06-04 11:10:20'),
(127, 24, 'farmers', 'Mr ramachandran  selvam', '2025-06-04 16:12:59'),
(131, 57, 'entity_profiles', '12334444', '2025-06-16 07:33:31'),
(134, 27, 'farmers', 'test', '2025-06-16 13:41:24'),
(135, 54, 'entity_profiles', 'Krishigap Digital Solutions Pvt ltd', '2025-06-16 13:41:24'),
(136, 58, 'entity_profiles', 'TestFPO', '2025-06-17 06:44:33'),
(137, 53, 'entity_profiles', 'Krishigap Digital Solutions Pvt ltd', '2025-06-16 13:41:24'),
(138, 37, 'employee', 'Mr TaAdmin test test', '2025-06-17 08:06:16'),
(139, 28, 'farmers', 'Mr Anji Reddy Durgampudi', '2025-06-18 04:40:12'),
(140, 59, 'entity_profiles', '12334444', '2025-06-18 10:38:00'),
(141, 60, 'entity_profiles', '12334444', '2025-06-18 10:41:22'),
(142, 61, 'entity_profiles', '12334444', '2025-06-18 10:44:08'),
(143, 29, 'farmers', 'test', '2025-06-18 11:05:06'),
(144, 63, 'entity_profiles', 'Krishigap Digital Solutions Pvt ltd', '2025-06-24 04:48:04'),
(145, 30, 'farmers', 'Anji', '2025-06-24 11:16:44'),
(146, 60, 'Contact_Person', 'Mr Anji Reddy Durgampudi', '2025-07-07 05:20:02'),
(147, 31, 'farmers', 'Mr test test test', '2025-07-07 09:09:35'),
(148, 38, 'employee', 'Mr Anji Reddy Durgampudi', '2025-07-08 05:49:10'),
(149, 61, 'Contact_Person', 'Mr Anji Reddy Durgampudi', '2025-07-09 07:41:24'),
(150, 39, 'employee', 'Mr Anji Reddy Durgampudi', '2025-07-09 07:48:30'),
(151, 40, 'employee', 'Mr Anji Reddy Durgampudi', '2025-07-09 07:57:25'),
(152, 27, 'subcontractors', 'Mr Anji Reddy Durgampudi', '2025-07-09 09:33:41'),
(153, 15, 'internal_inspectors', 'Mr Anji Reddy Durgampudi', '2025-07-09 09:35:09'),
(154, 12, 'internal_auditors', 'Mr Anji Reddy Durgampudi', '2025-07-10 05:21:32'),
(155, 32, 'farmers', 'Mr Gadde Kiran  Ravi ', '2025-07-10 06:40:27'),
(156, 62, 'Contact_Person', 'Mr Ravi Reddy kiran', '2025-07-11 07:37:04'),
(157, 64, 'entity_profiles', 'rajarajan', '2025-07-17 06:16:40'),
(158, 28, 'subcontractors', 'Mr Anji Reddy Durgampudi', '2025-07-28 12:23:00');

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

--
-- Table structure for table `roles`
--

CREATE TABLE `roles` (
  `id` int(11) NOT NULL,
  `role_name` mediumtext NOT NULL,
  `remark` text NOT NULL,
  `associated_by` text NOT NULL,
  `entity_id` int(11) NOT NULL,
  `created_by` int(11) NOT NULL,
  `updated_by` int(11) NOT NULL,
  `status` int(11) NOT NULL DEFAULT 1,
  `created_at` timestamp NOT NULL DEFAULT current_timestamp(),
  `updated_at` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp()
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `roles`
--

INSERT INTO `roles` (`id`, `role_name`, `remark`, `associated_by`, `entity_id`, `created_by`, `updated_by`, `status`, `created_at`, `updated_at`) VALUES
(1, 'manager', '', '', 0, 0, 0, 1, '2025-04-14 04:12:12', '0000-00-00 00:00:00'),
(2, 'manager1', '', '', 0, 0, 0, 1, '2025-04-14 04:12:12', '0000-00-00 00:00:00'),
(3, 'manager', '                             1', 'organisation', 15, 6, 6, 1, '2025-04-29 06:26:21', '2025-04-29 11:18:31'),
(4, 'manager', '\n\n                             1', 'organisation', 15, 6, 6, 0, '2025-04-29 06:29:04', '2025-04-29 11:21:28'),
(5, 'manager', 'factory manager\r\n\r\n                             ', 'organisation', 19, 8, 8, 1, '2025-04-30 09:12:21', '2025-05-07 05:54:06'),
(6, 'Admin', 'Only for Organizational Admin\r\n                             ', 'organisation', 23, 20, 20, 1, '2025-04-30 14:24:22', '2025-05-08 16:27:48'),
(7, 'rajasekar', 'fdsfdsf', 'organisation', 15, 15, 6, 1, '2025-05-02 14:52:25', '2025-05-07 07:47:46'),
(8, 'rajasekar', 'gtrteter', 'fpo', 30, 27, 27, 1, '2025-05-05 07:32:37', '2025-05-05 07:32:37'),
(9, 'ndfdsf', 'dfsdf', 'organisation', 32, 37, 37, 1, '2025-05-07 16:22:42', '2025-05-07 16:22:42'),
(10, 'managa', '', 'organisation', 33, 45, 46, 1, '2025-05-08 11:53:48', '2025-05-08 11:57:09'),
(11, 'Admin', 'Organization Admin', 'organisation', 36, 48, 48, 1, '2025-05-08 17:05:12', '2025-05-08 17:05:12'),
(12, 'Factory and Warehouse Admin', 'For updating Warehouse and Factory details.', 'organisation', 36, 48, 48, 1, '2025-05-08 17:07:01', '2025-05-08 17:07:01'),
(13, 'HRAdmin', 'For Employees and other entries', 'organisation', 36, 48, 48, 1, '2025-05-08 17:08:12', '2025-05-08 17:08:12'),
(14, 'dhj', '', 'organisation', 37, 49, 49, 0, '2025-05-09 01:59:46', '2025-05-09 10:38:28'),
(15, 'Manager', 'for management', 'organisation', 39, 52, 52, 1, '2025-05-09 06:45:07', '2025-05-09 06:45:07'),
(16, 'admin', 'for all access', 'organisation', 39, 52, 52, 1, '2025-05-09 08:38:26', '2025-05-09 08:38:26'),
(17, 'dhj', '', 'organisation', 37, 49, 49, 0, '2025-05-09 10:37:17', '2025-05-09 10:41:24'),
(18, 'ddsfsdf', '', 'organisation', 37, 49, 49, 1, '2025-05-09 10:37:30', '2025-05-09 10:37:30'),
(19, 'manager', '', 'organisation', 37, 49, 49, 1, '2025-05-09 10:38:17', '2025-05-09 10:38:17'),
(20, 'fddsfdsfsd', '', 'organisation', 37, 49, 49, 1, '2025-05-09 10:41:37', '2025-05-09 10:41:37'),
(21, 'subcontractor', 'for sub contractor', 'organisation', 39, 52, 52, 1, '2025-05-09 11:49:21', '2025-05-09 11:49:21'),
(22, 'managa', 'fdfsds', 'fpo', 33, 45, 45, 1, '2025-05-09 14:45:00', '2025-05-27 11:59:08'),
(23, 'ClientContact', 'All Client Contacts will have this Role', 'organisation', 43, 65, 65, 1, '2025-05-16 10:10:06', '2025-05-16 10:10:06'),
(24, 'managa', 'fgdfgdff', 'fpo', 33, 45, 45, 1, '2025-05-23 11:11:19', '2025-05-27 11:54:56'),
(25, 'managads', '', 'fpo', 33, 45, 45, 1, '2025-05-23 11:12:51', '2025-05-23 11:12:51'),
(26, 'ndfdsf', '', 'fpo', 33, 45, 45, 0, '2025-05-23 11:14:51', '2025-05-23 11:26:13'),
(27, 'managads', '', 'fpo', 33, 45, 45, 1, '2025-05-23 11:25:08', '2025-05-23 11:25:08'),
(28, 'managads', '', 'fpo', 33, 45, 45, 1, '2025-05-23 11:25:47', '2025-05-23 11:25:59'),
(29, 'managa', '', 'audit_company', 45, 73, 73, 1, '2025-05-29 10:54:48', '2025-05-29 10:54:48'),
(30, 'admin', 'df', 'audit_company', 44, 72, 72, 1, '2025-06-02 06:09:50', '2025-06-02 06:10:09'),
(31, 'Executive', 'Operation Executive', 'fpo', 47, 82, 82, 1, '2025-06-02 06:10:57', '2025-06-02 06:10:57'),
(32, 'Executive', 'Operation Executive', 'organisation', 48, 88, 88, 1, '2025-06-02 08:39:01', '2025-06-02 08:39:01'),
(33, 'admin', 'fjhl', 'fpo', 49, 89, 89, 1, '2025-06-02 09:43:42', '2025-06-02 09:43:42'),
(34, 'Executive', 'Operation Executive', 'audit_company', 50, 100, 100, 1, '2025-06-02 13:41:42', '2025-06-02 13:41:42'),
(35, 'Executive', 'Operating Executive', 'organisation', 51, 107, 107, 1, '2025-06-02 13:53:56', '2025-06-02 13:53:56'),
(36, 'fdfdfd', '', 'audit_company', 45, 73, 73, 1, '2025-06-03 05:43:54', '2025-06-03 05:43:54'),
(37, 'Purchase Executives', 'Purchasing', 'organisation', 48, 88, 88, 0, '2025-06-04 10:30:41', '2025-06-04 16:01:57'),
(38, 'tests', 'test', 'app_user', 1, 1, 1, 0, '2025-06-12 13:19:53', '2025-06-12 18:51:10'),
(39, 'Admin', 'admin', 'app_user', 1, 1, 138, 0, '2025-06-17 07:32:18', '2025-06-17 15:50:56'),
(40, 'Admin', 'Admin', 'app_user', 1, 138, 1, 1, '2025-06-17 10:21:20', '2025-07-09 12:45:56'),
(41, 'Manager', 'Na', 'organisation', 38, 38, 38, 1, '2025-07-07 05:18:37', '2025-07-07 10:48:37'),
(42, 'Ass Manager', 'Na', 'app_user', 1, 1, 1, 1, '2025-07-09 05:06:26', '2025-07-09 12:45:43'),
(43, 'CEO', 'Na', 'app_user', 1, 1, 1, 1, '2025-07-09 06:53:09', '2025-07-09 12:45:27'),
(44, 'Manager', 'Na', 'fpo', 54, 54, 54, 1, '2025-07-09 07:39:14', '2025-07-09 13:09:14'),
(45, 'Ass Manager', 'Na', 'fpo', 54, 54, 54, 1, '2025-07-09 07:39:33', '2025-07-09 13:09:33'),
(46, 'CEO', 'Na', 'fpo', 54, 54, 54, 1, '2025-07-09 07:39:49', '2025-07-09 13:09:49');

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

--
-- Table structure for table `skills`
--

CREATE TABLE `skills` (
  `id` int(11) NOT NULL,
  `category_name` varchar(30) DEFAULT NULL,
  `required_skills` text DEFAULT NULL,
  `associated_by` text DEFAULT NULL,
  `entity_id` int(11) DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT current_timestamp(),
  `created_by` int(11) DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT current_timestamp(),
  `updated_by` int(11) DEFAULT NULL,
  `status` int(11) DEFAULT 1
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `skills`
--

INSERT INTO `skills` (`id`, `category_name`, `required_skills`, `associated_by`, `entity_id`, `created_at`, `created_by`, `updated_at`, `updated_by`, `status`) VALUES
(2, 'rajaram', 'gfgdf,fgfdgfd,fdgfdgdf', 'organisation', 15, '2025-04-19 23:45:15', 1, '2025-04-19 23:45:15', 1, 1),
(3, 'sts', 'diploma,phd', 'organisation', 19, '2025-04-30 03:36:34', 8, '2025-04-30 03:36:34', 8, 1),
(4, 'Test', 'Test1,Test2', 'organisation', 23, '2025-04-30 08:51:19', 20, '2025-04-30 08:51:19', 20, 1),
(5, 'FullTest', 'FullTest1,FullTest2', 'organisation', 23, '2025-04-30 08:51:41', 20, '2025-04-30 08:51:41', 20, 1),
(6, 'test', 'tets', 'organisation', 25, '2025-04-30 09:23:54', 23, '2025-04-30 15:24:56', 23, 0),
(7, 'test', 'qqqq,qqww', 'organisation', 25, '2025-04-30 09:41:33', 23, '2025-04-30 15:12:47', 23, 1),
(8, 'reweww', 'eee,eeee', 'organisation', 32, '2025-05-07 10:54:14', 37, '2025-05-07 10:54:14', 37, 1),
(9, 'rajaram4rer', 'jhjh', 'organisation', 37, '2025-05-09 05:15:46', 49, '2025-05-18 11:36:59', 49, 1),
(10, 'internal ', 'diploma,phd,master', 'organisation', 39, '2025-05-09 05:58:44', 52, '2025-05-09 05:58:44', 52, 1),
(11, 'reweww', 'dfsd,dfsdfsd,sdfsdfsd,dsfds', 'fpo', 33, '2025-05-09 09:14:06', 45, '2025-05-09 09:14:06', 45, 1),
(12, 'Test', 'Test', 'organisation', 43, '2025-05-17 07:50:07', 65, '2025-05-17 07:50:07', 65, 1),
(13, 'Farm Operations & Production', 'Crop Cultivation Techniques,Soil Health & Fertilization,Pest & Disease Management,Irrigation & Water Management,Organic & Sustainable Farming,Harvesting & Post-Harvest Handling', 'organisation', 43, '2025-05-17 08:46:04', 65, '2025-05-17 08:46:04', 65, 1),
(14, 'Supply Chain & Logistics', 'Inventory & Stock Management,Cold Storage Handling,Transportation & Distribution,Warehouse Management,Demand Forecasting', 'organisation', 43, '2025-05-17 08:46:56', 65, '2025-05-17 08:46:56', 65, 1),
(15, 'Quality Control & Compliance', 'Food Safety Standards (GAP,HACCP),Quality Inspection & Testing,Traceability & Record-Keeping,Regulatory Compliance', 'organisation', 43, '2025-05-17 08:47:45', 65, '2025-05-17 08:47:45', 65, 1),
(16, 'Sales & Marketing', 'Market Research & Analysis,Customer Relationship Management (CRM),Digital & Traditional Marketing,Pricing & Negotiation', 'organisation', 43, '2025-05-17 08:48:28', 65, '2025-05-17 08:48:28', 65, 1),
(17, 'Finance & Administration', 'Budgeting & Cost Control,Financial Reporting,Grants & Subsidy Management,Payroll & HR Administration', 'organisation', 43, '2025-05-17 08:49:08', 65, '2025-05-17 08:49:08', 65, 1),
(18, 'Technology & Innovation', 'Use of AgriTech Solutions (IoT,AI,Drones),Data Analytics & Farm Management Software,Precision Farming Techniques', 'organisation', 43, '2025-05-17 08:50:06', 65, '2025-05-17 08:50:06', 65, 1),
(19, 'rajaram4rer', 'fgfdg,dfgdfgdf,gdfgdf,5656', 'fpo', 33, '2025-05-27 11:09:34', 45, '2025-05-27 11:09:34', 45, 1),
(20, 'reweww', 'rtre,erter,retert', 'audit_company', 45, '2025-05-29 05:25:05', 73, '2025-05-29 05:25:05', 73, 1),
(21, 'computer', 'ms,photoshop,js,asr', 'audit_company', 44, '2025-06-02 00:36:47', 72, '2025-06-02 06:08:57', 72, 0),
(22, 'farming', 'sdf', 'audit_company', 44, '2025-06-02 00:37:33', 72, '2025-06-02 00:37:33', 72, 1),
(23, 'Anchoring', 'Speech', 'fpo', 47, '2025-06-02 00:39:59', 82, '2025-06-02 00:39:59', 82, 1),
(24, 'Admin', 'speach,communication', 'organisation', 48, '2025-06-02 03:08:16', 88, '2025-06-09 15:25:12', 88, 1),
(25, 'vcbc', 'cvbcvb,bvcb', 'fpo', 49, '2025-06-02 04:13:14', 89, '2025-06-02 04:13:14', 89, 1),
(26, 'vcbvc', 'vcbcv,cvbcv,cvb,cv', 'fpo', 49, '2025-06-02 04:13:25', 89, '2025-06-02 04:13:25', 89, 1),
(27, 'Anchoring', 'speach', 'audit_company', 50, '2025-06-02 08:11:04', 100, '2025-06-02 08:11:04', 100, 1),
(28, 'Anchoring', 'speach', 'organisation', 51, '2025-06-02 08:23:14', 107, '2025-06-02 08:23:14', 107, 1),
(29, 'fsddsf', 'dsfsdf,fsdf', 'audit_company', 45, '2025-06-03 00:13:29', 73, '2025-06-03 00:13:29', 73, 1),
(30, 'Operations', 'Client Management', 'organisation', 48, '2025-06-09 09:55:40', 88, '2025-06-09 09:55:40', 88, 1),
(31, 'Test', 'test 1', 'app_user', 1, '2025-06-12 12:41:41', 1, '2025-06-12 18:12:03', 1, 0),
(32, 'Admin', 'admin', 'app_user', 1, '2025-06-17 07:31:31', 1, '2025-06-17 07:31:31', 1, 1),
(33, 'Audit ', 'Test', 'audit_company', 63, '2025-06-24 04:50:55', 144, '2025-06-24 04:50:55', 144, 1),
(34, 'Audit ', 'test', 'fpo', 54, '2025-06-24 05:56:43', 135, '2025-07-29 17:26:25', 135, 1),
(35, 'Krishigap', 'QCQ Manager', 'organisation', 38, '2025-07-05 04:32:15', 51, '2025-07-05 04:32:15', 51, 1),
(36, 'Krishigap', 'Skilled in data analysis and use of quality tools (5S,Six Sigma,SPC,Pareto,Fishbone,etc.)', 'organisation', 38, '2025-07-05 05:29:04', 51, '2025-07-05 05:29:04', 51, 1),
(37, 'Organic Inputs', 'compost,vermicompost,farmyard manure,green manure', 'fpo', 54, '2025-07-10 04:40:09', 135, '2025-07-29 17:26:32', 135, 1),
(38, 'Pest Management', 'Ability to recognize insect pests,fungi,bacteria,and viral diseases affecting crops.', 'fpo', 54, '2025-07-10 04:40:51', 135, '2025-07-29 17:26:38', 135, 1);

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

--
-- Table structure for table `soil_management`
--

CREATE TABLE `soil_management` (
  `id` int(11) NOT NULL,
  `farmer_id` int(11) DEFAULT NULL,
  `farm_id` int(11) DEFAULT NULL,
  `soil_type` varchar(50) DEFAULT NULL,
  `soil_conservation_practices` text DEFAULT NULL,
  `soil_contamination_control` text DEFAULT NULL,
  `soil_erosion_prevention` text DEFAULT NULL,
  `remark` text DEFAULT NULL,
  `created_at` datetime DEFAULT current_timestamp(),
  `updated_at` datetime DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `season` varchar(255) DEFAULT NULL,
  `year` int(11) DEFAULT NULL,
  `status` int(11) DEFAULT 1,
  `associated_by` varchar(30) DEFAULT NULL,
  `entity_id` int(11) DEFAULT NULL,
  `created_by` int(11) DEFAULT NULL,
  `updated_by` int(11) DEFAULT NULL,
  `document` text DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `soil_management`
--

INSERT INTO `soil_management` (`id`, `farmer_id`, `farm_id`, `soil_type`, `soil_conservation_practices`, `soil_contamination_control`, `soil_erosion_prevention`, `remark`, `created_at`, `updated_at`, `season`, `year`, `status`, `associated_by`, `entity_id`, `created_by`, `updated_by`, `document`) VALUES
(1, 11, 2, 'Peaty', 'ewr45555', '    fdgdfgdfg', '    fdgdf', '    gdfgfdg', '2025-05-10 08:17:44', '2025-05-29 22:15:10', NULL, NULL, 0, 'fpo', 33, 45, 45, '[{\"name\":\"dfdsfsdfsd\",\"date\":\"2025-05-20\",\"file\":\"uploads\\/entity_profile\\/33\\/soil_management\\/1\\/documants\\/1746867946_e306d07783cb1cb2e3bb.jpg\"}]'),
(2, 0, 4, 'Sandy', ' dsf', ' dsf', ' dsf', ' dsf', '2025-05-20 05:53:08', '2025-05-20 11:52:08', NULL, NULL, 0, 'farmers', 16, 71, 71, '[{\"name\":\"fdg\",\"date\":\"2025-05-13\",\"file\":\"uploads\\/entity_profile\\/16\\/soil_management\\/2\\/documants\\/1747720388_43b4e1961fe043582c29.pdf\"}]'),
(3, 16, 5, 'Loamy', '   dfg', '   dfg', '   fdg', '   dfgsf', '2025-05-20 06:22:29', '2025-05-20 23:43:11', NULL, NULL, 0, 'farmers', 16, 71, 71, '[{\"name\":\"dfg\",\"date\":\"2025-05-07\",\"file\":\"uploads\\/entity_profile\\/16\\/soil_management\\/3\\/documants\\/1747722149_4653e63855396937f106.pdf\"}]'),
(4, 16, 5, 'Peaty', '  dgf', '  dfg', '  dfg', '  dg', '2025-05-20 10:02:38', '2025-05-20 15:37:43', NULL, NULL, 0, 'farmers', 16, 71, 71, '[{\"name\":\"fdg\",\"date\":\"2025-05-22\",\"file\":\"uploads\\/entity_profile\\/16\\/soil_management\\/4\\/documants\\/1747735358_bfaaa22f5f94b5fc80bd.pdf\"}]'),
(5, 16, 6, 'Loamy', 'ERT', 'RTRTY', 'RT', 'TRY', '2025-05-20 12:09:17', '2025-05-20 12:09:17', NULL, NULL, 1, 'farmers', 16, 71, 71, '[{\"name\":\"RTY\",\"date\":\"2025-05-23\",\"file\":\"uploads\\/entity_profile\\/16\\/soil_management\\/5\\/documants\\/1747742957_2d621587281489b7dbbf.pdf\"}]'),
(6, 16, 6, 'Loamy', 'jkh', 'jhgj', 'fghjf', 'sdf', '2025-05-20 18:13:03', '2025-05-20 18:13:03', NULL, NULL, 1, 'farmers', 16, 71, 71, '[{\"name\":\"fdg\",\"date\":\"2025-05-23\",\"file\":\"uploads\\/entity_profile\\/16\\/soil_management\\/6\\/documants\\/1747764783_c726f9d42f192d74e6a8.pdf\"}]'),
(7, 15, 10, 'Peaty', ' ', ' ', ' ', ' ', '2025-05-29 02:22:25', '2025-05-29 02:23:38', NULL, 2025, 1, 'farmers', 15, 64, 64, '[]'),
(8, 11, 12, 'Peaty', 'fgdf', 'gfdgdf', 'gdfg', 'dfgdfgdf', '2025-05-29 16:36:54', '2025-05-29 16:36:55', 'Kharif', 2008, 1, 'farmers', 11, 61, 61, '[{\"name\":\"dfgdfg\",\"date\":\"2025-05-15\",\"file\":\"uploads\\/entity_profile\\/11\\/soil_management\\/8\\/documants\\/1748536615_e5904e070f7d231163fe.jpg\"}]'),
(9, 11, 3, 'Chalky', '  ', '  ', '  ', '  ', '2025-05-30 08:40:05', '2025-05-30 08:42:10', NULL, 2025, 1, 'fpo', 33, 45, 61, '[]'),
(10, 20, 13, 'Chalky', ' ertret', ' retret', ' ertertert', ' ertert', '2025-06-02 11:06:27', '2025-06-02 11:06:34', 'Zaid', 2025, 1, 'fpo', 49, 89, 89, '[{\"name\":\"dfg\",\"date\":\"2025-06-01\",\"file\":\"uploads\\/entity_profile\\/49\\/soil_management\\/10\\/documants\\/1748862387_338e8b32d7918932f911.pdf\"}]'),
(11, 17, 14, 'Chalky', ' ', ' ', ' ', ' good', '2025-06-02 14:17:30', '2025-06-03 05:28:21', 'Kharif', 2025, 1, 'fpo', 47, 82, 82, '[{\"name\":\"Agreement\",\"date\":\"2025-06-02\",\"file\":\"uploads\\/entity_profile\\/47\\/soil_management\\/11\\/documants\\/1748873850_b7a226ba5a3431f50097.pdf\"}]'),
(12, 23, 16, 'Chalky', '', '', '', 'Good ', '2025-06-03 05:39:24', '2025-06-03 05:39:24', 'Kharif', 2025, 1, 'farmers', 23, 112, 112, '[{\"name\":\"Agreement\",\"date\":\"2025-06-03\",\"file\":\"uploads\\/entity_profile\\/23\\/soil_management\\/12\\/documants\\/1748929164_b999ca1f76aa734f6b11.pdf\"}]'),
(13, 17, 14, 'Chalky', '', '', '', 'Good', '2025-06-04 10:59:36', '2025-06-04 10:59:36', 'Rabi', 2025, 1, 'fpo', 47, 82, 82, '[{\"name\":\"Agreement\",\"date\":\"2025-06-02\",\"file\":\"uploads\\/entity_profile\\/47\\/soil_management\\/13\\/documants\\/1749034776_382aba97329ae13a3115.pdf\"}]'),
(14, 28, 18, 'Loamy', ' Na', ' Na', ' Na', ' Na', '2025-06-18 08:29:56', '2025-07-29 07:39:32', 'Kharif', 2025, 1, 'fpo', 54, 135, 135, '[{\"name\":\"Chilli\",\"date\":\"2025-06-02\",\"file\":\"uploads\\/entity_profile\\/54\\/soil_management\\/14\\/documants\\/1750235396_55fd5f41e7e43011b00c.pdf\"}]'),
(15, 32, 21, 'Peaty', ' Regular pH and organic matter tests\r\n\r\nWater table depth tracking (especially during monsoon)\r\n\r\nPeat thickness and subsidence checks in long-term farming', ' To prevent, monitor, and remediate contamination caused by agrochemicals, waste, industrial runoff, or improper farming practices.', ' ', ' Na', '2025-07-10 06:48:48', '2025-07-29 07:39:25', 'Rabi', 2025, 1, 'fpo', 54, 135, 135, '[]'),
(16, 30, 24, 'Sandy', 'Soil conservation practices encompass a range of techniques to protect soil from erosion, maintain fertility, and ensure its long-term productivity. Below is a sample list and brief explanation of common soil conservation practices:\r\n\r\n- **Contour Plowing**: Plowing fields along the natural contours of the land rather than up and down slopes. This slows water runoff and minimizes erosion[5][6][1].\r\n- **Crop Rotation**: Alternating the types of crops grown on a field across seasons or years to prevent depletion of particular nutrients and to break pest and disease cycles[5][4][3].\r\n- **Strip Cropping**: Planting different crops in alternating strips along the land contour, which helps form natural barriers to slow water and prevent erosion[5].\r\n- **Cover Cropping**: Growing cover crops (like clover or rye) in between cash crops to protect and enhance soil by reducing erosion, retaining moisture, and adding organic matter[1][3][5][4].\r\n- **Terrace Farming**: Shaping hilly or sloped land into a series of flat stepped platforms to reduce runoff and soil loss[1][5][4].\r\n- **Grassed Waterways**: Constructing or maintaining natural or artificial channels with grass cover to safely transport surface water without causing soil erosion[1][5][6].\r\n- **Conservation Tillage (including No-till and Reduced Tillage)**: Minimizing disturbance of the soil during planting to keep it covered by crop residue, thus reducing the risk of erosion and compaction while maintaining organic matter[1][4][6][3].\r\n- **Agroforestry and Windbreaks**: Integrating trees and shrubs into crop and livestock systems to minimize wind and water erosion while improving biodiversity and productivity[5][4].\r\n- **Buffer Strips**: Planting vegetative strips (trees, shrubs, grasses) along water bodies to intercept pollutants and reduce runoff[1][6].\r\n- **Mulching**: Applying a layer of organic or inorganic material to the soil surface to conserve moisture, suppress weeds, and reduce erosion[3][4].\r\n- **Bank Stabilization**: Using techniques like planting deep-rooted vegetation or placing stones (riprap) to prevent erosion along riverbanks and streams[1].\r\n- **Constructing Dams and Check Dams**: Building small structures to slow water flow and capture sediment in gullies or streams[7].\r\n\r\nThese practices are often combined and tailored to specific local land conditions to maximize effectiveness in conserving and enhancing soil resources[1][5][3][4].\r\n\r\n[1] https://eos.com/blog/soil-conservation/\r\n[2] https://geopard.tech/blog/why-is-soil-conservation-important/\r\n[3] https://www.perennia.ca/wp-content/uploads/2018/04/soil-conservation-and-practice.pdf\r\n[4] https://vlsci.com/blog/soil-conservation-methods/\r\n[5] https://www.ck12.org/flexi/earth-science/Natural-Resource-Conservation/name-and-describe-the-8-soil-conservation-practices/\r\n[6] https://www.johnstonnc.gov/swc/content.cfm?pageid=wisc\r\n[7] https://www.vedantu.com/question-answer/list-out-three-methods-of-soil-conservation-5b838cd7e4b0a50233a987ca\r\n[8] https://en.wikipedia.org/wiki/Soil_conservation\r\n[9] https://www.saskatchewan.ca/business/agriculture-natural-resources-and-industry/agribusiness-farmers-and-ranchers/crops-and-irrigation/organic-crops/organic-crop-production-soil-conservation-practices', 'Soil conservation practices encompass a range of techniques to protect soil from erosion, maintain fertility, and ensure its long-term productivity. Below is a sample list and brief explanation of common soil conservation practices:\r\n\r\n- **Contour Plowing**: Plowing fields along the natural contours of the land rather than up and down slopes. This slows water runoff and minimizes erosion[5][6][1].\r\n- **Crop Rotation**: Alternating the types of crops grown on a field across seasons or years to prevent depletion of particular nutrients and to break pest and disease cycles[5][4][3].\r\n- **Strip Cropping**: Planting different crops in alternating strips along the land contour, which helps form natural barriers to slow water and prevent erosion[5].\r\n- **Cover Cropping**: Growing cover crops (like clover or rye) in between cash crops to protect and enhance soil by reducing erosion, retaining moisture, and adding organic matter[1][3][5][4].\r\n- **Terrace Farming**: Shaping hilly or sloped land into a series of flat stepped platforms to reduce runoff and soil loss[1][5][4].\r\n- **Grassed Waterways**: Constructing or maintaining natural or artificial channels with grass cover to safely transport surface water without causing soil erosion[1][5][6].\r\n- **Conservation Tillage (including No-till and Reduced Tillage)**: Minimizing disturbance of the soil during planting to keep it covered by crop residue, thus reducing the risk of erosion and compaction while maintaining organic matter[1][4][6][3].\r\n- **Agroforestry and Windbreaks**: Integrating trees and shrubs into crop and livestock systems to minimize wind and water erosion while improving biodiversity and productivity[5][4].\r\n- **Buffer Strips**: Planting vegetative strips (trees, shrubs, grasses) along water bodies to intercept pollutants and reduce runoff[1][6].\r\n- **Mulching**: Applying a layer of organic or inorganic material to the soil surface to conserve moisture, suppress weeds, and reduce erosion[3][4].\r\n- **Bank Stabilization**: Using techniques like planting deep-rooted vegetation or placing stones (riprap) to prevent erosion along riverbanks and streams[1].\r\n- **Constructing Dams and Check Dams**: Building small structures to slow water flow and capture sediment in gullies or streams[7].\r\n\r\nThese practices are often combined and tailored to specific local land conditions to maximize effectiveness in conserving and enhancing soil resources[1][5][3][4].\r\n\r\n[1] https://eos.com/blog/soil-conservation/\r\n[2] https://geopard.tech/blog/why-is-soil-conservation-important/\r\n[3] https://www.perennia.ca/wp-content/uploads/2018/04/soil-conservation-and-practice.pdf\r\n[4] https://vlsci.com/blog/soil-conservation-methods/\r\n[5] https://www.ck12.org/flexi/earth-science/Natural-Resource-Conservation/name-and-describe-the-8-soil-conservation-practices/\r\n[6] https://www.johnstonnc.gov/swc/content.cfm?pageid=wisc\r\n[7] https://www.vedantu.com/question-answer/list-out-three-methods-of-soil-conservation-5b838cd7e4b0a50233a987ca\r\n[8] https://en.wikipedia.org/wiki/Soil_conservation\r\n[9] https://www.saskatchewan.ca/business/agriculture-natural-resources-and-industry/agribusiness-farmers-and-ranchers/crops-and-irrigation/organic-crops/organic-crop-production-soil-conservation-practices', 'Soil conservation practices encompass a range of techniques to protect soil from erosion, maintain fertility, and ensure its long-term productivity. Below is a sample list and brief explanation of common soil conservation practices:\r\n\r\n- **Contour Plowing**: Plowing fields along the natural contours of the land rather than up and down slopes. This slows water runoff and minimizes erosion[5][6][1].\r\n- **Crop Rotation**: Alternating the types of crops grown on a field across seasons or years to prevent depletion of particular nutrients and to break pest and disease cycles[5][4][3].\r\n- **Strip Cropping**: Planting different crops in alternating strips along the land contour, which helps form natural barriers to slow water and prevent erosion[5].\r\n- **Cover Cropping**: Growing cover crops (like clover or rye) in between cash crops to protect and enhance soil by reducing erosion, retaining moisture, and adding organic matter[1][3][5][4].\r\n- **Terrace Farming**: Shaping hilly or sloped land into a series of flat stepped platforms to reduce runoff and soil loss[1][5][4].\r\n- **Grassed Waterways**: Constructing or maintaining natural or artificial channels with grass cover to safely transport surface water without causing soil erosion[1][5][6].\r\n- **Conservation Tillage (including No-till and Reduced Tillage)**: Minimizing disturbance of the soil during planting to keep it covered by crop residue, thus reducing the risk of erosion and compaction while maintaining organic matter[1][4][6][3].\r\n- **Agroforestry and Windbreaks**: Integrating trees and shrubs into crop and livestock systems to minimize wind and water erosion while improving biodiversity and productivity[5][4].\r\n- **Buffer Strips**: Planting vegetative strips (trees, shrubs, grasses) along water bodies to intercept pollutants and reduce runoff[1][6].\r\n- **Mulching**: Applying a layer of organic or inorganic material to the soil surface to conserve moisture, suppress weeds, and reduce erosion[3][4].\r\n- **Bank Stabilization**: Using techniques like planting deep-rooted vegetation or placing stones (riprap) to prevent erosion along riverbanks and streams[1].\r\n- **Constructing Dams and Check Dams**: Building small structures to slow water flow and capture sediment in gullies or streams[7].\r\n\r\nThese practices are often combined and tailored to specific local land conditions to maximize effectiveness in conserving and enhancing soil resources[1][5][3][4].\r\n\r\n[1] https://eos.com/blog/soil-conservation/\r\n[2] https://geopard.tech/blog/why-is-soil-conservation-important/\r\n[3] https://www.perennia.ca/wp-content/uploads/2018/04/soil-conservation-and-practice.pdf\r\n[4] https://vlsci.com/blog/soil-conservation-methods/\r\n[5] https://www.ck12.org/flexi/earth-science/Natural-Resource-Conservation/name-and-describe-the-8-soil-conservation-practices/\r\n[6] https://www.johnstonnc.gov/swc/content.cfm?pageid=wisc\r\n[7] https://www.vedantu.com/question-answer/list-out-three-methods-of-soil-conservation-5b838cd7e4b0a50233a987ca\r\n[8] https://en.wikipedia.org/wiki/Soil_conservation\r\n[9] https://www.saskatchewan.ca/business/agriculture-natural-resources-and-industry/agribusiness-farmers-and-ranchers/crops-and-irrigation/organic-crops/organic-crop-production-soil-conservation-practices', 'Na', '2025-08-01 06:44:18', '2025-08-01 06:44:19', 'Kharif', 2008, 1, 'farmers', 30, 145, 145, '[{\"name\":\"Soil \",\"date\":\"2025-07-01\",\"file\":\"uploads\\/entity_profile\\/30\\/soil_management\\/16\\/documants\\/1754030659_0912b398ebe581c593e3.pdf\"}]');

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

--
-- Table structure for table `standerd_certificates`
--

CREATE TABLE `standerd_certificates` (
  `id` int(11) NOT NULL,
  `certificate_name` varchar(100) DEFAULT NULL,
  `certificate_issue_date` date DEFAULT NULL,
  `certificate_expiry_date` date DEFAULT NULL,
  `certificate_renewal_date` date DEFAULT NULL,
  `certificate_upload` text DEFAULT NULL,
  `certificate_body_name` varchar(255) DEFAULT NULL,
  `certificate_category` enum('Initial','Surveillance','Renewal') DEFAULT NULL,
  `year` year(4) DEFAULT NULL,
  `remark` text NOT NULL,
  `entity_id` int(11) DEFAULT NULL,
  `associated_by` text DEFAULT NULL,
  `created_by` int(11) DEFAULT NULL,
  `updated_by` int(11) DEFAULT NULL,
  `status` int(11) NOT NULL DEFAULT 1,
  `created_at` timestamp NOT NULL DEFAULT current_timestamp(),
  `updated_at` datetime NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp()
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `standerd_certificates`
--

INSERT INTO `standerd_certificates` (`id`, `certificate_name`, `certificate_issue_date`, `certificate_expiry_date`, `certificate_renewal_date`, `certificate_upload`, `certificate_body_name`, `certificate_category`, `year`, `remark`, `entity_id`, `associated_by`, `created_by`, `updated_by`, `status`, `created_at`, `updated_at`) VALUES
(1, 'fdsfsdfdsfds', '2025-04-16', '2025-04-15', '2025-04-24', '[{\"name\":\"dsfsdfsdf\",\"date\":\"2025-05-03\",\"file\":\"uploads\\/entity_profile\\/15\\/standerd_cirtificate\\/1\\/documants\\/1745816357_b8bea91d8c3f7e66c0e4.jpg\"}]', 'gdfgdfgddfgf', 'Initial', '2020', 'fdsfdsfsdfds\r\n\r\n                             ', 15, 'organisation', 1, 1, 0, '2025-04-27 23:29:17', '2025-04-28 11:00:19'),
(2, 'dfss', '2025-04-24', '2025-05-09', '2025-04-30', '[{\"name\":\"ssa\",\"date\":\"2025-05-08\",\"file\":\"uploads\\/entity_profile\\/19\\/standerd_cirtificate\\/2\\/documants\\/1746017641_174f9919c53af2a17cde.jpeg\"}]', 'dsfsf', 'Surveillance', '2020', 'fdfdgf\r\n\r\n                             ', 19, 'organisation', 8, 8, 1, '2025-04-30 07:24:01', '2025-04-30 12:54:01'),
(3, 'Name', '2022-02-02', '2027-02-02', '2026-02-02', '[{\"name\":\"NameDoc\",\"date\":\"2023-02-02\",\"file\":\"uploads\\/entity_profile\\/23\\/standerd_cirtificate\\/3\\/documants\\/1746031641_d202dc9f1042d8a3f533.pdf\"}]', 'Name', 'Surveillance', '2024', 'Remarks\r\n\r\n                             ', 23, 'organisation', 20, 20, 1, '2025-04-30 11:17:21', '2025-04-30 16:47:21'),
(4, 'dfss', '2025-05-07', '2025-05-08', '2025-05-09', '[{\"name\":\"sadsad\",\"date\":\"2025-05-08\",\"file\":\"uploads\\/entity_profile\\/39\\/standerd_cirtificate\\/4\\/documants\\/1746795004_66e385a8dcec247f7f5e.pdf\"}]', 'dsfsf', 'Initial', '2024', 'dsadsad', 39, 'organisation', 52, 52, 1, '2025-05-09 07:20:04', '2025-05-09 12:50:04'),
(5, 'Good Agricultural Practices', '2025-05-20', '2026-05-19', '2026-04-30', '[{\"name\":\"Good Agricultural Practices\",\"date\":\"2025-05-20\",\"file\":\"uploads\\/entity_profile\\/43\\/standerd_cirtificate\\/5\\/documants\\/1747716974_877e9afd19d171ea9e2e.pdf\"}]', 'QCI', 'Initial', '2025', 'Testing ', 43, 'organisation', 65, 65, 1, '2025-05-19 23:26:14', '2025-05-20 04:56:14'),
(6, 'Good Agricultural Practices', '2025-05-20', '2026-05-19', '2026-05-18', '[{\"name\":\"Good Agricultural Practices\",\"date\":\"2025-05-20\",\"file\":\"uploads\\/entity_profile\\/43\\/standerd_cirtificate\\/6\\/documants\\/1747717048_31fba65a8b2e5464ae05.pdf\"}]', 'QCI', 'Surveillance', '2025', 'Testing ', 43, 'organisation', 65, 65, 1, '2025-05-19 23:27:28', '2025-05-20 04:57:28'),
(7, 'Good Agricultural Practices', '2024-05-20', '2025-05-19', '2025-05-20', '[{\"name\":\"Good Agricultural Practices\",\"date\":\"2025-05-20\",\"file\":\"uploads\\/entity_profile\\/43\\/standerd_cirtificate\\/7\\/documants\\/1747717147_897735e080b332a52931.pdf\"}]', 'TQCERT', 'Renewal', '2025', 'Testing ', 43, 'organisation', 65, 65, 1, '2025-05-19 23:29:07', '2025-05-20 04:59:07'),
(8, 'Building Audit', '2025-01-02', '2026-01-01', '2025-11-02', '[{\"name\":\"Agreement\",\"date\":\"2025-06-03\",\"file\":\"uploads\\/entity_profile\\/48\\/standerd_cirtificate\\/8\\/documants\\/1749034386_bac22417d1ca894624e0.pdf\"}]', 'Building Audit', 'Initial', '2025', 'Good', 48, 'organisation', 88, 88, 1, '2025-06-02 05:40:19', '2025-06-04 10:53:06'),
(9, 'asdf', '2025-06-02', '2025-06-02', '2025-06-02', '[{\"name\":\"fdgds\",\"date\":\"2025-06-02\",\"file\":\"uploads\\/entity_profile\\/49\\/standerd_cirtificate\\/9\\/documants\\/1748864574_197eeaf8bcf36deed644.pdf\"}]', 'qwrwe', 'Initial', '2025', 'dfsf', 49, 'fpo', 89, 89, 1, '2025-06-02 06:12:54', '2025-06-02 11:43:00'),
(10, 'Building Audit', '2025-06-02', '2026-06-01', '2025-11-02', NULL, 'Building Audit', 'Initial', '2025', '', 51, 'organisation', 107, 107, 1, '2025-06-02 08:39:25', '2025-06-02 14:09:25'),
(11, 'Building Audit', '2025-06-02', '2026-06-01', '2025-11-02', NULL, 'Building Audit', 'Initial', '2025', 'good', 47, 'fpo', 82, 82, 1, '2025-06-02 09:35:07', '2025-06-02 15:05:07'),
(12, 'Building Checking', '2025-06-02', '2025-07-02', '2026-07-01', NULL, 'ISO2001', 'Initial', '2025', '', 47, 'fpo', 82, 82, 1, '2025-06-04 11:20:08', '2025-06-04 11:20:08'),
(13, 'Food Safety', '2025-07-05', '2025-07-12', '2025-07-15', '[{\"name\":\"Sample_Testing_Report\",\"date\":\"2025-07-05\",\"file\":\"uploads\\/entity_profile\\/38\\/standerd_cirtificate\\/13\\/documants\\/1751699085_17bc64c59eacaf726413.pdf\"}]', 'Indocert', 'Surveillance', '2025', 'NA', 38, 'organisation', 51, 51, 1, '2025-07-05 07:04:45', '2025-07-05 07:04:45'),
(14, 'Good Agricultural Practices', '2025-07-10', '2026-07-09', '2026-07-08', '[{\"name\":\"Good Agricultural Practices\",\"date\":\"2025-07-10\",\"file\":\"uploads\\/entity_profile\\/54\\/standerd_cirtificate\\/14\\/documants\\/1752126868_e39c8252e7540b320b66.pdf\"}]', 'TQCERT', 'Initial', '2025', '', 54, 'fpo', 135, 135, 1, '2025-07-10 05:54:28', '2025-07-29 09:08:59');

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

--
-- Table structure for table `storage_details`
--

CREATE TABLE `storage_details` (
  `id` int(11) NOT NULL,
  `name` varchar(30) DEFAULT NULL,
  `facility_id` varchar(30) DEFAULT NULL,
  `photo` text DEFAULT NULL,
  `Document` text DEFAULT NULL,
  `location` text NOT NULL,
  `location_lat` text DEFAULT NULL,
  `location_long` text DEFAULT NULL,
  `strg_address1` varchar(50) DEFAULT NULL,
  `strg_address2` varchar(50) DEFAULT NULL,
  `strg_village` varchar(30) DEFAULT NULL,
  `strg_country` varchar(100) DEFAULT NULL,
  `strg_state` varchar(100) DEFAULT NULL,
  `strg_city` varchar(100) DEFAULT NULL,
  `strg_pin_code` varchar(6) DEFAULT NULL,
  `ownership` varchar(50) DEFAULT NULL,
  `number_of_years_leasehold` int(11) NOT NULL,
  `type_of_structure` varchar(100) DEFAULT NULL,
  `area_sq_meters` float DEFAULT NULL,
  `commodities_stored` varchar(100) DEFAULT NULL,
  `created_at` datetime DEFAULT current_timestamp(),
  `updated_at` datetime DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `entity_id` int(11) NOT NULL,
  `status` int(11) NOT NULL DEFAULT 1,
  `associated_by` text NOT NULL,
  `created_by` int(11) NOT NULL,
  `updated_by` int(11) NOT NULL,
  `Responsible_Person_Name` text NOT NULL,
  `Designation` text NOT NULL,
  `Contact_Number` text NOT NULL,
  `remark` text NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `storage_details`
--

INSERT INTO `storage_details` (`id`, `name`, `facility_id`, `photo`, `Document`, `location`, `location_lat`, `location_long`, `strg_address1`, `strg_address2`, `strg_village`, `strg_country`, `strg_state`, `strg_city`, `strg_pin_code`, `ownership`, `number_of_years_leasehold`, `type_of_structure`, `area_sq_meters`, `commodities_stored`, `created_at`, `updated_at`, `entity_id`, `status`, `associated_by`, `created_by`, `updated_by`, `Responsible_Person_Name`, `Designation`, `Contact_Number`, `remark`) VALUES
(4, 'ramachandranWs selvam', 'Facility-15_3', '[\"uploads\\/entity_profile\\/15\\/Factory_buildings\\/4\\/photos\\/1745230995_c5315df24bef61a50495.jpg\"]', NULL, '{\"Corporate_Office\":null}', '34', '34', 'chennai', 'tamil nadu', 'medavakkam ', 'Albania', 'Berat District', 'Bashkia Poliçan', '600100', 'Own', 0, 'Cold Storage', 3434, '   43f\r\n\r\n                             ', '2025-04-21 10:23:15', '2025-04-22 07:50:45', 15, 0, 'organisation', 1, 1, '3434', '4343', '9360135395', '   rere\r\n\r\n                                '),
(5, 'raja raja solan', 'Facility-15_4', '[\"uploads\\/entity_profile\\/15\\/storage_unites\\/5\\/photos\\/1745254726_0d9f7a673ecb12779832.jpg\"]', '[{\"name\":\"old_documant\",\"date\":\"2025-05-20\",\"file\":\"uploads\\/entity_profile\\/15\\/storage_unites\\/5\\/Document\\/1746169209_822c287cdfc65c421560.png\"}]', '{\"Others\":\"others 1   \"}', '21.43', '21', 'chennai', 'tamil nadu', 'medavakkam ', 'Albania', 'Berat District', 'Bashkia Poliçan', '600100', 'Leasehold', 10, 'Self Storage', 443, '  4343\r\n43434\r\n                             ', '2025-04-21 16:58:46', '2025-05-02 07:00:10', 15, 1, 'organisation', 1, 15, '434', '3434', '9360135395', '  \r\n343434\r\n                               '),
(6, 'sokka 1', 'Facility-15_4', '[\"uploads\\/entity_profile\\/15\\/storage_unites\\/6\\/photos\\/\\/1745303780_b0e4646c0049c687cd39.jpg\",\"uploads\\/entity_profile\\/15\\/storage_unites\\/6\\/photos\\/1745254807_b77ebbd93043f190c827.png\",\"uploads\\/entity_profile\\/15\\/storage_unites\\/6\\/photos\\/1745254807_98d52b046401d7f56e0d.png\",\"uploads\\/entity_profile\\/15\\/storage_unites\\/6\\/photos\\/1745254807_0c9f4d1566831506e15e.png\"]', NULL, '{\"Storage_Details\":[\"4\",\"6\"]}', '12.4', '21', 'chennai', 'tamil nadu', 'medavakkam ', 'Albania', 'Berat District', 'Bashkia Poliçan', '600048', 'Leasehold', 0, 'Self Storage', 45454, ' \r\n43543543\r\n                             ', '2025-04-21 17:00:07', '2025-04-22 06:36:20', 15, 1, 'organisation', 1, 1, 'wewe', '443', '45435', ' 43534\r\n\r\n                              '),
(7, 'stsstorage', 'Facility-19_4', '[\"uploads\\/entity_profile\\/19\\/storage_unites\\/7\\/photos\\/1746009944_e1666942ebb89b105034.png\"]', NULL, '{\"Factory_builidings\":[\"13\"]}', '24', '56', '20 soma sundram', 'villapuram', 'madurai', 'India', 'Tamil Nadu', 'Madurai', '625002', 'Own', 0, 'Cold Storage', 5000, 'saddsdasdadad\r\n\r\n                             ', '2025-04-30 10:45:44', '2025-04-30 10:45:44', 19, 1, 'organisation', 8, 8, 'thamil', 'manager', '9655550555', 'sadsdadadasd\r\n\r\n                             '),
(8, 'Storage1', 'Facility-23_5', '[\"uploads\\/entity_profile\\/23\\/storage_unites\\/8\\/photos\\/1746024405_4fc0110709fdf71ccb03.jpg\"]', NULL, '{\"Corporate_Office\":null}', '12.121201', '45.45332', 'Test', 'Add 2', 'Village', 'India', 'Tamil Nadu', 'Chennai', '839266', 'Leasehold', 0, 'Cold Storage', 1500, 'Commodities stored are different\r\n\r\n                             ', '2025-04-30 14:46:45', '2025-04-30 14:46:45', 23, 1, 'organisation', 20, 20, 'Tester', 'Tester', '987654345', 'Remark entered here\r\n\r\n                             '),
(9, 'ramachandran selvam', 'Facility-15_6', '[\"uploads\\/entity_profile\\/15\\/storage_unites\\/9\\/photos\\/1746167637_596e8d73ad4d2b5f0c62.png\"]', NULL, '{\"Factory_builidings\":[\"9\",\"15\",\"10\"]}', '3', '34', 'chennai', 'tamil nadu', 'kjlkjldsf', 'Albania', 'Berat District', 'Bashkia Poliçan', '600100', 'Leasehold', 32, 'Cold Storage', 334, 'sdfsdf', '2025-05-02 06:33:57', '2025-05-02 06:33:57', 15, 1, 'organisation', 15, 15, 'fdsfdsfdsfdsf', 'sdfsdfsd', '9360135395', 'sdfsdfdsf'),
(10, 'stsstorage', 'Storage-39_7', '[]', '[{\"name\":\"ssa\",\"date\":\"2025-05-08\",\"file\":\"uploads\\/entity_profile\\/39\\/storage_unites\\/10\\/Document\\/1746781657_a10c15edeec2356d8ce0.pdf\"}]', '{\"Factory_builidings\":[\"30\"]}', '12', '44', '20 soma sundram', 'villapuram', 'madurai', 'India', 'Tamil Nadu', 'Madurai', '625004', 'Own', 0, 'Self Storage', 30000, '  cxvx', '2025-05-09 09:07:37', '2025-05-09 09:09:46', 39, 1, 'organisation', 52, 52, 'thamilse', 'cvbc', '9655550556', '  xcvxv asdsad '),
(11, 'Packhouse Location', 'Storage-43_8', '[\"uploads\\/entity_profile\\/43\\/storage_unites\\/11\\/photos\\/1747485351_2a1573e9797c13c00c8e.jpg\"]', '[{\"name\":\"Test Document\",\"date\":\"2025-05-12\",\"file\":\"uploads\\/entity_profile\\/43\\/storage_unites\\/11\\/Document\\/1747485351_9e0a25ea35939cc023d6.pdf\"}]', '{\"Corporate_Office\":null}', '17.473452', '78.445572', 'Plot 45, Phase II, Agri Industrial Estate, Hyderab', '', 'Agri Industrial Estate', 'India', 'Telangana', 'Hyderābād', '500037', 'Own', 0, 'Cold Storage', 3500, 'Cold Storage', '2025-05-17 12:35:51', '2025-05-17 12:35:51', 43, 1, 'organisation', 65, 65, 'Rajeev Kumar', 'QA Manager', '9988776655', 'Cold Storage Capacity	2 Chambers, 5 MT each\r\nWater Source	Borewell + RO Unit\r\nLighting Type	LED, compliant with IP65\r\nDrainage Type	Covered drain, slope-maintained'),
(12, 'Warehouse1', 'Storage-43_9', '[\"uploads\\/entity_profile\\/43\\/storage_unites\\/12\\/photos\\/1747485580_cce9308ecdbc4747a1f3.jpg\"]', '[{\"name\":\"Test Document\",\"date\":\"2025-05-12\",\"file\":\"uploads\\/entity_profile\\/43\\/storage_unites\\/12\\/Document\\/1747485580_207787805541d7fbe930.pdf\"}]', '{\"Corporate_Office\":null}', '17.473452', '78.445572', 'Plot 45, Phase II, Agri Industrial Estate, Hyderab', '', 'Agri Industrial Estate', 'India', 'Telangana', 'Hyderābād', '500037', 'Own', 0, 'Containers', 1000, 'Corrugated boxes, labels, clamshells, crates, tape', '2025-05-17 12:39:40', '2025-05-17 12:39:40', 43, 1, 'organisation', 65, 65, 'Rajeev Kumar', 'QA Manager', '9988776655', 'Incoming Stock Example	Mango – 2,000 kg; Leafy Greens – 800 kg\r\nInventory Tracking ID	WH-PM-001, WH-RM-002'),
(13, 'Warehouse2', 'Storage-43_10', '[\"uploads\\/entity_profile\\/43\\/storage_unites\\/13\\/photos\\/1747485701_94b3a68e390bb04ea002.jpg\"]', '[{\"name\":\"Test Document\",\"date\":\"2025-05-12\",\"file\":\"uploads\\/entity_profile\\/43\\/storage_unites\\/13\\/Document\\/1747485701_5b74a819967c3e220e8e.pdf\"}]', '{\"Corporate_Office\":null}', '17.473452', '78.445572', 'Plot 45, Phase II, Agri Industrial Estate, Hyderab', '', 'Agri Industrial Estate', 'India', 'Telangana', 'Hyderābād', '500037', 'Own', 0, 'Containers', 600, 'Packaging Material Store\r\nCorrugated boxes, labels, clamshells, crates, tape\r\n', '2025-05-17 12:41:41', '2025-05-17 12:41:41', 43, 1, 'organisation', 65, 65, 'Rajeev Kumar', 'QA Manager', '9988776655', 'Incoming Stock Example	Mango – 2,000 kg; Leafy Greens – 800 kg\r\n'),
(14, 'Godown', 'Storage-48_11', '[]', '[{\"name\":\"Agreement\",\"date\":\"2022-03-22\",\"file\":\"uploads\\/entity_profile\\/48\\/storage_unites\\/14\\/Document\\/1748855511_7bcc6f17b6eaf6a1b527.pdf\"}]', '{\"Corporate_Office\":null}', '', '', '34', '', '', 'India', 'Tamil Nadu', 'Chennai', '600049', NULL, 0, NULL, 0, ' ', '2025-06-02 09:11:51', '2025-06-03 07:14:27', 48, 1, 'organisation', 88, 88, 'Shankar', 'Supervisor', '1234567890', '  '),
(15, 'Godown', 'Storage-51_12', NULL, '[{\"name\":\"Agreement\",\"date\":\"2025-06-02\",\"file\":\"uploads\\/entity_profile\\/51\\/storage_unites\\/15\\/Document\\/1748872597_d8362439da225d19c48f.pdf\"}]', '{\"Corporate_Office\":null}', '', '', '78', '', '', 'India', 'Tamil Nadu', 'Chennai', '600042', NULL, 0, NULL, 0, '', '2025-06-02 13:56:37', '2025-06-02 13:56:37', 51, 1, 'organisation', 107, 107, 'Shankar', 'Supervisor', '1234567890', ''),
(16, 'Godown', 'Storage-47_13', '[]', '[{\"name\":\"Agreement\",\"date\":\"2025-06-02\",\"file\":\"uploads\\/entity_profile\\/47\\/storage_unites\\/16\\/Document\\/1748928192_40d560bc727ee9c68c17.pdf\"}]', '{\"Corporate_Office\":null}', '', '', '56', '', '', 'India', 'Tamil Nadu', 'Chennai', '600045', NULL, 0, NULL, 0, ' ', '2025-06-03 05:23:12', '2025-06-03 05:47:47', 47, 1, 'fpo', 82, 82, 'Shankar', 'Supervisor', '1234567890', '  '),
(17, 'Thanthi', 'Storage-48_14', '[\"uploads\\/entity_profile\\/48\\/storage_unites\\/17\\/photos\\/1749033827_88540e8a5c0322b04f04.jpg\"]', '[{\"name\":\"Agreement\",\"date\":\"2025-06-04\",\"file\":\"uploads\\/entity_profile\\/48\\/storage_unites\\/17\\/Document\\/1749033827_32ab501c66b2c0af4f73.pdf\"}]', '{\"Corporate_Office\":null}', '', '', '45', '', '', 'India', 'Tamil Nadu', 'Chennai', '600035', NULL, 0, NULL, 0, '', '2025-06-04 10:43:47', '2025-06-04 10:43:47', 48, 1, 'organisation', 88, 88, 'Yash', 'Manager', '1234567890', ''),
(18, 'Jaya', 'Storage-47_15', '[\"uploads\\/entity_profile\\/47\\/storage_unites\\/18\\/photos\\/1749035017_de77187b2cea52b928a2.jpg\"]', '[{\"name\":\"Agreement\",\"date\":\"2025-06-03\",\"file\":\"uploads\\/entity_profile\\/47\\/storage_unites\\/18\\/Document\\/1749035017_041ecb45412c8329cdcd.pdf\"}]', '{\"Corporate_Office\":null}', '', '', '77', '', '', 'India', 'Tamil Nadu', 'Chennai', '600045', NULL, 0, NULL, 0, '', '2025-06-04 11:03:37', '2025-06-04 11:03:37', 47, 1, 'fpo', 82, 82, 'Sasi', 'Manager', '1234567890', ''),
(19, 'Anji Reddy Durgampudi', 'PM001', '[]', '[{\"name\":\"12587887\",\"date\":\"2025-06-18\",\"file\":\"uploads\\/entity_profile\\/54\\/storage_unites\\/19\\/Document\\/1750318934_cc7c7bcabb6ae2b57d2d.pdf\"}]', '{\"Corporate_Office\":null}', '', '', 'Survey No. 45, Near NH-563,', 'Hyderabad', 'Vanastalipuram', 'India', 'Telangana', 'Hyderābād', '500070', 'Own', 0, 'Self Storage', 0, ' ', '2025-06-19 07:42:14', '2025-07-29 07:40:18', 54, 1, 'fpo', 135, 135, '', '', '9010466610', '  '),
(20, 'test test test', 'Employee', '[]', '[{\"name\":\"test\",\"date\":\"2025-07-09\",\"file\":\"uploads\\/entity_profile\\/60\\/storage_unites\\/20\\/Document\\/1752051696_f6f64fdf85b00ea2788d.png\"}]', '{\"storage_details\":[\"20\"]}', '', '', '123', '123', '', 'India', 'Tamil Nadu', 'Polūr', '632009', NULL, 0, NULL, 0, '    ', '2025-07-09 09:01:36', '2025-07-09 09:19:29', 60, 1, 'fpo', 60, 60, 'test', 'test', '9786706043', '        '),
(21, 'selvam', 'Storage-64_18', '[]', NULL, '[]', '', '', '3/420', 'bagavati street', '', 'India', 'Tamil Nadu', 'Chetput', '600100', NULL, 0, NULL, 0, '   ', '2025-07-17 06:18:58', '2025-07-17 06:19:35', 64, 1, 'organisation', 157, 157, '', '', '9566262691', '      '),
(22, 'Anji Reddy Durgampudi', 'Storage-38_19', '[\"uploads\\/entity_profile\\/38\\/storage_unites\\/22\\/photos\\/1753704618_86a916b94b435565c52c.jpeg\"]', '[{\"name\":\"Good Agricultural Practices\",\"date\":\"2025-07-28\",\"file\":\"uploads\\/entity_profile\\/38\\/storage_unites\\/22\\/Document\\/1753704618_e8c7ec6074178b1fe817.pdf\"}]', '{\"Corporate_Office\":null}', '17.385044', '78.486671', 'Survey No. 45, Near NH-563,', 'Hyderabad', 'Manakondur', 'India', 'Telangana', 'Hyderābād', '500070', 'Own', 0, 'Self Storage', 20000, '', '2025-07-28 12:10:18', '2025-07-28 12:10:18', 38, 1, 'organisation', 51, 51, 'Kiran', 'Manager', '9010466610', ''),
(23, 'thamil selvan', 'Storage-64_20', '[\"uploads\\/entity_profile\\/64\\/storage_unites\\/23\\/photos\\/1754897340_0baa7bdb361109c2c122.png\"]', '[{\"name\":\"rsed\",\"date\":\"2025-08-04\",\"file\":\"uploads\\/entity_profile\\/64\\/storage_unites\\/23\\/Document\\/1754897340_d276a473e6b19f0ee9d0.png\"}]', '{\"Corporate_Office\":null}', '12', '24', 'Ram nagar 5 th street', 'velachery', 'yh', 'India', 'Tamil Nadu', 'Madurai', '625002', 'Own', 0, 'Cold Storage', 1000, 'tedt', '2025-08-11 07:29:00', '2025-08-11 07:29:00', 64, 1, 'fpo', 157, 157, 'sts', 'supervisor', '9677770552', 'dfdf');

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

--
-- Table structure for table `subcontractors`
--

CREATE TABLE `subcontractors` (
  `id` int(11) NOT NULL,
  `entity_id` int(11) DEFAULT NULL,
  `associated_by` varchar(50) DEFAULT NULL,
  `title` varchar(5) DEFAULT NULL,
  `first_name` varchar(50) DEFAULT NULL,
  `middle_name` varchar(50) DEFAULT NULL,
  `last_name` varchar(50) DEFAULT NULL,
  `ID_Number` varchar(255) DEFAULT NULL,
  `location` text DEFAULT NULL,
  `date_of_appointment` date DEFAULT NULL,
  `Qualifications` text DEFAULT NULL,
  `experience_years` varchar(255) DEFAULT NULL,
  `experience_months` varchar(255) DEFAULT NULL,
  `designation` varchar(11) DEFAULT NULL,
  `reporting_authority` int(11) DEFAULT NULL,
  `skill` text DEFAULT NULL,
  `documants` text DEFAULT NULL,
  `photo` text DEFAULT NULL,
  `Person_Photo` text DEFAULT NULL,
  `activities_handled` text DEFAULT NULL,
  `evaluated_by` text DEFAULT NULL,
  `name_of_the_evaluator` text DEFAULT NULL,
  `email` text DEFAULT NULL,
  `password` text DEFAULT NULL,
  `remark` text DEFAULT NULL,
  `updated_at` datetime DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `created_by` int(11) DEFAULT NULL,
  `updated_by` int(11) DEFAULT NULL,
  `status` tinyint(4) DEFAULT 1,
  `created_at` datetime DEFAULT current_timestamp(),
  `department` int(11) DEFAULT NULL,
  `role` int(11) DEFAULT NULL,
  `skill_distribution` int(11) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `subcontractors`
--

INSERT INTO `subcontractors` (`id`, `entity_id`, `associated_by`, `title`, `first_name`, `middle_name`, `last_name`, `ID_Number`, `location`, `date_of_appointment`, `Qualifications`, `experience_years`, `experience_months`, `designation`, `reporting_authority`, `skill`, `documants`, `photo`, `Person_Photo`, `activities_handled`, `evaluated_by`, `name_of_the_evaluator`, `email`, `password`, `remark`, `updated_at`, `created_by`, `updated_by`, `status`, `created_at`, `department`, `role`, `skill_distribution`) VALUES
(16, 39, 'organisation', 'Mr', 'shastika', 'sri', 'lakshmi', 'subcontractor-39_1', '{\"Factory_builidings\":[\"30\"]}', '2025-05-08', 'dfsd', '17', '11', 'subcontract', 21, '{\"10\":[\"diploma\",\"phd\",\"master\"]}', '[{\"name\":\"sfdfs\",\"date\":\"2025-05-08\",\"file\":\"uploads\\/entity_profile\\/39\\/subcontractors\\/16\\/documants\\/1746791529_ef0425fb7c40ce5e9130.pdf\"}]', '[\"uploads\\/entity_profile\\/39\\/subcontractors\\/16\\/photos\\/1746791529_bdeb5550aa81766beec6.jpg\"]', 'uploads/entity_profile/39/subcontractors/16/Person_Photo//1746791529_5a785a806a9a73048ebf.jpeg', 'dffsssdf', 'employee', '21', 'sri@gmail.com', '$2y$10$/4OC6m7afLCIh9qo2k4TO.8l6JJ8sjmnKUFHmlLHBR6EmvlqSxZ7W', 'dsfdsfsf', '2025-05-09 11:52:09', 52, 52, 1, '2025-05-09 11:52:09', 14, 21, NULL),
(17, 33, 'fpo', 'Mr', 'ramachandran s', 'fd', 'dheena', 'subcontractor-33_2', '{\"Corporate_Office\":null}', '2025-05-05', 'fdsfsdf', '17', '2', 'dsfsd', 22, '{\"11\":[\"dfsd\",\"dfsdfsd\",\"sdfsdfsd\",\"dsfds\"]}', '[{\"name\":\"fdsfsdfs\",\"date\":\"2025-05-12\",\"file\":\"uploads\\/entity_profile\\/33\\/subcontractors\\/17\\/documants\\/1746980223_9b85f329b1722fcfd4e4.png\"}]', '[\"uploads\\/entity_profile\\/33\\/subcontractors\\/17\\/photos\\/1746980223_3e722be0848ea6666e84.png\"]', 'uploads/entity_profile/33/subcontractors/17/Person_Photo//1746980223_2114cb5243a9bab791f0.png', 'fdsfsd', 'employee', '22', 'rr@dfd.gf', '$2y$10$z3t3eh/Y/7SMlB6NPk2c0ewi2evtJmvigrDiO.UPedVwDmLxP/tH.', ' fdsfsdfd', '2025-05-27 16:10:35', 45, 45, 1, '2025-05-11 16:17:03', 15, 22, 11),
(18, 44, 'audit_company', 'Mrs', 'sdf', 'sdf', 'sdf', 'subcontractor-44_3', '[]', '2025-06-02', 'dsf', '2', '1', 'sdf', 29, '{\"22\":[\"sdf\"]}', '[{\"name\":\"xcvcxxcv\",\"date\":\"2025-06-02\",\"file\":\"uploads\\/entity_profile\\/44\\/subcontractors\\/18\\/documants\\/1748845014_c74f7129fd2f404e9088.pdf\"}]', '[\"uploads\\/entity_profile\\/44\\/subcontractors\\/18\\/photos\\/1748845014_bac876fe790c45bab261.jpg\"]', 'uploads/entity_profile/44/subcontractors/18/Person_Photo//1748845014_9bc8703f75ebe221b326.jpg', 'dsf', 'employee', '29', 'wqde@gmail.com', '$2y$10$j0EmUk2DdcWee1TFysBmQ.238hRZ8enhZf78nUoNngfdyBwtRweBy', 'dsf', '2025-06-02 06:16:54', 72, 72, 1, '2025-06-02 06:16:54', 20, 30, 22),
(19, 48, 'organisation', NULL, 'Manickam', '', '', 'subcontractor-48_4', '[]', '0000-00-00', '', NULL, NULL, '', NULL, NULL, NULL, NULL, 'uploads/entity_profile/48/subcontractors/19/Person_Photo//1748858130_b8e0105691851c072383.jpg', '', NULL, '', 'mani@abc.com', '$2y$10$Bh/6OQLnlG0d8xZIoNa01uVZnvayw3i1IOCS7fUZ6goNbpMK/o/AC', '', '2025-06-02 09:55:30', 88, 88, 1, '2025-06-02 09:55:30', 0, 32, NULL),
(20, 49, 'fpo', 'Mr', 'Dheenadhayalan', '', 'perumal', 'subcontractor-49_5', '{\"Corporate_Office\":null}', '2025-06-02', 'wqe', '2', '1', 'frontend', 31, '{\"25\":[\"cvbcvb\",\"bvcb\"]}', '[{\"name\":\"fdg\",\"date\":\"2025-06-02\",\"file\":\"uploads\\/entity_profile\\/49\\/subcontractors\\/20\\/documants\\/1748863903_293c1cef7acf60bd2777.pdf\"}]', '[\"uploads\\/entity_profile\\/49\\/subcontractors\\/20\\/photos\\/1748863903_7ebe93782abad3f35d56.jpg\"]', 'uploads/entity_profile/49/subcontractors/20/Person_Photo//1748863903_ce890e74bedd53813d47.jpg', 'ty', 'employee', '31', 'dheena1er992@gmail.com', '$2y$10$Y6iaV/nuzR1uADFyafyWhudYoHYlKLCqs7Vhlln9Teh12JMYpYV3y', ' rtyrty', '2025-06-02 11:31:56', 89, 89, 1, '2025-06-02 11:31:43', 25, 33, 25),
(21, 50, 'audit_company', 'Mr', 'Rajan', '', '', 'subcontractor-50_6', '[]', '0000-00-00', '', NULL, NULL, 'Executive', NULL, NULL, NULL, NULL, 'uploads/entity_profile/50/subcontractors/21/Person_Photo//1748871827_b496e6126961f87745cb.jpg', '', NULL, '', 'rajan@abc.com', '$2y$10$Jqdmgak8TxOmPEBHbHQwgOv3iN9oWf1g6KjTHWkeSnpD8QaejzvYW', '', '2025-06-02 13:43:47', 100, 100, 1, '2025-06-02 13:43:47', 26, 34, NULL),
(22, 51, 'organisation', 'Mr', 'Ganesh', '', '', 'subcontractor-51_7', '{\"Corporate_Office\":null}', '0000-00-00', '', NULL, NULL, 'Executive', NULL, NULL, NULL, NULL, 'uploads/entity_profile/51/subcontractors/22/Person_Photo//1748872851_5dfbfeebc15b22391a83.jpg', '', NULL, '', 'ganesh@abc.com', '$2y$10$KaaBOIfutXfgl3lsKggBq.hylx7u4Di2TWXzo5dQivU/7U/znTGmK', '', '2025-06-02 14:00:51', 107, 107, 1, '2025-06-02 14:00:51', 27, 35, NULL),
(23, 47, 'fpo', 'Mr', 'Velan', '', '', 'subcontractor-47_8', '{\"Corporate_Office\":null}', '0000-00-00', '', NULL, NULL, 'Supervisor', NULL, NULL, NULL, NULL, 'uploads/entity_profile/47/subcontractors/23/Person_Photo//1748875925_9d29f907e21633174208.jpg', '', NULL, '', 'velan@abc.com', '$2y$10$LGBJ5rHg.suCKhBHI5SC4.qdAHsxBLc.qLGy1KRpNQOGQKfQA2.Pe', '', '2025-06-02 14:52:05', 82, 82, 1, '2025-06-02 14:52:05', 23, 31, NULL),
(24, 45, 'audit_company', 'Mr', 'ramachandran', '', 'selvam', 'subcontractor-45_9', '[]', '0000-00-00', '', NULL, NULL, '', NULL, NULL, NULL, NULL, 'uploads/entity_profile/45/subcontractors/24/Person_Photo//1748926930_f2397b93e65851761000.jpg', '', NULL, '', 'ffgf@gmail.com', '$2y$10$vYq3g3oaTCMiUPp0SZxNM.N9bkhVERgIFEzjxwSnm4l0l8MWsKUpi', '', '2025-06-03 05:02:10', 73, 73, 1, '2025-06-03 05:02:10', 0, 29, NULL),
(25, 45, 'audit_company', 'Mr', 'ramachandran', '', 'selvam', 'subcontractor-45_10', '[]', '0000-00-00', '', NULL, '2', NULL, NULL, NULL, NULL, '[]', 'uploads/entity_profile/45/subcontractors/25/Person_Photo//1748929477_8aa756cfddc52ebcffa9.jpg', '', 'auditors', '', 'ramachandrantdfdfamil006@gmail.com', '$2y$10$QqC6SBLByh7jd.1bz7rDqO3nioKa8BtGWI.yWFksyfbEGSf7N9TIy', ' ', '2025-06-03 05:44:49', 73, 73, 1, '2025-06-03 05:44:37', 0, 36, NULL),
(26, 47, 'fpo', 'Ms', 'Miya', '', '', 'subcontractor-47_11', '[]', '0000-00-00', '', NULL, NULL, 'Supervisor', NULL, NULL, NULL, '[]', 'uploads/entity_profile/47/subcontractors/26/Person_Photo//1749035203_b7d58656faf0b8a01b3f.jpg', '', 'employee', '34', 'miys@abc.com', '$2y$10$rcpE/23TIutjSlBectCZPu20VYacV9skyvMgycSYTe9Kzc5oByBta', '  ', '2025-06-04 11:07:52', 82, 82, 1, '2025-06-04 11:06:43', 23, 31, 23),
(27, 54, 'fpo', 'Mr', 'Anji', 'Reddy', 'Durgampudi', 'subcontractor-54_12', '[]', '2025-07-01', 'BSC', '12', '6', 'Manager', 39, '{\"34\":[\"test\"]}', NULL, '[]', 'uploads/entity_profile/54/subcontractors/27/Person_Photo//1752053621_70729ac2b03999d70bb5.jpg', '', 'subcontractors', '27', 'bbc@gmail.com', '$2y$10$UFW8/Ht1ywbW7qd5zLcgjOGNYUZE8wPFZQWRx5ocu0Rurt7/rRkO6', '  ', '2025-08-19 10:43:24', 135, 135, 1, '2025-07-09 09:33:41', 33, 46, 34),
(28, 38, 'organisation', 'Mr', 'Anji', 'Reddy', 'Durgampudi', 'subcontractor-38_13', '{\"Corporate_Office\":null}', '2025-07-01', 'BSC', '9', '4', 'Manager', NULL, '{\"35\":[\"QCQ Manager\"]}', NULL, NULL, 'uploads/entity_profile/38/subcontractors/28/Person_Photo//1753705380_fe571e3ecb0a3c13471f.jpg', '', 'employee', '38', 'anjireddy23@efreshglobal.com', '$2y$10$70gfGvGiC1vqMuO3KBqOZ.CnYGY2Pkmm2dsOZVQcrNcTfntq7kONu', '', '2025-07-28 12:23:00', 51, 51, 1, '2025-07-28 12:23:00', 35, 41, 35);

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

--
-- Table structure for table `subscribe_the_audit_teamplate`
--

CREATE TABLE `subscribe_the_audit_teamplate` (
  `id` int(11) NOT NULL,
  `audit_teamplate_id` int(11) NOT NULL,
  `audit_company` int(11) NOT NULL,
  `documents` text NOT NULL,
  `message_to_auditors` text DEFAULT NULL,
  `message_to_entity` text DEFAULT NULL,
  `status` int(11) NOT NULL DEFAULT 1,
  `created_at` timestamp NOT NULL DEFAULT current_timestamp(),
  `created_by` int(11) NOT NULL,
  `updated_at` datetime NOT NULL,
  `updated_by` int(11) NOT NULL,
  `entity_id` int(11) NOT NULL,
  `associated_by` varchar(50) NOT NULL,
  `last_updated_at_aditor` datetime DEFAULT NULL,
  `last_updated_by_aditor` int(11) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

--
-- Dumping data for table `subscribe_the_audit_teamplate`
--

INSERT INTO `subscribe_the_audit_teamplate` (`id`, `audit_teamplate_id`, `audit_company`, `documents`, `message_to_auditors`, `message_to_entity`, `status`, `created_at`, `created_by`, `updated_at`, `updated_by`, `entity_id`, `associated_by`, `last_updated_at_aditor`, `last_updated_by_aditor`) VALUES
(10, 1, 45, '[{\"name\":\"gfd\",\"date\":\"2025-05-13\",\"file\":\"uploads\\/entity_profile\\/33\\/subscribed_audit_template\\/10\\/documants\\/1748158578_97211f1c37383cd677f5.jpeg\",\"user_comments\":\"\",\"auditor_comments\":\"yyyy\",\"doc_status\":\"selected\"},{\"name\":\"fdgdfgdf\",\"date\":\"\",\"file\":\"uploads\\/entity_profile\\/33\\/subscribed_audit_template\\/10\\/documants\\/1748235685_a39882048e1479ca023b.jpg\",\"user_comments\":\"\",\"auditor_comments\":\"aaa\",\"doc_status\":\"selected\"},{\"name\":\"fgdfgfd\",\"date\":\"\",\"file\":\"\",\"user_comments\":\"\",\"auditor_comments\":\"eeee\",\"doc_status\":\"selected\"},{\"name\":\"gdfgdfg\",\"date\":\"\",\"file\":\"uploads\\/entity_profile\\/33\\/subscribed_audit_template\\/10\\/documants\\/1748238107_fe496cca430aed4e4bdd.jpg\",\"user_comments\":\"\",\"auditor_comments\":\"new\",\"doc_status\":\"selected\"},{\"name\":\"fsfsdf\",\"date\":\"2025-05-22\",\"file\":\"uploads\\/entity_profile\\/33\\/subscribed_audit_template\\/10\\/documants\\/1748158578_7c3fbb537183ee3eaf13.png\",\"user_comments\":\"fsdfdfsfd\",\"auditor_comments\":\"wwww\",\"doc_status\":\"selected\"},{\"name\":\"tes\",\"date\":\"2025-05-14\",\"file\":\"uploads\\/entity_profile\\/33\\/subscribed_audit_template\\/10\\/documants\\/1748236426_8ff65cc3393e804cbb5e.jpg\",\"user_comments\":\"\",\"auditor_comments\":\"test\",\"doc_status\":\"not_selected\"},{\"name\":\"tg\",\"date\":\"2025-05-25\",\"file\":\"uploads\\/entity_profile\\/33\\/subscribed_audit_template\\/10\\/documants\\/1748236556_fe14a26bc28af8e7d83d.jpg\",\"user_comments\":\"tg\",\"auditor_comments\":\"ggf\",\"doc_status\":\"not_selected\"}]', 'xxx', 'sss', 4, '2025-05-25 02:06:18', 45, '2025-05-27 05:58:08', 45, 33, 'fpo', '2025-05-27 11:28:08', 73),
(11, 2, 45, '[{\"name\":\"anuval reports\",\"date\":\"2025-05-05\",\"file\":\"uploads\\/entity_profile\\/33\\/subscribed_audit_template\\/11\\/documants\\/1748261246_f37c7415af00d74cf13b.jpeg\",\"user_comments\":\"anuval report\",\"auditor_comments\":\"\",\"doc_status\":\"selected\"},{\"name\":\"quaterly_reports\",\"date\":\"2025-05-13\",\"file\":\"uploads\\/entity_profile\\/33\\/subscribed_audit_template\\/11\\/documants\\/1748261320_1fbc45ecbd828ae9f5c1.jpg\",\"user_comments\":\"quaterly_report\",\"auditor_comments\":\"need clarification\",\"doc_status\":\"not_selected\"}]', 'hi bro', 'pleae give full audit repor2', 4, '2025-05-26 06:37:25', 45, '2025-05-27 10:56:35', 45, 33, 'fpo', '2025-05-27 16:26:35', 73),
(12, 4, 45, '[{\"name\":\"fgdfg\",\"date\":\"2025-05-13\",\"file\":\"uploads\\/entity_profile\\/37\\/subscribed_audit_template\\/12\\/documants\\/1748408075_2962495e31f10af66881.jpg\",\"user_comments\":\"dsfsdfsd\",\"auditor_comments\":\"\",\"doc_status\":\"not_selected\"},{\"name\":\"fdgdfgdf\",\"date\":\"\",\"file\":\"\",\"user_comments\":\"\",\"auditor_comments\":\"\",\"doc_status\":\"not_selected\"}]', 'dfdsfsd', '', 1, '2025-05-27 23:24:34', 49, '2025-06-03 16:58:21', 49, 37, 'organisation', '2025-05-28 10:25:02', 73),
(13, 4, 45, '[{\"name\":\"fgdfg\",\"date\":\"\",\"file\":\"\",\"user_comments\":\"\",\"auditor_comments\":\"\",\"doc_status\":\"not_selected\"},{\"name\":\"fdgdfgdf\",\"date\":\"\",\"file\":\"\",\"user_comments\":\"\",\"auditor_comments\":\"\",\"doc_status\":\"not_selected\"}]', '', '', 2, '2025-05-28 23:04:30', 64, '2025-05-29 15:23:03', 64, 15, 'farmers', '2025-05-29 20:53:03', 73),
(14, 4, 45, '[{\"name\":\"fgdfg\",\"date\":\"2025-05-19\",\"file\":null,\"user_comments\":\"\",\"auditor_comments\":null},{\"name\":\"fdgdfgdf\",\"date\":\"\",\"file\":null,\"user_comments\":\"\",\"auditor_comments\":null}]', '', NULL, 1, '2025-05-30 03:25:03', 61, '2025-05-30 08:55:03', 61, 11, 'farmers', NULL, NULL),
(15, 5, 44, '[{\"name\":\"farming dta\",\"date\":\"2025-06-02\",\"file\":\"uploads\\/entity_profile\\/16\\/subscribed_audit_template\\/15\\/documants\\/1748856962_c56c32f2c9d90c4426ef.pdf\",\"user_comments\":\"rtyrty\",\"auditor_comments\":\"\",\"doc_status\":\"\"},{\"name\":\"others\",\"date\":\"2025-06-02\",\"file\":\"uploads\\/entity_profile\\/16\\/subscribed_audit_template\\/15\\/documants\\/1748856962_453715508245305f74c7.pdf\",\"user_comments\":\"rtyrt\",\"auditor_comments\":\"\",\"doc_status\":\"\"},{\"name\":\"fdgfd\",\"date\":\"2025-06-02\",\"file\":\"uploads\\/entity_profile\\/16\\/subscribed_audit_template\\/15\\/documants\\/1748856962_0bc5084cb86004dbcf23.pdf\",\"user_comments\":\"rtyrty\",\"auditor_comments\":\"nothing\",\"doc_status\":\"\"}]', 'rtytry', NULL, 1, '2025-06-02 04:06:02', 71, '2025-06-02 15:06:43', 71, 16, 'farmers', NULL, NULL),
(16, 5, 44, '[{\"name\":\"farming dta\",\"date\":\"\",\"file\":\"uploads\\/entity_profile\\/48\\/subscribed_audit_template\\/16\\/documants\\/1748862706_2f940966695864b959fd.pdf\",\"user_comments\":\"\",\"auditor_comments\":null},{\"name\":\"others\",\"date\":\"\",\"file\":null,\"user_comments\":\"\",\"auditor_comments\":null},{\"name\":\"fdgfd\",\"date\":\"\",\"file\":null,\"user_comments\":\"\",\"auditor_comments\":null}]', '-', NULL, 1, '2025-06-02 05:41:46', 88, '2025-06-02 11:11:46', 88, 48, 'organisation', NULL, NULL),
(17, 5, 44, '[{\"name\":\"farming dta\",\"date\":\"2025-06-02\",\"file\":\"uploads\\/entity_profile\\/49\\/subscribed_audit_template\\/17\\/documants\\/1748865056_708d51e1663dddcc25fe.pdf\",\"user_comments\":\"fgh\",\"auditor_comments\":null},{\"name\":\"others\",\"date\":\"2025-06-02\",\"file\":\"uploads\\/entity_profile\\/49\\/subscribed_audit_template\\/17\\/documants\\/1748865056_8522ffd131a8d6930aa9.pdf\",\"user_comments\":\"fgh\",\"auditor_comments\":null},{\"name\":\"fdgfd\",\"date\":\"2025-06-02\",\"file\":\"uploads\\/entity_profile\\/49\\/subscribed_audit_template\\/17\\/documants\\/1748865056_5e66010b4ef89136c784.pdf\",\"user_comments\":\"fgh\",\"auditor_comments\":null}]', 'fgh', NULL, 1, '2025-06-02 06:20:56', 89, '2025-06-02 11:50:56', 89, 49, 'fpo', NULL, NULL),
(18, 5, 44, '[{\"name\":\"farming dta\",\"date\":\"\",\"file\":null,\"user_comments\":\"\",\"auditor_comments\":null},{\"name\":\"others\",\"date\":\"\",\"file\":null,\"user_comments\":\"\",\"auditor_comments\":null},{\"name\":\"fdgfd\",\"date\":\"\",\"file\":null,\"user_comments\":\"\",\"auditor_comments\":null}]', '-', NULL, 1, '2025-06-02 08:39:49', 107, '2025-06-02 14:09:49', 107, 51, 'organisation', NULL, NULL),
(19, 2, 45, '[{\"name\":\"anuval reports\",\"date\":\"\",\"file\":null,\"user_comments\":\"\",\"auditor_comments\":null},{\"name\":\"quaterly_reports\",\"date\":\"\",\"file\":null,\"user_comments\":\"\",\"auditor_comments\":null}]', 'None', NULL, 1, '2025-06-02 09:35:31', 82, '2025-06-02 15:05:31', 82, 47, 'fpo', NULL, NULL),
(20, 3, 45, '[{\"name\":\"dfdsf\",\"date\":\"\",\"file\":null,\"user_comments\":\"\",\"auditor_comments\":null},{\"name\":\"sdfsdfsd\",\"date\":\"\",\"file\":null,\"user_comments\":\"\",\"auditor_comments\":null}]', 'None', NULL, 1, '2025-06-03 00:11:16', 112, '2025-06-03 05:41:16', 112, 23, 'farmers', NULL, NULL),
(21, 4, 45, '[{\"name\":\"fgdfg\",\"date\":\"2025-06-03\",\"file\":\"uploads\\/entity_profile\\/36\\/subscribed_audit_template\\/21\\/documants\\/1748962466_c72e106ff80c595fe483.pdf\",\"user_comments\":\"Test\",\"auditor_comments\":null},{\"name\":\"fdgdfgdf\",\"date\":\"2025-06-03\",\"file\":\"uploads\\/entity_profile\\/36\\/subscribed_audit_template\\/21\\/documants\\/1748962466_cf8e78d3177448aaae3b.pdf\",\"user_comments\":\"Test2\",\"auditor_comments\":null}]', '', NULL, 1, '2025-06-03 14:54:26', 48, '2025-06-03 14:54:26', 48, 36, 'organisation', NULL, NULL),
(22, 6, 50, '[{\"name\":\"Financial Reports\",\"date\":\"2025-06-02\",\"file\":\"uploads\\/entity_profile\\/48\\/subscribed_audit_template\\/22\\/documants\\/1748963991_2054d1144209dcfbbe14.pdf\",\"user_comments\":\"Test\",\"auditor_comments\":\"Test1\",\"doc_status\":\"selected\"},{\"name\":\"Testing\",\"date\":\"2025-06-02\",\"file\":\"uploads\\/entity_profile\\/48\\/subscribed_audit_template\\/22\\/documants\\/1748964174_df61dd29de150a0198e9.pdf\",\"user_comments\":\"Testing\",\"auditor_comments\":\"This is to be validated\",\"doc_status\":\"selected\"}]', '', 'Good', 6, '2025-06-03 15:19:51', 88, '2025-06-05 04:41:03', 88, 48, 'organisation', '2025-06-05 10:11:03', 100),
(23, 4, 45, '[{\"name\":\"fgdfg\",\"date\":\"\",\"file\":null,\"user_comments\":\"\",\"auditor_comments\":null},{\"name\":\"fdgdfgdf\",\"date\":\"\",\"file\":null,\"user_comments\":\"\",\"auditor_comments\":null}]', 'Completed', NULL, 1, '2025-06-04 11:24:45', 82, '2025-06-04 11:24:45', 82, 47, 'fpo', NULL, NULL),
(24, 4, 45, '[{\"name\":\"fgdfg\",\"date\":\"2025-06-03\",\"file\":\"uploads\\/entity_profile\\/23\\/subscribed_audit_template\\/24\\/documants\\/1749099234_80497ed55df29f3c4470.pdf\",\"user_comments\":\"\",\"auditor_comments\":null},{\"name\":\"fdgdfgdf\",\"date\":\"2025-06-02\",\"file\":\"uploads\\/entity_profile\\/23\\/subscribed_audit_template\\/24\\/documants\\/1749099234_0d89b3c70d75b9a0ab7a.pdf\",\"user_comments\":\"\",\"auditor_comments\":null}]', 'Good', NULL, 1, '2025-06-05 04:53:54', 112, '2025-06-05 04:53:54', 112, 23, 'farmers', NULL, NULL),
(25, 5, 44, '[{\"name\":\"farming dta\",\"date\":\"\",\"file\":null,\"user_comments\":\"\",\"auditor_comments\":null},{\"name\":\"others\",\"date\":\"\",\"file\":null,\"user_comments\":\"\",\"auditor_comments\":null},{\"name\":\"fdgfd\",\"date\":\"\",\"file\":null,\"user_comments\":\"\",\"auditor_comments\":null}]', 'Good', NULL, 1, '2025-06-05 05:14:51', 112, '2025-06-05 05:14:51', 112, 23, 'farmers', NULL, NULL),
(26, 7, 50, '[{\"name\":\"Reports\",\"date\":\"2025-06-04\",\"file\":\"uploads\\/entity_profile\\/23\\/subscribed_audit_template\\/26\\/documants\\/1749100669_97e7710cbf6111f95400.pdf\",\"user_comments\":\"\",\"auditor_comments\":\"\",\"doc_status\":\"not_selected\"}]', 'Good', '', 6, '2025-06-05 05:17:49', 112, '2025-06-05 05:18:30', 112, 23, 'farmers', '2025-06-05 10:48:30', 100),
(27, 6, 50, '[{\"name\":\"Financial Reports\",\"date\":\"2025-07-05\",\"file\":\"uploads\\/entity_profile\\/38\\/subscribed_audit_template\\/27\\/documants\\/1751699191_08a3b08539e51ef31d4f.pdf\",\"user_comments\":\"NA\",\"auditor_comments\":null}]', 'NA', NULL, 1, '2025-07-05 07:06:31', 51, '2025-07-05 07:06:31', 51, 38, 'organisation', NULL, NULL),
(28, 2, 45, '[{\"name\":\"anuval reports\",\"date\":\"2025-07-10\",\"file\":\"uploads\\/entity_profile\\/54\\/subscribed_audit_template\\/28\\/documants\\/1752128954_f234e4e49f63cf1e5ca6.pdf\",\"user_comments\":\"\",\"auditor_comments\":null},{\"name\":\"quaterly_reports\",\"date\":\"2025-07-10\",\"file\":\"uploads\\/entity_profile\\/54\\/subscribed_audit_template\\/28\\/documants\\/1752128954_ea6da28fa52d21ebfb2c.pdf\",\"user_comments\":\"\",\"auditor_comments\":null}]', 'Thank you for conducting the audit at GreenHarvest Rice Farms on 10th July 2025. We appreciate your detailed observations, guidance, and support throughout the process.\r\nThe audit helped us identify key areas for improvement and implement corrective ', NULL, 1, '2025-07-10 06:29:14', 135, '2025-07-10 06:29:14', 135, 54, 'fpo', NULL, NULL);

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

--
-- Table structure for table `water_management`
--

CREATE TABLE `water_management` (
  `id` int(11) NOT NULL,
  `farm_crop_id` int(11) DEFAULT NULL,
  `Water_Source` varchar(255) DEFAULT NULL,
  `Water_Storage` varchar(255) DEFAULT NULL,
  `Water_Conservation_Techniques` varchar(255) DEFAULT NULL,
  `Water_Testing` varchar(255) DEFAULT NULL,
  `Water_Harvesting_Structures` varchar(255) DEFAULT NULL,
  `Legal_and_Regulatory_Compliance` varchar(255) DEFAULT NULL,
  `Unit_of_Water_Quantity` varchar(255) DEFAULT NULL,
  `Remark` varchar(255) DEFAULT NULL,
  `water_volum_crop_wise` text DEFAULT NULL,
  `document` text DEFAULT NULL,
  `status` int(11) DEFAULT 1,
  `entity_id` int(11) DEFAULT NULL,
  `associated_by` varchar(10) DEFAULT NULL,
  `created_by` int(11) DEFAULT NULL,
  `updated_by` int(11) DEFAULT NULL,
  `created_at` datetime DEFAULT current_timestamp(),
  `updated_at` datetime DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `season` varchar(255) DEFAULT NULL,
  `year` int(11) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `water_management`
--

INSERT INTO `water_management` (`id`, `farm_crop_id`, `Water_Source`, `Water_Storage`, `Water_Conservation_Techniques`, `Water_Testing`, `Water_Harvesting_Structures`, `Legal_and_Regulatory_Compliance`, `Unit_of_Water_Quantity`, `Remark`, `water_volum_crop_wise`, `document`, `status`, `entity_id`, `associated_by`, `created_by`, `updated_by`, `created_at`, `updated_at`, `season`, `year`) VALUES
(1, 3, 'Rainwater', 'fdf', 'dsfds', 'fdsf', 'dsfdsfdsf', 'dfdsfdsf', 'Gallons', ' dfdsfsd', '[{\"crop_type\":\"weet\",\"water\":\"34\"},{\"crop_type\":\"rise\",\"water\":\"4\"}]', '', 0, 33, 'fpo', 45, 45, '2025-05-10 17:45:35', '2025-05-11 09:33:07', NULL, NULL),
(2, 3, 'Rainwater', 'fdf', 'dsfds', 'fdsf', 'dsfdsfdsf', 'dfdsfdsf', 'Gallons', ' dfdsfsd ', '[{\"crop_type\":\"weet\",\"water\":\"34\"},{\"crop_type\":\"rise\",\"water\":\"4\"}]', '[{\"name\":\"fsdfdsf\",\"date\":\"2025-05-27\",\"file\":\"uploads\\/entity_profile\\/33\\/crop_water_management\\/2\\/documants\\/1746956002_ae8aeff8777ab1a96074.xlsx\"}]', 0, 33, 'fpo', 45, 45, '2025-05-10 17:45:39', '2025-05-11 09:33:33', NULL, NULL),
(3, 3, 'Rainwater', 'fdf', 'dsfds', 'fdsf', 'dsfdsfdsf', 'dfdsfdsf', 'Gallons', ' dfdsfsd', '[{\"crop_type\":\"weet\",\"water\":\"34\"},{\"crop_type\":\"rise\",\"water\":\"4\"}]', '', 1, 33, 'fpo', 45, 45, '2025-05-10 17:46:00', '2025-05-10 12:16:00', NULL, NULL),
(4, 3, 'Rainwater', 'fdf', 'dsfds', 'fdsf', 'dsfdsfdsf', 'dfdsfdsf', 'Gallons', ' dfdsfsd', '[{\"crop_type\":\"weet\",\"water\":\"34\"},{\"crop_type\":\"rise\",\"water\":\"4\"}]', '', 1, 33, 'fpo', 45, 45, '2025-05-10 17:46:18', '2025-05-10 12:16:18', NULL, NULL),
(5, 3, 'Rainwater', 'fdf', 'dsfds', 'fdsf', 'dsfdsfdsf', 'dfdsfdsf', 'Litres', ' dfdsfsd         ', '[{\"crop_type\":\"weet\",\"water\":\"4\"},{\"crop_type\":\"rise\",\"water\":\"4322\"}]', '[{\"name\":\"fdsfsdf\",\"date\":\"2025-05-05\",\"file\":\"uploads\\/entity_profile\\/33\\/crop_water_management\\/5\\/documants\\/1746899181_a78189ff592a1a60fc27.xlsx\"}]', 1, 33, 'fpo', 45, 45, '2025-05-10 17:46:21', '2025-05-11 03:59:21', NULL, NULL),
(6, 4, 'Ground', 'FDH', 'FGH', 'FGH', 'FGH', 'GH', 'Gallons', ' GF', '[{\"crop_type\":\"Hybrid Basmati Rice\",\"water\":\"645\"}]', '[{\"name\":\"dsf\",\"date\":\"2025-05-20\",\"file\":\"uploads\\/entity_profile\\/16\\/crop_water_management\\/6\\/documants\\/1747742917_f2f42038d50125a15351.pdf\"}]', 0, 16, 'farmers', 71, 71, '2025-05-20 12:08:37', '2025-05-20 19:46:46', NULL, NULL),
(7, 4, 'Ground', '567', '567', '67', '657', 'wetert', 'Gallons', ' 567 ', '[{\"crop_type\":\"fdg\",\"water\":\"546\"},{\"crop_type\":\"fdg\",\"water\":\"45\"}]', '[{\"name\":\"56765\",\"date\":\"2025-05-26\",\"file\":\"uploads\\/entity_profile\\/16\\/crop_water_management\\/7\\/documants\\/1747770004_9022700a8f56e1d5f67f.pdf\"}]', 1, 16, 'farmers', 71, 71, '2025-05-20 19:40:04', '2025-05-20 14:15:07', NULL, NULL),
(8, 7, 'Surface', '', '', '', '', '', 'Gallons', '  ', '[{\"crop_type\":\"676\",\"water\":\"656\"}]', '[]', 1, 15, 'farmers', 64, 64, '2025-05-29 02:31:05', '2025-05-29 03:59:42', NULL, 2025),
(9, 9, 'Rainwater', 'fggd', '', '', '', '', 'Gallons', ' ', '[{\"crop_type\":\"gf\",\"water\":\"34\"},{\"crop_type\":\"fdgfdg\",\"water\":\"44\"}]', '[]', 1, 11, 'farmers', 61, 61, '2025-05-29 16:40:23', '2025-05-29 16:40:23', 'Kharif', 2009),
(10, 13, 'Surface', '', '', '', '', '', 'Gallons', ' ', '[{\"crop_type\":\"weet\",\"water\":\"5\"}]', '[]', 1, 33, 'fpo', 45, 45, '2025-05-30 08:45:15', '2025-05-30 08:45:15', NULL, 2025),
(11, 14, 'Surface', '', '', '', '', '', 'Gallons', ' Good  ', '[{\"crop_type\":\"Leaves\",\"water\":\"34\"}]', '[]', 1, 47, 'fpo', 82, 82, '2025-06-02 14:45:46', '2025-06-05 04:28:42', 'Kharif', 2025),
(12, 15, 'Surface', '', '', '', '', '', 'Gallons', ' Good', '[{\"crop_type\":\"Leaves\",\"water\":\"34\"}]', '[]', 1, 23, 'farmers', 112, 112, '2025-06-03 05:39:56', '2025-06-03 05:39:56', 'Kharif', 2025),
(13, 14, 'Rainwater', '', '', '', '', '', 'Gallons', ' Good', '[{\"crop_type\":\"Leaves\",\"water\":\"48\"}]', '[]', 1, 47, 'fpo', 82, 82, '2025-06-04 11:00:19', '2025-06-04 11:00:19', 'Zaid', 2025),
(14, 17, 'Ground', 'Na', 'Na', 'Na', 'NA', 'Na', 'Gallons', ' Na ', '[{\"crop_type\":\"Chilli\",\"water\":\"500000\"}]', '[{\"name\":\"Chilli\",\"date\":\"2025-06-03\",\"file\":\"uploads\\/entity_profile\\/54\\/crop_water_management\\/14\\/documants\\/1750235502_27413154f5180618348d.pdf\"}]', 1, 54, 'fpo', 135, 135, '2025-06-18 08:31:42', '2025-07-29 07:39:45', 'Rabi', 2025),
(15, 21, 'Ground', 'Na', 'Na', 'NA', 'NA', 'Na', 'Gallons', ' NA', '[{\"crop_type\":\"chilli\",\"water\":\"100000\"}]', '[{\"name\":\"Chilli\",\"date\":\"2025-06-05\",\"file\":\"uploads\\/entity_profile\\/30\\/crop_water_management\\/15\\/documants\\/1754039937_49fa68f4d56b028a1680.pdf\"}]', 1, 30, 'farmers', 145, 145, '2025-08-01 09:18:57', '2025-08-01 09:18:57', 'Rabi', 2015);

--
-- Indexes for dumped tables
--

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

--
-- AUTO_INCREMENT for dumped tables
--

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

--
-- AUTO_INCREMENT for table `audit_company_logs`
--
ALTER TABLE `audit_company_logs`
  MODIFY `id` int(255) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=48;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

--
-- AUTO_INCREMENT for table `farm_crop_details`
--
ALTER TABLE `farm_crop_details`
  MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=22;

--
-- AUTO_INCREMENT for table `farm_inspection`
--
ALTER TABLE `farm_inspection`
  MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;

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

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

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

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

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

--
-- AUTO_INCREMENT for table `internal_farm_inspection`
--
ALTER TABLE `internal_farm_inspection`
  MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5;

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

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

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

--
-- AUTO_INCREMENT for table `mass_balance_register`
--
ALTER TABLE `mass_balance_register`
  MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=6;

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

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

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

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

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

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

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

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

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

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

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

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

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

/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
