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




--
-- Database: `mod_db`
--

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

--
-- Table structure for table `failed_jobs`
--

CREATE TABLE `failed_jobs` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `connection` text COLLATE utf8_unicode_ci NOT NULL,
  `queue` text COLLATE utf8_unicode_ci NOT NULL,
  `payload` longtext COLLATE utf8_unicode_ci NOT NULL,
  `exception` longtext COLLATE utf8_unicode_ci NOT NULL,
  `failed_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

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

--
-- Table structure for table `m01_01registered_users`
--

CREATE TABLE `m01_01registered_users` (
  `regno` varchar(10) COLLATE utf8_unicode_ci NOT NULL COMMENT 'Yynnnnnn',
  `user_firstname` varchar(100) COLLATE utf8_unicode_ci NOT NULL,
  `user_lastname` varchar(100) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `user_shortname` varchar(100) COLLATE utf8_unicode_ci NOT NULL,
  `address_line_1` varchar(100) COLLATE utf8_unicode_ci NOT NULL,
  `address_line_2` varchar(100) COLLATE utf8_unicode_ci NOT NULL,
  `address_line_3` varchar(100) COLLATE utf8_unicode_ci NOT NULL,
  `postcode` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
  `dist_id` varchar(10) COLLATE utf8_unicode_ci NOT NULL,
  `longitude` varchar(10) COLLATE utf8_unicode_ci NOT NULL,
  `lattitude` varchar(10) COLLATE utf8_unicode_ci NOT NULL,
  `mobile_no_1` varchar(10) COLLATE utf8_unicode_ci NOT NULL,
  `mobile_no_2` varchar(10) COLLATE utf8_unicode_ci NOT NULL,
  `email_address` varchar(100) COLLATE utf8_unicode_ci NOT NULL,
  `type_of_id` varchar(5) COLLATE utf8_unicode_ci NOT NULL,
  `person_id` varchar(15) COLLATE utf8_unicode_ci NOT NULL,
  `gender` char(1) COLLATE utf8_unicode_ci NOT NULL COMMENT 'M - Male, F - Female',
  `preferred_lang` varchar(5) COLLATE utf8_unicode_ci NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `created_by` varchar(10) COLLATE utf8_unicode_ci NOT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `edited_by` varchar(10) COLLATE utf8_unicode_ci NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `m01_01registered_users`
--

INSERT INTO `m01_01registered_users` (`regno`, `user_firstname`, `user_lastname`, `user_shortname`, `address_line_1`, `address_line_2`, `address_line_3`, `postcode`, `dist_id`, `longitude`, `lattitude`, `mobile_no_1`, `mobile_no_2`, `email_address`, `type_of_id`, `person_id`, `gender`, `preferred_lang`, `created_at`, `created_by`, `updated_at`, `edited_by`) VALUES
('20000001', 'Saman', 'Perera', 'Saman', '\'wasana\'', 'Andersan rd', 'Dehiwala', '0112', 'CO', '79', '6', '0710147030', '0713996587', 'samanp@gmail.com', 'NIC', '567845666v', 'M', 'ENG', NULL, '10', NULL, '10'),
('20000002', 'Rohan', 'Peris', 'Rohan', 'Reo park', 'Victoria', 'Kotte', '0112', 'CO', '79.8663559', '6.8599379', '0774563215', '0774563988', 'rohan@gmail.com', 'NIC', '807654344v', 'M', 'ENG', NULL, '10', NULL, '10'),
('20000003', 'Imran', 'Saleem', 'Powl', '45/7', 'Galagedara', 'Galle', '0346', 'GL', '79', '6', '0778911186', '0718911186', 'powl@gmail.com', 'NIC', '907865466v', 'M', 'ENG', NULL, 'UI20000003', NULL, 'UI20000003'),
('20000005', 'Dimith', 'Perera', 'DPerera', '521', 'Kalubowila', 'Dehowala', '32200', 'CO', '79', '6', '0779105471', '0779105471', 'dperera@gmail.com', 'NIC', '892032346v', 'M', 'ENG', NULL, 'UI20000005', NULL, 'UI20000005'),
('20000006', 'Thasneem', 'Mohamed', 'Thasni', '87b', 'Hospital road', 'Dehiwala', '32200', 'CO', '79.8687657', '6.880043', '0774065294', '0774065294', 'tasneems@gmail.com', 'NIC', '962032346v', 'M', 'ENG', NULL, 'UI20000006', NULL, 'UI20000006'),
('20000007', 'Abc', 'Def', 'Abc', 'Qweqw', 'Qww', '', '123', 'GQ', '79.8663594', '6.859925', '0772242919', '', 'Abc@gmail.com', 'NIC', '911641234v', 'M', 'SIN', NULL, 'UI20000007', NULL, 'UI20000007'),
('20000008', 'Samasha', 'Dushanthi', 'Sama', 'Shanthi', '2nd lane', 'Kotte', '011co', 'CO', '79.8663558', '6.8599378', '0777735612', '0777735612', '', 'NIC', '947556789v', 'F', 'ENG', '2020-02-24 22:57:44', '', '2020-02-24 22:57:44', ''),
('20000009', 'Nimal', 'Siripala', 'Ns', '16 Atapattu Mawatha', '', '', '10350', 'CO', '79.8663561', '6.859938', '0772375571', '', 'ccmkt2019@gmail.com', 'NIC', '901271836v', 'M', 'ENG', NULL, 'UI20000009', NULL, 'UI20000009'),
('20000010', 'Gayan', 'Laknath', 'Madusank', 'Galahitiya', 'Godakawela', '', '70160', 'CO', '79.8663582', '6.8599466', '0771234567', '', 'G@gmail.com', 'NIC', '950883219v', 'M', 'ENG', NULL, 'UI20000010', NULL, 'UI20000010'),
('20000011', 'Chathu', 'Madhu', 'MC', 'P.O. Box 166,', 'happy', 'Dehiwala', '094', 'HB', '22', '12', '0777635612', '0777635645', 'chathu65dft@gmail.com', 'NIC', '933430783v', 'M', 'ENG', NULL, 'UI20000011', NULL, 'UI20000011');

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

--
-- Table structure for table `m01_02user_svc`
--

CREATE TABLE `m01_02user_svc` (
  `usersvc_rowno` int(11) NOT NULL,
  `regno` varchar(10) COLLATE utf8_unicode_ci NOT NULL,
  `type_code` varchar(10) COLLATE utf8_unicode_ci NOT NULL,
  `active` char(1) COLLATE utf8_unicode_ci NOT NULL DEFAULT '1' COMMENT '1 - YES, 0 - No',
  `other_desc` varchar(200) COLLATE utf8_unicode_ci NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `created_by` varchar(10) COLLATE utf8_unicode_ci NOT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `edited_by` varchar(10) COLLATE utf8_unicode_ci NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `m01_02user_svc`
--

INSERT INTO `m01_02user_svc` (`usersvc_rowno`, `regno`, `type_code`, `active`, `other_desc`, `created_at`, `created_by`, `updated_at`, `edited_by`) VALUES
(77, '20000001', 'DE', '1', '', NULL, '10', NULL, '10'),
(78, '20000002', 'AI', '1', '', NULL, '10', NULL, '10'),
(79, '20000003', 'EQUSLR', '1', '', NULL, 'UI20000003', NULL, 'UI20000003'),
(83, '20000006', 'DE', '1', '', NULL, 'UI20000006', NULL, 'UI20000006'),
(84, '20000005', 'AI', '1', '', NULL, '20000005', NULL, '20000005'),
(85, '20000007', 'DE', '1', '', NULL, 'UI20000007', NULL, 'UI20000007'),
(86, '20000008', 'DE', '1', '', '2020-02-24 22:57:44', '', '2020-02-24 22:57:44', ''),
(87, '20000009', 'AI', '1', '', NULL, 'UI20000009', NULL, 'UI20000009'),
(88, '20000010', 'AI', '1', '', NULL, 'UI20000010', NULL, 'UI20000010'),
(89, '20000011', 'AI', '1', '', NULL, 'UI20000011', NULL, 'UI20000011');

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

--
-- Table structure for table `m01_04user_cattle`
--

CREATE TABLE `m01_04user_cattle` (
  `catle_id` varchar(20) COLLATE utf8_unicode_ci NOT NULL COMMENT 'regno+Yynnnnn',
  `regno` varchar(10) COLLATE utf8_unicode_ci NOT NULL,
  `breed_type` varchar(10) COLLATE utf8_unicode_ci NOT NULL,
  `tag_id` varchar(10) COLLATE utf8_unicode_ci NOT NULL,
  `cattle_name` varchar(100) COLLATE utf8_unicode_ci NOT NULL,
  `catle_dob` date NOT NULL,
  `preferred_semen` int(11) NOT NULL,
  `monthly_yield` decimal(10,2) NOT NULL COMMENT 'daily yield value',
  `created_at` timestamp NULL DEFAULT NULL,
  `created_by` varchar(10) COLLATE utf8_unicode_ci NOT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `edited_by` varchar(10) COLLATE utf8_unicode_ci NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `m01_04user_cattle`
--

INSERT INTO `m01_04user_cattle` (`catle_id`, `regno`, `breed_type`, `tag_id`, `cattle_name`, `catle_dob`, `preferred_semen`, `monthly_yield`, `created_at`, `created_by`, `updated_at`, `edited_by`) VALUES
('200000012000001', '20000001', 'BRD002', '21', 'Sudda', '2002-02-17', 1, '15.00', NULL, '', '2020-02-16 22:33:45', ''),
('200000062000001', '20000006', 'BRD002', 'Tag-1', 'Raththi', '2002-02-17', 1, '8.00', NULL, '', NULL, ''),
('200000062000002', '20000006', 'BRD001', 'Tag-2', 'Test cow', '2005-02-28', 1, '8.00', NULL, '', '2020-02-28 05:38:43', '');

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

--
-- Table structure for table `m01_05aitech_status`
--

CREATE TABLE `m01_05aitech_status` (
  `rowno` int(11) NOT NULL,
  `regno` varchar(10) COLLATE utf8_unicode_ci NOT NULL,
  `engaged_satus` char(1) COLLATE utf8_unicode_ci NOT NULL COMMENT 'A - Available, N - Not Available',
  `current_bookingno` varchar(10) COLLATE utf8_unicode_ci NOT NULL,
  `assignments_accepted` int(11) NOT NULL,
  `assignments_success` int(11) NOT NULL,
  `assignments_declined` int(11) NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `created_by` varchar(10) COLLATE utf8_unicode_ci NOT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `edited_by` varchar(10) COLLATE utf8_unicode_ci NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='This table will carry a record only for AI technicians';

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

--
-- Table structure for table `migrations`
--

CREATE TABLE `migrations` (
  `id` int(10) UNSIGNED NOT NULL,
  `migration` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `batch` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `migrations`
--

INSERT INTO `migrations` (`id`, `migration`, `batch`) VALUES
(1, '2014_10_12_000000_create_users_table', 1),
(2, '2014_10_12_100000_create_password_resets_table', 1),
(3, '2019_08_19_000000_create_failed_jobs_table', 1);

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

--
-- Table structure for table `password_resets`
--

CREATE TABLE `password_resets` (
  `email` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `token` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

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

--
-- Table structure for table `s00_01settings`
--

CREATE TABLE `s00_01settings` (
  `setid` varchar(10) COLLATE utf8_unicode_ci NOT NULL,
  `setval_numeric` decimal(10,2) NOT NULL,
  `setval_string` varchar(100) COLLATE utf8_unicode_ci NOT NULL,
  `set_description` varchar(100) COLLATE utf8_unicode_ci NOT NULL,
  `set_description_si` varchar(100) COLLATE utf8_unicode_ci NOT NULL,
  `set_description_ta` varchar(100) COLLATE utf8_unicode_ci NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `s00_01settings`
--

INSERT INTO `s00_01settings` (`setid`, `setval_numeric`, `setval_string`, `set_description`, `set_description_si`, `set_description_ta`) VALUES
('DEFLAN', '0.00', 'ENG', 'Default Language in package', '', ''),
('RMBRJCTADS', '7.00', 'Number of days to remove rejected ads\r\n', '', '', ''),
('RMRJCTREG', '1.00', '', '', '', '');

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

--
-- Table structure for table `s01_00prodsvcs`
--

CREATE TABLE `s01_00prodsvcs` (
  `prodsvc_id` varchar(10) COLLATE utf8_unicode_ci NOT NULL,
  `product_name_en` varchar(100) COLLATE utf8_unicode_ci NOT NULL,
  `product_name_si` varchar(100) COLLATE utf8_unicode_ci NOT NULL,
  `product_name_ta` varchar(100) COLLATE utf8_unicode_ci NOT NULL,
  `main_prodid` varchar(10) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `is_mainprod` char(1) COLLATE utf8_unicode_ci NOT NULL,
  `have_child` char(1) COLLATE utf8_unicode_ci NOT NULL DEFAULT '0' COMMENT '1 - Yes , 0 - No',
  `created_at` timestamp NULL DEFAULT NULL,
  `created_by` varchar(10) COLLATE utf8_unicode_ci NOT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `edited_by` varchar(10) COLLATE utf8_unicode_ci NOT NULL DEFAULT ''
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `s01_00prodsvcs`
--

INSERT INTO `s01_00prodsvcs` (`prodsvc_id`, `product_name_en`, `product_name_si`, `product_name_ta`, `main_prodid`, `is_mainprod`, `have_child`, `created_at`, `created_by`, `updated_at`, `edited_by`) VALUES
('CATL', 'Cattle', 'ගවයින්', 'கால்நடை', '', '1', '0', NULL, 'Admin', NULL, ''),
('EQU', 'Equipment', 'උපකරණ', 'உபகரணங்கள்', '', '1', '0', NULL, 'Admin', NULL, ''),
('FEED', 'Feed', '', '', '', '1', '1', NULL, 'Admin', NULL, ''),
('FEED_FOD', 'Fodder', 'සත්ව ආහාර', 'தீவனம்', 'FEED', '0', '0', NULL, 'Admin', NULL, ''),
('FEED_SIL', 'Silage', 'silage_SI', 'silage_TA', 'FEED', '0', '0', NULL, 'Admin', NULL, ''),
('SERV', 'Services', '', '', '', '1', '1', NULL, 'Admin', NULL, ''),
('SERV_AI', 'AI Service', 'AI Service_SI', 'AI Service_TA', 'SERV', '0', '0', NULL, 'Admin', NULL, '');

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

--
-- Table structure for table `s01_01svcs_engaged`
--

CREATE TABLE `s01_01svcs_engaged` (
  `type_code` varchar(10) COLLATE utf8_unicode_ci NOT NULL,
  `engd_svc_en` varchar(100) COLLATE utf8_unicode_ci NOT NULL,
  `engd_svc_si` varchar(100) COLLATE utf8_unicode_ci NOT NULL,
  `engd_svc_ta` varchar(100) COLLATE utf8_unicode_ci NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `created_by` varchar(10) COLLATE utf8_unicode_ci NOT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `edited_by` varchar(10) COLLATE utf8_unicode_ci NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `s01_01svcs_engaged`
--

INSERT INTO `s01_01svcs_engaged` (`type_code`, `engd_svc_en`, `engd_svc_si`, `engd_svc_ta`, `created_at`, `created_by`, `updated_at`, `edited_by`) VALUES
('AI', 'AI Service Provider', 'AI සේවා සැපයුම්කරු', 'AI சேவை வழங்குநர்', NULL, '', NULL, ''),
('DE', 'Dairy Entrepreneur', 'Dairy_Entre_SI', 'Dairy_Entre_TA', NULL, '', NULL, ''),
('EQUSLR', 'Equipment Seller', 'Equipment Seller සිංහල', 'Equipment Seller தமிழ்', NULL, '', NULL, ''),
('FODDER', 'Fodder Cultivator', 'ආහාරයට ගන්නා වගාව', 'தீவன சாகுபடி', NULL, '', NULL, ''),
('OTHER', 'Other ...', 'වෙනත්...', 'மற்ற...', NULL, '', NULL, ''),
('SILAGE', 'Silage Enterpriser', 'Sileage En_SI', 'Sileage En_TA', NULL, '', NULL, '');

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

--
-- Table structure for table `s01_fxdval`
--

CREATE TABLE `s01_fxdval` (
  `rowno` int(11) NOT NULL,
  `val_id` varchar(20) COLLATE utf8_unicode_ci NOT NULL,
  `val_des_en` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
  `val_des_si` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
  `val_des_ta` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
  `val_type` varchar(20) COLLATE utf8_unicode_ci NOT NULL,
  `val_ord` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `s01_fxdval`
--

INSERT INTO `s01_fxdval` (`rowno`, `val_id`, `val_des_en`, `val_des_si`, `val_des_ta`, `val_type`, `val_ord`) VALUES
(1, 'SMS', 'SMS', '', '', 'MSG_TYPE', 1),
(2, 'EML', 'E-mail', '', '', 'MSG_TYPE', 2),
(3, 'NIC', 'National Identity Card', 'ජාතික හැඳුනුම්පත', 'தேசிய அடையாள அட்டை', 'ID_TYPE', 1),
(4, 'BR', 'Business Registration', 'ව්‍යාපාර ලියාපදිංචිය', 'தொழில் பதிவு', 'ID_TYPE', 2),
(7, 'F', 'Female', 'ගැහැණු', 'பெண்', 'GENDER', 1),
(8, 'SIN', 'Sinhala', 'සිංහල', 'சிங்களம்', 'LANGUAGE', 1),
(9, 'ENG', 'English', 'ඉංග්‍රීසි', 'ஆங்கிலம்', 'LANGUAGE', 2),
(10, 'TAM', 'Tamil', 'දෙමළ', 'தமிழ்', 'LANGUAGE', 3),
(11, 'A', 'Available', 'ඇත', 'கிடைக்கும்', 'ENGAGED_STATUS', 1),
(12, 'N', 'Not Available', 'නැත', 'கிடைக்கவில்லை', 'ENGAGED_STATUS', 2),
(13, 'SILSA', 'Silage Sale', '', '', 'ADVERT_TYPE', 1),
(14, 'SILPUR', 'Silage Purchase', '', '', 'ADVERT_TYPE', 2),
(15, 'FODSA', 'Fodder Sale', '', '', 'ADVERT_TYPE', 3),
(16, 'FODPUR', 'Fodder Purchase', '', '', 'ADVERT_TYPE', 4),
(17, 'CATSA', 'Cattle Sale', '', '', 'ADVERT_TYPE', 5),
(18, 'CATPUR', 'Cattle Purchase', '', '', 'ADVERT_TYPE', 6),
(19, 'EQUSA', 'Equipment Sales', '', '', 'ADVERT_TYPE', 7),
(20, 'EQUPUR', 'Equipment Purchasing', '', '', 'ADVERT_TYPE', 8),
(21, 'AI', 'AI Technician', '', '', 'ADVERT_TYPE', 9),
(22, '0', 'Not Rated', '', '', 'RATING', 1),
(23, '1', 'Excellent', '', '', 'RATING', 2),
(24, '2', 'Satisfactory', '', '', 'RATING', 3),
(25, '9', 'Unsatisfactory', '', '', 'RATING', 4),
(26, 'LAC', 'Lactating', '', '', 'PARENTING_STATUS', 1),
(27, 'PRG', 'Pregnant', '', '', 'PARENTING_STATUS', 2),
(28, 'S', 'Sold', '', '', 'SOLD_STATUS', 1),
(29, 'A', 'Available', 'ඇත', 'கிடைக்கும்', 'SOLD_STATUS', 2),
(30, 'O', 'Open', '', '', 'PURCH_STATUS', 1),
(31, 'C', 'Close', '', '', 'PURCH_STATUS', 2),
(32, 'PB', 'Polythene Bags', '', '', 'PACKAGING', 1),
(33, 'BRL', 'Barrel', '', '', 'PACKAGING', 2),
(34, 'BAL', 'Bale', '', '', 'PACKAGING', 3),
(35, 'P', 'Private', '', '', 'AIORG_TYPE', 1),
(36, 'G', 'Government', '', '', 'AIORG_TYPE', 2),
(37, 'C', 'Confirmed', '', '', 'AI_RESPONSE', 1),
(38, 'R', 'Rejected', '', '', 'AI_RESPONSE', 2),
(39, 'E', 'Expired', '', '', 'BOOKING_STATUS', 1),
(40, 'R', 'Cancelled', '', '', 'BOOKING_STATUS', 2),
(41, 'C', 'Confirmed', '', '', 'BOOKING_STATUS', 3),
(42, 'X', 'Pending', '', '', 'BOOKING_STATUS', 4),
(43, 'SUC', 'Successful', '', '', 'PD_STATUS', 1),
(44, 'NS', 'Not successful', '', '', 'PD_STATUS', 2),
(46, '1', '1 Month', 'මාස 1 යි', '1 மாதம்', 'ADVERT_DURATION', 1),
(47, '2', '2 Month', 'මාස 2 යි', '2 மாதம்', 'ADVERT_DURATION', 2),
(48, '3', '3 Month', 'මාස 3 යි', '3 மாதம்', 'ADVERT_DURATION', 3),
(49, 'A', 'Approved', 'අනුමත කර ඇත', 'அங்கீகரிக்கப்பட்டது', 'APPROVAL_STATUS', 1),
(50, 'R', 'Rejected', '', '', 'APPROVAL_STATUS', 2),
(51, 'P', 'Pending', '', '', 'APPROVAL_STATUS', 3),
(52, 'ADVRT', 'Advertistment', '', '', 'DOCAPRVTYPE', 1),
(53, 'REG', 'Registration', '', '', 'DOCAPRVTYPE', 2),
(54, 'M', 'Male', 'පුරුෂ', 'ஆண்', 'GENDER', 2),
(57, 'A', 'Available', 'ඇත', 'கிடைக்கும்', 'AVAILABLE_STATUS', 1),
(58, 'S', 'Sold', '', 'விற்கப்பட்டது', 'AVAILABLE_STATUS', 2),
(59, 'O', 'Open', '', 'திறந்துள்ளது', 'AVAILABLE_STATUS', 3),
(60, 'C', 'Close', '', 'மூடப்பட்டது', 'AVAILABLE_STATUS', 4),
(61, 'ACT', 'Active', 'සක්‍රීයයි', 'செயலில்', 'ACTIVE_STATUS', 1),
(62, 'EXP', 'Expired', ' කල් ඉකුත් වි ඇත', 'காலாவதியான', 'ACTIVE_STATUS', 2),
(63, 'DISC', 'Discontinued', 'අත්හිටුවා ඇත', 'நிறுத்தப்பட்டது', 'ACTIVE_STATUS', 3),
(64, 'VET', 'VET', 'සිංහල', 'தமிழ்', 'PD_CONFIRM', 1),
(65, 'AIT', 'AI Technician', 'AI කාර්මිකයා', 'AI தொழில்நுட்ப வல்லுநர்', 'PD_CONFIRM', 2),
(66, 'ME', 'Farmer', 'ගොවියා', 'உழவர்', 'PD_CONFIRM', 3),
(67, 'DRY', 'Dry', 'Dry_si', 'Dry_ta', 'PARENTING_STATUS', 3),
(68, 'HEF', 'Heifer', 'Heifer_si', 'Heifer_ta', 'PARENTING_STATUS', 4),
(69, 'CALF', 'Calf', 'Calf_si', 'Calf_ta', 'PARENTING_STATUS', 5);

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

--
-- Table structure for table `s02_01cattle_breed`
--

CREATE TABLE `s02_01cattle_breed` (
  `breed_type` varchar(10) COLLATE utf8_unicode_ci NOT NULL,
  `breed_name_en` varchar(100) COLLATE utf8_unicode_ci NOT NULL,
  `breed_name_si` varchar(100) COLLATE utf8_unicode_ci NOT NULL,
  `breed_name_ta` varchar(100) COLLATE utf8_unicode_ci NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `created_by` varchar(10) COLLATE utf8_unicode_ci NOT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `edited_by` varchar(10) COLLATE utf8_unicode_ci NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `s02_01cattle_breed`
--

INSERT INTO `s02_01cattle_breed` (`breed_type`, `breed_name_en`, `breed_name_si`, `breed_name_ta`, `created_at`, `created_by`, `updated_at`, `edited_by`) VALUES
('BRD001', 'Test_Breed_en', 'Test_Breed_si', 'Test_Breed_ta', NULL, '', NULL, ''),
('BRD002', 'Friesens', 'Friesens_සිංහල', 'Friesens_தமிழ்', NULL, '', NULL, ''),
('Jersey', 'Jersey', 'Jersey', 'Jersey', '2020-02-17 21:28:47', '', '2020-02-17 21:28:47', ''),
('wert', 'werr_enrytuty', 'werr_si sinhala', 'werr_ta', '2020-01-27 00:57:46', '', '2020-01-27 01:10:40', '');

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

--
-- Table structure for table `s02_02equip_categories`
--

CREATE TABLE `s02_02equip_categories` (
  `equip_catid` varchar(10) COLLATE utf8_unicode_ci NOT NULL COMMENT 'EQYYnnnnnn',
  `equip_cat_name_en` varchar(100) COLLATE utf8_unicode_ci NOT NULL,
  `equip_cat_name_si` varchar(100) COLLATE utf8_unicode_ci NOT NULL,
  `equip_cat_name_ta` varchar(100) COLLATE utf8_unicode_ci NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `created_by` varchar(10) COLLATE utf8_unicode_ci NOT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `edited_by` varchar(10) COLLATE utf8_unicode_ci NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `s02_02equip_categories`
--

INSERT INTO `s02_02equip_categories` (`equip_catid`, `equip_cat_name_en`, `equip_cat_name_si`, `equip_cat_name_ta`, `created_at`, `created_by`, `updated_at`, `edited_by`) VALUES
('EQ19000001', 'Milk Tanks', 'කිරි ටැංකි', 'பால் தொட்டிகள்', NULL, '', NULL, ''),
('TRACTER', 'Tractor', 'ට්රැක්ටරය', 'டிராக்டர்', '2020-02-14 02:23:20', '', '2020-02-14 02:23:20', '');

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

--
-- Table structure for table `s02_03ad_type`
--

CREATE TABLE `s02_03ad_type` (
  `ad_type_id` varchar(10) COLLATE utf8_unicode_ci NOT NULL,
  `ad_type_des_en` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
  `ad_type_des_si` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
  `ad_type_des_ta` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `s02_03ad_type`
--

INSERT INTO `s02_03ad_type` (`ad_type_id`, `ad_type_des_en`, `ad_type_des_si`, `ad_type_des_ta`, `created_at`, `updated_at`) VALUES
('BUYER', 'Buyers', 'ගැනීම', 'வாங்குபவர்', NULL, NULL),
('SELLER', 'Sellers', 'විකිණීම', 'விற்பவர்', NULL, NULL);

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

--
-- Table structure for table `s02_03feed_type`
--

CREATE TABLE `s02_03feed_type` (
  `feed_type` varchar(10) COLLATE utf8_unicode_ci NOT NULL,
  `feed_type_des_en` varchar(200) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `feed_type_des_si` varchar(200) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `feed_type_des_ta` varchar(200) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `created_at` timestamp NULL DEFAULT NULL,
  `created_by` varchar(10) COLLATE utf8_unicode_ci NOT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `edited_by` varchar(10) COLLATE utf8_unicode_ci NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `s02_03feed_type`
--

INSERT INTO `s02_03feed_type` (`feed_type`, `feed_type_des_en`, `feed_type_des_si`, `feed_type_des_ta`, `created_at`, `created_by`, `updated_at`, `edited_by`) VALUES
('GHAY', 'Grass Hay', '', '', NULL, '', NULL, ''),
('MAIZ', 'Maize', 'බඩ ඉරිඟු', 'சோளம்', NULL, '', NULL, ''),
('OATS', 'Oats Grain', '', '', NULL, '', NULL, ''),
('PGRAZ', 'Pasture grazing', '', '', NULL, '', NULL, '');

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

--
-- Table structure for table `s02_04semen_type`
--

CREATE TABLE `s02_04semen_type` (
  `record_id` int(11) NOT NULL,
  `sementype_code` varchar(10) COLLATE utf8_unicode_ci NOT NULL,
  `sementype_des_en` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
  `sementype_des_si` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
  `sementype_des_ta` varchar(50) COLLATE utf8_unicode_ci NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `s02_04semen_type`
--

INSERT INTO `s02_04semen_type` (`record_id`, `sementype_code`, `sementype_des_en`, `sementype_des_si`, `sementype_des_ta`) VALUES
(1, 'JSY', 'Jersey', 'ජර්සි', 'ஜெர்சி'),
(2, 'SHWL', 'Sahiwal', 'Sahiwal_si', 'Sahiwal_ta'),
(3, 'UI', 'ui descp', '0', '0');

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

--
-- Table structure for table `s03_01province`
--

CREATE TABLE `s03_01province` (
  `prvnce_id` varchar(10) COLLATE utf8_unicode_ci NOT NULL,
  `prvnce_name_en` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
  `prvnce_name_si` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
  `prvnce_name_ta` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `created_by` varchar(10) COLLATE utf8_unicode_ci NOT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `edited_by` varchar(10) COLLATE utf8_unicode_ci NOT NULL DEFAULT ''
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `s03_01province`
--

INSERT INTO `s03_01province` (`prvnce_id`, `prvnce_name_en`, `prvnce_name_si`, `prvnce_name_ta`, `created_at`, `created_by`, `updated_at`, `edited_by`) VALUES
('CENTRL', 'Central', 'මධ්‍යම', 'மத்திய', '2019-10-02 05:30:00', 'admin', NULL, ''),
('ESTRN', 'Eastern', 'නැගෙනහිර', ' கிழக்கு', '2019-10-02 05:30:00', 'admin', NULL, ''),
('NOTHRN', 'Northern', 'උතුර', 'வட', '2019-10-02 05:30:00', 'admin', NULL, ''),
('NRTH_CNTRL', 'North Central', 'උතුරු මැද', 'வட மத்திய', '2019-10-02 05:30:00', 'admin', NULL, ''),
('NRTH_WEST', 'North Western', 'වයඹ', 'வட மேல்', '2019-10-02 05:30:00', 'admin', NULL, ''),
('SABRGMW', 'Sabaragamuwa', 'සබරගමුව', 'சபரகமுவ', '2019-10-02 05:30:00', 'admin', NULL, ''),
('STHRN', 'Southern', 'දකුණ', 'தென்', '2019-10-02 05:30:00', 'admin', NULL, ''),
('UVA', 'Uva', 'ඌව', 'ஊவா', '2019-10-02 05:30:00', 'admin', NULL, ''),
('WSTRN', 'Western', 'බස්නාහිර', 'மேல்', '2019-10-02 05:30:00', 'admin', NULL, '');

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

--
-- Table structure for table `s03_02district`
--

CREATE TABLE `s03_02district` (
  `dist_id` varchar(10) COLLATE utf8_unicode_ci NOT NULL,
  `prvnce_id` varchar(10) COLLATE utf8_unicode_ci NOT NULL,
  `dist_name_en` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
  `dist_name_si` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
  `dist_name_ta` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
  `dist_shortname_en` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
  `dist_shortname_si` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
  `dist_shortname_ta` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `created_by` varchar(10) COLLATE utf8_unicode_ci NOT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `edited_by` varchar(10) COLLATE utf8_unicode_ci NOT NULL DEFAULT ''
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `s03_02district`
--

INSERT INTO `s03_02district` (`dist_id`, `prvnce_id`, `dist_name_en`, `dist_name_si`, `dist_name_ta`, `dist_shortname_en`, `dist_shortname_si`, `dist_shortname_ta`, `created_at`, `created_by`, `updated_at`, `edited_by`) VALUES
('AD', 'NRTH_CNTRL', 'Anuradhapura', 'අනුරාධපුර', 'அனுராதபுரம்', '', '', '', NULL, 'admin', NULL, ''),
('APR', 'ESTRN', 'Ampara', 'අම්පාර', 'அம்பாறை', '', '', '', NULL, 'admin', NULL, ''),
('BC', 'ESTRN', 'Batticaloa', 'මඩකලපුව', 'மட்டக்களப்பு', '', '', '', NULL, 'admin', NULL, ''),
('BD', 'UVA', 'Badulla', 'බදුල්ල', 'பதுளை', '', '', '', NULL, 'admin', NULL, ''),
('CO', 'WSTRN', 'Colombo', 'කොළඹ', 'கொழும்பு', '', '', '', NULL, 'admin', NULL, ''),
('GL', 'STHRN', 'Galle', 'ගාල්ල', 'காலி', '', '', '', NULL, 'admin', NULL, ''),
('GQ', 'WSTRN', 'Gampaha', 'ගම්පහ', 'கம்பஹா', '', '', '', NULL, 'admin', NULL, ''),
('HB', 'STHRN', 'Hambantota', 'හම්බන්තොට', 'அம்பாந்தோட்டை', '', '', '', NULL, 'admin', NULL, ''),
('JA', 'NOTHRN', 'Jaffna', 'යාපනය', 'யாழ்ப்பாணம்', '', '', '', NULL, 'admin', NULL, ''),
('KE', 'SABRGMW', 'Kegalle', 'කෑගල්ල', 'கேகாலை', '', '', '', NULL, 'admin', NULL, ''),
('KG', 'NRTH_WEST', 'Kurunegala', 'කුරුණෑගල', 'குருநாகல்', '', '', '', NULL, 'admin', NULL, ''),
('KI', 'NOTHRN', 'Kilinochchi', 'කිලිනොච්චි', 'கிளிநொச்சி', '', '', '', NULL, 'admin', NULL, ''),
('KT', 'WSTRN', 'Kalutara', 'කඵතර', 'களுத்துறை', '', '', '', NULL, 'admin', NULL, ''),
('KY', 'CENTRL', 'Kandy', 'මහනුවර', 'கண்டி', '', '', '', NULL, 'admin', NULL, ''),
('MB', 'NOTHRN', 'Mannar', 'මන්නාරම', 'மன்னார்', '', '', '', NULL, 'admin', NULL, ''),
('MH', 'STHRN', 'Matara', 'මාතර', 'மாத்தறை', '', '', '', NULL, 'admin', NULL, ''),
('MJ', 'UVA', 'Monaragala', 'මොණරාගල', 'மொணராகலை', '', '', '', NULL, 'admin', NULL, ''),
('MP', 'NOTHRN', 'Mullaitivu', 'මුලතිවු', 'முல்லைத்தீவு', '', '', '', NULL, 'admin', NULL, ''),
('MT', 'CENTRL', 'Matale', 'මාතලේ', 'மாத்தளை', '', '', '', NULL, 'admin', NULL, ''),
('NW', 'CENTRL', 'Nuwara Eliya', 'නුවරඑළිය', 'நுவரெலியா', '', '', '', NULL, 'admin', NULL, ''),
('PR', 'NRTH_CNTRL', 'Polonnaruwa', 'පොළොන්නරුව', 'பொலன்னறுவை', '', '', '', NULL, 'admin', NULL, ''),
('PX', 'NRTH_WEST', 'Puttalam', 'පුත්තලම', 'புத்தளம்', '', '', '', NULL, 'admin', NULL, ''),
('RN', 'SABRGMW', 'Ratnapura', 'රත්නපුර', 'இரத்தினபுரம்', '', '', '', NULL, 'admin', NULL, ''),
('TC', 'ESTRN', 'Trincomalee', 'ත්‍රිකුණාමළය', 'திருகோணமலை', '', '', '', NULL, 'admin', NULL, ''),
('VA', 'NOTHRN', 'Vavuniya', 'වවුනියා', 'வவுனியா', '', '', '', NULL, 'admin', NULL, '');

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

--
-- Table structure for table `s04_01message_settings`
--

CREATE TABLE `s04_01message_settings` (
  `msg_code` varchar(20) COLLATE utf8_unicode_ci NOT NULL,
  `msg_type` varchar(20) COLLATE utf8_unicode_ci NOT NULL,
  `title` varchar(200) COLLATE utf8_unicode_ci NOT NULL,
  `msgsetg_subject_en` varchar(100) COLLATE utf8_unicode_ci NOT NULL,
  `msgsetg_subject_si` varchar(100) COLLATE utf8_unicode_ci NOT NULL,
  `msgsetg_subject_ta` varchar(100) COLLATE utf8_unicode_ci NOT NULL,
  `msgsetg_content_en` text COLLATE utf8_unicode_ci NOT NULL,
  `msgsetg_content_si` text COLLATE utf8_unicode_ci NOT NULL,
  `msgsetg_content_ta` text COLLATE utf8_unicode_ci NOT NULL,
  `msgsetg_footer_en` text COLLATE utf8_unicode_ci NOT NULL,
  `msgsetg_footer_si` text COLLATE utf8_unicode_ci NOT NULL,
  `msgsetg_footer_ta` text COLLATE utf8_unicode_ci NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `created_by` varchar(10) COLLATE utf8_unicode_ci NOT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `edited_by` varchar(10) COLLATE utf8_unicode_ci NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

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

--
-- Table structure for table `t00_00adverts_master`
--

CREATE TABLE `t00_00adverts_master` (
  `advert_id` varchar(10) COLLATE utf8_unicode_ci NOT NULL COMMENT 'ADYYnnnnnn',
  `regno` varchar(10) COLLATE utf8_unicode_ci NOT NULL,
  `location_latitude` varchar(10) COLLATE utf8_unicode_ci NOT NULL,
  `location_longitude` varchar(10) COLLATE utf8_unicode_ci NOT NULL,
  `date_of_advert` datetime NOT NULL,
  `advert_type` varchar(10) COLLATE utf8_unicode_ci NOT NULL COMMENT 'from ad_type table',
  `prodsvc_id` varchar(10) COLLATE utf8_unicode_ci NOT NULL,
  `dist_id` varchar(10) COLLATE utf8_unicode_ci NOT NULL,
  `expires_on` date NOT NULL,
  `advert_duration` int(11) NOT NULL COMMENT 'No of months',
  `impressions` int(11) NOT NULL,
  `available_status` char(1) COLLATE utf8_unicode_ci NOT NULL COMMENT 'S: Sold, A: Available, O: Open , C: Close',
  `discontinued` char(1) COLLATE utf8_unicode_ci NOT NULL DEFAULT '0' COMMENT '1 - Discontinued, 0 - not discontinued',
  `title` varchar(200) COLLATE utf8_unicode_ci NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `created_by` varchar(10) COLLATE utf8_unicode_ci NOT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `edited_by` varchar(10) COLLATE utf8_unicode_ci NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `t00_00adverts_master`
--

INSERT INTO `t00_00adverts_master` (`advert_id`, `regno`, `location_latitude`, `location_longitude`, `date_of_advert`, `advert_type`, `prodsvc_id`, `dist_id`, `expires_on`, `advert_duration`, `impressions`, `available_status`, `discontinued`, `title`, `created_at`, `created_by`, `updated_at`, `edited_by`) VALUES
('AD20000001', '20000001', '6', '79', '2020-02-14 08:15:35', 'SELLER', 'CATL', 'CO', '2020-04-14', 1, 31, 'A', '0', 'Big Sale 10% off', NULL, 'UI20000001', '2020-03-13 02:17:22', 'UI20000001'),
('AD20000002', '20000001', '6.8599379', '79.8663559', '2020-02-14 08:28:44', 'BUYER', 'FEED_SIL', 'CO', '2020-04-14', 1, 2, 'C', '0', 'AD20000002', NULL, 'UI20000001', '2020-02-20 01:28:01', 'UI20000001'),
('AD20000003', '20000001', '6', '79', '2020-02-14 08:38:49', 'SELLER', 'FEED_FOD', 'CO', '2020-03-14', 1, 2, 'A', '0', 'AD20000003', NULL, 'UI20000001', '2020-02-18 22:06:20', 'UI20000001'),
('AD20000004', '20000001', '6', '79', '2020-02-14 08:51:12', 'BUYER', 'CATL', 'CO', '2020-04-14', 1, 4, 'O', '0', 'AD20000004', NULL, 'UI20000001', '2020-02-21 05:43:41', 'UI20000001'),
('AD20000005', '20000002', '6.8599379', '79.8663559', '2020-02-14 00:00:00', 'AI', 'SERV_AI', 'CO', '2021-03-14', 12, 12, 'O', '0', 'AD20000005', NULL, '10', '2020-05-20 03:08:01', '10'),
('AD20000008', '20000005', '6.8599599', '79.8663659', '2020-02-17 00:00:00', 'AI', 'SERV_AI', 'CO', '2020-03-17', 12, 0, 'O', '0', 'AD20000008', NULL, 'UI20000005', NULL, 'UI20000005'),
('AD20000009', '20000006', '6', '79', '2020-02-17 11:31:28', 'SELLER', 'CATL', 'CO', '2020-12-17', 3, 34, 'A', '0', 'Cattle with lower price', NULL, 'UI20000006', '2020-03-13 02:17:19', 'UI20000006'),
('AD20000010', '20000006', '6', '79', '2020-02-18 05:54:21', 'SELLER', 'CATL', 'CO', '2020-08-18', 3, 277, 'A', '0', 'More weight, Less Wait', NULL, 'UI20000006', '2020-03-13 02:17:36', 'UI20000006'),
('AD20000011', '20000006', '6', '79', '2020-02-18 05:59:07', 'SELLER', 'CATL', 'CO', '2020-05-18', 3, 27, 'A', '0', 'AD20000011', NULL, 'UI20000006', '2020-02-18 22:23:48', 'UI20000006'),
('AD20000012', '20000006', '6', '79', '2020-02-18 06:02:20', 'SELLER', 'CATL', 'CO', '2020-04-18', 2, 0, 'A', '0', 'AD20000012', NULL, 'UI20000006', NULL, 'UI20000006'),
('AD20000013', '20000006', '6', '79', '2020-02-18 06:36:53', 'SELLER', 'FEED_SIL', 'CO', '2020-05-18', 3, 0, 'A', '0', 'AD20000013', NULL, 'UI20000006', NULL, 'UI20000006'),
('AD20000014', '20000006', '6', '79', '2020-02-18 07:09:21', 'SELLER', 'FEED_SIL', 'CO', '2020-08-18', 3, 31, 'A', '0', 'AD20000014', NULL, 'UI20000006', '2020-02-26 04:06:51', 'UI20000006'),
('AD20000015', '20000006', '6', '79', '2020-02-18 11:05:16', 'SELLER', 'CATL', 'CO', '2020-03-18', 1, 0, 'A', '0', 'AD20000015', NULL, 'UI20000006', NULL, 'UI20000006'),
('AD20000016', '20000006', '6.880043', '79.8687657', '2020-02-21 06:34:44', 'SELLER', 'CATL', 'CO', '2020-05-21', 3, 0, 'A', '0', 'Cattle Sale', NULL, 'UI20000006', NULL, 'UI20000006'),
('AD20000017', '20000006', '6.880043', '79.8687657', '2020-02-21 06:35:25', 'SELLER', 'CATL', 'CO', '2020-05-21', 3, 0, 'A', '0', 'Cattle Sale', NULL, 'UI20000006', NULL, 'UI20000006'),
('AD20000018', '20000006', '6.880043', '79.8687657', '2020-02-21 09:16:17', 'SELLER', 'CATL', 'CO', '2020-05-21', 3, 0, 'A', '0', 'Cattle Sale', NULL, 'UI20000006', NULL, 'UI20000006'),
('AD20000019', '20000006', '6.880043', '79.8687657', '2020-02-21 09:17:22', 'SELLER', 'CATL', 'CO', '2020-04-21', 2, 0, 'A', '0', 'New', NULL, 'UI20000006', NULL, 'UI20000006'),
('AD20000020', '20000006', '6.880043', '79.8687657', '2020-02-21 09:35:29', 'SELLER', 'CATL', 'CO', '2020-03-21', 1, 0, 'A', '0', 'Bu', NULL, 'UI20000006', NULL, 'UI20000006'),
('AD20000021', '20000006', '6.880043', '79.8687657', '2020-02-25 05:52:26', 'SELLER', 'FEED_SIL', 'CO', '2020-05-25', 3, 3, 'A', '0', 'Ft F5f5gtfyf', NULL, 'UI20000006', '2020-02-25 03:28:08', 'UI20000006'),
('AD20000022', '20000006', '6.880043', '79.8687657', '2020-02-25 05:57:56', 'SELLER', 'CATL', 'CO', '2020-03-25', 1, 0, 'A', '0', 'Thgh', NULL, 'UI20000006', NULL, 'UI20000006'),
('AD20000023', '20000006', '6.880043', '79.8687657', '2020-02-25 06:07:57', 'SELLER', 'CATL', 'CO', '2020-05-25', 3, 15, 'A', '0', 'Thas', NULL, 'UI20000006', '2020-03-13 02:17:51', 'UI20000006'),
('AD20000024', '20000006', '6.880043', '79.8687657', '2020-02-25 09:53:02', 'SELLER', 'FEED_SIL', 'CO', '2020-04-25', 2, 0, 'A', '0', 'Thf', NULL, 'UI20000006', NULL, 'UI20000006'),
('AD20000025', '20000006', '6.880043', '79.8687657', '2020-02-25 10:09:11', 'SELLER', 'CATL', 'CO', '2020-03-25', 1, 0, 'A', '0', 'Tho G', NULL, 'UI20000006', NULL, 'UI20000006'),
('AD20000026', '20000006', '6.880043', '79.8687657', '2020-02-25 10:16:23', 'SELLER', 'CATL', 'CO', '2020-05-25', 3, 0, 'A', '0', 'H6h6', NULL, 'UI20000006', NULL, 'UI20000006'),
('AD20000027', '20000006', '6.880043', '79.8687657', '2020-02-26 04:48:57', 'SELLER', 'FEED_SIL', 'CO', '2020-04-26', 2, 0, 'A', '0', 'Silage & Fodder', NULL, 'UI20000006', NULL, 'UI20000006'),
('AD20000028', '20000006', '6.880043', '79.8687657', '2020-02-26 04:49:01', 'SELLER', 'FEED_SIL', 'CO', '2020-04-26', 2, 0, 'A', '0', 'Silage & Fodder', NULL, 'UI20000006', NULL, 'UI20000006'),
('AD20000029', '20000006', '6.880043', '79.8687657', '2020-02-26 04:53:02', 'SELLER', 'FEED_SIL', 'CO', '2020-04-26', 2, 0, 'A', '0', 'Silage & Fodder', NULL, 'UI20000006', NULL, 'UI20000006'),
('AD20000030', '20000006', '6.880043', '79.8687657', '2020-02-26 05:01:56', 'SELLER', 'EQU', 'CO', '2020-05-26', 3, 0, 'A', '0', 'Uhh Ugu', NULL, 'UI20000006', NULL, 'UI20000006'),
('AD20000031', '20000006', '6.880043', '79.8687657', '2020-02-26 07:38:50', 'SELLER', 'FEED_SIL', 'CO', '2020-04-26', 2, 8, 'A', '0', 'HM first', NULL, 'UI20000006', '2020-03-05 01:03:39', 'UI20000006'),
('AD20000032', '20000006', '6.880043', '79.8687657', '2020-02-26 09:43:22', 'SELLER', 'EQU', 'CO', '2020-05-26', 3, 0, 'S', '0', 'Equipment Sale HM', NULL, 'UI20000006', NULL, 'UI20000006'),
('AD20000033', '20000006', '6.880043', '79.8687657', '2020-02-26 11:02:07', 'SELLER', 'EQU', 'CO', '2020-04-26', 2, 0, 'A', '0', 'Hui', NULL, 'UI20000006', NULL, 'UI20000006'),
('AD20000034', '20000009', '6.859938', '79.8663561', '2020-02-27 00:00:00', 'AI', 'SERV_AI', 'CO', '2022-03-27', 12, 2, 'O', '0', '', NULL, 'UI20000009', '2020-05-20 03:08:01', 'UI20000009'),
('AD20000035', '20000006', '6.880043', '79.8687657', '2020-02-28 03:20:54', 'SELLER', 'CATL', 'CO', '2020-04-28', 2, 0, 'A', '0', 'Tjfhkmv', NULL, 'UI20000006', NULL, 'UI20000006'),
('AD20000036', '20000006', '6.880043', '79.8687657', '2020-02-28 04:03:47', 'SELLER', 'CATL', 'CO', '2020-04-28', 2, 0, 'A', '0', 'Yy', NULL, 'UI20000006', NULL, 'UI20000006'),
('AD20000037', '20000006', '6.880043', '79.8687657', '2020-02-28 04:05:34', 'SELLER', 'CATL', 'CO', '2020-04-28', 2, 0, 'A', '0', 'B', NULL, 'UI20000006', NULL, 'UI20000006'),
('AD20000038', '20000006', '6.880043', '79.8687657', '2020-02-28 04:29:58', 'SELLER', 'CATL', 'CO', '2020-04-28', 2, 0, 'A', '0', 'H', NULL, 'UI20000006', NULL, 'UI20000006'),
('AD20000039', '20000006', '6.880043', '79.8687657', '2020-02-28 04:34:28', 'SELLER', 'EQU', 'CO', '2020-04-28', 2, 0, 'A', '0', 'Yh', NULL, 'UI20000006', NULL, 'UI20000006'),
('AD20000040', '20000006', '6.880043', '79.8687657', '2020-02-28 04:37:46', 'SELLER', 'CATL', 'CO', '2020-04-28', 2, 0, 'A', '0', 'G Hull Ruok', NULL, 'UI20000006', NULL, 'UI20000006'),
('AD20000041', '20000006', '6.880043', '79.8687657', '2020-02-28 04:40:12', 'SELLER', 'CATL', 'CO', '2020-04-28', 2, 0, 'A', '0', 'Hj', NULL, 'UI20000006', NULL, 'UI20000006'),
('AD20000042', '20000006', '6.880043', '79.8687657', '2020-02-28 04:43:00', 'SELLER', 'CATL', 'CO', '2020-04-28', 2, 0, 'A', '0', '6g', NULL, 'UI20000006', NULL, 'UI20000006'),
('AD20000043', '20000006', '6.880043', '79.8687657', '2020-02-28 04:57:48', 'SELLER', 'CATL', 'CO', '2020-04-28', 2, 0, 'A', '0', 'Nh', NULL, 'UI20000006', NULL, 'UI20000006'),
('AD20000044', '20000006', '6.880043', '79.8687657', '2020-02-28 04:59:50', 'SELLER', 'CATL', 'CO', '2020-04-28', 2, 0, 'A', '0', 'J', NULL, 'UI20000006', NULL, 'UI20000006'),
('AD20000045', '20000006', '6.880043', '79.8687657', '2020-02-28 05:01:33', 'SELLER', 'CATL', 'CO', '2020-04-28', 2, 0, 'A', '0', 'J9h9', NULL, 'UI20000006', NULL, 'UI20000006'),
('AD20000046', '20000006', '6.880043', '79.8687657', '2020-02-28 05:07:51', 'SELLER', 'CATL', 'CO', '2020-04-28', 2, 0, 'A', '0', 'T', NULL, 'UI20000006', NULL, 'UI20000006'),
('AD20000047', '20000006', '6.880043', '79.8687657', '2020-02-28 05:15:31', 'SELLER', 'EQU', 'CO', '2020-04-28', 2, 0, 'A', '0', 'Bh', NULL, 'UI20000006', NULL, 'UI20000006'),
('AD20000048', '20000006', '6.880043', '79.8687657', '2020-02-28 05:28:40', 'SELLER', 'CATL', 'CO', '2020-05-28', 3, 0, 'A', '0', 'V', NULL, 'UI20000006', NULL, 'UI20000006'),
('AD20000049', '20000006', '6.880043', '79.8687657', '2020-02-28 05:33:42', 'SELLER', 'CATL', 'CO', '2020-04-28', 2, 0, 'A', '0', '7uh', NULL, 'UI20000006', NULL, 'UI20000006'),
('AD20000050', '20000006', '6.880043', '79.8687657', '2020-02-28 05:41:34', 'SELLER', 'CATL', 'CO', '2020-04-28', 2, 0, 'A', '0', 'U', NULL, 'UI20000006', NULL, 'UI20000006'),
('AD20000051', '20000006', '6.880043', '79.8687657', '2020-02-28 06:01:05', 'SELLER', 'CATL', 'CO', '2020-05-28', 3, 0, 'A', '0', 'Ggv', NULL, 'UI20000006', NULL, 'UI20000006'),
('AD20000052', '20000006', '6.880043', '79.8687657', '2020-02-28 06:17:49', 'SELLER', 'FEED_SIL', 'CO', '2020-05-28', 3, 0, 'A', '0', 'N8', NULL, 'UI20000006', NULL, 'UI20000006'),
('AD20000053', '20000006', '6.880043', '79.8687657', '2020-02-28 06:26:00', 'SELLER', 'CATL', 'CO', '2020-04-28', 2, 0, 'A', '0', 'Ni', NULL, 'UI20000006', NULL, 'UI20000006'),
('AD20000054', '20000006', '6.880043', '79.8687657', '2020-02-28 06:26:33', 'SELLER', 'FEED_SIL', 'CO', '2020-04-28', 2, 0, 'A', '0', 'Ugu', NULL, 'UI20000006', NULL, 'UI20000006'),
('AD20000055', '20000006', '6.880043', '79.8687657', '2020-02-28 08:38:49', 'SELLER', 'CATL', 'CO', '2020-05-28', 3, 0, 'A', '0', 'Next Title', NULL, 'UI20000006', NULL, 'UI20000006'),
('AD20000056', '20000006', '6.880043', '79.8687657', '2020-02-28 08:39:51', 'SELLER', 'CATL', 'CO', '2020-05-28', 3, 0, 'A', '0', 'Next Title', NULL, 'UI20000006', NULL, 'UI20000006'),
('AD20000057', '20000006', '6.880043', '79.8687657', '2020-02-28 08:40:20', 'SELLER', 'CATL', 'CO', '2020-05-28', 3, 0, 'A', '0', 'Next Title', NULL, 'UI20000006', NULL, 'UI20000006'),
('AD20000058', '20000006', '6.880043', '79.8687657', '2020-02-28 08:40:28', 'SELLER', 'CATL', 'CO', '2020-05-28', 3, 0, 'A', '0', 'Next Title', NULL, 'UI20000006', NULL, 'UI20000006'),
('AD20000059', '20000006', '6.880043', '79.8687657', '2020-02-28 08:41:40', 'SELLER', 'CATL', 'CO', '2020-05-28', 3, 0, 'A', '0', 'Next Title', NULL, 'UI20000006', NULL, 'UI20000006'),
('AD20000060', '20000006', '6.880043', '79.8687657', '2020-02-28 08:42:21', 'SELLER', 'CATL', 'CO', '2020-05-28', 3, 0, 'A', '0', 'Next Title', NULL, 'UI20000006', NULL, 'UI20000006'),
('AD20000061', '20000006', '6.880043', '79.8687657', '2020-02-28 08:43:12', 'SELLER', 'CATL', 'CO', '2020-05-28', 3, 0, 'A', '0', 'Next Title', NULL, 'UI20000006', NULL, 'UI20000006'),
('AD20000062', '20000006', '6.880043', '79.8687657', '2020-02-28 08:43:16', 'SELLER', 'CATL', 'CO', '2020-05-28', 3, 0, 'A', '0', 'Next Title', NULL, 'UI20000006', NULL, 'UI20000006'),
('AD20000063', '20000006', '6.880043', '79.8687657', '2020-02-28 08:43:34', 'SELLER', 'CATL', 'CO', '2020-05-28', 3, 0, 'A', '0', 'Next Title', NULL, 'UI20000006', NULL, 'UI20000006'),
('AD20000064', '20000006', '6.880043', '79.8687657', '2020-02-28 08:43:48', 'SELLER', 'CATL', 'CO', '2020-05-28', 3, 0, 'A', '0', 'Next Title', NULL, 'UI20000006', NULL, 'UI20000006'),
('AD20000065', '20000006', '6.880043', '79.8687657', '2020-02-28 08:44:07', 'SELLER', 'CATL', 'CO', '2020-05-28', 3, 0, 'A', '0', 'Next Title', NULL, 'UI20000006', NULL, 'UI20000006'),
('AD20000066', '20000006', '6.880043', '79.8687657', '2020-02-28 09:13:19', 'SELLER', 'CATL', 'CO', '2020-05-28', 3, 0, 'A', '0', 'Next Title', NULL, 'UI20000006', NULL, 'UI20000006'),
('AD20000067', '20000006', '6.880043', '79.8687657', '2020-02-28 09:13:48', 'SELLER', 'CATL', 'CO', '2020-05-28', 3, 0, 'A', '0', 'Next Title', NULL, 'UI20000006', NULL, 'UI20000006'),
('AD20000068', '20000006', '6.880043', '79.8687657', '2020-02-28 09:18:09', 'SELLER', 'CATL', 'CO', '2020-05-28', 3, 0, 'A', '0', 'Next Title', NULL, 'UI20000006', NULL, 'UI20000006'),
('AD20000069', '20000006', '6.880043', '79.8687657', '2020-02-28 09:18:20', 'SELLER', 'CATL', 'CO', '2020-05-28', 3, 0, 'A', '0', 'Next Title', NULL, 'UI20000006', NULL, 'UI20000006'),
('AD20000070', '20000006', '6.880043', '79.8687657', '2020-02-28 09:19:16', 'SELLER', 'CATL', 'CO', '2020-05-28', 3, 0, 'A', '0', 'Next Title', NULL, 'UI20000006', NULL, 'UI20000006'),
('AD20000071', '20000006', '6.880043', '79.8687657', '2020-02-28 09:38:37', 'SELLER', 'CATL', 'CO', '2020-05-28', 3, 1, 'A', '0', 'Next Title', NULL, 'UI20000006', '2020-02-28 04:17:12', 'UI20000006'),
('AD20000072', '20000006', '6.880043', '79.8687657', '2020-02-28 09:51:34', 'SELLER', 'CATL', 'CO', '2020-05-28', 3, 3, 'A', '0', 'Next Title', NULL, 'UI20000006', '2020-03-01 21:34:57', 'UI20000006'),
('AD20000073', '20000006', '6.880043', '79.8687657', '2020-02-28 09:59:34', 'SELLER', 'CATL', 'CO', '2020-05-28', 3, 0, '', '0', 'Next Title', NULL, 'UI20000006', NULL, 'UI20000006'),
('AD20000074', '20000006', '6.880043', '79.8687657', '2020-02-28 10:00:07', 'SELLER', 'CATL', 'CO', '2020-05-28', 3, 0, '', '0', 'Next Title', NULL, 'UI20000006', NULL, 'UI20000006'),
('AD20000075', '20000006', '6.880043', '79.8687657', '2020-02-28 10:01:26', 'SELLER', 'CATL', 'CO', '2020-05-28', 3, 0, '', '0', 'Next Title', NULL, 'UI20000006', NULL, 'UI20000006'),
('AD20000076', '20000006', '6.880043', '79.8687657', '2020-02-28 10:02:09', 'SELLER', 'CATL', 'CO', '2020-05-28', 3, 0, '', '0', 'Next Title', NULL, 'UI20000006', NULL, 'UI20000006'),
('AD20000077', '20000006', '6.880043', '79.8687657', '2020-02-28 10:02:33', 'SELLER', 'CATL', 'CO', '2020-05-28', 3, 0, '', '0', 'Next Title', NULL, 'UI20000006', NULL, 'UI20000006'),
('AD20000078', '20000006', '6.880043', '79.8687657', '2020-02-28 10:11:59', 'SELLER', 'CATL', 'CO', '2020-05-28', 3, 0, '', '0', 'Next Title', NULL, 'UI20000006', NULL, 'UI20000006'),
('AD20000079', '20000006', '6.880043', '79.8687657', '2020-02-28 10:12:03', 'SELLER', 'CATL', 'CO', '2020-05-28', 3, 0, '', '0', 'Next Title', NULL, 'UI20000006', NULL, 'UI20000006'),
('AD20000080', '20000006', '6.880043', '79.8687657', '2020-02-28 10:33:21', 'SELLER', 'CATL', 'CO', '2020-05-28', 3, 0, '', '0', 'Next Title', NULL, 'UI20000006', NULL, 'UI20000006'),
('AD20000081', '20000006', '6.880043', '79.8687657', '2020-02-28 10:37:56', 'SELLER', 'CATL', 'CO', '2020-05-28', 3, 0, '', '0', 'Next Title', NULL, 'UI20000006', NULL, 'UI20000006'),
('AD20000082', '20000006', '6.880043', '79.8687657', '2020-02-28 10:38:43', 'SELLER', 'CATL', 'CO', '2020-05-28', 3, 0, '', '0', 'Next Title', NULL, 'UI20000006', NULL, 'UI20000006'),
('AD20000083', '20000006', '6.880043', '79.8687657', '2020-02-28 10:38:47', 'SELLER', 'CATL', 'CO', '2020-05-28', 3, 0, '', '0', 'Next Title', NULL, 'UI20000006', NULL, 'UI20000006'),
('AD20000084', '20000006', '6.880043', '79.8687657', '2020-02-28 10:39:34', 'SELLER', 'CATL', 'CO', '2020-05-28', 3, 0, '', '0', 'Next Title', NULL, 'UI20000006', NULL, 'UI20000006'),
('AD20000085', '20000006', '6.880043', '79.8687657', '2020-02-28 10:40:35', 'SELLER', 'CATL', 'CO', '2020-05-28', 3, 0, '', '0', 'Next Title', NULL, 'UI20000006', NULL, 'UI20000006'),
('AD20000086', '20000006', '6.880043', '79.8687657', '2020-02-28 10:42:39', 'SELLER', 'CATL', 'CO', '2020-05-28', 3, 0, 'A', '0', 'Next Title', NULL, 'UI20000006', NULL, 'UI20000006'),
('AD20000087', '20000006', '6.880043', '79.8687657', '2020-02-28 10:44:50', 'SELLER', 'CATL', 'CO', '2020-05-28', 3, 0, 'A', '0', 'Next Title', NULL, 'UI20000006', NULL, 'UI20000006'),
('AD20000088', '20000006', '6.880043', '79.8687657', '2020-02-28 10:47:32', 'SELLER', 'CATL', 'CO', '2020-05-28', 3, 0, 'A', '0', 'Next Title', NULL, 'UI20000006', NULL, 'UI20000006'),
('AD20000089', '20000006', '6.880043', '79.8687657', '2020-02-28 10:48:24', 'SELLER', 'CATL', 'CO', '2020-05-28', 3, 0, 'A', '0', 'Next Title', NULL, 'UI20000006', NULL, 'UI20000006'),
('AD20000090', '20000006', '6.880043', '79.8687657', '2020-02-28 11:03:03', 'SELLER', 'CATL', 'CO', '2020-05-28', 3, 0, 'A', '0', 'Next Title', NULL, 'UI20000006', NULL, 'UI20000006'),
('AD20000091', '20000006', '6.880043', '79.8687657', '2020-02-28 11:06:51', 'SELLER', 'CATL', 'CO', '2020-05-28', 3, 0, '', '0', 'Next Title', NULL, 'UI20000006', NULL, 'UI20000006'),
('AD20000092', '20000006', '6.880043', '79.8687657', '2020-02-28 11:07:13', 'SELLER', 'CATL', 'CO', '2020-05-28', 3, 0, '', '0', 'Next Title', NULL, 'UI20000006', NULL, 'UI20000006'),
('AD20000093', '20000006', '6.880043', '79.8687657', '2020-02-28 11:10:18', 'SELLER', 'CATL', 'CO', '2020-05-28', 3, 11, 'A', '0', 'Next Title', NULL, 'UI20000006', '2020-05-20 03:04:42', 'UI20000006'),
('AD20000094', '20000006', '6.880043', '79.8687657', '2020-03-02 03:32:06', 'SELLER', 'CATL', 'CO', '2020-06-02', 3, 0, '', '0', 'Next Title', NULL, 'UI20000006', NULL, 'UI20000006'),
('AD20000095', '20000006', '6.880043', '79.8687657', '2020-03-02 03:33:12', 'SELLER', 'CATL', 'CO', '2020-06-02', 3, 4, 'A', '0', 'Next Title', NULL, 'UI20000006', '2020-03-02 00:38:41', 'UI20000006'),
('AD20000096', '20000006', '6.880043', '79.8687657', '2020-03-02 06:53:59', 'SELLER', 'CATL', 'CO', '2020-06-02', 3, 0, '', '0', 'Next Title', NULL, 'UI20000006', NULL, 'UI20000006'),
('AD20000097', '20000006', '6.880043', '79.8687657', '2020-03-02 06:54:41', 'SELLER', 'CATL', 'CO', '2020-06-02', 3, 0, '', '0', 'Next Title', NULL, 'UI20000006', NULL, 'UI20000006'),
('AD20000098', '20000006', '6.880043', '79.8687657', '2020-03-02 07:21:15', 'SELLER', 'CATL', 'CO', '2020-06-02', 3, 0, '', '0', 'Next Title', NULL, 'UI20000006', NULL, 'UI20000006'),
('AD20000099', '20000006', '6.880043', '79.8687657', '2020-03-02 07:21:16', 'SELLER', 'CATL', 'CO', '2020-06-02', 3, 0, '', '0', 'Next Title', NULL, 'UI20000006', NULL, 'UI20000006'),
('AD20000100', '20000006', '6.880043', '79.8687657', '2020-03-02 07:21:32', 'SELLER', 'CATL', 'CO', '2020-06-02', 3, 0, '', '0', 'Next Title', NULL, 'UI20000006', NULL, 'UI20000006'),
('AD20000101', '20000006', '6.880043', '79.8687657', '2020-03-02 07:21:44', 'SELLER', 'CATL', 'CO', '2020-06-02', 3, 0, '', '0', 'Next Title', NULL, 'UI20000006', NULL, 'UI20000006'),
('AD20000102', '20000006', '6.880043', '79.8687657', '2020-03-02 07:21:48', 'SELLER', 'CATL', 'CO', '2020-06-02', 3, 0, '', '0', 'Next Title', NULL, 'UI20000006', NULL, 'UI20000006'),
('AD20000103', '20000006', '6.880043', '79.8687657', '2020-03-02 07:22:18', 'SELLER', 'CATL', 'CO', '2020-06-02', 3, 0, '', '0', 'Next Title', NULL, 'UI20000006', NULL, 'UI20000006'),
('AD20000104', '20000006', '6.880043', '79.8687657', '2020-03-02 07:22:27', 'SELLER', 'CATL', 'CO', '2020-06-02', 3, 0, '', '0', 'Next Title', NULL, 'UI20000006', NULL, 'UI20000006'),
('AD20000105', '20000006', '6.880043', '79.8687657', '2020-03-02 07:22:42', 'SELLER', 'CATL', 'CO', '2020-06-02', 3, 0, '', '0', 'Next Title', NULL, 'UI20000006', NULL, 'UI20000006'),
('AD20000106', '20000006', '6.880043', '79.8687657', '2020-03-02 07:24:15', 'SELLER', 'CATL', 'CO', '2020-06-02', 3, 0, '', '0', 'Next Title', NULL, 'UI20000006', NULL, 'UI20000006'),
('AD20000107', '20000006', '6.880043', '79.8687657', '2020-03-02 07:24:43', 'SELLER', 'CATL', 'CO', '2020-06-02', 3, 0, '', '0', 'Next Title', NULL, 'UI20000006', NULL, 'UI20000006'),
('AD20000108', '20000006', '6.880043', '79.8687657', '2020-03-02 07:25:34', 'SELLER', 'CATL', 'CO', '2020-06-02', 3, 0, '', '0', 'Next Title', NULL, 'UI20000006', NULL, 'UI20000006'),
('AD20000109', '20000006', '6.880043', '79.8687657', '2020-03-02 07:27:16', 'SELLER', 'CATL', 'CO', '2020-06-02', 3, 0, '', '0', 'Next Title', NULL, 'UI20000006', NULL, 'UI20000006'),
('AD20000110', '20000006', '6.880043', '79.8687657', '2020-03-02 07:28:03', 'SELLER', 'CATL', 'CO', '2020-06-02', 3, 0, '', '0', 'Next Title', NULL, 'UI20000006', NULL, 'UI20000006'),
('AD20000111', '20000006', '6.880043', '79.8687657', '2020-03-02 07:28:17', 'SELLER', 'CATL', 'CO', '2020-06-02', 3, 0, '', '0', 'Next Title', NULL, 'UI20000006', NULL, 'UI20000006'),
('AD20000112', '20000006', '6.880043', '79.8687657', '2020-03-02 07:32:16', 'SELLER', 'CATL', 'CO', '2020-06-02', 3, 0, '', '0', 'Next Title', NULL, 'UI20000006', NULL, 'UI20000006'),
('AD20000113', '20000006', '6.880043', '79.8687657', '2020-03-02 07:32:42', 'SELLER', 'CATL', 'CO', '2020-06-02', 3, 0, 'A', '0', 'Next Title', NULL, 'UI20000006', NULL, 'UI20000006'),
('AD20000114', '20000006', '6.880043', '79.8687657', '2020-03-02 07:34:09', 'SELLER', 'CATL', 'CO', '2020-06-02', 3, 0, 'A', '0', 'Next Title', NULL, 'UI20000006', NULL, 'UI20000006'),
('AD20000115', '20000006', '6.880043', '79.8687657', '2020-03-02 07:37:00', 'SELLER', 'CATL', 'CO', '2020-06-02', 3, 0, 'A', '0', 'Next Title', NULL, 'UI20000006', NULL, 'UI20000006'),
('AD20000116', '20000006', '6.880043', '79.8687657', '2020-03-02 07:37:13', 'SELLER', 'CATL', 'CO', '2020-06-02', 3, 0, 'A', '0', 'Next Title', NULL, 'UI20000006', NULL, 'UI20000006'),
('AD20000117', '20000006', '6.880043', '79.8687657', '2020-03-02 07:37:23', 'SELLER', 'CATL', 'CO', '2020-06-02', 3, 0, 'A', '0', 'Next Title', NULL, 'UI20000006', NULL, 'UI20000006'),
('AD20000118', '20000006', '6.880043', '79.8687657', '2020-03-02 07:38:15', 'SELLER', 'CATL', 'CO', '2020-06-02', 3, 0, 'A', '0', 'Next Title', NULL, 'UI20000006', NULL, 'UI20000006'),
('AD20000119', '20000006', '6.880043', '79.8687657', '2020-03-02 07:39:11', 'SELLER', 'CATL', 'CO', '2020-06-02', 3, 0, 'A', '0', 'Next Title', NULL, 'UI20000006', NULL, 'UI20000006'),
('AD20000120', '20000006', '6.880043', '79.8687657', '2020-03-02 07:45:48', 'SELLER', 'EQU', 'CO', '2020-05-02', 2, 3, 'A', '0', 'Title', NULL, 'UI20000006', '2020-03-06 06:05:25', 'UI20000006'),
('AD20000121', '20000006', '6.880043', '79.8687657', '2020-03-02 07:47:09', 'SELLER', 'CATL', 'CO', '2020-06-02', 3, 0, 'A', '0', 'Next Title', NULL, 'UI20000006', NULL, 'UI20000006'),
('AD20000122', '20000006', '6.880043', '79.8687657', '2020-03-02 07:47:13', 'SELLER', 'CATL', 'CO', '2020-06-02', 3, 0, 'A', '0', 'Next Title', NULL, 'UI20000006', NULL, 'UI20000006'),
('AD20000123', '20000006', '6.880043', '79.8687657', '2020-03-02 07:47:15', 'SELLER', 'CATL', 'CO', '2020-06-02', 3, 0, 'A', '0', 'Next Title', NULL, 'UI20000006', NULL, 'UI20000006'),
('AD20000124', '20000006', '6.880043', '79.8687657', '2020-03-02 07:47:50', 'SELLER', 'CATL', 'CO', '2020-06-02', 3, 4, 'A', '0', 'Next Title', NULL, 'UI20000006', '2020-03-02 02:49:39', 'UI20000006'),
('AD20000125', '20000006', '6.880043', '79.8687657', '2020-03-02 07:55:34', 'SELLER', 'EQU', 'CO', '2020-06-02', 3, 8, 'A', '0', 'Book B&B', NULL, 'UI20000006', '2020-03-13 04:08:43', 'UI20000006'),
('AD20000126', '20000006', '6.880043', '79.8687657', '2020-03-02 09:04:03', 'SELLER', 'CATL', 'CO', '2020-05-02', 2, 0, 'A', '0', 'Thib', NULL, 'UI20000006', NULL, 'UI20000006'),
('AD20000127', '20000006', '6.880043', '79.8687657', '2020-03-02 09:13:41', 'SELLER', 'CATL', 'CO', '2020-06-02', 3, 1, 'A', '0', 'image test 1', NULL, 'UI20000006', '2020-03-02 03:44:49', 'UI20000006'),
('AD20000128', '20000006', '6.880043', '79.8687657', '2020-03-02 09:47:50', 'SELLER', 'CATL', 'CO', '2020-04-02', 1, 0, 'A', '0', 'New image test', NULL, 'UI20000006', NULL, 'UI20000006'),
('AD20000129', '20000006', '6.880043', '79.8687657', '2020-03-02 09:50:09', 'SELLER', 'CATL', 'CO', '2020-06-02', 3, 0, 'A', '0', 'image test 1', NULL, 'UI20000006', NULL, 'UI20000006'),
('AD20000130', '20000006', '6.880043', '79.8687657', '2020-03-02 10:44:16', 'SELLER', 'CATL', 'CO', '2020-06-02', 3, 0, 'A', '0', 'image test 1', NULL, 'UI20000006', NULL, 'UI20000006'),
('AD20000131', '20000006', '6.880043', '79.8687657', '2020-03-02 10:56:47', 'SELLER', 'CATL', 'CO', '2020-06-02', 3, 0, 'A', '0', 'image test 1', NULL, 'UI20000006', NULL, 'UI20000006'),
('AD20000132', '20000006', '6.880043', '79.8687657', '2020-03-02 11:28:55', 'SELLER', 'CATL', 'CO', '2020-06-02', 3, 0, 'A', '0', 'image test 1', NULL, 'UI20000006', NULL, 'UI20000006'),
('AD20000133', '20000006', '6.880043', '79.8687657', '2020-03-03 03:04:12', 'SELLER', 'CATL', 'CO', '2020-06-03', 3, 1, 'A', '0', 'image test 1', NULL, 'UI20000006', '2020-03-02 21:57:00', 'UI20000006'),
('AD20000134', '20000006', '6.880043', '79.8687657', '2020-03-03 03:28:03', 'SELLER', 'CATL', 'CO', '2020-06-03', 3, 1, 'A', '0', 'image test 1', NULL, 'UI20000006', '2020-03-02 21:58:38', 'UI20000006'),
('AD20000135', '20000006', '6.880043', '79.8687657', '2020-03-03 03:37:50', 'SELLER', 'CATL', 'CO', '2020-06-03', 3, 2, 'A', '0', 'image test 1', NULL, 'UI20000006', '2020-03-02 22:27:19', 'UI20000006'),
('AD20000136', '20000006', '6.880043', '79.8687657', '2020-03-03 03:43:14', 'SELLER', 'CATL', 'CO', '2020-06-03', 3, 1, 'A', '0', 'image test 1', NULL, 'UI20000006', '2020-03-02 22:13:41', 'UI20000006'),
('AD20000137', '20000006', '6.880043', '79.8687657', '2020-03-03 03:43:32', 'SELLER', 'CATL', 'CO', '2020-06-03', 3, 0, 'A', '0', 'image test 1', NULL, 'UI20000006', NULL, 'UI20000006'),
('AD20000138', '20000006', '6.880043', '79.8687657', '2020-03-03 03:57:55', 'SELLER', 'CATL', 'CO', '2020-06-03', 3, 0, 'A', '0', 'image test 1', NULL, 'UI20000006', NULL, 'UI20000006'),
('AD20000139', '20000006', '6.880043', '79.8687657', '2020-03-03 04:02:07', 'SELLER', 'CATL', 'CO', '2020-09-03', 6, 0, '', '0', 'hi', NULL, 'UI20000006', NULL, 'UI20000006'),
('AD20000140', '20000006', '6.880043', '79.8687657', '2020-03-03 04:02:16', 'SELLER', 'CATL', 'CO', '2020-09-03', 6, 0, 'A', '0', 'hi', NULL, 'UI20000006', NULL, 'UI20000006'),
('AD20000141', '20000006', '6.880043', '79.8687657', '2020-03-03 04:30:15', 'SELLER', 'CATL', 'CO', '2020-06-03', 3, 0, 'A', '0', 'image test 1', NULL, 'UI20000006', NULL, 'UI20000006'),
('AD20000142', '20000006', '6.880043', '79.8687657', '2020-03-03 04:33:50', 'SELLER', 'CATL', 'CO', '2020-06-03', 3, 2, 'A', '0', 'Next Title', NULL, 'UI20000006', '2020-03-02 23:11:11', 'UI20000006'),
('AD20000143', '20000006', '6.880043', '79.8687657', '2020-03-03 05:07:43', 'SELLER', 'CATL', 'CO', '2020-06-03', 3, 0, 'A', '0', 'image test 1', NULL, 'UI20000006', NULL, 'UI20000006'),
('AD20000144', '20000006', '6.880043', '79.8687657', '2020-03-03 05:13:20', 'SELLER', 'CATL', 'CO', '2020-05-03', 2, 0, 'A', '0', 'Ad_Title', NULL, 'UI20000006', NULL, 'UI20000006'),
('AD20000145', '20000006', '6.880043', '79.8687657', '2020-03-03 05:15:22', 'SELLER', 'CATL', 'CO', '2020-05-03', 2, 0, 'A', '0', 'Ad_Title', NULL, 'UI20000006', NULL, 'UI20000006'),
('AD20000146', '20000006', '6.880043', '79.8687657', '2020-03-03 05:17:40', 'SELLER', 'CATL', 'CO', '2020-05-03', 2, 0, 'A', '0', 'Ad_Title', NULL, 'UI20000006', NULL, 'UI20000006'),
('AD20000147', '20000006', '6.880043', '79.8687657', '2020-03-03 05:18:29', 'SELLER', 'CATL', 'CO', '2020-05-03', 2, 0, 'A', '0', 'Ad_Title', NULL, 'UI20000006', NULL, 'UI20000006'),
('AD20000148', '20000006', '6.880043', '79.8687657', '2020-03-03 05:24:09', 'SELLER', 'CATL', 'CO', '2020-05-03', 2, 0, 'A', '0', 'Ad_Title', NULL, 'UI20000006', NULL, 'UI20000006'),
('AD20000149', '20000006', '6.880043', '79.8687657', '2020-03-03 05:25:26', 'SELLER', 'CATL', 'CO', '2020-05-03', 2, 0, 'A', '0', 'Ad_Title', NULL, 'UI20000006', NULL, 'UI20000006'),
('AD20000150', '20000006', '6.880043', '79.8687657', '2020-03-03 05:36:10', 'SELLER', 'CATL', 'CO', '2020-05-03', 2, 0, 'A', '0', 'Ad_Title', NULL, 'UI20000006', NULL, 'UI20000006'),
('AD20000151', '20000006', '6.880043', '79.8687657', '2020-03-03 05:37:26', 'SELLER', 'CATL', 'CO', '2020-05-03', 2, 0, 'A', '0', 'Ad_Title', NULL, 'UI20000006', NULL, 'UI20000006'),
('AD20000152', '20000006', '6.880043', '79.8687657', '2020-03-03 05:39:00', 'SELLER', 'CATL', 'CO', '2020-05-03', 2, 0, 'A', '0', 'Ad_Title', NULL, 'UI20000006', NULL, 'UI20000006'),
('AD20000153', '20000006', '6.880043', '79.8687657', '2020-03-03 05:40:54', 'SELLER', 'CATL', 'CO', '2020-05-03', 2, 0, 'A', '0', 'Ad_Title', NULL, 'UI20000006', NULL, 'UI20000006'),
('AD20000154', '20000006', '6.880043', '79.8687657', '2020-03-03 06:08:39', 'SELLER', 'CATL', 'CO', '2020-05-03', 2, 0, 'A', '0', 'Ad_Title', NULL, 'UI20000006', NULL, 'UI20000006'),
('AD20000155', '20000006', '6.880043', '79.8687657', '2020-03-03 06:09:52', 'SELLER', 'CATL', 'CO', '2020-05-03', 2, 0, 'A', '0', 'Ad_Title', NULL, 'UI20000006', NULL, 'UI20000006'),
('AD20000156', '20000006', '6.880043', '79.8687657', '2020-03-03 06:15:31', 'SELLER', 'CATL', 'CO', '2020-05-03', 2, 0, 'A', '0', 'Ad_Title', NULL, 'UI20000006', NULL, 'UI20000006'),
('AD20000157', '20000006', '6.880043', '79.8687657', '2020-03-03 06:20:16', 'SELLER', 'CATL', 'CO', '2020-05-03', 2, 0, 'A', '0', 'Ad_Title', NULL, 'UI20000006', NULL, 'UI20000006'),
('AD20000158', '20000006', '6.880043', '79.8687657', '2020-03-03 06:24:40', 'SELLER', 'CATL', 'CO', '2020-05-03', 2, 0, 'A', '0', 'Ad_Title', NULL, 'UI20000006', NULL, 'UI20000006'),
('AD20000159', '20000006', '6.880043', '79.8687657', '2020-03-03 06:31:33', 'SELLER', 'CATL', 'CO', '2020-05-03', 2, 0, 'A', '0', 'Ad_Title', NULL, 'UI20000006', NULL, 'UI20000006'),
('AD20000160', '20000006', '6.880043', '79.8687657', '2020-03-03 06:35:54', 'SELLER', 'CATL', 'CO', '2020-05-03', 2, 0, 'A', '0', 'Ad_Title', NULL, 'UI20000006', NULL, 'UI20000006'),
('AD20000161', '20000006', '6.880043', '79.8687657', '2020-03-03 06:36:55', 'SELLER', 'CATL', 'CO', '2020-05-03', 2, 0, 'A', '0', 'Ad_Title', NULL, 'UI20000006', NULL, 'UI20000006'),
('AD20000162', '20000006', '6.880043', '79.8687657', '2020-03-03 06:38:41', 'SELLER', 'CATL', 'CO', '2020-05-03', 2, 0, 'A', '0', 'Ad_Title', NULL, 'UI20000006', NULL, 'UI20000006'),
('AD20000163', '20000006', '6.880043', '79.8687657', '2020-03-03 06:45:23', 'SELLER', 'CATL', 'CO', '2020-05-03', 2, 0, 'A', '0', 'Ad_Title', NULL, 'UI20000006', NULL, 'UI20000006'),
('AD20000164', '20000006', '6.880043', '79.8687657', '2020-03-03 06:47:53', 'SELLER', 'CATL', 'CO', '2020-05-03', 2, 1, 'A', '0', 'Ihhihoh', NULL, 'UI20000006', '2020-03-03 01:19:02', 'UI20000006'),
('AD20000165', '20000006', '6.880043', '79.8687657', '2020-03-03 06:54:42', 'SELLER', 'CATL', 'CO', '2020-05-03', 2, 0, 'A', '0', 'Ad_Title', NULL, 'UI20000006', NULL, 'UI20000006'),
('AD20000166', '20000006', '6.880043', '79.8687657', '2020-03-03 06:56:40', 'SELLER', 'CATL', 'CO', '2020-05-03', 2, 0, 'A', '0', 'Ad_Title', NULL, 'UI20000006', NULL, 'UI20000006'),
('AD20000167', '20000006', '6.880043', '79.8687657', '2020-03-03 06:57:28', 'SELLER', 'CATL', 'CO', '2020-05-03', 2, 0, 'A', '0', 'Ad_Title', NULL, 'UI20000006', NULL, 'UI20000006'),
('AD20000168', '20000006', '6.880043', '79.8687657', '2020-03-03 06:58:36', 'SELLER', 'CATL', 'CO', '2020-05-03', 2, 0, 'A', '0', 'Ad_Title', NULL, 'UI20000006', NULL, 'UI20000006'),
('AD20000169', '20000006', '6.880043', '79.8687657', '2020-03-03 07:02:37', 'SELLER', 'CATL', 'CO', '2020-05-03', 2, 0, 'A', '0', 'Ad_Title', NULL, 'UI20000006', NULL, 'UI20000006'),
('AD20000170', '20000006', '6.880043', '79.8687657', '2020-03-03 07:47:09', 'SELLER', 'CATL', 'CO', '2020-05-03', 2, 0, 'A', '0', 'Ad_Title', NULL, 'UI20000006', NULL, 'UI20000006'),
('AD20000171', '20000006', '6.880043', '79.8687657', '2020-03-03 07:51:26', 'SELLER', 'CATL', 'CO', '2020-05-03', 2, 0, 'A', '0', 'Ad_Title', NULL, 'UI20000006', NULL, 'UI20000006'),
('AD20000172', '20000006', '6.880043', '79.8687657', '2020-03-03 07:56:19', 'SELLER', 'CATL', 'CO', '2020-05-03', 2, 0, 'A', '0', 'Ad_Title', NULL, 'UI20000006', NULL, 'UI20000006'),
('AD20000173', '20000006', '6.880043', '79.8687657', '2020-03-03 08:18:45', 'SELLER', 'CATL', 'CO', '2020-05-03', 2, 0, 'A', '0', 'Ad_Title', NULL, 'UI20000006', NULL, 'UI20000006'),
('AD20000174', '20000006', '6.880043', '79.8687657', '2020-03-03 08:22:34', 'SELLER', 'CATL', 'CO', '2020-05-03', 2, 0, 'A', '0', 'Ad_Title', NULL, 'UI20000006', NULL, 'UI20000006'),
('AD20000175', '20000006', '6.880043', '79.8687657', '2020-03-03 08:23:54', 'SELLER', 'FEED_FOD', 'CO', '2020-05-03', 2, 0, 'A', '0', 'Check', NULL, 'UI20000006', NULL, 'UI20000006'),
('AD20000176', '20000006', '6.880043', '79.8687657', '2020-03-03 08:24:09', 'SELLER', 'CATL', 'CO', '2020-05-03', 2, 0, 'A', '0', 'Ad_Title', NULL, 'UI20000006', NULL, 'UI20000006'),
('AD20000177', '20000006', '6.880043', '79.8687657', '2020-03-03 08:26:06', 'SELLER', 'CATL', 'CO', '2020-05-03', 2, 0, 'A', '0', 'Ad_Title', NULL, 'UI20000006', NULL, 'UI20000006'),
('AD20000178', '20000006', '6.880043', '79.8687657', '2020-03-03 08:26:39', 'SELLER', 'CATL', 'CO', '2020-05-03', 2, 0, 'A', '0', 'Ad_Title', NULL, 'UI20000006', NULL, 'UI20000006'),
('AD20000179', '20000006', '6.880043', '79.8687657', '2020-03-03 08:27:56', 'SELLER', 'CATL', 'CO', '2020-05-03', 2, 0, 'A', '0', 'Ad_Title', NULL, 'UI20000006', NULL, 'UI20000006'),
('AD20000180', '20000006', '6.880043', '79.8687657', '2020-03-03 08:29:54', 'SELLER', 'CATL', 'CO', '2020-05-03', 2, 0, 'A', '0', 'Ad_Title', NULL, 'UI20000006', NULL, 'UI20000006'),
('AD20000181', '20000006', '6.880043', '79.8687657', '2020-03-03 08:31:18', 'SELLER', 'CATL', 'CO', '2020-05-03', 2, 0, 'A', '0', 'Ad_Title', NULL, 'UI20000006', NULL, 'UI20000006'),
('AD20000182', '20000006', '6.880043', '79.8687657', '2020-03-03 08:32:13', 'SELLER', 'CATL', 'CO', '2020-05-03', 2, 0, 'A', '0', 'Ad_Title', NULL, 'UI20000006', NULL, 'UI20000006'),
('AD20000183', '20000006', '6.880043', '79.8687657', '2020-03-03 08:34:45', 'SELLER', 'CATL', 'CO', '2020-05-03', 2, 0, 'A', '0', 'Ad_Title', NULL, 'UI20000006', NULL, 'UI20000006'),
('AD20000184', '20000006', '6.880043', '79.8687657', '2020-03-03 08:36:18', 'SELLER', 'CATL', 'CO', '2020-05-03', 2, 0, 'A', '0', 'Ad_Title', NULL, 'UI20000006', NULL, 'UI20000006'),
('AD20000185', '20000006', '6.880043', '79.8687657', '2020-03-03 08:36:40', 'SELLER', 'CATL', 'CO', '2020-05-03', 2, 0, 'A', '0', 'Ad_Title', NULL, 'UI20000006', NULL, 'UI20000006'),
('AD20000186', '20000006', '6.880043', '79.8687657', '2020-03-03 08:42:15', 'SELLER', 'CATL', 'CO', '2020-05-03', 2, 0, 'A', '0', 'Ad_Title', NULL, 'UI20000006', NULL, 'UI20000006'),
('AD20000187', '20000006', '6.880043', '79.8687657', '2020-03-03 08:45:29', 'SELLER', 'CATL', 'CO', '2020-05-03', 2, 0, 'A', '0', 'Ad_Title', NULL, 'UI20000006', NULL, 'UI20000006'),
('AD20000188', '20000006', '6.880043', '79.8687657', '2020-03-03 08:49:09', 'SELLER', 'CATL', 'CO', '2020-05-03', 2, 0, 'A', '0', 'Ad_Title', NULL, 'UI20000006', NULL, 'UI20000006'),
('AD20000189', '20000006', '6.880043', '79.8687657', '2020-03-03 08:52:57', 'SELLER', 'CATL', 'CO', '2020-05-03', 2, 0, 'A', '0', 'Ad_Title', NULL, 'UI20000006', NULL, 'UI20000006'),
('AD20000190', '20000006', '6.880043', '79.8687657', '2020-03-03 08:55:34', 'SELLER', 'CATL', 'CO', '2020-05-03', 2, 2, 'A', '0', 'Ad_Title', NULL, 'UI20000006', '2020-03-03 23:43:18', 'UI20000006'),
('AD20000191', '20000006', '6.880043', '79.8687657', '2020-03-03 08:59:41', 'SELLER', 'CATL', 'CO', '2020-05-03', 2, 0, 'A', '0', 'Ad_Title', NULL, 'UI20000006', NULL, 'UI20000006'),
('AD20000192', '20000006', '6.880043', '79.8687657', '2020-03-03 09:00:30', 'SELLER', 'CATL', 'CO', '2020-05-03', 2, 0, 'A', '0', 'Ad_Title', NULL, 'UI20000006', NULL, 'UI20000006'),
('AD20000193', '20000006', '6.880043', '79.8687657', '2020-03-03 09:03:27', 'SELLER', 'CATL', 'CO', '2020-05-03', 2, 2, 'A', '0', 'Ad_Title', NULL, 'UI20000006', '2020-03-03 23:44:09', 'UI20000006'),
('AD20000194', '20000006', '6.880043', '79.8687657', '2020-03-03 09:07:40', 'SELLER', 'CATL', 'CO', '2020-05-03', 2, 104, 'A', '0', 'Bjb', NULL, 'UI20000006', '2020-03-05 00:42:51', 'UI20000006'),
('AD20000195', '20000006', '6.880043', '79.8687657', '2020-03-03 09:12:34', 'SELLER', 'CATL', 'CO', '2020-05-03', 2, 0, 'A', '0', 'Yy', NULL, 'UI20000006', NULL, 'UI20000006'),
('AD20000196', '20000006', '6.880043', '79.8687657', '2020-03-04 10:22:17', 'SELLER', 'EQU', 'CO', '2020-06-04', 3, 0, 'A', '0', 'Equipment Sale HM', NULL, 'UI20000006', NULL, 'UI20000006'),
('AD20000197', '20000006', '6.880043', '79.8687657', '2020-03-04 10:34:59', 'SELLER', 'EQU', 'CO', '2020-06-04', 3, 0, 'A', '0', 'Equipment Sale HM', NULL, 'UI20000006', NULL, 'UI20000006'),
('AD20000198', '20000006', '6.880043', '79.8687657', '2020-03-04 10:35:42', 'SELLER', 'EQU', 'CO', '2020-06-04', 3, 0, 'A', '0', 'Equipment Sale HM', NULL, 'UI20000006', NULL, 'UI20000006'),
('AD20000199', '20000006', '6.880043', '79.8687657', '2020-03-04 10:37:24', 'SELLER', 'EQU', 'CO', '2020-06-04', 3, 0, 'A', '0', 'Equipment Sale HM', NULL, 'UI20000006', NULL, 'UI20000006'),
('AD20000200', '20000006', '6.880043', '79.8687657', '2020-03-04 10:47:48', 'SELLER', 'EQU', 'CO', '2020-06-04', 3, 0, 'A', '0', 'Equipment Sale HM', NULL, 'UI20000006', NULL, 'UI20000006'),
('AD20000201', '20000006', '6.880043', '79.8687657', '2020-03-04 10:48:18', 'SELLER', 'EQU', 'CO', '2020-06-04', 3, 0, 'A', '0', 'Equipment Sale HM', NULL, 'UI20000006', NULL, 'UI20000006'),
('AD20000202', '20000006', '6.880043', '79.8687657', '2020-03-04 10:48:34', 'SELLER', 'EQU', 'CO', '2020-06-04', 3, 26, 'A', '0', 'Equipment Sale HM', NULL, 'UI20000006', '2020-03-13 04:10:24', 'UI20000006'),
('AD20000203', '20000006', '6.880043', '79.8687657', '2020-03-05 04:02:46', 'SELLER', 'FEED_SIL', 'CO', '2020-05-05', 2, 3, 'A', '0', 'HM first 03/05', NULL, 'UI20000006', '2020-03-04 23:29:00', 'UI20000006'),
('AD20000204', '20000006', '6.880043', '79.8687657', '2020-03-05 05:17:30', 'SELLER', 'CATL', 'CO', '2020-05-05', 2, 13, 'A', '0', 'New', NULL, 'UI20000006', '2020-03-12 00:27:54', 'UI20000006'),
('AD20000205', '20000006', '6.880043', '79.8687657', '2020-03-05 08:44:17', 'SELLER', 'FEED_SIL', 'CO', '2020-05-05', 2, 24, 'A', '0', 'HM first 03/05', NULL, 'UI20000006', '2020-04-08 01:56:39', 'UI20000006'),
('AD20000206', '20000006', '6.880043', '79.8687657', '2020-03-05 08:57:31', 'SELLER', 'FEED_FOD', 'CO', '2020-05-05', 2, 0, 'A', '0', 'Check', NULL, 'UI20000006', NULL, 'UI20000006'),
('AD20000207', '20000006', '6.880043', '79.8687657', '2020-03-05 09:06:01', 'SELLER', 'FEED_FOD', 'CO', '2020-05-05', 2, 0, 'A', '0', 'Check', NULL, 'UI20000006', NULL, 'UI20000006'),
('AD20000208', '20000002', '6.8599379', '79.8663559', '2020-03-05 09:29:15', 'SELLER', 'FEED_FOD', 'CO', '2020-05-05', 2, 3, 'A', '0', 'Check', NULL, 'UI20000002', '2020-03-06 00:05:32', 'UI20000002'),
('AD20000209', '20000006', '6.880043', '79.8687657', '2020-03-05 10:56:05', 'SELLER', 'FEED_FOD', 'CO', '2020-06-05', 3, 0, '', '0', 'Uh huh ub', NULL, 'UI20000006', NULL, 'UI20000006'),
('AD20000210', '20000006', '6.880043', '79.8687657', '2020-03-05 11:03:26', 'SELLER', 'FEED_FOD', 'CO', '2020-05-05', 2, 0, '', '0', 'Ihig', NULL, 'UI20000006', NULL, 'UI20000006'),
('AD20000211', '20000006', '6.880043', '79.8687657', '2020-03-05 11:06:34', 'SELLER', 'FEED_FOD', 'CO', '2020-05-05', 2, 0, 'A', '0', 'Bu bib jbh', NULL, 'UI20000006', NULL, 'UI20000006'),
('AD20000212', '20000006', '6.880043', '79.8687657', '2020-03-06 03:28:06', 'SELLER', 'FEED_FOD', 'CO', '2020-06-06', 3, 0, '', '0', 'Fodder ads', NULL, 'UI20000006', NULL, 'UI20000006'),
('AD20000213', '20000002', '6.8599379', '79.8663559', '2020-03-06 03:30:14', 'SELLER', 'FEED_FOD', 'CO', '2020-05-06', 2, 0, '', '0', 'Check', NULL, 'UI20000002', NULL, 'UI20000002'),
('AD20000214', '20000002', '6.8599379', '79.8663559', '2020-03-06 03:30:26', 'SELLER', 'FEED_FOD', 'CO', '2020-05-06', 2, 0, 'A', '0', 'Check', NULL, 'UI20000002', NULL, 'UI20000002'),
('AD20000215', '20000006', '6.880043', '79.8687657', '2020-03-06 03:33:39', 'SELLER', 'FEED_FOD', 'CO', '2020-05-06', 2, 15, 'A', '0', 'Fodder New ads', NULL, 'UI20000006', '2020-03-13 04:16:59', 'UI20000006'),
('AD20000216', '20000006', '6.880043', '79.8687657', '2020-03-06 04:04:36', 'SELLER', 'FEED_FOD', 'CO', '2020-06-06', 3, 0, 'A', '0', 'New 2 ads', NULL, 'UI20000006', NULL, 'UI20000006'),
('AD20000217', '20000002', '6.8599379', '79.8663559', '2020-03-06 05:37:25', 'SELLER', 'FEED_FOD', 'CO', '2020-05-06', 2, 0, '', '0', 'Check', NULL, 'UI20000002', NULL, 'UI20000002'),
('AD20000218', '20000002', '6.8599379', '79.8663559', '2020-03-06 05:38:00', 'SELLER', 'FEED_FOD', 'CO', '2020-05-06', 2, 0, 'A', '0', 'Check', NULL, 'UI20000002', NULL, 'UI20000002'),
('AD20000219', '20000002', '6.8599379', '79.8663559', '2020-03-06 05:38:28', 'SELLER', 'FEED_FOD', 'CO', '2020-05-06', 2, 0, 'A', '0', 'Check', NULL, 'UI20000002', NULL, 'UI20000002'),
('AD20000220', '20000002', '6.8599379', '79.8663559', '2020-03-06 05:51:45', 'SELLER', 'FEED_FOD', 'CO', '2020-05-06', 2, 0, 'A', '0', 'Check', NULL, 'UI20000002', NULL, 'UI20000002'),
('AD20000221', '20000006', '6.880043', '79.8687657', '2020-03-06 11:31:23', 'SELLER', 'FEED_FOD', 'CO', '2020-06-06', 3, 4, 'A', '0', 'New title', NULL, 'UI20000006', '2020-03-13 03:34:04', 'UI20000006'),
('AD20000222', '20000006', '6.880043', '79.8687657', '2020-03-06 11:43:17', 'SELLER', 'CATL', 'CO', '2020-05-06', 2, 3, 'A', '0', 'Bjj', NULL, 'UI20000006', '2020-04-28 23:59:26', 'UI20000006'),
('AD20000223', '20000010', '6.8599466', '79.8663582', '2020-03-13 00:00:00', 'AI', 'SERV_AI', 'CO', '2022-03-13', 12, 1, 'O', '0', '', NULL, 'UI20000010', '2020-05-20 03:08:01', 'UI20000010'),
('AD20000224', '20000002', '6.8599379', '79.8663559', '2020-03-19 05:10:31', 'BUYER', 'CATL', 'CO', '2020-04-19', 1, 0, 'O', '0', 'Cattle Purchase', NULL, 'UI20000002', NULL, 'UI20000002'),
('AD20000225', '20000002', '6.8599379', '79.8663559', '2020-03-19 05:15:32', 'BUYER', 'EQU', 'CO', '2020-09-19', 6, 0, '', '0', 'Save Purchase Equipment', NULL, 'UI20000002', NULL, 'UI20000002'),
('AD20000226', '20000002', '6.8599379', '79.8663559', '2020-03-19 05:15:44', 'BUYER', 'EQU', 'CO', '2020-09-19', 6, 0, '', '0', 'Save Purchase Equipment', NULL, 'UI20000002', NULL, 'UI20000002'),
('AD20000227', '20000002', '6.8599379', '79.8663559', '2020-03-19 05:17:51', 'BUYER', 'EQU', 'CO', '2020-09-19', 6, 0, 'O', '0', 'Save Purchase Equipment', NULL, 'UI20000002', '2020-05-10 23:50:40', 'UI20000002'),
('AD20000228', '20000010', '6.8599466', '79.8663582', '2020-04-20 10:32:04', 'BUYER', 'FEED_FOD', 'CO', '2020-09-20', 5, 0, '', '0', 'New Fodder', NULL, 'UI20000010', NULL, 'UI20000010'),
('AD20000229', '20000010', '6.8599466', '79.8663582', '2020-04-20 10:36:52', 'SELLER', 'FEED_FOD', 'CO', '2020-06-20', 2, 0, 'A', '0', 'Check', NULL, 'UI20000010', NULL, 'UI20000010'),
('AD20000230', '20000010', '6.8599466', '79.8663582', '2020-04-20 10:39:48', 'BUYER', 'FEED_FOD', 'CO', '2020-09-20', 5, 0, '', '0', 'New Fodder', NULL, 'UI20000010', NULL, 'UI20000010'),
('AD20000231', '20000010', '6.8599466', '79.8663582', '2020-04-20 10:42:39', 'BUYER', 'FEED_FOD', 'CO', '2020-09-20', 5, 0, '', '0', 'New Fodder', NULL, 'UI20000010', NULL, 'UI20000010'),
('AD20000232', '20000010', '6.8599466', '79.8663582', '2020-04-20 10:44:34', 'BUYER', 'FEED_FOD', 'CO', '2020-09-20', 5, 0, '', '0', 'New Fodder', NULL, 'UI20000010', NULL, 'UI20000010'),
('AD20000233', '20000010', '6.8599466', '79.8663582', '2020-04-20 10:45:14', 'BUYER', 'FEED_FOD', 'CO', '2020-09-20', 5, 0, '', '0', 'New Fodder', NULL, 'UI20000010', NULL, 'UI20000010'),
('AD20000234', '20000010', '6.8599466', '79.8663582', '2020-04-20 10:45:57', 'BUYER', 'FEED_FOD', 'CO', '2020-09-20', 5, 0, '', '0', 'New Fodder', NULL, 'UI20000010', NULL, 'UI20000010'),
('AD20000235', '20000010', '6.8599466', '79.8663582', '2020-04-20 10:49:59', 'BUYER', 'FEED_FOD', 'CO', '2020-09-20', 5, 0, '', '0', 'New Fodder', NULL, 'UI20000010', NULL, 'UI20000010'),
('AD20000236', '20000010', '6.8599466', '79.8663582', '2020-04-20 10:51:51', 'BUYER', 'FEED_FOD', 'CO', '2020-09-20', 5, 0, '', '0', 'New Fodder', NULL, 'UI20000010', NULL, 'UI20000010'),
('AD20000237', '20000010', '6.8599466', '79.8663582', '2020-04-20 11:04:38', 'BUYER', 'FEED_FOD', 'CO', '2020-09-20', 5, 0, 'C', '0', 'New Fodder', NULL, 'UI20000010', NULL, 'UI20000010'),
('AD20000238', '20000010', '6.8599466', '79.8663582', '2020-04-24 10:12:08', 'SELLER', 'CATL', 'CO', '2020-07-24', 3, 21, 'A', '0', 'Next Title', NULL, 'UI20000010', '2020-05-18 06:22:27', 'UI20000010'),
('AD20000239', '20000010', '6.8599466', '79.8663582', '2020-04-24 11:10:50', 'SELLER', 'EQU', 'CO', '2020-07-24', 3, 3, 'A', '0', 'Equipment Sale HM', NULL, 'UI20000010', '2020-04-24 05:44:38', 'UI20000010'),
('AD20000240', '20000010', '6.8599466', '79.8663582', '2020-04-24 11:51:31', 'SELLER', 'FEED_SIL', 'CO', '2020-06-24', 2, 2, 'A', '0', 'HM first 03/05', NULL, 'UI20000010', '2020-04-27 03:18:16', 'UI20000010'),
('AD20000241', '20000010', '6.8599466', '79.8663582', '2020-04-27 08:37:51', 'SELLER', 'FEED_SIL', 'CO', '2020-06-27', 2, 2, 'A', '0', 'HM first 03/05', NULL, 'UI20000010', '2020-04-27 03:53:36', 'UI20000010'),
('AD20000242', '20000010', '6.8599466', '79.8663582', '2020-04-27 11:23:46', 'SELLER', 'FEED_FOD', 'CO', '2020-06-27', 2, 5, 'A', '0', 'Check', NULL, 'UI20000010', '2020-04-28 22:10:58', 'UI20000010'),
('AD20000243', '20000011', '12', '22', '2020-04-27 00:00:00', 'AI', 'SERV_AI', 'HB', '2022-04-27', 12, 1, 'O', '0', '', NULL, 'UI20000011', '2020-05-20 03:08:01', 'UI20000011');

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

--
-- Table structure for table `t00_00adverts_master_20200219`
--

CREATE TABLE `t00_00adverts_master_20200219` (
  `advert_id` varchar(10) COLLATE utf8_unicode_ci NOT NULL COMMENT 'ADYYnnnnnn',
  `regno` varchar(10) COLLATE utf8_unicode_ci NOT NULL,
  `location_latitude` varchar(10) COLLATE utf8_unicode_ci NOT NULL,
  `location_longitude` varchar(10) COLLATE utf8_unicode_ci NOT NULL,
  `date_of_advert` datetime NOT NULL,
  `advert_type` varchar(10) COLLATE utf8_unicode_ci NOT NULL COMMENT 'from ad_type table',
  `prodsvc_id` varchar(10) COLLATE utf8_unicode_ci NOT NULL,
  `dist_id` varchar(10) COLLATE utf8_unicode_ci NOT NULL,
  `expires_on` date NOT NULL,
  `advert_duration` int(11) NOT NULL COMMENT 'No of months',
  `impressions` int(11) NOT NULL,
  `available_status` char(1) COLLATE utf8_unicode_ci NOT NULL COMMENT 'S: Sold, A: Available, O: Open , C: Close',
  `discontinued` char(1) COLLATE utf8_unicode_ci NOT NULL DEFAULT '0' COMMENT '1 - Discontinued, 0 - not discontinued',
  `title` varchar(200) COLLATE utf8_unicode_ci NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `created_by` varchar(10) COLLATE utf8_unicode_ci NOT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `edited_by` varchar(10) COLLATE utf8_unicode_ci NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `t00_00adverts_master_20200219`
--

INSERT INTO `t00_00adverts_master_20200219` (`advert_id`, `regno`, `location_latitude`, `location_longitude`, `date_of_advert`, `advert_type`, `prodsvc_id`, `dist_id`, `expires_on`, `advert_duration`, `impressions`, `available_status`, `discontinued`, `title`, `created_at`, `created_by`, `updated_at`, `edited_by`) VALUES
('AD20000001', '20000001', '6', '79', '2020-02-14 08:15:35', 'SELLER', 'CATL', 'CO', '2020-04-14', 1, 19, 'A', '0', '', NULL, 'UI20000001', '2020-02-17 03:19:33', 'UI20000001'),
('AD20000002', '20000001', '6.8599379', '79.8663559', '2020-02-14 08:28:44', 'BUYER', 'FEED_SIL', 'CO', '2020-04-14', 1, 1, 'C', '0', '', NULL, 'UI20000001', '2020-02-17 00:11:23', 'UI20000001'),
('AD20000003', '20000001', '6', '79', '2020-02-14 08:38:49', 'SELLER', 'FEED_FOD', 'CO', '2020-03-14', 1, 2, 'A', '0', '', NULL, 'UI20000001', '2020-02-18 22:06:20', 'UI20000001'),
('AD20000004', '20000001', '6', '79', '2020-02-14 08:51:12', 'BUYER', 'CATL', 'CO', '2020-04-14', 1, 2, 'O', '0', '', NULL, 'UI20000001', '2020-02-17 01:28:25', 'UI20000001'),
('AD20000005', '20000002', '6.8599379', '79.8663559', '2020-02-14 00:00:00', 'AI', 'SERV_AI', 'CO', '2021-03-14', 12, 5, 'O', '0', '', NULL, '10', '2020-02-17 00:43:04', '10'),
('AD20000008', '20000005', '6.8599599', '79.8663659', '2020-02-17 00:00:00', 'AI', 'SERV_AI', 'CO', '2020-03-17', 12, 0, 'O', '0', '', NULL, 'UI20000005', NULL, 'UI20000005'),
('AD20000009', '20000006', '6', '79', '2020-02-17 11:31:28', 'SELLER', 'CATL', 'CO', '2020-12-17', 3, 6, 'A', '0', '', NULL, 'UI20000006', '2020-02-17 21:03:18', 'UI20000006'),
('AD20000010', '20000006', '6', '79', '2020-02-18 05:54:21', 'SELLER', 'CATL', 'CO', '2020-08-18', 3, 18, 'A', '0', '', NULL, 'UI20000006', '2020-02-18 23:55:11', 'UI20000006'),
('AD20000011', '20000006', '6', '79', '2020-02-18 05:59:07', 'SELLER', 'CATL', 'CO', '2020-05-18', 3, 27, 'A', '0', '', NULL, 'UI20000006', '2020-02-18 22:23:48', 'UI20000006'),
('AD20000012', '20000006', '6', '79', '2020-02-18 06:02:20', 'SELLER', 'CATL', 'CO', '2020-04-18', 2, 0, 'A', '0', '', NULL, 'UI20000006', NULL, 'UI20000006'),
('AD20000013', '20000006', '6', '79', '2020-02-18 06:36:53', 'SELLER', 'FEED_SIL', 'CO', '2020-05-18', 3, 0, 'A', '0', '', NULL, 'UI20000006', NULL, 'UI20000006'),
('AD20000014', '20000006', '6', '79', '2020-02-18 07:09:21', 'SELLER', 'FEED_SIL', 'CO', '2020-08-18', 3, 3, 'A', '0', '', NULL, 'UI20000006', '2020-02-17 23:27:07', 'UI20000006'),
('AD20000015', '20000006', '6', '79', '2020-02-18 11:05:16', 'SELLER', 'CATL', 'CO', '2020-03-18', 1, 0, 'A', '0', '', NULL, 'UI20000006', NULL, 'UI20000006');

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

--
-- Table structure for table `t00_01adverts_extended`
--

CREATE TABLE `t00_01adverts_extended` (
  `rowno` int(11) NOT NULL,
  `advert_id` varchar(10) COLLATE utf8_unicode_ci NOT NULL,
  `prev_expiry_date` date NOT NULL,
  `prev_duration` int(11) NOT NULL COMMENT 'No of months',
  `impressions_topre_exp` int(11) NOT NULL,
  `new_expiry_date` date NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `created_by` varchar(10) COLLATE utf8_unicode_ci NOT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `edited_by` varchar(10) COLLATE utf8_unicode_ci NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `t00_01adverts_extended`
--

INSERT INTO `t00_01adverts_extended` (`rowno`, `advert_id`, `prev_expiry_date`, `prev_duration`, `impressions_topre_exp`, `new_expiry_date`, `created_at`, `created_by`, `updated_at`, `edited_by`) VALUES
(39, 'AD20000009', '2020-11-17', 3, 2, '2020-12-17', NULL, '', NULL, '');

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

--
-- Table structure for table `t00_02adverts_discontinued`
--

CREATE TABLE `t00_02adverts_discontinued` (
  `rowno` int(11) NOT NULL,
  `advert_id` varchar(10) COLLATE utf8_unicode_ci NOT NULL,
  `made_atransaction` char(1) COLLATE utf8_unicode_ci NOT NULL DEFAULT '9' COMMENT '1- YES, 0 - NO,  Default 9 - Not answered',
  `seller_rating` char(1) COLLATE utf8_unicode_ci NOT NULL DEFAULT '0' COMMENT '0 - Not Rated , 1 - Excellent, 2 - Satisfactory , 9- Unsatisfactory , 0 - Default ',
  `seller_comments` text COLLATE utf8_unicode_ci NOT NULL,
  `buyer_rating` char(1) COLLATE utf8_unicode_ci NOT NULL DEFAULT '0' COMMENT '0 - Not Rated , 1 - Excellent, 2 - Satisfactory , 9- Unsatisfactory , 0 - Default',
  `buyer_comments` text COLLATE utf8_unicode_ci NOT NULL,
  `date_discontinued` date NOT NULL,
  `rated_user` varchar(10) COLLATE utf8_unicode_ci NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `created_by` varchar(10) COLLATE utf8_unicode_ci NOT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `edited_by` varchar(10) COLLATE utf8_unicode_ci NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `t00_02adverts_discontinued`
--

INSERT INTO `t00_02adverts_discontinued` (`rowno`, `advert_id`, `made_atransaction`, `seller_rating`, `seller_comments`, `buyer_rating`, `buyer_comments`, `date_discontinued`, `rated_user`, `created_at`, `created_by`, `updated_at`, `edited_by`) VALUES
(7, 'AD20000009', '0', '1', 'not good', '0', '', '0000-00-00', '', '2020-02-18 03:41:27', '', '2020-02-18 03:41:27', '');

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

--
-- Table structure for table `t01_01cattle_forsale`
--

CREATE TABLE `t01_01cattle_forsale` (
  `ctlsale_rowno` int(11) NOT NULL,
  `advert_id` varchar(10) COLLATE utf8_unicode_ci NOT NULL,
  `date_created` datetime NOT NULL,
  `sale_remarks` text COLLATE utf8_unicode_ci NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `created_by` varchar(10) COLLATE utf8_unicode_ci NOT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `edited_by` varchar(10) COLLATE utf8_unicode_ci NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `t01_01cattle_forsale`
--

INSERT INTO `t01_01cattle_forsale` (`ctlsale_rowno`, `advert_id`, `date_created`, `sale_remarks`, `created_at`, `created_by`, `updated_at`, `edited_by`) VALUES
(375, 'AD20000001', '2020-02-14 08:15:35', '', NULL, '20000001', NULL, '20000001'),
(378, 'AD20000009', '2020-02-17 11:31:28', '', NULL, '20000006', NULL, '20000006'),
(379, 'AD20000010', '2020-02-18 05:54:21', '', NULL, '20000006', NULL, '20000006'),
(380, 'AD20000011', '2020-02-18 05:59:07', '', NULL, '20000006', NULL, '20000006'),
(381, 'AD20000012', '2020-02-18 06:02:20', '', NULL, '20000006', NULL, '20000006'),
(382, 'AD20000015', '2020-02-18 11:05:16', '', NULL, '20000006', NULL, '20000006'),
(383, 'AD20000017', '2020-02-21 06:35:25', '', NULL, '20000006', NULL, '20000006'),
(384, 'AD20000018', '2020-02-21 09:16:17', '', NULL, '20000006', NULL, '20000006'),
(385, 'AD20000019', '2020-02-21 09:17:22', '', NULL, '20000006', NULL, '20000006'),
(386, 'AD20000020', '2020-02-21 09:35:29', '', NULL, '20000006', NULL, '20000006'),
(387, 'AD20000022', '2020-02-25 05:57:56', '', NULL, '20000006', NULL, '20000006'),
(388, 'AD20000023', '2020-02-25 06:07:57', '', NULL, '20000006', NULL, '20000006'),
(389, 'AD20000025', '2020-02-25 10:09:11', '', NULL, '20000006', NULL, '20000006'),
(390, 'AD20000026', '2020-02-25 10:16:23', '', NULL, '20000006', NULL, '20000006'),
(391, 'AD20000035', '2020-02-28 03:20:54', '', NULL, '20000006', NULL, '20000006'),
(392, 'AD20000036', '2020-02-28 04:03:47', '', NULL, '20000006', NULL, '20000006'),
(393, 'AD20000037', '2020-02-28 04:05:34', '', NULL, '20000006', NULL, '20000006'),
(394, 'AD20000038', '2020-02-28 04:29:58', '', NULL, '20000006', NULL, '20000006'),
(395, 'AD20000040', '2020-02-28 04:37:46', '', NULL, '20000006', NULL, '20000006'),
(396, 'AD20000041', '2020-02-28 04:40:12', '', NULL, '20000006', NULL, '20000006'),
(397, 'AD20000042', '2020-02-28 04:43:00', '', NULL, '20000006', NULL, '20000006'),
(398, 'AD20000043', '2020-02-28 04:57:48', '', NULL, '20000006', NULL, '20000006'),
(399, 'AD20000044', '2020-02-28 04:59:50', '', NULL, '20000006', NULL, '20000006'),
(400, 'AD20000045', '2020-02-28 05:01:33', '', NULL, '20000006', NULL, '20000006'),
(401, 'AD20000046', '2020-02-28 05:07:51', '', NULL, '20000006', NULL, '20000006'),
(402, 'AD20000048', '2020-02-28 05:28:40', '', NULL, '20000006', NULL, '20000006'),
(403, 'AD20000049', '2020-02-28 05:33:42', '', NULL, '20000006', NULL, '20000006'),
(404, 'AD20000050', '2020-02-28 05:41:34', '', NULL, '20000006', NULL, '20000006'),
(405, 'AD20000051', '2020-02-28 06:01:05', '', NULL, '20000006', NULL, '20000006'),
(406, 'AD20000053', '2020-02-28 06:26:00', '', NULL, '20000006', NULL, '20000006'),
(407, 'AD20000055', '2020-02-28 08:38:50', '', NULL, '20000006', NULL, '20000006'),
(408, 'AD20000056', '2020-02-28 08:39:51', '', NULL, '20000006', NULL, '20000006'),
(409, 'AD20000057', '2020-02-28 08:40:20', '', NULL, '20000006', NULL, '20000006'),
(410, 'AD20000058', '2020-02-28 08:40:29', '', NULL, '20000006', NULL, '20000006'),
(411, 'AD20000059', '2020-02-28 08:41:40', '', NULL, '20000006', NULL, '20000006'),
(412, 'AD20000060', '2020-02-28 08:42:21', '', NULL, '20000006', NULL, '20000006'),
(413, 'AD20000061', '2020-02-28 08:43:13', '', NULL, '20000006', NULL, '20000006'),
(414, 'AD20000062', '2020-02-28 08:43:16', '', NULL, '20000006', NULL, '20000006'),
(415, 'AD20000063', '2020-02-28 08:43:34', '', NULL, '20000006', NULL, '20000006'),
(416, 'AD20000064', '2020-02-28 08:43:48', '', NULL, '20000006', NULL, '20000006'),
(417, 'AD20000065', '2020-02-28 08:44:07', '', NULL, '20000006', NULL, '20000006'),
(418, 'AD20000066', '2020-02-28 09:13:19', '', NULL, '20000006', NULL, '20000006'),
(419, 'AD20000067', '2020-02-28 09:13:48', '', NULL, '20000006', NULL, '20000006'),
(420, 'AD20000068', '2020-02-28 09:18:09', '', NULL, '20000006', NULL, '20000006'),
(421, 'AD20000069', '2020-02-28 09:18:20', '', NULL, '20000006', NULL, '20000006'),
(422, 'AD20000070', '2020-02-28 09:19:16', '', NULL, '20000006', NULL, '20000006'),
(423, 'AD20000071', '2020-02-28 09:38:37', '', NULL, '20000006', NULL, '20000006'),
(424, 'AD20000072', '2020-02-28 09:51:34', '', NULL, '20000006', NULL, '20000006'),
(425, 'AD20000073', '2020-02-28 09:59:34', '', NULL, '20000006', NULL, '20000006'),
(426, 'AD20000074', '2020-02-28 10:00:07', '', NULL, '20000006', NULL, '20000006'),
(427, 'AD20000075', '2020-02-28 10:01:27', '', NULL, '20000006', NULL, '20000006'),
(428, 'AD20000076', '2020-02-28 10:02:09', '', NULL, '20000006', NULL, '20000006'),
(429, 'AD20000077', '2020-02-28 10:02:34', '', NULL, '20000006', NULL, '20000006'),
(430, 'AD20000078', '2020-02-28 10:11:59', '', NULL, '20000006', NULL, '20000006'),
(431, 'AD20000079', '2020-02-28 10:12:03', '', NULL, '20000006', NULL, '20000006'),
(432, 'AD20000080', '2020-02-28 10:33:21', '', NULL, '20000006', NULL, '20000006'),
(433, 'AD20000081', '2020-02-28 10:37:56', '', NULL, '20000006', NULL, '20000006'),
(434, 'AD20000082', '2020-02-28 10:38:44', '', NULL, '20000006', NULL, '20000006'),
(435, 'AD20000083', '2020-02-28 10:38:47', '', NULL, '20000006', NULL, '20000006'),
(436, 'AD20000084', '2020-02-28 10:39:34', '', NULL, '20000006', NULL, '20000006'),
(437, 'AD20000085', '2020-02-28 10:40:35', '', NULL, '20000006', NULL, '20000006'),
(438, 'AD20000086', '2020-02-28 10:42:39', '', NULL, '20000006', NULL, '20000006'),
(439, 'AD20000087', '2020-02-28 10:44:50', '', NULL, '20000006', NULL, '20000006'),
(440, 'AD20000088', '2020-02-28 10:47:32', '', NULL, '20000006', NULL, '20000006'),
(441, 'AD20000089', '2020-02-28 10:48:24', '', NULL, '20000006', NULL, '20000006'),
(442, 'AD20000090', '2020-02-28 11:03:03', '', NULL, '20000006', NULL, '20000006'),
(443, 'AD20000091', '2020-02-28 11:06:51', '', NULL, '20000006', NULL, '20000006'),
(444, 'AD20000092', '2020-02-28 11:07:13', '', NULL, '20000006', NULL, '20000006'),
(445, 'AD20000093', '2020-02-28 11:10:18', '', NULL, '20000006', NULL, '20000006'),
(446, 'AD20000094', '2020-03-02 03:32:07', '', NULL, '20000006', NULL, '20000006'),
(447, 'AD20000095', '2020-03-02 03:33:12', '', NULL, '20000006', NULL, '20000006'),
(448, 'AD20000096', '2020-03-02 06:53:59', '', NULL, '20000006', NULL, '20000006'),
(449, 'AD20000097', '2020-03-02 06:54:41', '', NULL, '20000006', NULL, '20000006'),
(450, 'AD20000098', '2020-03-02 07:21:16', '', NULL, '20000006', NULL, '20000006'),
(451, 'AD20000099', '2020-03-02 07:21:16', '', NULL, '20000006', NULL, '20000006'),
(452, 'AD20000100', '2020-03-02 07:21:32', '', NULL, '20000006', NULL, '20000006'),
(453, 'AD20000101', '2020-03-02 07:21:45', '', NULL, '20000006', NULL, '20000006'),
(454, 'AD20000102', '2020-03-02 07:21:48', '', NULL, '20000006', NULL, '20000006'),
(455, 'AD20000103', '2020-03-02 07:22:18', '', NULL, '20000006', NULL, '20000006'),
(456, 'AD20000104', '2020-03-02 07:22:27', '', NULL, '20000006', NULL, '20000006'),
(457, 'AD20000105', '2020-03-02 07:22:42', '', NULL, '20000006', NULL, '20000006'),
(458, 'AD20000106', '2020-03-02 07:24:15', '', NULL, '20000006', NULL, '20000006'),
(459, 'AD20000107', '2020-03-02 07:24:43', '', NULL, '20000006', NULL, '20000006'),
(460, 'AD20000108', '2020-03-02 07:25:34', '', NULL, '20000006', NULL, '20000006'),
(461, 'AD20000109', '2020-03-02 07:27:17', '', NULL, '20000006', NULL, '20000006'),
(462, 'AD20000110', '2020-03-02 07:28:03', '', NULL, '20000006', NULL, '20000006'),
(463, 'AD20000111', '2020-03-02 07:28:18', '', NULL, '20000006', NULL, '20000006'),
(464, 'AD20000112', '2020-03-02 07:32:16', '', NULL, '20000006', NULL, '20000006'),
(465, 'AD20000113', '2020-03-02 07:32:42', '', NULL, '20000006', NULL, '20000006'),
(466, 'AD20000114', '2020-03-02 07:34:09', '', NULL, '20000006', NULL, '20000006'),
(467, 'AD20000115', '2020-03-02 07:37:00', '', NULL, '20000006', NULL, '20000006'),
(468, 'AD20000116', '2020-03-02 07:37:13', '', NULL, '20000006', NULL, '20000006'),
(469, 'AD20000117', '2020-03-02 07:37:24', '', NULL, '20000006', NULL, '20000006'),
(470, 'AD20000118', '2020-03-02 07:38:15', '', NULL, '20000006', NULL, '20000006'),
(471, 'AD20000119', '2020-03-02 07:39:11', '', NULL, '20000006', NULL, '20000006'),
(472, 'AD20000121', '2020-03-02 07:47:09', '', NULL, '20000006', NULL, '20000006'),
(473, 'AD20000122', '2020-03-02 07:47:13', '', NULL, '20000006', NULL, '20000006'),
(474, 'AD20000123', '2020-03-02 07:47:15', '', NULL, '20000006', NULL, '20000006'),
(475, 'AD20000124', '2020-03-02 07:47:50', '', NULL, '20000006', NULL, '20000006'),
(476, 'AD20000126', '2020-03-02 09:04:04', '', NULL, '20000006', NULL, '20000006'),
(477, 'AD20000127', '2020-03-02 09:13:41', '', NULL, '20000006', NULL, '20000006'),
(478, 'AD20000128', '2020-03-02 09:47:50', '', NULL, '20000006', NULL, '20000006'),
(479, 'AD20000129', '2020-03-02 09:50:10', '', NULL, '20000006', NULL, '20000006'),
(480, 'AD20000130', '2020-03-02 10:44:16', '', NULL, '20000006', NULL, '20000006'),
(481, 'AD20000131', '2020-03-02 10:56:48', '', NULL, '20000006', NULL, '20000006'),
(482, 'AD20000132', '2020-03-02 11:28:56', '', NULL, '20000006', NULL, '20000006'),
(483, 'AD20000133', '2020-03-03 03:04:12', '', NULL, '20000006', NULL, '20000006'),
(484, 'AD20000134', '2020-03-03 03:28:03', '', NULL, '20000006', NULL, '20000006'),
(485, 'AD20000135', '2020-03-03 03:37:50', '', NULL, '20000006', NULL, '20000006'),
(486, 'AD20000136', '2020-03-03 03:43:14', '', NULL, '20000006', NULL, '20000006'),
(487, 'AD20000137', '2020-03-03 03:43:32', '', NULL, '20000006', NULL, '20000006'),
(488, 'AD20000138', '2020-03-03 03:57:55', '', NULL, '20000006', NULL, '20000006'),
(489, 'AD20000139', '2020-03-03 04:02:07', '', NULL, '20000006', NULL, '20000006'),
(490, 'AD20000140', '2020-03-03 04:02:16', '', NULL, '20000006', NULL, '20000006'),
(491, 'AD20000141', '2020-03-03 04:30:15', '', NULL, '20000006', NULL, '20000006'),
(492, 'AD20000142', '2020-03-03 04:33:50', '', NULL, '20000006', NULL, '20000006'),
(493, 'AD20000143', '2020-03-03 05:07:44', '', NULL, '20000006', NULL, '20000006'),
(494, 'AD20000144', '2020-03-03 05:13:20', '', NULL, '20000006', NULL, '20000006'),
(495, 'AD20000145', '2020-03-03 05:15:22', '', NULL, '20000006', NULL, '20000006'),
(496, 'AD20000146', '2020-03-03 05:17:40', '', NULL, '20000006', NULL, '20000006'),
(497, 'AD20000147', '2020-03-03 05:18:29', '', NULL, '20000006', NULL, '20000006'),
(498, 'AD20000148', '2020-03-03 05:24:09', '', NULL, '20000006', NULL, '20000006'),
(499, 'AD20000149', '2020-03-03 05:25:26', '', NULL, '20000006', NULL, '20000006'),
(500, 'AD20000150', '2020-03-03 05:36:10', '', NULL, '20000006', NULL, '20000006'),
(501, 'AD20000151', '2020-03-03 05:37:26', '', NULL, '20000006', NULL, '20000006'),
(502, 'AD20000152', '2020-03-03 05:39:00', '', NULL, '20000006', NULL, '20000006'),
(503, 'AD20000153', '2020-03-03 05:40:54', '', NULL, '20000006', NULL, '20000006'),
(504, 'AD20000154', '2020-03-03 06:08:39', '', NULL, '20000006', NULL, '20000006'),
(505, 'AD20000155', '2020-03-03 06:09:52', '', NULL, '20000006', NULL, '20000006'),
(506, 'AD20000156', '2020-03-03 06:15:31', '', NULL, '20000006', NULL, '20000006'),
(507, 'AD20000157', '2020-03-03 06:20:17', '', NULL, '20000006', NULL, '20000006'),
(508, 'AD20000158', '2020-03-03 06:24:40', '', NULL, '20000006', NULL, '20000006'),
(509, 'AD20000159', '2020-03-03 06:31:33', '', NULL, '20000006', NULL, '20000006'),
(510, 'AD20000160', '2020-03-03 06:35:54', '', NULL, '20000006', NULL, '20000006'),
(511, 'AD20000161', '2020-03-03 06:36:55', '', NULL, '20000006', NULL, '20000006'),
(512, 'AD20000162', '2020-03-03 06:38:41', '', NULL, '20000006', NULL, '20000006'),
(513, 'AD20000163', '2020-03-03 06:45:23', '', NULL, '20000006', NULL, '20000006'),
(514, 'AD20000164', '2020-03-03 06:47:53', '', NULL, '20000006', NULL, '20000006'),
(515, 'AD20000165', '2020-03-03 06:54:42', '', NULL, '20000006', NULL, '20000006'),
(516, 'AD20000166', '2020-03-03 06:56:41', '', NULL, '20000006', NULL, '20000006'),
(517, 'AD20000167', '2020-03-03 06:57:28', '', NULL, '20000006', NULL, '20000006'),
(518, 'AD20000168', '2020-03-03 06:58:36', '', NULL, '20000006', NULL, '20000006'),
(519, 'AD20000169', '2020-03-03 07:02:38', '', NULL, '20000006', NULL, '20000006'),
(520, 'AD20000170', '2020-03-03 07:47:09', '', NULL, '20000006', NULL, '20000006'),
(521, 'AD20000171', '2020-03-03 07:51:26', '', NULL, '20000006', NULL, '20000006'),
(522, 'AD20000172', '2020-03-03 07:56:19', '', NULL, '20000006', NULL, '20000006'),
(523, 'AD20000173', '2020-03-03 08:18:45', '', NULL, '20000006', NULL, '20000006'),
(524, 'AD20000174', '2020-03-03 08:22:34', '', NULL, '20000006', NULL, '20000006'),
(525, 'AD20000176', '2020-03-03 08:24:09', '', NULL, '20000006', NULL, '20000006'),
(526, 'AD20000177', '2020-03-03 08:26:06', '', NULL, '20000006', NULL, '20000006'),
(527, 'AD20000178', '2020-03-03 08:26:40', '', NULL, '20000006', NULL, '20000006'),
(528, 'AD20000179', '2020-03-03 08:27:57', '', NULL, '20000006', NULL, '20000006'),
(529, 'AD20000180', '2020-03-03 08:29:54', '', NULL, '20000006', NULL, '20000006'),
(530, 'AD20000181', '2020-03-03 08:31:18', '', NULL, '20000006', NULL, '20000006'),
(531, 'AD20000182', '2020-03-03 08:32:13', '', NULL, '20000006', NULL, '20000006'),
(532, 'AD20000183', '2020-03-03 08:34:45', '', NULL, '20000006', NULL, '20000006'),
(533, 'AD20000184', '2020-03-03 08:36:18', '', NULL, '20000006', NULL, '20000006'),
(534, 'AD20000185', '2020-03-03 08:36:40', '', NULL, '20000006', NULL, '20000006'),
(535, 'AD20000186', '2020-03-03 08:42:15', '', NULL, '20000006', NULL, '20000006'),
(536, 'AD20000187', '2020-03-03 08:45:29', '', NULL, '20000006', NULL, '20000006'),
(537, 'AD20000188', '2020-03-03 08:49:09', '', NULL, '20000006', NULL, '20000006'),
(538, 'AD20000189', '2020-03-03 08:52:57', '', NULL, '20000006', NULL, '20000006'),
(539, 'AD20000190', '2020-03-03 08:55:34', '', NULL, '20000006', NULL, '20000006'),
(540, 'AD20000191', '2020-03-03 08:59:42', '', NULL, '20000006', NULL, '20000006'),
(541, 'AD20000192', '2020-03-03 09:00:30', '', NULL, '20000006', NULL, '20000006'),
(542, 'AD20000193', '2020-03-03 09:03:27', '', NULL, '20000006', NULL, '20000006'),
(543, 'AD20000194', '2020-03-03 09:07:41', '', NULL, '20000006', NULL, '20000006'),
(544, 'AD20000195', '2020-03-03 09:12:34', '', NULL, '20000006', NULL, '20000006'),
(545, 'AD20000204', '2020-03-05 05:17:30', '', NULL, '20000006', NULL, '20000006'),
(546, 'AD20000222', '2020-03-06 11:43:18', '', NULL, '20000006', NULL, '20000006'),
(547, 'AD20000238', '2020-04-24 10:12:08', '', NULL, '20000010', NULL, '20000010');

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

--
-- Table structure for table `t01_02cattle_salebreeds`
--

CREATE TABLE `t01_02cattle_salebreeds` (
  `ctlsale_breed_rowno` int(11) NOT NULL,
  `ctlsale_rowno` int(11) NOT NULL,
  `seq_no` int(11) NOT NULL,
  `breed_type` varchar(10) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `gender` char(1) COLLATE utf8_unicode_ci NOT NULL COMMENT 'M - male , F - female',
  `no_of_cattle` int(11) NOT NULL DEFAULT '0',
  `status_ofparenting` varchar(5) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `status_prglac` varchar(10) COLLATE utf8_unicode_ci NOT NULL DEFAULT '' COMMENT 'status of pregnancy or lactation',
  `age_years` int(11) NOT NULL DEFAULT '0',
  `age_months` int(11) NOT NULL DEFAULT '0',
  `weight` decimal(10,3) NOT NULL DEFAULT '0.000',
  `price` decimal(10,2) NOT NULL DEFAULT '0.00',
  `comments` text COLLATE utf8_unicode_ci NOT NULL,
  `sold_status` char(1) COLLATE utf8_unicode_ci NOT NULL COMMENT 'S: Sold, A: Available',
  `available_bal` int(11) NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `created_by` varchar(10) COLLATE utf8_unicode_ci NOT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `edited_by` varchar(10) COLLATE utf8_unicode_ci NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `t01_02cattle_salebreeds`
--

INSERT INTO `t01_02cattle_salebreeds` (`ctlsale_breed_rowno`, `ctlsale_rowno`, `seq_no`, `breed_type`, `gender`, `no_of_cattle`, `status_ofparenting`, `status_prglac`, `age_years`, `age_months`, `weight`, `price`, `comments`, `sold_status`, `available_bal`, `created_at`, `created_by`, `updated_at`, `edited_by`) VALUES
(430, 375, 1, 'BRD002', 'F', 7, 'PRG', '', 7, 5, '45.000', '35000.00', 'Price fixed', 'A', 5, NULL, '20000001', '2020-02-25 04:28:37', '20000001'),
(433, 378, 1, 'BRD002', 'F', 2, 'LAC', '', 18, 5, '60.000', '35000.00', '', 'A', 0, NULL, '20000006', NULL, '20000006'),
(434, 379, 1, 'Jersey', 'F', 3, 'PRG', '', 0, 25, '25.000', '0.00', 'Call for more details', 'A', 0, NULL, '20000006', NULL, '20000006'),
(435, 379, 2, 'BRD002', 'F', 2, 'PRG', '', 12, 5, '5.000', '5000.00', 'Test Third Record', 'A', 0, NULL, '20000006', NULL, '20000006'),
(436, 380, 1, 'Jersey', 'F', 3, 'PRG', '', 3, 2, '25.000', '50000.00', '', 'A', 0, NULL, '20000006', NULL, '20000006'),
(437, 380, 2, 'BRD002', 'F', 5, 'PRG', '', 12, 3, '2.000', '50.00', '', 'A', 0, NULL, '20000006', NULL, '20000006'),
(438, 381, 1, 'BRD002', 'F', 2, 'PRG', '', 5, 5, '100.000', '50000.00', 'Call for more details', 'A', 0, NULL, '20000006', NULL, '20000006'),
(439, 382, 1, 'BRD001', 'F', 5, 'PRG', '', 2, 5, '23.000', '5.00', '', 'A', 0, NULL, '20000006', NULL, '20000006'),
(440, 383, 1, 'BRD001', 'F', 5, 'LAC', '', 14, 5, '12.000', '45000.00', 'Test Third Record', 'A', 0, NULL, '20000006', NULL, '20000006'),
(441, 384, 1, 'BRD001', 'F', 5, 'LAC', '', 14, 5, '12.000', '45000.00', 'Test Third Record', 'A', 0, NULL, '20000006', NULL, '20000006'),
(442, 385, 1, 'Jersey', 'F', 5, 'LAC', '', 5, 5, '50.000', '52847188.00', 'New', 'A', 0, NULL, '20000006', NULL, '20000006'),
(443, 386, 1, 'BRD002', 'M', 58, 'PRG', '', 0, 12, '0.000', '0.00', '', 'A', 0, NULL, '20000006', NULL, '20000006'),
(444, 387, 1, 'Jersey', 'F', 5, 'LAC', '', 4, 5, '50.000', '5800.00', 'J y2k', 'A', 0, NULL, '20000006', NULL, '20000006'),
(445, 387, 2, 'Jersey', 'F', 5, 'LAC', '', 4, 5, '50.000', '5800.00', 'J y2k', 'A', 0, NULL, '20000006', NULL, '20000006'),
(446, 388, 1, 'BRD001', 'F', 81, 'LAC', '', 8, 2, '82.000', '60000.00', 'Y By b', 'A', 4, NULL, '20000006', '2020-04-21 04:47:49', '20000006'),
(447, 388, 2, 'Jersey', 'F', 7, 'LAC', '', 7, 7, '7.000', '70000.00', 'Test Road Runner', 'A', 4, NULL, '20000006', '2020-03-13 04:21:36', '20000006'),
(448, 389, 1, 'BRD002', 'F', 5, 'DRY', '', 8, 8, '8.000', '5.00', '87b', 'A', 5, NULL, '20000006', NULL, '20000006'),
(449, 390, 1, 'BRD002', 'M', 5, '', '', 5, 8, '85.000', '88.00', 'Ubub7h7y', 'A', 5, NULL, '20000006', NULL, '20000006'),
(450, 391, 1, 'wert', 'M', 2, '', '', 20, 5, '250.000', '50000.00', 'Nh July thks y rule y2k lo', 'A', 2, NULL, '20000006', NULL, '20000006'),
(451, 391, 2, 'BRD002', 'F', 2, 'PRG', '', 8, 8, '0.000', '569.00', '', 'A', 2, NULL, '20000006', NULL, '20000006'),
(452, 391, 3, 'BRD002', 'F', 2, 'PRG', '', 8, 8, '0.000', '569.00', '', 'A', 2, NULL, '20000006', NULL, '20000006'),
(453, 392, 1, 'Jersey', 'F', 8, 'DRY', '', 5, 5, '5.000', '8.00', '', 'A', 8, NULL, '20000006', NULL, '20000006'),
(454, 392, 2, 'Jersey', 'F', 8, 'DRY', '', 5, 5, '5.000', '8.00', '', 'A', 8, NULL, '20000006', NULL, '20000006'),
(455, 393, 1, 'Jersey', 'F', 5, 'PRG', '', 5, 5, '5.000', '5.00', '', 'A', 5, NULL, '20000006', NULL, '20000006'),
(456, 393, 2, 'Jersey', 'F', 5, 'PRG', '', 5, 5, '5.000', '5.00', '', 'A', 5, NULL, '20000006', NULL, '20000006'),
(457, 394, 1, 'BRD002', 'F', 5, 'PRG', '', 8, 80, '8.000', '8.00', 'H', 'A', 5, NULL, '20000006', NULL, '20000006'),
(458, 394, 2, 'BRD002', 'F', 5, 'PRG', '', 8, 80, '8.000', '8.00', 'H', 'A', 5, NULL, '20000006', NULL, '20000006'),
(459, 395, 1, 'Jersey', 'M', 2, '', '', 2, 6, '5.000', '8.00', 'Hu', 'A', 2, NULL, '20000006', NULL, '20000006'),
(460, 396, 1, 'BRD002', 'M', 2, '', '', 0, 885, '0.000', '0.00', '', 'A', 2, NULL, '20000006', NULL, '20000006'),
(461, 397, 1, 'Jersey', 'M', 5, '', '', 0, 8, '0.000', '0.00', '', 'A', 5, NULL, '20000006', NULL, '20000006'),
(462, 398, 1, 'Jersey', 'M', 8, '', '', 5, 5, '55.000', '8.00', '', 'A', 8, NULL, '20000006', NULL, '20000006'),
(463, 399, 1, 'BRD002', 'M', 5, '', '', 0, 5, '0.000', '0.00', '', 'A', 5, NULL, '20000006', NULL, '20000006'),
(464, 400, 1, 'BRD002', 'M', 9, '', '', 0, 2, '0.000', '0.00', '', 'A', 9, NULL, '20000006', NULL, '20000006'),
(465, 401, 1, 'BRD002', 'M', 8, '', '', 0, 2, '0.000', '0.00', '', 'A', 8, NULL, '20000006', NULL, '20000006'),
(466, 402, 1, 'BRD002', 'M', 8, '', '', 0, 8, '0.000', '0.00', '', 'A', 8, NULL, '20000006', NULL, '20000006'),
(467, 403, 1, 'Jersey', 'M', 885, '', '', 8, 99, '9.000', '88.00', '', 'A', 885, NULL, '20000006', NULL, '20000006'),
(468, 404, 1, 'BRD002', 'M', 5, '', '', 0, 8, '0.000', '0.00', '', 'A', 5, NULL, '20000006', NULL, '20000006'),
(469, 405, 1, 'Jersey', 'M', 5, '', '', 8, 5, '8.000', '5.00', '', 'A', 5, NULL, '20000006', NULL, '20000006'),
(470, 405, 2, 'Jersey', 'M', 5, '', '', 8, 5, '8.000', '5.00', '', 'A', 5, NULL, '20000006', NULL, '20000006'),
(471, 406, 1, 'BRD002', 'M', 58, '', '', 0, 8, '0.000', '0.00', '', 'A', 58, NULL, '20000006', NULL, '20000006'),
(472, 423, 1, 'BRD001', 'F', 5, 'LAC', '', 14, 5, '12.000', '45000.00', 'Test Third Record', 'A', 5, NULL, '20000006', NULL, '20000006'),
(473, 424, 1, 'BRD001', 'F', 5, 'LAC', '', 14, 5, '12.000', '45000.00', 'Test Third Record', 'A', 5, NULL, '20000006', NULL, '20000006'),
(474, 438, 1, 'BRD001', 'F', 5, 'LAC', '', 14, 5, '12.000', '45000.00', 'Test Third Record', 'A', 5, NULL, '20000006', NULL, '20000006'),
(475, 439, 1, 'BRD001', 'F', 5, 'LAC', '', 14, 5, '12.000', '45000.00', 'Test Third Record', 'A', 5, NULL, '20000006', NULL, '20000006'),
(476, 440, 1, 'BRD001', 'F', 5, 'LAC', '', 14, 5, '12.000', '45000.00', 'Test Third Record', 'A', 5, NULL, '20000006', NULL, '20000006'),
(477, 441, 1, 'BRD001', 'F', 5, 'LAC', '', 14, 5, '12.000', '45000.00', 'Test Third Record', 'A', 5, NULL, '20000006', NULL, '20000006'),
(478, 442, 1, 'BRD001', 'F', 5, 'LAC', '', 14, 5, '12.000', '45000.00', 'Test Third Record', 'A', 5, NULL, '20000006', NULL, '20000006'),
(479, 445, 1, 'BRD001', 'F', 5, 'LAC', '', 14, 5, '12.000', '45000.00', 'Test Third Record', 'A', 5, NULL, '20000006', NULL, '20000006'),
(480, 447, 1, 'BRD001', 'F', 5, 'LAC', '', 14, 5, '12.000', '45000.00', 'Test Third Record', 'A', 5, NULL, '20000006', NULL, '20000006'),
(481, 465, 1, 'BRD001', 'F', 5, 'LAC', '', 14, 5, '12.000', '45000.00', 'Test Third Record', 'A', 5, NULL, '20000006', NULL, '20000006'),
(482, 466, 1, 'BRD001', 'F', 5, 'LAC', '', 14, 5, '12.000', '45000.00', 'Test Third Record', 'A', 5, NULL, '20000006', NULL, '20000006'),
(483, 467, 1, 'BRD001', 'F', 5, 'LAC', '', 14, 5, '12.000', '45000.00', 'Test Third Record', 'A', 5, NULL, '20000006', NULL, '20000006'),
(484, 468, 1, 'BRD001', 'F', 5, 'LAC', '', 14, 5, '12.000', '45000.00', 'Test Third Record', 'A', 5, NULL, '20000006', NULL, '20000006'),
(485, 469, 1, 'BRD001', 'F', 5, 'LAC', '', 14, 5, '12.000', '45000.00', 'Test Third Record', 'A', 5, NULL, '20000006', NULL, '20000006'),
(486, 470, 1, 'BRD001', 'F', 5, 'LAC', '', 14, 5, '12.000', '45000.00', 'Test Third Record', 'A', 5, NULL, '20000006', NULL, '20000006'),
(487, 471, 1, 'BRD001', 'F', 5, 'LAC', '', 14, 5, '12.000', '45000.00', 'Test Third Record', 'A', 5, NULL, '20000006', NULL, '20000006'),
(488, 472, 1, 'BRD001', 'F', 5, 'LAC', '', 14, 5, '12.000', '45000.00', 'Test Third Record', 'A', 5, NULL, '20000006', NULL, '20000006'),
(489, 473, 1, 'BRD001', 'F', 5, 'LAC', '', 14, 5, '12.000', '45000.00', 'Test Third Record', 'A', 5, NULL, '20000006', NULL, '20000006'),
(490, 474, 1, 'BRD001', 'F', 5, 'LAC', '', 14, 5, '12.000', '45000.00', 'Test Third Record', 'A', 5, NULL, '20000006', NULL, '20000006'),
(491, 475, 1, 'BRD001', 'F', 5, 'LAC', '', 14, 5, '12.000', '45000.00', 'Test Third Record', 'A', 5, NULL, '20000006', NULL, '20000006'),
(492, 476, 1, 'BRD002', 'M', 2, '', '', 5, 6, '8.000', '1585.00', 'Vjgoikvu', 'A', 2, NULL, '20000006', NULL, '20000006'),
(493, 477, 1, 'BRD001', 'F', 5, 'LAC', '', 14, 5, '12.000', '45000.00', 'Test Third Record', 'A', 5, NULL, '20000006', NULL, '20000006'),
(494, 478, 1, 'BRD001', 'M', 2, '', '', 2, 3, '25.000', '15000.00', 'N jbjvjg', 'A', 2, NULL, '20000006', NULL, '20000006'),
(495, 479, 1, 'BRD001', 'F', 5, 'LAC', '', 14, 5, '12.000', '45000.00', 'Test Third Record', 'A', 5, NULL, '20000006', NULL, '20000006'),
(496, 480, 1, 'BRD001', 'F', 5, 'LAC', '', 14, 5, '12.000', '45000.00', 'Test Third Record', 'A', 5, NULL, '20000006', NULL, '20000006'),
(497, 481, 1, 'BRD001', 'F', 5, 'LAC', '', 14, 5, '12.000', '45000.00', 'Test Third Record', 'A', 5, NULL, '20000006', NULL, '20000006'),
(498, 482, 1, 'BRD001', 'M', 9, '', '', 0, 5, '0.000', '0.00', '', 'A', 9, NULL, '20000006', NULL, '20000006'),
(499, 483, 1, 'BRD001', 'M', 9, '', '', 0, 5, '0.000', '0.00', '', 'A', 9, NULL, '20000006', NULL, '20000006'),
(500, 484, 1, 'BRD001', 'M', 9, '', '', 0, 5, '0.000', '0.00', '', 'A', 9, NULL, '20000006', NULL, '20000006'),
(501, 485, 1, 'BRD001', 'M', 9, '', '', 0, 5, '0.000', '0.00', '', 'A', 9, NULL, '20000006', NULL, '20000006'),
(502, 486, 1, 'BRD001', 'M', 9, '', '', 0, 5, '0.000', '0.00', '', 'A', 9, NULL, '20000006', NULL, '20000006'),
(503, 487, 1, 'BRD001', 'M', 9, '', '', 0, 5, '0.000', '0.00', '', 'A', 9, NULL, '20000006', NULL, '20000006'),
(504, 488, 1, 'BRD001', 'M', 9, '', '', 0, 5, '0.000', '0.00', '', 'A', 9, NULL, '20000006', NULL, '20000006'),
(505, 490, 1, 'BRD001', 'M', 2, '', '', 2, 5, '500.000', '5000.00', 'jojopjopjop', 'A', 2, NULL, '20000006', NULL, '20000006'),
(506, 491, 1, 'BRD001', 'M', 9, '', '', 0, 5, '0.000', '0.00', '', 'A', 9, NULL, '20000006', NULL, '20000006'),
(507, 492, 1, 'BRD001', 'F', 5, 'LAC', '', 14, 5, '12.000', '45000.00', 'Test Third Record', 'A', 5, NULL, '20000006', NULL, '20000006'),
(508, 493, 1, 'BRD001', 'M', 9, '', '', 0, 5, '0.000', '0.00', '', 'A', 9, NULL, '20000006', NULL, '20000006'),
(509, 494, 1, 'BRD001', 'M', 2, '', '', 2, 3, '12.000', '123.00', 'Comments', 'A', 2, NULL, '20000006', NULL, '20000006'),
(510, 495, 1, 'BRD001', 'M', 2, '', '', 2, 3, '12.000', '123.00', 'Comments', 'A', 2, NULL, '20000006', NULL, '20000006'),
(511, 496, 1, 'BRD001', 'M', 2, '', '', 2, 3, '12.000', '123.00', 'Comments', 'A', 2, NULL, '20000006', NULL, '20000006'),
(512, 497, 1, 'BRD001', 'M', 2, '', '', 2, 3, '12.000', '123.00', 'Comments', 'A', 2, NULL, '20000006', NULL, '20000006'),
(513, 498, 1, 'BRD001', 'M', 2, '', '', 2, 3, '12.000', '123.00', 'Comments', 'A', 2, NULL, '20000006', NULL, '20000006'),
(514, 499, 1, 'BRD001', 'M', 2, '', '', 2, 3, '12.000', '123.00', 'Comments', 'A', 2, NULL, '20000006', NULL, '20000006'),
(515, 500, 1, 'BRD001', 'M', 2, '', '', 2, 3, '12.000', '123.00', 'Comments', 'A', 2, NULL, '20000006', NULL, '20000006'),
(516, 501, 1, 'BRD001', 'M', 2, '', '', 2, 3, '12.000', '123.00', 'Comments', 'A', 2, NULL, '20000006', NULL, '20000006'),
(517, 502, 1, 'BRD001', 'M', 2, '', '', 2, 3, '12.000', '123.00', 'Comments', 'A', 2, NULL, '20000006', NULL, '20000006'),
(518, 503, 1, 'BRD001', 'M', 2, '', '', 2, 3, '12.000', '123.00', 'Comments', 'A', 2, NULL, '20000006', NULL, '20000006'),
(519, 504, 1, 'BRD001', 'M', 2, '', '', 2, 3, '12.000', '123.00', 'Comments', 'A', 2, NULL, '20000006', NULL, '20000006'),
(520, 505, 1, 'BRD001', 'M', 2, '', '', 2, 3, '12.000', '123.00', 'Comments', 'A', 2, NULL, '20000006', NULL, '20000006'),
(521, 506, 1, 'BRD001', 'M', 2, '', '', 2, 3, '12.000', '123.00', 'Comments', 'A', 2, NULL, '20000006', NULL, '20000006'),
(522, 507, 1, 'BRD001', 'M', 2, '', '', 2, 3, '12.000', '123.00', 'Comments', 'A', 2, NULL, '20000006', NULL, '20000006'),
(523, 508, 1, 'BRD001', 'M', 2, '', '', 2, 3, '12.000', '123.00', 'Comments', 'A', 2, NULL, '20000006', NULL, '20000006'),
(524, 509, 1, 'BRD001', 'M', 2, '', '', 2, 3, '12.000', '123.00', 'Comments', 'A', 2, NULL, '20000006', NULL, '20000006'),
(525, 510, 1, 'BRD001', 'M', 2, '', '', 2, 3, '12.000', '123.00', 'Comments', 'A', 2, NULL, '20000006', NULL, '20000006'),
(526, 511, 1, 'BRD001', 'M', 5, '', '', 2, 3, '12.000', '123.00', 'Comments', 'A', 5, NULL, '20000006', NULL, '20000006'),
(527, 512, 1, 'BRD001', 'M', 2, '', '', 2, 3, '12.000', '123.00', 'Comments', 'A', 2, NULL, '20000006', NULL, '20000006'),
(528, 513, 1, 'BRD001', 'M', 8, '', '', 2, 3, '12.000', '123.00', 'Comments', 'A', 8, NULL, '20000006', NULL, '20000006'),
(529, 514, 1, 'BRD002', 'M', 5, '', '', 5, 8, '5.000', '55558.00', 'Jbj', 'A', 5, NULL, '20000006', NULL, '20000006'),
(530, 515, 1, 'BRD001', 'M', 2, '', '', 2, 3, '12.000', '123.00', 'Comments', 'A', 2, NULL, '20000006', NULL, '20000006'),
(531, 516, 1, 'BRD001', 'M', 2, '', '', 2, 3, '12.000', '123.00', 'Comments', 'A', 2, NULL, '20000006', NULL, '20000006'),
(532, 517, 1, 'BRD001', 'M', 2, '', '', 2, 3, '12.000', '123.00', 'Comments', 'A', 2, NULL, '20000006', NULL, '20000006'),
(533, 518, 1, 'BRD001', 'M', 2, '', '', 2, 3, '12.000', '123.00', 'Comments', 'A', 2, NULL, '20000006', NULL, '20000006'),
(534, 519, 1, 'BRD001', 'M', 2, '', '', 2, 3, '12.000', '123.00', 'Comments', 'A', 2, NULL, '20000006', NULL, '20000006'),
(535, 520, 1, 'BRD001', 'M', 2, '', '', 2, 3, '12.000', '123.00', 'Comments', 'A', 2, NULL, '20000006', NULL, '20000006'),
(536, 521, 1, 'BRD001', 'M', 2, '', '', 2, 3, '12.000', '123.00', 'Comments', 'A', 2, NULL, '20000006', NULL, '20000006'),
(537, 522, 1, 'BRD001', 'M', 2, '', '', 2, 3, '12.000', '123.00', 'Comments', 'A', 2, NULL, '20000006', NULL, '20000006'),
(538, 523, 1, 'BRD001', 'M', 2, '', '', 2, 3, '12.000', '123.00', 'Comments', 'A', 2, NULL, '20000006', NULL, '20000006'),
(539, 524, 1, 'BRD001', 'M', 2, '', '', 2, 3, '12.000', '123.00', 'Comments', 'A', 2, NULL, '20000006', NULL, '20000006'),
(540, 525, 1, 'BRD001', 'M', 2, '', '', 2, 3, '12.000', '123.00', 'Comments', 'A', 2, NULL, '20000006', NULL, '20000006'),
(541, 526, 1, 'BRD001', 'M', 2, '', '', 2, 3, '12.000', '123.00', 'Comments', 'A', 2, NULL, '20000006', NULL, '20000006'),
(542, 527, 1, 'BRD001', 'M', 2, '', '', 2, 3, '12.000', '123.00', 'Comments', 'A', 2, NULL, '20000006', NULL, '20000006'),
(543, 528, 1, 'BRD001', 'M', 2, '', '', 2, 3, '12.000', '123.00', 'Comments', 'A', 2, NULL, '20000006', NULL, '20000006'),
(544, 529, 1, 'BRD001', 'M', 2, '', '', 2, 3, '12.000', '123.00', 'Comments', 'A', 2, NULL, '20000006', NULL, '20000006'),
(545, 530, 1, 'BRD001', 'M', 2, '', '', 2, 3, '12.000', '123.00', 'Comments', 'A', 2, NULL, '20000006', NULL, '20000006'),
(546, 531, 1, 'BRD001', 'M', 2, '', '', 2, 3, '12.000', '123.00', 'Comments', 'A', 2, NULL, '20000006', NULL, '20000006'),
(547, 532, 1, 'BRD001', 'M', 2, '', '', 2, 3, '12.000', '123.00', 'Comments', 'A', 2, NULL, '20000006', NULL, '20000006'),
(548, 533, 1, 'BRD001', 'M', 2, '', '', 2, 3, '12.000', '123.00', 'Comments', 'A', 2, NULL, '20000006', NULL, '20000006'),
(549, 534, 1, 'BRD001', 'M', 2, '', '', 2, 3, '12.000', '123.00', 'Comments', 'A', 2, NULL, '20000006', NULL, '20000006'),
(550, 535, 1, 'BRD001', 'M', 2, '', '', 2, 3, '12.000', '123.00', 'Comments', 'A', 2, NULL, '20000006', NULL, '20000006'),
(551, 536, 1, 'BRD001', 'M', 2, '', '', 2, 3, '12.000', '123.00', 'Comments', 'A', 2, NULL, '20000006', NULL, '20000006'),
(552, 537, 1, 'BRD001', 'M', 2, '', '', 2, 3, '12.000', '123.00', 'Comments', 'A', 2, NULL, '20000006', NULL, '20000006'),
(553, 538, 1, 'BRD001', 'M', 2, '', '', 2, 3, '12.000', '123.00', 'Comments', 'A', 2, NULL, '20000006', NULL, '20000006'),
(554, 539, 1, 'BRD001', 'M', 2, '', '', 2, 3, '12.000', '123.00', 'Comments', 'A', 2, NULL, '20000006', NULL, '20000006'),
(555, 540, 1, 'BRD001', 'M', 2, '', '', 2, 3, '12.000', '123.00', 'Comments', 'A', 2, NULL, '20000006', NULL, '20000006'),
(556, 541, 1, 'BRD001', 'M', 2, '', '', 2, 3, '12.000', '123.00', 'Comments', 'A', 2, NULL, '20000006', NULL, '20000006'),
(557, 542, 1, 'BRD001', 'M', 2, '', '', 2, 3, '12.000', '123.00', 'Comments', 'A', 2, NULL, '20000006', NULL, '20000006'),
(558, 543, 1, 'BRD002', 'M', 5, '', '', 5, 2, '500.000', '48000.00', 'Jvjgjhj', 'A', 3, NULL, '20000006', '2020-03-04 23:25:32', '20000006'),
(559, 544, 1, 'BRD002', 'M', 5, '', '', 9, 8, '6.000', '8.00', 'Jbbj', 'A', 5, NULL, '20000006', NULL, '20000006'),
(560, 544, 2, 'BRD002', 'M', 5, '', '', 9, 8, '6.000', '8.00', 'Jbbj', 'A', 5, NULL, '20000006', NULL, '20000006'),
(561, 545, 1, 'BRD002', 'F', 2, 'PRG', '', 5, 5, '500.000', '50000.00', 'Call', 'A', 2, NULL, '20000006', NULL, '20000006'),
(562, 545, 2, 'BRD002', 'F', 5, 'PRG', '', 2, 2, '50.000', '45000.00', 'Hv Uhh', 'A', 5, NULL, '20000006', NULL, '20000006'),
(563, 546, 1, 'Jersey', 'M', 8, '', '', 8, 5, '55.000', '555.00', 'Ub Bu', 'A', 8, NULL, '20000006', NULL, '20000006'),
(564, 547, 1, 'BRD001', 'F', 5, 'LAC', '', 14, 5, '12.000', '45000.00', 'Test Third Record', 'A', 5, NULL, '20000010', NULL, '20000010'),
(565, 547, 2, 'BRD002', 'F', 5, 'LAC', '', 14, 5, '12.000', '45000.00', 'Test Third Record new', 'A', 5, NULL, '20000010', NULL, '20000010');

--
-- Triggers `t01_02cattle_salebreeds`
--
DELIMITER $$
CREATE TRIGGER `after_t01_02cattle_salebreeds_insert` AFTER INSERT ON `t01_02cattle_salebreeds` FOR EACH ROW BEGIN 
DECLARE InverterID VARCHAR(10);
SET InverterID = (SELECT advert_id FROM t01_01cattle_forsale WHERE t01_01cattle_forsale.ctlsale_rowno = NEW.ctlsale_rowno);
IF((SELECT count(sold_status) FROM t01_02cattle_salebreeds WHERE t01_02cattle_salebreeds.ctlsale_rowno =  NEW.ctlsale_rowno AND  t01_02cattle_salebreeds.sold_status = 'A') > 0) THEN
SET @available_status  = 'A';
ELSE
SET @available_status  = 'S';
END IF;
UPDATE t00_00adverts_master SET `available_status`=  @available_status WHERE `advert_id` = InverterID;
END
$$
DELIMITER ;
DELIMITER $$
CREATE TRIGGER `after_t01_02cattle_salebreeds_update` AFTER UPDATE ON `t01_02cattle_salebreeds` FOR EACH ROW BEGIN 
DECLARE InverterID VARCHAR(10);
SET InverterID = (SELECT advert_id FROM t01_01cattle_forsale WHERE t01_01cattle_forsale.ctlsale_rowno = NEW.ctlsale_rowno);
IF((SELECT count(sold_status) FROM t01_02cattle_salebreeds WHERE t01_02cattle_salebreeds.ctlsale_rowno =  NEW.ctlsale_rowno AND  t01_02cattle_salebreeds.sold_status = 'A') > 0) THEN
SET @available_status  = 'A';
ELSE
SET @available_status  = 'S';
END IF;
UPDATE t00_00adverts_master SET `available_status`=  @available_status WHERE `advert_id` = InverterID;
END
$$
DELIMITER ;

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

--
-- Table structure for table `t01_03cattle_forpurchasing`
--

CREATE TABLE `t01_03cattle_forpurchasing` (
  `ctlpur_rowno` int(11) NOT NULL,
  `advert_id` varchar(10) COLLATE utf8_unicode_ci NOT NULL,
  `date_created` datetime NOT NULL,
  `purch_remarks` text COLLATE utf8_unicode_ci NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `created_by` varchar(10) COLLATE utf8_unicode_ci NOT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `edited_by` varchar(10) COLLATE utf8_unicode_ci NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `t01_03cattle_forpurchasing`
--

INSERT INTO `t01_03cattle_forpurchasing` (`ctlpur_rowno`, `advert_id`, `date_created`, `purch_remarks`, `created_at`, `created_by`, `updated_at`, `edited_by`) VALUES
(34, 'AD20000004', '2020-02-14 08:51:12', '', NULL, '20000001', NULL, '20000001'),
(35, 'AD20000224', '2020-03-19 05:10:31', '', NULL, '20000002', NULL, '20000002');

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

--
-- Table structure for table `t01_04cattle_purchbreeds`
--

CREATE TABLE `t01_04cattle_purchbreeds` (
  `ctlpur_breed_rowno` int(11) NOT NULL,
  `ctlpur_rowno` int(11) NOT NULL,
  `seq_no` int(11) NOT NULL,
  `breed_type` varchar(10) COLLATE utf8_unicode_ci NOT NULL,
  `gender` char(1) COLLATE utf8_unicode_ci NOT NULL COMMENT 'M - Male , F - Female',
  `no_of_cattle` int(11) NOT NULL,
  `purch_status` char(1) COLLATE utf8_unicode_ci NOT NULL COMMENT 'O: Open, C: Closed',
  `comments` text COLLATE utf8_unicode_ci NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `created_by` varchar(10) COLLATE utf8_unicode_ci NOT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `edited_by` varchar(10) COLLATE utf8_unicode_ci NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `t01_04cattle_purchbreeds`
--

INSERT INTO `t01_04cattle_purchbreeds` (`ctlpur_breed_rowno`, `ctlpur_rowno`, `seq_no`, `breed_type`, `gender`, `no_of_cattle`, `purch_status`, `comments`, `created_at`, `created_by`, `updated_at`, `edited_by`) VALUES
(36, 34, 1, 'BRD001', 'F', 1, 'O', 'Test Road HM 05/11', NULL, '20000010', '2020-05-11 06:31:58', '20000010'),
(37, 35, 1, 'BRD001', 'F', 5, 'O', 'Test Third Record', NULL, '20000002', NULL, '20000002');

--
-- Triggers `t01_04cattle_purchbreeds`
--
DELIMITER $$
CREATE TRIGGER `after_t01_04cattle_purchbreeds_insert` AFTER INSERT ON `t01_04cattle_purchbreeds` FOR EACH ROW BEGIN 
DECLARE InverterID VARCHAR(10);
SET InverterID = (SELECT advert_id FROM t01_03cattle_forpurchasing WHERE t01_03cattle_forpurchasing.ctlpur_rowno = NEW.ctlpur_rowno);
IF((SELECT count(purch_status) FROM t01_04cattle_purchbreeds WHERE t01_04cattle_purchbreeds.ctlpur_rowno =  NEW.ctlpur_rowno AND  t01_04cattle_purchbreeds.purch_status = 'O') > 0) THEN
SET @available_status  = 'O';
ELSE
SET @available_status  = 'C';
END IF;
UPDATE t00_00adverts_master SET `available_status`=  @available_status WHERE `advert_id` = InverterID;
END
$$
DELIMITER ;
DELIMITER $$
CREATE TRIGGER `after_t01_04cattle_purchbreeds_update` AFTER UPDATE ON `t01_04cattle_purchbreeds` FOR EACH ROW BEGIN 
DECLARE InverterID VARCHAR(10);
SET InverterID = (SELECT advert_id FROM t01_03cattle_forpurchasing WHERE t01_03cattle_forpurchasing.ctlpur_rowno = NEW.ctlpur_rowno);
IF((SELECT count(purch_status) FROM t01_04cattle_purchbreeds WHERE t01_04cattle_purchbreeds.ctlpur_rowno =  NEW.ctlpur_rowno AND  t01_04cattle_purchbreeds.purch_status = 'O') > 0) THEN
SET @available_status  = 'O';
ELSE
SET @available_status  = 'C';
END IF;
UPDATE t00_00adverts_master SET `available_status`=  @available_status WHERE `advert_id` = InverterID;
END
$$
DELIMITER ;

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

--
-- Table structure for table `t03_01silage_forsale`
--

CREATE TABLE `t03_01silage_forsale` (
  `slg_sale_rowno` int(11) NOT NULL,
  `advert_id` varchar(10) COLLATE utf8_unicode_ci NOT NULL,
  `price_perkg_atgate` decimal(10,2) NOT NULL DEFAULT '0.00',
  `nutrition_value` text COLLATE utf8_unicode_ci NOT NULL,
  `location` text COLLATE utf8_unicode_ci NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `created_by` varchar(10) COLLATE utf8_unicode_ci NOT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `edited_by` varchar(10) COLLATE utf8_unicode_ci NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `t03_01silage_forsale`
--

INSERT INTO `t03_01silage_forsale` (`slg_sale_rowno`, `advert_id`, `price_perkg_atgate`, `nutrition_value`, `location`, `created_at`, `created_by`, `updated_at`, `edited_by`) VALUES
(150, 'AD20000013', '0.00', '', '', NULL, '20000006', NULL, '20000006'),
(151, 'AD20000014', '0.00', '', '', NULL, '20000006', NULL, '20000006'),
(152, 'AD20000021', '0.00', '', '', NULL, '20000006', NULL, '20000006'),
(153, 'AD20000024', '0.00', '', '', NULL, '20000006', NULL, '20000006'),
(154, 'AD20000027', '0.00', '', '', NULL, '20000006', NULL, '20000006'),
(155, 'AD20000028', '0.00', '', '', NULL, '20000006', NULL, '20000006'),
(156, 'AD20000029', '0.00', '', '', NULL, '20000006', NULL, '20000006'),
(157, 'AD20000031', '0.00', '', '', NULL, '20000006', NULL, '20000006'),
(158, 'AD20000052', '0.00', '', '', NULL, '20000006', NULL, '20000006'),
(159, 'AD20000054', '0.00', '', '', NULL, '20000006', NULL, '20000006'),
(160, 'AD20000203', '0.00', '', '', NULL, '20000006', NULL, '20000006'),
(161, 'AD20000205', '0.00', '', '', NULL, '20000006', NULL, '20000006'),
(162, 'AD20000240', '0.00', '', '', NULL, '20000010', NULL, '20000010'),
(163, 'AD20000241', '0.00', '', '', NULL, '20000010', NULL, '20000010');

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

--
-- Table structure for table `t03_02silage_salefeed`
--

CREATE TABLE `t03_02silage_salefeed` (
  `slgsale_feed_rowno` int(11) NOT NULL,
  `seq_no` int(11) NOT NULL,
  `slg_sale_rowno` int(11) NOT NULL,
  `feed_type` varchar(10) COLLATE utf8_unicode_ci NOT NULL,
  `qty_kg` decimal(10,3) NOT NULL,
  `no_of_packs` int(11) NOT NULL,
  `packaging` char(4) COLLATE utf8_unicode_ci NOT NULL COMMENT 'PB - Polythene Bags, BRL - Barrel, BAL- Bale',
  `price_per_kg` decimal(10,2) NOT NULL DEFAULT '0.00',
  `sold_status` char(1) COLLATE utf8_unicode_ci NOT NULL COMMENT 'S: Sold, A: Available',
  `available_bal` decimal(10,3) NOT NULL,
  `comments` text COLLATE utf8_unicode_ci NOT NULL,
  `image_path` text COLLATE utf8_unicode_ci NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `created_by` varchar(10) COLLATE utf8_unicode_ci NOT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `edited_by` varchar(10) COLLATE utf8_unicode_ci NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `t03_02silage_salefeed`
--

INSERT INTO `t03_02silage_salefeed` (`slgsale_feed_rowno`, `seq_no`, `slg_sale_rowno`, `feed_type`, `qty_kg`, `no_of_packs`, `packaging`, `price_per_kg`, `sold_status`, `available_bal`, `comments`, `image_path`, `created_at`, `created_by`, `updated_at`, `edited_by`) VALUES
(448, 1, 150, 'GHAY', '2.000', 3, 'BRL', '0.00', 'A', '0.000', '', '', NULL, '20000006', NULL, '20000006'),
(449, 2, 150, 'GHAY', '2.000', 3, 'BRL', '0.00', 'A', '0.000', '', '', NULL, '20000006', NULL, '20000006'),
(450, 1, 151, 'GHAY', '20.000', 2, 'BRL', '3000.00', 'A', '0.000', 'and', '', NULL, '20000006', NULL, '20000006'),
(451, 1, 151, 'GHAY', '30.000', 3, 'BAL', '500.00', 'A', '0.000', 'and', '', NULL, '20000006', NULL, '20000006'),
(452, 1, 152, 'MAIZ', '25.000', 2, 'BRL', '0.00', 'A', '0.000', '5fr', '', NULL, '20000006', NULL, '20000006'),
(453, 2, 152, 'GHAY', '5.000', 5, 'BRL', '0.00', 'A', '0.000', 'Bu', '', NULL, '20000006', NULL, '20000006'),
(454, 1, 153, 'OATS', '50.000', 2, 'BRL', '0.00', 'A', '0.000', 'Lg fob b bop dip', '', NULL, '20000006', NULL, '20000006'),
(455, 2, 153, 'OATS', '50.000', 2, 'BRL', '0.00', 'A', '0.000', 'Lg fob b bop dip', '', NULL, '20000006', NULL, '20000006'),
(456, 1, 154, 'OATS', '2.000', 0, 'BRL', '0.00', 'A', '2.000', 'test first price', '', NULL, '20000006', NULL, '20000006'),
(457, 1, 155, 'OATS', '2.000', 1, 'BRL', '350.00', 'A', '0.000', 'test first price', '', NULL, '20000006', NULL, '20000006'),
(464, 1, 157, 'MAIZ', '0.000', 2, 'BRL', '25.00', 'A', '10.000', 'sdsg', '', NULL, '20000006', NULL, '20000006'),
(465, 1, 158, 'MAIZ', '55555.000', 0, 'BAL', '6666.00', 'A', '55555.000', 'Jbjbj nh', '', NULL, '20000006', NULL, '20000006'),
(466, 2, 158, 'MAIZ', '55555.000', 0, 'BAL', '6666.00', 'A', '55555.000', 'Jbjbj nh', '', NULL, '20000006', NULL, '20000006'),
(467, 1, 159, 'MAIZ', '35.000', 0, 'BRL', '86.00', 'A', '35.000', 'Jb', '', NULL, '20000006', NULL, '20000006'),
(473, 1, 161, 'OATS', '5.000', 0, 'BRL', '16.00', 'A', '44.000', 'test 03/05', '', NULL, '20000006', '2020-03-13 04:15:33', '20000006'),
(474, 1, 161, 'OATS', '3.000', 0, 'PB', '5.00', 'A', '2.000', 'test 03/05', '', NULL, '20000006', '2020-03-06 01:05:32', '20000006'),
(475, 1, 162, 'OATS', '5.000', 0, 'BRL', '25.00', 'A', '5.000', 'test 03/05', '', NULL, '20000010', NULL, '20000010'),
(476, 1, 162, 'OATS', '3.000', 0, 'PB', '9.00', 'A', '3.000', 'test 03/05', '', NULL, '20000010', NULL, '20000010'),
(477, 1, 163, 'OATS', '5.000', 0, 'BRL', '25.00', 'A', '5.000', 'test 03/05', '', NULL, '20000010', NULL, '20000010'),
(478, 1, 163, 'OATS', '3.000', 0, 'PB', '9.00', 'A', '3.000', 'test 03/05', '', NULL, '20000010', NULL, '20000010'),
(479, 2, 163, 'OATS', '5.000', 0, 'BRL', '25.00', 'A', '5.000', 'test 03/05', '', NULL, '20000010', NULL, '20000010'),
(480, 2, 163, 'OATS', '3.000', 0, 'PB', '9.00', 'A', '3.000', 'test 03/05', '', NULL, '20000010', NULL, '20000010'),
(481, 3, 163, 'OATS', '5.000', 0, 'BRL', '25.00', 'A', '5.000', 'test 03/05', '', NULL, '20000010', NULL, '20000010'),
(482, 4, 163, 'OATS', '5.000', 0, 'BRL', '25.00', 'A', '5.000', 'test 03/05', '', NULL, '20000010', NULL, '20000010'),
(483, 5, 163, 'OATS', '5.000', 0, 'BRL', '25.00', 'A', '5.000', 'test 03/05', '', NULL, '20000010', NULL, '20000010'),
(484, 5, 163, 'OATS', '3.000', 0, 'PB', '9.00', 'A', '3.000', 'test 03/05', '', NULL, '20000010', NULL, '20000010');

--
-- Triggers `t03_02silage_salefeed`
--
DELIMITER $$
CREATE TRIGGER `after_t03_02silage_salefeed_insert` AFTER INSERT ON `t03_02silage_salefeed` FOR EACH ROW BEGIN 
DECLARE InverterID VARCHAR(10);
SET InverterID = (SELECT advert_id FROM  t03_01silage_forsale WHERE  t03_01silage_forsale.slg_sale_rowno = NEW.slg_sale_rowno);
IF((SELECT count(sold_status) FROM t03_02silage_salefeed WHERE t03_02silage_salefeed.slg_sale_rowno =  NEW.slg_sale_rowno AND  t03_02silage_salefeed.sold_status = 'A') > 0) THEN
SET @available_status  = 'A';
ELSE
SET @available_status  = 'S';
END IF;
UPDATE t00_00adverts_master SET `available_status`=  @available_status WHERE `advert_id` = InverterID;
END
$$
DELIMITER ;
DELIMITER $$
CREATE TRIGGER `after_t03_02silage_salefeed_update` AFTER UPDATE ON `t03_02silage_salefeed` FOR EACH ROW BEGIN 
DECLARE InverterID VARCHAR(10);
SET InverterID = (SELECT advert_id FROM t03_01silage_forsale WHERE t03_01silage_forsale.slg_sale_rowno = NEW.slg_sale_rowno);
IF((SELECT count(sold_status) FROM t03_02silage_salefeed WHERE t03_02silage_salefeed.slg_sale_rowno =  NEW.slg_sale_rowno AND  t03_02silage_salefeed.sold_status = 'A') > 0) THEN
SET @available_status  = 'A';
ELSE
SET @available_status  = 'S';
END IF;
UPDATE t00_00adverts_master SET `available_status`=  @available_status WHERE `advert_id` = InverterID;
END
$$
DELIMITER ;

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

--
-- Table structure for table `t03_03silage_forpurch`
--

CREATE TABLE `t03_03silage_forpurch` (
  `slg_purch_rowno` int(11) NOT NULL,
  `advert_id` varchar(10) COLLATE utf8_unicode_ci NOT NULL,
  `remarks` text COLLATE utf8_unicode_ci NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `created_by` varchar(10) COLLATE utf8_unicode_ci NOT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `edited_by` varchar(10) COLLATE utf8_unicode_ci NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `t03_03silage_forpurch`
--

INSERT INTO `t03_03silage_forpurch` (`slg_purch_rowno`, `advert_id`, `remarks`, `created_at`, `created_by`, `updated_at`, `edited_by`) VALUES
(46, 'AD20000002', '', NULL, '20000001', NULL, '20000001');

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

--
-- Table structure for table `t03_04silage_purchfeed`
--

CREATE TABLE `t03_04silage_purchfeed` (
  `slgpurch_feed_rowno` int(11) NOT NULL,
  `slg_purch_rowno` int(11) NOT NULL,
  `seq_no` int(11) NOT NULL,
  `feed_type` varchar(10) COLLATE utf8_unicode_ci NOT NULL,
  `qty_kg` decimal(10,3) NOT NULL,
  `packaging` char(4) COLLATE utf8_unicode_ci NOT NULL DEFAULT '' COMMENT 'PB - Polythene Bags, BRL - Barrel, BAL- Bale',
  `purch_status` char(1) COLLATE utf8_unicode_ci NOT NULL COMMENT 'O: Open, C: Closed',
  `comments` text COLLATE utf8_unicode_ci NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `created_by` varchar(10) COLLATE utf8_unicode_ci NOT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `edited_by` varchar(10) COLLATE utf8_unicode_ci NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `t03_04silage_purchfeed`
--

INSERT INTO `t03_04silage_purchfeed` (`slgpurch_feed_rowno`, `slg_purch_rowno`, `seq_no`, `feed_type`, `qty_kg`, `packaging`, `purch_status`, `comments`, `created_at`, `created_by`, `updated_at`, `edited_by`) VALUES
(125, 46, 1, 'GHAY', '2.000', 'BRL', 'O', 'Step 1', NULL, '20000001', NULL, '20000001'),
(127, 46, 2, 'MAIZ', '5.000', 'BAL', 'O', 'Step 2', NULL, '20000001', NULL, '20000001'),
(128, 46, 2, 'MAIZ', '6.000', 'PB', 'O', 'Step 2', NULL, '20000001', NULL, '20000001'),
(130, 46, 1, 'GHAY', '44.000', 'PB', 'O', 'Step 1', NULL, '20000001', NULL, '20000001'),
(131, 46, 1, 'GHAY', '55.000', 'BAL', 'O', 'Step 1', NULL, '20000001', NULL, '20000001'),
(132, 46, 3, 'GHAY', '2.000', 'BRL', 'O', 'Step 1', NULL, '20000001', NULL, '20000001');

--
-- Triggers `t03_04silage_purchfeed`
--
DELIMITER $$
CREATE TRIGGER `after_t03_04silage_purchfeed_insert` AFTER INSERT ON `t03_04silage_purchfeed` FOR EACH ROW BEGIN 
DECLARE InverterID VARCHAR(10);
SET InverterID = (SELECT advert_id FROM t03_03silage_forpurch WHERE t03_03silage_forpurch.slg_purch_rowno = NEW.slg_purch_rowno);
IF((SELECT count(purch_status) FROM t03_04silage_purchfeed WHERE t03_04silage_purchfeed.slg_purch_rowno =  NEW.slg_purch_rowno AND  t03_04silage_purchfeed.slg_purch_rowno = 'O') > 0) THEN
SET @available_status  = 'O';
ELSE
SET @available_status  = 'C';
END IF;
UPDATE t00_00adverts_master SET `available_status`=  @available_status WHERE `advert_id` = InverterID;
END
$$
DELIMITER ;
DELIMITER $$
CREATE TRIGGER `after_t03_04silage_purchfeed_update` AFTER UPDATE ON `t03_04silage_purchfeed` FOR EACH ROW BEGIN 
DECLARE InverterID VARCHAR(10);
SET InverterID = (SELECT advert_id FROM t03_03silage_forpurch WHERE t03_03silage_forpurch.slg_purch_rowno = NEW.slg_purch_rowno);
IF((SELECT count(purch_status) FROM t03_04silage_purchfeed WHERE t03_04silage_purchfeed.slg_purch_rowno =  NEW.slg_purch_rowno AND  t03_04silage_purchfeed.purch_status = 'O') > 0) THEN
SET @available_status  = 'O';
ELSE
SET @available_status  = 'C';
END IF;
UPDATE t00_00adverts_master SET `available_status`=  @available_status WHERE `advert_id` = InverterID;
END
$$
DELIMITER ;

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

--
-- Table structure for table `t04_01fodder_forsale`
--

CREATE TABLE `t04_01fodder_forsale` (
  `fodder_sale_rowno` int(11) NOT NULL,
  `advert_id` varchar(10) COLLATE utf8_unicode_ci NOT NULL,
  `price_perkg_atgate` decimal(10,2) NOT NULL DEFAULT '0.00',
  `location` text COLLATE utf8_unicode_ci NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `created_by` varchar(10) COLLATE utf8_unicode_ci NOT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `edited_by` varchar(10) COLLATE utf8_unicode_ci NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `t04_01fodder_forsale`
--

INSERT INTO `t04_01fodder_forsale` (`fodder_sale_rowno`, `advert_id`, `price_perkg_atgate`, `location`, `created_at`, `created_by`, `updated_at`, `edited_by`) VALUES
(33, 'AD20000003', '0.00', '', NULL, '20000001', NULL, '20000001'),
(34, 'AD20000175', '0.00', '', NULL, '20000006', NULL, '20000006'),
(35, 'AD20000206', '0.00', '', NULL, '20000006', NULL, '20000006'),
(36, 'AD20000207', '0.00', '', NULL, '20000006', NULL, '20000006'),
(37, 'AD20000208', '0.00', '', NULL, '20000002', NULL, '20000002'),
(38, 'AD20000209', '0.00', '', NULL, '20000006', NULL, '20000006'),
(39, 'AD20000210', '0.00', '', NULL, '20000006', NULL, '20000006'),
(40, 'AD20000211', '0.00', '', NULL, '20000006', NULL, '20000006'),
(41, 'AD20000212', '0.00', '', NULL, '20000006', NULL, '20000006'),
(42, 'AD20000213', '0.00', '', NULL, '20000002', NULL, '20000002'),
(43, 'AD20000214', '0.00', '', NULL, '20000002', NULL, '20000002'),
(44, 'AD20000215', '0.00', '', NULL, '20000006', NULL, '20000006'),
(45, 'AD20000216', '0.00', '', NULL, '20000006', NULL, '20000006'),
(46, 'AD20000217', '0.00', '', NULL, '20000002', NULL, '20000002'),
(47, 'AD20000218', '0.00', '', NULL, '20000002', NULL, '20000002'),
(48, 'AD20000219', '0.00', '', NULL, '20000002', NULL, '20000002'),
(49, 'AD20000220', '0.00', '', NULL, '20000002', NULL, '20000002'),
(50, 'AD20000221', '0.00', '', NULL, '20000006', NULL, '20000006'),
(51, 'AD20000229', '0.00', '', NULL, '20000010', NULL, '20000010'),
(52, 'AD20000242', '0.00', '', NULL, '20000010', NULL, '20000010');

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

--
-- Table structure for table `t04_02fodder_salefeed`
--

CREATE TABLE `t04_02fodder_salefeed` (
  `fdrsale_feed_rowno` int(11) NOT NULL,
  `seq_no` int(11) NOT NULL,
  `fodder_sale_rowno` int(11) NOT NULL,
  `feed_type` varchar(10) COLLATE utf8_unicode_ci NOT NULL,
  `qty_kg` decimal(10,3) NOT NULL,
  `no_of_packs` int(11) NOT NULL,
  `packaging` char(4) COLLATE utf8_unicode_ci NOT NULL COMMENT '	PB - Polythene Bags, BRL - Barrel, BAL- Bale',
  `sold_status` char(1) COLLATE utf8_unicode_ci NOT NULL COMMENT 'S: Sold, A: Available',
  `comments` text COLLATE utf8_unicode_ci NOT NULL,
  `dist_id` varchar(10) COLLATE utf8_unicode_ci NOT NULL,
  `ds_div_id` varchar(10) COLLATE utf8_unicode_ci NOT NULL,
  `avail_bal` decimal(10,3) NOT NULL,
  `expected_date` date NOT NULL,
  `harvested_date` date NOT NULL,
  `price_perkg` decimal(10,2) NOT NULL,
  `havested` char(1) COLLATE utf8_unicode_ci NOT NULL,
  `chopped` char(1) COLLATE utf8_unicode_ci NOT NULL,
  `loaded` char(1) COLLATE utf8_unicode_ci NOT NULL,
  `transported` char(1) COLLATE utf8_unicode_ci NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `created_by` varchar(10) COLLATE utf8_unicode_ci NOT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `edited_by` varchar(10) COLLATE utf8_unicode_ci NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `t04_02fodder_salefeed`
--

INSERT INTO `t04_02fodder_salefeed` (`fdrsale_feed_rowno`, `seq_no`, `fodder_sale_rowno`, `feed_type`, `qty_kg`, `no_of_packs`, `packaging`, `sold_status`, `comments`, `dist_id`, `ds_div_id`, `avail_bal`, `expected_date`, `harvested_date`, `price_perkg`, `havested`, `chopped`, `loaded`, `transported`, `created_at`, `created_by`, `updated_at`, `edited_by`) VALUES
(167, 1, 33, 'GHAY', '2.000', 2, 'BRL', 'A', 'Emergency', '', '', '0.000', '0000-00-00', '0000-00-00', '0.00', '', '', '', '', NULL, '20000001', NULL, '20000001'),
(168, 1, 33, 'GHAY', '1.000', 3, 'BAL', 'A', 'Emergency', '', '', '0.000', '0000-00-00', '0000-00-00', '0.00', '', '', '', '', NULL, '20000001', NULL, '20000001'),
(169, 2, 33, 'GHAY', '2.000', 1, 'BAL', 'A', 'Dilivery free', '', '', '0.000', '0000-00-00', '0000-00-00', '0.00', '', '', '', '', NULL, '20000001', NULL, '20000001'),
(170, 2, 33, 'GHAY', '5.000', 1, 'PB', 'A', 'Dilivery free', '', '', '0.000', '0000-00-00', '0000-00-00', '0.00', '', '', '', '', NULL, '20000001', NULL, '20000001'),
(171, 1, 33, 'GHAY', '1.000', 2, 'PB', 'A', 'Emergency', '', '', '0.000', '0000-00-00', '0000-00-00', '0.00', '', '', '', '', NULL, '20000001', NULL, '20000001'),
(172, 3, 33, 'GHAY', '2.000', 1, 'BAL', 'A', 'Dilivery free', '', '', '0.000', '0000-00-00', '0000-00-00', '0.00', '', '', '', '', NULL, '20000001', NULL, '20000001'),
(173, 3, 33, 'GHAY', '5.000', 1, 'PB', 'A', 'Dilivery free', '', '', '0.000', '0000-00-00', '0000-00-00', '0.00', '', '', '', '', NULL, '20000001', NULL, '20000001'),
(174, 1, 34, 'MAIZ', '5.000', 0, '', 'A', 'Tst First 233', 'AD', '', '5.000', '0000-00-00', '2020-02-15', '0.00', '1', '1', '', '', NULL, '20000001', '2020-03-13 04:18:49', '20000001'),
(175, 2, 34, 'GHAY', '6.000', 0, '', 'A', 'Second Pro', 'AD', '', '6.000', '0000-00-00', '2020-02-17', '0.00', '1', '1', '1', '', NULL, '20000006', NULL, '20000006'),
(176, 1, 35, 'GHAY', '5.000', 0, '', 'A', 'Tst First', 'AD', '', '5.000', '0000-00-00', '2020-02-15', '0.00', '1', '1', '', '', NULL, '20000006', NULL, '20000006'),
(177, 1, 36, 'GHAY', '5.000', 0, '', 'A', 'Tst First', 'AD', '', '5.000', '0000-00-00', '2020-02-15', '0.00', '', '', '', '', NULL, '20000006', NULL, '20000006'),
(178, 1, 37, 'GHAY', '5.000', 0, '', 'A', 'Tst First', 'AD', '', '4.000', '0000-00-00', '2020-02-15', '0.00', '1', '1', '', '', NULL, '20000006', '2020-03-06 00:50:14', '20000006'),
(179, 1, 40, 'GHAY', '333.000', 0, '', 'A', 'Knonno', 'APR', '', '333.000', '2020-03-05', '2020-03-05', '3.00', '', '', '', '', NULL, '20000006', NULL, '20000006'),
(180, 1, 43, 'MAIZ', '7.000', 0, '', 'A', 'Tst First 233 wer', 'AD', '', '7.000', '0000-00-00', '2020-02-20', '0.00', '1', '1', '1', '', NULL, '20000002', '2020-03-06 00:59:36', '20000002'),
(181, 1, 44, 'GHAY', '800.000', 0, '', 'A', 'J9j9j', 'APR', '', '555.000', '2020-03-06', '2020-03-06', '55.00', '1', '', '1', '1', NULL, '20000006', '2020-03-06 00:56:13', '20000006'),
(182, 1, 45, 'GHAY', '500.000', 0, '', 'A', 'Hih8', 'AD', '', '500.000', '2020-03-06', '2020-03-06', '20.00', '1', '', '1', '', NULL, '20000006', NULL, '20000006'),
(183, 2, 45, 'PGRAZ', '900.000', 0, '', 'A', 'K kn', 'BC', '', '900.000', '2020-03-06', '2020-03-06', '580.00', '', '1', '', '1', NULL, '20000006', NULL, '20000006'),
(184, 1, 47, 'GHAY', '5.000', 0, '', 'A', 'Tst First', 'AD', '', '5.000', '0000-00-00', '2020-02-15', '0.00', '1', '1', '', '', NULL, '20000002', NULL, '20000002'),
(185, 1, 48, 'MAIZ', '7.000', 0, '', 'A', 'Tst First 233 wer', 'AD', '', '7.000', '0000-00-00', '2020-02-20', '0.00', '1', '1', '1', '', NULL, '20000002', '2020-03-06 01:02:31', '20000002'),
(186, 1, 49, 'GHAY', '5.000', 0, '', 'A', 'Tst First', 'AD', '', '5.000', '0000-00-00', '2020-02-15', '0.00', '1', '1', '', '', NULL, '20000002', NULL, '20000002'),
(187, 3, 45, 'OATS', '888.000', 0, '', 'A', 'Hv', 'APR', '', '888.000', '2020-03-06', '2020-03-06', '868.00', '1', '', '', '', NULL, '20000006', NULL, '20000006'),
(188, 1, 50, 'PGRAZ', '500.000', 0, '', 'A', 'Giyiyi', 'GL', '', '500.000', '2020-03-06', '2020-03-06', '20.00', '', '', '1', '1', NULL, '20000006', NULL, '20000006'),
(189, 1, 51, 'GHAY', '5.000', 0, '', 'A', 'Tst First', 'AD', '', '5.000', '0000-00-00', '2020-02-15', '0.00', '1', '1', '', '', NULL, '20000010', NULL, '20000010'),
(190, 1, 52, 'GHAY', '5.000', 0, '', 'A', 'Tst First', 'AD', '', '5.000', '0000-00-00', '2020-02-15', '0.00', '1', '1', '', '', NULL, '20000010', NULL, '20000010');

--
-- Triggers `t04_02fodder_salefeed`
--
DELIMITER $$
CREATE TRIGGER `after_t04_02fodder_salefeed_insert` AFTER INSERT ON `t04_02fodder_salefeed` FOR EACH ROW BEGIN 
DECLARE InverterID VARCHAR(10);
SET InverterID = (SELECT advert_id FROM  t04_01fodder_forsale WHERE  t04_01fodder_forsale.fodder_sale_rowno = NEW.fodder_sale_rowno);
IF((SELECT count(sold_status) FROM t04_02fodder_salefeed WHERE t04_02fodder_salefeed.fodder_sale_rowno =  NEW.fodder_sale_rowno AND  t04_02fodder_salefeed.sold_status = 'A') > 0) THEN
SET @available_status  = 'A';
ELSE
SET @available_status  = 'S';
END IF;
UPDATE t00_00adverts_master SET `available_status`=  @available_status WHERE `advert_id` = InverterID;
END
$$
DELIMITER ;
DELIMITER $$
CREATE TRIGGER `after_t04_02fodder_salefeed_update` AFTER UPDATE ON `t04_02fodder_salefeed` FOR EACH ROW BEGIN 
DECLARE InverterID VARCHAR(10);
SET InverterID = (SELECT advert_id FROM t04_01fodder_forsale WHERE t04_01fodder_forsale.fodder_sale_rowno = NEW.fodder_sale_rowno);
IF((SELECT count(sold_status) FROM t04_02fodder_salefeed WHERE t04_02fodder_salefeed.fodder_sale_rowno =  NEW.fodder_sale_rowno AND  t04_02fodder_salefeed.sold_status = 'A') > 0) THEN
SET @available_status  = 'A';
ELSE
SET @available_status  = 'S';
END IF;
UPDATE t00_00adverts_master SET `available_status`=  @available_status WHERE `advert_id` = InverterID;
END
$$
DELIMITER ;

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

--
-- Table structure for table `t04_03fodder_forpurch`
--

CREATE TABLE `t04_03fodder_forpurch` (
  `fodder_purch_rowno` int(11) NOT NULL,
  `advert_id` varchar(10) COLLATE utf8_unicode_ci NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `created_by` varchar(10) COLLATE utf8_unicode_ci NOT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `edited_by` varchar(10) COLLATE utf8_unicode_ci NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `t04_03fodder_forpurch`
--

INSERT INTO `t04_03fodder_forpurch` (`fodder_purch_rowno`, `advert_id`, `created_at`, `created_by`, `updated_at`, `edited_by`) VALUES
(4, 'AD20000237', NULL, '20000010', NULL, '20000010');

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

--
-- Table structure for table `t04_04fodder_purchfeed`
--

CREATE TABLE `t04_04fodder_purchfeed` (
  `fdrpurch_feed_rowno` int(11) NOT NULL,
  `fodder_purch_rowno` int(11) NOT NULL,
  `seq_no` int(11) NOT NULL,
  `feed_type` varchar(10) COLLATE utf8_unicode_ci NOT NULL,
  `packaging` char(4) COLLATE utf8_unicode_ci NOT NULL DEFAULT '' COMMENT 'PB - Polythene Bags, BRL - Barrel, BAL- Bale Fixed Vals',
  `qty_kg` decimal(10,3) NOT NULL,
  `purch_status` char(1) COLLATE utf8_unicode_ci NOT NULL COMMENT 'O: Open, C: Closed',
  `comments` text COLLATE utf8_unicode_ci NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `created_by` varchar(10) COLLATE utf8_unicode_ci NOT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `edited_by` varchar(10) COLLATE utf8_unicode_ci NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `t04_04fodder_purchfeed`
--

INSERT INTO `t04_04fodder_purchfeed` (`fdrpurch_feed_rowno`, `fodder_purch_rowno`, `seq_no`, `feed_type`, `packaging`, `qty_kg`, `purch_status`, `comments`, `created_at`, `created_by`, `updated_at`, `edited_by`) VALUES
(1, 4, 1, 'OATS', 'PB', '4.000', 'O', 'test HM', NULL, '20000010', NULL, '20000010'),
(2, 4, 1, 'OATS', 'BRL', '3.000', 'O', 'test HM', NULL, '20000010', NULL, '20000010');

--
-- Triggers `t04_04fodder_purchfeed`
--
DELIMITER $$
CREATE TRIGGER `after_t04_04fodder_purchfeed_insert` AFTER INSERT ON `t04_04fodder_purchfeed` FOR EACH ROW BEGIN 
DECLARE InverterID VARCHAR(10);
SET InverterID = (SELECT advert_id FROM t04_03fodder_forpurch WHERE t04_03fodder_forpurch.fodder_purch_rowno = NEW.fodder_purch_rowno);
IF((SELECT count(purch_status) FROM t04_04fodder_purchfeed WHERE t04_04fodder_purchfeed.fodder_purch_rowno =  NEW.fodder_purch_rowno AND  t04_04fodder_purchfeed.fodder_purch_rowno = 'O') > 0) THEN
SET @available_status  = 'O';
ELSE
SET @available_status  = 'C';
END IF;
UPDATE t00_00adverts_master SET `available_status`=  @available_status WHERE `advert_id` = InverterID;
END
$$
DELIMITER ;
DELIMITER $$
CREATE TRIGGER `after_t04_04fodder_purchfeed_update` AFTER UPDATE ON `t04_04fodder_purchfeed` FOR EACH ROW BEGIN 
DECLARE InverterID VARCHAR(10);
SET InverterID = (SELECT advert_id FROM t04_03fodder_forpurch WHERE t04_03fodder_forpurch.fodder_purch_rowno = NEW.fodder_purch_rowno);
IF((SELECT count(purch_status) FROM t04_04fodder_purchfeed WHERE t04_04fodder_purchfeed.fodder_purch_rowno =  NEW.fodder_purch_rowno AND  t04_04fodder_purchfeed.purch_status = 'O') > 0) THEN
SET @available_status  = 'O';
ELSE
SET @available_status  = 'C';
END IF;
UPDATE t00_00adverts_master SET `available_status`=  @available_status WHERE `advert_id` = InverterID;
END
$$
DELIMITER ;

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

--
-- Table structure for table `t05_01aisvc_offered`
--

CREATE TABLE `t05_01aisvc_offered` (
  `ai_advert_id` varchar(10) COLLATE utf8_unicode_ci NOT NULL COMMENT 'AIYYnnnnnn',
  `advert_id` varchar(10) COLLATE utf8_unicode_ci NOT NULL,
  `ai_regno` varchar(10) COLLATE utf8_unicode_ci NOT NULL,
  `ai_org_type` char(1) COLLATE utf8_unicode_ci NOT NULL COMMENT 'P - Private, G - Government',
  `created_at` timestamp NULL DEFAULT NULL,
  `created_by` varchar(10) COLLATE utf8_unicode_ci NOT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `edited_by` varchar(10) COLLATE utf8_unicode_ci NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `t05_01aisvc_offered`
--

INSERT INTO `t05_01aisvc_offered` (`ai_advert_id`, `advert_id`, `ai_regno`, `ai_org_type`, `created_at`, `created_by`, `updated_at`, `edited_by`) VALUES
('AI20000001', 'AD20000005', 'E1856806', 'P', NULL, '10', NULL, '10'),
('AI20000002', 'AD20000034', '722828', 'P', NULL, 'UI20000009', NULL, 'UI20000009'),
('AI20000003', 'AD20000223', '55567789', 'G', NULL, 'UI20000010', NULL, 'UI20000010'),
('AI20000004', 'AD20000243', '56568', 'P', NULL, 'UI20000011', NULL, 'UI20000011');

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

--
-- Table structure for table `t05_01aisvc_vetranges`
--

CREATE TABLE `t05_01aisvc_vetranges` (
  `ai_vetrange_rowno` int(11) NOT NULL,
  `ai_advert_id` varchar(10) COLLATE utf8_unicode_ci NOT NULL,
  `vet_range` varchar(100) COLLATE utf8_unicode_ci NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `created_by` varchar(10) COLLATE utf8_unicode_ci NOT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `edited_by` varchar(10) COLLATE utf8_unicode_ci NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `t05_01aisvc_vetranges`
--

INSERT INTO `t05_01aisvc_vetranges` (`ai_vetrange_rowno`, `ai_advert_id`, `vet_range`, `created_at`, `created_by`, `updated_at`, `edited_by`) VALUES
(25, 'AI20000001', 'Er46', NULL, '10', NULL, '10'),
(26, 'AI20000002', 'Athapattuwa mw', NULL, 'UI20000009', NULL, 'UI20000009'),
(27, 'AI20000003', '56', NULL, 'UI20000010', NULL, 'UI20000010'),
(28, 'AI20000004', 'ed ', NULL, 'UI20000011', NULL, 'UI20000011'),
(29, 'AI20000004', ' rty', NULL, 'UI20000011', NULL, 'UI20000011');

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

--
-- Table structure for table `t05_02aitech_bookings`
--

CREATE TABLE `t05_02aitech_bookings` (
  `booking_no` varchar(10) COLLATE utf8_unicode_ci NOT NULL COMMENT 'BNYYnnnnnn',
  `ai_advert_id` varchar(10) COLLATE utf8_unicode_ci NOT NULL,
  `farmer_regno` varchar(10) COLLATE utf8_unicode_ci NOT NULL,
  `cattle_id` varchar(20) COLLATE utf8_unicode_ci NOT NULL,
  `required_at` datetime NOT NULL,
  `preferred_semen` int(11) NOT NULL,
  `first_heat_call` datetime NOT NULL,
  `last_calving_date` date NOT NULL,
  `age` decimal(10,2) NOT NULL,
  `ai_times_repeated` int(11) NOT NULL DEFAULT '1',
  `ai_regno` varchar(10) COLLATE utf8_unicode_ci NOT NULL,
  `time_acknowledged` datetime NOT NULL COMMENT 'Time the AI checked and marked',
  `ai_response` char(1) COLLATE utf8_unicode_ci NOT NULL COMMENT 'C - Confirmed, R - Rejected',
  `ai_reject_reason` varchar(100) COLLATE utf8_unicode_ci NOT NULL,
  `booking_status` char(1) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'X' COMMENT 'E - expired, R - Cancelled, C - Confirmed, X - Not rated , Default X',
  `time_cancelled_byfarmer` datetime NOT NULL,
  `time_of_ai` datetime NOT NULL,
  `ait_rating` char(1) COLLATE utf8_unicode_ci NOT NULL DEFAULT '0' COMMENT 'default :0 - not rated. , 1 - Excellent, 2 - Satisfactory , 9- Unsatisfactory',
  `ait_comments` text COLLATE utf8_unicode_ci NOT NULL,
  `ait_date_offeedback` date NOT NULL,
  `ait_semenused` varchar(100) COLLATE utf8_unicode_ci NOT NULL,
  `de_rating` char(1) COLLATE utf8_unicode_ci NOT NULL DEFAULT '0' COMMENT 'default :0 - not rated. , 1 - Excellent, 2 - Satisfactory , 9- Unsatisfactory',
  `de_comments` text COLLATE utf8_unicode_ci NOT NULL,
  `de_date_offeedback` date NOT NULL,
  `pd_status` char(1) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'X' COMMENT 'S - Successful, F - Not successful , X - Not rated: Default X',
  `pd_date` datetime NOT NULL,
  `pd_vet_name` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
  `pd_upload_document` varchar(200) COLLATE utf8_unicode_ci NOT NULL,
  `pd_comments` text COLLATE utf8_unicode_ci NOT NULL,
  `tentative_delday` date NOT NULL,
  `pd_by` varchar(10) COLLATE utf8_unicode_ci NOT NULL,
  `pd_recorded_on` datetime NOT NULL,
  `date_expired` datetime NOT NULL,
  `date_created` datetime NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `created_by` varchar(10) COLLATE utf8_unicode_ci NOT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `edited_by` varchar(10) COLLATE utf8_unicode_ci NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `t05_02aitech_bookings`
--

INSERT INTO `t05_02aitech_bookings` (`booking_no`, `ai_advert_id`, `farmer_regno`, `cattle_id`, `required_at`, `preferred_semen`, `first_heat_call`, `last_calving_date`, `age`, `ai_times_repeated`, `ai_regno`, `time_acknowledged`, `ai_response`, `ai_reject_reason`, `booking_status`, `time_cancelled_byfarmer`, `time_of_ai`, `ait_rating`, `ait_comments`, `ait_date_offeedback`, `ait_semenused`, `de_rating`, `de_comments`, `de_date_offeedback`, `pd_status`, `pd_date`, `pd_vet_name`, `pd_upload_document`, `pd_comments`, `tentative_delday`, `pd_by`, `pd_recorded_on`, `date_expired`, `date_created`, `created_at`, `created_by`, `updated_at`, `edited_by`) VALUES
('BN20000001', 'AI20000001', '20000001', '200000012000001', '2020-02-14 03:15:00', 1, '2020-02-14 02:25:00', '2018-10-19', '18.00', 1, 'E1856806', '2020-02-14 09:21:17', 'C', '', 'C', '0000-00-00 00:00:00', '2020-02-14 00:00:00', '2', '2.45 complete', '2020-02-14', '1', '1', 'Cow ai complete', '2020-02-14', 'S', '2020-02-14 00:00:00', 'Sumudu', '/storage/VET/BN20000001_vet_20200214.jpg', '', '0000-00-00', 'VET', '2020-02-14 09:34:37', '0000-00-00 00:00:00', '2020-02-14 09:18:12', NULL, '', '2020-02-14 01:34:37', ''),
('BN20000002', 'AI20000001', '20000001', '200000012000001', '2020-02-14 15:06:00', 1, '2020-02-14 02:25:00', '2018-10-11', '18.00', 1, 'E1856806', '0000-00-00 00:00:00', 'R', '', 'R', '2020-02-14 10:11:27', '0000-00-00 00:00:00', '0', '', '0000-00-00', '', '0', '', '0000-00-00', 'X', '0000-00-00 00:00:00', '', '', '', '0000-00-00', '', '0000-00-00 00:00:00', '0000-00-00 00:00:00', '2020-02-14 09:36:30', NULL, '', '2020-02-14 02:11:27', ''),
('BN20000003', 'AI20000001', '20000001', '200000012000001', '2020-02-17 12:30:00', 1, '2020-02-17 11:30:00', '2019-01-01', '18.00', 2, 'E1856806', '2020-02-17 06:34:48', 'C', '', 'C', '0000-00-00 00:00:00', '2020-02-17 01:00:00', '4', 'Done', '2020-02-17', '1', '5', 'Done', '2020-02-17', 'S', '2020-02-17 00:00:00', 'Rajitha', '/storage/VET/BN20000003_vet_20200217.jpg', '', '0000-00-00', 'VET', '2020-02-17 06:37:22', '0000-00-00 00:00:00', '2020-02-17 06:33:45', NULL, '', '2020-02-16 22:37:22', ''),
('BN20000004', 'AI20000001', '20000006', '200000062000001', '2020-02-17 18:30:00', 1, '2020-02-17 17:09:00', '2020-02-17', '18.00', 1, 'E1856806', '2020-02-17 11:40:40', 'C', '', 'C', '0000-00-00 00:00:00', '2020-02-17 17:24:00', '4', 'Success', '2020-02-17', '1', '4', 'Done', '2020-02-17', 'S', '2020-02-17 00:00:00', 'Perera', '/storage/VET/BN20000004_vet_20200217.jpg', '', '0000-00-00', 'VET', '2020-02-17 11:46:27', '0000-00-00 00:00:00', '2020-02-17 11:39:35', NULL, '', '2020-02-17 03:46:27', ''),
('BN20000005', 'AI20000001', '20000006', '200000062000002', '2020-02-19 06:30:00', 1, '2020-02-01 08:30:00', '2019-01-01', '15.00', 1, 'E1856806', '2020-02-25 03:05:04', 'R', 'ert', 'R', '0000-00-00 00:00:00', '2020-02-18 03:30:00', '3', 'Done', '2020-02-18', '1', '3', 'Done', '2020-02-18', 'S', '2020-02-18 00:00:00', 'Saman', '/storage/VET/BN20000005_vet_20200218.jpg', '', '0000-00-00', 'VET', '2020-02-18 09:59:03', '0000-00-00 00:00:00', '2020-02-18 09:27:27', NULL, '', '2020-02-24 21:35:04', ''),
('BN20000006', 'AI20000001', '20000006', '200000062000002', '2020-02-29 16:38:00', 1, '2020-02-28 16:38:00', '2020-02-28', '15.00', 2, 'E1856806', '0000-00-00 00:00:00', 'C', '', 'C', '0000-00-00 00:00:00', '2020-05-15 00:00:00', '0', 'test comment', '2020-05-15', '2', '1', 'df', '2020-02-18', 'S', '2020-05-17 00:00:00', 'abc', 'public/VET/BN20000006_vet_20200515.jpg', 'abc', '0000-00-00', 'VET', '2020-05-15 09:20:31', '0000-00-00 00:00:00', '2020-02-28 11:08:43', NULL, '', '2020-05-15 03:50:31', '');

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

--
-- Table structure for table `t06_01equip_forsale`
--

CREATE TABLE `t06_01equip_forsale` (
  `equip_sale_rowno` int(11) NOT NULL,
  `advert_id` varchar(10) COLLATE utf8_unicode_ci NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `created_by` varchar(10) COLLATE utf8_unicode_ci NOT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `edited_by` varchar(10) COLLATE utf8_unicode_ci NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `t06_01equip_forsale`
--

INSERT INTO `t06_01equip_forsale` (`equip_sale_rowno`, `advert_id`, `created_at`, `created_by`, `updated_at`, `edited_by`) VALUES
(1, 'AD20000030', NULL, '20000006', NULL, '20000006'),
(2, 'AD20000032', NULL, '20000006', NULL, '20000006'),
(3, 'AD20000033', NULL, '20000006', NULL, '20000006'),
(4, 'AD20000039', NULL, '20000006', NULL, '20000006'),
(5, 'AD20000047', NULL, '20000006', NULL, '20000006'),
(6, 'AD20000120', NULL, '20000006', NULL, '20000006'),
(7, 'AD20000125', NULL, '20000006', NULL, '20000006'),
(8, 'AD20000196', NULL, '20000006', NULL, '20000006'),
(9, 'AD20000197', NULL, '20000006', NULL, '20000006'),
(10, 'AD20000198', NULL, '20000006', NULL, '20000006'),
(11, 'AD20000199', NULL, '20000006', NULL, '20000006'),
(12, 'AD20000200', NULL, '20000006', NULL, '20000006'),
(13, 'AD20000201', NULL, '20000006', NULL, '20000006'),
(14, 'AD20000202', NULL, '20000006', NULL, '20000006'),
(15, 'AD20000239', NULL, '20000010', NULL, '20000010');

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

--
-- Table structure for table `t06_02equip_sale_categories`
--

CREATE TABLE `t06_02equip_sale_categories` (
  `equip_salecat_rowno` int(11) NOT NULL,
  `seq_no` int(11) NOT NULL,
  `equip_sale_rowno` int(11) NOT NULL,
  `equip_catid` varchar(10) COLLATE utf8_unicode_ci NOT NULL,
  `equip_qty` int(11) NOT NULL,
  `equip_price` decimal(10,2) NOT NULL,
  `brand_name` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
  `equip_comments` text COLLATE utf8_unicode_ci NOT NULL,
  `avail_bal` int(11) NOT NULL,
  `sold_status` char(1) COLLATE utf8_unicode_ci NOT NULL COMMENT 'S: Sold, A: Available',
  `created_at` timestamp NULL DEFAULT NULL,
  `created_by` varchar(10) COLLATE utf8_unicode_ci NOT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `edited_by` varchar(10) COLLATE utf8_unicode_ci NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `t06_02equip_sale_categories`
--

INSERT INTO `t06_02equip_sale_categories` (`equip_salecat_rowno`, `seq_no`, `equip_sale_rowno`, `equip_catid`, `equip_qty`, `equip_price`, `brand_name`, `equip_comments`, `avail_bal`, `sold_status`, `created_at`, `created_by`, `updated_at`, `edited_by`) VALUES
(1, 1, 1, 'TRACTER', 865, '8585.00', '', 'Huh 7', 0, 'A', NULL, '20000006', NULL, '20000006'),
(2, 2, 1, 'TRACTER', 865, '8585.00', '', 'Huh 7', 0, 'A', NULL, '20000006', NULL, '20000006'),
(3, 1, 2, 'EQ19000001', 7, '7500.00', 'happy', 'Test Update today', 0, 'S', NULL, '20000006', '2020-02-26 04:32:43', '20000006'),
(4, 1, 3, 'TRACTER', 55, '1200.00', 'Buvu', '', 0, 'A', NULL, '20000006', NULL, '20000006'),
(5, 2, 3, 'TRACTER', 6, '53.00', 'Yin', 'Hui', 0, 'A', NULL, '20000006', NULL, '20000006'),
(6, 3, 3, 'TRACTER', 55, '1200.00', 'Buvu', '', 0, 'A', NULL, '20000006', NULL, '20000006'),
(7, 1, 4, 'EQ19000001', 5, '0.00', 'Yn', '', 0, 'A', NULL, '20000006', NULL, '20000006'),
(8, 1, 5, 'TRACTER', 889, '6.00', 'Ui', '', 0, 'A', NULL, '20000006', NULL, '20000006'),
(9, 1, 6, 'TRACTER', 2, '150.00', 'Tata', 'One Month used', 0, 'A', NULL, '20000006', NULL, '20000006'),
(10, 1, 7, 'TRACTER', 2, '150000.00', 'Tata', 'No n hpjh', 0, 'A', NULL, '20000006', NULL, '20000006'),
(11, 1, 8, 'EQ19000001', 5, '550.00', 'pppp', 'First 2  Test HM', 0, 'A', NULL, '20000006', NULL, '20000006'),
(12, 1, 9, 'EQ19000001', 5, '550.00', 'pppp', 'First 2  Test HM', 0, 'A', NULL, '20000006', NULL, '20000006'),
(13, 1, 10, 'EQ19000001', 5, '550.00', 'pppp', 'First 2  Test HM', 0, 'A', NULL, '20000006', NULL, '20000006'),
(14, 1, 11, 'EQ19000001', 5, '550.00', 'pppp', 'First 2  Test HM', 0, 'A', NULL, '20000006', NULL, '20000006'),
(15, 1, 12, 'EQ19000001', 5, '550.00', 'pppp', 'First 2  Test HM', 0, 'A', NULL, '20000006', NULL, '20000006'),
(16, 1, 13, 'EQ19000001', 5, '550.00', 'pppp', 'First 2  Test HM', 0, 'A', NULL, '20000006', NULL, '20000006'),
(17, 1, 14, 'EQ19000001', 7, '7000.00', 'happy', 'Test Update 07', 7, 'A', NULL, '20000006', '2020-03-13 04:19:27', '20000006'),
(18, 1, 15, 'EQ19000001', 5, '550.00', 'pppp', 'First 2  Test HM', 0, 'A', NULL, '20000010', NULL, '20000010'),
(19, 2, 15, 'EQ19000001', 5, '550.00', 'pppp', 'First 2  Test HM', 0, 'A', NULL, '20000010', NULL, '20000010');

--
-- Triggers `t06_02equip_sale_categories`
--
DELIMITER $$
CREATE TRIGGER `after_t06_02equip_sale_categories_insert` AFTER INSERT ON `t06_02equip_sale_categories` FOR EACH ROW BEGIN 
DECLARE InverterID VARCHAR(10);
SET InverterID = (SELECT advert_id FROM  t06_01equip_forsale WHERE  t06_01equip_forsale.equip_sale_rowno = NEW.equip_sale_rowno);
IF((SELECT count(sold_status) FROM t06_02equip_sale_categories WHERE t06_02equip_sale_categories.equip_sale_rowno =  NEW.equip_sale_rowno AND  t06_02equip_sale_categories.sold_status = 'A') > 0) THEN
SET @available_status  = 'A';
ELSE
SET @available_status  = 'S';
END IF;
UPDATE t00_00adverts_master SET `available_status`=  @available_status WHERE `advert_id` = InverterID;
END
$$
DELIMITER ;
DELIMITER $$
CREATE TRIGGER `after_t06_02equip_sale_categories_update` AFTER UPDATE ON `t06_02equip_sale_categories` FOR EACH ROW BEGIN 
DECLARE InverterID VARCHAR(10);
SET InverterID = (SELECT advert_id FROM t06_01equip_forsale WHERE t06_01equip_forsale.equip_sale_rowno = NEW.equip_sale_rowno);
IF((SELECT count(sold_status) FROM t06_02equip_sale_categories WHERE t06_02equip_sale_categories.equip_sale_rowno =  NEW.equip_sale_rowno AND  t06_02equip_sale_categories.sold_status = 'A') > 0) THEN
SET @available_status  = 'A';
ELSE
SET @available_status  = 'S';
END IF;
UPDATE t00_00adverts_master SET `available_status`=  @available_status WHERE `advert_id` = InverterID;
END
$$
DELIMITER ;

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

--
-- Table structure for table `t06_03equip_forpurch`
--

CREATE TABLE `t06_03equip_forpurch` (
  `equip_purch_rowno` int(11) NOT NULL,
  `advert_id` varchar(10) COLLATE utf8_unicode_ci NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `created_by` varchar(10) COLLATE utf8_unicode_ci NOT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `edited_by` varchar(10) COLLATE utf8_unicode_ci NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `t06_03equip_forpurch`
--

INSERT INTO `t06_03equip_forpurch` (`equip_purch_rowno`, `advert_id`, `created_at`, `created_by`, `updated_at`, `edited_by`) VALUES
(1, 'AD20000225', NULL, '20000002', NULL, '20000002'),
(2, 'AD20000226', NULL, '20000002', NULL, '20000002'),
(3, 'AD20000227', NULL, '20000002', NULL, '20000002');

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

--
-- Table structure for table `t06_04equip_purch_categories`
--

CREATE TABLE `t06_04equip_purch_categories` (
  `equip_purchcat_rowno` int(11) NOT NULL,
  `equip_purch_rowno` int(11) NOT NULL,
  `seq_no` int(11) NOT NULL,
  `equip_catid` varchar(10) COLLATE utf8_unicode_ci NOT NULL,
  `equip_qty` int(11) NOT NULL,
  `equip_purch_comments` text COLLATE utf8_unicode_ci NOT NULL,
  `purch_status` char(1) COLLATE utf8_unicode_ci NOT NULL COMMENT 'O: Open, C: Closed',
  `created_at` timestamp NULL DEFAULT NULL,
  `created_by` varchar(10) COLLATE utf8_unicode_ci NOT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `edited_by` varchar(10) COLLATE utf8_unicode_ci NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `t06_04equip_purch_categories`
--

INSERT INTO `t06_04equip_purch_categories` (`equip_purchcat_rowno`, `equip_purch_rowno`, `seq_no`, `equip_catid`, `equip_qty`, `equip_purch_comments`, `purch_status`, `created_at`, `created_by`, `updated_at`, `edited_by`) VALUES
(1, 3, 1, 'EQ19000001', 5, 'Test Update 05/11', 'O', NULL, '20000002', '2020-05-11 04:29:42', '20000002');

--
-- Triggers `t06_04equip_purch_categories`
--
DELIMITER $$
CREATE TRIGGER `after_t06_04equip_purch_categories_insert` AFTER INSERT ON `t06_04equip_purch_categories` FOR EACH ROW BEGIN 
DECLARE InverterID VARCHAR(10);
SET InverterID = (SELECT advert_id FROM t06_03equip_forpurch WHERE t06_03equip_forpurch.equip_purch_rowno = NEW.equip_purch_rowno);
IF((SELECT count(purch_status) FROM t06_04equip_purch_categories WHERE t06_04equip_purch_categories.equip_purch_rowno =  NEW.equip_purch_rowno AND  t06_04equip_purch_categories.purch_status = 'O') > 0) THEN
SET @available_status  = 'O';
ELSE
SET @available_status  = 'C';
END IF;
UPDATE t00_00adverts_master SET `available_status`=  @available_status WHERE `advert_id` = InverterID;
END
$$
DELIMITER ;
DELIMITER $$
CREATE TRIGGER `after_t06_04equip_purch_categories_update` AFTER UPDATE ON `t06_04equip_purch_categories` FOR EACH ROW BEGIN 
DECLARE InverterID VARCHAR(10);
SET InverterID = (SELECT advert_id FROM t06_03equip_forpurch WHERE t06_03equip_forpurch.equip_purch_rowno = NEW.equip_purch_rowno);
IF((SELECT count(purch_status) FROM t06_04equip_purch_categories WHERE t06_04equip_purch_categories.equip_purch_rowno =  NEW.equip_purch_rowno AND  t06_04equip_purch_categories.purch_status = 'O') > 0) THEN
SET @available_status  = 'O';
ELSE
SET @available_status  = 'C';
END IF;
UPDATE t00_00adverts_master SET `available_status`=  @available_status WHERE `advert_id` = InverterID;
END
$$
DELIMITER ;

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

--
-- Table structure for table `t10_00docapprovals`
--

CREATE TABLE `t10_00docapprovals` (
  `rowno` int(11) NOT NULL,
  `ref_doc_type` char(5) COLLATE utf8_unicode_ci NOT NULL COMMENT 'from fixval',
  `ref_doc_no` varchar(10) COLLATE utf8_unicode_ci NOT NULL,
  `approval_status` char(1) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'P' COMMENT 'A - Approved, P - Pending, R - Rejected',
  `date_submitted` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
  `date_decided` datetime NOT NULL,
  `approver_comment` text COLLATE utf8_unicode_ci NOT NULL,
  `user_id` varchar(10) COLLATE utf8_unicode_ci NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `created_by` varchar(10) COLLATE utf8_unicode_ci NOT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `edited_by` varchar(10) COLLATE utf8_unicode_ci NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `t10_00docapprovals`
--

INSERT INTO `t10_00docapprovals` (`rowno`, `ref_doc_type`, `ref_doc_no`, `approval_status`, `date_submitted`, `date_decided`, `approver_comment`, `user_id`, `created_at`, `created_by`, `updated_at`, `edited_by`) VALUES
(273, 'REG', '20000001', 'A', '2020-02-14 00:00:00', '2020-02-14 08:08:19', 'Accept By Admin', 'UI20000001', NULL, '10', '2020-02-14 00:08:19', '10'),
(274, 'ADVRT', 'AD20000001', 'A', '2020-02-14 00:00:00', '2020-02-14 08:24:53', 'Approved by Admin', 'UI20000001', NULL, '10', '2020-02-14 00:24:53', '10'),
(275, 'ADVRT', 'AD20000002', 'A', '2020-02-14 00:00:00', '2020-02-14 08:46:42', 'Silage buy saman approved', 'UI20000001', NULL, '10', '2020-02-14 00:46:42', '10'),
(276, 'ADVRT', 'AD20000003', 'R', '2020-02-14 00:00:00', '2020-02-14 08:47:55', 'over cost.', 'UI20000001', NULL, '10', '2020-02-14 00:47:55', '10'),
(277, 'ADVRT', 'AD20000004', 'A', '2020-02-14 00:00:00', '2020-02-14 11:54:08', 'we qapproved', 'UI20000001', NULL, '10', '2020-02-14 03:54:08', '10'),
(278, 'ADVRT', 'AD20000005', 'A', '2020-02-14 00:00:00', '2020-02-14 09:13:08', 'First AI', 'UI20000002', NULL, '10', '2020-02-14 01:13:08', '10'),
(279, 'REG', '20000002', 'A', '2020-02-14 00:00:00', '2020-02-14 09:13:08', 'First AI', 'UI20000002', NULL, '10', '2020-02-14 01:13:08', '10'),
(286, 'ADVRT', 'AD20000008', 'P', '2020-02-17 00:00:00', '0000-00-00 00:00:00', '', 'UI20000005', NULL, 'UI20000005', NULL, 'UI20000005'),
(287, 'REG', '20000005', 'P', '2020-02-17 00:00:00', '0000-00-00 00:00:00', '', 'UI20000005', NULL, 'UI20000005', NULL, 'UI20000005'),
(288, 'REG', '20000006', 'P', '2020-02-17 00:00:00', '2020-02-17 11:25:41', '', 'UI20000006', NULL, 'UI20000006', '2020-02-17 03:25:41', 'UI20000006'),
(289, 'ADVRT', 'AD20000009', 'A', '2020-02-17 00:00:00', '2020-02-17 11:33:12', '', 'UI20000006', NULL, '10', '2020-02-17 03:33:12', '10'),
(290, 'ADVRT', 'AD20000010', 'A', '2020-02-18 00:00:00', '2020-02-18 06:06:08', '', 'UI20000006', NULL, '10', '2020-02-17 22:06:08', '10'),
(291, 'ADVRT', 'AD20000011', 'P', '2020-02-18 00:00:00', '0000-00-00 00:00:00', '', 'UI20000006', NULL, '10', NULL, '10'),
(292, 'ADVRT', 'AD20000012', 'P', '2020-02-18 00:00:00', '0000-00-00 00:00:00', '', 'UI20000006', NULL, '10', NULL, '10'),
(293, 'ADVRT', 'AD20000013', 'P', '2020-02-18 00:00:00', '0000-00-00 00:00:00', '', 'UI20000006', NULL, '10', NULL, '10'),
(294, 'ADVRT', 'AD20000014', 'A', '2020-02-18 00:00:00', '2020-02-18 07:12:30', '', 'UI20000006', NULL, '10', '2020-02-17 23:12:30', '10'),
(295, 'ADVRT', 'AD20000015', 'P', '2020-02-18 00:00:00', '0000-00-00 00:00:00', '', 'UI20000006', NULL, '10', NULL, '10'),
(296, 'ADVRT', 'AD20000017', 'P', '2020-02-21 00:00:00', '0000-00-00 00:00:00', '', 'UI20000006', NULL, '10', NULL, '10'),
(297, 'ADVRT', 'AD20000018', 'P', '2020-02-21 00:00:00', '0000-00-00 00:00:00', '', 'UI20000006', NULL, '10', NULL, '10'),
(298, 'ADVRT', 'AD20000019', 'P', '2020-02-21 00:00:00', '0000-00-00 00:00:00', '', 'UI20000006', NULL, '10', NULL, '10'),
(299, 'ADVRT', 'AD20000020', 'P', '2020-02-21 00:00:00', '0000-00-00 00:00:00', '', 'UI20000006', NULL, '10', NULL, '10'),
(300, 'REG', '20000007', 'A', '2020-02-24 00:00:00', '2020-02-24 11:29:37', '', 'UI20000007', NULL, 'UI20000007', '2020-02-24 05:59:37', 'UI20000007'),
(301, 'REG', '20000008', 'P', '2020-02-25 00:00:00', '0000-00-00 00:00:00', '', 'UI20000008', '2020-02-24 22:57:44', '', '2020-02-24 22:57:44', ''),
(302, 'ADVRT', 'AD20000021', 'P', '2020-02-25 00:00:00', '0000-00-00 00:00:00', '', 'UI20000006', NULL, '10', NULL, '10'),
(303, 'ADVRT', 'AD20000022', 'P', '2020-02-25 00:00:00', '0000-00-00 00:00:00', '', 'UI20000006', NULL, '10', NULL, '10'),
(304, 'ADVRT', 'AD20000023', 'A', '2020-02-25 00:00:00', '0000-00-00 00:00:00', '', 'UI20000006', NULL, '10', NULL, '10'),
(305, 'ADVRT', 'AD20000024', 'P', '2020-02-25 00:00:00', '0000-00-00 00:00:00', '', 'UI20000006', NULL, '10', NULL, '10'),
(306, 'ADVRT', 'AD20000025', 'P', '2020-02-25 00:00:00', '0000-00-00 00:00:00', '', 'UI20000006', NULL, '10', NULL, '10'),
(307, 'ADVRT', 'AD20000026', 'P', '2020-02-25 00:00:00', '0000-00-00 00:00:00', '', 'UI20000006', NULL, '10', NULL, '10'),
(308, 'ADVRT', 'AD20000027', 'P', '2020-02-26 00:00:00', '0000-00-00 00:00:00', '', 'UI20000006', NULL, '10', NULL, '10'),
(309, 'ADVRT', 'AD20000028', 'P', '2020-02-26 00:00:00', '0000-00-00 00:00:00', '', 'UI20000006', NULL, '10', NULL, '10'),
(310, 'ADVRT', 'AD20000029', 'P', '2020-02-26 00:00:00', '0000-00-00 00:00:00', '', 'UI20000006', NULL, '10', NULL, '10'),
(311, 'ADVRT', 'AD20000030', 'P', '2020-02-26 00:00:00', '0000-00-00 00:00:00', '', 'UI20000006', NULL, '10', NULL, '10'),
(312, 'ADVRT', 'AD20000031', 'A', '2020-02-26 00:00:00', '0000-00-00 00:00:00', '', 'UI20000006', NULL, '10', NULL, '10'),
(313, 'ADVRT', 'AD20000032', 'P', '2020-02-26 00:00:00', '0000-00-00 00:00:00', '', 'UI20000006', NULL, '10', NULL, '10'),
(314, 'ADVRT', 'AD20000033', 'P', '2020-02-26 00:00:00', '0000-00-00 00:00:00', '', 'UI20000006', NULL, '10', NULL, '10'),
(315, 'ADVRT', 'AD20000034', 'A', '2020-02-27 00:00:00', '2020-02-27 11:54:03', '', 'UI20000009', NULL, 'UI20000009', '2020-02-27 06:24:03', 'UI20000009'),
(316, 'REG', '20000009', 'A', '2020-02-27 00:00:00', '2020-02-27 11:54:03', '', 'UI20000009', NULL, 'UI20000009', '2020-02-27 06:24:03', 'UI20000009'),
(317, 'ADVRT', 'AD20000035', 'P', '2020-02-28 00:00:00', '0000-00-00 00:00:00', '', 'UI20000006', NULL, '10', NULL, '10'),
(318, 'ADVRT', 'AD20000036', 'P', '2020-02-28 00:00:00', '0000-00-00 00:00:00', '', 'UI20000006', NULL, '10', NULL, '10'),
(319, 'ADVRT', 'AD20000037', 'P', '2020-02-28 00:00:00', '0000-00-00 00:00:00', '', 'UI20000006', NULL, '10', NULL, '10'),
(320, 'ADVRT', 'AD20000038', 'P', '2020-02-28 00:00:00', '0000-00-00 00:00:00', '', 'UI20000006', NULL, '10', NULL, '10'),
(321, 'ADVRT', 'AD20000039', 'P', '2020-02-28 00:00:00', '0000-00-00 00:00:00', '', 'UI20000006', NULL, '10', NULL, '10'),
(322, 'ADVRT', 'AD20000040', 'P', '2020-02-28 00:00:00', '0000-00-00 00:00:00', '', 'UI20000006', NULL, '10', NULL, '10'),
(323, 'ADVRT', 'AD20000041', 'P', '2020-02-28 00:00:00', '0000-00-00 00:00:00', '', 'UI20000006', NULL, '10', NULL, '10'),
(324, 'ADVRT', 'AD20000042', 'P', '2020-02-28 00:00:00', '0000-00-00 00:00:00', '', 'UI20000006', NULL, '10', NULL, '10'),
(325, 'ADVRT', 'AD20000043', 'P', '2020-02-28 00:00:00', '0000-00-00 00:00:00', '', 'UI20000006', NULL, '10', NULL, '10'),
(326, 'ADVRT', 'AD20000044', 'P', '2020-02-28 00:00:00', '0000-00-00 00:00:00', '', 'UI20000006', NULL, '10', NULL, '10'),
(327, 'ADVRT', 'AD20000045', 'P', '2020-02-28 00:00:00', '0000-00-00 00:00:00', '', 'UI20000006', NULL, '10', NULL, '10'),
(328, 'ADVRT', 'AD20000046', 'P', '2020-02-28 00:00:00', '0000-00-00 00:00:00', '', 'UI20000006', NULL, '10', NULL, '10'),
(329, 'ADVRT', 'AD20000047', 'P', '2020-02-28 00:00:00', '0000-00-00 00:00:00', '', 'UI20000006', NULL, '10', NULL, '10'),
(330, 'ADVRT', 'AD20000048', 'P', '2020-02-28 00:00:00', '0000-00-00 00:00:00', '', 'UI20000006', NULL, '10', NULL, '10'),
(331, 'ADVRT', 'AD20000049', 'P', '2020-02-28 00:00:00', '0000-00-00 00:00:00', '', 'UI20000006', NULL, '10', NULL, '10'),
(332, 'ADVRT', 'AD20000050', 'P', '2020-02-28 00:00:00', '0000-00-00 00:00:00', '', 'UI20000006', NULL, '10', NULL, '10'),
(333, 'ADVRT', 'AD20000051', 'P', '2020-02-28 00:00:00', '0000-00-00 00:00:00', '', 'UI20000006', NULL, '10', NULL, '10'),
(334, 'ADVRT', 'AD20000052', 'P', '2020-02-28 00:00:00', '0000-00-00 00:00:00', '', 'UI20000006', NULL, '10', NULL, '10'),
(335, 'ADVRT', 'AD20000053', 'P', '2020-02-28 00:00:00', '0000-00-00 00:00:00', '', 'UI20000006', NULL, '10', NULL, '10'),
(336, 'ADVRT', 'AD20000054', 'P', '2020-02-28 00:00:00', '0000-00-00 00:00:00', '', 'UI20000006', NULL, '10', NULL, '10'),
(337, 'ADVRT', 'AD20000055', 'P', '2020-02-28 00:00:00', '0000-00-00 00:00:00', '', 'UI20000006', NULL, '10', NULL, '10'),
(338, 'ADVRT', 'AD20000056', 'P', '2020-02-28 00:00:00', '0000-00-00 00:00:00', '', 'UI20000006', NULL, '10', NULL, '10'),
(339, 'ADVRT', 'AD20000057', 'P', '2020-02-28 00:00:00', '0000-00-00 00:00:00', '', 'UI20000006', NULL, '10', NULL, '10'),
(340, 'ADVRT', 'AD20000058', 'P', '2020-02-28 00:00:00', '0000-00-00 00:00:00', '', 'UI20000006', NULL, '10', NULL, '10'),
(341, 'ADVRT', 'AD20000059', 'P', '2020-02-28 00:00:00', '0000-00-00 00:00:00', '', 'UI20000006', NULL, '10', NULL, '10'),
(342, 'ADVRT', 'AD20000060', 'P', '2020-02-28 00:00:00', '0000-00-00 00:00:00', '', 'UI20000006', NULL, '10', NULL, '10'),
(343, 'ADVRT', 'AD20000061', 'P', '2020-02-28 00:00:00', '0000-00-00 00:00:00', '', 'UI20000006', NULL, '10', NULL, '10'),
(344, 'ADVRT', 'AD20000062', 'P', '2020-02-28 00:00:00', '0000-00-00 00:00:00', '', 'UI20000006', NULL, '10', NULL, '10'),
(345, 'ADVRT', 'AD20000063', 'P', '2020-02-28 00:00:00', '0000-00-00 00:00:00', '', 'UI20000006', NULL, '10', NULL, '10'),
(346, 'ADVRT', 'AD20000064', 'P', '2020-02-28 00:00:00', '0000-00-00 00:00:00', '', 'UI20000006', NULL, '10', NULL, '10'),
(347, 'ADVRT', 'AD20000065', 'P', '2020-02-28 00:00:00', '0000-00-00 00:00:00', '', 'UI20000006', NULL, '10', NULL, '10'),
(348, 'ADVRT', 'AD20000066', 'P', '2020-02-28 00:00:00', '0000-00-00 00:00:00', '', 'UI20000006', NULL, '10', NULL, '10'),
(349, 'ADVRT', 'AD20000067', 'P', '2020-02-28 00:00:00', '0000-00-00 00:00:00', '', 'UI20000006', NULL, '10', NULL, '10'),
(350, 'ADVRT', 'AD20000068', 'P', '2020-02-28 00:00:00', '0000-00-00 00:00:00', '', 'UI20000006', NULL, '10', NULL, '10'),
(351, 'ADVRT', 'AD20000069', 'P', '2020-02-28 00:00:00', '0000-00-00 00:00:00', '', 'UI20000006', NULL, '10', NULL, '10'),
(352, 'ADVRT', 'AD20000070', 'P', '2020-02-28 00:00:00', '0000-00-00 00:00:00', '', 'UI20000006', NULL, '10', NULL, '10'),
(353, 'ADVRT', 'AD20000071', 'A', '2020-02-28 00:00:00', '2020-02-28 09:41:02', '', 'UI20000006', NULL, '10', '2020-02-28 04:11:02', '10'),
(354, 'ADVRT', 'AD20000072', 'A', '2020-02-28 00:00:00', '2020-02-28 09:52:03', '', 'UI20000006', NULL, '10', '2020-02-28 04:22:03', '10'),
(355, 'ADVRT', 'AD20000073', 'P', '2020-02-28 00:00:00', '0000-00-00 00:00:00', '', 'UI20000006', NULL, '10', NULL, '10'),
(356, 'ADVRT', 'AD20000074', 'P', '2020-02-28 00:00:00', '0000-00-00 00:00:00', '', 'UI20000006', NULL, '10', NULL, '10'),
(357, 'ADVRT', 'AD20000075', 'P', '2020-02-28 00:00:00', '0000-00-00 00:00:00', '', 'UI20000006', NULL, '10', NULL, '10'),
(358, 'ADVRT', 'AD20000076', 'P', '2020-02-28 00:00:00', '0000-00-00 00:00:00', '', 'UI20000006', NULL, '10', NULL, '10'),
(359, 'ADVRT', 'AD20000077', 'P', '2020-02-28 00:00:00', '0000-00-00 00:00:00', '', 'UI20000006', NULL, '10', NULL, '10'),
(360, 'ADVRT', 'AD20000078', 'P', '2020-02-28 00:00:00', '0000-00-00 00:00:00', '', 'UI20000006', NULL, '10', NULL, '10'),
(361, 'ADVRT', 'AD20000079', 'P', '2020-02-28 00:00:00', '0000-00-00 00:00:00', '', 'UI20000006', NULL, '10', NULL, '10'),
(362, 'ADVRT', 'AD20000080', 'P', '2020-02-28 00:00:00', '0000-00-00 00:00:00', '', 'UI20000006', NULL, '10', NULL, '10'),
(363, 'ADVRT', 'AD20000081', 'P', '2020-02-28 00:00:00', '0000-00-00 00:00:00', '', 'UI20000006', NULL, '10', NULL, '10'),
(364, 'ADVRT', 'AD20000082', 'P', '2020-02-28 00:00:00', '0000-00-00 00:00:00', '', 'UI20000006', NULL, '10', NULL, '10'),
(365, 'ADVRT', 'AD20000083', 'P', '2020-02-28 00:00:00', '0000-00-00 00:00:00', '', 'UI20000006', NULL, '10', NULL, '10'),
(366, 'ADVRT', 'AD20000084', 'P', '2020-02-28 00:00:00', '0000-00-00 00:00:00', '', 'UI20000006', NULL, '10', NULL, '10'),
(367, 'ADVRT', 'AD20000085', 'P', '2020-02-28 00:00:00', '0000-00-00 00:00:00', '', 'UI20000006', NULL, '10', NULL, '10'),
(368, 'ADVRT', 'AD20000086', 'P', '2020-02-28 00:00:00', '0000-00-00 00:00:00', '', 'UI20000006', NULL, '10', NULL, '10'),
(369, 'ADVRT', 'AD20000087', 'P', '2020-02-28 00:00:00', '0000-00-00 00:00:00', '', 'UI20000006', NULL, '10', NULL, '10'),
(370, 'ADVRT', 'AD20000088', 'P', '2020-02-28 00:00:00', '0000-00-00 00:00:00', '', 'UI20000006', NULL, '10', NULL, '10'),
(371, 'ADVRT', 'AD20000089', 'P', '2020-02-28 00:00:00', '0000-00-00 00:00:00', '', 'UI20000006', NULL, '10', NULL, '10'),
(372, 'ADVRT', 'AD20000090', 'P', '2020-02-28 00:00:00', '0000-00-00 00:00:00', '', 'UI20000006', NULL, '10', NULL, '10'),
(373, 'ADVRT', 'AD20000091', 'P', '2020-02-28 00:00:00', '0000-00-00 00:00:00', '', 'UI20000006', NULL, '10', NULL, '10'),
(374, 'ADVRT', 'AD20000092', 'P', '2020-02-28 00:00:00', '0000-00-00 00:00:00', '', 'UI20000006', NULL, '10', NULL, '10'),
(375, 'ADVRT', 'AD20000093', 'A', '2020-02-28 00:00:00', '0000-00-00 00:00:00', '', 'UI20000006', NULL, '10', NULL, '10'),
(376, 'ADVRT', 'AD20000094', 'P', '2020-03-02 00:00:00', '0000-00-00 00:00:00', '', 'UI20000006', NULL, '10', NULL, '10'),
(377, 'ADVRT', 'AD20000095', 'A', '2020-03-02 00:00:00', '0000-00-00 00:00:00', '', 'UI20000006', NULL, '10', NULL, '10'),
(378, 'ADVRT', 'AD20000096', 'P', '2020-03-02 00:00:00', '0000-00-00 00:00:00', '', 'UI20000006', NULL, '10', NULL, '10'),
(379, 'ADVRT', 'AD20000097', 'P', '2020-03-02 00:00:00', '0000-00-00 00:00:00', '', 'UI20000006', NULL, '10', NULL, '10'),
(380, 'ADVRT', 'AD20000098', 'P', '2020-03-02 00:00:00', '0000-00-00 00:00:00', '', 'UI20000006', NULL, '10', NULL, '10'),
(381, 'ADVRT', 'AD20000099', 'P', '2020-03-02 00:00:00', '0000-00-00 00:00:00', '', 'UI20000006', NULL, '10', NULL, '10'),
(382, 'ADVRT', 'AD20000100', 'P', '2020-03-02 00:00:00', '0000-00-00 00:00:00', '', 'UI20000006', NULL, '10', NULL, '10'),
(383, 'ADVRT', 'AD20000101', 'P', '2020-03-02 00:00:00', '0000-00-00 00:00:00', '', 'UI20000006', NULL, '10', NULL, '10'),
(384, 'ADVRT', 'AD20000102', 'P', '2020-03-02 00:00:00', '0000-00-00 00:00:00', '', 'UI20000006', NULL, '10', NULL, '10'),
(385, 'ADVRT', 'AD20000103', 'P', '2020-03-02 00:00:00', '0000-00-00 00:00:00', '', 'UI20000006', NULL, '10', NULL, '10'),
(386, 'ADVRT', 'AD20000104', 'P', '2020-03-02 00:00:00', '0000-00-00 00:00:00', '', 'UI20000006', NULL, '10', NULL, '10'),
(387, 'ADVRT', 'AD20000105', 'P', '2020-03-02 00:00:00', '0000-00-00 00:00:00', '', 'UI20000006', NULL, '10', NULL, '10'),
(388, 'ADVRT', 'AD20000106', 'P', '2020-03-02 00:00:00', '0000-00-00 00:00:00', '', 'UI20000006', NULL, '10', NULL, '10'),
(389, 'ADVRT', 'AD20000107', 'P', '2020-03-02 00:00:00', '0000-00-00 00:00:00', '', 'UI20000006', NULL, '10', NULL, '10'),
(390, 'ADVRT', 'AD20000108', 'P', '2020-03-02 00:00:00', '0000-00-00 00:00:00', '', 'UI20000006', NULL, '10', NULL, '10'),
(391, 'ADVRT', 'AD20000109', 'P', '2020-03-02 00:00:00', '0000-00-00 00:00:00', '', 'UI20000006', NULL, '10', NULL, '10'),
(392, 'ADVRT', 'AD20000110', 'P', '2020-03-02 00:00:00', '0000-00-00 00:00:00', '', 'UI20000006', NULL, '10', NULL, '10'),
(393, 'ADVRT', 'AD20000111', 'P', '2020-03-02 00:00:00', '0000-00-00 00:00:00', '', 'UI20000006', NULL, '10', NULL, '10'),
(394, 'ADVRT', 'AD20000112', 'P', '2020-03-02 00:00:00', '0000-00-00 00:00:00', '', 'UI20000006', NULL, '10', NULL, '10'),
(395, 'ADVRT', 'AD20000113', 'P', '2020-03-02 00:00:00', '0000-00-00 00:00:00', '', 'UI20000006', NULL, '10', NULL, '10'),
(396, 'ADVRT', 'AD20000114', 'P', '2020-03-02 00:00:00', '0000-00-00 00:00:00', '', 'UI20000006', NULL, '10', NULL, '10'),
(397, 'ADVRT', 'AD20000115', 'P', '2020-03-02 00:00:00', '0000-00-00 00:00:00', '', 'UI20000006', NULL, '10', NULL, '10'),
(398, 'ADVRT', 'AD20000116', 'P', '2020-03-02 00:00:00', '0000-00-00 00:00:00', '', 'UI20000006', NULL, '10', NULL, '10'),
(399, 'ADVRT', 'AD20000117', 'P', '2020-03-02 00:00:00', '0000-00-00 00:00:00', '', 'UI20000006', NULL, '10', NULL, '10'),
(400, 'ADVRT', 'AD20000118', 'P', '2020-03-02 00:00:00', '0000-00-00 00:00:00', '', 'UI20000006', NULL, '10', NULL, '10'),
(401, 'ADVRT', 'AD20000119', 'A', '2020-03-02 00:00:00', '0000-00-00 00:00:00', '', 'UI20000006', NULL, '10', NULL, '10'),
(402, 'ADVRT', 'AD20000120', 'A', '2020-03-02 00:00:00', '2020-03-02 08:10:12', '', 'UI20000006', NULL, '10', '2020-03-02 02:40:12', '10'),
(403, 'ADVRT', 'AD20000121', 'P', '2020-03-02 00:00:00', '0000-00-00 00:00:00', '', 'UI20000006', NULL, '10', NULL, '10'),
(404, 'ADVRT', 'AD20000122', 'P', '2020-03-02 00:00:00', '0000-00-00 00:00:00', '', 'UI20000006', NULL, '10', NULL, '10'),
(405, 'ADVRT', 'AD20000123', 'P', '2020-03-02 00:00:00', '0000-00-00 00:00:00', '', 'UI20000006', NULL, '10', NULL, '10'),
(406, 'ADVRT', 'AD20000124', 'A', '2020-03-02 00:00:00', '0000-00-00 00:00:00', '', 'UI20000006', NULL, '10', NULL, '10'),
(407, 'ADVRT', 'AD20000125', 'A', '2020-03-02 00:00:00', '2020-03-02 08:07:42', '', 'UI20000006', NULL, '10', '2020-03-02 02:37:42', '10'),
(408, 'ADVRT', 'AD20000126', 'P', '2020-03-02 00:00:00', '0000-00-00 00:00:00', '', 'UI20000006', NULL, '10', NULL, '10'),
(409, 'ADVRT', 'AD20000127', 'A', '2020-03-02 00:00:00', '2020-03-02 09:14:23', '', 'UI20000006', NULL, '10', '2020-03-02 03:44:23', '10'),
(410, 'ADVRT', 'AD20000128', 'P', '2020-03-02 00:00:00', '0000-00-00 00:00:00', '', 'UI20000006', NULL, '10', NULL, '10'),
(411, 'ADVRT', 'AD20000129', 'P', '2020-03-02 00:00:00', '0000-00-00 00:00:00', '', 'UI20000006', NULL, '10', NULL, '10'),
(412, 'ADVRT', 'AD20000130', 'P', '2020-03-02 00:00:00', '0000-00-00 00:00:00', '', 'UI20000006', NULL, '10', NULL, '10'),
(413, 'ADVRT', 'AD20000131', 'P', '2020-03-02 00:00:00', '0000-00-00 00:00:00', '', 'UI20000006', NULL, '10', NULL, '10'),
(414, 'ADVRT', 'AD20000132', 'P', '2020-03-02 00:00:00', '0000-00-00 00:00:00', '', 'UI20000006', NULL, '10', NULL, '10'),
(415, 'ADVRT', 'AD20000133', 'A', '2020-03-03 00:00:00', '2020-03-03 03:26:46', '', 'UI20000006', NULL, '10', '2020-03-02 21:56:46', '10'),
(416, 'ADVRT', 'AD20000134', 'A', '2020-03-03 00:00:00', '2020-03-03 03:28:24', '', 'UI20000006', NULL, '10', '2020-03-02 21:58:24', '10'),
(417, 'ADVRT', 'AD20000135', 'A', '2020-03-03 00:00:00', '2020-03-03 03:38:08', '', 'UI20000006', NULL, '10', '2020-03-02 22:08:08', '10'),
(418, 'ADVRT', 'AD20000136', 'A', '2020-03-03 00:00:00', '2020-03-03 03:43:28', '', 'UI20000006', NULL, '10', '2020-03-02 22:13:28', '10'),
(419, 'ADVRT', 'AD20000137', 'P', '2020-03-03 00:00:00', '0000-00-00 00:00:00', '', 'UI20000006', NULL, '10', NULL, '10'),
(420, 'ADVRT', 'AD20000138', 'P', '2020-03-03 00:00:00', '0000-00-00 00:00:00', '', 'UI20000006', NULL, '10', NULL, '10'),
(421, 'ADVRT', 'AD20000139', 'P', '2020-03-03 00:00:00', '0000-00-00 00:00:00', '', 'UI20000006', NULL, '10', NULL, '10'),
(422, 'ADVRT', 'AD20000140', 'P', '2020-03-03 00:00:00', '0000-00-00 00:00:00', '', 'UI20000006', NULL, '10', NULL, '10'),
(423, 'ADVRT', 'AD20000141', 'P', '2020-03-03 00:00:00', '0000-00-00 00:00:00', '', 'UI20000006', NULL, '10', NULL, '10'),
(424, 'ADVRT', 'AD20000142', 'A', '2020-03-03 00:00:00', '2020-03-03 04:37:42', '', 'UI20000006', NULL, '10', '2020-03-02 23:07:42', '10'),
(425, 'ADVRT', 'AD20000143', 'P', '2020-03-03 00:00:00', '0000-00-00 00:00:00', '', 'UI20000006', NULL, '10', NULL, '10'),
(426, 'ADVRT', 'AD20000144', 'P', '2020-03-03 00:00:00', '0000-00-00 00:00:00', '', 'UI20000006', NULL, '10', NULL, '10'),
(427, 'ADVRT', 'AD20000145', 'P', '2020-03-03 00:00:00', '0000-00-00 00:00:00', '', 'UI20000006', NULL, '10', NULL, '10'),
(428, 'ADVRT', 'AD20000146', 'P', '2020-03-03 00:00:00', '0000-00-00 00:00:00', '', 'UI20000006', NULL, '10', NULL, '10'),
(429, 'ADVRT', 'AD20000147', 'P', '2020-03-03 00:00:00', '0000-00-00 00:00:00', '', 'UI20000006', NULL, '10', NULL, '10'),
(430, 'ADVRT', 'AD20000148', 'P', '2020-03-03 00:00:00', '0000-00-00 00:00:00', '', 'UI20000006', NULL, '10', NULL, '10'),
(431, 'ADVRT', 'AD20000149', 'P', '2020-03-03 00:00:00', '0000-00-00 00:00:00', '', 'UI20000006', NULL, '10', NULL, '10'),
(432, 'ADVRT', 'AD20000150', 'P', '2020-03-03 00:00:00', '0000-00-00 00:00:00', '', 'UI20000006', NULL, '10', NULL, '10'),
(433, 'ADVRT', 'AD20000151', 'P', '2020-03-03 00:00:00', '0000-00-00 00:00:00', '', 'UI20000006', NULL, '10', NULL, '10'),
(434, 'ADVRT', 'AD20000152', 'P', '2020-03-03 00:00:00', '0000-00-00 00:00:00', '', 'UI20000006', NULL, '10', NULL, '10'),
(435, 'ADVRT', 'AD20000153', 'P', '2020-03-03 00:00:00', '0000-00-00 00:00:00', '', 'UI20000006', NULL, '10', NULL, '10'),
(436, 'ADVRT', 'AD20000154', 'P', '2020-03-03 00:00:00', '0000-00-00 00:00:00', '', 'UI20000006', NULL, '10', NULL, '10'),
(437, 'ADVRT', 'AD20000155', 'P', '2020-03-03 00:00:00', '0000-00-00 00:00:00', '', 'UI20000006', NULL, '10', NULL, '10'),
(438, 'ADVRT', 'AD20000156', 'P', '2020-03-03 00:00:00', '0000-00-00 00:00:00', '', 'UI20000006', NULL, '10', NULL, '10'),
(439, 'ADVRT', 'AD20000157', 'P', '2020-03-03 00:00:00', '0000-00-00 00:00:00', '', 'UI20000006', NULL, '10', NULL, '10'),
(440, 'ADVRT', 'AD20000158', 'P', '2020-03-03 00:00:00', '0000-00-00 00:00:00', '', 'UI20000006', NULL, '10', NULL, '10'),
(441, 'ADVRT', 'AD20000159', 'P', '2020-03-03 00:00:00', '0000-00-00 00:00:00', '', 'UI20000006', NULL, '10', NULL, '10'),
(442, 'ADVRT', 'AD20000160', 'P', '2020-03-03 00:00:00', '0000-00-00 00:00:00', '', 'UI20000006', NULL, '10', NULL, '10'),
(443, 'ADVRT', 'AD20000161', 'P', '2020-03-03 00:00:00', '0000-00-00 00:00:00', '', 'UI20000006', NULL, '10', NULL, '10'),
(444, 'ADVRT', 'AD20000162', 'P', '2020-03-03 00:00:00', '0000-00-00 00:00:00', '', 'UI20000006', NULL, '10', NULL, '10'),
(445, 'ADVRT', 'AD20000163', 'P', '2020-03-03 00:00:00', '0000-00-00 00:00:00', '', 'UI20000006', NULL, '10', NULL, '10'),
(446, 'ADVRT', 'AD20000164', 'A', '2020-03-03 00:00:00', '2020-03-03 06:48:51', '', 'UI20000006', NULL, '10', '2020-03-03 01:18:51', '10'),
(447, 'ADVRT', 'AD20000165', 'P', '2020-03-03 00:00:00', '0000-00-00 00:00:00', '', 'UI20000006', NULL, '10', NULL, '10'),
(448, 'ADVRT', 'AD20000166', 'P', '2020-03-03 00:00:00', '0000-00-00 00:00:00', '', 'UI20000006', NULL, '10', NULL, '10'),
(449, 'ADVRT', 'AD20000167', 'P', '2020-03-03 00:00:00', '0000-00-00 00:00:00', '', 'UI20000006', NULL, '10', NULL, '10'),
(450, 'ADVRT', 'AD20000168', 'P', '2020-03-03 00:00:00', '0000-00-00 00:00:00', '', 'UI20000006', NULL, '10', NULL, '10'),
(451, 'ADVRT', 'AD20000169', 'P', '2020-03-03 00:00:00', '0000-00-00 00:00:00', '', 'UI20000006', NULL, '10', NULL, '10'),
(452, 'ADVRT', 'AD20000170', 'P', '2020-03-03 00:00:00', '0000-00-00 00:00:00', '', 'UI20000006', NULL, '10', NULL, '10'),
(453, 'ADVRT', 'AD20000171', 'P', '2020-03-03 00:00:00', '0000-00-00 00:00:00', '', 'UI20000006', NULL, '10', NULL, '10'),
(454, 'ADVRT', 'AD20000172', 'P', '2020-03-03 00:00:00', '0000-00-00 00:00:00', '', 'UI20000006', NULL, '10', NULL, '10'),
(455, 'ADVRT', 'AD20000173', 'P', '2020-03-03 00:00:00', '0000-00-00 00:00:00', '', 'UI20000006', NULL, '10', NULL, '10'),
(456, 'ADVRT', 'AD20000174', 'P', '2020-03-03 00:00:00', '0000-00-00 00:00:00', '', 'UI20000006', NULL, '10', NULL, '10'),
(457, 'ADVRT', 'AD20000175', 'P', '2020-03-03 00:00:00', '0000-00-00 00:00:00', '', 'UI20000006', NULL, '10', NULL, '10'),
(458, 'ADVRT', 'AD20000176', 'P', '2020-03-03 00:00:00', '0000-00-00 00:00:00', '', 'UI20000006', NULL, '10', NULL, '10'),
(459, 'ADVRT', 'AD20000177', 'P', '2020-03-03 00:00:00', '0000-00-00 00:00:00', '', 'UI20000006', NULL, '10', NULL, '10'),
(460, 'ADVRT', 'AD20000178', 'P', '2020-03-03 00:00:00', '0000-00-00 00:00:00', '', 'UI20000006', NULL, '10', NULL, '10'),
(461, 'ADVRT', 'AD20000179', 'P', '2020-03-03 00:00:00', '0000-00-00 00:00:00', '', 'UI20000006', NULL, '10', NULL, '10'),
(462, 'ADVRT', 'AD20000180', 'P', '2020-03-03 00:00:00', '0000-00-00 00:00:00', '', 'UI20000006', NULL, '10', NULL, '10'),
(463, 'ADVRT', 'AD20000181', 'P', '2020-03-03 00:00:00', '0000-00-00 00:00:00', '', 'UI20000006', NULL, '10', NULL, '10'),
(464, 'ADVRT', 'AD20000182', 'P', '2020-03-03 00:00:00', '0000-00-00 00:00:00', '', 'UI20000006', NULL, '10', NULL, '10'),
(465, 'ADVRT', 'AD20000183', 'P', '2020-03-03 00:00:00', '0000-00-00 00:00:00', '', 'UI20000006', NULL, '10', NULL, '10'),
(466, 'ADVRT', 'AD20000184', 'P', '2020-03-03 00:00:00', '0000-00-00 00:00:00', '', 'UI20000006', NULL, '10', NULL, '10'),
(467, 'ADVRT', 'AD20000185', 'P', '2020-03-03 00:00:00', '0000-00-00 00:00:00', '', 'UI20000006', NULL, '10', NULL, '10'),
(468, 'ADVRT', 'AD20000186', 'P', '2020-03-03 00:00:00', '0000-00-00 00:00:00', '', 'UI20000006', NULL, '10', NULL, '10'),
(469, 'ADVRT', 'AD20000187', 'P', '2020-03-03 00:00:00', '0000-00-00 00:00:00', '', 'UI20000006', NULL, '10', NULL, '10'),
(470, 'ADVRT', 'AD20000188', 'P', '2020-03-03 00:00:00', '0000-00-00 00:00:00', '', 'UI20000006', NULL, '10', NULL, '10'),
(471, 'ADVRT', 'AD20000189', 'P', '2020-03-03 00:00:00', '0000-00-00 00:00:00', '', 'UI20000006', NULL, '10', NULL, '10'),
(472, 'ADVRT', 'AD20000190', 'A', '2020-03-03 00:00:00', '2020-03-03 08:56:20', '', 'UI20000006', NULL, '10', '2020-03-03 03:26:20', '10'),
(473, 'ADVRT', 'AD20000191', 'P', '2020-03-03 00:00:00', '0000-00-00 00:00:00', '', 'UI20000006', NULL, '10', NULL, '10'),
(474, 'ADVRT', 'AD20000192', 'P', '2020-03-03 00:00:00', '0000-00-00 00:00:00', '', 'UI20000006', NULL, '10', NULL, '10'),
(475, 'ADVRT', 'AD20000193', 'A', '2020-03-03 00:00:00', '2020-03-03 09:04:04', '', 'UI20000006', NULL, '10', '2020-03-03 03:34:04', '10'),
(476, 'ADVRT', 'AD20000194', 'A', '2020-03-03 00:00:00', '2020-03-03 09:08:14', '', 'UI20000006', NULL, '10', '2020-03-03 03:38:14', '10'),
(477, 'ADVRT', 'AD20000195', 'P', '2020-03-03 00:00:00', '0000-00-00 00:00:00', '', 'UI20000006', NULL, '10', NULL, '10'),
(478, 'ADVRT', 'AD20000196', 'P', '2020-03-04 00:00:00', '0000-00-00 00:00:00', '', 'UI20000006', NULL, '10', NULL, '10'),
(479, 'ADVRT', 'AD20000197', 'P', '2020-03-04 00:00:00', '0000-00-00 00:00:00', '', 'UI20000006', NULL, '10', NULL, '10'),
(480, 'ADVRT', 'AD20000198', 'P', '2020-03-04 00:00:00', '0000-00-00 00:00:00', '', 'UI20000006', NULL, '10', NULL, '10'),
(481, 'ADVRT', 'AD20000199', 'P', '2020-03-04 00:00:00', '0000-00-00 00:00:00', '', 'UI20000006', NULL, '10', NULL, '10'),
(482, 'ADVRT', 'AD20000200', 'P', '2020-03-04 00:00:00', '0000-00-00 00:00:00', '', 'UI20000006', NULL, '10', NULL, '10'),
(483, 'ADVRT', 'AD20000201', 'P', '2020-03-04 00:00:00', '0000-00-00 00:00:00', '', 'UI20000006', NULL, '10', NULL, '10'),
(484, 'ADVRT', 'AD20000202', 'A', '2020-03-04 00:00:00', '0000-00-00 00:00:00', '', 'UI20000006', NULL, '10', NULL, '10'),
(485, 'ADVRT', 'AD20000203', 'A', '2020-03-05 00:00:00', '0000-00-00 00:00:00', '', 'UI20000006', NULL, '10', NULL, '10'),
(486, 'ADVRT', 'AD20000204', 'A', '2020-03-05 00:00:00', '2020-03-05 05:19:04', '', 'UI20000006', NULL, '10', '2020-03-04 23:49:04', '10'),
(487, 'ADVRT', 'AD20000205', 'A', '2020-03-05 00:00:00', '0000-00-00 00:00:00', '', 'UI20000006', NULL, '10', NULL, '10'),
(488, 'ADVRT', 'AD20000206', 'P', '2020-03-05 00:00:00', '0000-00-00 00:00:00', '', 'UI20000006', NULL, '10', NULL, '10'),
(489, 'ADVRT', 'AD20000207', 'P', '2020-03-05 00:00:00', '0000-00-00 00:00:00', '', 'UI20000006', NULL, '10', NULL, '10'),
(490, 'ADVRT', 'AD20000208', 'A', '2020-03-05 00:00:00', '0000-00-00 00:00:00', '', 'UI20000002', NULL, '10', NULL, '10'),
(491, 'ADVRT', 'AD20000209', 'P', '2020-03-05 00:00:00', '0000-00-00 00:00:00', '', 'UI20000006', NULL, '10', NULL, '10'),
(492, 'ADVRT', 'AD20000210', 'P', '2020-03-05 00:00:00', '0000-00-00 00:00:00', '', 'UI20000006', NULL, '10', NULL, '10'),
(493, 'ADVRT', 'AD20000211', 'P', '2020-03-05 00:00:00', '0000-00-00 00:00:00', '', 'UI20000006', NULL, '10', NULL, '10'),
(494, 'ADVRT', 'AD20000212', 'P', '2020-03-06 00:00:00', '0000-00-00 00:00:00', '', 'UI20000006', NULL, '10', NULL, '10'),
(495, 'ADVRT', 'AD20000213', 'P', '2020-03-06 00:00:00', '0000-00-00 00:00:00', '', 'UI20000002', NULL, '10', NULL, '10'),
(496, 'ADVRT', 'AD20000214', 'P', '2020-03-06 00:00:00', '0000-00-00 00:00:00', '', 'UI20000002', NULL, '10', NULL, '10'),
(497, 'ADVRT', 'AD20000215', 'A', '2020-03-06 00:00:00', '2020-03-06 03:34:43', '', 'UI20000006', NULL, '10', '2020-03-05 22:04:43', '10'),
(498, 'ADVRT', 'AD20000216', 'P', '2020-03-06 00:00:00', '0000-00-00 00:00:00', '', 'UI20000006', NULL, '10', NULL, '10'),
(499, 'ADVRT', 'AD20000217', 'P', '2020-03-06 00:00:00', '0000-00-00 00:00:00', '', 'UI20000002', NULL, '10', NULL, '10'),
(500, 'ADVRT', 'AD20000218', 'P', '2020-03-06 00:00:00', '0000-00-00 00:00:00', '', 'UI20000002', NULL, '10', NULL, '10'),
(501, 'ADVRT', 'AD20000219', 'P', '2020-03-06 00:00:00', '0000-00-00 00:00:00', '', 'UI20000002', NULL, '10', NULL, '10'),
(502, 'ADVRT', 'AD20000220', 'P', '2020-03-06 00:00:00', '0000-00-00 00:00:00', '', 'UI20000002', NULL, '10', NULL, '10'),
(503, 'ADVRT', 'AD20000221', 'A', '2020-03-06 00:00:00', '0000-00-00 00:00:00', '', 'UI20000006', NULL, '10', NULL, '10'),
(504, 'ADVRT', 'AD20000222', 'A', '2020-03-06 00:00:00', '0000-00-00 00:00:00', '', 'UI20000006', NULL, '10', NULL, '10'),
(505, 'ADVRT', 'AD20000223', 'A', '2020-03-13 00:00:00', '2020-04-20 06:48:40', '', 'UI20000010', NULL, 'UI20000010', '2020-04-20 01:18:40', 'UI20000010'),
(506, 'REG', '20000010', 'A', '2020-03-13 00:00:00', '2020-04-20 06:48:40', '', 'UI20000010', NULL, 'UI20000010', '2020-04-20 01:18:40', 'UI20000010'),
(507, 'ADVRT', 'AD20000224', 'P', '2020-03-19 00:00:00', '0000-00-00 00:00:00', '', 'UI20000002', NULL, '10', NULL, '10'),
(508, 'ADVRT', 'AD20000225', 'P', '2020-03-19 00:00:00', '0000-00-00 00:00:00', '', 'UI20000002', NULL, '10', NULL, '10'),
(509, 'ADVRT', 'AD20000226', 'P', '2020-03-19 00:00:00', '0000-00-00 00:00:00', '', 'UI20000002', NULL, '10', NULL, '10'),
(510, 'ADVRT', 'AD20000227', 'A', '2020-03-19 00:00:00', '2020-05-11 05:20:39', '', 'UI20000002', NULL, '10', '2020-05-10 23:50:39', '10'),
(511, 'ADVRT', 'AD20000228', 'P', '2020-04-20 00:00:00', '0000-00-00 00:00:00', '', 'UI20000010', NULL, '10', NULL, '10'),
(512, 'ADVRT', 'AD20000229', 'P', '2020-04-20 00:00:00', '0000-00-00 00:00:00', '', 'UI20000010', NULL, '10', NULL, '10'),
(513, 'ADVRT', 'AD20000230', 'P', '2020-04-20 00:00:00', '0000-00-00 00:00:00', '', 'UI20000010', NULL, '10', NULL, '10'),
(514, 'ADVRT', 'AD20000231', 'P', '2020-04-20 00:00:00', '0000-00-00 00:00:00', '', 'UI20000010', NULL, '10', NULL, '10'),
(515, 'ADVRT', 'AD20000232', 'P', '2020-04-20 00:00:00', '0000-00-00 00:00:00', '', 'UI20000010', NULL, '10', NULL, '10'),
(516, 'ADVRT', 'AD20000233', 'P', '2020-04-20 00:00:00', '0000-00-00 00:00:00', '', 'UI20000010', NULL, '10', NULL, '10'),
(517, 'ADVRT', 'AD20000234', 'P', '2020-04-20 00:00:00', '0000-00-00 00:00:00', '', 'UI20000010', NULL, '10', NULL, '10'),
(518, 'ADVRT', 'AD20000235', 'P', '2020-04-20 00:00:00', '0000-00-00 00:00:00', '', 'UI20000010', NULL, '10', NULL, '10'),
(519, 'ADVRT', 'AD20000236', 'P', '2020-04-20 00:00:00', '0000-00-00 00:00:00', '', 'UI20000010', NULL, '10', NULL, '10'),
(520, 'ADVRT', 'AD20000237', 'P', '2020-04-20 00:00:00', '0000-00-00 00:00:00', '', 'UI20000010', NULL, '10', NULL, '10'),
(521, 'ADVRT', 'AD20000238', 'A', '2020-04-24 00:00:00', '2020-04-24 10:38:02', '', 'UI20000010', NULL, '10', '2020-04-24 05:08:02', '10'),
(522, 'ADVRT', 'AD20000239', 'A', '2020-04-24 00:00:00', '2020-04-24 11:12:25', '', 'UI20000010', NULL, '10', '2020-04-24 05:42:25', '10'),
(523, 'ADVRT', 'AD20000240', 'A', '2020-04-24 00:00:00', '2020-04-27 08:23:56', '', 'UI20000010', NULL, '10', '2020-04-27 02:53:56', '10'),
(524, 'ADVRT', 'AD20000241', 'A', '2020-04-27 00:00:00', '2020-04-27 09:19:43', '', 'UI20000010', NULL, '10', '2020-04-27 03:49:43', '10'),
(525, 'ADVRT', 'AD20000242', 'A', '2020-04-27 00:00:00', '2020-04-27 11:56:31', '', 'UI20000010', NULL, '10', '2020-04-27 06:26:31', '10'),
(526, 'ADVRT', 'AD20000243', 'A', '2020-04-27 00:00:00', '2020-04-27 11:40:44', '', 'UI20000011', NULL, 'UI20000011', '2020-04-27 06:10:44', 'UI20000011'),
(527, 'REG', '20000011', 'A', '2020-04-27 00:00:00', '2020-04-27 11:40:44', '', 'UI20000011', NULL, 'UI20000011', '2020-04-27 06:10:44', 'UI20000011');

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

--
-- Table structure for table `t11_01messages_sent`
--

CREATE TABLE `t11_01messages_sent` (
  `rowno` int(11) NOT NULL,
  `msg_code` varchar(20) COLLATE utf8_unicode_ci NOT NULL,
  `msg_reference` varchar(20) COLLATE utf8_unicode_ci NOT NULL,
  `sent_to_email` varchar(100) COLLATE utf8_unicode_ci NOT NULL,
  `sent_to_phone` varchar(100) COLLATE utf8_unicode_ci NOT NULL,
  `sntmsg_from` varchar(100) COLLATE utf8_unicode_ci NOT NULL,
  `regno` varchar(10) COLLATE utf8_unicode_ci NOT NULL,
  `sntmsg_code` varchar(10) COLLATE utf8_unicode_ci NOT NULL,
  `sntmsg_contents` text COLLATE utf8_unicode_ci NOT NULL,
  `sntmsg_subject` varchar(100) COLLATE utf8_unicode_ci NOT NULL,
  `sntmsg_footer` varchar(200) COLLATE utf8_unicode_ci NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `created_by` varchar(10) COLLATE utf8_unicode_ci NOT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `edited_by` varchar(10) COLLATE utf8_unicode_ci NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

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

--
-- Table structure for table `t12_00images`
--

CREATE TABLE `t12_00images` (
  `rowno` int(11) NOT NULL,
  `advert_id` varchar(10) COLLATE utf8mb4_unicode_ci NOT NULL,
  `cat_rowno` int(11) NOT NULL,
  `image_path` mediumtext COLLATE utf8mb4_unicode_ci NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `t12_00images`
--

INSERT INTO `t12_00images` (`rowno`, `advert_id`, `cat_rowno`, `image_path`) VALUES
(1, 'AD20000119', 471, '20000006/AD20000119/688_20200302073911.jpg'),
(2, 'AD20000124', 491, '20000006/AD20000124/656_20200302074751.jpg'),
(3, 'AD20000119', 471, '20000006/AD20000119/689_20200302073911.jpg'),
(4, 'AD20000124', 491, '20000006/AD20000124/657_20200302074751.jpg'),
(5, 'AD20000124', 491, '20000006/AD20000124/658_20200302074751.jpg'),
(6, 'AD20000127', 493, '20000006/AD20000127/870_20200302091341.png'),
(7, 'AD20000127', 493, '20000006/AD20000127/946_20200302091342.png'),
(8, 'AD20000127', 493, '20000006/AD20000127/75_20200302091342.png'),
(9, 'AD20000127', 493, '20000006/AD20000127/738_20200302091342.png'),
(10, 'AD20000134', 500, '20000006/AD20000134/112_20200303032803.png'),
(11, 'AD20000134', 500, '20000006/AD20000134/969_20200303032803.png'),
(12, 'AD20000134', 500, '20000006/AD20000134/949_20200303032803.png'),
(13, 'AD20000134', 500, '20000006/AD20000134/389_20200303032803.png'),
(14, 'AD20000135', 501, '20000006/AD20000135/990_20200303033750.png'),
(15, 'AD20000135', 501, '20000006/AD20000135/846_20200303033750.png'),
(16, 'AD20000135', 501, '20000006/AD20000135/737_20200303033750.png'),
(17, 'AD20000135', 501, '20000006/AD20000135/753_20200303033750.png'),
(18, 'AD20000138', 504, '20000006/AD20000138/634_20200303035755.png'),
(19, 'AD20000138', 504, '20000006/AD20000138/459_20200303035755.png'),
(20, 'AD20000138', 504, '20000006/AD20000138/70_20200303035755.png'),
(21, 'AD20000138', 504, '20000006/AD20000138/372_20200303035755.png'),
(22, 'AD20000142', 507, '20000006/AD20000142/934_20200303043350.jpg'),
(23, 'AD20000142', 507, '20000006/AD20000142/947_20200303043350.jpg'),
(24, 'AD20000142', 507, '20000006/AD20000142/264_20200303043350.jpg'),
(25, 'AD20000142', 507, '20000006/AD20000142/125_20200303043351.jpg'),
(26, 'AD20000149', 514, '20000006/AD20000149/444_20200303052526.jpg'),
(27, 'AD20000152', 517, '20000006/AD20000152/868_20200303053900.jpg'),
(28, 'AD20000160', 525, '20000006/AD20000160/825_20200303063554.jpg'),
(29, 'AD20000161', 526, '20000006/AD20000161/421_20200303063655.jpg'),
(30, 'AD20000162', 527, '20000006/AD20000162/783_20200303063841.jpg'),
(31, 'AD20000163', 528, '20000006/AD20000163/960_20200303064523.jpg'),
(32, 'AD20000164', 529, '20000006/AD20000164/673_20200303064753.jpg'),
(33, 'AD20000190', 554, '20000006/AD20000190/245_20200303085534.jpg'),
(34, 'AD20000190', 554, '20000006/AD20000190/992_20200303085534.jpg'),
(35, 'AD20000193', 557, '20000006/AD20000193/371_20200303090327.jpg'),
(36, 'AD20000193', 557, '20000006/AD20000193/376_20200303090327.jpg'),
(37, 'AD20000193', 557, '20000006/AD20000193/140_20200303090327.jpg'),
(38, 'AD20000194', 558, '20000006/AD20000194/15_20200303090741.jpg'),
(39, 'AD20000194', 558, '20000006/AD20000194/537_20200303090741.jpg'),
(40, 'AD20000194', 558, '20000006/AD20000194/959_20200303090741.jpg'),
(41, 'AD20000194', 558, '20000006/AD20000194/265_20200303090741.jpg'),
(42, 'AD20000194', 558, '20000006/AD20000194/864_20200303090741.jpg'),
(43, 'AD20000195', 559, '20000006/AD20000195/186_20200303091234.jpg'),
(44, 'AD20000195', 559, '20000006/AD20000195/400_20200303091234.jpg'),
(45, 'AD20000202', 17, '20000006/AD20000202/646_20200304104834.jpg'),
(46, 'AD20000202', 17, '20000006/AD20000202/175_20200304104834.jpg'),
(47, 'AD20000202', 17, '20000006/AD20000202/496_20200304104834.jpg'),
(48, 'AD20000204', 561, '20000006/AD20000204/76_20200305051730.jpg'),
(49, 'AD20000219', 185, '20000002/AD20000219/603_20200306053829.jpg'),
(50, 'AD20000219', 185, '20000002/AD20000219/373_20200306053829.jpg'),
(51, 'AD20000219', 185, '20000002/AD20000219/223_20200306053829.jpg'),
(52, 'AD20000220', 186, '20000002/AD20000220/12_20200306055145.jpg'),
(53, 'AD20000220', 186, '20000002/AD20000220/487_20200306055146.jpg'),
(54, 'AD20000220', 186, '20000002/AD20000220/156_20200306055146.jpg'),
(55, 'AD20000222', 563, '20000006/AD20000222/919_20200306114318.jpg'),
(56, 'AD20000222', 563, '20000006/AD20000222/745_20200306114318.jpg'),
(57, 'AD20000222', 563, '20000006/AD20000222/520_20200306114318.jpg'),
(58, 'AD20000222', 563, '20000006/AD20000222/767_20200306114318.jpg'),
(59, 'AD20000222', 563, '20000006/AD20000222/15_20200306114318.jpg'),
(60, 'AD20000229', 189, '20000010/AD20000229/466_20200420103652.jpg'),
(61, 'AD20000229', 189, '20000010/AD20000229/725_20200420103652.jpg'),
(62, 'AD20000229', 189, '20000010/AD20000229/200_20200420103652.jpg'),
(63, 'AD20000238', 564, '20000010/AD20000238/247_20200424101208.jpg'),
(64, 'AD20000238', 564, '20000010/AD20000238/673_20200424101208.jpg'),
(65, 'AD20000238', 564, '20000010/AD20000238/51_20200424101208.jpg'),
(66, 'AD20000238', 564, '20000010/AD20000238/207_20200424101208.jpg'),
(67, 'AD20000238', 565, '20000010/AD20000238/113_20200424103337.jpg'),
(68, 'AD20000238', 565, '20000010/AD20000238/703_20200424103337.jpg'),
(69, 'AD20000238', 565, '20000010/AD20000238/890_20200424103337.jpg'),
(70, 'AD20000238', 565, '20000010/AD20000238/620_20200424103337.jpg'),
(71, 'AD20000239', 18, '20000010/AD20000239/420_20200424111050.jpg'),
(72, 'AD20000239', 18, '20000010/AD20000239/748_20200424111050.jpg'),
(73, 'AD20000239', 18, '20000010/AD20000239/847_20200424111050.jpg'),
(74, 'AD20000239', 19, '20000010/AD20000239/978_20200424111128.jpg'),
(75, 'AD20000239', 19, '20000010/AD20000239/841_20200424111128.jpg'),
(76, 'AD20000239', 19, '20000010/AD20000239/213_20200424111128.jpg'),
(77, 'AD20000240', 162, '20000010/AD20000240/18_20200424115131.jpg'),
(78, 'AD20000240', 162, '20000010/AD20000240/295_20200424115131.jpg'),
(79, 'AD20000240', 162, '20000010/AD20000240/155_20200424115131.jpg'),
(84, 'AD20000241', 484, '20000010/AD20000241/147_20200427084726.jpg'),
(85, 'AD20000241', 484, '20000010/AD20000241/883_20200427084726.jpg'),
(86, 'AD20000242', 190, '20000010/AD20000242/753_20200427112346.jpg'),
(87, 'AD20000242', 190, '20000010/AD20000242/391_20200427112346.jpg'),
(88, 'AD20000242', 190, '20000010/AD20000242/621_20200427112347.jpg');

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

--
-- Table structure for table `u001_00user_roles`
--

CREATE TABLE `u001_00user_roles` (
  `role_id` varchar(10) COLLATE utf8_unicode_ci NOT NULL,
  `role_desc` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
  `is_Active` char(1) COLLATE utf8_unicode_ci NOT NULL DEFAULT '1' COMMENT '1 - Active, 0 - inactive, default:1'
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `u001_00user_roles`
--

INSERT INTO `u001_00user_roles` (`role_id`, `role_desc`, `is_Active`) VALUES
('ADMIN', 'Admin', '1'),
('USER', 'User', '1');

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

--
-- Table structure for table `u001_02users`
--

CREATE TABLE `u001_02users` (
  `user_id` varchar(10) COLLATE utf8_unicode_ci NOT NULL,
  `regno` varchar(10) COLLATE utf8_unicode_ci NOT NULL,
  `role_id` varchar(10) COLLATE utf8_unicode_ci NOT NULL,
  `email` varchar(100) COLLATE utf8_unicode_ci NOT NULL,
  `mobile` varchar(12) COLLATE utf8_unicode_ci NOT NULL,
  `password` varchar(500) COLLATE utf8_unicode_ci NOT NULL,
  `is_active` char(1) COLLATE utf8_unicode_ci NOT NULL DEFAULT '1' COMMENT '1 - Active, 0 - inactive, default:1',
  `login_cnt` int(11) NOT NULL,
  `lst_pwd_chng_date` datetime DEFAULT NULL,
  `last_login_date` datetime DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `created_by` varchar(10) COLLATE utf8_unicode_ci NOT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `edited_by` varchar(10) COLLATE utf8_unicode_ci NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `u001_02users`
--

INSERT INTO `u001_02users` (`user_id`, `regno`, `role_id`, `email`, `mobile`, `password`, `is_active`, `login_cnt`, `lst_pwd_chng_date`, `last_login_date`, `created_at`, `created_by`, `updated_at`, `edited_by`) VALUES
('UI19000001', '', 'ADMIN', 'admin@gmail.com', '', '$2y$10$SyBXSubxd9vpC5v89FkkKuj05JdH9z7JlnYFstO2uflsQGE6TGt3S', '1', 0, NULL, NULL, NULL, '', NULL, ''),
('UI19000002', '', 'ADMIN', 'ccadmin@gmail.com', '', '$2y$10$vvV98h9ivtwJlHngNT2Dwu8rd6KZ7vcMSn36yMsxA3dcnc19GClri', '1', 0, NULL, NULL, NULL, '', NULL, ''),
('UI20000001', '20000001', 'USER', 'samanp@gmail.com', '0710147030', '$2y$10$GkuQEjT1G9L1eML08u80Buoc7BN31/RDoLFAgFVHGCLkcFXD0XnvK', '1', 0, NULL, NULL, NULL, '10', '2020-02-14 00:08:19', '10'),
('UI20000002', '20000002', 'USER', 'thasni@gmail.com', '0774563215', '$2y$10$rGsI0Ev8TFS3EwyOz5/Bc.FhcUUb5ymMPF5Xf4Mmmz6XDiZJ/ePcO', '1', 0, NULL, NULL, NULL, '10', '2020-02-14 01:13:08', '10'),
('UI20000003', '20000003', 'USER', 'powl@gmail.com', '0778911186', '$2y$10$N1Rr0jx48DEIb1HLhdAebu4dmNV9i5RnvtqERULW2gReRFKcrhGsO', '1', 0, NULL, NULL, NULL, 'UI20000003', '2020-02-16 19:48:06', 'UI20000003'),
('UI20000005', '20000005', 'USER', 'dperera@gmail.com', '0779105471', '$2y$10$HddJ4pl5RN.sTDKc7dD5keeUiClTwLtPjGxck4LfqNDJWjvQWeCOW', '0', 0, NULL, NULL, NULL, 'UI20000005', NULL, 'UI20000005'),
('UI20000006', '20000006', 'USER', 'tasneems@gmail.com', '0774065294', '$2y$10$tqQxDCuJY4Incd9YcJhzu.2sPi/Q5fVWnUpqosbTlK.vHhlpgICqW', '1', 0, NULL, NULL, NULL, 'UI20000006', '2020-02-17 03:25:41', 'UI20000006'),
('UI20000007', '20000007', 'USER', 'Abc@gmail.com', '0772242919', '$2y$10$McAEdyPjbqqAeS0Wh7/L8eNXsMD2YAZ1J0QPH.Xycl4G.CbTNrn1u', '1', 0, NULL, NULL, NULL, 'UI20000007', '2020-02-24 05:59:37', 'UI20000007'),
('UI20000008', '20000008', 'USER', 'sama94@gmail.com', '0777735612', '$2y$10$e6nXAflv1tnRyTfI.A9ZSu.nurVW7965V1eApxSvmmg2Z8.9WAkIC', '0', 0, NULL, NULL, '2020-02-24 22:57:44', '', '2020-02-24 22:57:44', ''),
('UI20000009', '20000009', 'USER', 'ccmkt2019@gmail.com', '0772375571', '$2y$10$RdTmkQ4pv.UPbLeGuWthVujwboeJOY6PPMhXpxmETxKzvvqDJvNqG', '1', 0, NULL, NULL, NULL, 'UI20000009', '2020-02-27 06:24:03', 'UI20000009'),
('UI20000010', '20000010', 'USER', 'G@gmail.com', '0771234567', '$2y$10$xNo/ljr6C1a4VpgNL2srAeR3txSLTEx2M9ma5goC8qWQGmMu7RfuK', '1', 0, NULL, NULL, NULL, 'UI20000010', '2020-04-20 01:18:41', 'UI20000010'),
('UI20000011', '20000011', 'USER', 'chathu65dft@gmail.com', '0777635612', '$2y$10$mXGG4kOZSJYKwT8VUSHAnesDxpMzYUh.rspqu2aEn2h3Yz5ui8/4u', '1', 0, NULL, NULL, NULL, 'UI20000011', '2020-04-27 06:10:44', 'UI20000011');

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

--
-- Table structure for table `u001_02users_20191028`
--

CREATE TABLE `u001_02users_20191028` (
  `user_id` varchar(10) COLLATE utf8_unicode_ci NOT NULL,
  `regno` varchar(10) COLLATE utf8_unicode_ci NOT NULL,
  `role_id` varchar(10) COLLATE utf8_unicode_ci NOT NULL,
  `email` varchar(100) COLLATE utf8_unicode_ci NOT NULL,
  `password` varchar(500) COLLATE utf8_unicode_ci NOT NULL,
  `is_active` char(1) COLLATE utf8_unicode_ci NOT NULL DEFAULT '1' COMMENT '1 - Active, 0 - inactive, default:1',
  `login_cnt` int(11) NOT NULL,
  `lst_pwd_chng_date` datetime NOT NULL,
  `last_login_date` datetime NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `created_by` varchar(10) COLLATE utf8_unicode_ci NOT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `edited_by` varchar(10) COLLATE utf8_unicode_ci NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `u001_02users_20191028`
--

INSERT INTO `u001_02users_20191028` (`user_id`, `regno`, `role_id`, `email`, `password`, `is_active`, `login_cnt`, `lst_pwd_chng_date`, `last_login_date`, `created_at`, `created_by`, `updated_at`, `edited_by`) VALUES
('U19001', '', 'ADMIN', 'test@email.com', '$2y$10$Za8DfnN.6qgJ.wfz9lpO8.NysYL/h4kIwB75VTezz0M46HtlQe47.', '1', 1, '2019-10-01 00:00:00', '2019-10-01 00:00:00', NULL, '', NULL, ''),
('U19002', '19000014', 'USER', 'testuser@email.com', '$2y$10$Za8DfnN.6qgJ.wfz9lpO8.NysYL/h4kIwB75VTezz0M46HtlQe47.', '1', 1, '2019-10-01 00:00:00', '2019-10-01 00:00:00', NULL, '', NULL, ''),
('U19003', '19000011', 'USER', 'test123@email.com', '$2y$10$J5d36Rfq7PNct08KlR0Za.EGCjTZQD/0U9mofkbvmh1WVmYv/sMAS', '1', 1, '2019-10-01 00:00:00', '2019-10-01 00:00:00', NULL, '', NULL, ''),
('U19004', '', 'ADMIN', 'testadmin@email.com', '$2y$10$J5d36Rfq7PNct08KlR0Za.EGCjTZQD/0U9mofkbvmh1WVmYv/sMAS', '1', 1, '2019-10-01 00:00:00', '2019-10-01 00:00:00', NULL, '', NULL, '');

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

--
-- Table structure for table `u002_00classes`
--

CREATE TABLE `u002_00classes` (
  `class_id` varchar(10) COLLATE utf8_unicode_ci NOT NULL,
  `cls_option_des` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
  `class_name` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
  `is_active` char(1) COLLATE utf8_unicode_ci NOT NULL DEFAULT '0' COMMENT '1 - Active, 0 - inactive',
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `u002_00classes`
--

INSERT INTO `u002_00classes` (`class_id`, `cls_option_des`, `class_name`, `is_active`, `created_at`, `updated_at`) VALUES
('ADCATL', 'Advertistment Cattle  Controller', 'AdvertCattleController', '1', '2019-11-04 05:48:00', NULL),
('ADEQU', 'Advertistment Equipment Controller', 'AdvertEquipController', '1', '2019-11-05 03:04:00', NULL),
('ADFEEDPUR', 'Advertistment Silage Fodder Purchase Controller', 'AdvertSilFoddPurchController', '1', '2019-11-18 10:45:00', NULL),
('ADFEEDSALE', 'Advertistment Silage Fodder Sale Controller', 'AdvertSilFoddSaleController', '1', '2019-11-05 06:22:00', NULL),
('ADMINADVRT', 'Admin Advertisements Controller', 'AdminAdvertisementsController', '1', '2019-12-04 05:48:00', NULL),
('ADMINRGUSR', 'Admin Register User Controller', 'AdminRegisterController', '1', '2019-12-04 08:11:00', NULL),
('ADVERT', 'Advertisements Controller', 'AdvertisementsController', '1', '2019-10-07 05:48:00', NULL),
('AIBOOK', 'AI Booking Controller', 'AIBookingController', '1', '2020-01-16 10:41:00', NULL),
('AIFEEDBACK', 'AI FeedbackController', 'AIFeedbackController', '1', '2020-01-22 09:38:00', NULL),
('CRON', 'Cron Controller', 'CronController', '1', '2019-12-23 06:27:00', NULL),
('DISTRICT', 'District Controller', 'DistrictController', '1', '2019-10-09 10:20:00', NULL),
('LOGAPI', 'Login API Controller', 'LoginApiController', '1', '2019-10-07 05:03:00', NULL),
('LOGWEB', 'Login WEB Controller', 'LoginWebController', '1', '2019-10-07 05:48:00', NULL),
('PDCHECK', 'PD Check Controller', 'PDCheckController', '1', '2020-01-23 07:54:00', NULL),
('PROFILE', 'Profile Controller', 'ProfileController', '1', '2019-10-25 05:48:00', NULL),
('REGUSER', 'Register User Controller', 'RegisterController', '1', '2019-11-19 08:11:00', NULL);

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

--
-- Table structure for table `u02_01_user_role_uri`
--

CREATE TABLE `u02_01_user_role_uri` (
  `role_id` varchar(10) COLLATE utf8_unicode_ci NOT NULL,
  `uri_id` varchar(10) COLLATE utf8_unicode_ci NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `u02_01_user_role_uri`
--

INSERT INTO `u02_01_user_role_uri` (`role_id`, `uri_id`, `created_at`, `updated_at`) VALUES
('ADMIN', 'URI00001', '2019-10-07 05:13:00', NULL),
('ADMIN', 'URI00003', '2019-10-09 10:24:00', NULL),
('ADMIN', 'URI00029', '2019-11-18 10:50:00', NULL),
('USER', 'URI00002', '2019-10-07 05:13:00', NULL),
('USER', 'URI00003', '2019-10-09 10:24:00', NULL),
('USER', 'URI00004', '2019-10-17 07:48:00', NULL),
('USER', 'URI00005', '2019-10-25 07:48:00', NULL),
('USER', 'URI00006', '2019-10-25 07:48:00', NULL),
('USER', 'URI00007', '2019-11-05 03:05:00', NULL),
('USER', 'URI00008', '2019-11-05 06:05:00', NULL),
('USER', 'URI00009', '2019-11-06 05:54:00', NULL),
('USER', 'URI00010', '2019-11-06 08:39:00', NULL),
('USER', 'URI00011', '2019-11-06 10:18:00', NULL),
('USER', 'URI00012', '2019-11-07 05:01:00', NULL),
('USER', 'URI00013', '2019-11-06 20:21:00', NULL),
('USER', 'URI00014', '2019-11-12 20:31:00', NULL),
('USER', 'URI00015', '2019-11-12 21:01:00', NULL),
('USER', 'URI00016', '2019-11-12 21:17:00', NULL),
('USER', 'URI00017', '2019-11-12 21:17:00', NULL),
('USER', 'URI00018', '2019-11-14 05:35:00', NULL),
('USER', 'URI00019', '2019-11-14 05:35:00', NULL),
('USER', 'URI00020', '2019-11-14 05:35:00', NULL),
('USER', 'URI00021', '2019-11-15 03:56:00', NULL),
('USER', 'URI00022', '2019-11-15 05:45:00', NULL),
('USER', 'URI00023', '2019-11-15 06:03:00', NULL),
('USER', 'URI00024', '2019-11-15 06:03:00', NULL),
('USER', 'URI00025', '2019-11-18 10:50:00', NULL),
('USER', 'URI00026', '2019-11-18 10:50:00', NULL),
('USER', 'URI00027', '2019-11-18 10:50:00', NULL),
('USER', 'URI00028', '2019-11-18 10:50:00', NULL),
('USER', 'URI00030', '2019-12-09 05:45:00', NULL),
('USER', 'URI00031', '2019-12-09 09:45:00', NULL),
('USER', 'URI00032', '2019-12-09 09:45:00', NULL),
('USER', 'URI00033', '2019-12-09 09:45:00', NULL),
('USER', 'URI00034', '2019-12-12 04:25:00', NULL),
('USER', 'URI00035', '2019-12-12 04:25:00', NULL),
('USER', 'URI00036', '2020-01-16 10:45:00', NULL),
('USER', 'URI00037', '2020-01-17 04:33:00', NULL),
('USER', 'URI00038', '2020-01-20 03:11:00', NULL),
('USER', 'URI00039', '2020-01-21 05:00:00', NULL),
('USER', 'URI00040', '2020-01-21 08:32:00', NULL),
('USER', 'URI00041', '2020-01-21 08:53:00', NULL),
('USER', 'URI00042', '2020-01-22 09:41:00', NULL),
('USER', 'URI00043', '2020-01-23 04:20:00', NULL),
('USER', 'URI00044', '2020-01-23 08:40:00', NULL),
('USER', 'URI00045', '2020-01-24 03:05:00', NULL),
('USER', 'URI00046', '2020-01-24 05:05:00', NULL),
('USER', 'URI00047', '2020-03-03 06:05:00', NULL),
('USER', 'URI00048', '2020-03-03 10:40:00', NULL),
('USER', 'URI00049', '2020-03-05 07:40:00', NULL);

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

--
-- Table structure for table `u03_00_uri_list`
--

CREATE TABLE `u03_00_uri_list` (
  `uri_id` varchar(10) COLLATE utf8_unicode_ci NOT NULL,
  `uri` varchar(200) COLLATE utf8_unicode_ci NOT NULL,
  `uri_des` varchar(100) COLLATE utf8_unicode_ci NOT NULL,
  `uri_name` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
  `url_method` varchar(10) COLLATE utf8_unicode_ci NOT NULL,
  `method` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
  `class_id` varchar(10) COLLATE utf8_unicode_ci NOT NULL,
  `allow_mob_access` char(1) COLLATE utf8_unicode_ci NOT NULL DEFAULT '0' COMMENT '1 - Yes, 0 - no',
  `allow_web_access` char(1) COLLATE utf8_unicode_ci NOT NULL DEFAULT '1' COMMENT '1 - Yes, 0 - no',
  `is_active` char(1) COLLATE utf8_unicode_ci NOT NULL DEFAULT '1' COMMENT '1 - Active, 0 - inactive',
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `u03_00_uri_list`
--

INSERT INTO `u03_00_uri_list` (`uri_id`, `uri`, `uri_des`, `uri_name`, `url_method`, `method`, `class_id`, `allow_mob_access`, `allow_web_access`, `is_active`, `created_at`, `updated_at`) VALUES
('URI00001', 'login_web', '', 'loginweb', 'POST', 'Login ', 'LOGWEB', '0', '1', '1', '2019-10-07 06:07:00', NULL),
('URI00002', 'login_api', '', 'loginapi', 'POST', 'Login ', 'LOGAPI', '0', '0', '1', '2019-10-07 06:07:00', NULL),
('URI00003', 'district/{province}', 'district for province', 'districtlistforprovince', 'GET', 'getDistForProvince', 'DISTRICT', '0', '1', '1', '2019-10-09 10:22:00', NULL),
('URI00004', 'searchai', '', 'aisearch', 'GET', 'aiNearMe', 'ADVERT', '1', '0', '1', NULL, NULL),
('URI00005', 'myprofile', '', 'user_profile', 'GET', 'myProfileView', 'PROFILE', '1', '0', '1', NULL, NULL),
('URI00006', 'catle_adsave', '', 'catle_advert_create', 'POST', 'createCatlAd', 'ADCATL', '1', '0', '1', NULL, NULL),
('URI00007', 'equp_adsave', '', 'equip_advert_create', 'POST', 'createEquipAd', 'ADEQU', '1', '0', '1', NULL, NULL),
('URI00008', 'silafodd_sale_adsave', '', 'silafodd_sale_advert_create', 'POST', 'createSilaFoddSaleAd', 'ADFEEDSALE', '1', '0', '1', NULL, NULL),
('URI00009', 'pre_cat_load', '', 'load_pre_cat', 'POST', 'getPreBreed', 'ADCATL', '1', '0', '1', NULL, NULL),
('URI00010', 'update_catlbreed/{renew?}', '', 'update_cattle_breed', 'PUT', 'updateCattleBreed', 'ADCATL', '1', '0', '1', NULL, NULL),
('URI00011', 'delete_catlbreed', '', 'delete_cattle_breed', 'DELETE', 'deleteCattleBreed', 'ADCATL', '1', '0', '1', NULL, NULL),
('URI00012', 'dpdwn_catl_ad', '', 'dpdwn_catl_advert_create', 'GET', 'dropDownDataForCreateAd', 'ADCATL', '1', '0', '1', NULL, NULL),
('URI00013', 'pre_equip_load', '', 'load_pre_equip', 'POST', 'getPreCategory', 'ADEQU', '1', '0', '1', NULL, NULL),
('URI00014', 'update_equip_cate/{renew?}', '', 'update_equip_category', 'PUT', 'updateEquipAd', 'ADEQU', '1', '0', '1', NULL, NULL),
('URI00015', 'delete_equip_cate', '', 'delete_equip_category', 'DELETE', 'deleteEquipAd', 'ADEQU', '1', '0', '1', NULL, NULL),
('URI00016', 'dpdwn_equip_ad', '', 'equip_ad_dropdown', 'GET', 'dropDownDataForCreateEquipmentAd', 'ADEQU', '1', '0', '1', NULL, NULL),
('URI00017', 'dpdwn_feed_ad', '', 'feed_ad_dropdown', 'GET', 'dropDownDataForCreateFeedAd', 'ADFEEDSALE', '1', '0', '1', NULL, NULL),
('URI00018', 'pre_feed_load', '', 'load_pre_feed', 'POST', 'getPreFeed', 'ADFEEDSALE', '1', '0', '1', NULL, NULL),
('URI00019', 'next_feed_load', '', 'load_next_feed', 'POST', 'getNextFeed', 'ADFEEDSALE', '1', '0', '1', NULL, NULL),
('URI00020', 'update_feed_sellad', '', 'update_feed_sell_ad', 'PUT', 'updateFeedSellAd', 'ADFEEDSALE', '1', '0', '1', NULL, NULL),
('URI00021', 'delete_feed_sellad', '', 'delete_feed_sell_ad', 'DELETE', 'deleteFeedSellAd', 'ADFEEDSALE', '1', '0', '1', NULL, NULL),
('URI00022', 'next_cat_load', '', 'load_next_cat', 'POST', 'getNextBreed', 'ADCATL', '1', '0', '1', NULL, NULL),
('URI00023', 'next_equip_load', '', 'load_next_equip', 'POST', 'getNextCategory', 'ADEQU', '1', '0', '1', NULL, NULL),
('URI00024', 'silafodd_purch_adsave', '', 'silafodd_purch_advert_create', 'POST', 'createSilaFoddPurchAd', 'ADFEEDPUR', '1', '0', '1', NULL, NULL),
('URI00025', 'pre_purch_feed_load', '', 'load_purch_pre_feed', 'POST', 'getPrePurchFeed', 'ADFEEDPUR', '1', '0', '1', NULL, NULL),
('URI00026', 'next_purch_feed_load', '', 'load_purch_next_feed', 'POST', 'getNextPurchFeed', 'ADFEEDPUR', '1', '0', '1', NULL, NULL),
('URI00027', 'update_feed_purchad', '', 'update_feed_purch_ad', 'PUT', 'updateFeedPurchAd', 'ADFEEDPUR', '1', '0', '1', NULL, NULL),
('URI00028', 'delete_feed_purchad', '', 'delete_feed_purch_ad', 'DELETE', 'deleteFeedPurchAd', 'ADFEEDPUR', '1', '0', '1', NULL, NULL),
('URI00029', 'regusersdrp', '', 'regusers_search_drpdwn', 'GET', 'searchRegUserDropDown', 'REGUSER', '0', '1', '1', '2019-11-19 08:12:00', NULL),
('URI00030', 'extendadvert', '', 'extend_advertistment', 'POST', 'extendAd', 'ADVERT', '1', '0', '1', '2019-12-10 09:56:00', NULL),
('URI00031', 'srchadmaster', '', 'mob_admaster_search_drpdwn', 'GET', 'searchAdDropDown', 'ADVERT', '1', '0', '1', '2019-12-09 05:44:00', NULL),
('URI00032', 'srchmyadverts', '', 'srch_my_ads', 'POST', 'srchMyAdverts', 'ADVERT', '1', '0', '1', '2019-12-09 09:44:00', NULL),
('URI00033', 'showtoextend/{advert_id}', '', 'show_to_extend', 'GET', 'ShowtoExtend', 'ADVERT', '1', '0', '1', '2019-12-10 09:20:00', NULL),
('URI00034', 'showtodiscontinue/{advert_id}', '', 'show_to_discontinue', 'GET', 'ShowtoDiscontinueNRate', 'ADVERT', '1', '0', '1', '2019-12-12 04:25:00', NULL),
('URI00035', 'discontinuenrate', '', 'discontinue_n_rate', 'POST', 'DiscontinueNRate', 'ADVERT', '1', '0', '1', '2019-12-12 04:25:00', NULL),
('URI00036', 'get_aibooking_drpdwn', '', 'get_aibooking_drpdwn', 'GET', 'getAIBookingDrpdwn', 'AIBOOK', '1', '0', '1', '2020-01-16 10:44:00', '2020-01-16 10:44:00'),
('URI00037', 'insert_aibooking', '', 'insert_aibooking', 'POST', 'bookAI', 'AIBOOK', '1', '0', '1', '2020-01-17 04:31:00', '2020-01-17 04:31:00'),
('URI00038', 'get_ai_det_for_cow/{cattle_id}', 'get AI_details for cow', 'get_ai_det_for_cow', 'GET', 'getAIDetforCow', 'AIBOOK', '1', '0', '1', '2020-01-20 03:11:00', '2020-01-20 03:11:00'),
('URI00039', 'get_my_boooking/{booking_id?}', 'get my booking details', 'get_my_booking', 'POST', 'getMyBooking', 'AIBOOK', '1', '0', '1', '2020-01-21 04:59:00', '2020-01-21 04:59:00'),
('URI00040', 'booking_search_dropdown', 'booking search dropdown', 'booking_search_dropdown', 'GET', 'bookingSearchDropdown', 'AIBOOK', '1', '0', '1', '2020-01-21 08:32:00', '2020-01-21 08:32:00'),
('URI00041', 'booking_response/{booking_id}', 'booking response', 'booking_response', 'PUT', 'bookingResponse', 'AIBOOK', '1', '0', '1', '2020-01-21 09:50:00', '2020-01-21 09:50:00'),
('URI00042', 'ai_feedback_dropdown/{booking_id}', 'ai feedback dropdown', 'ai_feedback_dropdown', 'GET', 'aiFeedbackDropdown', 'AIFEEDBACK', '1', '0', '1', '2020-01-22 09:38:00', '2020-01-22 09:38:00'),
('URI00043', 'save_feedback/{booking_id}', 'save feedback', 'save_feedback', 'PUT', 'saveFeedback', 'AIFEEDBACK', '1', '0', '1', '2020-01-23 04:18:00', '2020-01-23 04:18:00'),
('URI00044', 'pd_check_cattle_data/{cattle_id}', 'pd check form cattle data', 'pd_check_cattle_data', 'GET', 'pdCheckCattleData', 'PDCHECK', '1', '0', '1', '2020-01-23 08:40:00', '2020-01-23 08:40:00'),
('URI00045', 'pd_check_data', 'pd check form data', 'pd_check_data', 'GET', 'pdCheckData', 'PDCHECK', '1', '0', '1', '2020-01-24 03:05:00', '2020-01-24 03:05:00'),
('URI00046', 'save_pd_check/{booking_id}', 'save pd check data', 'save_pd_check_data', 'POST', 'pdCheckDataSave', 'PDCHECK', '1', '0', '1', '2020-01-24 04:57:00', '2020-01-24 04:57:00'),
('URI00047', 'fodd_sale_adsave', '', 'fodd_sale_advert_create', 'POST', 'createFoddSaleAd', 'ADFEEDSALE', '1', '0', '1', NULL, NULL),
('URI00048', 'update_foddsale/{renew?}', '', 'update_foddsale', 'PUT', 'updateFodderSaleAd', 'ADFEEDSALE', '1', '0', '1', NULL, NULL),
('URI00049', 'update_aprvsilage_saleadv', '', 'update_aprvsilage_saleadv', 'PUT', 'updateApprovedSilageSaleAdv', 'ADFEEDSALE', '1', '0', '1', NULL, NULL);

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

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

CREATE TABLE `users` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `name` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `email` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `email_verified_at` timestamp NULL DEFAULT NULL,
  `password` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `remember_token` varchar(100) COLLATE utf8_unicode_ci DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

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

INSERT INTO `users` (`id`, `name`, `email`, `email_verified_at`, `password`, `remember_token`, `created_at`, `updated_at`) VALUES
(1, 'Nuwangi', 'nuwangi@cyberconcepts.lk', NULL, '$2y$10$zBSRMZ/yqtOwGr7byinxFubNN5KVdF7Di2Z7/lRdvgGfa2VAYRbxq', 'XOJPPvxdjIQ3S20hlRUfgQh7XPkzp4NtaxaxajubXnPaPmqg9D1Utnrx45yu', '2019-09-30 02:49:12', '2019-10-01 05:33:55'),
(22, 'Test Man', 'test@email.com', NULL, '$2y$10$Za8DfnN.6qgJ.wfz9lpO8.NysYL/h4kIwB75VTezz0M46HtlQe47.', NULL, '2019-10-01 23:03:21', '2019-10-01 23:03:21'),
(24, 'Test 123', 'test123@email.com', NULL, '$2y$10$J5d36Rfq7PNct08KlR0Za.EGCjTZQD/0U9mofkbvmh1WVmYv/sMAS', NULL, '2019-10-02 21:59:55', '2019-10-02 21:59:55'),
(25, 'Hasini', 'user@gmail.com', NULL, '$2y$10$SyBXSubxd9vpC5v89FkkKuj05JdH9z7JlnYFstO2uflsQGE6TGt3S', NULL, '2019-10-27 23:09:19', '2019-10-27 23:09:19');

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

--
-- Stand-in structure for view `vw_aidetails`
-- (See below for the actual view)
--
CREATE TABLE `vw_aidetails` (
`ai_advert_id` varchar(10)
,`ai_regno` varchar(10)
,`regno` varchar(10)
,`user_firstname` varchar(100)
,`user_lastname` varchar(100)
,`user_shortname` varchar(100)
,`address_line_1` varchar(100)
,`address_line_2` varchar(100)
,`address_line_3` varchar(100)
,`postcode` varchar(50)
,`dist_id` varchar(10)
,`longitude` varchar(10)
,`lattitude` varchar(10)
,`mobile_no_1` varchar(10)
,`mobile_no_2` varchar(10)
,`email_address` varchar(100)
,`type_of_id` varchar(5)
,`person_id` varchar(15)
,`gender` char(1)
,`preferred_lang` varchar(5)
,`created_at` timestamp
,`created_by` varchar(10)
,`updated_at` timestamp
,`edited_by` varchar(10)
);

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

--
-- Stand-in structure for view `vw_userrl_all_uri`
-- (See below for the actual view)
--
CREATE TABLE `vw_userrl_all_uri` (
`role_id` varchar(10)
,`uri_id` varchar(10)
,`uri` varchar(200)
,`uri_des` varchar(100)
,`uri_name` varchar(50)
,`url_method` varchar(10)
,`method` varchar(50)
,`class_id` varchar(10)
,`allow_mob_access` char(1)
,`allow_web_access` char(1)
,`is_active` char(1)
,`created_at` timestamp
,`updated_at` timestamp
,`class_name` varchar(50)
);

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

--
-- Structure for view `vw_aidetails`
--

CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `vw_aidetails`  AS  select `t05_01aisvc_offered`.`ai_advert_id` AS `ai_advert_id`,`t05_01aisvc_offered`.`ai_regno` AS `ai_regno`,`m01_01registered_users`.`regno` AS `regno`,`m01_01registered_users`.`user_firstname` AS `user_firstname`,`m01_01registered_users`.`user_lastname` AS `user_lastname`,`m01_01registered_users`.`user_shortname` AS `user_shortname`,`m01_01registered_users`.`address_line_1` AS `address_line_1`,`m01_01registered_users`.`address_line_2` AS `address_line_2`,`m01_01registered_users`.`address_line_3` AS `address_line_3`,`m01_01registered_users`.`postcode` AS `postcode`,`m01_01registered_users`.`dist_id` AS `dist_id`,`m01_01registered_users`.`longitude` AS `longitude`,`m01_01registered_users`.`lattitude` AS `lattitude`,`m01_01registered_users`.`mobile_no_1` AS `mobile_no_1`,`m01_01registered_users`.`mobile_no_2` AS `mobile_no_2`,`m01_01registered_users`.`email_address` AS `email_address`,`m01_01registered_users`.`type_of_id` AS `type_of_id`,`m01_01registered_users`.`person_id` AS `person_id`,`m01_01registered_users`.`gender` AS `gender`,`m01_01registered_users`.`preferred_lang` AS `preferred_lang`,`m01_01registered_users`.`created_at` AS `created_at`,`m01_01registered_users`.`created_by` AS `created_by`,`m01_01registered_users`.`updated_at` AS `updated_at`,`m01_01registered_users`.`edited_by` AS `edited_by` from ((`t05_01aisvc_offered` join `t00_00adverts_master` on((`t00_00adverts_master`.`advert_id` = `t05_01aisvc_offered`.`advert_id`))) join `m01_01registered_users` on((`t00_00adverts_master`.`regno` = `m01_01registered_users`.`regno`))) ;

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

--
-- Structure for view `vw_userrl_all_uri`
--

CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `vw_userrl_all_uri`  AS  select `u02_01_user_role_uri`.`role_id` AS `role_id`,`u03_00_uri_list`.`uri_id` AS `uri_id`,`u03_00_uri_list`.`uri` AS `uri`,`u03_00_uri_list`.`uri_des` AS `uri_des`,`u03_00_uri_list`.`uri_name` AS `uri_name`,`u03_00_uri_list`.`url_method` AS `url_method`,`u03_00_uri_list`.`method` AS `method`,`u03_00_uri_list`.`class_id` AS `class_id`,`u03_00_uri_list`.`allow_mob_access` AS `allow_mob_access`,`u03_00_uri_list`.`allow_web_access` AS `allow_web_access`,`u03_00_uri_list`.`is_active` AS `is_active`,`u03_00_uri_list`.`created_at` AS `created_at`,`u03_00_uri_list`.`updated_at` AS `updated_at`,`u002_00classes`.`class_name` AS `class_name` from ((`u03_00_uri_list` join `u02_01_user_role_uri` on((`u03_00_uri_list`.`uri_id` = `u02_01_user_role_uri`.`uri_id`))) join `u002_00classes` on((`u03_00_uri_list`.`class_id` = `u002_00classes`.`class_id`))) ;

--
-- Indexes for dumped tables
--

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

--
-- Indexes for table `m01_01registered_users`
--
ALTER TABLE `m01_01registered_users`
  ADD PRIMARY KEY (`regno`),
  ADD KEY `fk_user_dist_id` (`dist_id`);

--
-- Indexes for table `m01_02user_svc`
--
ALTER TABLE `m01_02user_svc`
  ADD PRIMARY KEY (`usersvc_rowno`),
  ADD KEY `fk_usersvc_regno` (`regno`),
  ADD KEY `fk_usersvc_typecode` (`type_code`);

--
-- Indexes for table `m01_04user_cattle`
--
ALTER TABLE `m01_04user_cattle`
  ADD PRIMARY KEY (`catle_id`),
  ADD KEY `fk_user_cat_regno` (`regno`),
  ADD KEY `fk_user_cat_breed_type` (`breed_type`);

--
-- Indexes for table `m01_05aitech_status`
--
ALTER TABLE `m01_05aitech_status`
  ADD PRIMARY KEY (`rowno`),
  ADD KEY `fk_aitech_state_regno` (`regno`);

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

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

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

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

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

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

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

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

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

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

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

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

--
-- Indexes for table `s03_02district`
--
ALTER TABLE `s03_02district`
  ADD PRIMARY KEY (`dist_id`),
  ADD KEY `fk_prvnce_id` (`prvnce_id`);

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

--
-- Indexes for table `t00_00adverts_master`
--
ALTER TABLE `t00_00adverts_master`
  ADD PRIMARY KEY (`advert_id`),
  ADD KEY `fk_ad_master_regno` (`regno`),
  ADD KEY `fk_ad_master_prodsvc_id` (`prodsvc_id`),
  ADD KEY `fk_ad_master_distid` (`dist_id`);

--
-- Indexes for table `t00_00adverts_master_20200219`
--
ALTER TABLE `t00_00adverts_master_20200219`
  ADD PRIMARY KEY (`advert_id`),
  ADD KEY `fk_ad_master_regno` (`regno`),
  ADD KEY `fk_ad_master_prodsvc_id` (`prodsvc_id`),
  ADD KEY `fk_ad_master_distid` (`dist_id`);

--
-- Indexes for table `t00_01adverts_extended`
--
ALTER TABLE `t00_01adverts_extended`
  ADD PRIMARY KEY (`rowno`),
  ADD KEY `fk_ad_extend_advert_id` (`advert_id`);

--
-- Indexes for table `t00_02adverts_discontinued`
--
ALTER TABLE `t00_02adverts_discontinued`
  ADD PRIMARY KEY (`rowno`),
  ADD KEY `fk_ad_discon_advert_id` (`advert_id`);

--
-- Indexes for table `t01_01cattle_forsale`
--
ALTER TABLE `t01_01cattle_forsale`
  ADD PRIMARY KEY (`ctlsale_rowno`),
  ADD KEY `fk_cat_forsale_advert_id` (`advert_id`);

--
-- Indexes for table `t01_02cattle_salebreeds`
--
ALTER TABLE `t01_02cattle_salebreeds`
  ADD PRIMARY KEY (`ctlsale_breed_rowno`),
  ADD KEY `fk_breeds_forsale_ctlsale_rowno` (`ctlsale_rowno`),
  ADD KEY `fk_breeds_forsale_breed_type` (`breed_type`);

--
-- Indexes for table `t01_03cattle_forpurchasing`
--
ALTER TABLE `t01_03cattle_forpurchasing`
  ADD PRIMARY KEY (`ctlpur_rowno`),
  ADD KEY `fk_cat_forpur_advert_id` (`advert_id`);

--
-- Indexes for table `t01_04cattle_purchbreeds`
--
ALTER TABLE `t01_04cattle_purchbreeds`
  ADD PRIMARY KEY (`ctlpur_breed_rowno`),
  ADD KEY `fk_bre_topur_breed_type` (`breed_type`),
  ADD KEY `fk_bre_topur_ctlpur_rowno` (`ctlpur_rowno`);

--
-- Indexes for table `t03_01silage_forsale`
--
ALTER TABLE `t03_01silage_forsale`
  ADD PRIMARY KEY (`slg_sale_rowno`),
  ADD KEY `fk_sil_forsale_advert_id` (`advert_id`);

--
-- Indexes for table `t03_02silage_salefeed`
--
ALTER TABLE `t03_02silage_salefeed`
  ADD PRIMARY KEY (`slgsale_feed_rowno`),
  ADD KEY `fk_silage_salefeed_slg_salerow` (`slg_sale_rowno`),
  ADD KEY `fk_silage_salefeed_feedtype` (`feed_type`);

--
-- Indexes for table `t03_03silage_forpurch`
--
ALTER TABLE `t03_03silage_forpurch`
  ADD PRIMARY KEY (`slg_purch_rowno`),
  ADD KEY `fk_sil_want_advert_id` (`advert_id`);

--
-- Indexes for table `t03_04silage_purchfeed`
--
ALTER TABLE `t03_04silage_purchfeed`
  ADD PRIMARY KEY (`slgpurch_feed_rowno`),
  ADD KEY `fk_sil_purfeed_slg_purrow` (`slg_purch_rowno`),
  ADD KEY `fk_sil_purfeed_feedtype` (`feed_type`);

--
-- Indexes for table `t04_01fodder_forsale`
--
ALTER TABLE `t04_01fodder_forsale`
  ADD PRIMARY KEY (`fodder_sale_rowno`),
  ADD KEY `fk_fod_forsale_advert_id` (`advert_id`);

--
-- Indexes for table `t04_02fodder_salefeed`
--
ALTER TABLE `t04_02fodder_salefeed`
  ADD PRIMARY KEY (`fdrsale_feed_rowno`),
  ADD KEY `fk_fodsale_fod_salerow` (`fodder_sale_rowno`),
  ADD KEY `fk_fodsale_feedtype` (`feed_type`);

--
-- Indexes for table `t04_03fodder_forpurch`
--
ALTER TABLE `t04_03fodder_forpurch`
  ADD PRIMARY KEY (`fodder_purch_rowno`),
  ADD KEY `fk_fodpur_advert_id` (`advert_id`);

--
-- Indexes for table `t04_04fodder_purchfeed`
--
ALTER TABLE `t04_04fodder_purchfeed`
  ADD PRIMARY KEY (`fdrpurch_feed_rowno`),
  ADD KEY `fk_fodpurfeed_fodder_purch_rowno` (`fodder_purch_rowno`),
  ADD KEY `fk_fodpurfeed_feedtype` (`feed_type`);

--
-- Indexes for table `t05_01aisvc_offered`
--
ALTER TABLE `t05_01aisvc_offered`
  ADD PRIMARY KEY (`ai_advert_id`),
  ADD KEY `fk_aisvc_advert_id` (`advert_id`);

--
-- Indexes for table `t05_01aisvc_vetranges`
--
ALTER TABLE `t05_01aisvc_vetranges`
  ADD PRIMARY KEY (`ai_vetrange_rowno`),
  ADD KEY `fk_aiscvven_ai_advert_id` (`ai_advert_id`);

--
-- Indexes for table `t05_02aitech_bookings`
--
ALTER TABLE `t05_02aitech_bookings`
  ADD PRIMARY KEY (`booking_no`),
  ADD KEY `fk_aitech_ai_advert_id` (`ai_advert_id`),
  ADD KEY `fk_aitech_cattle_id` (`cattle_id`);

--
-- Indexes for table `t06_01equip_forsale`
--
ALTER TABLE `t06_01equip_forsale`
  ADD PRIMARY KEY (`equip_sale_rowno`),
  ADD KEY `fk_equforsale_advert_id` (`advert_id`);

--
-- Indexes for table `t06_02equip_sale_categories`
--
ALTER TABLE `t06_02equip_sale_categories`
  ADD PRIMARY KEY (`equip_salecat_rowno`),
  ADD KEY `fk_equsalecat_equipsalerow` (`equip_sale_rowno`),
  ADD KEY `fk_equsalecat_equipcat` (`equip_catid`);

--
-- Indexes for table `t06_03equip_forpurch`
--
ALTER TABLE `t06_03equip_forpurch`
  ADD PRIMARY KEY (`equip_purch_rowno`),
  ADD KEY `fk_equippur_advertid` (`advert_id`);

--
-- Indexes for table `t06_04equip_purch_categories`
--
ALTER TABLE `t06_04equip_purch_categories`
  ADD PRIMARY KEY (`equip_purchcat_rowno`),
  ADD KEY `fk_equpucat_equpurrow` (`equip_purch_rowno`),
  ADD KEY `fk_equpucat_equcat` (`equip_catid`);

--
-- Indexes for table `t10_00docapprovals`
--
ALTER TABLE `t10_00docapprovals`
  ADD PRIMARY KEY (`rowno`),
  ADD KEY `fk_docapprov_userid` (`user_id`);

--
-- Indexes for table `t11_01messages_sent`
--
ALTER TABLE `t11_01messages_sent`
  ADD PRIMARY KEY (`rowno`),
  ADD KEY `fk_msgsent_msgcode` (`msg_code`),
  ADD KEY `fk_msgsent_regno` (`regno`);

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

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

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

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

--
-- Indexes for table `u002_00classes`
--
ALTER TABLE `u002_00classes`
  ADD PRIMARY KEY (`class_id`),
  ADD UNIQUE KEY `class_name` (`class_name`);

--
-- Indexes for table `u02_01_user_role_uri`
--
ALTER TABLE `u02_01_user_role_uri`
  ADD PRIMARY KEY (`role_id`,`uri_id`),
  ADD KEY `fk_usruri_uriid` (`uri_id`);

--
-- Indexes for table `u03_00_uri_list`
--
ALTER TABLE `u03_00_uri_list`
  ADD PRIMARY KEY (`uri_id`),
  ADD KEY `fk_urilist_classid` (`class_id`);

--
-- Indexes for table `users`
--
ALTER TABLE `users`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `users_email_unique` (`email`);

--
-- AUTO_INCREMENT for dumped tables
--

--
-- AUTO_INCREMENT for table `failed_jobs`
--
ALTER TABLE `failed_jobs`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `m01_02user_svc`
--
ALTER TABLE `m01_02user_svc`
  MODIFY `usersvc_rowno` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=90;
--
-- AUTO_INCREMENT for table `m01_05aitech_status`
--
ALTER TABLE `m01_05aitech_status`
  MODIFY `rowno` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `migrations`
--
ALTER TABLE `migrations`
  MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;
--
-- AUTO_INCREMENT for table `s01_fxdval`
--
ALTER TABLE `s01_fxdval`
  MODIFY `rowno` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=70;
--
-- AUTO_INCREMENT for table `s02_04semen_type`
--
ALTER TABLE `s02_04semen_type`
  MODIFY `record_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;
--
-- AUTO_INCREMENT for table `t00_01adverts_extended`
--
ALTER TABLE `t00_01adverts_extended`
  MODIFY `rowno` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=40;
--
-- AUTO_INCREMENT for table `t00_02adverts_discontinued`
--
ALTER TABLE `t00_02adverts_discontinued`
  MODIFY `rowno` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=8;
--
-- AUTO_INCREMENT for table `t01_01cattle_forsale`
--
ALTER TABLE `t01_01cattle_forsale`
  MODIFY `ctlsale_rowno` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=548;
--
-- AUTO_INCREMENT for table `t01_02cattle_salebreeds`
--
ALTER TABLE `t01_02cattle_salebreeds`
  MODIFY `ctlsale_breed_rowno` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=566;
--
-- AUTO_INCREMENT for table `t01_03cattle_forpurchasing`
--
ALTER TABLE `t01_03cattle_forpurchasing`
  MODIFY `ctlpur_rowno` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=36;
--
-- AUTO_INCREMENT for table `t01_04cattle_purchbreeds`
--
ALTER TABLE `t01_04cattle_purchbreeds`
  MODIFY `ctlpur_breed_rowno` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=38;
--
-- AUTO_INCREMENT for table `t03_01silage_forsale`
--
ALTER TABLE `t03_01silage_forsale`
  MODIFY `slg_sale_rowno` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=164;
--
-- AUTO_INCREMENT for table `t03_02silage_salefeed`
--
ALTER TABLE `t03_02silage_salefeed`
  MODIFY `slgsale_feed_rowno` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=485;
--
-- AUTO_INCREMENT for table `t03_03silage_forpurch`
--
ALTER TABLE `t03_03silage_forpurch`
  MODIFY `slg_purch_rowno` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=47;
--
-- AUTO_INCREMENT for table `t03_04silage_purchfeed`
--
ALTER TABLE `t03_04silage_purchfeed`
  MODIFY `slgpurch_feed_rowno` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=133;
--
-- AUTO_INCREMENT for table `t04_01fodder_forsale`
--
ALTER TABLE `t04_01fodder_forsale`
  MODIFY `fodder_sale_rowno` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=53;
--
-- AUTO_INCREMENT for table `t04_02fodder_salefeed`
--
ALTER TABLE `t04_02fodder_salefeed`
  MODIFY `fdrsale_feed_rowno` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=191;
--
-- AUTO_INCREMENT for table `t04_03fodder_forpurch`
--
ALTER TABLE `t04_03fodder_forpurch`
  MODIFY `fodder_purch_rowno` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5;
--
-- AUTO_INCREMENT for table `t04_04fodder_purchfeed`
--
ALTER TABLE `t04_04fodder_purchfeed`
  MODIFY `fdrpurch_feed_rowno` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;
--
-- AUTO_INCREMENT for table `t05_01aisvc_vetranges`
--
ALTER TABLE `t05_01aisvc_vetranges`
  MODIFY `ai_vetrange_rowno` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=30;
--
-- AUTO_INCREMENT for table `t06_01equip_forsale`
--
ALTER TABLE `t06_01equip_forsale`
  MODIFY `equip_sale_rowno` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=16;
--
-- AUTO_INCREMENT for table `t06_02equip_sale_categories`
--
ALTER TABLE `t06_02equip_sale_categories`
  MODIFY `equip_salecat_rowno` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=20;
--
-- AUTO_INCREMENT for table `t06_03equip_forpurch`
--
ALTER TABLE `t06_03equip_forpurch`
  MODIFY `equip_purch_rowno` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;
--
-- AUTO_INCREMENT for table `t06_04equip_purch_categories`
--
ALTER TABLE `t06_04equip_purch_categories`
  MODIFY `equip_purchcat_rowno` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;
--
-- AUTO_INCREMENT for table `t10_00docapprovals`
--
ALTER TABLE `t10_00docapprovals`
  MODIFY `rowno` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=528;
--
-- AUTO_INCREMENT for table `t11_01messages_sent`
--
ALTER TABLE `t11_01messages_sent`
  MODIFY `rowno` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `t12_00images`
--
ALTER TABLE `t12_00images`
  MODIFY `rowno` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=89;
--
-- AUTO_INCREMENT for table `users`
--
ALTER TABLE `users`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=26;
--
-- Constraints for dumped tables
--

--
-- Constraints for table `m01_01registered_users`
--
ALTER TABLE `m01_01registered_users`
  ADD CONSTRAINT `fk_user_dist_id` FOREIGN KEY (`dist_id`) REFERENCES `s03_02district` (`dist_id`) ON DELETE NO ACTION ON UPDATE NO ACTION;

--
-- Constraints for table `m01_02user_svc`
--
ALTER TABLE `m01_02user_svc`
  ADD CONSTRAINT `fk_usersvc_regno` FOREIGN KEY (`regno`) REFERENCES `m01_01registered_users` (`regno`) ON DELETE NO ACTION ON UPDATE NO ACTION,
  ADD CONSTRAINT `fk_usersvc_typecode` FOREIGN KEY (`type_code`) REFERENCES `s01_01svcs_engaged` (`type_code`) ON DELETE NO ACTION ON UPDATE NO ACTION;

--
-- Constraints for table `m01_04user_cattle`
--
ALTER TABLE `m01_04user_cattle`
  ADD CONSTRAINT `fk_user_cat_breed_type` FOREIGN KEY (`breed_type`) REFERENCES `s02_01cattle_breed` (`breed_type`) ON DELETE NO ACTION ON UPDATE NO ACTION,
  ADD CONSTRAINT `fk_user_cat_regno` FOREIGN KEY (`regno`) REFERENCES `m01_01registered_users` (`regno`) ON DELETE NO ACTION ON UPDATE NO ACTION;

--
-- Constraints for table `m01_05aitech_status`
--
ALTER TABLE `m01_05aitech_status`
  ADD CONSTRAINT `fk_aitech_state_regno` FOREIGN KEY (`regno`) REFERENCES `m01_01registered_users` (`regno`) ON DELETE NO ACTION ON UPDATE NO ACTION;

--
-- Constraints for table `s03_02district`
--
ALTER TABLE `s03_02district`
  ADD CONSTRAINT `fk_prvnce_id` FOREIGN KEY (`prvnce_id`) REFERENCES `s03_01province` (`prvnce_id`) ON DELETE NO ACTION ON UPDATE NO ACTION;

--
-- Constraints for table `t00_00adverts_master`
--
ALTER TABLE `t00_00adverts_master`
  ADD CONSTRAINT `fk_ad_master_distid` FOREIGN KEY (`dist_id`) REFERENCES `s03_02district` (`dist_id`) ON DELETE NO ACTION ON UPDATE NO ACTION,
  ADD CONSTRAINT `fk_ad_master_prodsvc_id` FOREIGN KEY (`prodsvc_id`) REFERENCES `s01_00prodsvcs` (`prodsvc_id`) ON DELETE NO ACTION ON UPDATE NO ACTION,
  ADD CONSTRAINT `fk_ad_master_regno` FOREIGN KEY (`regno`) REFERENCES `m01_01registered_users` (`regno`) ON DELETE NO ACTION ON UPDATE NO ACTION;

--
-- Constraints for table `t00_01adverts_extended`
--
ALTER TABLE `t00_01adverts_extended`
  ADD CONSTRAINT `fk_ad_extend_advert_id` FOREIGN KEY (`advert_id`) REFERENCES `t00_00adverts_master` (`advert_id`) ON DELETE NO ACTION ON UPDATE NO ACTION;

--
-- Constraints for table `t00_02adverts_discontinued`
--
ALTER TABLE `t00_02adverts_discontinued`
  ADD CONSTRAINT `fk_ad_discon_advert_id` FOREIGN KEY (`advert_id`) REFERENCES `t00_00adverts_master` (`advert_id`) ON DELETE NO ACTION ON UPDATE NO ACTION;

--
-- Constraints for table `t01_01cattle_forsale`
--
ALTER TABLE `t01_01cattle_forsale`
  ADD CONSTRAINT `fk_cat_forsale_advert_id` FOREIGN KEY (`advert_id`) REFERENCES `t00_00adverts_master` (`advert_id`) ON DELETE NO ACTION ON UPDATE NO ACTION;

--
-- Constraints for table `t01_02cattle_salebreeds`
--
ALTER TABLE `t01_02cattle_salebreeds`
  ADD CONSTRAINT `fk_breeds_forsale_breed_type` FOREIGN KEY (`breed_type`) REFERENCES `s02_01cattle_breed` (`breed_type`) ON DELETE NO ACTION ON UPDATE NO ACTION,
  ADD CONSTRAINT `fk_breeds_forsale_ctlsale_rowno` FOREIGN KEY (`ctlsale_rowno`) REFERENCES `t01_01cattle_forsale` (`ctlsale_rowno`) ON DELETE NO ACTION ON UPDATE NO ACTION;

--
-- Constraints for table `t01_03cattle_forpurchasing`
--
ALTER TABLE `t01_03cattle_forpurchasing`
  ADD CONSTRAINT `fk_cat_forpur_advert_id` FOREIGN KEY (`advert_id`) REFERENCES `t00_00adverts_master` (`advert_id`) ON DELETE NO ACTION ON UPDATE NO ACTION;

--
-- Constraints for table `t01_04cattle_purchbreeds`
--
ALTER TABLE `t01_04cattle_purchbreeds`
  ADD CONSTRAINT `fk_bre_topur_breed_type` FOREIGN KEY (`breed_type`) REFERENCES `s02_01cattle_breed` (`breed_type`) ON DELETE NO ACTION ON UPDATE NO ACTION,
  ADD CONSTRAINT `fk_bre_topur_ctlpur_rowno` FOREIGN KEY (`ctlpur_rowno`) REFERENCES `t01_03cattle_forpurchasing` (`ctlpur_rowno`) ON DELETE NO ACTION ON UPDATE NO ACTION;

--
-- Constraints for table `t03_01silage_forsale`
--
ALTER TABLE `t03_01silage_forsale`
  ADD CONSTRAINT `fk_sil_forsale_advert_id` FOREIGN KEY (`advert_id`) REFERENCES `t00_00adverts_master` (`advert_id`) ON DELETE NO ACTION ON UPDATE NO ACTION;

--
-- Constraints for table `t03_02silage_salefeed`
--
ALTER TABLE `t03_02silage_salefeed`
  ADD CONSTRAINT `fk_silage_salefeed_feedtype` FOREIGN KEY (`feed_type`) REFERENCES `s02_03feed_type` (`feed_type`) ON DELETE NO ACTION ON UPDATE NO ACTION,
  ADD CONSTRAINT `fk_silage_salefeed_slg_salerow` FOREIGN KEY (`slg_sale_rowno`) REFERENCES `t03_01silage_forsale` (`slg_sale_rowno`) ON DELETE NO ACTION ON UPDATE NO ACTION;

--
-- Constraints for table `t03_03silage_forpurch`
--
ALTER TABLE `t03_03silage_forpurch`
  ADD CONSTRAINT `fk_sil_want_advert_id` FOREIGN KEY (`advert_id`) REFERENCES `t00_00adverts_master` (`advert_id`) ON DELETE NO ACTION ON UPDATE NO ACTION;

--
-- Constraints for table `t03_04silage_purchfeed`
--
ALTER TABLE `t03_04silage_purchfeed`
  ADD CONSTRAINT `fk_sil_purfeed_feedtype` FOREIGN KEY (`feed_type`) REFERENCES `s02_03feed_type` (`feed_type`) ON DELETE NO ACTION ON UPDATE NO ACTION,
  ADD CONSTRAINT `fk_sil_purfeed_slg_purrow` FOREIGN KEY (`slg_purch_rowno`) REFERENCES `t03_03silage_forpurch` (`slg_purch_rowno`) ON DELETE NO ACTION ON UPDATE NO ACTION;

--
-- Constraints for table `t04_01fodder_forsale`
--
ALTER TABLE `t04_01fodder_forsale`
  ADD CONSTRAINT `fk_fod_forsale_advert_id` FOREIGN KEY (`advert_id`) REFERENCES `t00_00adverts_master` (`advert_id`) ON DELETE NO ACTION ON UPDATE NO ACTION;

--
-- Constraints for table `t04_02fodder_salefeed`
--
ALTER TABLE `t04_02fodder_salefeed`
  ADD CONSTRAINT `fk_fodsale_feedtype` FOREIGN KEY (`feed_type`) REFERENCES `s02_03feed_type` (`feed_type`) ON DELETE NO ACTION ON UPDATE NO ACTION,
  ADD CONSTRAINT `fk_fodsale_fod_salerow` FOREIGN KEY (`fodder_sale_rowno`) REFERENCES `t04_01fodder_forsale` (`fodder_sale_rowno`) ON DELETE NO ACTION ON UPDATE NO ACTION;

--
-- Constraints for table `t04_03fodder_forpurch`
--
ALTER TABLE `t04_03fodder_forpurch`
  ADD CONSTRAINT `fk_fodpur_advert_id` FOREIGN KEY (`advert_id`) REFERENCES `t00_00adverts_master` (`advert_id`) ON DELETE NO ACTION ON UPDATE NO ACTION;

--
-- Constraints for table `t04_04fodder_purchfeed`
--
ALTER TABLE `t04_04fodder_purchfeed`
  ADD CONSTRAINT `fk_fodpurfeed_feedtype` FOREIGN KEY (`feed_type`) REFERENCES `s02_03feed_type` (`feed_type`) ON DELETE NO ACTION ON UPDATE NO ACTION,
  ADD CONSTRAINT `fk_fodpurfeed_fodder_purch_rowno` FOREIGN KEY (`fodder_purch_rowno`) REFERENCES `t04_03fodder_forpurch` (`fodder_purch_rowno`) ON DELETE NO ACTION ON UPDATE NO ACTION;

--
-- Constraints for table `t05_01aisvc_offered`
--
ALTER TABLE `t05_01aisvc_offered`
  ADD CONSTRAINT `fk_aisvc_advert_id` FOREIGN KEY (`advert_id`) REFERENCES `t00_00adverts_master` (`advert_id`) ON DELETE NO ACTION ON UPDATE NO ACTION;

--
-- Constraints for table `t05_01aisvc_vetranges`
--
ALTER TABLE `t05_01aisvc_vetranges`
  ADD CONSTRAINT `fk_aiscvven_ai_advert_id` FOREIGN KEY (`ai_advert_id`) REFERENCES `t05_01aisvc_offered` (`ai_advert_id`) ON DELETE NO ACTION ON UPDATE NO ACTION;

--
-- Constraints for table `t05_02aitech_bookings`
--
ALTER TABLE `t05_02aitech_bookings`
  ADD CONSTRAINT `fk_aitech_ai_advert_id` FOREIGN KEY (`ai_advert_id`) REFERENCES `t05_01aisvc_offered` (`ai_advert_id`) ON DELETE NO ACTION ON UPDATE NO ACTION,
  ADD CONSTRAINT `fk_aitech_cattle_id` FOREIGN KEY (`cattle_id`) REFERENCES `m01_04user_cattle` (`catle_id`) ON DELETE NO ACTION ON UPDATE NO ACTION;

--
-- Constraints for table `t06_01equip_forsale`
--
ALTER TABLE `t06_01equip_forsale`
  ADD CONSTRAINT `fk_equforsale_advert_id` FOREIGN KEY (`advert_id`) REFERENCES `t00_00adverts_master` (`advert_id`) ON DELETE NO ACTION ON UPDATE NO ACTION;

--
-- Constraints for table `t06_02equip_sale_categories`
--
ALTER TABLE `t06_02equip_sale_categories`
  ADD CONSTRAINT `fk_equsalecat_equipcat` FOREIGN KEY (`equip_catid`) REFERENCES `s02_02equip_categories` (`equip_catid`) ON DELETE NO ACTION ON UPDATE NO ACTION,
  ADD CONSTRAINT `fk_equsalecat_equipsalerow` FOREIGN KEY (`equip_sale_rowno`) REFERENCES `t06_01equip_forsale` (`equip_sale_rowno`) ON DELETE NO ACTION ON UPDATE NO ACTION;

--
-- Constraints for table `t06_03equip_forpurch`
--
ALTER TABLE `t06_03equip_forpurch`
  ADD CONSTRAINT `fk_equippur_advertid` FOREIGN KEY (`advert_id`) REFERENCES `t00_00adverts_master` (`advert_id`) ON DELETE NO ACTION ON UPDATE NO ACTION;

--
-- Constraints for table `t06_04equip_purch_categories`
--
ALTER TABLE `t06_04equip_purch_categories`
  ADD CONSTRAINT `fk_equpucat_equcat` FOREIGN KEY (`equip_catid`) REFERENCES `s02_02equip_categories` (`equip_catid`) ON DELETE NO ACTION ON UPDATE NO ACTION,
  ADD CONSTRAINT `fk_equpucat_equpurrow` FOREIGN KEY (`equip_purch_rowno`) REFERENCES `t06_03equip_forpurch` (`equip_purch_rowno`) ON DELETE NO ACTION ON UPDATE NO ACTION;

--
-- Constraints for table `t10_00docapprovals`
--
ALTER TABLE `t10_00docapprovals`
  ADD CONSTRAINT `fk_docapprov_userid` FOREIGN KEY (`user_id`) REFERENCES `u001_02users` (`user_id`) ON DELETE NO ACTION ON UPDATE NO ACTION;

--
-- Constraints for table `t11_01messages_sent`
--
ALTER TABLE `t11_01messages_sent`
  ADD CONSTRAINT `fk_msgsent_msgcode` FOREIGN KEY (`msg_code`) REFERENCES `s04_01message_settings` (`msg_code`) ON DELETE NO ACTION ON UPDATE NO ACTION,
  ADD CONSTRAINT `fk_msgsent_regno` FOREIGN KEY (`regno`) REFERENCES `m01_01registered_users` (`regno`) ON DELETE NO ACTION ON UPDATE NO ACTION;

--
-- Constraints for table `u001_02users`
--
ALTER TABLE `u001_02users`
  ADD CONSTRAINT `fk_users_role_id` FOREIGN KEY (`role_id`) REFERENCES `u001_00user_roles` (`role_id`) ON DELETE NO ACTION ON UPDATE NO ACTION;

--
-- Constraints for table `u02_01_user_role_uri`
--
ALTER TABLE `u02_01_user_role_uri`
  ADD CONSTRAINT `fk_usruri_roleid` FOREIGN KEY (`role_id`) REFERENCES `u001_00user_roles` (`role_id`) ON DELETE NO ACTION ON UPDATE NO ACTION,
  ADD CONSTRAINT `fk_usruri_uriid` FOREIGN KEY (`uri_id`) REFERENCES `u03_00_uri_list` (`uri_id`) ON DELETE NO ACTION ON UPDATE NO ACTION;

--
-- Constraints for table `u03_00_uri_list`
--
ALTER TABLE `u03_00_uri_list`
  ADD CONSTRAINT `fk_urilist_classid` FOREIGN KEY (`class_id`) REFERENCES `u002_00classes` (`class_id`) ON DELETE NO ACTION ON UPDATE NO ACTION;

