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

START TRANSACTION;



--
-- Database: `cube_sales_sms`
--

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

--
-- Table structure for table `annexure`
--

CREATE TABLE `annexure` (
  `id` bigint(11) NOT NULL,
  `group_name` varchar(100) NOT NULL,
  `parent_product` varchar(100) NOT NULL,
  `sub_product_json` longtext NOT NULL,
  `customer_code` varchar(100) NOT NULL,
  `created_at` timestamp NOT NULL DEFAULT current_timestamp()
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;



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

--
-- Table structure for table `area_type`
--

CREATE TABLE `area_type` (
  `area_type` varchar(255) NOT NULL,
  `order` int(11) NOT NULL,
  `parent` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

--
-- Dumping data for table `area_type`
--

INSERT INTO `area_type` (`area_type`, `order`, `parent`) VALUES
('Area', 3, 0),
('Region', 2, 1),
('Zone', 1, 0);

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

--
-- Table structure for table `calendar`
--

CREATE TABLE `calendar` (
  `calendar_id` int(11) NOT NULL,
  `type` varchar(50) NOT NULL,
  `description` longtext NOT NULL,
  `note` longtext NOT NULL,
  `expected_date` datetime NOT NULL,
  `status` int(11) NOT NULL,
  `reminder_json` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL CHECK (json_valid(`reminder_json`)),
  `employee_code` varchar(50) NOT NULL,
  `contact_person_id` int(11) NOT NULL,
  `customer_code` varchar(50) NOT NULL,
  `created_date` datetime NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

--
-- Dumping data for table `calendar`

--
-- Table structure for table `collection`
--

CREATE TABLE `collection` (
  `collection_id` int(11) NOT NULL,
  `customer_code` varchar(50) NOT NULL,
  `contact_person_id` int(11) NOT NULL,
  `employee_code` varchar(50) NOT NULL,
  `payment_amount` double NOT NULL,
  `payment_mode` varchar(255) NOT NULL,
  `reference_number` varchar(255) NOT NULL,
  `notes` text NOT NULL,
  `longitude` varchar(255) NOT NULL,
  `latitude` varchar(255) NOT NULL,
  `payment_date` datetime NOT NULL DEFAULT current_timestamp(),
  `payment_status` varchar(255) NOT NULL,
  `approving_manager` varchar(255) NOT NULL,
  `approving_date` datetime NOT NULL DEFAULT current_timestamp(),
  `reciept_link` varchar(250) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

--
-- Dumping data for table `collection`

-- Table structure for table `contacts`
--

CREATE TABLE `contacts` (
  `id` int(11) NOT NULL,
  `customer_id` varchar(50) NOT NULL,
  `contact_person_name` varchar(255) NOT NULL,
  `contact_person_phone` varchar(255) NOT NULL,
  `contact_person_mail` varchar(255) NOT NULL,
  `contact_person_designation` varchar(255) NOT NULL,
  `status` int(2) NOT NULL DEFAULT 1
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

--
-- Dumping data for table `contacts`
-- Table structure for table `customer`
--

CREATE TABLE `customer` (
  `customer_id` varchar(50) NOT NULL,
  `customerCodeCount` bigint(10) NOT NULL,
  `category_type` int(11) NOT NULL,
  `name` varchar(255) NOT NULL,
  `address` varchar(255) NOT NULL,
  `email` varchar(255) NOT NULL,
  `phone_number` varchar(255) NOT NULL,
  `pin_code` varchar(25) DEFAULT NULL,
  `location_id` int(11) NOT NULL,
  `latitude` varchar(255) NOT NULL,
  `longitude` varchar(255) NOT NULL,
  `gst` bigint(10) NOT NULL,
  `register_no` varchar(255) NOT NULL,
  `balance_amount` double NOT NULL,
  `create_date` datetime DEFAULT NULL,
  `updated_date` datetime DEFAULT NULL,
  `customer_data_json` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL CHECK (json_valid(`customer_data_json`)),
  `status` int(2) NOT NULL DEFAULT 1
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

--
-- Dumping data for table `customer`

-- Table structure for table `customer_products`
--

CREATE TABLE `customer_products` (
  `id` int(11) NOT NULL,
  `customer_id` varchar(50) NOT NULL,
  `product_id` varchar(50) NOT NULL,
  `parent_product` varchar(255) NOT NULL,
  `type` varchar(255) NOT NULL,
  `variant_name` varchar(50) NOT NULL,
  `price` double NOT NULL,
  `sub_products_json` longtext NOT NULL,
  `last_purchase_date` datetime NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

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

--
-- Table structure for table `customer_product_discount`
--

CREATE TABLE `customer_product_discount` (
  `customer_code` varchar(255) NOT NULL,
  `product_code` varchar(255) NOT NULL,
  `product_json` longtext NOT NULL,
  `comment` varchar(255) NOT NULL,
  `created_at` timestamp NOT NULL DEFAULT current_timestamp()
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

--


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

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

CREATE TABLE `department` (
  `id` int(11) NOT NULL,
  `department` varchar(255) NOT NULL,
  `created_at` datetime NOT NULL DEFAULT current_timestamp(),
  `status` int(11) NOT NULL DEFAULT 1
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

--
-- Table structure for table `department_permissions`
--

CREATE TABLE `department_permissions` (
  `department` varchar(150) NOT NULL,
  `allow_bill_export` int(2) NOT NULL DEFAULT 0,
  `allow_status_change` int(2) NOT NULL DEFAULT 0,
  `finance` int(2) NOT NULL DEFAULT 0
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

--
--
-- Table structure for table `designation`
--

CREATE TABLE `designation` (
  `id` int(11) NOT NULL,
  `role` varchar(255) NOT NULL,
  `department` varchar(255) NOT NULL,
  `designation` varchar(255) NOT NULL,
  `order` int(11) NOT NULL,
  `status` int(11) NOT NULL DEFAULT 1,
  `created_at` datetime NOT NULL DEFAULT current_timestamp()
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

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

--
-- Table structure for table `employee_roles`
--

CREATE TABLE `employee_roles` (
  `id` int(11) NOT NULL,
  `role` varchar(255) NOT NULL,
  `role_order` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

--
-- Dumping data for table `employee_roles`
--

INSERT INTO `employee_roles` (`id`, `role`, `role_order`) VALUES
(1, 'Admin', 1),
(2, 'Manager', 2),
(3, 'Employee', 3);

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

--
-- Table structure for table `locations`
--

CREATE TABLE `locations` (
  `id` int(11) NOT NULL,
  `location_name` varchar(255) NOT NULL,
  `area_type` varchar(255) NOT NULL,
  `location_parent_id` int(11) NOT NULL,
  `order_parent_id` int(11) NOT NULL,
  `manager` varchar(50) DEFAULT NULL,
  `description` varchar(255) DEFAULT NULL,
  `area_code` varchar(50) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

--
-- Dumping data for table `locations`
--

INSERT INTO `locations` (`id`, `location_name`, `area_type`, `location_parent_id`, `order_parent_id`, `manager`, `description`, `area_code`) VALUES
(1, 'South Zone', 'Zone', 0, 0, NULL, NULL, ''),
(2, 'North Zone', 'Zone', 0, 0, NULL, NULL, ''),
(3, 'Thiruvananthapuram', 'Region', 1, 1, 'Emp0002', NULL, ''),
(5, 'Attingal', 'Area', 3, 0, NULL, NULL, 'AT'),
(6, 'Varkala', 'Area', 3, 0, NULL, NULL, 'VR'),
(7, 'Malappuram', 'Region', 2, 0, NULL, NULL, ''),
(8, 'Nilambur', 'Area', 7, 0, NULL, NULL, 'NL');

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

--
-- Table structure for table `organization`
--

CREATE TABLE `organization` (
  `organization_id` int(11) NOT NULL,
  `organization_name` varchar(255) NOT NULL,
  `organization_address` text NOT NULL,
  `state` varchar(255) NOT NULL,
  `pincode` int(11) NOT NULL,
  `organization_mobile` varchar(15) NOT NULL,
  `drug_license_number` varchar(255) NOT NULL,
  `organization_email` varchar(150) NOT NULL,
  `organization_logo` varchar(255) DEFAULT NULL,
  `qr_code_img` varchar(255) DEFAULT NULL,
  `gst_in` varchar(255) NOT NULL,
  `updated_date` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

--
-- Dumping data for table `organization`
--

INSERT INTO `organization` (`organization_id`, `organization_name`, `organization_address`, `state`, `pincode`, `organization_mobile`, `drug_license_number`, `organization_email`, `organization_logo`, `qr_code_img`, `gst_in`, `updated_date`) VALUES

(1, 'Siva Medicals', 'Trivandrum', 'Kerala', 678678, '9999999999', '54673', 'sivamed@gmail.com', 'images/blog1.png', 'images/download (2).png', '4645', NULL);

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

--
-- Table structure for table `products`
--

CREATE TABLE `products` (
  `Manufacturer` varchar(255) NOT NULL,
  `diagnosticCategory` varchar(255) NOT NULL,
  `productSubject` varchar(255) NOT NULL,
  `productType` varchar(255) NOT NULL,
  `productCode` varchar(255) NOT NULL,
  `productName` varchar(255) NOT NULL,
  `productDescription` longtext NOT NULL,
  `hsnCode` varchar(255) NOT NULL,
  `gstPercentage` varchar(255) NOT NULL,
  `product_detailes` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL,
  `product_stock` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL CHECK (json_valid(`product_stock`))
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;



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

--
-- Table structure for table `product_master_data`
--

CREATE TABLE `product_master_data` (
  `date` date,
  `product_json` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL CHECK (json_valid(`product_json`))
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;



--
-- Table structure for table `product_relation`
--

CREATE TABLE `product_relation` (
  `product` varchar(255) NOT NULL,
  `sub_product` varchar(255) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

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

--
-- Table structure for table `product_stock`
--

CREATE TABLE `product_stock` (
  `id` int(11) NOT NULL,
  `productCode` varchar(255) NOT NULL,
  `packSize` varchar(255) NOT NULL,
  `qty` int(11) NOT NULL,
  `productPrice` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

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

--
-- Table structure for table `prospects`
--

CREATE TABLE `prospects` (
  `prospect_code` varchar(50) NOT NULL,
  `prospect_type` int(11) NOT NULL,
  `employee_id` varchar(50) NOT NULL,
  `name` varchar(255) NOT NULL,
  `address` varchar(255) NOT NULL,
  `email` varchar(255) NOT NULL,
  `phone_number` varchar(255) NOT NULL,
  `pin_code` varchar(25) DEFAULT NULL,
  `location_id` int(11) NOT NULL,
  `latitude` varchar(255) NOT NULL,
  `longitude` varchar(255) NOT NULL,
  `gst` varchar(255) NOT NULL,
  `prospect_status` int(2) NOT NULL DEFAULT 1,
  `register_no` varchar(255) NOT NULL,
  `create_date` datetime DEFAULT NULL,
  `status` int(2) NOT NULL DEFAULT 1
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

--


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

--
-- Table structure for table `prospect_category`
--

CREATE TABLE `prospect_category` (
  `id` int(11) NOT NULL,
  `role` varchar(255) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

--
-- Dumping data for table `prospect_category`
--

INSERT INTO `prospect_category` (`id`, `role`) VALUES
(1, 'Class A'),
(2, 'Class B'),
(3, 'Class C'),
(4, 'Class D');

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

--
-- Table structure for table `quotation`
--

CREATE TABLE `quotation` (
  `quotationNo` bigint(11) NOT NULL,
  `quotation_number` int(11) NOT NULL,
  `employee_code` varchar(255) NOT NULL,
  `customer_code` varchar(255) NOT NULL,
  `contact_person_id` varchar(255) NOT NULL,
  `quotation_date` datetime NOT NULL,
  `valid_from` datetime NOT NULL,
  `valid_to` datetime NOT NULL,
  `gst` int(11) NOT NULL,
  `terms_condition` longtext NOT NULL,
  `productCode` varchar(255) DEFAULT NULL,
  `product_name` varchar(100) NOT NULL,
  `qty` int(11) DEFAULT NULL,
  `price` double DEFAULT NULL,
  `discount` int(11) NOT NULL,
  `variant_name` varchar(255) NOT NULL,
  `sub_product_json` longtext DEFAULT NULL,
  `status` varchar(255) NOT NULL,
  `approved_by` varchar(255) NOT NULL,
  `approve_date` datetime NOT NULL,
  `pdf_link` text DEFAULT NULL,
  `created_date` datetime NOT NULL,
  `isCustomer` tinyint(1) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

--


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

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

CREATE TABLE `roles` (
  `role` varchar(255) NOT NULL,
  `role_order` int(11) NOT NULL,
  `area_type` varchar(255) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

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

INSERT INTO `roles` (`role`, `role_order`, `area_type`) VALUES
('Admin', 1, NULL);

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

--
-- Table structure for table `salesrep_location`
--

CREATE TABLE `salesrep_location` (
  `id` int(11) NOT NULL,
  `area_id` int(11) NOT NULL,
  `employee_id` varchar(50) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

--
-- Dumping data for table `salesrep_location`
--

INSERT INTO `salesrep_location` (`id`, `area_id`, `employee_id`) VALUES
(1, 3, 'Emp0002'),
(2, 5, ''),
(3, 5, 'Emp0003'),
(4, 0, ''),
(5, 0, '');

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

--
-- Table structure for table `sales_note`
--

CREATE TABLE `sales_note` (
  `id` int(11) NOT NULL,
  `employee_Id` varchar(50) NOT NULL,
  `customer_id` varchar(50) NOT NULL,
  `note` longtext NOT NULL,
  `status` int(2) NOT NULL DEFAULT 1,
  `discussion_date` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

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

--
-- Table structure for table `sales_order`
--

CREATE TABLE `sales_order` (
  `sales_order_no` varchar(50) NOT NULL,
  `employee_code` varchar(50) NOT NULL,
  `customer_code` varchar(50) NOT NULL,
  `contact_person_id` int(11) NOT NULL,
  `total_amount` double NOT NULL,
  `order_comments` varchar(255) NOT NULL,
  `product_json` longtext NOT NULL,
  `order_date` datetime NOT NULL,
  `scheduled_delivery` date DEFAULT NULL,
  `pdf_link` text DEFAULT NULL,
  `bill_link` varchar(250) NOT NULL,
  `order_status` int(2) NOT NULL DEFAULT 1
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

--

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

--
-- Table structure for table `target`
--

CREATE TABLE `target` (
  `target_id` int(11) NOT NULL,
  `target_to` varchar(55) NOT NULL,
  `target_to_type` varchar(55) NOT NULL,
  `product` varchar(55) NOT NULL,
  `type` varchar(55) NOT NULL,
  `subject` varchar(11) NOT NULL,
  `from_date` date NOT NULL,
  `to_date` date NOT NULL,
  `target_amount` double NOT NULL,
  `target_assinee` varchar(55) NOT NULL,
  `entry_date` datetime NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

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

--
-- Table structure for table `trip_category`
--

CREATE TABLE `trip_category` (
  `trip_type` varchar(50) NOT NULL,
  `rate_km` double NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

--
-- Dumping data for table `trip_category`
--

INSERT INTO `trip_category` (`trip_type`, `rate_km`) VALUES
('Inner', 10),
('Outer', 20);

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

--
-- Table structure for table `trip_docs`
--

CREATE TABLE `trip_docs` (
  `trip_id` int(11) NOT NULL,
  `employee_code` varchar(50) NOT NULL,
  `trip_doc` varchar(255) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

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

--
-- Table structure for table `trip_entry`
--

CREATE TABLE `trip_entry` (
  `trip_id` int(11) NOT NULL,
  `employee_code` varchar(50) NOT NULL,
  `type` varchar(50) NOT NULL,
  `start_date_time` datetime DEFAULT NULL,
  `end_date_time` datetime DEFAULT NULL,
  `total_distance` double DEFAULT NULL,
  `rate_total` double DEFAULT NULL,
  `emp_distance` double DEFAULT NULL,
  `emp_expense` double DEFAULT NULL,
  `status` varchar(50) DEFAULT NULL,
  `location_json` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL CHECK (json_valid(`location_json`)),
  `record_update_time` datetime DEFAULT NULL,
  `current_latitude` varchar(255) DEFAULT NULL,
  `current_longitude` varchar(255) DEFAULT NULL,
  `approved_by` varchar(50) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

--
-- Dumping data for table `trip_entry`
--

INSERT INTO `trip_entry` (`trip_id`, `employee_code`, `type`, `start_date_time`, `end_date_time`, `total_distance`, `rate_total`, `emp_distance`, `emp_expense`, `status`, `location_json`, `record_update_time`, `current_latitude`, `current_longitude`, `approved_by`) VALUES
(1, 'Emp0003', 'Inner', '2024-01-10 14:57:41', '2024-01-10 14:57:54', NULL, 0, 1, 10, 'Pending', NULL, NULL, NULL, NULL, NULL);


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

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

--
-- Indexes for table `calendar`
--
ALTER TABLE `calendar`
  ADD PRIMARY KEY (`calendar_id`);

--
-- Indexes for table `collection`
--
ALTER TABLE `collection`
  ADD PRIMARY KEY (`collection_id`);

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

--
-- Indexes for table `customer`
--
ALTER TABLE `customer`
  ADD PRIMARY KEY (`customer_id`);

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

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

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

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

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

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

--
-- Indexes for table `organization`
--
ALTER TABLE `organization`
  ADD PRIMARY KEY (`organization_id`);

--
-- Indexes for table `products`
--
ALTER TABLE `products`
  ADD PRIMARY KEY (`productCode`);

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

--
-- Indexes for table `prospects`
--
ALTER TABLE `prospects`
  ADD PRIMARY KEY (`prospect_code`);

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

--
-- Indexes for table `quotation`
--
ALTER TABLE `quotation`
  ADD PRIMARY KEY (`quotationNo`);

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

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

--
-- Indexes for table `sales_order`
--
ALTER TABLE `sales_order`
  ADD PRIMARY KEY (`sales_order_no`);

--
-- Indexes for table `target`
--
ALTER TABLE `target`
  ADD PRIMARY KEY (`target_id`);

--
-- Indexes for table `trip_entry`
--
ALTER TABLE `trip_entry`
  ADD PRIMARY KEY (`trip_id`);

--
-- AUTO_INCREMENT for dumped tables
--

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

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

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

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

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

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

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

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

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

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

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

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

--
-- AUTO_INCREMENT for table `quotation`
--
ALTER TABLE `quotation`
  MODIFY `quotationNo` bigint(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;

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

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

--
-- AUTO_INCREMENT for table `target`
--
ALTER TABLE `target`
  MODIFY `target_id` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `trip_entry`
--
ALTER TABLE `trip_entry`
  MODIFY `trip_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;
COMMIT;

