-- Table structure for table `th_coach_affiliate`
--

CREATE TABLE IF NOT EXISTS `th_coach_affiliate` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `user_id_fkx` int(11) NOT NULL,
  `aff_user_id` int(11) NOT NULL,
  `aff_type` varchar(10) NOT NULL DEFAULT 'U' COMMENT 'U->Upgrade, R->Renewal, FS->First Subscription',
  `amount` float NOT NULL DEFAULT '0',
  `aff_per` float NOT NULL DEFAULT '0',
  `profit` float NOT NULL DEFAULT '0',
  `created` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  KEY `user_id_fkx` (`user_id_fkx`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;

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

--
-- Table structure for table `th_coach_affiliate_payment`
--

CREATE TABLE IF NOT EXISTS `th_coach_affiliate_payment` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `user_id_fkx` int(11) NOT NULL,
  `pay_amount` float NOT NULL,
  `pay_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  KEY `user_id_fkx` (`user_id_fkx`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;

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

--
-- Table structure for table `th_coach_affiliate_pay_req`
--

CREATE TABLE IF NOT EXISTS `th_coach_affiliate_pay_req` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `user_id_fkx` int(11) NOT NULL,
  `amount` float NOT NULL,
  `req_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `status` varchar(10) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB  DEFAULT CHARSET=latin1 AUTO_INCREMENT=2 ;

--
-- Dumping data for table `th_coach_affiliate_pay_req`
--

INSERT INTO `th_coach_affiliate_pay_req` (`id`, `user_id_fkx`, `amount`, `req_date`, `status`) VALUES
(1, 41, 232, '2013-12-28 05:08:59', 'Pending');

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

--
-- Table structure for table `th_coach_certification`
--

CREATE TABLE IF NOT EXISTS `th_coach_certification` (
  `nc_id` int(11) NOT NULL AUTO_INCREMENT,
  `user_id_fkx` int(11) DEFAULT NULL,
  `cert_type` varchar(15) DEFAULT NULL,
  `certificate_id` int(11) DEFAULT NULL,
  `tc_certificate_name` varchar(100) DEFAULT NULL,
  `tc_agency_name` varchar(200) NOT NULL,
  `tc_certificate_path` varchar(100) DEFAULT NULL,
  `certificate_code` varchar(50) DEFAULT NULL,
  `status` varchar(10) DEFAULT 'Unverified',
  `visibility` tinyint(2) DEFAULT '1',
  PRIMARY KEY (`nc_id`)
) ENGINE=InnoDB  DEFAULT CHARSET=latin1 AUTO_INCREMENT=5068 ;

--
-- Dumping data for table `th_coach_certification`
--

INSERT INTO `th_coach_certification` (`nc_id`, `user_id_fkx`, `cert_type`, `certificate_id`, `tc_certificate_name`, `tc_agency_name`, `tc_certificate_path`, `certificate_code`, `status`, `visibility`) VALUES
(4, 41, 'Trainning', 966, '', '', 'nutrition/certificate/training/41_1380347699.jpg', '123456', 'Unverified', 1),
(8, 41, 'AED', 0, 'My AED Certificate is here', '', 'nutrition/../nutrition/certificate/cpr/41_1380367429.jpg', '1452', 'Unverified', 0),
(1223, 56, 'Trainning', 5, 'Health & Fitness Certificate', '', 'sdf/sdfsd.pdf', NULL, 'Verified', 1),
(1224, 56, 'Trainning', 5, 'Health & Fitness Certificate', '', 'sdf/sdfsd.pdf', NULL, 'Unverified', 1),
(1225, 56, 'CPR', 5, NULL, '', 'fasd', NULL, 'Unverified', 1),
(1226, 56, 'CPR', 58554, 'My CPR Certificate', '', NULL, NULL, 'Unverified', 1),
(1227, 56, 'AED', 236, NULL, '', 'ASDFSDF', NULL, 'Unverified', 0),
(1228, 56, 'AED', NULL, 'My AED Certificate is here', '', 'asdf', NULL, 'Unverified', 1),
(1229, 56, 'Profession', 2, NULL, '', NULL, NULL, 'Unverified', 1),
(1230, 56, 'Profession', 3, NULL, '', NULL, NULL, 'Unverified', 1),
(1231, 56, 'Profession', 4, NULL, '', NULL, NULL, 'Unverified', 1),
(1232, 56, 'Profession', 5, NULL, '', NULL, NULL, 'Unverified', 1),
(1233, 56, 'Profession', 6, NULL, '', NULL, NULL, 'Unverified', 1),
(1234, 56, 'Degree', 3, NULL, '', NULL, NULL, 'Unverified', 1),
(1235, 56, 'Degree', 4, NULL, '', NULL, NULL, 'Unverified', 1),
(1236, 56, 'Activities', 1, NULL, '', NULL, NULL, 'Unverified', 1),
(1237, 56, 'Activities', 2, NULL, '', NULL, NULL, 'Unverified', 1),
(1238, 56, 'Activities', 5, NULL, '', NULL, NULL, 'Unverified', 1),
(1239, 56, 'Activities', 20, NULL, '', NULL, NULL, 'Unverified', 1),
(1240, 56, 'Activities', 21, NULL, '', NULL, NULL, 'Unverified', 1),
(1241, 56, 'Specialties', 6, NULL, '', NULL, NULL, 'Unverified', 1),
(1242, 56, 'Specialties', 7, NULL, '', NULL, NULL, 'Unverified', 1),
(1243, 56, 'Specialties', 8, NULL, '', NULL, NULL, 'Unverified', 1),
(1244, 56, 'Specialties', 9, NULL, '', NULL, NULL, 'Unverified', 1),
(1245, 56, 'Specialties', 10, NULL, '', NULL, NULL, 'Unverified', 1),
(1246, 56, 'Specialties', 11, NULL, '', NULL, NULL, 'Unverified', 1),
(1247, 56, 'Specialties', 12, NULL, '', NULL, NULL, 'Unverified', 1),
(1248, 56, 'Specialties', 13, NULL, '', NULL, NULL, 'Unverified', 1),
(1249, 56, 'Specialties', 14, NULL, '', NULL, NULL, 'Unverified', 1),
(1250, 56, 'Specialties', 15, NULL, '', NULL, NULL, 'Unverified', 1),
(1251, 56, 'Specialties', 24, NULL, '', NULL, NULL, 'Unverified', 1),
(1252, 56, 'Specialties', 43, NULL, '', NULL, NULL, 'Unverified', 1),
(1253, 60, 'Trainning', 5, 'Health & Fitness Certificate', '', 'sdf/sdfsd.pdf', NULL, 'Verified', 1),
(1254, 60, 'Trainning', 5, 'Health & Fitness Certificate', '', 'sdf/sdfsd.pdf', NULL, 'Unverified', 1),
(1255, 60, 'CPR', 5, NULL, '', 'fasd', NULL, 'Unverified', 1),
(1256, 60, 'CPR', 58554, 'My CPR Certificate', '', NULL, NULL, 'Unverified', 1),
(1257, 60, 'AED', 236, NULL, '', 'ASDFSDF', NULL, 'Unverified', 0),
(1258, 60, 'AED', NULL, 'My AED Certificate is here', '', 'asdf', NULL, 'Unverified', 1),
(1464, 41, 'Trainning', 120, '', '', 'nutrition/certificate/training/41_1380346145.jpg', '', 'Unverified', 1),
(1466, 41, 'Trainning', 10, '', '', '', '', 'Unverified', 1),
(1474, 41, 'Trainning', 12, '', '', '', '123456', 'Unverified', 0),
(1476, 41, 'Trainning', 11, '', '', 'nutrition/certificate/training/41_1359547359.jpg', '34234', 'Unverified', 1),
(1478, 41, 'Trainning', 99, '', '', 'nutrition/certificate/training/41_1359548406.pdf', '123456', 'Unverified', 1),
(1479, 41, 'Trainning', 15, '', '', '', '', 'Unverified', 0),
(1488, 41, 'Trainning', 9, '', '', 'nutrition/certificate/training/41_1359620838.jpg', '', 'Unverified', 0),
(1489, 41, 'Trainning', 9, '', '', 'nutrition/certificate/training/41_1380346339.jpg', '123456', 'Unverified', 1),
(2921, 41, 'Trainning', 941, '', '', 'nutrition/certificate/training/41_1360830040.jpg', 'Sachin''s Test', 'Verified', 1),
(2922, 41, 'Trainning', 11, '', '', 'nutrition/certificate/training/41_1360830371.pdf', '4444', 'Verified', 1),
(3666, 71, 'Trainning', 10, '', '', 'nutrition/certificate/training/71_1370245511.jpg', '123456', 'Verified', 1),
(3709, 72, 'Profession', 2, NULL, '', NULL, NULL, 'Unverified', 1),
(3710, 72, 'Profession', 4, NULL, '', NULL, NULL, 'Unverified', 1),
(3711, 72, 'Profession', 5, NULL, '', NULL, NULL, 'Unverified', 1),
(3712, 72, 'Profession', 7, NULL, '', NULL, NULL, 'Unverified', 1),
(3713, 72, 'Profession', 8, NULL, '', NULL, NULL, 'Unverified', 1),
(3714, 72, 'Profession', 14, NULL, '', NULL, NULL, 'Unverified', 1),
(3715, 72, 'Profession', 17, NULL, '', NULL, NULL, 'Unverified', 1),
(3716, 72, 'Degree', 4, NULL, '', NULL, NULL, 'Unverified', 1),
(3717, 72, 'Degree', 6, NULL, '', NULL, NULL, 'Unverified', 1),
(3718, 72, 'Degree', 7, NULL, '', NULL, NULL, 'Unverified', 1),
(3719, 72, 'Degree', 37, NULL, '', NULL, NULL, 'Unverified', 1),
(3720, 72, 'Degree', 39, NULL, '', NULL, NULL, 'Unverified', 1),
(3721, 72, 'Degree', 40, NULL, '', NULL, NULL, 'Unverified', 1),
(3722, 72, 'Activities', 3, NULL, '', NULL, NULL, 'Unverified', 1),
(3723, 72, 'Activities', 6, NULL, '', NULL, NULL, 'Unverified', 1),
(3724, 72, 'Activities', 7, NULL, '', NULL, NULL, 'Unverified', 1),
(3725, 72, 'Activities', 8, NULL, '', NULL, NULL, 'Unverified', 1),
(3726, 72, 'Activities', 22, NULL, '', NULL, NULL, 'Unverified', 1),
(3727, 72, 'Activities', 23, NULL, '', NULL, NULL, 'Unverified', 1),
(3728, 72, 'Activities', 39, NULL, '', NULL, NULL, 'Unverified', 1),
(3729, 72, 'Activities', 42, NULL, '', NULL, NULL, 'Unverified', 1),
(3730, 72, 'Activities', 52, NULL, '', NULL, NULL, 'Unverified', 1),
(3731, 72, 'Activities', 54, NULL, '', NULL, NULL, 'Unverified', 1),
(3732, 72, 'Activities', 56, NULL, '', NULL, NULL, 'Unverified', 1),
(3733, 72, 'Activities', 58, NULL, '', NULL, NULL, 'Unverified', 1),
(3734, 72, 'Specialties', 0, NULL, '', NULL, NULL, 'Unverified', 1),
(3735, 72, 'Trainning', 9, '', '', '', '', 'Verified', 1),
(3736, 72, 'Trainning', 0, 'Base Training', '', '', '', 'Verified', 1),
(3737, 72, 'CPR', 4, '', '', '', '12345', 'Verified', 1),
(3738, 72, 'CPR', 7, '', '', '', '4555', 'Verified', 1),
(3739, 72, 'AED', 37, '', '', '', '666', 'Verified', 1),
(3740, 70, 'Profession', 1, NULL, '', NULL, NULL, 'Unverified', 1),
(3741, 70, 'Profession', 4, NULL, '', NULL, NULL, 'Unverified', 1),
(3742, 70, 'Profession', 6, NULL, '', NULL, NULL, 'Unverified', 1),
(3743, 70, 'Profession', 7, NULL, '', NULL, NULL, 'Unverified', 1),
(3744, 70, 'Profession', 15, NULL, '', NULL, NULL, 'Unverified', 1),
(3745, 70, 'Profession', 17, NULL, '', NULL, NULL, 'Unverified', 1),
(3746, 70, 'Degree', 3, NULL, '', NULL, NULL, 'Unverified', 1),
(3747, 70, 'Degree', 5, NULL, '', NULL, NULL, 'Unverified', 1),
(3748, 70, 'Degree', 6, NULL, '', NULL, NULL, 'Unverified', 1),
(3749, 70, 'Degree', 8, NULL, '', NULL, NULL, 'Unverified', 1),
(3750, 70, 'Degree', 23, NULL, '', NULL, NULL, 'Unverified', 1),
(3751, 70, 'Degree', 25, NULL, '', NULL, NULL, 'Unverified', 1),
(3752, 70, 'Activities', 3, NULL, '', NULL, NULL, 'Unverified', 1),
(3753, 70, 'Activities', 5, NULL, '', NULL, NULL, 'Unverified', 1),
(3754, 70, 'Activities', 6, NULL, '', NULL, NULL, 'Unverified', 1),
(3755, 70, 'Activities', 7, NULL, '', NULL, NULL, 'Unverified', 1),
(3756, 70, 'Activities', 17, NULL, '', NULL, NULL, 'Unverified', 1),
(3757, 70, 'Activities', 19, NULL, '', NULL, NULL, 'Unverified', 1),
(3758, 70, 'Activities', 35, NULL, '', NULL, NULL, 'Unverified', 1),
(3759, 70, 'Activities', 38, NULL, '', NULL, NULL, 'Unverified', 1),
(3760, 70, 'Activities', 55, NULL, '', NULL, NULL, 'Unverified', 1),
(3761, 70, 'Activities', 57, NULL, '', NULL, NULL, 'Unverified', 1),
(3762, 70, 'Specialties', 49, NULL, '', NULL, NULL, 'Unverified', 1),
(3763, 70, 'Trainning', 12, '', '', '', '', 'Unverified', 1),
(3764, 70, 'CPR', 7, '', '', '', '', 'Unverified', 1),
(3765, 70, 'AED', 7, '', '', '', '', 'Unverified', 1),
(3767, 41, 'Trainning', 46, '', '', '', '', 'Unverified', 0),
(3770, 41, 'Trainning', 47, '', '', '', '', 'Unverified', 0),
(3773, 41, 'AED', 48, '', '', '', '', 'Unverified', 1),
(3778, 41, 'AED', 5, '', '', 'nutrition/certificate/aed/41_1370839294.png', '', 'Unverified', 1),
(3933, 60, 'Profession', 3, NULL, '', NULL, NULL, 'Unverified', 1),
(3934, 60, 'Profession', 4, NULL, '', NULL, NULL, 'Unverified', 1),
(3935, 60, 'Degree', 3, NULL, '', NULL, NULL, 'Unverified', 1),
(3936, 60, 'Degree', 4, NULL, '', NULL, NULL, 'Unverified', 1),
(3937, 60, 'Activities', 3, NULL, '', NULL, NULL, 'Unverified', 1),
(3938, 60, 'Activities', 4, NULL, '', NULL, NULL, 'Unverified', 1),
(3939, 60, 'Activities', 5, NULL, '', NULL, NULL, 'Unverified', 1),
(3940, 60, 'Activities', 6, NULL, '', NULL, NULL, 'Unverified', 1),
(3941, 60, 'Activities', 20, NULL, '', NULL, NULL, 'Unverified', 1),
(3942, 60, 'Activities', 21, NULL, '', NULL, NULL, 'Unverified', 1),
(3943, 60, 'Specialties', 43, NULL, '', NULL, NULL, 'Unverified', 1),
(4454, 41, 'Trainning', 10, '', '', 'nutrition/nutrition/certificate/training/41_1378733567.png', '12345', 'Unverified', 1),
(4456, 41, 'Trainning', 13, '', '', '', '', 'Unverified', 1),
(4461, 41, 'Trainning', 294, '', '', 'nutrition/certificate/training/41_1378734585.jpg', '5855', 'Unverified', 1),
(4463, 41, 'Trainning', 15, '', '', '', '', 'Unverified', 1),
(4464, 41, 'Trainning', 2, '', '', '', '', 'Unverified', 1),
(4467, 41, 'Trainning', 75, '', '', '', '', 'Unverified', 1),
(4468, 41, 'Trainning', 31, '', '', '', '', 'Unverified', 1),
(4472, 41, 'Trainning', 16, '', '', '', '', 'Unverified', 1),
(4477, 41, 'Trainning', 12, 'abc type', '', '', '582', 'Unverified', 1),
(4479, 41, 'Trainning', 28, '', '', '', '582', 'Unverified', 1),
(4480, 41, 'Trainning', 7, 'xyz', '', '', '582', 'Unverified', 1),
(4481, 41, 'Trainning', 5, 'My other V', '', 'nutrition/certificate/training/41_1378792750.jpg', '123456', 'Unverified', 1),
(4486, 41, 'Trainning', 680, '', '', 'nutrition/certificate/training/41_1378804952.gif', '', 'Unverified', 1),
(4487, 41, 'Trainning', 313, '', '', 'nutrition/certificate/training/41_1378805045.jpg', '123456', 'Unverified', 0),
(4488, 41, 'Trainning', 4, '2555', '', '', '', 'Unverified', 1),
(4525, 41, 'Trainning', 184, '', '', '../nutrition/certificate/training/41_1378817910.pdf', '1234', 'Unverified', 1),
(4526, 41, 'Trainning', 10, '', '', '', '', 'Unverified', 1),
(4527, 41, 'Trainning', 10, '', '', '', '', 'Unverified', 0),
(4528, 41, 'Trainning', 1, '', '', '', '', 'Unverified', 1),
(4532, 41, 'AED', 10, '', '', 'nutrition/../nutrition/certificate/cpr/41_1378878690.jpg', 'qw', 'Unverified', 1),
(4533, 41, 'AED', 0, 'My other Agency', '', 'nutrition/../nutrition/certificate/cpr/41_1378878889.jpeg', '1234', 'Unverified', 1),
(4534, 41, 'AED', 18, '', '', 'nutrition/../nutrition/certificate/cpr/41_1378878942.jpg', '34', 'Unverified', 1),
(4535, 41, 'AED', 17, '', '', '', '', 'Unverified', 1),
(4536, 41, 'AED', 6, '', '', 'nutrition/../nutrition/certificate/cpr/41_1380367571.jpg', '44', 'Unverified', 1),
(4550, 41, 'AED', 7, '', '', '', '', 'Unverified', 1),
(4551, 41, 'AED', 5, '', '', '', '', 'Unverified', 1),
(4552, 41, 'AED', 15, '', '', '', '', 'Unverified', 1),
(4553, 41, 'AED', 5, '', '', '', '', 'Unverified', 1),
(4554, 41, 'AED', 5, '', '', '', '', 'Unverified', 1),
(4555, 41, 'AED', 3, '', '', '', '', 'Unverified', 1),
(4556, 41, 'AED', 4, '', '', '', '', 'Unverified', 1),
(4557, 41, 'AED', 4, '', '', '', '', 'Unverified', 1),
(4558, 41, 'AED', 0, 'My Agency', '', 'nutrition/../nutrition/certificate/cpr/41_1378889346.jpg', '1254', 'Unverified', 1),
(4560, 41, 'AED', 72, '', '', 'nutrition/../nutrition/certificate/cpr/41_1378890167.jpg', '', 'Unverified', 1),
(4561, 41, 'AED', 6, '', '', '', '', 'Unverified', 1),
(4562, 41, 'Trainning', 1, '', '', '../nutrition/certificate/training/41_1378894824.jpeg', '', 'Unverified', 0),
(4563, 41, 'Trainning', 9, '', '', '', '', 'Unverified', 0),
(4564, 41, 'AED', 12, '', '', '', '', 'Unverified', 1),
(4566, 41, 'CPR', 13, '', '', '', '', 'Unverified', 0),
(4567, 41, 'AED', 6, '', '', '', '', 'Unverified', 1),
(4570, 41, 'Trainning', 9, '', '', '../nutrition/certificate/training/41_1379504549.jpg', 'sdfsad', 'Unverified', 0),
(4571, 41, 'Trainning', 4, '', '', 'nutrition/certificate/training/41_1379504700.png', '76', 'Unverified', 1),
(4587, 41, 'Trainning', 10, '', '', 'nutrition/certificate/training/41_1379765710.jpg', '', 'Unverified', 1),
(4636, 41, 'Trainning', 253, 'Test Cert', '', '', '123456', 'Unverified', 1),
(4637, 41, 'Trainning', 0, 'Its Other', 'My Other Agency', '', '45621', 'Unverified', 1),
(4639, 41, 'Trainning', 4, '', '', '', '', 'Unverified', 1),
(4640, 41, 'Trainning', 5, '', '', '', '', 'Unverified', 1),
(4642, 41, 'CPR', 0, 'my other agency', '', '', '1345679i', 'Unverified', 1),
(4643, 41, 'CPR', 2571, '', '', '', '', 'Unverified', 1),
(4656, 41, 'CPR', 18, '', '', '', '', 'Unverified', 1),
(4819, 92, 'Profession', 5, NULL, '', NULL, NULL, 'Unverified', 1),
(4820, 92, 'Profession', 9, NULL, '', NULL, NULL, 'Unverified', 1),
(4821, 92, 'Degree', 4, NULL, '', NULL, NULL, 'Unverified', 1),
(4822, 92, 'Degree', 5, NULL, '', NULL, NULL, 'Unverified', 1),
(4823, 92, 'Degree', 7, NULL, '', NULL, NULL, 'Unverified', 1),
(4824, 92, 'Activities', 3, NULL, '', NULL, NULL, 'Unverified', 1),
(4825, 92, 'Activities', 8, NULL, '', NULL, NULL, 'Unverified', 1),
(4826, 92, 'Specialties', 3, NULL, '', NULL, NULL, 'Unverified', 1),
(4827, 92, 'Specialties', 7, NULL, '', NULL, NULL, 'Unverified', 1),
(4828, 92, 'Trainning', 9, '', '', '', '123', 'Unverified', 1),
(4829, 92, 'Trainning', 11, '', '', '', '', 'Unverified', 1),
(4830, 92, 'CPR', 3, '', '', '', '1234', 'Unverified', 1),
(4831, 92, 'AED', 3, '', '', '', '', 'Unverified', 1),
(4832, 92, 'AED', 3, '', '', '', '123', 'Unverified', 1),
(4850, 67, 'Trainning', 4, '', '', '', '', 'Unverified', 1),
(4851, 67, 'Trainning', 9, '', '', '', '', 'Unverified', 1),
(4853, 67, 'Trainning', 1, '', '', '', '', 'Unverified', 1),
(4854, 67, 'AED', 3, '', '', '', '12251', 'Unverified', 1),
(4855, 67, 'Profession', 4, NULL, '', NULL, NULL, 'Unverified', 1),
(4856, 67, 'Profession', 5, NULL, '', NULL, NULL, 'Unverified', 1),
(4857, 67, 'Profession', 6, NULL, '', NULL, NULL, 'Unverified', 1),
(4858, 67, 'Degree', 4, NULL, '', NULL, NULL, 'Unverified', 1),
(4859, 67, 'Degree', 5, NULL, '', NULL, NULL, 'Unverified', 1),
(4860, 67, 'Degree', 6, NULL, '', NULL, NULL, 'Unverified', 1),
(4861, 67, 'Activities', 4, NULL, '', NULL, NULL, 'Unverified', 1),
(4862, 67, 'Activities', 5, NULL, '', NULL, NULL, 'Unverified', 1),
(4863, 67, 'Activities', 6, NULL, '', NULL, NULL, 'Unverified', 1),
(4864, 67, 'Activities', 7, NULL, '', NULL, NULL, 'Unverified', 1),
(4865, 67, 'Specialties', 4, NULL, '', NULL, NULL, 'Unverified', 1),
(4866, 67, 'Specialties', 5, NULL, '', NULL, NULL, 'Unverified', 1),
(4867, 67, 'Specialties', 7, NULL, '', NULL, NULL, 'Unverified', 1),
(4951, 41, 'Trainning', 1, 'Test', '', '', 'erte', 'Unverified', 1),
(4952, 71, 'Profession', 3, NULL, '', NULL, NULL, 'Unverified', 1),
(4953, 71, 'Profession', 5, NULL, '', NULL, NULL, 'Unverified', 1),
(4954, 71, 'Profession', 6, NULL, '', NULL, NULL, 'Unverified', 1),
(4955, 71, 'Profession', 7, NULL, '', NULL, NULL, 'Unverified', 1),
(4956, 71, 'Profession', 8, NULL, '', NULL, NULL, 'Unverified', 1),
(4957, 71, 'Degree', 3, NULL, '', NULL, NULL, 'Unverified', 1),
(4958, 71, 'Activities', 3, NULL, '', NULL, NULL, 'Unverified', 1),
(4959, 71, 'Activities', 4, NULL, '', NULL, NULL, 'Unverified', 1),
(4960, 71, 'Activities', 5, NULL, '', NULL, NULL, 'Unverified', 1),
(4961, 71, 'Specialties', 4, NULL, '', NULL, NULL, 'Unverified', 1),
(4962, 71, 'Specialties', 5, NULL, '', NULL, NULL, 'Unverified', 1),
(4963, 71, 'Specialties', 7, NULL, '', NULL, NULL, 'Unverified', 1),
(4964, 71, 'Specialties', 11, NULL, '', NULL, NULL, 'Unverified', 1),
(4975, 93, 'Trainning', 4, '', '', '', '23', 'Unverified', 1),
(4976, 93, 'Profession', 3, NULL, '', NULL, NULL, 'Unverified', 1),
(4977, 93, 'Profession', 7, NULL, '', NULL, NULL, 'Unverified', 1),
(4978, 93, 'Degree', 5, NULL, '', NULL, NULL, 'Unverified', 1),
(4979, 93, 'Degree', 6, NULL, '', NULL, NULL, 'Unverified', 1),
(4980, 93, 'Degree', 7, NULL, '', NULL, NULL, 'Unverified', 1),
(4981, 93, 'Activities', 3, NULL, '', NULL, NULL, 'Unverified', 1),
(4982, 93, 'Activities', 4, NULL, '', NULL, NULL, 'Unverified', 1),
(4983, 93, 'Activities', 6, NULL, '', NULL, NULL, 'Unverified', 1),
(4984, 93, 'Specialties', 4, NULL, '', NULL, NULL, 'Unverified', 1),
(4985, 93, 'Specialties', 5, NULL, '', NULL, NULL, 'Unverified', 1),
(4990, 98, 'Trainning', 5, '', '', '', '', 'Unverified', 1),
(4992, 98, 'CPR', 4, '', '', 'nutrition/certificate/cpr/98_14012838649381.jpg', '12456', 'Unverified', 1),
(4993, 98, 'CPR', 4, '', '', 'nutrition/certificate/cpr/98_14012748719211.jpg', '123', 'Unverified', 0),
(4998, 98, 'Trainning', 1, '', '', 'nutrition/certificate/training/98_14012789492141.jpg', '1452', 'Unverified', 1),
(4999, 98, 'Trainning', 12, '', '', 'nutrition/certificate/training/98_14012791976541.jpg', '256', 'Unverified', 1),
(5000, 98, 'CPR', 3, '', '', 'nutrition/certificate/cpr/98_14012795086241.jpg', 'dasd', 'Unverified', 1),
(5019, 41, 'Profession', 3, NULL, '', NULL, NULL, 'Unverified', 1),
(5020, 41, 'Degree', 8, NULL, '', NULL, NULL, 'Unverified', 1),
(5021, 41, 'Degree', 9, NULL, '', NULL, NULL, 'Unverified', 1),
(5022, 41, 'Degree', 12, NULL, '', NULL, NULL, 'Unverified', 1),
(5023, 41, 'Activities', 3, NULL, '', NULL, NULL, 'Unverified', 1),
(5024, 41, 'Activities', 4, NULL, '', NULL, NULL, 'Unverified', 1),
(5025, 41, 'Activities', 7, NULL, '', NULL, NULL, 'Unverified', 1),
(5026, 41, 'Activities', 14, NULL, '', NULL, NULL, 'Unverified', 1),
(5027, 41, 'Specialties', 2, NULL, '', NULL, NULL, 'Unverified', 1),
(5028, 41, 'Specialties', 7, NULL, '', NULL, NULL, 'Unverified', 1),
(5029, 98, 'AED', 2, '', '', 'nutrition/certificate/cpr/98_14012835205691.jpg', '122', 'Unverified', 1),
(5030, 98, 'Profession', 2, NULL, '', NULL, NULL, 'Unverified', 1),
(5031, 98, 'Profession', 6, NULL, '', NULL, NULL, 'Unverified', 1),
(5032, 98, 'Degree', 4, NULL, '', NULL, NULL, 'Unverified', 1),
(5033, 98, 'Degree', 5, NULL, '', NULL, NULL, 'Unverified', 1),
(5034, 98, 'Activities', 3, NULL, '', NULL, NULL, 'Unverified', 1),
(5035, 98, 'Activities', 4, NULL, '', NULL, NULL, 'Unverified', 1),
(5036, 98, 'Specialties', 3, NULL, '', NULL, NULL, 'Unverified', 1),
(5037, 98, 'Specialties', 5, NULL, '', NULL, NULL, 'Unverified', 1),
(5038, 41, 'Trainning', 13, '', '', '', '', 'Unverified', 1),
(5040, 41, 'Trainning', 6, '', '', '', '', 'Unverified', 1),
(5045, 41, 'Trainning', 10, '', '', '', '', 'Unverified', 1),
(5046, 41, 'Trainning', 29, '', '', '', '', 'Unverified', 1),
(5048, 41, 'Trainning', 2, 'Other Type', '', '', 'Testing', 'Unverified', 1),
(5049, 41, 'Trainning', 9, '', '', 'nutrition/certificate/training/tr_41_peL7KSFtfXs9jwpTWcd9.jpg', 'Test', 'Unverified', 1),
(5050, 41, 'Trainning', 9, '', '', '', 'fgfg', 'Unverified', 1),
(5052, 41, 'CPR', 3, '', '', '', '123456', 'Unverified', 1),
(5055, 41, 'CPR', 6, '', '', '', '12345', 'Unverified', 1),
(5056, 41, 'CPR', 8, '', '', '', '', 'Unverified', 1),
(5057, 41, 'CPR', 8, '', '', 'nutrition/certificate/cpr/cpr_41_CmNwg8EopTpgMZBbDgaK.pdf', '32112', 'Unverified', 1),
(5058, 41, 'CPR', 7, '', '', 'nutrition/certificate/cpr/cpr_41_7KY2iAEtDgxR8klwbTih.pdf', '12345', 'Unverified', 1),
(5059, 41, 'CPR', 4, '', '', 'nutrition/certificate/cpr/cpr_41_YkfskMXn64IiuUzNhIX2.pdf', '32117', 'Unverified', 1),
(5064, 41, 'CPR', 2, '', '', 'nutrition/certificate/cpr/cpr_41_AaqRidgEpjxCT6Z6eBNX.pdf', '123456', 'Unverified', 1),
(5065, 41, 'AED', 0, 'Test1', '', 'nutrition/certificate/cpr/cpr_41_mtKuMN2BrbkBQETmURsc.pdf', '111', 'Unverified', 1),
(5066, 41, 'AED', 0, 'Agency Other', '', 'nutrition/certificate/cpr/cpr_41_ej5FabQaakCrX9RBKpxf.jpg', '321654', 'Unverified', 1),
(5067, 98, 'Trainning', 4, '', '', 'nutrition/certificate/training/tr_98_Ewg3TShG7DNjgmziNbLq.jpg', '', 'Unverified', 1);

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

--
-- Table structure for table `th_coach_client_sessions`
--

CREATE TABLE IF NOT EXISTS `th_coach_client_sessions` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `sess_type` varchar(15) DEFAULT 'Individual' COMMENT 'Individual,Group',
  `ref_id` int(10) DEFAULT '0' COMMENT 'id in tc_coach_group_session',
  `session_type` varchar(100) NOT NULL,
  `inv_id` varchar(20) NOT NULL,
  `rgs_id_fkx` int(10) unsigned NOT NULL,
  `user_id_fkx` int(11) NOT NULL,
  `plan_id` int(11) DEFAULT NULL,
  `session_status` varchar(10) DEFAULT 'Pending' COMMENT 'Pending, Alloted, Done, Cancel',
  `sdate` timestamp NULL DEFAULT CURRENT_TIMESTAMP,
  `appointment_date` date NOT NULL,
  `appointment_time` time NOT NULL,
  `appointment_time_to` time DEFAULT NULL,
  `appointment_venue_id` varchar(10) DEFAULT NULL,
  `appointment_venue` text NOT NULL,
  `appointment_purpose` varchar(255) DEFAULT NULL,
  `allotment_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `reschedule_request` varchar(4) DEFAULT 'NO' COMMENT 'YES or NO',
  `rsh_reason` text,
  `sess_feedback` text,
  PRIMARY KEY (`id`),
  KEY `rgs_id_fkx` (`rgs_id_fkx`)
) ENGINE=InnoDB  DEFAULT CHARSET=latin1 AUTO_INCREMENT=114 ;

--
-- Dumping data for table `th_coach_client_sessions`
--

INSERT INTO `th_coach_client_sessions` (`id`, `sess_type`, `ref_id`, `session_type`, `inv_id`, `rgs_id_fkx`, `user_id_fkx`, `plan_id`, `session_status`, `sdate`, `appointment_date`, `appointment_time`, `appointment_time_to`, `appointment_venue_id`, `appointment_venue`, `appointment_purpose`, `allotment_date`, `reschedule_request`, `rsh_reason`, `sess_feedback`) VALUES
(4, 'Individual', 0, '1:0', 'INV1-41-0001', 1, 41, 3, 'Done', '2013-10-11 11:45:05', '2013-10-23', '13:05:00', NULL, '22', 'ABC, 123, SCHENECTADY NY', 'Nutrition Planning', '2013-10-21 12:32:00', 'NO', NULL, 'Test2'),
(10, 'Individual', 0, '0:45', 'INV1-41-0005', 1, 41, 3, 'Done', '2013-10-11 12:30:30', '2014-01-09', '09:30:00', NULL, '20', 'Gold Gyms , Mahanagar Lucknow, LIVINGSTON NY', 'Nutrition Planning', '2014-01-04 09:53:00', 'NO', '', 'Test2'),
(12, 'Individual', 0, '0:45', 'INV1-41-0005', 1, 41, 3, 'Done', '2013-10-11 12:30:30', '2013-12-22', '10:00:00', NULL, '22', 'ABC, 123, SCHENECTADY NY', 'Yoga Training', '2013-12-14 13:51:00', 'YES', NULL, NULL),
(14, 'Individual', 0, '0:15', 'INV1-41-0006', 1, 41, 2, 'Done', '2013-10-11 12:47:41', '2014-03-26', '13:55:00', NULL, '7', 'sdfdsaf, sdfsdaf, NASSAU NY', 'Yoga Training', '2014-03-25 14:00:00', 'NO', '', NULL),
(15, 'Individual', 0, '1:0', 'INV1-41-0016', 1, 41, 3, 'Done', '2013-10-23 08:48:51', '2013-10-25', '14:00:00', NULL, '22', 'ABC, 123, SCHENECTADY NY', 'Yoga Training', '2013-10-24 12:59:00', 'NO', NULL, NULL),
(19, 'Individual', 0, '1:0', 'INV1-41-0016', 1, 41, 3, 'Done', '2013-10-23 08:48:51', '2013-10-28', '14:00:00', NULL, '38', 'Sky Line Fitness, Narayan Nagar, SCHENECTADY NY', 'Lower Body Workout', '2013-10-24 07:36:00', 'NO', NULL, NULL),
(20, 'Individual', 0, '1:0', 'INV1-41-0017', 1, 41, 3, 'Done', '2013-10-23 08:50:15', '2013-10-27', '09:00:00', NULL, '24', 'Raj Loc, 123445, SCHENECTADY NY', 'Nutrition Planning', '2013-10-24 09:25:00', 'NO', NULL, NULL),
(23, 'Individual', 0, '1:0', 'INV1-41-0017', 1, 41, 3, 'Done', '2013-10-23 08:50:15', '2013-10-30', '13:05:00', NULL, '22', 'ABC, 123, SCHENECTADY NY', 'Nutrition Planning', '2013-10-29 13:50:00', 'NO', NULL, NULL),
(24, 'Individual', 0, '1:30', 'INV1-41-0018', 1, 41, 3, 'Done', '2013-10-25 11:03:40', '2013-11-01', '11:00:00', NULL, '28', 'devesh, trtrtrtr, HOLTSVILLE NY', 'Nutrition Planning', '2013-10-30 11:48:00', 'YES', NULL, NULL),
(25, 'Individual', 0, '1:30', 'INV1-41-0018', 1, 41, 3, 'Done', '2013-10-25 11:03:40', '2013-11-12', '10:00:00', NULL, '27', 'Test Loc, tloc, SCHENECTADY NY', 'Yoga Training', '2013-11-08 09:15:00', 'NO', NULL, NULL),
(26, 'Individual', 0, '1:30', 'INV1-41-0018', 1, 41, 3, 'Done', '2013-10-25 11:03:40', '2013-10-30', '13:00:00', NULL, '27', 'Test Loc, tloc, SCHENECTADY NY', 'Nutrition Planning', '2013-10-29 13:50:00', 'YES', NULL, NULL),
(27, 'Individual', 0, '1:30', 'INV1-41-0018', 1, 41, 3, 'Done', '2013-10-25 11:03:40', '2013-11-02', '14:00:00', NULL, '37', 'abcdefg, abcdefg, SCHENECTADY NY', 'Nutrition Planning', '2013-10-30 11:50:00', 'NO', NULL, NULL),
(28, 'Individual', 0, '1:30', 'INV1-41-0018', 1, 41, 3, 'Done', '2013-10-25 11:03:40', '2013-12-28', '09:00:00', NULL, '22', 'ABC, 123, SCHENECTADY NY', 'Power Yoga', '2013-12-24 09:05:00', 'NO', NULL, NULL),
(29, 'Individual', 0, '2:0', 'INV1-41-0018', 1, 41, 3, 'Done', '2013-10-25 11:03:40', '2013-11-01', '14:00:00', NULL, '25', 'Skm loc, 123456, SCHENECTADY NY', 'Nutrition Planning', '2013-10-30 11:48:00', 'NO', NULL, NULL),
(31, 'Individual', 0, '2:10', 'INV1-41-0019', 1, 41, 3, 'Done', '2013-10-29 10:31:28', '2013-12-27', '09:00:00', NULL, '27', 'Test Loc, tloc, SCHENECTADY NY', 'Nutrition Planning', '2013-12-14 13:52:00', 'YES', NULL, NULL),
(41, 'Individual', 0, '1:0', 'INV1-41-0021', 1, 41, 3, 'Done', '2013-10-29 11:39:33', '2014-05-02', '08:00:00', NULL, '27', 'Test Loc, tloc, SCHENECTADY NY', 'Power Yoga', '2014-04-28 11:52:00', 'YES', 'a:4:{s:6:"reason";s:32:"Please Reschedule My appointment";s:10:"apnt_pref1";s:19:"05/03/2014 09:00 AM";s:10:"apnt_pref2";s:19:"05/06/2014 10:30 AM";s:10:"apnt_pref3";s:0:"";}', NULL),
(43, 'Individual', 0, '2:0', 'INV1-41-0022', 39, 41, 4, 'Done', '2013-10-31 06:08:28', '2014-01-08', '09:00:00', NULL, '22', 'ABC, 123, SCHENECTADY NY', 'Power Yoga', '2014-01-02 07:07:00', 'NO', '', NULL),
(44, 'Individual', 0, '2:0', 'INV1-41-0022', 39, 41, 4, 'Done', '2013-10-31 06:08:28', '2014-01-30', '09:00:00', NULL, '24', 'Raj Loc, 123445, SCHENECTADY NY', 'Power Yoga', '2014-01-02 05:52:00', 'NO', '', NULL),
(46, 'Group', 31, '', 'INV1-41-0022', 39, 41, 4, 'Done', '2013-10-31 06:08:28', '2013-11-08', '07:00:00', '11:00:00', '22', 'ABC, 123, SCHENECTADY NY', NULL, '2013-10-31 06:08:28', 'NO', NULL, NULL),
(47, 'Individual', 0, '2:10', 'INV1-41-0023', 1, 41, 3, 'Done', '2013-11-13 07:17:45', '2013-12-28', '06:00:00', NULL, '20', 'Gold Gyms , Mahanagar Lucknow, LIVINGSTON NY', 'Power Yoga', '2013-12-24 09:05:00', 'YES', 'a:4:{s:6:"reason";s:34:"Please Reschedule this Appointment";s:10:"apnt_pref1";s:16:"12/31/2013 13:25";s:10:"apnt_pref2";s:0:"";s:10:"apnt_pref3";s:0:"";}', NULL),
(48, 'Individual', 0, '2:10', 'INV1-41-0023', 1, 41, 3, 'Done', '2013-11-13 07:17:45', '2014-01-04', '07:00:00', NULL, '24', 'Raj Loc, 123445, SCHENECTADY NY', 'Yoga Training', '2014-01-01 12:09:00', 'NO', '', NULL),
(49, 'Individual', 0, '2:10', 'INV1-41-0023', 1, 41, 3, 'Done', '2013-11-13 07:17:45', '2014-01-23', '09:00:00', NULL, '27', 'Test Loc, tloc, SCHENECTADY NY', 'Nutrition Planning', '2014-01-02 05:52:00', 'NO', '', NULL),
(50, 'Individual', 0, '2:10', 'INV1-41-0023', 1, 41, 3, 'Done', '2013-11-13 07:17:45', '2014-01-08', '09:00:00', NULL, '27', 'Test Loc, tloc, SCHENECTADY NY', 'Yoga Training', '2014-01-04 09:46:00', 'NO', '', NULL),
(52, 'Group', 30, '', 'INV1-41-0023', 1, 41, 3, 'Done', '2013-11-13 07:17:45', '2013-11-14', '08:00:00', '10:30:00', '22', 'ABC, 123, SCHENECTADY NY', NULL, '2013-11-13 07:17:45', 'NO', NULL, NULL),
(53, 'Individual', 0, '6:0', 'INV1-41-0027', 1, 41, 3, 'Done', '2013-11-13 10:34:57', '2014-01-05', '05:00:00', NULL, '22', 'ABC, 123, SCHENECTADY NY', 'Power Yoga', '2014-01-01 12:10:00', 'NO', '', NULL),
(54, 'Individual', 0, '6:0', 'INV1-41-0027', 1, 41, 3, 'Pending', '2013-11-13 10:34:57', '0000-00-00', '00:00:00', NULL, NULL, '', NULL, '0000-00-00 00:00:00', 'YES', NULL, NULL),
(55, 'Individual', 0, '1:0', 'INV1-41-0028', 1, 41, 3, 'Done', '2013-11-13 10:36:02', '2013-12-26', '10:00:00', NULL, '24', 'Raj Loc, 123445, SCHENECTADY NY', 'Yoga Training', '2013-12-24 09:05:00', 'NO', NULL, NULL),
(56, 'Individual', 0, '1:0', 'INV1-41-0028', 1, 41, 3, 'Done', '2013-11-13 10:36:02', '2014-01-09', '09:00:00', NULL, '22', 'ABC, 123, SCHENECTADY NY', 'Yoga Training', '2014-01-04 09:46:00', 'NO', '', NULL),
(57, 'Individual', 0, '1:0', 'INV1-41-0028', 1, 41, 3, 'Done', '2013-11-13 10:36:02', '2014-05-30', '09:55:00', NULL, '22', 'ABC, 123, SCHENECTADY NY', 'Yoga Training', '2014-05-26 10:44:00', 'NO', '', NULL),
(58, 'Individual', 0, '1:0', 'INV1-41-0028', 1, 41, 3, 'Done', '2013-11-13 10:36:02', '2014-06-13', '08:55:00', NULL, '22', 'ABC, 123, SCHENECTADY NY', 'Yoga Training', '2014-06-11 08:56:00', 'NO', '', NULL),
(59, 'Individual', 0, '2:0', 'INV1-41-0036', 1, 41, 3, 'Done', '2013-12-06 04:30:20', '2014-06-19', '09:00:00', NULL, '20', 'Gold Gyms , Mahanagar Lucknow, LIVINGSTON NY', 'Yoga Training', '2014-06-18 13:54:00', 'NO', '', NULL),
(60, 'Individual', 0, '2:0', 'INV1-41-0036', 1, 41, 3, 'Done', '2013-12-06 04:30:20', '2014-05-01', '09:30:00', NULL, '20', 'Gold Gyms , Mahanagar Lucknow, LIVINGSTON NY', 'Nutrition Planning', '2014-04-28 11:53:00', 'NO', '', NULL),
(61, 'Individual', 0, '2:0', 'INV1-41-0037', 1, 41, 3, 'Done', '2013-12-06 04:33:10', '2014-07-23', '14:30:00', NULL, '22', 'ABC, 123, SCHENECTADY NY', 'Power Yoga', '2014-07-16 07:07:00', 'NO', '', NULL),
(62, 'Individual', 0, '2:0', 'INV1-41-0037', 1, 41, 3, 'Pending', '2013-12-06 04:33:10', '0000-00-00', '00:00:00', NULL, NULL, '', NULL, '0000-00-00 00:00:00', 'NO', NULL, NULL),
(63, 'Individual', 0, '2:0', 'INV1-41-0038', 1, 41, 3, 'Done', '2013-12-06 04:35:54', '2014-07-25', '05:30:00', NULL, '24', 'Raj Loc, 123445, SCHENECTADY NY', 'Yoga Training', '2014-07-18 08:02:00', 'NO', '', NULL),
(64, 'Individual', 0, '2:0', 'INV1-41-0038', 1, 41, 3, 'Alloted', '2013-12-06 04:35:54', '2016-04-15', '09:00:00', NULL, '22', 'ABC, 123, SCHENECTADY NY', 'Yoga Training', '2016-04-09 10:27:00', 'NO', '', NULL),
(65, 'Individual', 0, '2:0', 'INV1-41-0038', 1, 41, 3, 'Pending', '2013-12-06 04:35:54', '0000-00-00', '00:00:00', NULL, NULL, '', NULL, '0000-00-00 00:00:00', 'NO', NULL, NULL),
(66, 'Individual', 0, '2:0', 'INV1-41-0038', 1, 41, 3, 'Pending', '2013-12-06 04:35:54', '0000-00-00', '00:00:00', NULL, NULL, '', NULL, '0000-00-00 00:00:00', 'NO', NULL, NULL),
(67, 'Individual', 0, '2:0', 'INV1-41-0038', 1, 41, 3, 'Pending', '2013-12-06 04:35:54', '0000-00-00', '00:00:00', NULL, NULL, '', NULL, '0000-00-00 00:00:00', 'NO', NULL, NULL),
(68, 'Individual', 0, '1:0', 'INV1-41-0039', 1, 41, 3, 'Pending', '2013-12-06 04:54:09', '0000-00-00', '00:00:00', NULL, NULL, '', NULL, '0000-00-00 00:00:00', 'NO', NULL, NULL),
(69, 'Individual', 0, '1:0', 'INV1-41-0039', 1, 41, 3, 'Pending', '2013-12-06 04:54:09', '0000-00-00', '00:00:00', NULL, NULL, '', NULL, '0000-00-00 00:00:00', 'NO', NULL, NULL),
(70, 'Individual', 0, '3:0', 'INV1-41-0040', 1, 41, 3, 'Pending', '2013-12-06 04:57:33', '0000-00-00', '00:00:00', NULL, NULL, '', NULL, '0000-00-00 00:00:00', 'NO', NULL, NULL),
(71, 'Individual', 0, '3:0', 'INV1-41-0040', 1, 41, 3, 'Pending', '2013-12-06 04:57:33', '0000-00-00', '00:00:00', NULL, NULL, '', NULL, '0000-00-00 00:00:00', 'NO', NULL, NULL),
(72, 'Individual', 0, '3:0', 'INV1-41-0040', 1, 41, 3, 'Pending', '2013-12-06 04:57:33', '0000-00-00', '00:00:00', NULL, NULL, '', NULL, '0000-00-00 00:00:00', 'NO', NULL, NULL),
(73, 'Individual', 0, '3:0', 'INV1-41-0040', 1, 41, 3, 'Pending', '2013-12-06 05:01:53', '0000-00-00', '00:00:00', NULL, NULL, '', NULL, '0000-00-00 00:00:00', 'NO', NULL, NULL),
(74, 'Individual', 0, '3:0', 'INV1-41-0040', 1, 41, 3, 'Pending', '2013-12-06 05:01:53', '0000-00-00', '00:00:00', NULL, NULL, '', NULL, '0000-00-00 00:00:00', 'NO', NULL, NULL),
(75, 'Individual', 0, '3:0', 'INV1-41-0040', 1, 41, 3, 'Pending', '2013-12-06 05:01:53', '0000-00-00', '00:00:00', NULL, NULL, '', NULL, '0000-00-00 00:00:00', 'NO', NULL, NULL),
(76, 'Individual', 0, '1:0', 'INV1-41-0044', 1, 41, 3, 'Pending', '2013-12-06 08:56:47', '0000-00-00', '00:00:00', NULL, NULL, '', NULL, '0000-00-00 00:00:00', 'NO', NULL, NULL),
(77, 'Individual', 0, '1:0', 'INV1-41-0044', 1, 41, 3, 'Pending', '2013-12-06 08:56:47', '0000-00-00', '00:00:00', NULL, NULL, '', NULL, '0000-00-00 00:00:00', 'NO', NULL, NULL),
(78, 'Group', 35, '', 'INV1-41-0045', 1, 41, 3, 'Done', '2013-12-24 09:30:31', '2013-12-28', '09:00:00', '10:30:00', '25', 'Skm loc, 123456, SCHENECTADY NY', NULL, '2013-12-24 09:30:31', 'NO', NULL, NULL),
(79, 'Individual', 0, '3:0', 'INV1-41-0046', 1, 41, 7, 'Pending', '2014-01-06 12:44:08', '0000-00-00', '00:00:00', NULL, NULL, '', NULL, '0000-00-00 00:00:00', 'NO', NULL, NULL),
(80, 'Individual', 0, '2:10', 'INV1-41-0049', 1, 41, 7, 'Done', '2014-01-10 05:51:42', '2014-03-28', '09:50:00', NULL, '20', 'Gold Gyms , Mahanagar Lucknow, LIVINGSTON NY', 'Power Yoga', '2014-03-26 06:29:00', 'NO', '', NULL),
(81, 'Individual', 0, '2:10', 'INV1-41-0049', 1, 41, 7, 'Pending', '2014-01-10 05:51:42', '0000-00-00', '00:00:00', NULL, NULL, '', NULL, '0000-00-00 00:00:00', 'NO', NULL, NULL),
(82, 'Individual', 0, '2:10', 'INV1-41-0049', 1, 41, 7, 'Pending', '2014-01-10 05:51:42', '0000-00-00', '00:00:00', NULL, NULL, '', NULL, '0000-00-00 00:00:00', 'NO', NULL, NULL),
(83, 'Individual', 0, '1:10', 'INV1-41-0050', 1, 41, 7, 'Pending', '2014-01-10 05:52:14', '0000-00-00', '00:00:00', NULL, NULL, '', NULL, '0000-00-00 00:00:00', 'NO', NULL, NULL),
(84, 'Individual', 0, '1:5', 'INV1-41-0053', 1, 41, 7, 'Pending', '2014-01-10 10:08:56', '0000-00-00', '00:00:00', NULL, NULL, '', NULL, '0000-00-00 00:00:00', 'NO', NULL, NULL),
(85, 'Individual', 0, '5:10', 'INV1-41-0054', 1, 41, 7, 'Pending', '2014-01-10 10:15:48', '0000-00-00', '00:00:00', NULL, NULL, '', NULL, '0000-00-00 00:00:00', 'NO', NULL, NULL),
(86, 'Individual', 0, '2:10', 'INV1-41-0055', 1, 41, 7, 'Pending', '2014-01-10 10:50:28', '0000-00-00', '00:00:00', NULL, NULL, '', NULL, '0000-00-00 00:00:00', 'NO', NULL, NULL),
(87, 'Individual', 0, '2:10', 'INV1-41-0055', 1, 41, 7, 'Pending', '2014-01-10 10:50:28', '0000-00-00', '00:00:00', NULL, NULL, '', NULL, '0000-00-00 00:00:00', 'NO', NULL, NULL),
(88, 'Individual', 0, '2:5', 'INV1-41-0057', 1, 41, 7, 'Pending', '2014-01-10 10:51:36', '0000-00-00', '00:00:00', NULL, NULL, '', NULL, '0000-00-00 00:00:00', 'NO', NULL, NULL),
(89, 'Individual', 0, '2:5', 'INV1-41-0057', 1, 41, 7, 'Pending', '2014-01-10 10:51:36', '0000-00-00', '00:00:00', NULL, NULL, '', NULL, '0000-00-00 00:00:00', 'NO', NULL, NULL),
(90, 'Individual', 0, '1:5', 'INV1-41-0058', 1, 41, 7, 'Pending', '2014-01-10 11:05:21', '0000-00-00', '00:00:00', NULL, NULL, '', NULL, '0000-00-00 00:00:00', 'NO', NULL, NULL),
(91, 'Individual', 0, '1:5', 'INV1-41-0058', 1, 41, 7, 'Pending', '2014-01-10 11:05:21', '0000-00-00', '00:00:00', NULL, NULL, '', NULL, '0000-00-00 00:00:00', 'NO', NULL, NULL),
(96, 'Group', 36, '', 'INV1-41-0063', 1, 41, 3, 'Done', '2014-01-14 13:00:13', '2014-01-31', '22:50:00', '11:40:00', '24', 'Raj Loc, 123445, SCHENECTADY NY', NULL, '2014-01-14 13:00:13', 'NO', NULL, NULL),
(97, 'Individual', 0, '3:5', 'INV1-41-0064', 1, 41, 7, 'Pending', '2014-01-15 06:56:00', '0000-00-00', '00:00:00', NULL, NULL, '', NULL, '0000-00-00 00:00:00', 'NO', NULL, NULL),
(98, 'Individual', 0, '3:5', 'INV1-41-0064', 1, 41, 7, 'Pending', '2014-01-15 06:56:00', '0000-00-00', '00:00:00', NULL, NULL, '', NULL, '0000-00-00 00:00:00', 'NO', NULL, NULL),
(99, 'Individual', 0, '3:5', 'INV1-41-0064', 1, 41, 7, 'Pending', '2014-01-15 06:56:00', '0000-00-00', '00:00:00', NULL, NULL, '', NULL, '0000-00-00 00:00:00', 'NO', NULL, NULL),
(100, 'Individual', 0, '1:5', 'INV1-41-0064', 1, 41, 7, 'Pending', '2014-01-15 06:56:00', '0000-00-00', '00:00:00', NULL, NULL, '', NULL, '0000-00-00 00:00:00', 'NO', NULL, NULL),
(101, 'Individual', 0, '1:5', 'INV1-41-0064', 1, 41, 7, 'Pending', '2014-01-15 06:56:00', '0000-00-00', '00:00:00', NULL, NULL, '', NULL, '0000-00-00 00:00:00', 'NO', NULL, NULL),
(105, 'Individual', 0, '1:0', '--', 48, 98, 20, 'Pending', '2014-05-30 07:16:46', '0000-00-00', '00:00:00', NULL, NULL, '', NULL, '0000-00-00 00:00:00', 'NO', NULL, NULL),
(106, 'Individual', 0, '1:0', '--', 48, 98, 20, 'Pending', '2014-05-30 07:16:46', '0000-00-00', '00:00:00', NULL, NULL, '', NULL, '0000-00-00 00:00:00', 'NO', NULL, NULL),
(107, 'Group', 41, '', '--', 48, 98, 20, 'Done', '2014-05-30 07:16:46', '2014-06-04', '06:00:00', '10:45:00', 'other', 'Test', NULL, '2014-05-30 07:16:46', 'NO', NULL, NULL),
(108, 'Individual', 0, '2:30', '--', 48, 98, 20, 'Done', '2014-05-30 08:15:00', '2014-06-03', '08:00:00', NULL, 'other', 'Test', 'Test Session', '2014-05-30 08:40:00', 'NO', '', NULL),
(109, 'Individual', 0, '2:30', '--', 48, 98, 20, 'Pending', '2014-05-30 08:15:00', '0000-00-00', '00:00:00', NULL, NULL, '', NULL, '0000-00-00 00:00:00', 'NO', NULL, NULL),
(110, 'Individual', 0, '2:0', '--', 48, 98, 20, 'Pending', '2014-05-30 08:23:06', '0000-00-00', '00:00:00', NULL, NULL, '', NULL, '0000-00-00 00:00:00', 'NO', NULL, NULL),
(111, 'Individual', 0, '2:10', '--', 48, 98, 20, 'Pending', '2014-05-30 08:26:16', '0000-00-00', '00:00:00', NULL, NULL, '', NULL, '0000-00-00 00:00:00', 'NO', NULL, NULL),
(112, 'Individual', 0, '2:10', '--', 48, 98, 20, 'Pending', '2014-05-30 08:26:16', '0000-00-00', '00:00:00', NULL, NULL, '', NULL, '0000-00-00 00:00:00', 'NO', NULL, NULL),
(113, 'Group', 43, '', 'INV1-41-0068', 1, 41, 3, 'Done', '2014-07-18 07:49:35', '2014-07-30', '07:00:00', '11:00:00', '39', 'Great Muscles lets''s start, Mahanagar, HOLTSVILLE NY', NULL, '2014-07-18 07:49:35', 'NO', NULL, NULL);

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

--
-- Table structure for table `th_coach_connect`
--

CREATE TABLE IF NOT EXISTS `th_coach_connect` (
  `connect_id` int(11) NOT NULL AUTO_INCREMENT,
  `signup_id_fkx` int(11) DEFAULT NULL COMMENT 'from tc_service_signup table',
  `user_id_fkx` int(11) DEFAULT NULL,
  `rgs_id_fkx` int(10) unsigned NOT NULL,
  `share_health` tinyint(2) NOT NULL DEFAULT '0',
  `request_hass` tinyint(4) DEFAULT '0' COMMENT '0->Not Shared, 1->Shared',
  `request_diet` tinyint(4) DEFAULT '0' COMMENT '0->Not Shared, 1->Shared',
  `request_wo` tinyint(4) DEFAULT NULL,
  `request_mood` tinyint(4) DEFAULT NULL,
  `request_bm` tinyint(4) DEFAULT NULL,
  `clinical_id` varchar(50) DEFAULT NULL,
  `connect_status` varchar(2) DEFAULT 'P' COMMENT 'P->Pending,A-> Accepted,D->Deny,L,->Leaved',
  `isnew` tinyint(4) DEFAULT '1',
  `connect_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `disconnect_date` timestamp NULL DEFAULT NULL,
  `outstanding_amt` float DEFAULT '0',
  `req_by` varchar(10) DEFAULT 'Client' COMMENT 'Client or Coach',
  PRIMARY KEY (`connect_id`)
) ENGINE=InnoDB  DEFAULT CHARSET=latin1 AUTO_INCREMENT=208 ;

--
-- Dumping data for table `th_coach_connect`
--

INSERT INTO `th_coach_connect` (`connect_id`, `signup_id_fkx`, `user_id_fkx`, `rgs_id_fkx`, `share_health`, `request_hass`, `request_diet`, `request_wo`, `request_mood`, `request_bm`, `clinical_id`, `connect_status`, `isnew`, `connect_date`, `disconnect_date`, `outstanding_amt`, `req_by`) VALUES
(1, 6, 41, 81, 0, 1, 1, NULL, NULL, NULL, NULL, 'L', 1, '2013-03-19 05:20:47', '2013-03-29 07:10:56', 0, 'Client'),
(6, 11, 41, 65, 0, 0, 0, NULL, NULL, NULL, NULL, 'L', 1, '2013-03-19 06:25:27', '2013-03-19 06:41:38', 0, 'Client'),
(11, 11, 41, 65, 0, 0, 0, NULL, NULL, NULL, NULL, 'L', 1, '2013-03-19 08:37:08', '2013-03-19 08:38:24', 0, 'Client'),
(12, 11, 60, 65, 0, 0, 0, NULL, NULL, NULL, NULL, 'L', 1, '2013-03-19 08:45:31', '2013-03-30 05:14:32', 0, 'Client'),
(13, 1, 41, 1, 0, 0, 1, 1, 0, 1, NULL, 'L', 1, '2013-03-19 09:03:57', '2013-03-20 07:43:10', 0, 'Client'),
(14, 1, 60, 1, 0, 0, 0, NULL, 0, NULL, NULL, 'L', 1, '2013-03-21 08:14:37', '2013-03-21 08:26:30', 0, 'Client'),
(15, 1, 60, 1, 0, 0, 0, NULL, 0, NULL, NULL, 'L', 1, '2013-03-21 08:26:56', '2013-06-01 11:40:27', 0, 'Client'),
(16, 1, 41, 1, 0, 0, 1, 1, 0, 1, NULL, 'L', 1, '2013-03-21 08:28:45', '2013-03-23 13:10:15', 0, 'Client'),
(17, 1, 41, 1, 0, 0, 1, 1, 0, 1, NULL, 'L', 1, '2013-03-23 13:19:37', '2013-03-23 13:35:16', 0, 'Client'),
(18, 1, 41, 1, 0, 0, 1, 1, 0, 1, NULL, 'L', 1, '2013-03-26 04:26:55', '2013-03-26 05:21:01', 0, 'Client'),
(19, 1, 41, 1, 0, 0, 1, 1, 0, 1, NULL, 'L', 1, '2013-03-26 05:21:32', '2013-03-26 11:03:44', 0, 'Client'),
(20, 1, 41, 1, 0, 0, 1, 1, 0, 1, NULL, 'L', 1, '2013-03-26 11:13:39', '2013-03-26 11:21:10', 0, 'Client'),
(21, 1, 41, 1, 0, 0, 1, 1, 0, 1, NULL, 'L', 1, '2013-03-26 12:44:45', '2013-03-29 11:27:45', 0, 'Client'),
(22, 6, 60, 81, 0, 0, 0, NULL, NULL, NULL, NULL, 'L', 1, '2013-03-27 07:11:53', '2013-03-29 11:33:51', 0, 'Client'),
(23, 6, 41, 81, 0, 1, 1, NULL, NULL, NULL, NULL, 'L', 1, '2013-04-02 11:34:03', '2013-04-09 06:42:07', 0, 'Client'),
(24, 1, 41, 1, 0, 0, 1, 1, 0, 1, NULL, 'L', 1, '2013-03-29 13:22:38', '2013-04-02 07:58:01', 0, 'Client'),
(25, 11, 41, 65, 0, 0, 0, NULL, NULL, NULL, NULL, 'L', 1, '2013-03-30 05:33:09', '2013-03-30 10:59:30', 0, 'Client'),
(26, 11, 60, 65, 0, 0, 0, NULL, NULL, NULL, NULL, 'L', 1, '2013-03-30 10:59:50', '2013-03-30 11:08:51', 0, 'Client'),
(27, 11, 60, 65, 0, 0, 0, NULL, NULL, NULL, NULL, 'L', 1, '2013-04-01 06:01:32', '2013-04-01 06:02:36', 0, 'Client'),
(28, 11, 60, 65, 0, 0, 0, NULL, NULL, NULL, NULL, 'L', 1, '2013-04-01 06:03:21', '2013-04-01 06:06:04', 0, 'Client'),
(29, 11, 60, 65, 0, 0, 0, NULL, NULL, NULL, NULL, 'L', 1, '2013-04-01 06:06:58', '2013-04-01 13:02:18', 0, 'Client'),
(30, 11, 60, 65, 0, 0, 0, NULL, NULL, NULL, NULL, 'L', 1, '2013-04-01 13:02:48', '2013-04-02 09:06:35', 0, 'Client'),
(31, 1, 41, 1, 0, 0, 1, 1, 0, 1, NULL, 'L', 1, '2013-04-02 08:53:16', '2013-04-02 08:54:26', 0, 'Client'),
(32, 1, 41, 1, 0, 0, 1, 1, 0, 1, NULL, 'L', 1, '2013-04-02 08:55:41', '2013-04-02 08:58:51', 0, 'Client'),
(33, 1, 41, 1, 0, 0, 1, 1, 0, 1, NULL, 'L', 1, '2013-04-02 08:59:11', '2013-04-02 09:00:16', 0, 'Client'),
(34, 1, 41, 1, 0, 0, 1, 1, 0, 1, NULL, 'L', 1, '2013-04-02 09:00:32', '2013-04-02 09:02:02', 0, 'Client'),
(35, 1, 41, 1, 0, 0, 1, 1, 0, 1, NULL, 'L', 1, '2013-04-02 09:02:27', '2013-04-02 09:03:39', 0, 'Client'),
(36, 1, 41, 1, 0, 0, 1, 1, 0, 1, NULL, 'L', 1, '2013-04-02 09:03:55', '2013-04-02 09:04:35', 0, 'Client'),
(37, 11, 60, 65, 0, 0, 0, NULL, NULL, NULL, NULL, 'L', 1, '2013-04-02 09:34:24', '2013-04-06 13:26:11', 0, 'Client'),
(38, 11, 41, 65, 0, 0, 0, NULL, NULL, NULL, NULL, 'L', 1, '2013-04-06 13:26:49', '2013-04-08 11:12:25', 0, 'Client'),
(39, 1, 41, 1, 0, 0, 1, 1, 0, 1, NULL, 'L', 1, '2013-04-06 13:49:07', '2013-04-06 13:50:09', 0, 'Client'),
(40, 1, 41, 1, 0, 0, 1, 1, 0, 1, NULL, 'L', 1, '2013-04-06 13:51:32', '2013-04-26 12:20:15', 0, 'Client'),
(41, 11, 41, 65, 0, 0, 0, NULL, NULL, NULL, NULL, 'L', 1, '2013-04-08 11:25:39', '2013-04-08 11:28:22', 0, 'Client'),
(42, 11, 41, 65, 0, 0, 0, NULL, NULL, NULL, NULL, 'L', 1, '2013-04-08 11:34:47', '2013-05-01 13:32:01', 0, 'Client'),
(45, 6, 41, 81, 0, 1, 1, NULL, NULL, NULL, NULL, 'L', 1, '2013-04-09 08:25:45', '2013-04-12 10:43:44', 0, 'Client'),
(46, 6, 41, 81, 0, 1, 1, NULL, NULL, NULL, NULL, 'L', 1, '2013-04-12 10:44:37', '2013-04-15 05:14:57', 0, 'Client'),
(47, 6, 41, 81, 0, 1, 1, NULL, NULL, NULL, NULL, 'L', 1, '2013-04-15 05:16:43', '2013-04-23 12:57:50', 0, 'Client'),
(48, 6, 41, 81, 0, 1, 1, NULL, NULL, NULL, NULL, 'L', 1, '2013-04-23 13:08:34', '2013-04-24 12:28:41', 0, 'Client'),
(49, 6, 41, 81, 0, 1, 1, NULL, NULL, NULL, NULL, 'L', 1, '2013-04-24 13:23:44', '2013-04-24 13:30:09', 0, 'Client'),
(50, 6, 41, 81, 0, 1, 1, NULL, NULL, NULL, NULL, 'L', 1, '2013-04-24 13:33:51', '2013-04-25 06:18:58', 0, 'Client'),
(51, 6, 41, 81, 0, 1, 1, NULL, NULL, NULL, NULL, 'L', 1, '2013-04-25 06:19:46', '2013-04-25 06:21:07', 0, 'Client'),
(52, 6, 41, 81, 0, 1, 1, NULL, NULL, NULL, NULL, 'L', 1, '2013-04-25 06:21:35', '2013-04-25 06:22:18', 0, 'Client'),
(53, 6, 41, 81, 0, 1, 1, NULL, NULL, NULL, NULL, 'L', 1, '2013-04-25 06:22:35', '2013-04-25 06:23:50', 0, 'Client'),
(54, 6, 41, 81, 0, 1, 1, NULL, NULL, NULL, NULL, 'L', 1, '2013-04-25 06:24:03', '2013-04-25 06:26:35', 0, 'Client'),
(55, 6, 41, 81, 0, 1, 1, NULL, NULL, NULL, NULL, 'L', 1, '2013-04-25 06:26:52', '2013-04-25 07:48:58', 0, 'Client'),
(56, 6, 60, 81, 0, 0, 0, NULL, NULL, NULL, NULL, 'L', 1, '2013-04-25 07:52:22', '2013-05-02 12:33:19', 0, 'Client'),
(57, 1, 41, 1, 0, 0, 1, 1, 0, 1, NULL, 'L', 1, '2013-04-26 12:27:11', '2013-04-26 12:41:45', 0, 'Client'),
(58, 1, 41, 1, 0, 0, 1, 1, 0, 1, NULL, 'L', 1, '2013-04-26 12:43:20', '2013-05-09 04:33:14', 0, 'Client'),
(59, 31, 41, 39, 1, 1, 0, 0, NULL, NULL, NULL, 'A', 1, '2013-05-01 13:30:10', NULL, 2000, 'Client'),
(60, 11, 60, 65, 0, 0, 0, NULL, NULL, NULL, NULL, 'L', 1, '2013-05-01 13:32:34', '2013-05-04 06:15:51', 0, 'Client'),
(61, 6, 41, 81, 1, 1, 1, NULL, NULL, NULL, NULL, 'L', 1, '2013-05-02 12:33:43', '2013-12-26 09:01:48', 0, 'Client'),
(62, 11, 60, 65, 0, 0, 0, NULL, NULL, NULL, NULL, 'A', 1, '2013-05-04 06:21:07', NULL, 0, 'Client'),
(63, 34, 41, 76, 0, 0, 0, NULL, NULL, NULL, NULL, 'A', 1, '2013-05-06 11:47:36', NULL, 0, 'Client'),
(64, 35, 41, 56, 0, 0, 0, NULL, NULL, NULL, NULL, 'A', 1, '2013-05-08 05:23:45', NULL, 0, 'Client'),
(65, 1, 41, 1, 0, 0, 1, 1, 0, 1, NULL, 'L', 1, '2013-05-09 07:19:20', '2013-06-03 06:46:19', 0, 'Client'),
(66, 36, 41, 49, 0, 0, 0, NULL, NULL, NULL, NULL, 'A', 1, '2013-05-10 07:54:40', NULL, 0, 'Client'),
(67, 37, 41, 18, 0, 0, 0, 1, 0, 1, NULL, 'A', 1, '2013-05-14 08:13:29', NULL, 0, 'Client'),
(68, 29, 60, 1, 0, 0, 0, NULL, 0, NULL, NULL, 'L', 1, '2013-06-01 13:37:12', '2013-06-03 06:46:42', 0, 'Client'),
(69, 29, 67, 1, 0, 0, 0, 0, 0, 0, NULL, 'L', 1, '2013-06-03 04:33:20', '2013-06-03 09:17:07', 0, 'Client'),
(70, 29, 70, 1, 1, 0, 0, 0, 0, 0, NULL, 'L', 1, '2013-06-03 05:32:16', '2013-12-09 13:54:13', 0, 'Client'),
(72, 29, 71, 1, 0, 1, 0, 0, 0, 1, NULL, 'L', 1, '2013-06-03 07:49:38', NULL, 0, 'Client'),
(73, 29, 71, 1, 1, 1, 0, 0, 0, 1, NULL, 'L', 1, '2013-06-03 10:55:04', '2014-05-02 08:56:45', 0, 'Client'),
(74, 29, 67, 1, 0, 0, 0, 0, 0, 0, NULL, 'L', 1, '2013-06-03 11:00:36', '2013-06-03 12:42:57', 0, 'Client'),
(75, 29, 41, 1, 0, 0, 1, 1, 0, 1, NULL, 'L', 1, '2013-06-08 07:26:31', '2013-06-08 11:17:16', 0, 'Client'),
(76, 29, 41, 1, 0, 0, 1, 1, 0, 1, NULL, 'L', 1, '2013-06-08 11:22:30', '2013-06-08 12:06:16', 0, 'Client'),
(77, 29, 41, 1, 0, 0, 1, 1, 0, 1, NULL, 'L', 1, '2013-06-10 06:24:39', '2014-01-09 08:13:41', 14256.5, 'Client'),
(81, 47, 41, 9, 1, 1, 1, NULL, NULL, NULL, NULL, 'A', 1, '2013-07-27 05:13:12', NULL, 0, 'Client'),
(82, 48, 41, 7, 1, 1, 1, NULL, NULL, NULL, NULL, 'A', 1, '2013-07-27 05:19:12', NULL, 0, 'Client'),
(83, 49, 41, 7, 1, 1, 1, NULL, NULL, NULL, NULL, 'A', 1, '2013-07-27 05:19:31', NULL, 0, 'Client'),
(84, 55, 41, 7, 1, 1, 1, NULL, NULL, NULL, NULL, 'A', 1, '2013-08-02 11:03:51', NULL, 0, 'Client'),
(86, 57, 41, 26, 1, 1, 1, NULL, NULL, NULL, NULL, 'L', 1, '2013-09-23 11:07:59', '2014-01-31 06:29:40', 0, 'Coach'),
(87, 11, 70, 65, 0, 1, 1, NULL, NULL, NULL, NULL, 'A', 1, '2013-08-27 12:46:01', NULL, 110, 'Client'),
(89, NULL, 41, 47, 1, 1, 1, NULL, NULL, NULL, NULL, 'A', 1, '2013-09-23 08:06:06', NULL, 0, 'Client'),
(91, 11, 41, 65, 0, 1, 1, NULL, NULL, NULL, NULL, 'A', 1, '2013-09-23 11:47:03', NULL, 0, 'Client'),
(92, 11, 72, 65, 0, 1, 0, NULL, NULL, NULL, NULL, 'A', 1, '2013-11-05 08:14:43', NULL, 0, 'Client'),
(93, 11, 71, 65, 0, 1, 0, NULL, NULL, NULL, NULL, 'A', 1, '2013-11-05 08:15:07', NULL, 0, 'Client'),
(94, 11, 87, 65, 0, 0, 1, NULL, NULL, NULL, NULL, 'P', 1, '2013-11-05 08:20:06', NULL, 0, 'Client'),
(104, NULL, 41, 8, 0, 0, 0, NULL, NULL, NULL, NULL, 'L', 1, '2013-11-08 05:01:44', '2014-01-11 11:42:30', 0, 'Client'),
(106, NULL, 41, 11, 0, 0, 0, NULL, NULL, NULL, NULL, 'A', 1, '2013-11-08 05:29:41', NULL, 0, 'Client'),
(107, NULL, 41, 15, 0, 1, 1, 1, 1, 1, NULL, 'L', 1, '2013-11-08 06:04:44', '2014-01-31 06:43:26', 0, 'Coach'),
(110, NULL, 41, 17, 0, 0, 0, NULL, NULL, NULL, NULL, 'A', 1, '2013-11-08 06:08:26', NULL, 0, 'Client'),
(114, NULL, 41, 82, 1, 1, 1, NULL, NULL, NULL, NULL, 'A', 1, '2013-11-20 05:09:30', NULL, 0, 'Client'),
(116, 0, 41, 63, 0, 0, 1, 1, 0, 1, NULL, 'A', 1, '2013-12-28 09:33:42', NULL, 0, 'Client'),
(117, 0, 41, 81, 0, 0, 1, 1, 1, 1, NULL, 'L', 1, '2013-12-26 11:58:05', '2013-12-26 12:10:48', 0, 'Client'),
(119, NULL, 41, 81, 1, 1, 1, 1, 1, 1, NULL, 'L', 1, '2013-12-26 12:13:04', '2013-12-28 06:45:03', 0, 'Coach'),
(120, 0, 41, 45, 0, 1, 1, 1, 1, 1, NULL, 'A', 1, '2013-12-27 08:27:40', NULL, 0, 'Client'),
(124, NULL, 41, 81, 0, 1, 0, 1, 1, 1, NULL, 'L', 1, '2013-12-28 08:26:46', '2013-12-28 09:09:07', 0, 'Coach'),
(125, NULL, 41, 81, 0, 1, 1, 1, 1, 1, NULL, 'L', 1, '2013-12-28 09:26:08', '2013-12-28 09:34:20', 0, 'Coach'),
(126, 0, 41, 81, 0, 0, 1, 1, 1, 1, NULL, 'A', 1, '2014-01-22 11:56:20', NULL, 0, 'Client'),
(127, NULL, 93, 81, 0, 0, 0, NULL, NULL, NULL, NULL, 'P', 1, '2013-12-31 09:26:51', NULL, 0, 'Coach'),
(128, NULL, 93, 1, 1, 0, 0, 0, 0, 0, NULL, 'L', 1, '2014-01-03 07:10:41', '2016-07-09 12:33:45', 0, 'Client'),
(129, 0, 41, 1, 0, 0, 1, 1, 0, 1, NULL, 'L', 1, '2014-01-09 08:23:22', NULL, 15697, 'Coach'),
(131, 0, 41, 1, 0, 0, 1, 1, 0, 1, NULL, 'L', 1, '2014-01-16 11:14:50', '2015-03-02 13:12:01', 16497.5, 'Client'),
(132, NULL, 41, 7, 0, 0, 0, NULL, NULL, NULL, NULL, 'P', 1, '2014-01-13 05:03:47', NULL, 0, 'Coach'),
(133, 0, 41, 10, 0, 1, 1, 0, 0, 0, NULL, 'A', 1, '2014-01-22 12:07:45', NULL, 0, 'Client'),
(134, 0, 72, 10, 0, 1, 1, 1, 1, 1, NULL, 'P', 1, '2014-01-23 04:34:17', NULL, 0, 'Client'),
(135, NULL, 41, 15, 0, 1, 1, 1, 1, 1, NULL, 'A', 1, '2014-01-31 06:43:48', NULL, 0, 'Coach'),
(147, NULL, 71, 1, 0, 1, 0, 0, 0, 1, NULL, 'L', 1, '2014-05-02 10:41:04', '2014-05-02 11:45:31', 0, 'Client'),
(148, NULL, 71, 1, 0, 1, 0, 0, 0, 1, NULL, 'L', 1, '2014-05-02 11:45:46', '2014-05-02 12:10:43', 0, 'Client'),
(151, 0, 71, 1, 0, 1, 0, 0, 0, 1, NULL, 'L', 1, '2014-05-02 13:32:14', '2014-05-03 11:35:15', 0, 'Client'),
(152, NULL, 71, 1, 0, 1, 0, 0, 0, 1, NULL, 'L', 1, '2014-05-03 11:37:35', '2014-05-03 13:36:05', 0, 'Client'),
(153, NULL, 71, 1, 0, 1, 0, 0, 0, 1, NULL, 'L', 1, '2014-05-03 13:36:41', '2014-05-06 09:52:53', 0, 'Client'),
(154, NULL, 71, 1, 0, 1, 0, 0, 0, 1, NULL, 'L', 1, '2014-05-06 09:56:47', '2014-05-06 12:02:01', 0, 'Client'),
(155, 0, 71, 1, 0, 0, 1, 0, 1, 0, NULL, 'L', 1, '2014-05-06 12:06:16', '2015-02-27 12:59:25', 0, 'Client'),
(156, NULL, 98, 48, 1, 1, 1, NULL, NULL, NULL, NULL, 'A', 1, '2014-05-29 11:13:59', NULL, 0, 'Client'),
(157, NULL, 98, 8, 0, 1, 1, 1, 0, 0, NULL, 'A', 1, '2014-06-03 08:41:52', NULL, 0, 'Client'),
(158, NULL, 98, 10, 0, 0, 0, 1, 1, 1, NULL, 'A', 1, '2014-06-03 10:05:39', NULL, 0, 'Coach'),
(159, 0, 71, 55, 0, 1, 0, 0, 0, 1, NULL, 'A', 1, '2014-06-05 07:41:27', NULL, 0, 'Client'),
(163, NULL, 98, 39, 0, 0, 1, 1, 0, 0, NULL, 'A', 1, '2014-06-11 07:32:00', NULL, 0, 'Coach'),
(164, 0, 41, 7, 0, 0, 0, 0, 1, 0, NULL, 'A', 1, '2014-07-01 09:00:39', NULL, 0, 'Client'),
(166, NULL, 98, 58, 0, 1, 1, 1, 1, 1, NULL, 'A', 1, '2014-06-30 05:38:57', NULL, 0, 'Coach'),
(167, NULL, 41, 21, 1, 1, 1, NULL, NULL, NULL, NULL, 'A', 1, '2014-07-15 06:58:25', NULL, 0, 'Client'),
(168, NULL, 41, 37, 1, 1, 1, NULL, NULL, NULL, NULL, 'A', 1, '2014-07-15 08:02:07', NULL, 0, 'Client'),
(169, NULL, 41, 38, 1, 1, 1, NULL, NULL, NULL, NULL, 'A', 1, '2014-07-15 10:32:45', NULL, 0, 'Client'),
(170, NULL, 41, 24, 1, 1, 1, NULL, NULL, NULL, NULL, 'A', 1, '2014-07-15 10:37:28', NULL, 0, 'Client'),
(171, NULL, 41, 51, 1, 1, 1, NULL, NULL, NULL, NULL, 'A', 1, '2014-07-15 10:42:45', NULL, 0, 'Client'),
(173, NULL, 41, 28, 1, 1, 1, NULL, NULL, NULL, NULL, 'A', 1, '2014-07-15 11:25:12', NULL, 0, 'Client'),
(174, NULL, 98, 1, 0, 1, 1, 1, 0, 1, NULL, 'L', 1, '2014-07-24 12:24:04', '2015-03-04 11:12:37', 0, 'Client'),
(175, 0, 67, 1, 0, 0, 0, 0, 0, 0, NULL, 'L', 1, '2015-01-19 06:05:57', '2015-01-19 12:43:56', 0, 'Client'),
(176, 0, 98, 66, 0, 1, 1, 1, 1, 1, NULL, 'L', 1, '2015-01-23 07:35:12', '2015-01-24 05:37:46', 0, 'Coach'),
(177, NULL, 98, 40, 0, 1, 0, 0, 0, 1, NULL, 'A', 1, '2015-01-24 05:46:38', NULL, 0, 'Coach'),
(178, NULL, 98, 7, 1, 1, 1, NULL, NULL, NULL, NULL, 'A', 1, '2015-01-24 09:56:46', NULL, 0, 'Client'),
(179, NULL, 98, 7, 1, 1, 1, NULL, NULL, NULL, NULL, 'A', 1, '2015-01-24 09:59:00', NULL, 0, 'Client'),
(180, NULL, 98, 9, 1, 1, 1, NULL, NULL, NULL, NULL, 'A', 1, '2015-01-24 10:09:54', NULL, 0, 'Client'),
(181, NULL, 67, 7, 0, 0, 0, 1, 1, 0, NULL, 'A', 1, '2015-01-24 10:25:51', NULL, 0, 'Coach'),
(182, NULL, 41, 71, 1, 1, 1, NULL, NULL, NULL, NULL, 'A', 1, '2015-01-27 06:51:45', NULL, 0, 'Client'),
(183, NULL, 41, 80, 1, 1, 1, NULL, NULL, NULL, NULL, 'A', 1, '2015-01-27 06:55:54', NULL, 0, 'Client'),
(184, NULL, 41, 79, 1, 1, 1, NULL, NULL, NULL, NULL, 'A', 1, '2015-01-27 06:59:08', NULL, 0, 'Client'),
(189, 0, 71, 1, 0, 1, 0, 0, 0, 1, NULL, 'L', 1, '2015-02-28 10:27:13', '2015-02-28 10:33:17', 0, 'Client'),
(190, 0, 71, 1, 0, 0, 0, 0, 0, 0, NULL, 'L', 1, '2015-02-28 10:33:49', '2015-02-28 10:34:57', 0, 'Client'),
(191, 0, 71, 1, 0, 0, 0, 1, 0, 0, NULL, 'L', 1, '2015-02-28 10:35:13', '2015-03-02 13:11:52', 0, 'Client'),
(192, 0, 67, 1, 0, 0, 0, 0, 0, 0, NULL, 'L', 1, '2015-03-02 12:41:41', '2015-03-02 13:11:45', 0, 'Client'),
(193, 0, 41, 1, 0, 0, 0, 0, 0, 0, NULL, 'A', 1, '2015-03-02 13:15:07', NULL, 16497.5, 'Client'),
(194, NULL, 71, 1, 0, 0, 0, 0, 0, 0, NULL, 'L', 1, '2015-03-03 10:39:34', '2015-03-03 10:41:08', 0, 'Client'),
(195, NULL, 71, 1, 0, 0, 0, 0, 0, 0, NULL, 'A', 1, '2015-03-03 10:44:06', NULL, 0, 'Client'),
(196, 0, 98, 1, 0, 1, 1, 1, 0, 1, NULL, 'L', 1, '2015-03-04 11:12:52', '2015-03-04 11:13:05', 0, 'Client'),
(197, 0, 98, 1, 0, 1, 1, 1, 0, 1, NULL, 'A', 1, '2015-03-04 11:13:21', NULL, 0, 'Client'),
(198, 0, 67, 1, 0, 0, 0, 0, 0, 0, NULL, 'A', 1, '2015-03-09 11:14:07', NULL, 0, 'Client'),
(199, 0, 41, 75, 0, 1, 0, 0, 0, 1, NULL, 'A', 1, '2015-03-25 13:31:50', NULL, 0, 'Client'),
(200, 0, 41, 89, 0, 1, 1, 1, 0, 1, NULL, 'A', 1, '2015-06-12 13:02:54', NULL, 0, 'Client'),
(202, 0, 41, 107, 0, 1, 1, 1, 1, 1, NULL, 'A', 1, '2015-12-31 11:30:34', NULL, 0, 'Client'),
(203, 0, 41, 92, 0, 0, 0, 0, 0, 0, NULL, 'A', 1, '2016-04-09 10:22:27', NULL, 0, 'Client'),
(204, 0, 41, 130, 0, 1, 1, 0, 1, 1, NULL, 'A', 1, '2016-07-14 05:49:34', NULL, 0, 'Client'),
(206, 0, 41, 132, 0, 0, 1, 1, 0, 1, NULL, 'A', 1, '2016-07-27 13:14:10', NULL, 0, 'Client'),
(207, 0, 93, 132, 0, 1, 0, 0, 0, 0, NULL, 'A', 1, '2016-08-31 08:33:25', NULL, 0, 'Client');

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

--
-- Table structure for table `th_coach_conversation`
--

CREATE TABLE IF NOT EXISTS `th_coach_conversation` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `user_id_fkx` varchar(50) NOT NULL,
  `rgs_id_fkx` int(10) unsigned NOT NULL,
  `user_type` varchar(10) NOT NULL COMMENT 'Coach->C User-U',
  `query` text NOT NULL,
  `post_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `isread` int(11) NOT NULL DEFAULT '0' COMMENT 'stores read status',
  `isnew` tinyint(2) NOT NULL DEFAULT '1',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB  DEFAULT CHARSET=latin1 AUTO_INCREMENT=278 ;

--
-- Dumping data for table `th_coach_conversation`
--

INSERT INTO `th_coach_conversation` (`id`, `user_id_fkx`, `rgs_id_fkx`, `user_type`, `query`, `post_date`, `isread`, `isnew`) VALUES
(1, '41', 1, 'U', 'ghhffhfhf', '2013-03-05 13:14:38', 1, 0),
(4, '41', 1, 'C', 'hajghhhdghghdad', '2013-03-06 07:49:01', 1, 0),
(6, '41', 1, 'U', 'gfdgdfgdfgdfgfdgfdg', '2013-03-06 09:18:16', 1, 0),
(8, '41', 1, 'U', 'eteetetet', '2013-03-06 13:16:09', 1, 0),
(9, '41', 1, 'U', 'xvxcvxvxv', '2013-03-06 13:32:55', 1, 0),
(10, '41', 1, 'U', 'bvbvcbc', '2013-03-06 13:33:59', 1, 0),
(11, '41', 1, 'U', 'Hello coach', '2013-03-07 05:04:00', 1, 0),
(12, '41', 1, 'U', 'ctal', '2013-03-07 05:09:13', 1, 0),
(13, '41', 1, 'C', 'adadadasdasdadddasda', '2013-03-07 07:56:51', 1, 0),
(14, '41', 1, 'C', 'xcbxbcvcvbc', '2013-03-07 08:37:15', 1, 0),
(15, '41', 1, 'C', 'fddddddddddddddddd fddddddddddddddddd fddddddddddddddddd fddddddddddddddddd fddddddddddddddddd fddddddddddddddddd fddddddddddddddddd fddddddddddddddddd fddddddddddddddddd fddddddddddddddddd fddddddddddddddddd fddddddddddddddddd', '2013-03-07 09:07:57', 1, 0),
(16, '41', 1, 'U', 'Hiii Decv', '2013-03-07 09:25:40', 1, 0),
(17, '41', 1, 'C', 'hi whats up', '2013-03-07 09:26:13', 1, 0),
(18, '41', 1, 'C', '', '2013-03-09 05:09:55', 1, 0),
(19, '41', 1, 'C', 'hghgfh', '2013-03-09 05:15:57', 1, 0),
(20, '41', 1, 'C', 'fdfd', '2013-03-09 05:16:23', 1, 0),
(21, '41', 1, 'U', 'sdfdsds', '2013-03-09 05:19:45', 1, 0),
(22, '41', 1, 'U', 'ssdsadsda', '2013-03-09 06:31:49', 1, 0),
(23, '41', 1, 'C', 'fdsfdsfsd', '2013-03-09 07:27:20', 1, 0),
(24, '41', 1, 'U', 'xzxzx', '2013-03-09 07:52:43', 1, 0),
(25, '41', 1, 'U', 'dsfsadf', '2013-03-11 10:00:54', 1, 0),
(26, '41', 1, 'U', 'asdfsdafasdf', '2013-03-11 11:44:34', 1, 0),
(27, '41', 1, 'U', 'yh', '2013-03-11 11:45:23', 1, 0),
(31, '60', 81, 'C', 'fdsfds', '2013-03-12 08:11:37', 1, 0),
(32, '41', 1, 'U', 'dsddsdsd', '2013-03-14 08:20:32', 1, 0),
(33, '41', 81, 'C', 'dasfasfasdfdsf', '2013-03-15 05:56:28', 1, 0),
(34, '41', 81, 'C', 'sdaf', '2013-03-15 05:56:40', 1, 0),
(35, '41', 81, 'U', 'dfgfsdgf', '2013-03-15 06:16:05', 1, 0),
(36, '41', 81, 'C', 'dfsgdfg ', '2013-03-15 06:16:34', 1, 0),
(37, '41', 81, 'C', 'sdfgsdgsdfg', '2013-03-15 06:16:42', 1, 0),
(38, '41', 81, 'U', 'zxcbzxcb', '2013-03-15 06:18:14', 1, 0),
(39, '41', 81, 'U', 'zcvxbfcb', '2013-03-15 06:18:18', 1, 0),
(40, '41', 81, 'C', 'hello my client', '2013-03-21 08:50:18', 1, 0),
(41, '41', 81, 'U', 'hiii\r\n', '2013-03-22 05:22:02', 1, 0),
(42, '41', 81, 'U', 'asdfadsf', '2013-03-22 05:22:20', 1, 0),
(43, '41', 81, 'C', 'lplp.lpl', '2013-03-22 05:23:12', 1, 0),
(44, '41', 81, 'C', 'hello', '2013-03-22 05:24:20', 1, 0),
(45, '41', 81, 'U', 'oo', '2013-03-30 05:49:24', 1, 0),
(46, '41', 81, 'U', 'sdvsa', '2013-03-30 05:59:43', 1, 0),
(47, '41', 81, 'C', 'sdf', '2013-04-01 08:01:01', 1, 0),
(48, '41', 81, 'C', ':-) <3', '2013-04-03 13:44:12', 1, 0),
(49, '41', 81, 'C', 'yyy', '2013-04-06 04:44:23', 1, 0),
(50, '41', 81, 'C', 'Test Reply', '2013-04-06 06:25:23', 1, 0),
(51, '41', 81, 'C', 'g', '2013-04-06 07:17:30', 1, 0),
(52, '41', 81, 'C', 'k', '2013-04-06 07:17:42', 1, 0),
(53, '41', 1, 'U', 'Plaese Help in in my Day by day Diet Plan?', '2013-04-06 13:52:10', 1, 0),
(54, '41', 81, 'U', 'Suggest me a biceps excercise', '2013-04-09 08:26:55', 1, 0),
(55, '41', 81, 'C', 'Do 3 sets of chin-ups of 15 repititions', '2013-04-09 08:29:56', 1, 0),
(56, '41', 81, 'C', 'Do 3 sets of chin-ups of 15 repititions daily', '2013-04-12 08:50:28', 1, 0),
(57, '41', 1, 'U', 'Hello Sachin', '2013-04-16 09:17:05', 1, 0),
(58, '41', 1, 'C', 'Yes sir', '2013-04-16 09:17:43', 1, 0),
(59, '41', 81, 'U', 'gf', '2013-04-17 09:03:29', 1, 0),
(60, '41', 81, 'C', 'asd', '2013-04-17 10:21:02', 1, 0),
(61, '41', 81, 'C', 'mj', '2013-04-17 10:25:03', 1, 0),
(62, '41', 81, 'C', 'bh', '2013-04-17 10:27:24', 1, 0),
(63, '41', 1, 'C', 'hi there!', '2013-04-17 10:32:33', 1, 0),
(64, '41', 81, 'C', 'hy', '2013-04-17 10:34:36', 1, 0),
(65, '41', 81, 'C', 'gt', '2013-04-17 10:35:23', 1, 0),
(66, '41', 81, 'C', 'hy', '2013-04-17 10:35:58', 1, 0),
(67, '41', 81, 'C', 'hello', '2013-04-17 11:05:23', 1, 0),
(68, '41', 81, 'C', 'hiiiiiii', '2013-04-17 11:06:33', 1, 0),
(69, '41', 1, 'C', 'Hiiiiii Raj', '2013-04-17 11:08:11', 1, 0),
(70, '41', 81, 'C', 'hyhhh', '2013-04-17 11:37:21', 1, 0),
(71, '41', 81, 'C', '''''''', '2013-04-17 11:38:36', 1, 0),
(72, '41', 81, 'C', 'gh', '2013-04-17 11:43:26', 1, 0),
(73, '41', 81, 'U', 'asd', '2013-04-17 13:10:50', 1, 0),
(74, '41', 81, 'U', 'hiiii coach', '2013-04-17 13:15:50', 1, 0),
(75, '41', 81, 'U', 'mmm', '2013-04-17 13:22:53', 1, 0),
(76, '41', 81, 'U', 'how r u', '2013-04-17 13:23:11', 1, 0),
(77, '41', 81, 'U', 'talk', '2013-04-17 13:23:40', 1, 0),
(78, '41', 81, 'U', 'jkjk', '2013-04-17 13:24:06', 1, 0),
(79, '41', 81, 'U', 'tytytyty', '2013-04-17 13:25:02', 1, 0),
(80, '41', 81, 'U', 'tititi', '2013-04-17 13:27:21', 1, 0),
(81, '41', 81, 'C', 'helllo', '2013-04-17 13:30:57', 1, 0),
(82, '41', 81, 'U', 'hi... how r u', '2013-04-17 13:31:15', 1, 0),
(83, '41', 81, 'U', 'asd', '2013-04-17 13:32:34', 1, 0),
(84, '41', 81, 'U', 'sds', '2013-04-17 13:37:45', 1, 0),
(85, '41', 1, 'C', 'hiii', '2013-04-17 13:38:20', 1, 0),
(86, '41', 1, 'C', 'kya ho raha hai...', '2013-04-17 13:39:03', 1, 0),
(87, '41', 1, 'C', 'hhuisahdu', '2013-04-17 13:40:04', 1, 0),
(88, '41', 81, 'C', 'sdfdss', '2013-04-18 04:13:50', 1, 0),
(89, '41', 81, 'C', 'sdfasdf', '2013-04-18 04:14:09', 1, 0),
(90, '41', 81, 'U', 'nhjnhnh', '2013-04-18 04:23:38', 1, 0),
(91, '41', 81, 'U', 'asdf', '2013-04-18 04:27:16', 1, 0),
(92, '41', 81, 'U', 'hello', '2013-04-18 04:28:05', 1, 0),
(93, '41', 81, 'C', 'tt', '2013-04-18 04:28:28', 1, 0),
(94, '41', 81, 'U', 'yhhz gt gt  t rt  tt t tthhyhg', '2013-04-18 04:28:58', 1, 0),
(95, '41', 81, 'U', 'asdfasdf', '2013-04-18 04:38:37', 1, 0),
(96, '41', 81, 'U', 'ujh', '2013-04-18 04:38:53', 1, 0),
(97, '41', 81, 'U', 'mjmm', '2013-04-18 04:40:04', 1, 0),
(98, '41', 81, 'U', 'dsf', '2013-04-18 04:40:44', 1, 0),
(99, '41', 81, 'C', 'sadf', '2013-04-18 04:41:21', 1, 0),
(100, '41', 81, 'C', 'k', '2013-04-18 04:48:01', 1, 0),
(101, '41', 81, 'U', 'asdfasdf', '2013-04-18 04:51:25', 1, 0),
(102, '41', 81, 'C', 'ggg', '2013-04-18 04:56:37', 1, 0),
(103, '41', 81, 'C', 'hyhh', '2013-04-18 04:56:47', 1, 0),
(104, '41', 81, 'C', 'hhh', '2013-04-18 04:56:52', 1, 0),
(105, '41', 81, 'U', 'gggyyyy', '2013-04-18 04:57:04', 1, 0),
(106, '41', 81, 'C', 'ggggggg', '2013-04-18 04:57:30', 1, 0),
(107, '41', 81, 'C', 'dasfsdaf', '2013-04-18 04:57:48', 1, 0),
(108, '41', 81, 'C', 'dfg', '2013-04-18 04:58:07', 1, 0),
(109, '41', 81, 'C', 'asdfasdf', '2013-04-18 04:58:39', 1, 0),
(110, '41', 81, 'U', 'saa', '2013-04-18 04:59:05', 1, 0),
(111, '41', 81, 'C', 'Kya hal chal hai', '2013-04-18 05:08:36', 1, 0),
(112, '41', 81, 'U', 'nn', '2013-04-18 05:09:18', 1, 0),
(113, '41', 81, 'C', 'bbb', '2013-04-18 05:09:31', 1, 0),
(114, '41', 81, 'C', 'hi', '2013-04-19 08:22:39', 1, 0),
(115, '41', 81, 'U', 'hhhh', '2013-04-23 11:51:21', 1, 0),
(116, '41', 1, 'U', 'Hello', '2013-04-23 11:54:57', 1, 0),
(117, '41', 81, 'U', 'hehjh', '2013-04-23 13:45:59', 1, 0),
(118, '41', 81, 'U', 'hello', '2013-04-24 13:24:10', 1, 0),
(119, '41', 81, 'U', 'p', '2013-04-24 13:24:59', 1, 0),
(120, '41', 81, 'U', 'ddd', '2013-04-24 13:29:37', 1, 0),
(121, '41', 81, 'U', 'k', '2013-04-25 05:44:54', 1, 0),
(122, '41', 81, 'U', 'gfr', '2013-04-25 05:46:25', 1, 0),
(123, '41', 81, 'U', 'ds', '2013-04-25 05:48:05', 1, 0),
(124, '41', 81, 'U', 'hh', '2013-04-25 05:54:30', 1, 0),
(125, '41', 81, 'U', 'km', '2013-04-25 05:57:00', 1, 0),
(126, '60', 81, 'U', 'test', '2013-04-25 10:31:14', 1, 0),
(127, '41', 1, 'U', 'hi there i need your help. I need the exercise to reduce my waist''s weight.pl help me i looking bulky.', '2013-05-04 05:52:30', 1, 0),
(162, '41', 1, 'C', 'Hi', '2013-09-17 13:17:52', 1, 0),
(163, '41', 1, 'C', 'Hi', '2013-09-17 13:17:52', 1, 0),
(164, '41', 1, 'C', 'hello', '2013-09-17 13:31:00', 1, 0),
(165, '41', 1, 'U', 'Hello', '2013-09-17 13:31:07', 1, 0),
(166, '41', 1, 'C', 'hi', '2013-12-05 12:59:43', 1, 0),
(167, '41', 1, 'C', 'what\\''s going on', '2013-12-05 13:07:12', 1, 0),
(168, '41', 1, 'U', 'sdf', '2013-12-06 07:46:51', 1, 0),
(174, '41', 1, 'U', 'dfgdf', '2013-12-07 12:36:23', 1, 0),
(175, '41', 1, 'U', 'dfgdf', '2013-12-07 12:36:24', 1, 0),
(176, '41', 1, 'U', 'dfgdf', '2013-12-07 12:36:25', 1, 0),
(177, '41', 1, 'U', 'dfgdf', '2013-12-07 12:36:26', 1, 0),
(178, '41', 1, 'U', 'Hi', '2013-12-07 12:38:41', 1, 0),
(179, '41', 1, 'U', 'hhh', '2013-12-07 12:39:05', 1, 0),
(180, '41', 1, 'U', 'hhy', '2013-12-07 12:40:41', 1, 0),
(181, '71', 1, 'U', 'hiii', '2013-12-07 12:54:51', 1, 0),
(182, '41', 1, 'U', 'dv', '2013-12-07 12:55:32', 1, 0),
(183, '41', 1, 'U', 'dsf', '2013-12-07 12:56:02', 1, 0),
(184, '41', 1, 'U', 'ghjghj', '2013-12-07 12:56:08', 1, 0),
(185, '41', 1, 'U', 'ghjghj', '2013-12-07 12:56:18', 1, 0),
(186, '71', 1, 'U', 'sdfasdf', '2013-12-07 12:56:37', 1, 0),
(187, '71', 1, 'U', 'safd', '2013-12-07 12:57:26', 1, 0),
(188, '71', 1, 'U', 'sdfg', '2013-12-07 12:57:33', 1, 0),
(189, '71', 1, 'U', 'dvf', '2013-12-07 12:59:26', 1, 0),
(190, '71', 1, 'U', 'df', '2013-12-07 13:00:18', 1, 0),
(191, '71', 1, 'U', 'hii', '2013-12-09 04:47:51', 1, 0),
(192, '41', 1, 'U', 'i', '2013-12-09 05:04:26', 1, 0),
(193, '41', 1, 'C', 'hii', '2013-12-18 11:11:26', 1, 0),
(194, '41', 1, 'U', 'yres', '2013-12-24 09:50:09', 1, 0),
(195, '41', 81, 'U', 'hello raj', '2013-12-26 04:44:13', 1, 0),
(196, '41', 81, 'U', 'yes boss', '2013-12-26 04:58:32', 1, 0),
(197, '41', 81, 'U', 'dfssdf', '2013-12-26 04:59:28', 1, 0),
(198, '41', 81, 'U', 'sdfsdf', '2013-12-26 04:59:41', 1, 0),
(199, '41', 81, 'U', 'ff', '2013-12-26 05:00:11', 1, 0),
(200, '41', 81, 'U', 'asd', '2013-12-26 05:00:16', 1, 0),
(201, '41', 81, 'U', 'dddd', '2013-12-26 05:50:10', 1, 0),
(202, '41', 1, 'U', 'kya haal', '2014-01-08 12:02:21', 1, 0),
(203, '41', 1, 'U', 'sdf', '2014-01-08 12:09:07', 1, 0),
(204, '41', 1, 'U', 'ert', '2014-01-08 12:13:57', 1, 0),
(205, '41', 1, 'U', 'Nutritional Classification: Vegetarian Food Allergies: Bringle13 Other Allergies: Dust Additional Notes: Not Mentioned\r\n\r\n 6th Lane, MN, YOUNG AMERICA  rajwantg.3112@gmail.com  8899556699, 8899556622', '2014-01-08 12:23:17', 1, 0),
(206, '41', 1, 'U', ';', '2014-01-08 12:24:55', 1, 0),
(207, '41', 1, 'U', 'wer', '2014-01-08 13:31:00', 1, 0),
(208, '41', 1, 'U', 'sdf', '2014-01-08 13:35:35', 1, 0),
(209, '41', 1, 'U', 'fr', '2014-01-08 13:36:01', 1, 0),
(210, '41', 1, 'U', 'erff', '2014-01-08 13:43:37', 1, 0),
(211, '41', 1, 'U', 'yu', '2014-01-09 04:26:04', 1, 0),
(212, '41', 1, 'U', 'yu', '2014-01-09 04:26:06', 1, 0),
(213, '41', 1, 'U', 'dfg', '2014-01-09 11:34:37', 1, 0),
(214, '41', 1, 'U', 'gfgf', '2014-01-09 11:35:28', 1, 0),
(215, '41', 1, 'U', 'sdf', '2014-01-09 11:36:46', 1, 0),
(216, '41', 1, 'U', 'skm', '2014-01-09 11:42:42', 1, 0),
(217, '41', 1, 'C', 'dd', '2014-01-11 08:57:41', 1, 1),
(218, '41', 1, 'U', 'as', '2014-01-11 09:01:57', 1, 0),
(219, '41', 1, 'C', 'dsf', '2014-01-11 09:03:00', 1, 1),
(220, '41', 1, 'C', 'fff', '2014-01-11 11:34:27', 1, 1),
(221, '41', 1, 'C', 'asd', '2014-01-11 11:34:37', 1, 1),
(222, '41', 1, 'C', 'sd', '2014-01-11 11:35:42', 1, 1),
(223, '41', 1, 'C', '\\''', '2014-01-11 11:39:20', 1, 1),
(224, '41', 1, 'C', 'gft', '2014-01-11 11:40:07', 1, 1),
(225, '41', 1, 'C', 'fsdf', '2014-01-11 11:40:50', 1, 1),
(226, '41', 1, 'C', 'fsdfsdf', '2014-01-11 11:41:04', 1, 1),
(228, '41', 8, 'C', 'Hi', '2014-01-11 11:50:43', 1, 1),
(229, '41', 8, 'U', 'hii\r\n', '2014-01-11 11:50:55', 1, 0),
(230, '41', 8, 'C', 'How r u dude', '2014-01-11 11:51:12', 1, 1),
(231, '41', 8, 'U', 'Fine dear', '2014-01-11 11:51:22', 1, 0),
(232, '41', 1, 'C', 'Hi', '2014-04-29 11:32:03', 1, 1),
(233, '41', 1, 'C', '', '2014-04-29 12:09:17', 1, 1),
(234, '41', 1, 'C', '', '2014-04-29 12:09:22', 1, 1),
(235, '41', 1, 'C', '', '2014-04-29 12:09:23', 1, 1),
(236, '41', 1, 'C', '', '2014-04-29 12:09:33', 1, 1),
(237, '41', 1, 'C', '', '2014-04-29 12:09:35', 1, 1),
(238, '41', 1, 'C', '', '2014-04-29 12:09:35', 1, 1),
(240, '41', 1, 'C', 'hi', '2014-04-29 12:13:00', 1, 1),
(241, '41', 1, 'C', 'Hello Raj', '2014-04-29 12:16:10', 1, 1),
(242, '41', 1, 'C', 'Hows ur workout', '2014-04-29 12:25:32', 1, 1),
(243, '41', 1, 'C', 'are u running now a days', '2014-04-29 12:26:12', 1, 1),
(244, '41', 1, 'C', 'ok', '2014-04-29 12:56:27', 1, 1),
(245, '41', 1, 'C', 'http://192.168.137.58/tulasi/photos/profile_photo/1_1396851378.jpg', '2014-04-29 12:56:58', 1, 1),
(246, '41', 1, 'C', 'http://192.168.137.58/tulasi/photos/profile_photo/1_1396851378.jpg', '2014-04-29 13:09:47', 1, 1),
(247, '41', 1, 'C', 'http://192.168.137.58/tulasi/tulasi_user1/photos/profile_photo/41_1387513821.jpg', '2014-04-29 13:09:55', 1, 1),
(248, '41', 1, 'C', 'asd', '2014-05-15 04:51:08', 1, 1),
(249, '41', 1, 'C', 'j', '2014-05-15 04:51:52', 1, 1),
(250, '41', 1, 'C', 'test', '2014-05-15 04:52:59', 1, 1),
(251, '41', 1, 'C', 'yes', '2014-05-15 04:58:16', 1, 1),
(252, '41', 63, 'C', 'hii', '2014-06-11 06:24:37', 1, 1),
(253, '41', 63, 'C', 'bye', '2014-06-11 06:26:07', 1, 1),
(254, '41', 63, 'U', 'hd', '2014-06-11 06:33:05', 1, 0),
(255, '41', 63, 'C', 'dfg', '2014-06-11 06:40:46', 1, 1),
(256, '41', 63, 'C', 'asdasd', '2014-06-11 06:41:24', 1, 1),
(257, '41', 63, 'U', 'tyty', '2014-06-11 06:57:14', 1, 0),
(258, '41', 39, 'U', 'hello', '2014-06-11 06:59:26', 1, 0),
(259, '98', 39, 'U', 'hi  tom', '2014-06-11 07:43:12', 1, 0),
(260, '98', 1, 'U', 'hii', '2015-01-20 08:31:14', 1, 0),
(261, '98', 1, 'U', 'hello', '2015-01-20 08:31:59', 1, 0),
(262, '98', 1, 'U', 'hiiii', '2015-01-20 08:32:09', 1, 0),
(263, '98', 1, 'U', 'j', '2015-01-20 08:32:40', 1, 0),
(264, '98', 1, 'U', 'tesrt', '2015-01-20 08:35:39', 1, 0),
(265, '98', 1, 'C', 'hello', '2015-01-20 08:37:18', 1, 1),
(266, '98', 1, 'C', 'hii', '2015-01-20 08:37:37', 1, 1),
(267, '98', 1, 'C', 'hhh', '2015-01-20 08:39:09', 1, 1),
(268, '98', 1, 'U', 'jmm', '2015-01-20 10:14:36', 1, 0),
(269, '98', 1, 'C', 'm m', '2015-01-20 10:15:05', 1, 1),
(270, '98', 1, 'C', 'aaa', '2015-01-20 11:43:29', 1, 1),
(271, '41', 89, 'U', 'Hi Bassel I am not loosing weight because I can not resist my self from eating a full butter chicken everyday', '2015-06-13 13:26:54', 1, 0),
(272, '41', 89, 'C', 'God Help', '2015-06-13 13:27:25', 1, 1),
(273, '41', 1, 'C', 'hi', '2015-06-25 10:21:34', 1, 1),
(274, '98', 1, 'C', 'Ho', '2016-02-20 13:03:18', 1, 1),
(275, '98', 1, 'C', '123456789', '2016-02-20 13:03:31', 1, 1),
(276, '98', 1, 'U', 'kjjhjguhfh', '2016-02-24 06:10:06', 1, 0),
(277, '98', 1, 'U', 't54yrtyhrtj', '2016-02-29 07:42:19', 1, 0);

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

--
-- Table structure for table `th_coach_dbn_adjustment`
--

CREATE TABLE IF NOT EXISTS `th_coach_dbn_adjustment` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `dbn_id` varchar(20) NOT NULL,
  `invoice_id` varchar(20) NOT NULL COMMENT 'Against this invoice ID debit notes will be generated',
  `adj_invoice_id` varchar(20) NOT NULL COMMENT 'Adjusted Invoice ID after Debit/ Refund Note Creation',
  `new_amt` float NOT NULL DEFAULT '0',
  `adj_amt` float NOT NULL DEFAULT '0',
  `adj_date` timestamp NULL DEFAULT CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  KEY `adj_invoice_id` (`adj_invoice_id`)
) ENGINE=InnoDB  DEFAULT CHARSET=latin1 AUTO_INCREMENT=11 ;

--
-- Dumping data for table `th_coach_dbn_adjustment`
--

INSERT INTO `th_coach_dbn_adjustment` (`id`, `dbn_id`, `invoice_id`, `adj_invoice_id`, `new_amt`, `adj_amt`, `adj_date`) VALUES
(1, 'DBN1-41-0001', 'INV1-41-0019', 'INV1-41-0020', 0, 200, '2013-11-12 07:42:29'),
(2, 'DBN1-41-0001', 'INV1-41-0019', 'INV1-41-0019', 100, 100, '2013-11-12 07:42:29'),
(3, 'DBN1-41-0002', 'INV1-41-0001', 'INV1-41-0003', 0, 1000, '2013-11-12 10:51:47'),
(4, 'DBN1-41-0002', 'INV1-41-0001', 'INV1-41-0002', 800, 200, '2013-11-12 10:51:47'),
(5, 'DBN1-41-0003', 'INV1-41-0001', 'INV1-41-0002', 300, 500, '2013-11-12 10:58:00'),
(6, 'DBN1-41-0004', 'INV1-41-0001', 'INV1-41-0002', 200, 100, '2013-11-12 11:00:07'),
(7, 'DBN1-41-0005', 'INV1-41-0022', 'INV1-41-0022', 500, 1500, '2013-11-13 06:51:48'),
(8, 'DBN1-41-0006', 'INV1-41-0019', 'INV1-41-0019', 50, 50, '2013-11-13 07:20:42'),
(9, 'DBN1-41-0007', 'INV1-41-0023', 'INV1-41-0026', 0, 200, '2013-11-13 09:15:03'),
(10, 'DBN1-41-0008', 'INV1-41-0062', 'INV1-41-0062', 0.06, 1, '2014-01-14 12:57:24');

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

--
-- Table structure for table `th_coach_debitnote`
--

CREATE TABLE IF NOT EXISTS `th_coach_debitnote` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `dbn_id` varchar(20) NOT NULL,
  `debited_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `invoice_id` varchar(20) NOT NULL,
  `user_id_fkx` int(11) NOT NULL,
  `rgs_id_fkx` int(10) unsigned NOT NULL,
  `amount` double NOT NULL,
  `narration` varchar(255) NOT NULL,
  `dbn_type` varchar(10) NOT NULL COMMENT 'ADJ->Adjustment, RO-> Refund Only',
  `ref_amount` float DEFAULT '0',
  PRIMARY KEY (`id`),
  KEY `user_id_fkx` (`user_id_fkx`),
  KEY `rgs_id_fkx` (`rgs_id_fkx`)
) ENGINE=InnoDB  DEFAULT CHARSET=latin1 AUTO_INCREMENT=9 ;

--
-- Dumping data for table `th_coach_debitnote`
--

INSERT INTO `th_coach_debitnote` (`id`, `dbn_id`, `debited_date`, `invoice_id`, `user_id_fkx`, `rgs_id_fkx`, `amount`, `narration`, `dbn_type`, `ref_amount`) VALUES
(1, 'DBN1-41-0001', '2013-11-12 07:42:29', 'INV1-41-0019', 41, 1, 300, '', 'ADJ', 0),
(2, 'DBN1-41-0002', '2013-11-12 10:51:47', 'INV1-41-0001', 41, 1, 1200, '', 'ADJ', 0),
(3, 'DBN1-41-0003', '2013-11-12 10:58:00', 'INV1-41-0001', 41, 1, 500, '', 'ADJ', 0),
(4, 'DBN1-41-0004', '2013-11-12 11:00:07', 'INV1-41-0001', 41, 1, 100, '', 'ADJ', 0),
(5, 'DBN1-41-0005', '2013-11-13 06:51:48', 'INV1-41-0022', 41, 39, 1500, '', 'ADJ', 0),
(6, 'DBN1-41-0006', '2013-11-13 07:20:42', 'INV1-41-0019', 41, 1, 50, '', 'ADJ', 0),
(7, 'DBN1-41-0007', '2013-11-13 09:15:03', 'INV1-41-0023', 41, 1, 200, '', 'ADJ', 0),
(8, 'DBN1-41-0008', '2014-01-14 12:57:24', 'INV1-41-0062', 41, 1, 1, '', 'ADJ', 0);

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

--
-- Table structure for table `th_coach_education`
--

CREATE TABLE IF NOT EXISTS `th_coach_education` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `user_id_fkx` int(10) NOT NULL,
  `course_name` varchar(100) NOT NULL,
  `provider_name` varchar(100) DEFAULT NULL,
  `credit_type` varchar(20) DEFAULT NULL,
  `agency_id` int(10) DEFAULT NULL,
  `agency_other` varchar(150) NOT NULL,
  `credits` varchar(50) DEFAULT NULL,
  `course_provider` varchar(50) DEFAULT NULL,
  `complition_date` date DEFAULT NULL,
  `authors` varchar(50) DEFAULT NULL,
  `location` varchar(50) DEFAULT NULL,
  `created` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  KEY `user_id_fkx` (`user_id_fkx`)
) ENGINE=InnoDB  DEFAULT CHARSET=latin1 AUTO_INCREMENT=27 ;

--
-- Dumping data for table `th_coach_education`
--

INSERT INTO `th_coach_education` (`id`, `user_id_fkx`, `course_name`, `provider_name`, `credit_type`, `agency_id`, `agency_other`, `credits`, `course_provider`, `complition_date`, `authors`, `location`, `created`) VALUES
(7, 41, 'Test', 'ABCD', 'Course', 5, '', '123', 'Test', '2012-11-01', 'Test', ' Gold Coast', '2013-04-06 12:33:41'),
(8, 41, 'C name', 'sdaf', 'Course', 18, '', '5000', 'dfsg', '2013-09-24', 'df', 'gg', '2013-09-12 13:05:05'),
(9, 41, 'Demo Course Name', 'Demo Provider', 'Session', 16, '', 'Demo Credit', 'Demo Provider', '2013-09-25', 'Sheetal KUmar', 'Lucknow', '2013-09-12 13:06:19'),
(10, 41, 'MCA', 'Lucknow University', 'Course', 264, '', '2300', 'Lucknow University', '2012-06-13', 'Dr. Puneet Mista', 'Lucknow', '2013-09-28 13:24:51'),
(11, 41, 'bbb', 'bbbb', 'Session', 268, '', 'nnnnnn', 'nnnnn', '2013-09-26', 'nnn', 'nmmm', '2013-09-30 06:25:10'),
(12, 41, 'BBA''s new', 'asd', 'Other', 14, '', '3434', 'dfsf', '2013-10-08', 'sf', 'sdf', '2013-10-03 07:23:29'),
(13, 41, 'test''s', 'asd', 'Session', 1, '', 'sad', 'asd', '2013-10-18', '', '', '2013-10-03 07:28:30'),
(14, 92, 'B.Ed', 'Lucknow University', 'Session', 2, '', 'B.com', 'LU', '2013-11-18', '', '', '2013-12-06 12:18:49'),
(15, 98, 'ADE', 'BBS Provider', 'Session', 1, '', '40', 'BCL College', '2013-06-10', '', '', '2014-06-17 04:59:09'),
(17, 98, 'BSD', 'BBS Provider', 'Session', 1, '', '40', 'BCL College', '2013-06-10', '', '', '2014-06-17 04:59:22'),
(18, 98, 'BSD', 'BBS Provider', 'Session', 1, '', '40', 'BCL College', '2013-06-10', '', '', '2014-06-17 04:59:22'),
(19, 98, 'BSD', 'BBS Provider', 'Session', 1, '', '40', 'BCL College', '2013-06-10', '', '', '2014-06-17 04:59:23'),
(20, 98, 'BSD', 'BBS Provider', 'Session', 1, '', '40', 'BCL College', '2013-06-10', '', '', '2014-06-17 04:59:23'),
(21, 98, 'BSD', 'BBS Provider', 'Session', 1, '', '40', 'BCL College', '2013-06-10', '', '', '2014-06-17 04:59:23'),
(22, 98, 'asdf', 'dasf', 'Course', 2, '', 'asdf', 'sdf', '2013-06-10', 'as', '', '2014-06-17 05:05:06'),
(23, 98, 'dasf', 'asdf', 'Course', 1, '', 'asdf', 'asdf', '2014-06-10', 'asdf', 'asdf', '2014-06-17 05:06:26'),
(24, 98, 'dasf', 'asdf', 'Course', 1, '', 'asdf', 'asdf', '2014-06-10', 'asdf', 'asdf', '2014-06-17 05:08:20'),
(26, 41, 'Test', 'test', 'Session', 4, '', '20', 'Test', '2015-09-23', '', '', '2015-09-30 06:52:33');

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

--
-- Table structure for table `th_coach_group_sessions`
--

CREATE TABLE IF NOT EXISTS `th_coach_group_sessions` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `session_purpose` varchar(100) NOT NULL,
  `session_desc` text,
  `session_image` varchar(100) DEFAULT NULL,
  `user_id_fkx` int(11) NOT NULL,
  `session_status` varchar(10) DEFAULT 'Active' COMMENT 'Active, Done, Cancel',
  `appointment_date` date NOT NULL,
  `appointment_time` time NOT NULL,
  `appointment_time_to` time DEFAULT NULL,
  `appointment_venue_id` varchar(10) DEFAULT NULL,
  `appointment_venue` text NOT NULL,
  `allotment_date` timestamp NULL DEFAULT CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB  DEFAULT CHARSET=latin1 AUTO_INCREMENT=51 ;

--
-- Dumping data for table `th_coach_group_sessions`
--

INSERT INTO `th_coach_group_sessions` (`id`, `session_purpose`, `session_desc`, `session_image`, `user_id_fkx`, `session_status`, `appointment_date`, `appointment_time`, `appointment_time_to`, `appointment_venue_id`, `appointment_venue`, `allotment_date`) VALUES
(30, 'Lower Body Workout', '', '', 41, 'Done', '2013-11-28', '08:00:00', '10:30:00', '22', 'ABC, 123, SCHENECTADY NY', '2013-10-28 06:09:17'),
(31, 'Group Yoga Class', 'Group Yoga Classes', '', 41, 'Done', '2013-11-08', '07:00:00', '11:00:00', '22', 'ABC, 123, SCHENECTADY NY', '2013-10-28 10:43:42'),
(32, 'Group Yoga Class', 'Group Yoga Classes for the Male and Female both. This Yoga Class is for only the age group of 15 years to 40 years.', '', 41, 'Done', '2013-11-28', '07:00:00', '11:00:00', '38', 'Sky Line Fitness, Narayan Nagar, SCHENECTADY NY', '2013-11-22 05:58:23'),
(33, 'Zumba Dance Training', '', '', 41, 'Done', '2014-01-02', '07:30:00', '10:00:00', '22', 'ABC, 123, SCHENECTADY NY', '2013-12-24 09:17:11'),
(34, 'Group Yoga Class', '', '', 41, 'Done', '2013-12-26', '08:00:00', '11:30:00', '25', 'Skm loc, 123456, SCHENECTADY NY', '2013-12-24 09:25:27'),
(35, 'Zumba Dance Training', '', '', 41, 'Done', '2013-12-28', '09:00:00', '10:30:00', '25', 'Skm loc, 123456, SCHENECTADY NY', '2013-12-24 09:28:19'),
(36, 'Zumba Dance Training', '', '', 41, 'Done', '2014-01-31', '22:50:00', '11:40:00', '24', 'Raj Loc, 123445, SCHENECTADY NY', '2014-01-14 06:16:22'),
(41, 'Yoga Training', 'Test', 'nutrition/group_activity/sess_img_98_14013412939699.jpg', 98, 'Done', '2014-06-04', '06:00:00', '10:45:00', 'other', 'Test', '2014-05-29 05:28:14'),
(42, 'Yoga Training', 'lorem ipsum', '', 98, 'Done', '2014-06-17', '09:25:00', '11:45:00', '21', 'xyz, lko, SCHENECTADY NY', '2014-06-17 06:17:29'),
(43, 'Zumba Dance Training', 'Zumba Dance', '', 41, 'Done', '2014-07-30', '07:00:00', '11:00:00', '39', 'Great Muscles lets''s start, Mahanagar, HOLTSVILLE NY', '2014-07-18 07:48:01'),
(46, 'Zumba Dance Training', '', '', 41, 'Done', '2015-10-01', '09:00:00', '16:52:00', '24', 'Raj Loc, 123445, SCHENECTADY NY', '2015-09-30 11:22:48'),
(47, 'Lower Body Workout', '', '', 41, 'Done', '2015-10-01', '04:00:00', '16:54:00', '25', 'Skm loc, 123456, SCHENECTADY NY', '2015-09-30 11:25:02'),
(48, 'Blood Pressure Checkup', '', '', 41, 'Done', '2015-10-10', '09:00:00', '11:40:00', '47', 'RS Health Center, elm 123, SCHENECTADY NY', '2015-10-03 06:12:54'),
(49, 'Blood Sugar Camp', '', '', 98, 'Done', '2015-10-10', '08:00:00', '13:00:00', '48', 'Neil Health Club, 123 Rox Street, SCHENECTADY NY', '2015-10-03 07:39:55'),
(50, 'Zumba Dance Training', '', '', 41, 'Done', '2016-04-15', '08:00:00', '15:45:00', '37', 'abcdefg, abcdefg, SCHENECTADY NY', '2016-04-09 10:25:10');

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

--
-- Table structure for table `th_coach_gym_allotment`
--

CREATE TABLE IF NOT EXISTS `th_coach_gym_allotment` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `gym_id` int(11) NOT NULL,
  `user_id_fkx` int(11) NOT NULL,
  `position` tinyint(2) NOT NULL,
  `location` tinyint(1) NOT NULL,
  `vstatus` varchar(2) NOT NULL DEFAULT 'P' COMMENT 'P- Pending, D- Deny, V- Verified',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB  DEFAULT CHARSET=latin1 AUTO_INCREMENT=98 ;

--
-- Dumping data for table `th_coach_gym_allotment`
--

INSERT INTO `th_coach_gym_allotment` (`id`, `gym_id`, `user_id_fkx`, `position`, `location`, `vstatus`) VALUES
(16, 7, 42, 1, 0, 'P'),
(17, 7, 45, 1, 0, 'P'),
(37, 20, 72, 2, 0, 'D'),
(38, 20, 70, 1, 0, 'P'),
(40, 7, 41, 1, 0, 'P'),
(42, 22, 41, 1, 0, 'P'),
(44, 24, 41, 1, 0, 'P'),
(45, 25, 41, 1, 0, 'P'),
(47, 27, 41, 1, 0, 'P'),
(48, 28, 41, 1, 0, 'P'),
(58, 20, 41, 2, 1, 'V'),
(59, 27, 41, 1, 0, 'P'),
(65, 36, 41, 1, 0, 'V'),
(66, 37, 41, 1, 0, 'P'),
(67, 38, 41, 1, 0, 'P'),
(68, 7, 41, 1, 0, 'P'),
(71, 36, 60, 1, 0, 'P'),
(72, 21, 60, 2, 1, 'V'),
(73, 22, 60, 1, 1, 'P'),
(74, 20, 60, 2, 0, 'V'),
(76, 23, 60, 2, 0, 'V'),
(77, 7, 41, 1, 0, 'P'),
(78, 20, 41, 1, 0, 'P'),
(80, 23, 41, 2, 0, 'P'),
(82, 7, 41, 1, 0, 'P'),
(83, 30, 41, 1, 0, 'P'),
(84, 39, 41, 1, 0, 'P'),
(85, 7, 92, 1, 1, 'P'),
(86, 24, 92, 1, 0, 'P'),
(87, 20, 98, 1, 1, 'P'),
(88, 21, 98, 1, 0, 'P'),
(89, 40, 41, 1, 1, 'P'),
(90, 41, 41, 1, 0, 'P'),
(91, 42, 41, 1, 0, 'P'),
(92, 43, 41, 1, 1, 'P'),
(93, 44, 98, 1, 1, 'P'),
(94, 45, 41, 1, 0, 'P'),
(95, 46, 41, 1, 0, 'P'),
(96, 47, 41, 1, 0, 'P'),
(97, 48, 98, 1, 0, 'P');

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

--
-- Table structure for table `th_coach_gym_master`
--

CREATE TABLE IF NOT EXISTS `th_coach_gym_master` (
  `gym_id` int(11) NOT NULL AUTO_INCREMENT,
  `gym_name` varchar(100) NOT NULL,
  `gym_street` varchar(150) NOT NULL,
  `gym_zip` varchar(10) NOT NULL,
  `gym_phone` varchar(15) NOT NULL,
  `gym_website` varchar(100) NOT NULL,
  `gym_facility` varchar(100) DEFAULT NULL,
  `user_id_fkx` varchar(100) NOT NULL,
  `status` tinyint(1) NOT NULL,
  `created` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  PRIMARY KEY (`gym_id`),
  KEY `gym_zip` (`gym_zip`)
) ENGINE=InnoDB  DEFAULT CHARSET=latin1 AUTO_INCREMENT=49 ;

--
-- Dumping data for table `th_coach_gym_master`
--

INSERT INTO `th_coach_gym_master` (`gym_id`, `gym_name`, `gym_street`, `gym_zip`, `gym_phone`, `gym_website`, `gym_facility`, `user_id_fkx`, `status`, `created`) VALUES
(7, 'sdfdsaf', 'sdfsdaf', '12123', '12313123', '12313', '2,4', '41', 1, '2013-01-25 07:45:35'),
(20, 'Gold Gyms ', 'Mahanagar Lucknow', '12541', '9795572345', 'http:://goldgym.com', '2,3,4,6,7', '41', 1, '2013-04-06 11:08:19'),
(21, 'xyz', 'lko', '12345', '0795572344', '', '1,2,4,6', '41', 1, '2013-06-12 08:28:45'),
(22, 'ABC', '123', '12345', '12345678', '', '1,2', '41', 1, '2013-06-12 08:30:34'),
(23, 'pqr', 'pqr', '12345', '122344', '', '2,3', '41', 1, '2013-06-12 08:40:29'),
(24, 'Raj Loc', '123445', '12345', '12345', '', '2,4', '41', 1, '2013-06-12 08:44:53'),
(25, 'Skm loc', '123456', '12345', '', '', '2,4', '41', 1, '2013-06-12 08:48:04'),
(27, 'Test Loc', 'tloc', '12345', '', '', '2', '41', 1, '2013-06-13 07:56:57'),
(28, 'devesh', 'trtrtrtr', '501', '', '', '2,4,6', '41', 1, '2013-07-31 12:00:36'),
(29, 'raj facility', 'safdasf', '12345', '54657567868', 'http://jsdhfjksh./asfl', '3,4,6,7', '41', 1, '2013-09-16 09:02:48'),
(30, 'Aloc\\''s Gym', 'narayan nagar', '12345', '7388866668', 'http://toplogin.in/demo', '2,3,4,6,7', '41', 1, '2013-09-16 09:04:52'),
(36, 'Rashid Factorial Gym', 'lucknow', '12345', '3453425', 'http://factgym.in', '2,4,5', '41', 1, '2013-09-16 11:34:59'),
(37, 'abcdefg', 'abcdefg', '12345', '112544', '', '', '41', 1, '2013-09-17 05:58:13'),
(38, 'Sky Line Fitness', 'Narayan Nagar', '12345', '9795515257', 'http://lkouniv.ac.in', '2,3,6', '41', 1, '2013-09-17 06:00:49'),
(39, 'Great Muscles lets''s start', 'Mahanagar', '501', '8944525522', '', '3,4', '41', 1, '2013-10-03 07:14:18'),
(40, 'Test22', 'Test1', '12345', '8788787', '', '2,4', '41', 1, '2015-10-01 06:48:02'),
(41, 'Testing 1', 'Testing', '12345', '8787878787', '', '2,4', '41', 1, '2015-10-01 06:49:24'),
(42, 'Test 2', 'test 2', '12345', '98989898', '', '5', '41', 1, '2015-10-01 06:55:44'),
(43, 'Testing 4', 'Testing 3', '12345', '97899787987', '', '2,3', '41', 1, '2015-10-01 07:26:16'),
(44, 'Test', 'Test2', '12345', '9899898', '', '2', '98', 1, '2015-10-01 10:43:08'),
(45, 'Testing Group Vanue', 'Testing', '12345', '87878987', '', '2,4', '41', 1, '2015-10-01 12:41:36'),
(46, 'Group Activity Hall', 'ABC Street', '12345', '87786789', '', 'Array', '41', 1, '2015-10-01 12:58:03'),
(47, 'RS Health Center', 'elm 123', '12345', '65432145', '', '2', '41', 1, '2015-10-03 06:11:37'),
(48, 'Neil Health Club', '123 Rox Street', '12345', '7895632514', '', '2', '98', 1, '2015-10-03 07:39:28');

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

--
-- Table structure for table `th_coach_invoice`
--

CREATE TABLE IF NOT EXISTS `th_coach_invoice` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `invoice_id` varchar(25) NOT NULL,
  `inv_type` varchar(20) DEFAULT NULL COMMENT 'PS->Product Sold,GM->Gym Membership, SS->Session Sold',
  `rgs_id_fkx` int(10) unsigned NOT NULL,
  `employer_id` int(11) DEFAULT '0' COMMENT 'Employer ID from tc_rgs table if participant is a verified employee',
  `user_id_fkx` int(10) NOT NULL,
  `due_date` date DEFAULT NULL,
  `dis_before_due` float DEFAULT '0',
  `in_amt_notax` float DEFAULT NULL,
  `tax` varchar(4) DEFAULT 'NO' COMMENT 'YES or NO',
  `tax_type` varchar(30) DEFAULT NULL,
  `tax_per` float DEFAULT '0',
  `in_amount` float NOT NULL,
  `in_remark` text NOT NULL,
  `in_status` varchar(10) DEFAULT 'Pending' COMMENT 'Active, Cancel',
  `plan_id` int(11) DEFAULT NULL,
  `in_total` float DEFAULT '0',
  `ref_id` varchar(20) DEFAULT NULL COMMENT 'Ref ID is given in case of installment Plan, it will be the first Invoice No. of that transaction',
  `inst_plan` varchar(10) DEFAULT NULL,
  `in_date` timestamp NULL DEFAULT CURRENT_TIMESTAMP,
  `paid_status` varchar(10) DEFAULT 'pending' COMMENT 'pending,paid',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB  DEFAULT CHARSET=latin1 AUTO_INCREMENT=70 ;

--
-- Dumping data for table `th_coach_invoice`
--

INSERT INTO `th_coach_invoice` (`id`, `invoice_id`, `inv_type`, `rgs_id_fkx`, `employer_id`, `user_id_fkx`, `due_date`, `dis_before_due`, `in_amt_notax`, `tax`, `tax_type`, `tax_per`, `in_amount`, `in_remark`, `in_status`, `plan_id`, `in_total`, `ref_id`, `inst_plan`, `in_date`, `paid_status`) VALUES
(1, 'INV1-41-0001', 'SS', 1, 0, 41, '2013-10-15', 0, NULL, '0', NULL, 0, 1000, '', 'Active', 3, 3000, '', '1-15', '2013-10-11 11:45:05', 'paid'),
(2, 'INV1-41-0002', 'SS', 1, 0, 41, '2013-11-01', 0, NULL, '0', NULL, 0, 1000, '', 'Active', 3, 3000, 'INV1-41-0001', '1-15', '2013-10-11 11:45:05', 'pending'),
(3, 'INV1-41-0003', 'SS', 1, 0, 41, '2013-11-15', 0, NULL, '0', NULL, 0, 1000, '', 'Active', 3, 3000, 'INV1-41-0001', '1-15', '2013-10-11 11:45:05', 'ADJ'),
(4, 'INV1-41-0004', 'SS', 1, 0, 41, '2013-10-16', 50, NULL, '0', NULL, 0, 500, '', 'Active', 3, 500, NULL, 'S', '2013-10-11 12:19:19', 'paid'),
(5, 'INV1-41-0005', 'SS', 1, 0, 41, '2013-10-18', 50, NULL, '0', NULL, 0, 600, '', 'Cancel', 3, 600, NULL, 'S', '2013-10-11 12:30:30', 'pending'),
(6, 'INV1-41-0006', 'SS', 1, 0, 41, '2013-10-18', 25, NULL, '0', NULL, 0, 400, '', 'Active', 2, 400, NULL, 'S', '2013-10-11 12:47:41', 'paid'),
(7, 'INV1-41-0007', 'PS', 1, 0, 41, '2013-10-21', 0, NULL, '0', NULL, 0, 350, '', 'Active', NULL, 350, NULL, NULL, '2013-10-14 04:52:18', 'paid'),
(8, 'INV1-41-0008', 'PS', 1, 0, 41, '2013-10-24', 0, NULL, '0', NULL, 0, 650, '', 'Active', NULL, 650, NULL, NULL, '2013-10-17 07:11:18', 'paid'),
(9, 'INV1-41-0009', 'PS', 1, 0, 41, '2013-10-24', 0, NULL, '0', NULL, 0, 200, '', 'Active', NULL, 200, NULL, NULL, '2013-10-17 07:15:25', 'paid'),
(10, 'INV1-41-0010', 'PS', 1, 0, 41, '2013-10-24', 0, NULL, '0', NULL, 0, 180, '', 'Active', NULL, 180, NULL, NULL, '2013-10-17 12:03:21', 'paid'),
(11, 'INV1-41-0011', 'PS', 1, 0, 41, '2013-10-24', 0, NULL, '0', NULL, 0, 150, '', 'Active', NULL, 150, NULL, NULL, '2013-10-17 12:03:40', 'paid'),
(12, 'INV1-41-0012', 'PS', 1, 0, 41, '2013-10-24', 0, NULL, '0', NULL, 0, 200, '', 'Cancel', NULL, 200, NULL, NULL, '2013-10-17 12:06:22', 'pending'),
(13, 'INV1-41-0013', 'PS', 1, 0, 41, '2013-10-24', 0, NULL, '0', NULL, 0, 150, '', 'Active', NULL, 150, NULL, NULL, '2013-10-17 12:06:29', 'pending'),
(14, 'INV1-41-0014', 'PS', 1, 0, 41, '2013-10-24', 0, NULL, '0', NULL, 0, 700, '', 'Active', NULL, 700, NULL, NULL, '2013-10-17 12:58:46', 'pending'),
(15, 'INV1-41-0015', 'PS', 1, 0, 41, '2013-10-30', 0, NULL, '0', NULL, 0, 200, '', 'Active', NULL, 200, NULL, NULL, '2013-10-23 05:29:31', 'pending'),
(16, 'INV1-41-0016', 'SS', 1, 0, 41, '2013-10-30', 0, NULL, '0', NULL, 0, 0, '', 'Cancel', 3, 0, NULL, 'S', '2013-10-23 08:48:51', 'pending'),
(17, 'INV1-41-0017', 'SS', 1, 0, 41, '2013-10-30', 0, NULL, '0', NULL, 0, 0, '', 'Cancel', 3, 0, NULL, 'S', '2013-10-23 08:50:15', 'pending'),
(18, 'INV1-41-0018', 'SS', 1, 0, 41, '2013-11-01', 0, NULL, '0', NULL, 0, 0, '', 'Cancel', 3, 0, NULL, 'S', '2013-10-25 11:03:40', 'pending'),
(19, 'INV1-41-0019', 'SS', 1, 0, 41, '2013-10-29', 0, NULL, '0', NULL, 0, 200, '', 'Active', 3, 400, '', '1-M', '2013-10-29 10:31:28', 'pending'),
(20, 'INV1-41-0020', 'SS', 1, 0, 41, '2013-11-29', 0, NULL, '0', NULL, 0, 200, '', 'Active', 3, 400, 'INV1-41-0019', '1-M', '2013-10-29 10:31:28', 'ADJ'),
(21, 'INV1-41-0021', 'SS', 1, 0, 41, '2013-11-05', 0, NULL, '0', NULL, 0, 5000, '', 'Active', 3, 5000, NULL, 'S', '2013-10-29 11:39:33', 'pending'),
(22, 'INV1-41-0022', 'SS', 39, 0, 41, '2013-11-07', 0, NULL, '0', NULL, 0, 2000, '', 'Active', 4, 2000, NULL, 'S', '2013-10-31 06:08:28', 'pending'),
(23, 'INV1-41-0023', 'SS', 1, 0, 41, '2013-11-13', 0, NULL, '0', NULL, 0, 200, '', 'Active', 3, 800, '', '2-W', '2013-11-13 07:17:45', 'pending'),
(24, 'INV1-41-0024', 'SS', 1, 0, 41, '2013-11-27', 0, NULL, '0', NULL, 0, 200, '', 'Active', 3, 800, 'INV1-41-0023', '2-W', '2013-11-13 07:17:45', 'paid'),
(25, 'INV1-41-0025', 'SS', 1, 0, 41, '2013-12-11', 0, NULL, '0', NULL, 0, 200, '', 'Active', 3, 800, 'INV1-41-0023', '2-W', '2013-11-13 07:17:45', 'pending'),
(26, 'INV1-41-0026', 'SS', 1, 0, 41, '2013-12-25', 0, NULL, '0', NULL, 0, 200, '', 'Active', 3, 800, 'INV1-41-0023', '2-W', '2013-11-13 07:17:45', 'pending'),
(27, 'INV1-41-0027', 'SS', 1, 0, 41, '2013-11-20', 0, NULL, '0', NULL, 0, 2000, '', 'Active', 3, 2000, NULL, 'S', '2013-11-13 10:34:57', 'pending'),
(28, 'INV1-41-0028', 'SS', 1, 0, 41, '2013-11-13', 0, NULL, '0', NULL, 0, 500, '', 'Active', 3, 2500, '', '1-M', '2013-11-13 10:36:02', 'paid'),
(41, 'INV1-41-0040', 'SS', 1, 0, 41, '2013-12-15', 0, 1000, 'YES', 'Service Tax', 6, 1060, '', 'Active', 3, 3180, '', '1-15', '2013-12-06 05:01:53', 'pending'),
(42, 'INV1-41-0041', 'SS', 1, 0, 41, '2014-01-01', 0, 1000, 'YES', 'Service Tax', 6, 1060, '', 'Active', 3, 3180, 'INV1-41-0040', '1-15', '2013-12-06 05:01:53', 'pending'),
(43, 'INV1-41-0042', 'SS', 1, 0, 41, '2014-01-15', 0, 1000, 'YES', 'Service Tax', 6, 1060, '', 'Active', 3, 3180, 'INV1-41-0040', '1-15', '2013-12-06 05:01:53', 'paid'),
(44, 'INV1-41-0043', 'PS', 1, 0, 41, '2013-12-13', 0, NULL, '0', NULL, 0, 567.5, '', 'Active', NULL, 567.5, NULL, NULL, '2013-12-06 05:19:02', 'pending'),
(45, 'INV1-41-0044', 'SS', 1, 0, 41, '2013-12-13', 50, 1000, 'YES', 'Service Tax', 6, 1007, '', 'Active', 3, 1007, NULL, 'S', '2013-12-06 08:56:47', 'pending'),
(46, 'INV1-41-0045', 'SS', 1, 0, 41, '2013-12-28', 0, 0, 'YES', 'Service Tax', 6, 212, '', 'Active', 3, 212, NULL, 'S', '2013-12-24 09:30:31', 'pending'),
(47, 'INV1-41-0046', 'SS', 1, 0, 41, '2014-01-13', 0, 0, '', '', 0, 500, '', 'Active', 7, 500, NULL, 'S', '2014-01-06 12:44:08', 'pending'),
(48, 'INV1-41-0047', 'PS', 1, 0, 41, '2014-01-17', 0, NULL, 'NO', NULL, 0, 643.8, '', 'Active', NULL, 643.8, NULL, NULL, '2014-01-10 05:42:34', 'pending'),
(49, 'INV1-41-0048', 'PS', 1, 0, 41, '2014-01-17', 0, NULL, 'NO', NULL, 0, 442.89, '', 'Active', NULL, 442.89, NULL, NULL, '2014-01-10 05:49:43', 'pending'),
(50, 'INV1-41-0049', 'SS', 1, 0, 41, '2014-01-17', 10, 0, 'YES', 'Service Tax', 6, 10.6, '', 'Active', 7, 10.6, NULL, 'S', '2014-01-10 05:51:42', 'pending'),
(51, 'INV1-41-0050', 'SS', 1, 0, 41, '2014-01-10', 0, 0, 'YES', 'Service Tax', 6, 5.3, '', 'Active', 7, 10.6, '', '1-M', '2014-01-10 05:52:14', 'pending'),
(52, 'INV1-41-0051', 'SS', 1, 0, 41, '2014-02-10', 0, 0, 'YES', 'Service Tax', 6, 5.3, '', 'Active', 7, 10.6, 'INV1-41-0050', '1-M', '2014-01-10 05:52:14', 'pending'),
(53, 'INV1-41-0052', 'PS', 1, 0, 41, '2014-01-17', 0, NULL, 'NO', NULL, 0, 198, '', 'Active', NULL, 198, NULL, NULL, '2014-01-10 10:06:51', 'pending'),
(54, 'INV1-41-0053', 'SS', 1, 0, 41, '2014-01-17', 10, 0, 'YES', 'Service Tax', 6, 42.4, '', 'Active', 7, 42.4, NULL, 'S', '2014-01-10 10:08:56', 'pending'),
(55, 'INV1-41-0054', 'SS', 1, 0, 41, '2014-01-17', 1, 0, 'YES', 'Service Tax', 6, 20.14, '', 'Active', 7, 20.14, NULL, 'S', '2014-01-10 10:15:48', 'pending'),
(56, 'INV1-41-0055', 'SS', 1, 0, 41, '2014-01-10', 0, 21.62, 'YES', 'Service Tax', 6, 10.6, '', 'Active', 7, 21.2, '', '1-M', '2014-01-10 10:50:28', 'pending'),
(57, 'INV1-41-0056', 'SS', 1, 0, 41, '2014-02-10', 0, 21.62, 'YES', 'Service Tax', 6, 10.6, '', 'Active', 7, 21.2, 'INV1-41-0055', '1-M', '2014-01-10 10:50:28', 'pending'),
(58, 'INV1-41-0057', 'SS', 1, 0, 41, '2014-01-17', 1, 20, 'YES', 'Service Tax', 6, 21.2, '', 'Active', 7, 21.2, NULL, 'S', '2014-01-10 10:51:36', 'pending'),
(59, 'INV1-41-0058', 'SS', 1, 0, 41, '2014-01-17', 0, 2, 'YES', 'Service Tax', 6, 2.12, '', 'Active', 7, 2.12, NULL, 'S', '2014-01-10 11:05:21', 'pending'),
(60, 'INV1-41-0059', 'SS', 1, 0, 41, '2014-01-21', 1, 1, 'YES', 'Service Tax', 6, 1.06, '', 'Active', 3, 1.06, NULL, 'S', '2014-01-14 12:28:31', 'pending'),
(61, 'INV1-41-0060', 'SS', 1, 0, 41, '2014-01-21', 1, 1, 'YES', 'Service Tax', 6, 1.06, '', 'Active', 3, 1.06, NULL, 'S', '2014-01-14 12:28:33', 'pending'),
(62, 'INV1-41-0061', 'SS', 1, 0, 41, '2014-01-21', 1, 1, 'YES', 'Service Tax', 6, 1.06, '', 'Active', 3, 1.06, NULL, 'S', '2014-01-14 12:38:42', 'pending'),
(63, 'INV1-41-0062', 'SS', 1, 0, 41, '2014-01-21', 0, 1, 'YES', 'Service Tax', 6, 1.06, '', 'Active', 3, 1.06, NULL, 'S', '2014-01-14 12:45:52', 'pending'),
(64, 'INV1-41-0063', 'SS', 1, 0, 41, '2014-01-21', 0, 10, 'YES', 'Service Tax', 6, 10.6, '', 'Active', 3, 10.6, NULL, 'S', '2014-01-14 13:00:13', 'pending'),
(65, 'INV1-41-0064', 'SS', 1, 0, 41, '2014-01-22', 0, 12, 'YES', 'Service Tax', 6, 12.72, '', 'Active', 7, 12.72, NULL, 'S', '2014-01-15 06:56:00', 'pending'),
(66, 'INV1-41-0065', 'PS', 1, 504, 41, '2014-02-14', 0, NULL, 'NO', NULL, 0, 222, '', 'Active', NULL, 222, NULL, NULL, '2014-02-07 09:01:44', 'pending'),
(67, 'INV1-41-0066', 'PS', 1, 504, 41, '2014-02-14', 0, NULL, 'NO', NULL, 0, 200, '', 'Active', NULL, 200, NULL, NULL, '2014-02-07 09:05:50', 'pending'),
(68, 'INV1-41-0067', 'PS', 1, 504, 41, '2014-02-14', 0, NULL, 'NO', NULL, 0, 166.5, '', 'Active', NULL, 166.5, NULL, NULL, '2014-02-07 09:08:11', 'pending'),
(69, 'INV1-41-0068', 'SS', 1, 504, 41, '2014-07-25', 0, 200, 'YES', 'Service Tax', 6, 212, '', 'Active', 3, 212, NULL, 'S', '2014-07-18 07:49:35', 'pending');

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

--
-- Table structure for table `th_coach_invoice_item`
--

CREATE TABLE IF NOT EXISTS `th_coach_invoice_item` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `invoice_id` varchar(20) NOT NULL,
  `prod_type` varchar(20) DEFAULT 'Product' COMMENT 'Product or Session or GS->Group Session',
  `prod_id` int(11) DEFAULT NULL,
  `prod_name` varchar(100) DEFAULT NULL,
  `prod_qty` float NOT NULL,
  `prod_cost` float NOT NULL,
  `prod_discount` float NOT NULL DEFAULT '0',
  `prod_tax` varchar(4) DEFAULT 'NO',
  `prod_tax_per` float DEFAULT '0',
  `prod_tax_type` varchar(30) DEFAULT NULL,
  `item_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  KEY `in_id` (`invoice_id`)
) ENGINE=InnoDB  DEFAULT CHARSET=latin1 AUTO_INCREMENT=76 ;

--
-- Dumping data for table `th_coach_invoice_item`
--

INSERT INTO `th_coach_invoice_item` (`id`, `invoice_id`, `prod_type`, `prod_id`, `prod_name`, `prod_qty`, `prod_cost`, `prod_discount`, `prod_tax`, `prod_tax_per`, `prod_tax_type`, `item_date`) VALUES
(1, 'INV1-41-0001', 'Session', NULL, '1:0', 4, 0, 0, 'NO', 0, NULL, '2013-10-11 11:45:05'),
(2, 'INV1-41-0004', 'Session', NULL, '0:30', 5, 0, 0, 'NO', 0, NULL, '2013-10-11 12:19:19'),
(3, 'INV1-41-0005', 'Session', NULL, '0:45', 3, 0, 0, 'NO', 0, NULL, '2013-10-11 12:30:30'),
(4, 'INV1-41-0006', 'Session', NULL, '0:15', 2, 0, 0, 'NO', 0, NULL, '2013-10-11 12:47:41'),
(5, 'INV1-41-0007', 'Product', 6, 'Product 5', 1, 200, 0, 'NO', 0, NULL, '2013-10-14 04:52:18'),
(6, 'INV1-41-0007', 'Product', 5, 'test 6', 1, 150, 0, 'NO', 0, NULL, '2013-10-14 04:52:18'),
(7, 'INV1-41-0008', 'Product', 6, 'Product 5', 3, 200, 100, 'NO', 0, NULL, '2013-10-17 07:11:18'),
(8, 'INV1-41-0008', 'Product', 5, 'test 6', 1, 150, 0, 'NO', 0, NULL, '2013-10-17 07:11:18'),
(9, 'INV1-41-0009', 'Product', 6, 'Product 5', 1, 200, 0, 'NO', 0, NULL, '2013-10-17 07:15:25'),
(10, 'INV1-41-0010', 'Product', 6, 'Product 5', 1, 200, 20, 'NO', 0, NULL, '2013-10-17 12:03:21'),
(11, 'INV1-41-0011', 'Product', 5, 'test 6', 1, 150, 0, 'NO', 0, NULL, '2013-10-17 12:03:40'),
(12, 'INV1-41-0012', 'Product', 6, 'Product 5', 1, 200, 0, 'NO', 0, NULL, '2013-10-17 12:06:22'),
(13, 'INV1-41-0013', 'Product', 5, 'test 6', 1, 150, 0, 'NO', 0, NULL, '2013-10-17 12:06:29'),
(14, 'INV1-41-0014', 'Product', 5, 'test 6', 1, 150, 0, 'NO', 0, NULL, '2013-10-17 12:58:46'),
(15, 'INV1-41-0014', 'Product', 6, 'Product 5', 1, 200, 0, 'NO', 0, NULL, '2013-10-17 12:58:46'),
(16, 'INV1-41-0014', 'Product', 5, 'test 6', 1, 150, 0, 'NO', 0, NULL, '2013-10-17 12:58:46'),
(17, 'INV1-41-0014', 'Product', 6, 'Product 5', 1, 200, 0, 'NO', 0, NULL, '2013-10-17 12:58:46'),
(18, 'INV1-41-0015', 'Product', 6, 'Product 5', 1, 200, 0, 'NO', 0, NULL, '2013-10-23 05:29:31'),
(19, 'INV1-41-0016', 'Session', NULL, '1:0', 5, 0, 0, 'NO', 0, NULL, '2013-10-23 08:48:51'),
(20, 'INV1-41-0017', 'Session', NULL, '1:0', 4, 0, 0, 'NO', 0, NULL, '2013-10-23 08:50:15'),
(21, 'INV1-41-0018', 'Session', NULL, '1:30', 5, 0, 0, 'NO', 0, NULL, '2013-10-25 11:03:40'),
(22, 'INV1-41-0018', 'Session', NULL, '2:0', 1, 0, 0, 'NO', 0, NULL, '2013-10-25 11:03:40'),
(23, 'INV1-41-0019', 'Session', NULL, '2:10', 2, 0, 0, 'NO', 0, NULL, '2013-10-29 10:31:28'),
(24, 'INV1-41-0019', 'GS', NULL, 'Lower Body Workout', 1, 0, 0, 'NO', 0, NULL, '2013-10-29 10:31:28'),
(27, 'INV1-41-0021', 'GS', NULL, 'Lower Body Workout', 1, 0, 0, 'NO', 0, NULL, '2013-10-29 11:39:33'),
(28, 'INV1-41-0021', 'Session', NULL, '1:0', 2, 0, 0, 'NO', 0, NULL, '2013-10-29 11:39:33'),
(29, 'INV1-41-0022', 'Session', NULL, '2:0', 2, 0, 0, 'NO', 0, NULL, '2013-10-31 06:08:28'),
(30, 'INV1-41-0022', 'GS', NULL, 'Lower Body Workout', 1, 0, 0, 'NO', 0, NULL, '2013-10-31 06:08:28'),
(31, 'INV1-41-0022', 'GS', NULL, 'Group Yoga Class', 1, 0, 0, 'NO', 0, NULL, '2013-10-31 06:08:28'),
(32, 'INV1-41-0023', 'Session', NULL, '2:10', 5, 0, 0, 'NO', 0, NULL, '2013-11-13 07:17:45'),
(33, 'INV1-41-0023', 'GS', NULL, 'Lower Body Workout', 1, 0, 0, 'NO', 0, NULL, '2013-11-13 07:17:45'),
(34, 'INV1-41-0027', 'Session', NULL, '6:0', 2, 0, 0, 'NO', 0, NULL, '2013-11-13 10:34:57'),
(35, 'INV1-41-0028', 'Session', NULL, '1:0', 4, 0, 0, 'NO', 0, NULL, '2013-11-13 10:36:02'),
(43, 'INV1-41-0040', 'Session', NULL, '3:0', 3, 0, 0, 'NO', 0, NULL, '2013-12-06 04:57:33'),
(45, 'INV1-41-0043', 'Product', 6, 'Product 5', 1, 200, 0, 'NO', 0, NULL, '2013-12-06 05:19:02'),
(46, 'INV1-41-0043', 'Product', 7, 'Body Mass Protien', 1, 200, 0, 'YES', 5, 'Service Tax', '2013-12-06 05:19:02'),
(47, 'INV1-41-0043', 'Product', 5, 'test 6', 1, 150, 0, 'YES', 5, 'Service Tax', '2013-12-06 05:19:02'),
(48, 'INV1-41-0044', 'Session', NULL, '1:0', 2, 0, 0, 'NO', 0, NULL, '2013-12-06 08:56:47'),
(49, 'INV1-41-0045', 'GS', NULL, 'Zumba Dance Training', 1, 0, 0, 'NO', 0, NULL, '2013-12-24 09:30:31'),
(50, 'INV1-41-0046', 'Session', NULL, '3:0', 1, 0, 0, 'NO', 0, NULL, '2014-01-06 12:44:08'),
(51, 'INV1-41-0047', 'Product', 7, 'Body Mass Protien', 3, 200, 20, 'YES', 11, 'Service Tax', '2014-01-10 05:42:34'),
(52, 'INV1-41-0048', 'Product', 7, 'Body Mass Protien', 2, 200, 1, 'YES', 11, 'Service Tax', '2014-01-10 05:49:43'),
(53, 'INV1-41-0049', 'Session', NULL, '2:10', 3, 0, 0, 'NO', 0, NULL, '2014-01-10 05:51:42'),
(54, 'INV1-41-0050', 'Session', NULL, '1:10', 1, 0, 0, 'NO', 0, NULL, '2014-01-10 05:52:14'),
(55, 'INV1-41-0052', 'Product', 6, 'Product 5', 1, 200, 2, 'NO', 0, NULL, '2014-01-10 10:06:51'),
(56, 'INV1-41-0053', 'Session', NULL, '1:5', 1, 0, 0, 'NO', 0, NULL, '2014-01-10 10:08:56'),
(57, 'INV1-41-0054', 'Session', NULL, '5:10', 1, 0, 0, 'NO', 0, NULL, '2014-01-10 10:15:48'),
(58, 'INV1-41-0055', 'Session', NULL, '2:10', 2, 0, 0, 'NO', 0, NULL, '2014-01-10 10:50:28'),
(59, 'INV1-41-0057', 'Session', NULL, '2:5', 2, 0, 0, 'NO', 0, NULL, '2014-01-10 10:51:36'),
(60, 'INV1-41-0058', 'Session', NULL, '1:5', 2, 0, 0, 'NO', 0, NULL, '2014-01-10 11:05:21'),
(61, 'INV1-41-0059', 'GS', NULL, 'Zumba Dance Training', 1, 0, 0, 'NO', 0, NULL, '2014-01-14 12:28:30'),
(62, 'INV1-41-0060', 'GS', NULL, 'Zumba Dance Training', 1, 0, 0, 'NO', 0, NULL, '2014-01-14 12:28:33'),
(63, 'INV1-41-0061', 'GS', NULL, 'Zumba Dance Training', 1, 0, 0, 'NO', 0, NULL, '2014-01-14 12:38:42'),
(64, 'INV1-41-0062', 'GS', NULL, 'Zumba Dance Training', 1, 0, 0, 'NO', 0, NULL, '2014-01-14 12:45:52'),
(65, 'INV1-41-0063', 'GS', NULL, 'Zumba Dance Training', 1, 0, 0, 'NO', 0, NULL, '2014-01-14 13:00:13'),
(66, 'INV1-41-0064', 'Session', NULL, '3:5', 3, 0, 0, 'NO', 0, NULL, '2014-01-15 06:56:00'),
(67, 'INV1-41-0064', 'Session', NULL, '1:5', 2, 0, 0, 'NO', 0, NULL, '2014-01-15 06:56:00'),
(68, 'INV1-41-0065', 'Product', 6, 'Product 5', 1, 150, 0, 'NO', 0, NULL, '2014-02-07 08:43:45'),
(69, 'INV1-41-0065', 'Product', 6, 'Product 5', 1, 150, 0, 'NO', 0, NULL, '2014-02-07 08:44:18'),
(70, 'INV1-41-0065', 'Product', 7, 'Body Mass Protien', 1, 200, 0, 'YES', 11, 'Service Tax', '2014-02-07 09:01:44'),
(71, 'INV1-41-0066', 'Product', 6, 'Product 5', 1, 200, 0, 'NO', 0, NULL, '2014-02-07 09:05:50'),
(72, 'INV1-41-0067', 'Product', 5, 'test 6', 1, 150, 0, 'YES', 11, 'Service Tax', '2014-02-07 09:08:11'),
(73, 'INV1-98-0001', 'Session', NULL, '1:', 2, 0, 0, 'NO', 0, NULL, '2014-05-29 13:42:33'),
(74, 'INV1-98-0001', 'GS', NULL, 'Yoga Training', 1, 0, 0, 'NO', 0, NULL, '2014-05-29 13:42:33'),
(75, 'INV1-41-0068', 'GS', NULL, 'Zumba Dance Training', 1, 0, 0, 'NO', 0, NULL, '2014-07-18 07:49:35');

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

--
-- Table structure for table `th_coach_inv_payment`
--

CREATE TABLE IF NOT EXISTS `th_coach_inv_payment` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `transaction_id` varchar(50) DEFAULT NULL,
  `rgs_id_fkx` int(10) unsigned NOT NULL,
  `user_id_fkx` int(11) NOT NULL,
  `paid_amount` float NOT NULL,
  `invoice_id` varchar(20) NOT NULL,
  `business_id` varchar(50) DEFAULT NULL,
  `payment_status` varchar(10) NOT NULL COMMENT 'Success or Fail',
  `pay_date` timestamp NULL DEFAULT CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB  DEFAULT CHARSET=latin1 AUTO_INCREMENT=7 ;

--
-- Dumping data for table `th_coach_inv_payment`
--

INSERT INTO `th_coach_inv_payment` (`id`, `transaction_id`, `rgs_id_fkx`, `user_id_fkx`, `paid_amount`, `invoice_id`, `business_id`, `payment_status`, `pay_date`) VALUES
(1, 'TRA1355677', 1, 41, 500, 'INV1-41-09888', 'test@gmail.com', 'done', '2013-12-20 13:27:34'),
(2, 'aaaa', 1, 41, 200, 'INV1-41-0024', 'ttttttt', 'Success', '2013-12-21 04:58:27'),
(3, '456', 1, 41, 200, 'INV1-41-0024', '656456', 'Success', '2013-12-21 07:18:02'),
(4, '456', 1, 41, 100, 'INV1-41-0024', '656456', 'Failed', '2013-12-21 08:07:18'),
(5, '456', 1, 41, 100, 'INV1-41-0024', '656456', 'Failed', '2013-12-21 08:08:01'),
(6, '456', 1, 41, 100, 'INV1-41-0024', '656456', 'Failed', '2013-12-21 08:08:51');

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

--
-- Table structure for table `th_coach_lib_doc`
--

CREATE TABLE IF NOT EXISTS `th_coach_lib_doc` (
  `doc_id` int(11) NOT NULL AUTO_INCREMENT,
  `title` varchar(225) NOT NULL,
  `description` text NOT NULL,
  `doc_name` text NOT NULL,
  `doc_group` int(11) NOT NULL,
  `doc_size` double NOT NULL,
  `doc_source` varchar(10) NOT NULL COMMENT 'Int=> Internal, Ext=> External',
  `doc_owner` varchar(10) NOT NULL DEFAULT 'Coach',
  `ref` int(11) NOT NULL,
  `user_id_fkx` varchar(50) NOT NULL,
  `created_by` int(11) NOT NULL,
  `created_type` varchar(10) NOT NULL,
  `created` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  PRIMARY KEY (`doc_id`)
) ENGINE=InnoDB  DEFAULT CHARSET=latin1 AUTO_INCREMENT=60 ;

--
-- Dumping data for table `th_coach_lib_doc`
--

INSERT INTO `th_coach_lib_doc` (`doc_id`, `title`, `description`, `doc_name`, `doc_group`, `doc_size`, `doc_source`, `doc_owner`, `ref`, `user_id_fkx`, `created_by`, `created_type`, `created`) VALUES
(3, 'Demo File 111', 'cxzczczx', 'allench21361796445.pdf', 1, 37, 'Int', 'Coach', 0, '41', 0, '', '0000-00-00 00:00:00'),
(4, 'Demo File 112', 'cxzczczx', 'allench21361796493.zip', 0, 0, 'Int', 'Coach', 0, '41', 0, '', '0000-00-00 00:00:00'),
(6, 'Height Increase', 'For Increase Height', 'com (1)11363269823.jpg', 2, 0, '', 'Coach', 0, '41', 0, '', '0000-00-00 00:00:00'),
(14, 'External Fil', 'lask', 'https://www.mybodysite.com/img/www-logo.png?v=1382690149', 5, 0, 'Ext', 'Coach', 0, '41', 0, '', '2013-10-25 11:47:50'),
(15, 'gfh gfhgf gf gfh g ', 'gfh', 'https://www.mybodysite.com/img/www-logo.png?v=1382690149', 5, 0, 'Ext', 'Coach', 0, '41', 0, '', '2013-10-25 11:52:38'),
(23, 'my recipe file''s', 'dfgdg', 'file_41_1382941972549_lib.jpg', 2, 23, 'Int', 'Coach', 0, '41', 0, '', '2013-10-28 06:32:52'),
(24, 'Rashid Khan', 'A developr of toplogic.', 'file_41_1382946326342_lib.jpg', 6, 1692, 'Int', 'Coach', 0, '41', 0, '', '2013-10-28 07:45:26'),
(28, 'ghg', 'gh', 'file_41_1382948220152_lib.jpg', 6, 792, 'Int', 'Coach', 0, '41', 0, '', '2013-10-28 08:17:00'),
(29, 'test Plus', 'sdg', 'file_41_1382962678935_lib.docx', 6, 1392, 'Int', 'Coach', 0, '41', 0, '', '2013-10-28 12:17:58'),
(30, 'next file', 'hyhyu', 'http://img.com/home.aspx', 6, 0, 'Ext', 'Coach', 0, '41', 0, '', '2013-10-28 12:25:15'),
(31, 'Stack Overflow', 'Php putenv() question', 'http://stackoverflow.com/questions/4481956/php-putenv-question', 2, 0, 'Ext', 'Coach', 0, '41', 0, '', '2013-10-28 12:48:13'),
(32, 'test link 1', 'test purpose', 'http://www.youtube.com/watch?v=z3UHfi9vpbc', 2, 0, 'Ext', 'Coach', 0, '41', 0, '', '2013-10-28 12:50:50'),
(33, 'Test excel1', 'for testing purpose', 'file_41_13867590899217_lib.jpg', 1, 792, 'Int', 'Coach', 0, '41', 0, '', '2013-10-29 07:28:10'),
(34, 'SN. Prasad', 'testing', 'file__13910017445467_lib.jpg', 0, 0, 'SN. Prasad', 'Admin', 40, '41', 0, '', '2014-01-30 07:16:00'),
(35, 'chest', 'chest', 'file__1391058671755_lib.jpg', 1, 0, 'chest', 'Admin', 41, '41', 0, '', '2014-01-30 07:16:00'),
(36, 'Test', 'Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum', 'file_14012792679011_lib.jpg', 0, 29, 'Int', 'Coach', 0, '98', 0, '', '2014-05-28 12:14:27'),
(37, 'My image', 'Lorem Ipsum', 'file_1402984458989_lib.jpg', 0, 348, 'Int', 'Coach', 0, '98', 0, '', '2014-06-17 05:54:18'),
(38, 'Test Link 3', 'Lorem Ipsum', 'https://www.google.co.in/?gfe_rd=cr&ei=072fU42lDovC8gfxpIDwDQ&gws_rd=ssl', 0, 0, 'Ext', 'Coach', 0, '98', 0, '', '2014-06-17 05:57:27'),
(44, 'test admin 1', 'test', 'file__1391662843227_lib.jpg', 1, 0, 'Int', 'Admin', 39, '32', 0, '', '2014-08-07 11:49:21'),
(45, 'test admin 1', 'test', 'file__1391662843227_lib.jpg', 1, 0, 'Int', 'Admin', 39, '32', 0, '', '2014-08-07 11:52:54'),
(46, 'SN. Prasad', 'testing', 'file__13910017445467_lib.jpg', 0, 0, 'Int', 'Admin', 40, '32', 0, '', '2014-08-07 11:58:01'),
(47, 'chest', 'chest', 'file__1391058671755_lib.jpg', 1, 0, 'Int', 'Admin', 41, '32', 0, '', '2014-08-07 11:58:02'),
(49, 'Ex 1 wer', 'tesdt', 'file_14074752783705_lib.jpg', 2, 38, 'Int', 'Coach', 0, '32', 32, 'Company', '2014-08-08 05:21:18'),
(50, 'test admin 1', 'test', 'file__1391662843227_lib.jpg', 1, 0, 'Int', 'Admin', 39, '32', 0, '', '2014-08-08 05:22:06'),
(51, 'test by WLT', 'test', 'file_14075683859045_lib.xlsx', 1, 19, 'Int', 'Coach', 0, '32', 1, 'WLT', '2014-08-09 07:13:05'),
(52, 'Test By consultant Caoch', 'test', 'file_14075713170415_lib.jpg', 8, 420, 'Int', 'Coach', 0, '32', 41, 'PTC', '2014-08-09 08:01:57'),
(53, 'Test', 'Test', 'file_14206925285266_lib.jpg', 10, 858, 'Int', 'Coach', 0, '41', 0, '', '2015-01-08 04:48:48'),
(54, 'Test', 'Test', 'http://simpleindianrecipes.com/portals/0/sirimages/Chicken-Curry-M.jpeg', 2, 0, 'Ext', 'Coach', 0, '32', 41, 'PTC', '2015-05-08 08:40:06'),
(55, 'Recipe File2', 'File1', 'https://lh3.googleusercontent.com/-lUvI2EkyiI8/AAAAAAAAAAI/AAAAAAAAAE4/aTx7ZPsAUHU/s46-c-k-no/photo.jpg', 2, 0, 'Ext', 'Coach', 0, '41', 0, '', '2015-05-11 12:50:57'),
(56, 'test admin 1', 'test', 'file__1391662843227_lib.jpg', 1, 0, 'Int', 'Admin', 39, '32', 0, '', '2015-08-26 12:01:31'),
(57, 'SN. Prasad', 'testing', 'file__13910017445467_lib.jpg', 0, 0, 'Int', 'Admin', 40, '32', 0, '', '2015-09-26 07:17:32'),
(58, 'chest', 'chest', 'file__1391058671755_lib.jpg', 1, 0, 'Int', 'Admin', 41, '32', 0, '', '2015-09-26 07:17:32'),
(59, 'test admin 1', 'test', 'file__1391662843227_lib.jpg', 1, 0, 'Int', 'Admin', 39, '41', 0, '', '2016-06-27 06:47:55');

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

--
-- Table structure for table `th_coach_lib_doc_category`
--

CREATE TABLE IF NOT EXISTS `th_coach_lib_doc_category` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `gname` varchar(100) NOT NULL,
  `user_id_fkx` int(11) NOT NULL,
  KEY `id` (`id`)
) ENGINE=InnoDB  DEFAULT CHARSET=latin1 AUTO_INCREMENT=11 ;

--
-- Dumping data for table `th_coach_lib_doc_category`
--

INSERT INTO `th_coach_lib_doc_category` (`id`, `gname`, `user_id_fkx`) VALUES
(0, 'General', 0),
(1, 'Workout', 0),
(2, 'Diet', 0),
(6, 'raj', 41),
(7, 'New cat', 41),
(8, 'Mucles', 32),
(9, 'Test', 101),
(10, 'Category 1', 41);

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

--
-- Table structure for table `th_coach_lib_exercise`
--

CREATE TABLE IF NOT EXISTS `th_coach_lib_exercise` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `user_id_fkx` int(10) NOT NULL,
  `name` varchar(150) NOT NULL,
  `description` text NOT NULL,
  `met_value` decimal(4,2) NOT NULL,
  `met_ref_id` int(11) NOT NULL,
  `activity_type` varchar(4) DEFAULT 'C',
  `cdc_level` varchar(4) DEFAULT NULL,
  `image1` varchar(100) NOT NULL,
  `image2` varchar(100) NOT NULL,
  `attachments` varchar(100) NOT NULL,
  `youtube` text NOT NULL,
  `body_part` varchar(50) NOT NULL,
  `equipment` varchar(50) NOT NULL,
  `gender` varchar(30) NOT NULL DEFAULT 'Male',
  `gps` tinyint(4) NOT NULL DEFAULT '0' COMMENT 'GPS Tracable 0-> No, 1-> Yes',
  `source` tinyint(1) NOT NULL COMMENT '1=Self, 0=Tulasi',
  `created_by` int(11) NOT NULL,
  `created_type` varchar(10) NOT NULL,
  `created` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB  DEFAULT CHARSET=latin1 AUTO_INCREMENT=80 ;

--
-- Dumping data for table `th_coach_lib_exercise`
--

INSERT INTO `th_coach_lib_exercise` (`id`, `user_id_fkx`, `name`, `description`, `met_value`, `met_ref_id`, `activity_type`, `cdc_level`, `image1`, `image2`, `attachments`, `youtube`, `body_part`, `equipment`, `gender`, `gps`, `source`, `created_by`, `created_type`, `created`) VALUES
(7, 41, 'Triceps and upper back', 'The matching text can appear directly within the selected element, in any of that element''s descendants, or a combination thereof. As with attribute value selectors, text inside the parentheses of :contains() can be written as a bare word or surrounded by quotation marks. The text must have matching case to be selected.\r\nThis is new techinique                    ', '0.00', 0, 'C', 'M', 'nutrition/library/ex_14BeaGGq6pNhDcutauUh_first.jpg', 'nutrition/library/41_1360240483_2.jpg', '', 'http://www.youtube.com/watch?v=zRvhQ5Rf6-U', '1,4', '', 'Male and Female', 0, 1, 0, '', '2013-02-04 12:57:31'),
(12, 60, 'Mussels Building Exercise', 'Mussels Building Exercise is for 3 days', '0.00', 0, 'C', 'M', 'nutrition/library/60_1363160231_1.jpg', 'nutrition/library/60_1363160231_2.jpg', '17', 'http://www.youtube.com/watch?v=1qjdw8uM_HI', '', '', '', 0, 1, 0, '', '2013-03-13 07:37:11'),
(13, 41, 'Exercise for over weight patient', '                        Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.                    ', '0.00', 0, 'C', 'M', 'nutrition/library/ex_JRSor7Tx7la1aDSEAAKP_first.jpg', 'nutrition/library/41_1363780503_2.jpg', '', 'http://www.youtube.com/watch?v=yzaQPp3kato', '1,11', '', 'Male and Female', 0, 1, 0, '', '2013-03-20 11:55:03'),
(14, 41, 'Exercise for Tuesday for High Blood pressure patient', 'Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.                    ', '0.00', 0, 'C', 'M', 'nutrition/library/ex_hdSaehfTDmMHmr9jI1mW_first.jpg', 'nutrition/library/41_1363780654_2.jpg', '', 'http://www.youtube.com/watch?v=dILstcZ78nc&playnext=1&list=PL15A5CDBCBFF9985D&feature=results_main', '', '', 'Male and Female', 0, 1, 0, '', '2013-03-20 11:57:34'),
(15, 41, 'Bench Press Exercise ', 'Best exercise for chest muscles.                                                            ', '0.00', 0, 'M', '', 'nutrition/library/ex_AI7jrRZg1ijw7XFP7lao_first.jpg', 'nutrition/library/41_1363784160_2.jpg', '', 'http://www.youtube.com/watch?v=rT7DgCr-3pg', '4', '20', 'Male and Female', 0, 1, 0, '', '2013-03-20 12:56:00'),
(16, 41, 'Bicep Curl', 'This is bicep curl                    ', '0.00', 0, 'C', 'M', 'nutrition/library/ex_RpmYGDoIrZQosUMdCpQT_first.jpg', '', '', 'http://www.youtube.com/watch?v=F_clJTFCWZU', '', '', 'Male and Female', 0, 1, 0, '', '2013-03-21 07:06:44'),
(21, 0, 'my new exercise', 'asdasd', '0.00', 0, 'C', 'M', 'nutrition/library/_1363947305_1.jpg', '', '17', '', '', '', 'Male', 0, 1, 0, '', '2013-03-22 10:15:06'),
(22, 71, 'Test Bench Press', 'Test Bench Press', '0.00', 0, 'C', 'M', 'nutrition/library/71_1373720273_1.jpg', '', '0', 'http://www.youtube.com/watch?v=vUcjOIZc80c', '', '', 'Male', 0, 1, 0, '', '2013-07-13 12:57:53'),
(34, 41, 'Dorothy started training ', 'Dorothy started training back in 2007...She was overweight, stressed, and baffled as to why she couldn''t lose weight. She had attended exercise classes before but the weight wasn''t coming off so she decided to hire Georgi as her personal trainer. Dorothy has made huge changes as you can see below in her before and after pictures. She has changed her lifestyle, nutritional habits, and is consistent with daily exercise. Dorothy continues to train with Georgi every other week for maintenance...She is active and enjoys her new body, mind, and spirit...You''re welcome to contact her for more details or myself...                                        ', '0.00', 0, 'C', 'M', 'nutrition/library/ex_ynSfsfEIsoq1gcFb5tlM_first.jpg', '', '4,14,3,33,29,30', 'http://www.youtube.com/watch?v=elKxgsrJFhw', '2,3,5,8', '13,14,16', 'Male', 0, 1, 0, '', '2013-10-21 12:51:41'),
(35, 41, 'Stair training', '                        Stair exercises will help you increase your cardiovascular stamina and will also tone your lower body.                    ', '0.00', 0, 'M', '', 'nutrition/library/ex_sjAlU6EWmMHKaUN38oAt_first.jpg', '', '', '', '1,7', '', 'Male and Female', 0, 1, 0, '', '2014-01-16 12:44:36'),
(51, 98, 'Stair Climbing', 'Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.                    ', '0.00', 0, 'C', 'M', 'nutrition/library/ex_o8r7jQb4YN6f8mEJZkQa_first.jpg', '', '', '', '1,7', '', 'Male and Female', 0, 1, 0, '', '2014-05-30 10:14:40'),
(52, 98, 'Long  Running', 'Long  Running Activity', '5.00', 0, 'C', 'M', 'nutrition/library/ex_6bSofUaidRllAINYtIoa_first.jpg', 'nutrition/library/ex_14029824716972_second.jpg', '36', '', '1,7', '', 'Male and Female', 1, 1, 0, '', '2014-06-17 05:21:11'),
(56, 32, 'Chest Muscle Strengthen', 'exercises to build chest muscle with lorem ipsum doller sit amit.', '0.00', 0, 'M', '', 'nutrition/library/ex_321407412682_first.jpg', 'nutrition/library/ex_321407412682_second.jpg', '46,47', 'http://www.youtube.com/watch?v=kVewl7_pua8', '1,2,3,5', '13,15,17', 'Male', 0, 0, 32, 'EMP', '2014-08-07 11:58:02'),
(57, 32, 'Bicycling-C', 'Whether you''re outdoors or indoors, cycling is an excellent cardio workout. ', '0.00', 1, 'C', 'M', 'nutrition/library/ex_321407475326_first.jpg', 'nutrition/library/ex_321407475326_second.jpg', '50', '', '1,3,5', '13,15,17', 'Male', 0, 0, 32, 'Company', '2014-08-08 05:22:06'),
(58, 32, '6 Moves for Slimmer for all', 'testing', '6.50', 0, 'C', 'M', 'nutrition/library/ex_14074753725635_first.jpg', 'nutrition/library/ex_14074753725676_second.jpg', '41', 'https://www.youtube.com/watch?v=h3EENc0Romo', '2,4', '14,15', 'Male', 0, 1, 32, 'Company', '2014-08-08 05:22:52'),
(59, 32, 'Vertical Leg Crunch', 'Performing this exercise is similar to doing a leg crunch except that the legs are straight up, forcing the abs to work and adding intensity to the routine. To do this, lie on the floor with the legs straight up, knees crossed, and place the hands beneath the head for support. Contract abs lifting the shoulders off the floor and keep legs in a fixed position to crunch. Do 1 to 3 sets with 12 to 16 repetitions.\r\n\r\nLearn more: http://www.naturalnews.com/035071_belly_fat_exercises_fitness.html##ixzz39ska5fci', '0.00', 0, 'M', '', 'nutrition/library/ex_14075734476455_first.jpg', 'nutrition/library/ex_14075734476472_second.jpg', '', 'https://www.youtube.com/watch?v=79mRoHMwBaM', '7', '26', 'Male and Female', 0, 1, 41, 'PTC', '2014-08-09 08:37:27'),
(60, 32, 'Leg Crunch', 'Leg Excercise', '5.00', 0, 'C', 'M', 'nutrition/library/ex_zfAGu8n5kA883cxc65Q9_first.jpg', '', '52', '', '7', '13', 'Male and Female', 1, 1, 98, 'FTC', '2015-04-24 07:13:21'),
(61, 32, 'Rope Jumping', 'Rope Jumping', '0.00', 0, 'M', '', 'nutrition/library/ex_mpNtDlimfxE8byC6Rxq7_first.jpg', '', '51', '', '2,7', '16,27', 'Male and Female', 0, 1, 41, 'PTC', '2015-04-24 07:35:42'),
(62, 41, 'Pectoral+muscles footage ', '                                                Test1                                        ', '0.00', 0, 'C', 'M', 'nutrition/library/ex_xbS6GlyGIxIKerIHjkpx_first.jpg', '', '', '', '2', '18', 'Male and Female', 1, 1, 0, '', '2015-05-11 07:44:49'),
(63, 32, 'Hiking', 'Hikimg', '6.00', 0, 'C', 'M', 'nutrition/library/ex_Q6j5Z7qdgXKhFd1CFYn5_first.jpg', '', '', '', '7', '18', 'Male and Female', 0, 1, 41, 'PTC', '2015-08-03 12:45:46'),
(64, 32, 'Bicycling', 'Whether you''re outdoors or indoors, cycling is an excellent cardio workout. ', '3.50', 2, 'C', 'M', 'nutrition/library/ex_321440590491_first.jpg', 'nutrition/library/ex_321440590491_second.jpg', '56', '', '1,3,5', '13,15,17', 'Male', 0, 0, 41, 'PTC', '2015-08-26 12:01:31'),
(67, 32, 'Exercise fo laps', 'Thousands of professional level health and fitness articles. The largest collection of health and fitness articles on the internet.', '0.00', 0, 'M', '', 'nutrition/library/ex_Qj2mWnoBhS7oSqR6d7Rw_first.jpg', '', '', '', '', '', 'Male and Female', 0, 1, 41, 'PTC', '2015-09-14 11:58:33'),
(68, 41, 'Muscle Strengthening Exercises', 'Test                    ', '0.00', 0, 'M', '', 'nutrition/library/ex_UCxiICRKxHl3yHWJtZ8W_first.jpg', '', '', '', '', '', 'Male and Female', 0, 1, 0, '', '2015-09-15 04:46:51'),
(69, 32, 'Bicycling', 'Test', '2.00', 0, 'C', 'M', 'nutrition/library/ex_NUzdmddP3uu4Jo9g1Zmg_first.jpg', '', '', '', '2,3,7,9', '30', 'Male and Female', 1, 1, 98, 'WPM', '2015-09-15 05:58:44'),
(70, 32, 'Chest Muscle Strengthen', 'exercises to build chest muscle with lorem ipsum doller sit amit.', '0.00', 0, 'M', '', 'nutrition/library/ex_321443251852_first.jpg', 'nutrition/library/ex_321443251852_second.jpg', '57,58', 'http://www.youtube.com/watch?v=kVewl7_pua8', '1,2,3,5', '13,15,17', 'Male', 0, 0, 1, 'WLT', '2015-09-26 07:17:32'),
(71, 32, 'Brisk Walking ', 'test', '2.50', 0, 'C', 'M', 'nutrition/library/ex_rMJhArttsEK6ztNWRykl_first.jpg', '', '', '', '4', '16', 'Female', 1, 1, 98, 'FTC', '2015-12-28 13:18:33'),
(72, 32, 'Long Running', 'Thousands of professional level health and fitness articles. The largest collection of health and fitness articles on the internet.', '90.00', 0, 'C', 'M', 'nutrition/library/ex_wSQ5N8yYrjNyFjypcsgF_first.jpg', '', '', '', '3,4', '13,16', 'Male and Female', 1, 1, 41, 'PTC', '2016-01-08 04:45:04'),
(74, 32, 'Walking Distance ', 'Tets', '2.00', 0, 'C', 'M', 'nutrition/library/ex_PnAtc2lN9KXB7GDH5p8q_first.png', '', '', '', '1', '12', 'Male and Female', 0, 1, 98, 'FTC', '2016-02-16 05:03:03'),
(76, 32, 'texst', 'thrtujhdtyuyt', '0.00', 1, 'C', 'M', 'nutrition/library/ex_321467446867_first.jpg', '', '', '', '3,4', '15', 'Male and Female', 1, 0, 41, 'PTC', '2016-07-02 08:07:47'),
(77, 41, 'Walking', 'Walking is simple, free and one of the easiest ways to get more active, lose weight and become healthier. ', '0.00', 2, 'C', 'M', 'nutrition/library/ex_411468477259_first.jpg', '', '', '', '2,7', '', 'Male and Female', 1, 0, 0, '', '2016-07-14 06:20:59'),
(78, 98, 'Testing1', 'Testing2', '0.00', 0, 'M', '', 'nutrition/library/ex_eE3pEM74Ckokl7SPzs1D_first.jpg', 'nutrition/library/ex_NNB6M1up88Xr25SKeaLr_second.jpg', '', '', '6', '18', 'Male and Female', 0, 1, 0, '', '2016-09-09 08:53:40'),
(79, 32, 'Test2', 'Test', '0.00', 0, 'M', '', 'nutrition/library/ex_IzJD5KGte9zsMqI2RS1a_first.jpg', 'nutrition/library/ex_3bIioyKryIq5BUB87PB6_second.jpg', '', 'https://www.youtube.com/watch?v=oWTUhWvTnc4', '2', '15', 'Male and Female', 0, 1, 98, 'FTC', '2016-09-09 12:26:42');

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

--
-- Table structure for table `th_coach_lib_recipe`
--

CREATE TABLE IF NOT EXISTS `th_coach_lib_recipe` (
  `rc_id` int(10) NOT NULL AUTO_INCREMENT,
  `user_id_fkx` int(10) NOT NULL,
  `name` varchar(100) NOT NULL,
  `category` varchar(5) NOT NULL,
  `ingredients` text NOT NULL,
  `c_direction` text NOT NULL,
  `serv_no` int(10) NOT NULL,
  `serv_size` varchar(50) NOT NULL,
  `prep_time` float NOT NULL,
  `cook_time` float NOT NULL,
  `image` varchar(120) NOT NULL,
  `youtube` varchar(200) DEFAULT NULL,
  `attachments` varchar(100) DEFAULT NULL,
  `rcp_category` varchar(20) NOT NULL COMMENT 'Comma Separated Categories will be stored i.e 1,3,4',
  `rcp_wg` smallint(5) unsigned NOT NULL DEFAULT '0',
  `rcp_rg` smallint(5) unsigned NOT NULL DEFAULT '0',
  `rcp_pr` smallint(5) unsigned NOT NULL DEFAULT '0',
  `rcp_vg` smallint(5) unsigned NOT NULL DEFAULT '0',
  `rcp_fr` smallint(5) unsigned NOT NULL DEFAULT '0',
  `created_by` int(11) NOT NULL,
  `created_type` varchar(10) NOT NULL,
  `created` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  PRIMARY KEY (`rc_id`),
  KEY `user_id_fkx` (`user_id_fkx`)
) ENGINE=InnoDB  DEFAULT CHARSET=latin1 AUTO_INCREMENT=31 ;

--
-- Dumping data for table `th_coach_lib_recipe`
--

INSERT INTO `th_coach_lib_recipe` (`rc_id`, `user_id_fkx`, `name`, `category`, `ingredients`, `c_direction`, `serv_no`, `serv_size`, `prep_time`, `cook_time`, `image`, `youtube`, `attachments`, `rcp_category`, `rcp_wg`, `rcp_rg`, `rcp_pr`, `rcp_vg`, `rcp_fr`, `created_by`, `created_type`, `created`) VALUES
(6, 41, 'Test Recipe 1sss', '', 'asdad__^^__Ing 1__^^__Ing 2__^^__Ing 3__^^__Ing 4__^^__asdad__^^__Ing 1__^^__Ing 2__^^__Ing 3__^^__Ing 4', 'Mix all ingredient and cook for long time.\r\n\r\n	\r\nI want to replace all the occurances of a period (.) in a JavaScript string\r\n\r\nFor example, I have:\r\n\r\nvar mystring = ''okay.this.is.a.string'';\r\nI want to get: okay this is a string.\r\n\r\nSo far I tried:\r\n\r\nmystring.replace(/./g,'' '')\r\nbut this ends up with all the string replaced to spaces.\r\n\r\nAny idea how to resolve this?\r\n\r\njavascript string replace\r\nshare|improve this question\r\nedited Nov 13 ''12 at 12:03\r\n\r\nPaul D. Waite\r\n23.1k854123	\r\nasked Mar 6 ''10 at 0:10\r\n\r\nOmar Abid\r\n2,43322954\r\n4	  \r\naefxx''s answer is correct, but just as an FYI is that the period character in a regex means match everything, thus everything being a space. Escaping it with the backslash means match on periods. – swilliams Jul 27 ''10 at 16:52\r\nThanks for the tip. I have has some AHA moments (when building the app) with Regex. I really hate it _, do you have some cool, good tutorial? – Omar Abid Jul 31 ''10 at 1:32\r\nrubular.com is what you''re looking for – LanguagesNamedAfterCofee Jul 17 ''12 at 15:41\r\n\r\nSheetal\r\n', 3, 'Half', 34, 23, 'nutrition/recipe/41_1361352213.jpg', NULL, NULL, '5', 0, 0, 0, 0, 0, 0, '', '2013-02-19 11:46:16'),
(7, 41, 'asdf', '', 'dfghdfg__^^__dfg__^^__asdfasdf', 'asdf', 4, '4', 4, 5, 'nutrition/recipe/41_1361343322.jpg', NULL, NULL, '5', 0, 0, 0, 0, 0, 0, '', '2013-02-20 06:55:23'),
(8, 41, 'asdfsdaf', '', 'asdf__^^__sdaf__^^__sd__^^__afd__^^__s', 'Cook This Immidiatly', 2, 'Full', 34, 34, 'nutrition/recipe/41_1361437634.jpg', 'http://www.youtube.com/watch?v=Bhhm2vV2pZs', '1,2', '5', 0, 0, 0, 0, 0, 0, '', '2013-02-21 09:07:15'),
(9, 41, 'asdfasdf', '', 'sdaf', 'asdf', 3, '3', 3, 3, 'nutrition/recipe/41_1361441249.jpg', '', '2,3', '5', 0, 0, 0, 0, 0, 0, '', '2013-02-21 10:07:30'),
(11, 41, 'skmmm', '', 'fhfhgf', 'sfdgasdf dsf asdf', 65, '56', 56, 56, 'nutrition/recipe/41_1361445973.png', 'http://www.youtube.com/watch?v=NPdLPjgw1jc', '', '5', 0, 0, 0, 0, 0, 0, '', '2013-02-21 11:26:13'),
(12, 41, 'Bombay Pavbhaji', '1', 'Potatoes,boiled and mashed	4 medium__^^__Tomatoes,chopped	4 medium__^^__Onions,chopped	2 medium__^^__Green capsicum,chopped deseeded	1 medium', 'Boil green peas in salted water till soft, drain, mash lightly and set aside. Grind ginger and garlic to a fine paste. Heat oil in a pan and add three fourth quantity of onions. Sauté till light brown. Add green chillies and ginger-garlic paste. Stir-fry for half a minute. Add half the quantity of tomatoes and cook on medium heat for three to four minutes, stirring continuously or till oil separates from the masala. Add capsicum, mashed peas, cauliflower, potatoes and one and half cups of water. Bring it to a boil and simmer for ten minutes, pressing with back of the spoon a few times, till all the vegetables are completely mashed. Add Pavbhaji Masala, salt and remaining tomatoes. Cook on medium heat for two minutes, stirring continuously. Heat half of the butter in a thick-bottomed pan or a tawa. Slice pav horizontally into two and pan fry in butter for half a minute, pressing two or three times or till pav is crisp and light brown. Garnish the bhaji with chopped coriander leaves, remaining butter and serve hot with pav accompanied with remaining chopped onion and lemon wedges. \r\n', 4, 'Half', 15, 20, 'nutrition/recipe/41_1363268353.jpg', '', '', '5', 5, 5, 0, 10, 0, 0, '', '2013-03-14 13:39:13'),
(13, 41, 'Semiya Paneer Upma', '1', 'Vermicelli	1 1/2 cups__^^__Cottage cheese (paneer),cut into cubes	100 grams__^^__Salt	 to taste__^^__Oil	2 tablespoons', 'Bring five cups of water to a boil in deep non stick pan; add vermicelli, salt and one tablespoon of oil. Cook for one minute or till vermicelli is slightly cooked. Drain, refresh under cold water and drain again. Heat remaining oil in a non stick pan and add mustard seeds and curry leaves. When the mustards seeds begin to splutter, add urad dal, ginger and onion. Sauté till the onion turns light brown. Add green chillies and stir. Add cottage cheese and turmeric powder and sauté for four to five minutes. Add cooked vermicelli and salt and stir gently. Cook for five to six minutes. Remove from heat. Mix in the lemon juice. Serve hot garnished with coriander leaves.', 4, 'Full', 15, 15, 'nutrition/recipe/41_1363268815.jpg', 'http://www.youtube.com/watch?v=SogcWMwjxS0', '', '5', 10, 0, 5, 0, 0, 0, '', '2013-03-14 13:46:55'),
(14, 41, 'Grilled Chicken', '2', 'Pepper__^^__Salt__^^__Olive Oil__^^__Basil__^^__Chicken Breast', 'Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Nam cursus. Morbi ut mi. Nullam enim leo, egestas id, condimentum at, laoreet mattis, massa. Sed eleifend nonummy diam. Praesent mauris ante, elementum et, bibendum at, posuere sit amet, nibh. Duis tincidunt lectus quis dui viverra vestibulum. Suspendisse vulputate aliquam dui. Nulla elementum dui ut augue. Aliquam vehicula mi at mauris. Maecenas placerat, nisl at consequat rhoncus, sem nunc gravida justo, quis eleifend arcu velit quis lacus. Morbi magna magna, tincidunt a, mattis non, imperdiet vitae, tellus. Sed odio est, auctor ac, sollicitudin in, consequat vitae, orci. Fusce id felis. Vivamus sollicitudin metus eget eros.', 2, 'Full', 30, 60, 'nutrition/recipe/41_1363431950.jpg', 'http://www.youtube.com/watch?v=vpS5mHJBQDE', '', '5', 0, 0, 0, 0, 0, 0, '', '2013-03-16 11:05:50'),
(17, 41, 'Hyderabadi Biryani', '2', 'Green cardamoms 10__^^__Black peppercorns 25-30__^^__Cinnamon 3 inch stick__^^__Oil 1 tablespoon + to deep fry__^^__Onions__^^__sliced 5 large__^^__Caraway seeds (shahi jeera) 1/2 teaspoon__^^__Cloves 10__^^__Fresh coriander leaves__^^__torn 2 tablespoons__^^__Fresh mint leaves__^^__torn 2 tablespoons__^^__Saffron (kesar)', 'Heat five to six cups of water in a deep pan. Add drained rice, salt, bay leaves, five green cardamoms, seven to eight black peppercorns, one cinnamon stick and cook till three fourth done. Drain and set aside. Heat sufficient oil in a kadai and deep-fry half the onion slices till golden. Drain and place on an absorbent paper. Grind caraway seeds, one cinnamon stick, remaining black peppercorns, cloves and remaining green cardamoms to a fine powder and set aside. Take mutton pieces in a bowl. Add ginger paste, garlic paste and salt and mix. Add the spice powder, red chilli powder, half the fried onions crushed, yogurt, coriander leaves, half of the mint leaves and one tablespoon oil and mix. Let it marinate for about two hours in the refrigerator. Heat two tablespoons ghee in a pan, remaining cinnamon and black cardamoms and sauté till fragrant. Add remaining onions and sauté till light golden. Add marinated mutton, stir and cook on high heat for three to four minutes. Cover, reduce heat and cook till almost done. Heat the remaining ghee in a thick-bottomed pan. Spread half the rice in a layer. Spread the mutton over the rice. Sprinkle remaining torn mint leaves. Spread the remaining rice. Sprinkle saffron milk. Cover and cook under dum till done. Serve hot with a raita of your choice.', 2, 'Half', 15, 55, 'nutrition/recipe/rcp_41_13825908569405_img.jpg', 'http://www.youtube.com/watch?v=iJUdcbCoIcA', '23', '5', 0, 0, 0, 0, 0, 0, '', '2013-10-22 12:53:23'),
(18, 41, 'Shahi Paneer', '1', 'Green cardamoms 10__^^__Black peppercorns 25-30__^^__Cinnamon 3 inch stick__^^__Oil 1 tablespoon + to deep fry__^^__Onions__^^__sliced 5 large__^^__Caraway seeds (shahi jeera) 1/2 teaspoon__^^__Cloves 10__^^__Fresh coriander leaves__^^__torn 2 tablespoons__^^__Fresh mint leaves__^^__torn 2 tablespoons__^^__Saffron (kesar)__^^__mix in 1/4 cup milk a few strands__^^__Fresh coriander leaves__^^__torn 2 tablespoons__^^__Fresh mint leaves__^^__torn 2 tablespoons__^^__Pure ghee 4 tablespoons Black cardamoms 2__^^__Saffron (kesar)__^^__mix in 1/4 cup milk a few strands', 'Cut the paneer into half inch wide and one inch long pieces. Boil the onions in quarter cup of water. Drain and allow to cool. Grind to a fine paste. Heat the oil in a kadai, add the cloves, peppercorns, cinnamon and bay leaf and sauté till fragrant. Add the green chillies and boiled onion paste and sauté for three to four minutes on low heat so it does not get coloured. Add the ginger paste and garlic paste and continue to sauté for half a minute. Add the cashewnut paste and sauté for another two minutes. Add the yogurt and sauté till the water from the yogurt gets absorbed. Stir in the cream, saffron and garam masala powder and salt to taste. Add the paneer and stir gently to mix. Sprinkle''s green cardamom powder and serve hot.', 4, 'Full', 15, 30, 'nutrition/recipe/rcp_41_13825356709631_img.jpg', 'http://www.youtube.com/watch?v=bPTmDhNPhFY', '32', '5', 0, 0, 5, 5, 0, 0, '', '2013-10-22 12:57:35'),
(19, 98, 'Fiery Fish Tacos with Crunchy Corn Salsa', '1', 'Fish__^^__Green Chilly__^^__Tomato', 'Spicy grilled fish are cooled down with a fresh crunchy veggie salsa featuring fresh corn. Your guests will swim back for seconds', 4, '2', 15, 30, 'nutrition/recipe/rcp_14014464646939_img.jpg', '', '', '5', 0, 0, 0, 0, 0, 0, '', '2014-05-30 10:41:04'),
(23, 32, 'Apple Soya Shake', '1', 'Beans__^^__Soy/Tofu', 'Bake potato wedges, mixed with mayonnaise, mustard paste and crushed', 2, 'Full', 12, 21, 'nutrition/recipe/rcp_14075729794125_img.jpg', '', '', '5', 5, 0, 5, 0, 0, 41, 'PTC', '2014-08-09 08:29:39'),
(24, 32, 'Recipe 1', '1', 'test', 'Test', 1, 'half', 10, 15, 'nutrition/recipe/rcp_ymrqgZnrI2Eiy9EoNAcJ_img.jpg', '', '', '5', 10, 0, 0, 15, 0, 41, 'PTC', '2015-05-07 12:50:25'),
(25, 32, 'Pepper Chicken', '2', 'Cut chicken - 2 lbs__^^__Whole Garam Masala__^^__Mustard__^^__Onion -2 Chopped__^^__Tomato 2', '1.Heat oil in a deep vessel.\r\n2.Add the tempering mustard,cumin.\r\n3.After it splutters add whole garam masala.\r\n4.Add chopped onions and saute until golden brown.\r\n5.Add salt, turmeric powder, ginger garlic paste,green chillies andcurry leaves.\r\n6.Saute everything for 5 mins.\r\n7.Add tomatoes and saute it until it becomes a gravy.\r\n8.Add chilli powder,coriander  powder,cumin powder.\r\n9.Saute everything for 10 mins in medium heat.\r\n10.When oil comes out its the correct consistency\r\n11.Now add chicken, little water and cover and cook.\r\n12.After its cooked add the crushed pepper powder and check for seasoning.\r\n13.To garnish add chopped corriander leaves. You can also add chunks of capsicum.', 2, 'half', 15, 30, 'nutrition/recipe/rcp_K344ggpc5bcXMuKMxtWG_img.jpg', 'https://www.youtube.com/watch?v=wPXnaY2V7Kc', '49,54', '5', 0, 0, 40, 5, 3, 41, 'PTC', '2015-05-07 13:08:51'),
(26, 32, 'Lima Beans Curry', '1', 'Baby Lima beans - 1 cup__^^__Onion - 1(finely minced)', '1.Soak lima beans for atleast 5-6 hours or overnight. Baby lima beans tastes better than big ones.\r\n2.Wash the beans and cook them with water and salt until the beans become tender. If pressure cooker is used the beans should be done in 1-2 whistles. If left longer, the beans will become mushy.', 2, 'Full', 2, 10, 'nutrition/recipe/rcp_inxSCgKEaLJGSxdihAmk_img.jpg', '', '', '1,5', 5, 0, 5, 10, 0, 41, 'PTC', '2015-05-08 11:29:00'),
(27, 41, 'Recipe 1', '2', '', 'Test Test', 2, 'Full', 15, 30, 'nutrition/recipe/rcp_QMsqXqNR8wkFYLnjyqMK_img.jpg', '', '4', '5', 0, 0, 0, 0, 0, 0, '', '2015-05-11 10:37:01'),
(28, 41, 'Recipe 2', '1', 'Test1__^^__Test2', 'Test', 1, 'Full', 10, 15, 'nutrition/recipe/rcp_T7cGFCdIicYjrbWwmn7X_img.jpg', '', '55', '5', 10, 0, 10, 20, 0, 0, '', '2015-05-11 10:42:35'),
(29, 32, 'Fish Mappas', '2', 'Fish - 1 lb__^^__Shallots (Sambhar Onions) - 1/2 cup (sliced)__^^__Tomatoes - 2 (chopped)__^^__Green chilly- 2', '1. Heat the oil in a clay pot or a pan, splutter the mustard seeds, fennel seeds and peppercons.\r\n2. Add the curry leaves followed by the sliced shallots, ginger, garlic and green chillies. Saute for few minutes.\r\n3. Mix the chilly powder, turmeric powder and corriander powder in a separate bowl with some water to make a paste.', 2, 'Full', 15, 30, 'nutrition/recipe/rcp_pnaFMcBx2AgbbPXzSB4b_img.jpg', '', '', '1,4,5', 0, 0, 20, 5, 0, 41, 'PTC', '2015-05-15 07:41:00'),
(30, 32, 'Mutton Curry', '2', 'Mutton - 1 lb (cut into small cubes)__^^__Onion - 1 medium (sliced)__^^__Tomatoes - 2 (chopped)', 'Whole Garam Masala - 1 cinnamon stick, 2 cloves, 2 cardamom, 1 star anise, kalpasi - 2\r\nFennel Seeds - 1 tsp\r\nCumin Seeds - 1/2 tsp\r\nBlack Peppercorns - 1 tsp\r\nCoriander Seeds - 3 tbsp', 2, 'Full', 15, 30, 'nutrition/recipe/rcp_4IGdG58nLAUd3CyNF32J_img.jpg', '', '', '1,5', 0, 0, 25, 5, 0, 98, 'FTC', '2015-05-22 05:49:40');

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

--
-- Table structure for table `th_coach_notifications`
--

CREATE TABLE IF NOT EXISTS `th_coach_notifications` (
  `id` int(10) NOT NULL AUTO_INCREMENT,
  `ndata` text COMMENT 'Data may be in Serialize manner please unserealize the data',
  `sender_id` int(10) unsigned NOT NULL,
  `rec_id` varchar(50) NOT NULL,
  `ntype` varchar(20) DEFAULT NULL,
  `nread` int(10) DEFAULT '0',
  `nnew` int(10) DEFAULT '1',
  `nar` varchar(15) DEFAULT '0',
  `created` timestamp NULL DEFAULT CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  KEY `rec_id` (`rec_id`),
  KEY `nar` (`nar`)
) ENGINE=InnoDB  DEFAULT CHARSET=latin1 AUTO_INCREMENT=147 ;

--
-- Dumping data for table `th_coach_notifications`
--

INSERT INTO `th_coach_notifications` (`id`, `ndata`, `sender_id`, `rec_id`, `ntype`, `nread`, `nnew`, `nar`, `created`) VALUES
(7, '', 94, '41', 'JAF', 0, 0, '0', '2013-12-26 11:09:16'),
(9, '', 81, '41', 'CREV', 0, 0, '0', '2013-12-26 12:01:57'),
(12, '', 81, '41', 'CCRA', 0, 0, '0', '2013-12-28 09:27:49'),
(13, '', 81, '41', 'CCR', 0, 0, '0', '2013-12-28 09:34:34'),
(14, '', 1, '71', 'CHSS', 0, 0, '0', '2013-12-30 07:59:10'),
(15, '', 1, '93', 'CCRA', 0, 1, '0', '2014-01-03 07:11:51'),
(17, 'a:2:{s:5:"ev_id";s:3:"108";s:10:"event_name";s:29:"Open Water Series Spring Swim";}', 1, '41', 'CRE', 0, 0, '0', '2014-01-09 11:23:08'),
(18, 'a:2:{s:5:"ev_id";s:3:"104";s:10:"event_name";s:10:"Test Event";}', 1, '41', 'CRE', 0, 0, '0', '2014-01-09 11:39:23'),
(19, 'a:2:{s:5:"ev_id";s:3:"102";s:10:"event_name";s:10:"Test Event";}', 1, '41', 'CRE', 0, 0, '0', '2014-01-09 11:41:30'),
(21, '', 8, '41', 'CCR', 0, 0, '0', '2014-01-11 11:43:16'),
(22, '', 1, '41', 'CCR', 0, 0, '0', '2014-01-16 11:14:50'),
(29, '', 1, '41', 'CHSS', 0, 0, '0', '2014-01-18 13:13:16'),
(30, '', 1, '93', 'CHSS', 0, 1, '0', '2014-01-18 13:14:00'),
(31, '', 1, '41', 'CHSU', 0, 0, '0', '2014-01-18 13:14:09'),
(32, '', 10, '41', 'CCR', 0, 0, '0', '2014-01-22 12:06:12'),
(33, '', 10, '72', 'CCR', 0, 1, '0', '2014-01-23 04:34:17'),
(34, '', 15, '41', 'CCRA', 0, 0, '0', '2014-01-31 06:44:32'),
(35, 'a:2:{s:5:"ev_id";s:2:"99";s:10:"event_name";s:31:"Open Water Series Spring Swim-4";}', 1, '41', 'CRE', 0, 0, '0', '2014-04-14 05:05:14'),
(42, '41', 1, '41', 'CRAR', 0, 0, '0', '2014-04-29 05:26:24'),
(44, 'a:1:{s:10:"dis_reason";s:15:"No t Satisfied.";}', 1, '71', 'CLDTC', 0, 0, '0', '2014-05-02 08:56:45'),
(46, 'a:1:{s:10:"dis_reason";s:6:"faaltu";}', 1, '71', 'CLDTC', 0, 0, '0', '2014-05-02 11:45:31'),
(48, 'a:1:{s:10:"dis_reason";s:13:"faltu coach\r\n";}', 1, '71', 'CLDTC', 0, 0, '0', '2014-05-02 12:10:43'),
(52, 'a:1:{s:10:"dis_reason";s:3:"xyz";}', 1, '71', 'CLDTC', 0, 0, '0', '2014-05-03 11:35:15'),
(54, 'a:1:{s:10:"dis_reason";s:1:"n";}', 1, '71', 'CLDTC', 0, 0, '0', '2014-05-03 13:36:05'),
(56, 'a:1:{s:10:"dis_reason";s:6:"sdfasf";}', 1, '71', 'CLDTC', 0, 0, '0', '2014-05-06 09:52:53'),
(57, '', 1, '71', 'CCRA', 0, 0, '0', '2014-05-06 09:57:59'),
(58, 'a:1:{s:10:"dis_reason";s:1:"d";}', 1, '71', 'CLDTC', 0, 0, '0', '2014-05-06 12:02:01'),
(59, '', 1, '71', 'CCR', 0, 0, '0', '2014-05-06 12:05:58'),
(62, '', 32, '60', 'ECRG', 0, 1, '0', '2014-05-26 06:55:49'),
(65, '', 32, '97', 'ECAD', 0, 1, '0', '2014-05-26 07:08:51'),
(66, '', 32, '97', 'ECAA', 0, 1, '0', '2014-05-26 07:08:55'),
(68, '', 32, '60', 'ECAA', 0, 1, '0', '2014-05-26 07:11:26'),
(69, '', 8, '98', 'CCRA', 0, 0, '0', '2014-06-03 08:24:53'),
(70, '', 55, '71', 'CCR', 0, 1, '0', '2014-06-05 06:24:54'),
(71, '', 32, '71', 'ECRA', 0, 1, '0', '2014-06-05 06:55:26'),
(74, '', 32, '72', 'ECRG', 0, 1, '0', '2014-06-10 05:42:23'),
(76, '', 32, '60', 'ECAD', 0, 1, '0', '2014-06-11 05:00:50'),
(79, '', 39, '98', 'CCRA', 0, 1, '0', '2014-06-11 07:34:53'),
(80, '', 7, '92', 'CCR', 0, 0, '0', '2014-06-12 06:36:14'),
(82, '', 32, '99', 'ECAA', 0, 1, '0', '2014-06-12 12:22:25'),
(90, '', 32, '99', 'ECAD', 0, 1, '0', '2014-06-12 13:42:40'),
(91, '', 32, '98', 'ECAD', 0, 1, '0', '2014-06-13 04:33:14'),
(92, '', 32, '98', 'ECAA', 0, 1, '0', '2014-06-14 12:03:11'),
(93, '', 32, '71', 'ECAD', 0, 1, '0', '2014-06-24 11:24:33'),
(96, '', 32, '41', 'ECAD', 0, 1, '0', '2014-06-26 08:35:00'),
(97, '', 32, '41', 'ECAA', 0, 1, '0', '2014-06-26 08:39:13'),
(98, 'a:2:{s:5:"ev_id";s:3:"126";s:10:"event_name";s:18:"Participant event1";}', 1, 'skm_skm_gmail_com', 'CRE', 0, 1, '0', '2014-07-02 06:41:44'),
(109, '', 32, '', 'ECRA', 0, 1, '0', '2014-07-14 07:17:57'),
(112, '', 1, '98', 'CCRA', 0, 0, '0', '2014-07-24 12:25:13'),
(113, 'a:2:{s:5:"ev_id";s:3:"104";s:10:"event_name";s:10:"Test Event";}', 1, '41', 'CRE', 0, 0, '0', '2014-08-05 08:37:34'),
(114, 'a:2:{s:5:"ev_id";s:2:"94";s:10:"event_name";s:12:"Utkarsh Fest";}', 1, '41', 'CRE', 0, 0, '0', '2014-08-05 08:38:02'),
(115, 'a:2:{s:5:"ev_id";s:3:"110";s:10:"event_name";s:5:"abcde";}', 1, '41', 'CRE', 0, 0, '0', '2014-08-06 13:29:03'),
(116, 'a:2:{s:5:"ev_id";s:3:"139";s:10:"event_name";s:7:"hsdakjh";}', 1, '41', 'CRE', 0, 0, '0', '2014-08-07 07:51:24'),
(117, '', 1, '67', 'CCR', 0, 0, '0', '2015-01-19 06:03:04'),
(118, 'a:1:{s:10:"dis_reason";s:6:"faltoo";}', 1, '67', 'CLDTC', 0, 1, '0', '2015-01-19 12:43:56'),
(119, '', 32, '71', 'ECAA', 0, 1, '0', '2015-01-20 05:28:45'),
(120, '', 66, '98', 'CCR', 0, 0, '0', '2015-01-23 07:21:00'),
(122, '', 40, '98', 'CCRA', 0, 0, '0', '2015-01-24 05:47:36'),
(124, 'a:1:{s:10:"dis_reason";s:7:"faaltoo";}', 1, '71', 'CLDTC', 0, 1, '0', '2015-02-27 12:59:25'),
(125, 'a:1:{s:10:"dis_reason";s:1:"t";}', 1, '71', 'CLDTC', 0, 1, '0', '2015-02-28 10:33:17'),
(126, 'a:1:{s:10:"dis_reason";s:1:"t";}', 1, '71', 'CLDTC', 0, 1, '0', '2015-02-28 10:34:57'),
(127, 'a:1:{s:10:"dis_reason";s:1:"h";}', 1, '67', 'CLDTC', 0, 1, '0', '2015-03-02 13:11:45'),
(128, 'a:1:{s:10:"dis_reason";s:1:"y";}', 1, '71', 'CLDTC', 0, 1, '0', '2015-03-02 13:11:53'),
(129, 'a:1:{s:10:"dis_reason";s:1:"y";}', 1, '41', 'CLDTC', 0, 0, '0', '2015-03-02 13:12:02'),
(130, 'a:1:{s:10:"dis_reason";s:6:"faltoo";}', 1, '71', 'CLDTC', 0, 1, '0', '2015-03-03 10:41:08'),
(131, 'a:1:{s:10:"dis_reason";s:4:"zxfc";}', 1, '98', 'CLDTC', 0, 0, '0', '2015-03-04 11:12:38'),
(132, 'a:1:{s:10:"dis_reason";s:2:"sd";}', 1, '98', 'CLDTC', 0, 0, '0', '2015-03-04 11:13:05'),
(133, '', 75, '41', 'CCR', 0, 0, '0', '2015-03-25 13:30:28'),
(134, '', 89, '41', 'CCR', 0, 0, '0', '2015-06-12 13:01:44'),
(136, '', 107, '41', 'CCR', 0, 0, '0', '2015-12-31 10:48:26'),
(137, '', 92, '41', 'CCR', 0, 0, '0', '2016-02-02 12:30:12'),
(138, 'a:2:{s:5:"ev_id";s:3:"162";s:10:"event_name";s:12:"event bu tom";}', 1, '98', 'CRE', 0, 0, '0', '2016-03-04 05:14:28'),
(139, 'a:2:{s:5:"ev_id";s:3:"173";s:10:"event_name";s:13:"running event";}', 1, '98', 'CRE', 0, 0, '0', '2016-03-04 10:35:57'),
(140, 'a:2:{s:5:"ev_id";s:3:"173";s:10:"event_name";s:13:"running event";}', 1, '98', 'CRE', 0, 0, '0', '2016-03-04 10:38:54'),
(141, 'a:2:{s:5:"ev_id";s:3:"173";s:10:"event_name";s:13:"running event";}', 1, '98', 'CRE', 0, 0, '0', '2016-03-04 10:41:22'),
(142, 'a:1:{s:10:"dis_reason";s:7:"timeout";}', 1, '93', 'CLDTC', 0, 1, '0', '2016-07-09 12:33:45'),
(143, '', 130, '41', 'CCR', 0, 1, '0', '2016-07-14 05:45:58'),
(145, '', 132, '41', 'CCR', 0, 1, '0', '2016-07-27 13:10:39'),
(146, '', 132, '93', 'CCR', 0, 1, '0', '2016-08-31 08:32:47');

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

--
-- Table structure for table `th_coach_products`
--

CREATE TABLE IF NOT EXISTS `th_coach_products` (
  `product_id` int(11) NOT NULL AUTO_INCREMENT,
  `product_name` varchar(100) DEFAULT NULL,
  `product_cost` int(11) DEFAULT '0',
  `user_id_fkx` int(11) DEFAULT NULL COMMENT 'Coach ID',
  `product_date` timestamp NULL DEFAULT CURRENT_TIMESTAMP,
  `tax_applicable` varchar(4) DEFAULT 'NO' COMMENT 'YES or NO',
  `product_image` varchar(100) DEFAULT NULL,
  PRIMARY KEY (`product_id`)
) ENGINE=InnoDB  DEFAULT CHARSET=latin1 AUTO_INCREMENT=10 ;

--
-- Dumping data for table `th_coach_products`
--

INSERT INTO `th_coach_products` (`product_id`, `product_name`, `product_cost`, `user_id_fkx`, `product_date`, `tax_applicable`, `product_image`) VALUES
(5, 'test 6', 150, 41, '2013-09-28 05:39:23', 'YES', ''),
(6, 'Product 5', 200, 41, '2013-10-01 12:39:31', 'NO', ''),
(7, 'Body Mass Protien', 200, 41, '2013-12-03 05:59:42', 'YES', ''),
(8, 'test tax', 3, 41, '2013-12-20 05:22:03', 'YES', 'nutrition/products/pro_41_13875169227923.jpg'),
(9, 'test non tax', 5, 41, '2013-12-20 05:22:33', 'NO', 'nutrition/products/pro_41_13875169530063.jpg');

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

--
-- Table structure for table `th_coach_radius`
--

CREATE TABLE IF NOT EXISTS `th_coach_radius` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `user_id_fkx` int(10) NOT NULL,
  `radius` varchar(10) NOT NULL,
  `zip` varchar(10) NOT NULL,
  `name` varchar(50) NOT NULL,
  `phone` varchar(20) NOT NULL,
  `website` varchar(50) NOT NULL,
  `position` tinyint(2) NOT NULL,
  `location` tinyint(2) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB  DEFAULT CHARSET=latin1 AUTO_INCREMENT=5 ;

--
-- Dumping data for table `th_coach_radius`
--

INSERT INTO `th_coach_radius` (`id`, `user_id_fkx`, `radius`, `zip`, `name`, `phone`, `website`, `position`, `location`) VALUES
(1, 41, '25', '12345', 'Sheetal Business', '988965698', 'www.top.in', 2, 1),
(2, 41, '50', '12345', 'Healty', '7388866668', 'http://skmcoach.com', 1, 1),
(3, 41, '10', '738', 'Health and Wealth', '9795572344', 'http://lkouniv.ac.in', 2, 0),
(4, 98, '5', '501', 'Gymnastic Tranning Center', '7388866668', '', 1, 0);

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

--
-- Table structure for table `th_coach_rating`
--

CREATE TABLE IF NOT EXISTS `th_coach_rating` (
  `rt_id` int(10) NOT NULL AUTO_INCREMENT,
  `rgs_id_fkx` int(10) unsigned NOT NULL,
  `ratingdata` int(10) NOT NULL DEFAULT '0',
  `re_type` varchar(20) DEFAULT NULL,
  `recp_id_fkx` int(10) NOT NULL,
  `rating_date` timestamp NULL DEFAULT CURRENT_TIMESTAMP,
  PRIMARY KEY (`rt_id`)
) ENGINE=InnoDB  DEFAULT CHARSET=latin1 AUTO_INCREMENT=17 ;

--
-- Dumping data for table `th_coach_rating`
--

INSERT INTO `th_coach_rating` (`rt_id`, `rgs_id_fkx`, `ratingdata`, `re_type`, `recp_id_fkx`, `rating_date`) VALUES
(1, 1, 2, 'nutrition', 41, '2013-02-16 05:38:29'),
(2, 1, 7, 'nutrition', 60, '2013-02-16 06:00:32'),
(3, 1, 2, 'nutrition', 41, '2013-02-16 06:06:49'),
(4, 65, 5, 'nutrition', 41, '2013-03-15 12:19:13'),
(5, 65, 6, 'nutrition', 67, '2013-03-15 12:19:42'),
(6, 65, 9, 'nutrition', 67, '2013-03-15 12:40:50'),
(7, 65, 9, 'nutrition', 67, '2013-03-15 12:41:26'),
(8, 81, 4, 'nutrition', 41, '2013-03-26 05:32:35'),
(9, 81, 4, 'nutrition', 41, '2013-03-26 05:38:27'),
(10, 81, 4, 'nutrition', 41, '2013-03-26 05:53:11'),
(11, 81, 2, 'nutrition', 60, '2013-04-25 10:42:49'),
(12, 1, 4, 'nutrition', 71, '2013-06-08 05:36:37'),
(13, 1, 3, 'nutrition', 93, '2014-05-05 11:21:20'),
(14, 39, 3, 'nutrition', 41, '2014-06-11 07:00:05'),
(15, 1, 4, 'nutrition', 98, '2014-08-29 08:47:38'),
(16, 75, 3, 'nutrition', 41, '2015-03-25 13:38:59');

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

--
-- Table structure for table `th_coach_receipt`
--

CREATE TABLE IF NOT EXISTS `th_coach_receipt` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `rec_id` varchar(20) NOT NULL,
  `user_id_fkx` int(11) NOT NULL,
  `rgs_id_fkx` int(10) unsigned NOT NULL,
  `invoice_id` varchar(20) NOT NULL,
  `rec_amount` float NOT NULL,
  `rec_type` varchar(10) DEFAULT NULL COMMENT 'offline,online',
  `tr_id` varchar(30) DEFAULT NULL,
  `rec_date` timestamp NULL DEFAULT CURRENT_TIMESTAMP,
  `rec_remark` varchar(255) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB  DEFAULT CHARSET=latin1 AUTO_INCREMENT=13 ;

--
-- Dumping data for table `th_coach_receipt`
--

INSERT INTO `th_coach_receipt` (`id`, `rec_id`, `user_id_fkx`, `rgs_id_fkx`, `invoice_id`, `rec_amount`, `rec_type`, `tr_id`, `rec_date`, `rec_remark`) VALUES
(1, 'REC1-41-0001', 41, 1, 'INV1-41-0001', 1000, 'offline', NULL, '2013-10-12 13:55:47', NULL),
(2, 'REC1-41-0002', 41, 1, 'INV1-41-0004', 450, 'offline', NULL, '2013-10-12 13:58:10', NULL),
(3, 'REC1-41-0003', 41, 1, 'INV1-41-0007', 350, 'offline', NULL, '2013-10-14 05:02:53', NULL),
(4, 'REC1-41-0004', 41, 1, 'INV1-41-0006', 375, 'offline', NULL, '2013-10-17 07:28:02', ''),
(5, 'REC1-41-0005', 41, 1, 'INV1-41-0009', 200, 'offline', NULL, '2013-10-17 07:29:52', ''),
(6, 'REC1-41-0006', 41, 1, 'INV1-41-0008', 650, 'offline', NULL, '2013-10-17 07:32:24', ''),
(7, 'REC1-41-0007', 41, 1, 'INV1-41-0011', 150, 'offline', NULL, '2013-10-17 13:13:43', ''),
(8, 'REC1-41-0008', 41, 1, 'INV1-41-0010', 180, 'offline', NULL, '2013-10-17 13:14:54', ''),
(9, 'REC1-41-0009', 41, 1, 'INV1-41-0028', 500, 'offline', NULL, '2013-11-13 10:36:50', ''),
(10, 'REC1-41-0010', 41, 1, 'INV1-41-0024', 200, 'online', 'aaaa', '2013-12-21 04:58:27', NULL),
(11, 'REC1-41-0011', 41, 1, 'INV1-41-0024', 200, 'online', '456', '2013-12-21 07:18:02', NULL),
(12, 'REC1-41-0012', 41, 1, 'INV1-41-0042', 1060, 'offline', NULL, '2014-01-08 11:11:40', '');

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

--
-- Table structure for table `th_coach_reminders`
--

CREATE TABLE IF NOT EXISTS `th_coach_reminders` (
  `rem_id` int(11) NOT NULL AUTO_INCREMENT,
  `ref_id` int(11) NOT NULL,
  `rem_type` varchar(10) DEFAULT 'A' COMMENT 'A->Appointment,GS->Group Session',
  `rem_to` varchar(10) NOT NULL COMMENT 'CL-> Client, M->Me',
  `rem_before` int(11) NOT NULL,
  `rem_unit` varchar(2) NOT NULL COMMENT 'w->week, d->Day, h->hour, m->minute',
  `rem_time` datetime NOT NULL,
  `rem_created` timestamp NULL DEFAULT CURRENT_TIMESTAMP,
  `rem_mail_sent` varchar(3) NOT NULL DEFAULT 'NO',
  PRIMARY KEY (`rem_id`),
  KEY `sess_id` (`ref_id`)
) ENGINE=InnoDB  DEFAULT CHARSET=latin1 AUTO_INCREMENT=393 ;

--
-- Dumping data for table `th_coach_reminders`
--

INSERT INTO `th_coach_reminders` (`rem_id`, `ref_id`, `rem_type`, `rem_to`, `rem_before`, `rem_unit`, `rem_time`, `rem_created`, `rem_mail_sent`) VALUES
(1, 4, 'A', 'CL', 15, 'd', '2013-10-06 13:05:00', '2013-10-21 12:36:04', 'YES'),
(2, 4, 'A', 'M', 12, 'h', '2013-10-21 01:05:00', '2013-10-21 12:36:04', 'YES'),
(3, 4, 'A', 'CL', 30, 'm', '2013-10-21 12:35:00', '2013-10-21 12:36:04', 'YES'),
(26, 19, 'A', 'CL', 2, 'd', '2013-10-26 14:00:00', '2013-10-24 07:36:25', 'YES'),
(27, 19, 'A', 'M', 2, 'h', '2013-10-28 12:00:00', '2013-10-24 07:36:25', 'YES'),
(31, 20, 'A', 'CL', 1, 'd', '2013-10-26 09:00:00', '2013-10-24 09:25:30', 'YES'),
(32, 20, 'A', 'M', 1, 'h', '2013-10-27 08:00:00', '2013-10-24 09:25:30', 'YES'),
(33, 20, 'A', 'CL', 30, 'm', '2013-10-27 08:30:00', '2013-10-24 09:25:30', 'YES'),
(38, 15, 'A', 'CL', 2, 'd', '2013-10-23 14:00:00', '2013-10-24 12:59:49', 'YES'),
(39, 15, 'A', 'CL', 30, 'm', '2013-10-25 13:30:00', '2013-10-24 12:59:49', 'YES'),
(82, 3, 'A', 'CL', 1, 'd', '2013-10-28 13:45:00', '2013-10-29 13:43:43', 'NO'),
(83, 3, 'A', 'M', 12, 'h', '2013-10-29 01:45:00', '2013-10-29 13:43:43', 'NO'),
(84, 3, 'A', 'CL', 30, 'm', '2013-10-29 13:15:00', '2013-10-29 13:43:43', 'NO'),
(85, 9, 'A', 'CL', 1, 'd', '2013-10-29 13:00:00', '2013-10-29 13:43:55', 'NO'),
(86, 9, 'A', 'M', 12, 'h', '2013-10-30 01:00:00', '2013-10-29 13:43:55', 'NO'),
(87, 9, 'A', 'CL', 30, 'm', '2013-10-30 12:30:00', '2013-10-29 13:43:55', 'NO'),
(94, 23, 'A', 'CL', 1, 'd', '2013-10-29 13:05:00', '2013-10-29 13:50:36', 'YES'),
(95, 23, 'A', 'M', 12, 'h', '2013-10-30 01:05:00', '2013-10-29 13:50:36', 'YES'),
(96, 23, 'A', 'CL', 30, 'm', '2013-10-30 12:35:00', '2013-10-29 13:50:36', 'YES'),
(97, 26, 'A', 'CL', 1, 'd', '2013-10-29 13:00:00', '2013-10-29 13:50:48', 'YES'),
(98, 26, 'A', 'M', 12, 'h', '2013-10-30 01:00:00', '2013-10-29 13:50:48', 'YES'),
(99, 26, 'A', 'CL', 30, 'm', '2013-10-30 12:30:00', '2013-10-29 13:50:48', 'YES'),
(100, 24, 'A', 'CL', 1, 'd', '2013-10-31 11:00:00', '2013-10-30 11:48:08', 'YES'),
(101, 24, 'A', 'M', 12, 'h', '2013-10-31 23:00:00', '2013-10-30 11:48:08', 'NO'),
(102, 24, 'A', 'CL', 30, 'm', '2013-11-01 10:30:00', '2013-10-30 11:48:08', 'YES'),
(103, 29, 'A', 'CL', 1, 'd', '2013-10-31 14:00:00', '2013-10-30 11:48:23', 'YES'),
(104, 29, 'A', 'M', 12, 'h', '2013-11-01 02:00:00', '2013-10-30 11:48:23', 'YES'),
(105, 29, 'A', 'CL', 30, 'm', '2013-11-01 13:30:00', '2013-10-30 11:48:23', 'YES'),
(106, 27, 'A', 'CL', 1, 'd', '2013-11-01 14:00:00', '2013-10-30 11:50:31', 'YES'),
(107, 27, 'A', 'M', 12, 'h', '2013-11-02 02:00:00', '2013-10-30 11:50:31', 'YES'),
(108, 27, 'A', 'CL', 30, 'm', '2013-11-02 13:30:00', '2013-10-30 11:50:31', 'YES'),
(148, 30, 'GS', 'CL', 1, 'd', '2013-11-09 08:00:00', '2013-11-05 09:32:02', 'NO'),
(149, 30, 'GS', 'M', 12, 'h', '2013-11-09 20:00:00', '2013-11-05 09:32:02', 'NO'),
(150, 30, 'GS', 'CL', 30, 'm', '2013-11-10 07:30:00', '2013-11-05 09:32:02', 'NO'),
(151, 31, 'GS', 'CL', 1, 'd', '2013-11-07 07:00:00', '2013-11-05 09:36:54', 'YES'),
(152, 31, 'GS', 'M', 12, 'h', '2013-11-07 19:00:00', '2013-11-05 09:36:54', 'NO'),
(153, 31, 'GS', 'CL', 30, 'm', '2013-11-08 06:30:00', '2013-11-05 09:36:54', 'YES'),
(157, 25, 'A', 'CL', 1, 'd', '2013-11-11 10:00:00', '2013-11-08 09:15:42', 'YES'),
(158, 25, 'A', 'M', 12, 'h', '2013-11-11 22:00:00', '2013-11-08 09:15:42', 'NO'),
(159, 25, 'A', 'CL', 30, 'm', '2013-11-12 09:30:00', '2013-11-08 09:15:42', 'YES'),
(184, 22, 'A', 'CL', 1, 'd', '2013-11-19 04:00:00', '2013-11-11 05:33:32', 'NO'),
(185, 22, 'A', 'M', 12, 'h', '2013-11-19 16:00:00', '2013-11-11 05:33:32', 'NO'),
(186, 22, 'A', 'CL', 30, 'm', '2013-11-20 03:30:00', '2013-11-11 05:33:32', 'NO'),
(196, 32, 'GS', 'CL', 1, 'd', '2013-11-27 07:00:00', '2013-11-22 07:11:45', 'NO'),
(197, 32, 'GS', 'M', 12, 'h', '2013-11-27 19:00:00', '2013-11-22 07:11:45', 'NO'),
(198, 32, 'GS', 'CL', 30, 'm', '2013-11-28 06:30:00', '2013-11-22 07:11:45', 'NO'),
(199, 12, 'A', 'CL', 1, 'd', '2013-12-21 10:00:00', '2013-12-14 13:51:10', 'YES'),
(200, 12, 'A', 'M', 12, 'h', '2013-12-21 22:00:00', '2013-12-14 13:51:10', 'NO'),
(201, 12, 'A', 'CL', 30, 'm', '2013-12-22 09:30:00', '2013-12-14 13:51:10', 'YES'),
(205, 31, 'A', 'CL', 1, 'd', '2013-12-26 09:00:00', '2013-12-14 13:52:03', 'YES'),
(206, 31, 'A', 'M', 12, 'h', '2013-12-26 21:00:00', '2013-12-14 13:52:03', 'NO'),
(207, 31, 'A', 'CL', 30, 'm', '2013-12-27 08:30:00', '2013-12-14 13:52:03', 'YES'),
(208, 28, 'A', 'CL', 1, 'd', '2013-12-27 09:00:00', '2013-12-24 09:05:15', 'YES'),
(209, 28, 'A', 'M', 12, 'h', '2013-12-27 21:00:00', '2013-12-24 09:05:15', 'NO'),
(210, 28, 'A', 'CL', 30, 'm', '2013-12-28 08:30:00', '2013-12-24 09:05:15', 'YES'),
(211, 55, 'A', 'CL', 1, 'd', '2013-12-25 10:00:00', '2013-12-24 09:05:36', 'YES'),
(212, 55, 'A', 'M', 12, 'h', '2013-12-25 22:00:00', '2013-12-24 09:05:36', 'NO'),
(213, 55, 'A', 'CL', 30, 'm', '2013-12-26 09:30:00', '2013-12-24 09:05:36', 'YES'),
(214, 47, 'A', 'CL', 1, 'd', '2013-12-27 06:00:00', '2013-12-24 09:05:54', 'YES'),
(215, 47, 'A', 'M', 12, 'h', '2013-12-27 18:00:00', '2013-12-24 09:05:54', 'NO'),
(216, 47, 'A', 'CL', 30, 'm', '2013-12-28 05:30:00', '2013-12-24 09:05:54', 'YES'),
(220, 34, 'GS', 'CL', 1, 'd', '2013-12-25 08:00:00', '2013-12-24 09:25:27', 'NO'),
(221, 34, 'GS', 'M', 12, 'h', '2013-12-25 20:00:00', '2013-12-24 09:25:27', 'NO'),
(222, 34, 'GS', 'CL', 30, 'm', '2013-12-26 07:30:00', '2013-12-24 09:25:27', 'NO'),
(226, 33, 'GS', 'CL', 1, 'd', '2014-01-01 07:30:00', '2013-12-24 09:32:37', 'NO'),
(227, 33, 'GS', 'M', 12, 'h', '2014-01-01 19:30:00', '2013-12-24 09:32:37', 'NO'),
(228, 33, 'GS', 'CL', 30, 'm', '2014-01-02 07:00:00', '2013-12-24 09:32:37', 'NO'),
(229, 35, 'GS', 'CL', 1, 'd', '2013-12-27 09:00:00', '2013-12-27 10:27:15', 'NO'),
(230, 35, 'GS', 'M', 12, 'h', '2013-12-27 21:00:00', '2013-12-27 10:27:15', 'NO'),
(231, 35, 'GS', 'CL', 30, 'm', '2013-12-28 08:30:00', '2013-12-27 10:27:15', 'NO'),
(232, 48, 'A', 'CL', 1, 'd', '2014-01-03 07:00:00', '2014-01-01 12:09:32', 'YES'),
(233, 48, 'A', 'M', 12, 'h', '2014-01-03 19:00:00', '2014-01-01 12:09:32', 'NO'),
(234, 48, 'A', 'CL', 30, 'm', '2014-01-04 06:30:00', '2014-01-01 12:09:32', 'YES'),
(235, 53, 'A', 'CL', 1, 'd', '2014-01-04 05:00:00', '2014-01-01 12:10:09', 'YES'),
(236, 53, 'A', 'M', 12, 'h', '2014-01-04 17:00:00', '2014-01-01 12:10:09', 'NO'),
(237, 53, 'A', 'CL', 30, 'm', '2014-01-05 04:30:00', '2014-01-01 12:10:09', 'YES'),
(238, 44, 'A', 'CL', 1, 'd', '2014-01-29 09:00:00', '2014-01-02 05:52:18', 'YES'),
(239, 49, 'A', 'CL', 1, 'd', '2014-01-22 09:00:00', '2014-01-02 05:52:58', 'YES'),
(240, 49, 'A', 'M', 12, 'h', '2014-01-22 21:00:00', '2014-01-02 05:52:58', 'NO'),
(241, 49, 'A', 'CL', 30, 'm', '2014-01-23 08:30:00', '2014-01-02 05:52:58', 'YES'),
(242, 43, 'A', 'CL', 1, 'd', '2014-01-07 09:00:00', '2014-01-02 07:07:48', 'YES'),
(243, 43, 'A', 'M', 12, 'h', '2014-01-07 21:00:00', '2014-01-02 07:07:48', 'NO'),
(244, 43, 'A', 'CL', 30, 'm', '2014-01-08 08:30:00', '2014-01-02 07:07:48', 'YES'),
(245, 50, 'A', 'CL', 1, 'd', '2014-01-07 09:00:00', '2014-01-04 09:46:14', 'YES'),
(246, 50, 'A', 'M', 12, 'h', '2014-01-07 21:00:00', '2014-01-04 09:46:14', 'NO'),
(247, 50, 'A', 'CL', 30, 'm', '2014-01-08 08:30:00', '2014-01-04 09:46:14', 'YES'),
(248, 56, 'A', 'CL', 1, 'd', '2014-01-08 09:00:00', '2014-01-04 09:46:50', 'YES'),
(249, 56, 'A', 'M', 12, 'h', '2014-01-08 21:00:00', '2014-01-04 09:46:50', 'NO'),
(250, 56, 'A', 'CL', 30, 'm', '2014-01-09 08:30:00', '2014-01-04 09:46:50', 'YES'),
(251, 10, 'A', 'CL', 1, 'd', '2014-01-08 09:30:00', '2014-01-04 09:53:07', 'YES'),
(252, 10, 'A', 'M', 12, 'h', '2014-01-08 21:30:00', '2014-01-04 09:53:07', 'NO'),
(253, 10, 'A', 'CL', 30, 'm', '2014-01-09 09:00:00', '2014-01-04 09:53:07', 'YES'),
(290, 36, 'GS', 'CL', 1, 'd', '2014-01-30 22:50:00', '2014-01-15 06:26:51', 'NO'),
(291, 36, 'GS', 'M', 12, 'h', '2014-01-31 10:50:00', '2014-01-15 06:26:51', 'NO'),
(292, 36, 'GS', 'CL', 30, 'm', '2014-01-31 22:20:00', '2014-01-15 06:26:51', 'NO'),
(293, 14, 'A', 'CL', 1, 'd', '2014-03-25 13:55:00', '2014-03-25 14:00:57', 'YES'),
(294, 14, 'A', 'M', 12, 'h', '2014-03-26 01:55:00', '2014-03-25 14:00:57', 'YES'),
(295, 14, 'A', 'CL', 30, 'm', '2014-03-26 13:25:00', '2014-03-25 14:00:57', 'YES'),
(296, 80, 'A', 'CL', 1, 'd', '2014-03-27 09:50:00', '2014-03-26 06:29:51', 'YES'),
(297, 80, 'A', 'M', 12, 'h', '2014-03-27 21:50:00', '2014-03-26 06:29:51', 'NO'),
(298, 80, 'A', 'CL', 30, 'm', '2014-03-28 09:20:00', '2014-03-26 06:29:51', 'YES'),
(299, 41, 'A', 'CL', 1, 'd', '2014-05-01 08:00:00', '2014-04-28 11:52:49', 'YES'),
(300, 41, 'A', 'M', 12, 'h', '2014-05-01 20:00:00', '2014-04-28 11:52:49', 'NO'),
(301, 41, 'A', 'CL', 30, 'm', '2014-05-02 07:30:00', '2014-04-28 11:52:49', 'YES'),
(302, 60, 'A', 'CL', 1, 'd', '2014-04-30 09:30:00', '2014-04-28 11:53:26', 'YES'),
(303, 60, 'A', 'M', 12, 'h', '2014-04-30 21:30:00', '2014-04-28 11:53:26', 'NO'),
(304, 60, 'A', 'CL', 30, 'm', '2014-05-01 09:00:00', '2014-04-28 11:53:26', 'YES'),
(305, 57, 'A', 'CL', 1, 'd', '2014-05-29 09:55:00', '2014-05-26 10:44:55', 'YES'),
(306, 57, 'A', 'M', 12, 'h', '2014-05-29 21:55:00', '2014-05-26 10:44:55', 'NO'),
(307, 57, 'A', 'CL', 30, 'm', '2014-05-30 09:25:00', '2014-05-26 10:44:55', 'YES'),
(308, 37, 'GS', 'CL', 1, 'd', '2014-06-03 07:00:00', '2014-05-29 05:01:48', 'NO'),
(309, 37, 'GS', 'M', 12, 'h', '2014-06-03 19:00:00', '2014-05-29 05:01:48', 'NO'),
(310, 37, 'GS', 'CL', 30, 'm', '2014-06-04 06:30:00', '2014-05-29 05:01:48', 'NO'),
(311, 38, 'GS', 'CL', 1, 'd', '2014-06-03 06:00:00', '2014-05-29 05:14:15', 'NO'),
(312, 38, 'GS', 'M', 12, 'h', '2014-06-03 18:00:00', '2014-05-29 05:14:15', 'NO'),
(313, 38, 'GS', 'CL', 30, 'm', '2014-06-04 05:30:00', '2014-05-29 05:14:15', 'NO'),
(314, 39, 'GS', 'CL', 1, 'd', '2014-06-02 06:00:00', '2014-05-29 05:20:58', 'NO'),
(315, 39, 'GS', 'M', 12, 'h', '2014-06-02 18:00:00', '2014-05-29 05:20:58', 'NO'),
(316, 39, 'GS', 'CL', 30, 'm', '2014-06-03 05:30:00', '2014-05-29 05:20:58', 'NO'),
(317, 40, 'GS', 'CL', 1, 'd', '2014-06-03 06:00:00', '2014-05-29 05:26:37', 'NO'),
(318, 40, 'GS', 'M', 12, 'h', '2014-06-03 18:00:00', '2014-05-29 05:26:37', 'NO'),
(319, 40, 'GS', 'CL', 30, 'm', '2014-06-04 05:30:00', '2014-05-29 05:26:37', 'NO'),
(320, 41, 'GS', 'CL', 1, 'd', '2014-06-03 06:00:00', '2014-05-29 05:28:14', 'YES'),
(321, 41, 'GS', 'M', 12, 'h', '2014-06-03 18:00:00', '2014-05-29 05:28:14', 'NO'),
(322, 41, 'GS', 'CL', 30, 'm', '2014-06-04 05:30:00', '2014-05-29 05:28:14', 'YES'),
(323, 108, 'A', 'CL', 1, 'd', '2014-06-02 08:00:00', '2014-05-30 08:40:20', 'YES'),
(324, 108, 'A', 'M', 12, 'h', '2014-06-02 20:00:00', '2014-05-30 08:40:20', 'NO'),
(325, 108, 'A', 'CL', 30, 'm', '2014-06-03 07:30:00', '2014-05-30 08:40:20', 'YES'),
(326, 58, 'A', 'CL', 1, 'm', '2014-06-13 08:54:00', '2014-06-11 08:56:12', 'YES'),
(327, 58, 'A', 'M', 12, 'h', '2014-06-12 20:55:00', '2014-06-11 08:56:12', 'NO'),
(328, 58, 'A', 'CL', 30, 'm', '2014-06-13 08:25:00', '2014-06-11 08:56:12', 'YES'),
(329, 42, 'GS', 'CL', 1, 'd', '2014-06-16 09:25:00', '2014-06-17 06:17:29', 'NO'),
(330, 59, 'A', 'CL', 1, 'd', '2014-07-18 09:00:00', '2014-07-18 13:54:33', 'YES'),
(331, 59, 'A', 'M', 12, 'h', '2014-07-18 21:00:00', '2014-07-18 13:54:33', 'NO'),
(332, 59, 'A', 'CL', 30, 'm', '2014-07-19 08:30:00', '2014-07-18 13:54:33', 'NO'),
(333, 61, 'A', 'CL', 1, 'd', '2014-07-22 14:30:00', '2014-07-16 07:07:49', 'NO'),
(334, 61, 'A', 'M', 2, 'h', '2014-07-23 12:30:00', '2014-07-16 07:07:49', 'NO'),
(335, 61, 'A', 'CL', 3, 'd', '2014-07-20 14:30:00', '2014-07-16 07:07:49', 'NO'),
(336, 43, 'GS', 'CL', 1, 'd', '2014-07-29 07:00:00', '2014-07-18 07:48:01', 'NO'),
(337, 43, 'GS', 'M', 12, 'h', '2014-07-29 19:00:00', '2014-07-18 07:48:01', 'NO'),
(338, 43, 'GS', 'CL', 30, 'h', '2014-07-29 01:00:00', '2014-07-18 07:48:01', 'NO'),
(339, 63, 'A', 'CL', 1, 'd', '2014-07-24 05:30:00', '2014-07-18 08:02:20', 'NO'),
(340, 63, 'A', 'M', 12, 'h', '2014-07-24 17:30:00', '2014-07-18 08:02:20', 'NO'),
(341, 63, 'A', 'CL', 30, 'h', '2014-07-23 23:30:00', '2014-07-18 08:02:20', 'NO'),
(345, 44, 'GS', 'CL', 1, 'd', '2015-09-30 09:00:00', '2015-09-30 11:03:19', 'NO'),
(346, 44, 'GS', 'M', 12, 'h', '2015-09-30 21:00:00', '2015-09-30 11:03:19', 'NO'),
(347, 44, 'GS', 'CL', 30, 'h', '2015-09-30 03:00:00', '2015-09-30 11:03:19', 'NO'),
(348, 45, 'GS', 'CL', 1, 'd', '2015-09-30 09:00:00', '2015-09-30 11:06:10', 'NO'),
(349, 45, 'GS', 'M', 12, 'h', '2015-09-30 21:00:00', '2015-09-30 11:06:10', 'NO'),
(350, 45, 'GS', 'CL', 30, 'h', '2015-09-30 03:00:00', '2015-09-30 11:06:10', 'NO'),
(384, 49, 'GS', 'CL', 1, 'd', '2015-10-09 08:00:00', '2015-10-03 07:40:16', 'NO'),
(385, 49, 'GS', 'M', 12, 'h', '2015-10-09 20:00:00', '2015-10-03 07:40:16', 'NO'),
(386, 49, 'GS', 'CL', 30, 'h', '2015-10-09 02:00:00', '2015-10-03 07:40:16', 'NO'),
(387, 0, 'GS', 'CL', 1, 'd', '2016-04-14 08:00:00', '2016-04-09 10:25:10', 'NO'),
(388, 0, 'GS', 'M', 12, 'h', '2016-04-14 20:00:00', '2016-04-09 10:25:10', 'NO'),
(389, 0, 'GS', 'CL', 30, 'h', '2016-04-14 02:00:00', '2016-04-09 10:25:10', 'NO'),
(390, 64, 'A', 'CL', 1, 'd', '2016-04-14 09:00:00', '2016-04-09 10:27:17', 'NO'),
(391, 64, 'A', 'M', 12, 'h', '2016-04-14 21:00:00', '2016-04-09 10:27:17', 'NO'),
(392, 64, 'A', 'CL', 30, 'h', '2016-04-14 03:00:00', '2016-04-09 10:27:17', 'NO');

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

--
-- Table structure for table `th_coach_reviews`
--

CREATE TABLE IF NOT EXISTS `th_coach_reviews` (
  `review_id` int(11) NOT NULL AUTO_INCREMENT,
  `rgs_id_fkx` int(10) unsigned NOT NULL,
  `user_id_fkx` int(11) DEFAULT NULL,
  `review` text,
  `isread` tinyint(2) NOT NULL DEFAULT '0',
  `review_date` timestamp NULL DEFAULT CURRENT_TIMESTAMP,
  PRIMARY KEY (`review_id`)
) ENGINE=InnoDB  DEFAULT CHARSET=latin1 AUTO_INCREMENT=12 ;

--
-- Dumping data for table `th_coach_reviews`
--

INSERT INTO `th_coach_reviews` (`review_id`, `rgs_id_fkx`, `user_id_fkx`, `review`, `isread`, `review_date`) VALUES
(1, 81, 60, 'This is demo review. s', 1, '2013-04-25 10:42:50'),
(2, 81, 41, 'Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry\\''s standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.\r\nLorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry\\''s standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.', 1, '2013-09-19 07:15:42'),
(6, 1, 41, 'A reviews is an evaluation of a publication, product, service, or company such as a movie (a movie review), video game, musical composition (music review of a composition or recording), book (book review); a piece of hardware like a car, home appliance, or computer; or an event or performance, such as a live music concert, play, musical theater show, or dance show. In addition to a critical evaluation, the review''s author may assign the work a rating to indicate its relative merit. More loosely, an author may review current events, trends, or items in the news. A compilation of reviews may itself be called a review. The New York Review of Books, for instance, is a collection of essays on literature, culture, and current affairs. National Review, founded by William F. Buckley, Jr., is an influential conservative magazine, and Monthly Review is a long-running socialist periodical.\r\nIn the scientific literature, review articles are a category of scientific paper, which provides a synthesis of research on a topic at that moment in time. A compilation of these reviews forms the core content of a ''secondary'' scientific journal, with examples including Annual Reviews, the Nature Reviews series of journals and Trends. A peer review is the process by which scientists assess the work of their colleagues that has been submitted for publication in the scientific literature. A software review is also a form of peer review, by the co-workers.\r\nA consumer review refers to a review written by the owner of a product or the user of a service who has sufficient experience to comment on reliability and whether or not the product or service delivers on its promises, otherwise known as product reviews. Product reviews can be done either individually, or as a comparison to similar products. An expert review usually refers to a review written by someone who has tested several peer products or services to identify which offers the best value for money or the best set of features. A bought review is the system where the creator (usually a company) of a new product pays a reviewer to review his new product.', 1, '2013-09-19 11:31:13'),
(7, 1, 71, 'Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Nam cursus. Morbi ut mi. Nullam enim leo, egestas id, condimentum at, laoreet mattis, massa. Sed eleifend nonummy diam. Praesent mauris ante, elementum et, bibendum at, posuere sit amet, nibh. Duis tincidunt lectus quis dui viverra vestibulum. Suspendisse vulputate aliquam dui. Nulla elementum dui ut augue. Aliquam vehicula mi at mauris. Maecenas placerat, nisl at consequat rhoncus, sem nunc gravida justo, quis eleifend arcu velit quis lacus. Morbi magna magna, tincidunt a, mattis non, imperdiet vitae, tellus. Sed odio est, auctor ac, sollicitudin in, consequat vitae, orci. Fusce id felis. Vivamus sollicitudin metus eget eros.', 0, '2014-05-03 08:54:12'),
(8, 1, 93, 'nice coach.', 0, '2014-05-05 11:19:28'),
(9, 39, 41, 'Nice coach', 0, '2014-06-11 07:00:05'),
(10, 1, 98, 'Nice Coach', 0, '2014-08-29 08:47:38'),
(11, 75, 41, 'Lorem Ipsum is simply dummy text of the printing and typesetting industry.', 0, '2015-03-25 13:38:59');

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

--
-- Table structure for table `th_coach_subscription`
--

CREATE TABLE IF NOT EXISTS `th_coach_subscription` (
  `sub_id` int(11) NOT NULL AUTO_INCREMENT,
  `coach_id` int(11) NOT NULL,
  `plan_id` int(11) NOT NULL,
  `title` varchar(100) DEFAULT NULL,
  `allowed_clients` int(11) NOT NULL,
  `storage_space` int(11) NOT NULL COMMENT 'in MB',
  `price` float NOT NULL COMMENT 'in $',
  `start_date` date DEFAULT NULL,
  `end_date` date DEFAULT NULL,
  `purchase_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `payment_status` varchar(20) DEFAULT 'unpaid',
  `sub_duration` varchar(100) DEFAULT NULL,
  `plan_status` tinyint(4) NOT NULL DEFAULT '0' COMMENT '0=Inactive Plan, 1=Active Plan',
  `action` varchar(20) DEFAULT NULL COMMENT 'S=Starter, R=Renew, U=upgrade, D=Downgrade',
  PRIMARY KEY (`sub_id`)
) ENGINE=InnoDB  DEFAULT CHARSET=latin1 AUTO_INCREMENT=39 ;

--
-- Dumping data for table `th_coach_subscription`
--

INSERT INTO `th_coach_subscription` (`sub_id`, `coach_id`, `plan_id`, `title`, `allowed_clients`, `storage_space`, `price`, `start_date`, `end_date`, `purchase_date`, `payment_status`, `sub_duration`, `plan_status`, `action`) VALUES
(10, 41, 3, 'Standard', 10, 400, 50, '2013-11-09', '2013-12-09', '2013-11-09 05:07:22', 'paid', '1', 0, 'U'),
(12, 41, 9, 'Test', 15, 20, 10, '2013-11-12', '2013-12-12', '2013-11-12 13:26:59', 'paid', '1', 0, 'U'),
(14, 60, 1, 'Beginner', 2, 100, 20, '2013-11-14', '2013-12-14', '2013-11-14 12:45:01', 'paid', '1', 1, 'S'),
(15, 60, 2, 'Basic', 5, 250, 40, '2013-11-14', '2013-12-14', '2013-11-14 13:09:03', 'unpaid', '1', 0, 'U'),
(16, 41, 3, 'Standard', 10, 400, 50, '2013-11-15', '2014-12-15', '2013-11-15 11:20:01', 'paid', '1', 1, 'D'),
(17, 92, 1, 'Beginner', 2, 100, 20, '2013-12-06', '2014-01-06', '2013-12-06 10:40:07', 'paid', '1', 1, 'S'),
(18, 72, 1, 'Beginner', 2, 100, 20, '2013-12-10', '2014-01-10', '2013-12-10 05:56:35', 'paid', '1', 1, 'S'),
(19, 72, 1, 'Beginner', 2, 100, 20, '2013-12-10', '2014-01-10', '2013-12-10 05:57:46', 'unpaid', '1', 0, 'R'),
(20, 41, 3, 'Standard', 10, 400, 50, '2013-12-21', '2015-01-21', '2013-12-21 10:59:54', 'paid', '1', 1, 'R'),
(21, 94, 1, 'Beginner', 2, 100, 20, '2013-12-26', '2014-01-26', '2013-12-26 11:09:16', 'paid', '1', 1, 'S'),
(22, 0, 1, 'Beginner', 2, 100, 20, '2013-12-28', '2014-01-28', '2013-12-28 14:40:05', 'paid', '1', 1, 'S'),
(23, 93, 1, 'Beginner', 2, 100, 20, '2013-12-30', '2014-01-28', '2013-12-30 14:04:58', 'paid', '1', 1, 'S'),
(24, 1, 1, 'Beginner', 2, 100, 20, '2014-01-08', '2014-02-08', '2014-01-08 04:31:01', 'paid', '1', 1, 'S'),
(25, 32, 1, 'Beginner', 2, 100, 20, '2014-02-11', '2014-03-11', '2014-02-11 06:36:52', 'paid', '1', 1, 'S'),
(26, 71, 1, 'Beginner', 2, 100, 20, '2014-05-02', '2014-06-02', '2014-05-02 09:09:23', 'paid', '1', 1, 'S'),
(27, 96, 1, 'Beginner', 2, 100, 20, '2014-05-24', '2014-06-24', '2014-05-24 12:45:37', 'paid', '1', 1, 'S'),
(28, 97, 1, 'Beginner', 2, 100, 20, '2014-05-26', '2014-06-26', '2014-05-26 04:38:52', 'paid', '1', 1, 'S'),
(29, 98, 1, 'Beginner', 2, 100, 20, '2014-05-28', '2014-06-28', '2014-05-28 06:42:43', 'paid', '1', 1, 'S'),
(30, 101, 5, 'Enterprise', 50, 1000, 120, '2014-06-24', '2014-07-24', '2014-06-24 07:38:33', 'paid', '1', 1, 'S'),
(31, 109, 5, 'Enterprise', 50, 1000, 120, '2014-08-14', '2014-09-14', '2014-08-14 06:23:59', 'paid', '1', 1, 'S'),
(32, 67, 3, 'Standard', 10, 400, 50, '2015-01-19', '2015-02-19', '2015-01-19 06:03:45', 'paid', '1', 1, 'S'),
(33, 98, 5, 'Enterprise', 50, 1000, 120, '2015-03-25', '2015-04-25', '2015-03-25 06:48:39', 'paid', '1', 1, 'U'),
(34, 41, 5, 'Enterprise', 50, 1000, 120, '2015-03-25', '2016-07-29', '2016-07-25 13:36:50', 'paid', '1', 1, 'U'),
(35, 95, 3, 'Standard', 10, 400, 50, '2015-09-23', '2015-10-23', '2015-09-23 12:22:17', 'paid', '1', 1, 'S'),
(36, 130, 3, 'Standard', 10, 400, 50, '2016-07-14', '2016-08-14', '2016-07-14 06:01:06', 'paid', '1', 1, 'S'),
(37, 41, 3, 'Standard', 50, 400, 50, '2016-07-28', '2016-11-30', '2017-04-25 07:17:34', 'paid', '1', 1, 'R'),
(38, 93, 2, 'Basic', 30, 250, 40, '2016-08-31', '2017-01-31', '2016-08-31 08:34:11', 'paid', '1', 1, 'U');

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

--
-- Table structure for table `th_coach_success_story`
--

CREATE TABLE IF NOT EXISTS `th_coach_success_story` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `user_id_fkx` int(11) DEFAULT NULL,
  `title` varchar(100) DEFAULT NULL,
  `client_fname` varchar(50) DEFAULT NULL,
  `story` varchar(1000) DEFAULT NULL,
  `tags` varchar(255) DEFAULT NULL,
  `before_image` varchar(255) DEFAULT NULL,
  `before_image_title` varchar(50) DEFAULT NULL,
  `after_image` varchar(255) DEFAULT NULL,
  `after_image_title` varchar(50) DEFAULT NULL,
  `permission` varchar(10) DEFAULT NULL,
  `story_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00' ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB  DEFAULT CHARSET=latin1 AUTO_INCREMENT=51 ;

--
-- Dumping data for table `th_coach_success_story`
--

INSERT INTO `th_coach_success_story` (`id`, `user_id_fkx`, `title`, `client_fname`, `story`, `tags`, `before_image`, `before_image_title`, `after_image`, `after_image_title`, `permission`, `story_date`) VALUES
(24, 60, 'my title', 'Devesh', 'this is my story', '1,3,5', 'nutrition/success_stories/coach_images/60_1365163436_b.jpg', NULL, 'nutrition/success_stories/coach_images/60_1365163461_a.jpg', NULL, 'on', '2013-04-05 12:04:35'),
(30, 41, 'Helen Phillips Success Story', 'Helen Phillips', 'Before I came here, I had tried EVERYTHING. But I knew that this was going to work after looking at all the other people who had succeeded. Now, I am happy, energetic, healthy and loving life again.I feel incredible! This was so easy: I was surprised that the weight kept coming off and off. Thank you Bounce Fitness!', '2,5,9,23', 'nutrition/success_stories/coach_images/41_1379574047_before.jpg', NULL, 'nutrition/success_stories/coach_images/41_1379574047_after.jpg', NULL, '1', '2013-09-19 07:00:47'),
(31, 41, 'Mona: former Beauty Queen pageant contestant gets her groove back!', 'Mona Mehta', 'As a former athlete, model, and beauty pageant contestant, Mona is a prime example of someone who "GOES HARD, OR GOES HOME." In the last year, Mona has lost over 50LBs, and is still continuing to transform her body. After 3 kids and 20 years of marriage, she decided to get back to the healthy lifestyle she used to live. It has paid off! Mona is 44 yrs old, and not only kicks butt in our group TRX classes, but is a beast with the weights. I am so proud of her!!', '3,4,20,23', 'nutrition/success_stories/coach_images/41_1379574372_before.jpg', NULL, 'nutrition/success_stories/coach_images/41_1379574372_after.jpg', NULL, '1', '2013-09-19 07:06:12'),
(37, 41, 'Fusion Beatz has truly changed my life!', 'Aruna Chinnakotla', 'After moving back to the Bay Area from Ohio, where she graduated from Oberlin College with an English degree, she decided it was time to get in shape. She came to Fusion Beatz after hearing rave reviews from her mother, and soon she was hooked! She loves the infectious music and fun moves, and is so glad to find an energizing workout that brings fun to fitness. She is now in better shape than she has ever been before, and thanks to Fusion Beatz, she was motivated to keep up healthy eating habits and workouts outside of the classes. When the first picture was taken I was a size 12 and now I am a size 6.Two years ago I was struggling to jog two miles on a treadmill, and now, because of Fusion Beatz, I just ran my first half marathon. I lost about 30 pounds, and have kept it off for over a year, but I think the most meaningful part of my fitness journey is that I have gained confidence, gotten to know amazing people and have found something I am passionate about through Fusion Beatz.', '1,2,3,4', 'nutrition/success_stories/coach_images/41_1379507181_before.jpg', NULL, 'nutrition/success_stories/coach_images/41_1379507181_after.jpg', NULL, '1', '2013-09-19 06:53:12'),
(38, 41, 'Highschool/college baseball player', 'Brandon Pylipow', 'Text from client:\r\nGetting ready for college baseball! Training hard! I just wanted to thank you for everything that you''ve done. I would not be where I am without you and integrated. I know I haven''t trained with you in awhile but I''m in the best shape of my life and it''s because of you guys. You guys gave me the basic knowledge, helped me get some amazing results, and have honestly inspired me to be the best version of myself that I can be. Thank you guys and ESP. You for everything that you have done. Like I said where I am today all comes back to you.', '361523', 'nutrition/success_stories/coach_images/41_1379507668_before.jpg', NULL, 'nutrition/success_stories/coach_images/41_1379507668_after.jpg', NULL, '1', '2013-09-19 06:38:56'),
(39, 41, 'Never too old to change & transform yourself', 'Georgi Gehrke', 'Dorothy started training back in 2007...She was overweight, stressed, and baffled as to why she couldn''t lose weight. She had attended exercise classes before but the weight wasn''t coming off so she decided to hire Georgi as her personal trainer. Dorothy has made huge changes as you can see below in her before and after pictures. She has changed her lifestyle, nutritional habits, and is consistent with daily exercise. Dorothy continues to train with Georgi every other week for maintenance...She is active and enjoys her new body, mind, and spirit...You''re welcome to contact her for more details or myself...', '23253049', 'nutrition/success_stories/coach_images/41_1379508014_before.jpg', NULL, 'nutrition/success_stories/coach_images/41_1379508014_after.jpg', NULL, '1', '2013-09-19 06:40:12'),
(48, 41, 'Jennifer''s Success Story', 'Bary El-Yacoubi', ' With over 90 pounds to lose, I was pretty sure that nothing short of program could help me when I first called Bounce Fitness. I lost the first 7 pounds the first week, I attended a family wedding and went on two cruises and LOST WEIGHT EVERY TIME! I have a new lease on LIFE!! Before you go under the knife, try Bounce Fitness!! Painless!!', '2,7,8,11', 'nutrition/success_stories/coach_images/41_1379573953_before.jpg', NULL, 'nutrition/success_stories/coach_images/41_1379573953_after.jpg', NULL, '1', '2013-09-19 06:59:13'),
(49, 98, 'Test', 'Jackson', 'Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum ', '2,3', 'nutrition/success_stories/coach_images/98_14012824497431_before.jpg', NULL, 'nutrition/success_stories/coach_images/98_14012824499272_before.jpg', NULL, '1', '2014-05-28 13:07:30'),
(50, 98, 'Self confidence is priceless', 'Ryan Halvorson', ' Taking the Plunge. Lori Patterson, creator of Boot Camp Challenge™ (BCC) based in St. Peters, Missouri, has been involved in fitness for many years. “I entered the fitness industry 23 years ago, before it was technically an ‘industry,’” she says. “I started as a sales representative for a health club, and teaching group exercise classes was mandatory.” She later joined the U.S. Army and was sent to Kaiserslautern, Germany, which became the starting point for a flourishing fitness career. “It was during my military tour that I was asked to provide a workout program for our battalion during the winter months,” Patterson recalls. “Teaching group exercise to 300 troops at 6:00 AM was definitely a challenge.” \r\n\r\nWhen her tour ended, Patterson returned to school to obtain an advanced degree in mass communications. She worked full-time in the media industry, but still kept a foot in the gym door and managed a group exercise program in her spare time. According to Patterson, she had no idea ', '3,4', 'nutrition/success_stories/coach_images/98_1402984826_before.jpg', NULL, 'nutrition/success_stories/coach_images/98_1402984826_after.jpg', NULL, '1', '2014-06-17 06:00:26');

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

--
-- Table structure for table `th_coach_wp_swiched`
--

CREATE TABLE IF NOT EXISTS `th_coach_wp_swiched` (
  `wps_id` int(11) NOT NULL AUTO_INCREMENT,
  `wp_id_fkx` int(11) NOT NULL,
  `from_coach_id_fkx` int(11) NOT NULL,
  `to_coach_id_fkx` int(11) NOT NULL,
  `wps_date` timestamp NULL DEFAULT CURRENT_TIMESTAMP,
  PRIMARY KEY (`wps_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;

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

--
-- Table structure for table `th_configurations`
--

CREATE TABLE IF NOT EXISTS `th_configurations` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `rgs_id_fkx` int(11) NOT NULL,
  `con_option` varchar(100) NOT NULL,
  `con_value` text NOT NULL,
  PRIMARY KEY (`id`),
  KEY `rgs_id_fkx` (`rgs_id_fkx`)
) ENGINE=InnoDB  DEFAULT CHARSET=latin1 AUTO_INCREMENT=4 ;

--
-- Dumping data for table `th_configurations`
--

INSERT INTO `th_configurations` (`id`, `rgs_id_fkx`, `con_option`, `con_value`) VALUES
(1, 1, 'wt_unit', 'lbs'),
(2, 107, 'wt_unit', 'kg'),
(3, 130, 'wt_unit', 'kg');

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

--
-- Table structure for table `th_device_registration`
--

CREATE TABLE IF NOT EXISTS `th_device_registration` (
  `pk_device_reg_id` int(11) unsigned NOT NULL AUTO_INCREMENT,
  `rgs_id_fkx` int(11) unsigned NOT NULL,
  `device_id` varchar(30) NOT NULL,
  `device_type` varchar(2) NOT NULL COMMENT 'A,I,W',
  `registration_id` text NOT NULL,
  `last_access_time` datetime NOT NULL,
  `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`pk_device_reg_id`),
  KEY `device_id` (`device_id`,`created_at`)
) ENGINE=InnoDB  DEFAULT CHARSET=utf8 AUTO_INCREMENT=13 ;

--
-- Dumping data for table `th_device_registration`
--

INSERT INTO `th_device_registration` (`pk_device_reg_id`, `rgs_id_fkx`, `device_id`, `device_type`, `registration_id`, `last_access_time`, `created_at`) VALUES
(1, 1, '17d04cf60130f73b', 'A', 'dN0KJcyhAQ0:APA91bGcWIVWz1gXnQDARpmodZoh0dlV8TEc2lemy8oDsbLMx0FfV7cGCdNvgTo-2EPNeQa8QNDwX7zvYPFPUSfb038HlX_IFdX5te0OaezxnyN7gXAvKzlGNMfyVBJIb1QtxvBbi4az', '2016-09-02 12:16:25', '2016-09-02 06:46:25'),
(2, 1, '3049c66093a4b288', 'A', 'f5mTMUOsaGI:APA91bGk7MNiL5Nyh5w9Hl1GjVRNkvmbCtx_ONoL9S_-iC68qgu2zXgBtKwnAcAi3_0Gfv1uSO1PRC62vp1P2Hhh3MmVDrc7WjKTDSJDtnvZPZJNnXmCDok4ICU-wzO6HsWYIEO2RXag', '2016-09-13 15:34:37', '2016-09-13 10:04:37'),
(3, 111, '566ec631d3b38e5e', 'A', 'fkNUCcCR9HA:APA91bH6gWql5LCHEHM-Rj0QsR6tWr1nF8f4yi5YJScKydQa8b-fjFx3vS4mdgANbIFLZPyedyAU5AOtrccEpCc5ukZTKmkQkZL7o4y7qEDcpFqL7xzzSVqLHes7L0jWIjccx5U2jw-t', '2016-03-02 17:50:15', '2016-03-02 12:20:15'),
(4, 1, '407d55d6ad26053c', 'A', 'dpKdkU6V-U4:APA91bGdyOhbZukvEFV9RLRDWpSvdSk7PgLMFeYTq2yMvGmH3Gvo6Q2TCa27QBOsNV-6i3sjRqNmUmQtBSYoG0_s4DBCfPvGrG5tuxaRiZWc5efNsSm2uq14WCL237HYWOT_omVfOqap', '2016-04-11 16:35:59', '2016-08-24 04:28:34'),
(5, 115, '94cc1ea85aa7f4e8', 'A', 'e8D6ZAb7XkI:APA91bFx-PXq1lYxVb6C_BxeQh-zPYBGeArjK1436pNhy6TIeOrcfv72fwbr6RNK4Dx25JdaMMqSk7P59_VGg83KVREosrLVWQGmMx_b70eDzmttnvYwaHbo71GHDBHzcVgez0TVHoxQ', '2016-05-23 12:50:35', '2016-05-23 07:20:35'),
(6, 1, 'c9fcbaf756da462a', 'A', 'cB6JDdu5fDA:APA91bH8hdeawp5a6bSd-_0LWHXpMuSo-puxA9evMqRw-xCI6HIEDzQ61WYtc3KvN1A_Yncd4jBQjC_bt1fY5D7DX0xFT5YbBtmp3-t1b07dYKn_egiAdD2SFLWd6IPXRLXuGjrx6MUn', '2016-03-02 17:22:07', '2016-03-02 11:52:07'),
(7, 1, 'add0b290087cfb23', 'A', 'fe2uXbkl_O4:APA91bEdi6BgZt3JhnNKR40rp5CBmMXamkVkcWd5whxvvue7nxZkMOmngHgeLHf5sgNuoNCskQOgifGYUHCTCqjlYCL8LSRbBdXSt2TZTswI5IqlXP0BhvQzm6RNQPZYMRRF8QkDDHtn', '2016-03-05 19:27:51', '2016-03-05 13:57:51'),
(8, 1, '5fa37863a1e18539', 'A', 'dXseqA1fLuc:APA91bH5ljInQvml6heJ4BX_yjGi6uG9ktx5SKb2YHikGWvka-hXFGVshic8CnMICTxcHGJopQZwVGamAEQ0hincsZ-i4WnZkB18CZFQzRA3ODjZ6ogtvjW0DO6XCTM1lmKj3Ak7W5sI', '2016-04-13 11:57:09', '2016-04-21 05:22:18'),
(9, 115, 'a376f7aae8f7ac74', 'A', 'dOfn7Ps6Fco:APA91bGbM5gSMbspHNhfr5PRWGUx_JH63mksrwnBe4RQPb6oe-uGPHcNKtXz9UcxTepXA_L8AABxv9rOtHrtj86EOtI8yvy4Y59cy4VLs29tUCmKCIpfVqGJ6EnyrEGRnxlTAnzC_2AG', '2016-05-23 14:39:38', '2016-05-23 09:09:38'),
(10, 1, 'ca917c697a0aaf0a', 'A', 'f1n5-Qqim_Q:APA91bENG4PF21BwFB5BwnWzu58T9BStb3xiJXQPmCRNKv7i_Hgp1qPeyhiBxRuGpKxBgr_VPhXQuCdcpUTB08ryyFwH96vHRRxzZRqFhBHe6Wly96HQcTEeJnZhBm-Q4XzTmam1amj8', '2016-07-12 18:29:56', '2016-07-12 12:59:56'),
(11, 1, '5e6ba8fdb86702ff', 'A', 'c1aVhZUB59k:APA91bEzXIx_MDe8lgyt4l9lmXSoZv5eXgdrnlztHD5LmuSpfIK1jdPcNg9IE-5mD1bE__uYEtOby9KZVz0-HcPDPLIQPvr5Wmec7-h476pEyLh3xgGx9qxCB14OtUC54va9OYnUiLNl', '2016-07-12 12:48:56', '2016-07-12 07:18:56'),
(12, 111, '3f51b76acafd70ff', 'A', 'dLQUMoOWpRE:APA91bGaF51BPogLSA9iG2jjmQMj0oYdR6QpvK6HHAVNNDS8w65Ix9hNwd3-Ufd8NnxPmTEMHxazpScr12d0UN-OtmV_LmxbWlzjzd7PUlQbQtChimK7kQiE99HfADcbr8TsE9pUd-dx', '2016-09-01 15:49:53', '2016-09-01 10:19:53');

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

--
-- Table structure for table `th_employer_blog`
--

CREATE TABLE IF NOT EXISTS `th_employer_blog` (
  `blog_id` int(11) NOT NULL AUTO_INCREMENT,
  `user_id_fkx` int(11) NOT NULL,
  `user_type` varchar(10) NOT NULL,
  `blog_title` varchar(150) NOT NULL,
  `blog_content` text NOT NULL,
  `blog_image` varchar(100) NOT NULL,
  `blog_tags` varchar(100) NOT NULL,
  `blog_visibility` varchar(5) NOT NULL,
  `blog_users` varchar(2) NOT NULL DEFAULT 'E' COMMENT 'E->Employee, S->Students, B->Employee and Students',
  `blog_comp_id` int(11) NOT NULL,
  `blog_status` varchar(10) NOT NULL DEFAULT 'Active',
  `blog_created` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`blog_id`)
) ENGINE=InnoDB  DEFAULT CHARSET=latin1 AUTO_INCREMENT=7 ;

--
-- Dumping data for table `th_employer_blog`
--

INSERT INTO `th_employer_blog` (`blog_id`, `user_id_fkx`, `user_type`, `blog_title`, `blog_content`, `blog_image`, `blog_tags`, `blog_visibility`, `blog_users`, `blog_comp_id`, `blog_status`, `blog_created`) VALUES
(1, 98, 'WPM', 'Blog post 1 sample', 'Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Nam cursus. Morbi ut mi. Nullam enim leo, egestas id, condimentum at, laoreet mattis, massa. Sed eleifend nonummy diam. Praesent mauris ante, elementum et, bibendum at, posuere sit amet, nibh. Duis tincidunt lectus quis dui viverra vestibulum. Suspendisse vulputate aliquam dui. Nulla elementum dui ut augue. Aliquam vehicula mi at mauris. Maecenas placerat, nisl at consequat rhoncus, sem nunc gravida justo, quis eleifend arcu velit quis lacus. Morbi magna magna, tincidunt a, mattis non, imperdiet vitae, tellus. Sed odio est, auctor ac, sollicitudin in, consequat vitae, orci. Fusce id felis. Vivamus sollicitudin metus eget eros.\r\n\r\nPellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. In posuere felis nec tortor. Pellentesque faucibus. Ut accumsan ultricies elit. Maecenas at justo id velit placerat molestie. Donec dictum lectus non odio. Cras a ante vitae enim iaculis aliquam. Mauris nunc quam, venenatis nec, euismod sit amet, egestas placerat, est. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Cras id elit. Integer quis urna. Ut ante enim, dapibus malesuada, fringilla eu, condimentum quis, tellus. Aenean porttitor eros vel dolor. Donec convallis pede venenatis nibh. Duis quam. Nam eget lacus. Aliquam erat volutpat. Quisque dignissim congue leo.', '123.jpg', '', '', 'E', 32, 'Archived', '2014-05-27 13:00:20'),
(2, 98, 'WPM', 'Blog post 2 sample', 'Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Nam cursus. Morbi ut mi. Nullam enim leo, egestas id, condimentum at, laoreet mattis, massa. Sed eleifend nonummy diam. Praesent mauris ante, elementum et, bibendum at, posuere sit amet, nibh. Duis tincidunt lectus quis dui viverra vestibulum. Suspendisse vulputate aliquam dui. Nulla elementum dui ut augue. Aliquam vehicula mi at mauris. Maecenas placerat, nisl at consequat rhoncus, sem nunc gravida justo, quis eleifend arcu velit quis lacus. Morbi magna magna, tincidunt a, mattis non, imperdiet vitae, tellus. Sed odio est, auctor ac, sollicitudin in, consequat vitae, orci. Fusce id felis. Vivamus sollicitudin metus eget eros.\r\n\r\nPellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. In posuere felis nec tortor. Pellentesque faucibus. Ut accumsan ultricies elit. Maecenas at justo id velit placerat molestie. Donec dictum lectus non odio. Cras a ante vitae enim iaculis aliquam. Mauris nunc quam, venenatis nec, euismod sit amet, egestas placerat, est. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Cras id elit. Integer quis urna. Ut ante enim, dapibus malesuada, fringilla eu, condimentum quis, tellus. Aenean porttitor eros vel dolor. Donec convallis pede venenatis nibh. Duis quam. Nam eget lacus. Aliquam erat volutpat. Quisque dignissim congue leo.', '124.jpg', '4,2', '2', 'E', 32, 'Active', '2014-05-27 05:58:28'),
(3, 98, 'WPM', 'Blog post 3 sample', 'Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Nam cursus. Morbi ut mi. Nullam enim leo, egestas id, condimentum at, laoreet mattis, massa. Sed eleifend nonummy diam. Praesent mauris ante, elementum et, bibendum at, posuere sit amet, nibh. Duis tincidunt lectus quis dui viverra vestibulum. Suspendisse vulputate aliquam dui. Nulla elementum dui ut augue. Aliquam vehicula mi at mauris. Maecenas placerat, nisl at consequat rhoncus, sem nunc gravida justo, quis eleifend arcu velit quis lacus. Morbi magna magna, tincidunt a, mattis non, imperdiet vitae, tellus. Sed odio est, auctor ac, sollicitudin in, consequat vitae, orci. Fusce id felis. Vivamus sollicitudin metus eget eros.\r\n\r\nPellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. In posuere felis nec tortor. Pellentesque faucibus. Ut accumsan ultricies elit. Maecenas at justo id velit placerat molestie. Donec dictum lectus non odio. Cras a ante vitae enim iaculis aliquam. Mauris nunc quam, venenatis nec, euismod sit amet, egestas placerat, est. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Cras id elit. Integer quis urna. Ut ante enim, dapibus malesuada, fringilla eu, condimentum quis, tellus. Aenean porttitor eros vel dolor. Donec convallis pede venenatis nibh. Duis quam. Nam eget lacus. Aliquam erat volutpat. Quisque dignissim congue leo.', '', '1,2,3,4', '2', 'B', 32, 'Active', '2015-01-19 11:55:43'),
(5, 98, 'WPM', 'Blog post 4 sample', 'Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Nam cursus. Morbi ut mi. Nullam enim leo, egestas id, condimentum at, laoreet mattis, massa. Sed eleifend nonummy diam. Praesent mauris ante, elementum et, bibendum at, posuere sit amet, nibh. Duis tincidunt lectus quis dui viverra vestibulum. Suspendisse vulputate aliquam dui. Nulla elementum dui ut augue. Aliquam vehicula mi at mauris. Maecenas placerat, nisl at consequat rhoncus, sem nunc gravida justo, quis eleifend arcu velit quis lacus. Morbi magna magna, tincidunt a, mattis non, imperdiet vitae, tellus. Sed odio est, auctor ac, sollicitudin in, consequat vitae, orci. Fusce id felis. Vivamus sollicitudin metus eget eros.\r\n\r\nPellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. In posuere felis nec tortor. Pellentesque faucibus. Ut accumsan ultricies elit. Maecenas at justo id velit placerat molestie. Donec dictum lectus non odio. Cras a ante vitae enim iaculis aliquam. Mauris nunc quam, venenatis nec, euismod sit amet, egestas placerat, est. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Cras id elit. Integer quis urna. Ut ante enim, dapibus malesuada, fringilla eu, condimentum quis, tellus. Aenean porttitor eros vel dolor. Donec convallis pede venenatis nibh. Duis quam. Nam eget lacus. Aliquam erat volutpat. Quisque dignissim congue leo.', 'blog_92_14011070734923.jpg', '1,3,5,6,7', '2', 'S', 32, 'Active', '2015-01-19 11:53:59'),
(6, 1, 'WLT', 'Blog Sample by WLT', 'quis dui viverra vestibulum. Suspendisse vulputate aliquam dui. Nulla elementum dui ut augue. Aliquam vehicula mi at mauris. Maecenas placerat, nisl at consequat rhoncus, sem nunc gravida justo, quis eleifend arcu velit quis lacus. Morbi magna magna, tincidunt a, mattis non, imperdiet vitae, tellus. Sed odio est, auctor ac, sollicitudin in, consequat vitae, orci. Fusce id felis. Vivamus sollicitudin metus eget eros.\r\n\r\nPellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. In posuere felis nec tortor. Pellentesque faucibus. Ut accumsan ultricies elit. Maecenas at justo id velit placerat molestie. Donec dictum lectus non odio. Cras a ante vitae enim iaculis aliquam. Mauris nunc quam, venenatis nec, euismod sit amet, egestas placerat, est. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Cras id elit. Integer quis urna. Ut ante enim, dapibus malesuada, fringilla eu, condimentum quis, tellus. Aenean porttitor eros vel dolor. Donec convallis pede venenatis nibh. Duis quam. Nam eget lacus. Aliquam erat volutpat. Quisque dignissim congue leo.', 'blog_14013492566039.jpg', '3,4,7', '2', 'E', 32, 'Active', '2014-05-29 12:27:04');

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

--
-- Table structure for table `th_employer_blog_comments`
--

CREATE TABLE IF NOT EXISTS `th_employer_blog_comments` (
  `bc_id` int(11) NOT NULL AUTO_INCREMENT,
  `bc_user_id` int(10) unsigned NOT NULL,
  `bc_user_type` varchar(20) NOT NULL,
  `bc_post_id` int(11) NOT NULL,
  `bc_comment` text NOT NULL,
  `bc_type` varchar(10) NOT NULL DEFAULT 'Comment',
  `bc_created` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  PRIMARY KEY (`bc_id`),
  KEY `bc_post_id` (`bc_post_id`)
) ENGINE=InnoDB  DEFAULT CHARSET=latin1 AUTO_INCREMENT=49 ;

--
-- Dumping data for table `th_employer_blog_comments`
--

INSERT INTO `th_employer_blog_comments` (`bc_id`, `bc_user_id`, `bc_user_type`, `bc_post_id`, `bc_comment`, `bc_type`, `bc_created`) VALUES
(1, 98, 'WPM', 5, 'Ut non libero consectetur adipiscing elit magna. Sed et quam lacus. Fusce condimentum eleifend enim a feugiat. Pellentesque viverra vehicula sem ut volutpat. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut non libero magna. Sed et quam lacus. Fusce condimentum eleifend enim a feugiat. Ut non libero consectetur adipiscing elit magna. Sed et quam lacus. Fusce condimentum eleifend enim a feugiat. Pellentesque viverra vehicula sem ut volutpa', 'Comment', '2014-05-27 08:29:27'),
(2, 98, 'WPM', 1, 'Wlit magna. Sed et quam lacus. Fusce condimentum eleifend enim a feugiat. Pellentesque viverra vehicula sem ut volutpat. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut non libero magna. Sed et quam lacus. Fusce condimentum eleifend enim a feugiat. Ut non libero consectetur adipiscing elit magna. Sed et quam lacus. Fusce condimentum eleifend enim a feugiat. Pellentesq', 'Reply', '2014-05-27 08:29:27'),
(6, 98, 'WPM', 1, 'Test Success.', 'Reply', '2014-05-27 11:56:03'),
(9, 98, 'WPM', 1, 'This is first Comment by me\r\n', 'Comment', '2014-05-27 12:25:54'),
(10, 98, 'WPM', 9, 'bvbg\r\n', 'Reply', '2014-05-27 12:36:13'),
(11, 98, 'WPM', 9, 'hthgh', 'Reply', '2014-05-27 12:36:17'),
(12, 98, 'WPM', 1, 'wesadfsdf', 'Comment', '2014-05-27 12:38:41'),
(13, 98, 'WPM', 12, 'asdad', 'Reply', '2014-05-27 12:40:26'),
(14, 98, 'WPM', 2, 'good\r\n', 'Comment', '2014-05-28 05:01:09'),
(15, 98, 'WPM', 2, 'ok', 'Comment', '2014-05-28 06:38:58'),
(16, 1, 'EMP', 2, 'Ok fine', 'Comment', '2014-05-28 10:10:44'),
(17, 1, 'EMP', 2, 'yes', 'Comment', '2014-05-28 10:11:35'),
(18, 98, 'WPM', 16, 'Then no problem', 'Reply', '2014-05-28 10:30:21'),
(19, 98, 'WPM', 5, 'Sed et quam lacus. Fusce condimentum eleifend enim a feugiat. Pellentesque viverra vehicula sem ut volutpat. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut non libero magna. Sed et quam lacus. Fusce condimentum eleifend enim a feugiat. Ut non libero consectetur adipiscing elit magna. Sed et quam lacus. Fusce condimentum eleifend enim a feugiat.', 'Comment', '2014-05-28 10:57:37'),
(20, 1, 'EMP', 2, 'ok', 'Comment', '2014-05-29 04:24:56'),
(21, 1, 'WLT', 3, 'Test Comment', 'Comment', '2014-05-29 07:07:31'),
(22, 98, 'WPM', 6, 'good', 'Comment', '2014-05-29 07:49:50'),
(23, 1, 'WLT', 22, 'thank', 'Reply', '2014-05-29 07:51:01'),
(24, 1, 'WLT', 6, 'fine', 'Comment', '2014-05-29 07:51:16'),
(25, 1, 'WLT', 5, 'This is my next Comment .', 'Comment', '2014-05-29 13:35:47'),
(26, 98, 'WPM', 25, 'Nice dude', 'Reply', '2014-05-29 13:38:24'),
(27, 1, 'EMP', 5, 'Ut non libero consectetur adipiscing elit magna. Sed et quam lacus. Fusce condimentum eleifend enim a feugiat.', 'Comment', '2014-05-29 13:38:55'),
(28, 98, 'WPM', 27, 'ok Rajwant', 'Reply', '2014-05-29 13:39:11'),
(29, 98, 'WPM', 21, 'tst', 'Reply', '2014-06-04 05:46:28'),
(30, 98, 'WPM', 21, 'test', 'Reply', '2014-06-04 05:51:28'),
(31, 98, 'WPM', 21, 'sdfsdf', 'Reply', '2014-06-04 05:51:33'),
(32, 2, 'WLT', 21, 'sad', 'Reply', '2014-06-04 05:59:11'),
(33, 98, 'WPM', 21, 'ok', 'Reply', '2014-06-04 06:09:32'),
(34, 1, 'EMP', 3, '$(".blog_rep").live(''click'', function() {\r\n        if($(this).hasClass("disabled")){\r\n            return;\r\n        }\r\n        $container=$("#reply_add_model modal-body");\r\n        App.blockUI($container);\r\n        var post_data = $("#form_reply").serialize();\r\n        $.post("ajax/blog.php", post_data, function(res) {\r\n            $.gritter.add({title: ''Blog Post'', text: res});\r\n            App.unblockUI($container);\r\n            $("#reply_add_model").modal(''hide'');\r\n            updateComment();\r\n        });\r\n    });', 'Comment', '2014-06-04 06:19:22'),
(35, 1, 'EMP', 21, 'test', 'Reply', '2014-06-04 06:19:40'),
(36, 98, 'WPM', 21, 'test3', 'Reply', '2014-06-04 06:33:29'),
(37, 1, 'EMP', 21, 'fine', 'Reply', '2014-06-04 06:33:41'),
(38, 2, 'WLT', 21, 'oks', 'Reply', '2014-06-04 06:33:55'),
(39, 98, 'WPM', 1, 'gfhgfhgfh', 'Comment', '2014-06-05 13:23:10'),
(40, 98, 'WPM', 1, 'asdasd', 'Comment', '2014-06-05 13:24:40'),
(41, 98, 'WPM', 1, 'sad', 'Comment', '2014-06-06 04:19:49'),
(42, 98, 'WPM', 2, '', 'Reply', '2014-06-06 05:54:51'),
(43, 2, 'WLT', 22, 'Hello', 'Reply', '2014-06-06 12:06:41'),
(44, 1, 'EMP', 22, 'Yes boss', 'Reply', '2014-06-16 05:47:11'),
(45, 1, 'EMP', 5, 'nece blog\r\n', 'Comment', '2015-01-20 11:33:32'),
(46, 66, 'EMP', 3, 'Nice Thought', 'Comment', '2015-01-23 10:54:46'),
(47, 98, 'WPM', 46, 'fine', 'Reply', '2015-01-23 10:55:29'),
(48, 66, 'EMP', 46, 'ok', 'Reply', '2015-01-23 10:55:47');

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

--
-- Table structure for table `th_employer_blog_tags`
--

CREATE TABLE IF NOT EXISTS `th_employer_blog_tags` (
  `bt_id` int(11) NOT NULL AUTO_INCREMENT,
  `bt_user` int(11) NOT NULL,
  `bt_user_type` varchar(10) NOT NULL,
  `bt_tag` varchar(100) NOT NULL,
  `bt_created` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  PRIMARY KEY (`bt_id`)
) ENGINE=InnoDB  DEFAULT CHARSET=latin1 AUTO_INCREMENT=8 ;

--
-- Dumping data for table `th_employer_blog_tags`
--

INSERT INTO `th_employer_blog_tags` (`bt_id`, `bt_user`, `bt_user_type`, `bt_tag`, `bt_created`) VALUES
(1, 92, 'WPM', 'Health', '2014-05-26 06:28:57'),
(2, 92, 'WPM', 'Blood Pressure', '2014-05-26 06:28:57'),
(3, 0, 'WLT', 'Beuty', '2014-05-26 10:49:17'),
(4, 0, 'WLT', 'Weight', '2014-05-26 10:49:17'),
(5, 0, 'WLT', 'Fitness', '2014-05-26 10:57:30'),
(6, 0, 'WLT', 'Yoga', '2014-05-26 10:57:30'),
(7, 0, 'WLT', 'Tennis', '2014-05-26 12:24:13');

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

--
-- Table structure for table `th_employer_branch`
--

CREATE TABLE IF NOT EXISTS `th_employer_branch` (
  `branch_id` int(11) NOT NULL AUTO_INCREMENT,
  `comp_id` int(11) DEFAULT NULL,
  `branch_code` varchar(30) NOT NULL,
  `comp_street` varchar(100) DEFAULT NULL,
  `comp_zip` int(11) DEFAULT NULL,
  `comp_city` varchar(50) DEFAULT NULL,
  `comp_state` varchar(50) DEFAULT NULL,
  `longi_add` double DEFAULT NULL,
  `lati_add` double DEFAULT NULL,
  `status` varchar(10) NOT NULL DEFAULT 'Active' COMMENT 'Active/Inactive',
  PRIMARY KEY (`branch_id`)
) ENGINE=InnoDB  DEFAULT CHARSET=latin1 AUTO_INCREMENT=53 ;

--
-- Dumping data for table `th_employer_branch`
--

INSERT INTO `th_employer_branch` (`branch_id`, `comp_id`, `branch_code`, `comp_street`, `comp_zip`, `comp_city`, `comp_state`, `longi_add`, `lati_add`, `status`) VALUES
(1, 360, '', '12345', 12345, NULL, NULL, -73.947738, 42.8157562, ''),
(2, 45, '', '12345', 12345, NULL, NULL, -73.947738, 42.8157562, ''),
(3, 341, '', '12345', 4444, NULL, NULL, -68.6102734375, 44.96197710014, ''),
(4, 128, '', '12345', 4444, NULL, NULL, -68.6102734375, 44.96197710014, ''),
(5, 22, '', '12345', 4444, NULL, NULL, -68.6102734375, 44.96197710014, ''),
(6, 38, '', '1234', 4444, NULL, NULL, NULL, NULL, ''),
(7, 296, '', '1234', 4444, NULL, NULL, -68.6102734375, 44.96197710014, ''),
(8, 65, '', '1234', 4444, NULL, NULL, -68.6102734375, 44.96197710014, ''),
(9, 74, '', '1234', 4444, NULL, NULL, -68.6102734375, 44.96197710014, ''),
(10, 296, '', 'dsfsdf', 2345, NULL, NULL, -71.488344726563, 41.600391035617, ''),
(11, 22, '', 'dsfsdf', 2345, NULL, NULL, -71.488344726563, 41.600391035617, ''),
(12, 434, '', 'dsfsdf', 2345, NULL, NULL, -71.488344726563, 41.600391035617, ''),
(13, 22, '', 'asd3545', 12345, NULL, NULL, NULL, NULL, ''),
(14, 223, '', 'asd3545', 12345, NULL, NULL, NULL, NULL, ''),
(15, 223, '', 'dsfsdf', 2345, NULL, NULL, -72.290346679688, 41.361701728581, ''),
(16, 296, '', 'lane1', 12345, NULL, NULL, -73.92, 42.8, ''),
(17, 501, '', 'dsfsdf', 2345, NULL, NULL, -71.559755859376, 41.184175159862, ''),
(18, 0, '', '1234', 12345, NULL, NULL, NULL, NULL, ''),
(19, 504, '', 'Narayan Nagar', 12543, 'MAYBROOK', 'NY', 80.98134759903, 26.86699316741, ''),
(20, 296, '', NULL, NULL, NULL, NULL, NULL, NULL, ''),
(21, 296, '', '501', 501, NULL, NULL, -73.0451085, 40.8153762, ''),
(22, 45, '', '8888', 5001, NULL, NULL, -72.32, 43.65, ''),
(23, 245, '', NULL, NULL, NULL, NULL, -73.0451085, 40.8153762, ''),
(24, 504, 'B2345', 'Elm 103', 12345, 'SCHENECTADY', 'NY', -73.9198283386231, 42.799874046793, ''),
(25, 45, '', '123, Elm', 501, NULL, NULL, -73.0451085, 40.8153762, ''),
(26, 45, '', NULL, NULL, NULL, NULL, -73.0451085, 40.8153762, ''),
(27, 504, '', 'lko', 11111, NULL, NULL, -72.06857421875, 42.276860997849, ''),
(28, 296, '', NULL, NULL, NULL, NULL, -73.92, 42.8, ''),
(29, 296, '', NULL, NULL, NULL, NULL, -73.92, 42.8, ''),
(30, 296, '', NULL, NULL, NULL, NULL, -73.92, 42.8, ''),
(31, 296, '', NULL, NULL, NULL, NULL, -73.92, 42.8, ''),
(32, 296, '', NULL, NULL, NULL, NULL, -73.92, 42.8, ''),
(33, 296, '', NULL, NULL, NULL, NULL, -73.92, 42.8, ''),
(34, 76, '', 'xyz', 12345, NULL, NULL, -73.92, 42.8, ''),
(35, 45, '', 'test city', 1007, NULL, NULL, -72.4, 42.27, ''),
(36, 23, '', 'abc', 12345, NULL, NULL, -73.92, 42.8, ''),
(37, 19, '', 'lko', 12345, NULL, NULL, -73.92, 42.8, ''),
(38, 356, '', 'lko', 12345, NULL, NULL, -73.92, 42.8, ''),
(39, 21, '', 'lko', 12345, NULL, NULL, -73.92, 42.8, ''),
(40, 27, '', 'Lucknow', 12345, NULL, NULL, -73.92, 42.8, ''),
(41, 59, '', 'Lko', 12345, NULL, NULL, -73.92, 42.8, ''),
(42, 504, '', '1234', 4444, NULL, NULL, -68.6102734375, 44.96197710014, ''),
(43, 504, '', 'dsfsdf', 2345, NULL, NULL, -72.125551757813, 41.411157845943, ''),
(44, 504, '', 'narayan', 501, NULL, NULL, -73.0451085, 40.8153762, ''),
(45, 504, '', '12', 12, NULL, NULL, -73.92, 42.8, ''),
(49, 504, '', 'MNO', 12345, 'SCHENECTADY', 'NY', -73.92, 42.8, 'Active'),
(50, 504, 'B09878', 'ABTEST', 13345, 'GREIG', 'NY', -75.31, 43.68, 'Active'),
(51, 215, 'B25656', '12, ABCD', 12543, 'MAYBROOK', 'NY', -74.21, 41.48, 'Active'),
(52, 215, 'B09878', 'ABTEST', 13345, 'GREIG', 'NY', -75.31, 43.68, 'Active');

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

--
-- Table structure for table `th_employer_branch_temp`
--

CREATE TABLE IF NOT EXISTS `th_employer_branch_temp` (
  `branch_id` int(11) NOT NULL AUTO_INCREMENT,
  `comp_id` int(11) DEFAULT NULL,
  `branch_code` varchar(30) NOT NULL,
  `comp_street` varchar(100) DEFAULT NULL,
  `comp_zip` int(11) DEFAULT NULL,
  `comp_city` varchar(50) DEFAULT NULL,
  `comp_state` varchar(50) DEFAULT NULL,
  `longi_add` double DEFAULT NULL,
  `lati_add` double DEFAULT NULL,
  `status` varchar(50) NOT NULL COMMENT 'Active/Inactive',
  PRIMARY KEY (`branch_id`)
) ENGINE=InnoDB  DEFAULT CHARSET=latin1 AUTO_INCREMENT=4 ;

--
-- Dumping data for table `th_employer_branch_temp`
--

INSERT INTO `th_employer_branch_temp` (`branch_id`, `comp_id`, `branch_code`, `comp_street`, `comp_zip`, `comp_city`, `comp_state`, `longi_add`, `lati_add`, `status`) VALUES
(3, 215, 'B1234', 'Test', 12345, 'SCHENECTADY', 'NY', -73.92, 42.8, 'A');

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

--
-- Table structure for table `th_employer_challenges`
--

CREATE TABLE IF NOT EXISTS `th_employer_challenges` (
  `ec_id` int(11) NOT NULL AUTO_INCREMENT,
  `ec_user_id` int(11) NOT NULL,
  `ec_user_type` varchar(10) NOT NULL,
  `ec_comp_id` int(11) NOT NULL,
  `ec_title` varchar(150) NOT NULL,
  `ec_desc` text NOT NULL,
  `ec_users` varchar(2) NOT NULL DEFAULT 'E' COMMENT 'E->Employee, S->Student, B->Both',
  `ec_for_val` int(20) NOT NULL,
  `ec_for_unit` varchar(10) NOT NULL,
  `ec_start_date` date NOT NULL,
  `ec_end_date` date NOT NULL,
  `ec_pstatus` varchar(2) DEFAULT 'U' COMMENT 'P-> Publish, U->Unpublish',
  `ec_created` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  PRIMARY KEY (`ec_id`),
  KEY `ec_comp_id` (`ec_comp_id`)
) ENGINE=InnoDB  DEFAULT CHARSET=latin1 AUTO_INCREMENT=18 ;

--
-- Dumping data for table `th_employer_challenges`
--

INSERT INTO `th_employer_challenges` (`ec_id`, `ec_user_id`, `ec_user_type`, `ec_comp_id`, `ec_title`, `ec_desc`, `ec_users`, `ec_for_val`, `ec_for_unit`, `ec_start_date`, `ec_end_date`, `ec_pstatus`, `ec_created`) VALUES
(1, 98, 'WPM', 32, 'Test', '<p>Summer Fitness Challenge</p>\r\n', 'E', 25, 'Day', '2014-07-09', '2014-08-03', 'P', '2014-07-09 06:35:36'),
(3, 98, 'WPM', 32, 'Test Challenge 2', '<p>Test Challenge 2</p>\r\n', 'E', 10, 'Day', '2014-07-10', '2014-07-20', 'U', '2014-07-09 08:09:18'),
(4, 98, 'WPM', 32, 'Summer Healthy Fitness and Diet', '<p>Summer <span style="color:#800000">Healthy Fitness and Diet </span>Challenge is for whom, who wants to be healthy and fit</p>\r\n', 'E', 4, 'Week', '2014-07-12', '2014-08-09', 'U', '2014-07-10 06:29:40'),
(5, 41, 'PTC', 32, 'Stay Fit and Healthy', '<p>Stay <span style="color:#8B4513">Fit and Healthy</span> Stay Fit and Healthy Stay Fit and Healthy</p>\r\n', 'E', 6, 'Week', '2014-07-11', '2014-08-22', 'P', '2014-07-10 07:09:59'),
(6, 98, 'WLT', 32, 'test', '<p>Test</p>\r\n', 'E', 3, 'Month', '2014-08-20', '2014-11-20', 'U', '2014-08-19 09:00:39'),
(7, 98, 'WPM', 32, 'Test Fitness', '<p>Test</p>\r\n', 'E', 3, 'Week', '2014-08-19', '2014-09-09', 'P', '2014-08-20 07:02:05'),
(8, 1, 'WLT', 32, 'Test and Fitness', '<p>Test</p>\r\n', 'E', 3, 'Month', '2014-08-23', '2014-11-23', 'U', '2014-08-22 07:41:59'),
(9, 41, 'PTC', 32, 'Summer Fitness Challenge 2014', '<p>Summer Fitness Challenge 2014</p>\r\n', 'E', 3, 'Month', '2014-08-26', '2014-11-26', 'U', '2014-08-25 11:37:08'),
(10, 1, 'WLT', 32, 'Test Fitness Challenge', '<p>Test</p>\r\n', 'E', 2, 'Week', '2014-08-26', '2014-09-09', 'U', '2014-08-25 13:12:00'),
(11, 98, 'WPM', 32, 'Wellness Challenge1', '<p>Test</p>\r\n', 'E', 2, 'Month', '2015-01-16', '2015-03-16', 'U', '2015-01-15 04:55:22'),
(12, 98, 'FTC', 32, 'Test1', '<p>Test</p>\r\n', 'E', 2, 'Month', '2015-02-07', '2015-04-07', 'P', '2015-02-06 12:54:49'),
(13, 98, 'WPM', 32, 'Test Challenge for Employee and Students', '<p>Test Challenge for Employee and Students Test Challenge for Employee and Students</p>\r\n', 'B', 2, 'Month', '2015-02-27', '2015-04-27', 'P', '2015-02-26 11:49:33'),
(14, 98, 'FTC', 32, 'Test Fitness Challenge', '<p>Test 2</p>\r\n', 'B', 0, '', '2015-03-17', '2015-04-14', 'U', '2015-03-18 07:18:02'),
(15, 41, 'PTC', 32, 'Test Challenge 1', '<p>Test <span style="color:#DAA520">Challenge 1</span></p>\r\n', 'E', 0, '', '2015-03-22', '2015-08-20', 'U', '2015-03-21 13:16:22'),
(16, 1, 'WLT', 32, 'Employee and Student Wellness Challenge', '<p>Test <span style="color:#A52A2A">Challenge</span></p>\r\n', 'B', 0, '', '2015-03-24', '2015-07-30', 'P', '2015-03-23 06:17:46'),
(17, 98, 'WPM', 32, 'Wellness Challenge 2016', '<p>Wellness Challenge 2016</p>\r\n', 'B', 0, '', '2016-06-21', '2016-10-31', 'P', '2016-06-21 06:04:39');

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

--
-- Table structure for table `th_employer_ch_activities`
--

CREATE TABLE IF NOT EXISTS `th_employer_ch_activities` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `ec_id_fkx` int(11) NOT NULL,
  `ec_cat_id_fkx` int(11) NOT NULL,
  `title` text NOT NULL,
  `instruction` text NOT NULL,
  `sch_type` varchar(2) NOT NULL DEFAULT 'F' COMMENT 'F-> Frequency, C-> Custom',
  `frequency` varchar(25) NOT NULL,
  `reward_point` int(11) NOT NULL DEFAULT '0',
  `status` varchar(10) NOT NULL DEFAULT 'Active',
  `created` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  KEY `user_id_fkx` (`ec_id_fkx`)
) ENGINE=InnoDB  DEFAULT CHARSET=latin1 AUTO_INCREMENT=60 ;

--
-- Dumping data for table `th_employer_ch_activities`
--

INSERT INTO `th_employer_ch_activities` (`id`, `ec_id_fkx`, `ec_cat_id_fkx`, `title`, `instruction`, `sch_type`, `frequency`, `reward_point`, `status`, `created`) VALUES
(1, 1, 1, 'Walk or run outside for 45 min. or more', 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Duis sollicitudin ipsum ac ante fermentum suscipit. In ac augue non purus accumsan lobortis id sed nibh. Nunc egestas hendrerit ipsum, et porttitor augue volutpat non. Aliquam erat volutpat. Vestibulum scelerisque lobortis pulvinar. Aenean hendrerit risus neque, eget tincidunt leo. Vestibulum est tortor, commodo nec cursus nec, vestibulum vel nibh. Morbi elit magna, ornare placerat euismod semper, dignissim vel odio. Phasellus elementum quam eu ipsum euismod pretium.', 'F', 'daily', 20, 'Active', '2014-07-09 07:43:34'),
(2, 1, 2, 'did 20 push-ups, 20 lunges and 20 squats	', '', 'F', 'bidaily', 30, 'Active', '2014-07-09 07:43:34'),
(3, 1, 1, 'Did 20 push-ups, 20 lunges and 20 squats', '', 'F', 'daily', 10, 'Active', '2014-07-09 08:26:11'),
(4, 1, 1, 'Stretched for more than five minutes', '', 'F', 'daily', 25, 'Active', '2014-07-09 08:26:11'),
(5, 1, 1, 'Did 25+ crunches and 50Jumping Jacks', '', 'F', 'bidaily', 20, 'Active', '2014-07-09 08:27:11'),
(6, 1, 2, 'Ate breakfast with a serving of fruit', '', 'F', 'bidaily', 10, 'Active', '2014-07-09 08:28:19'),
(7, 1, 2, 'Cookout with lean meats', '', 'F', 'daily', 15, 'Active', '2014-07-09 08:28:41'),
(8, 1, 2, 'Drank 64 oz. or more of water', '', 'F', 'bidaily', 20, 'Active', '2014-07-09 08:29:03'),
(9, 1, 2, 'Ate two or more servings of veggies', '', 'F', 'daily', 30, 'Active', '2014-07-09 08:29:24'),
(10, 1, 2, 'Try a new summertime recipe', '', 'F', 'bidaily', 10, 'Active', '2014-07-09 08:30:06'),
(11, 1, 0, 'personal safety i.e. sunscreen, seat belts, Bike helmets, etc.\r\n', '', 'F', 'daily', 20, 'Active', '2014-07-09 08:32:17'),
(15, 1, 2, 'Test2', 'Testing11', 'F', 'weekdays', 25, 'Active', '2014-07-10 06:22:59'),
(16, 1, 1, 'Nordic Walking for 15 Min.', 'Walk at early morning', 'F', 'daily', 20, 'Active', '2014-07-10 06:26:45'),
(17, 1, 1, 'Stair Climbing upto 15 mins', 'You can take rest after 8 min.', 'F', 'bidaily', 25, 'Active', '2014-07-10 06:27:46'),
(18, 5, 1, 'Walk outside for 30 min.', 'Do it in early Morning', 'F', 'bidaily', 25, 'Active', '2014-07-10 07:11:31'),
(19, 7, 1, 'Test Activity', 'test', 'F', 'daily', 2, 'Active', '2014-08-20 11:38:50'),
(22, 7, 1, 'Walk or run outside for 45 min. or more', 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Duis sollicitudin ipsum ac ante fermentum suscipit. In ac augue non purus accumsan lobortis id sed nibh. Nunc egestas hendrerit ipsum, et porttitor augue volutpat non. Aliquam erat volutpat. Vestibulum scelerisque lobortis pulvinar. Aenean hendrerit risus neque, eget tincidunt leo. Vestibulum est tortor, commodo nec cursus nec, vestibulum vel nibh. Morbi elit magna, ornare placerat euismod semper, dignissim vel odio. Phasellus elementum quam eu ipsum euismod pretium.', 'F', 'daily', 20, 'Active', '2014-08-25 10:02:08'),
(23, 7, 1, 'Did 25+ crunches and 50Jumping Jacks', '', 'F', 'bidaily', 20, 'Active', '2014-08-25 10:02:08'),
(24, 7, 1, 'Nordic Walking for 15 Min.', 'Walk at early morning', 'F', 'daily', 20, 'Active', '2014-08-25 10:02:08'),
(25, 7, 1, 'Stair Climbing upto 15 mins', 'You can take rest after 8 min.', 'F', 'bidaily', 25, 'Active', '2014-08-25 10:02:08'),
(26, 8, 1, 'Walk or run outside for 45 min. or more', 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Duis sollicitudin ipsum ac ante fermentum suscipit. In ac augue non purus accumsan lobortis id sed nibh. Nunc egestas hendrerit ipsum, et porttitor augue volutpat non. Aliquam erat volutpat. Vestibulum scelerisque lobortis pulvinar. Aenean hendrerit risus neque, eget tincidunt leo. Vestibulum est tortor, commodo nec cursus nec, vestibulum vel nibh. Morbi elit magna, ornare placerat euismod semper, dignissim vel odio. Phasellus elementum quam eu ipsum euismod pretium.', 'F', 'daily', 20, 'Active', '2014-08-25 11:35:54'),
(27, 8, 1, 'Did 20 push-ups, 20 lunges and 20 squats', '', 'F', 'daily', 10, 'Active', '2014-08-25 11:35:54'),
(28, 8, 1, 'Stretched for more than five minutes', '', 'F', 'daily', 25, 'Active', '2014-08-25 11:35:54'),
(29, 8, 1, 'Did 25+ crunches and 50Jumping Jacks', '', 'F', 'bidaily', 20, 'Active', '2014-08-25 11:35:54'),
(30, 8, 1, 'Nordic Walking for 15 Min.', 'Walk at early morning', 'F', 'daily', 20, 'Active', '2014-08-25 11:35:54'),
(31, 8, 1, 'Stair Climbing upto 15 mins', 'You can take rest after 8 min.', 'F', 'bidaily', 25, 'Active', '2014-08-25 11:35:54'),
(32, 9, 2, 'did 20 push-ups, 20 lunges and 20 squats	', '', 'F', 'bidaily', 30, 'Active', '2014-08-25 11:37:24'),
(33, 9, 2, 'Ate breakfast with a serving of fruit', '', 'F', 'bidaily', 10, 'Active', '2014-08-25 11:37:24'),
(34, 9, 2, 'Cookout with lean meats', '', 'F', 'daily', 15, 'Active', '2014-08-25 11:37:24'),
(35, 9, 2, 'Drank 64 oz. or more of water', '', 'F', 'bidaily', 20, 'Active', '2014-08-25 11:37:24'),
(36, 9, 2, 'Ate two or more servings of veggies', '', 'F', 'daily', 30, 'Active', '2014-08-25 11:37:24'),
(37, 9, 2, 'Try a new summertime recipe', '', 'F', 'bidaily', 10, 'Active', '2014-08-25 11:37:24'),
(38, 9, 2, 'Test2', 'Testing11', 'F', 'weekdays', 25, 'Active', '2014-08-25 11:37:24'),
(39, 13, 1, 'Walk outside for 30 min.', 'Do it in early Morning', 'F', 'bidaily', 25, 'Active', '2015-02-27 08:36:58'),
(40, 12, 1, 'Test Activity Custom Dates', '', 'C', '', 15, 'Active', '2015-03-20 10:02:00'),
(41, 12, 2, 'Custom Activity Date 2', '', 'C', '', 10, 'Active', '2015-03-20 10:05:44'),
(42, 12, 2, 'Activity 3', '', 'F', 'tts', 10, 'Active', '2015-03-21 11:39:02'),
(43, 15, 1, 'Bassel Activity1', '', 'C', '', 20, 'Active', '2015-03-23 05:07:32'),
(45, 16, 1, 'Activity 1 By WLT', '', 'C', '', 10, 'Active', '2015-03-23 07:51:38'),
(46, 16, 1, 'WLT Activity 2', '', 'C', '', 10, 'Active', '2015-03-24 05:32:45'),
(47, 12, 1, 'WPM Activity 3', '', 'C', '', 20, 'Active', '2015-03-24 07:03:29'),
(48, 17, 1, 'Walk or run outside for 45 min. or more', 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Duis sollicitudin ipsum ac ante fermentum suscipit. In ac augue non purus accumsan lobortis id sed nibh. Nunc egestas hendrerit ipsum, et porttitor augue volutpat non. Aliquam erat volutpat. Vestibulum scelerisque lobortis pulvinar. Aenean hendrerit risus neque, eget tincidunt leo. Vestibulum est tortor, commodo nec cursus nec, vestibulum vel nibh. Morbi elit magna, ornare placerat euismod semper, dignissim vel odio. Phasellus elementum quam eu ipsum euismod pretium.', 'F', 'daily', 20, 'Active', '2016-06-21 06:05:10'),
(49, 17, 1, 'Did 20 push-ups, 20 lunges and 20 squats', '', 'F', 'daily', 10, 'Active', '2016-06-21 06:05:10'),
(50, 17, 1, 'Stretched for more than five minutes', '', 'F', 'daily', 25, 'Active', '2016-06-21 06:05:10'),
(51, 17, 1, 'Did 25+ crunches and 50Jumping Jacks', '', 'F', 'bidaily', 20, 'Active', '2016-06-21 06:05:10'),
(52, 17, 1, 'Nordic Walking for 15 Min.', 'Walk at early morning', 'F', 'daily', 20, 'Active', '2016-06-21 06:05:10'),
(53, 17, 1, 'Stair Climbing upto 15 mins', 'You can take rest after 8 min.', 'F', 'bidaily', 25, 'Active', '2016-06-21 06:05:10'),
(54, 17, 2, 'Ate breakfast with a serving of fruit', '', 'F', 'bidaily', 10, 'Active', '2016-06-21 06:05:29'),
(55, 17, 2, 'Cookout with lean meats', '', 'F', 'daily', 15, 'Active', '2016-06-21 06:05:29'),
(56, 17, 2, 'Drank 64 oz. or more of water', '', 'F', 'bidaily', 20, 'Active', '2016-06-21 06:05:29'),
(57, 17, 2, 'Ate two or more servings of veggies', '', 'F', 'daily', 30, 'Active', '2016-06-21 06:05:29'),
(58, 17, 2, 'Try a new summertime recipe', '', 'F', 'bidaily', 10, 'Active', '2016-06-21 06:05:29'),
(59, 17, 2, 'Test2', 'Testing11', 'F', 'weekdays', 25, 'Active', '2016-06-21 06:05:29');

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

--
-- Table structure for table `th_employer_ch_activities_data`
--

CREATE TABLE IF NOT EXISTS `th_employer_ch_activities_data` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `ec_id_fkx` int(11) NOT NULL,
  `ec_act_id_fkx` int(11) NOT NULL,
  `ec_cat_id_fkx` int(11) NOT NULL,
  `rgs_id_fkx` int(10) unsigned NOT NULL,
  `due_date` date NOT NULL,
  `recording_status` varchar(4) NOT NULL COMMENT 'Yes or No',
  `recording_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  KEY `user_id_fkx` (`ec_act_id_fkx`)
) ENGINE=InnoDB  DEFAULT CHARSET=latin1 AUTO_INCREMENT=65 ;

--
-- Dumping data for table `th_employer_ch_activities_data`
--

INSERT INTO `th_employer_ch_activities_data` (`id`, `ec_id_fkx`, `ec_act_id_fkx`, `ec_cat_id_fkx`, `rgs_id_fkx`, `due_date`, `recording_status`, `recording_date`) VALUES
(1, 1, 2, 1, 1, '2014-07-09', 'Yes', '2014-07-09 11:59:01'),
(2, 1, 2, 1, 15, '2014-07-09', 'Yes', '2014-07-09 11:59:01'),
(3, 1, 3, 1, 1, '2014-07-10', 'Yes', '2014-07-10 05:57:46'),
(4, 1, 3, 1, 81, '2014-07-10', 'Yes', '2014-07-10 05:57:46'),
(5, 1, 4, 1, 1, '2014-07-10', 'No', '2014-07-10 05:58:45'),
(6, 1, 5, 1, 81, '2014-07-10', 'Yes', '2014-07-10 05:58:45'),
(7, 1, 3, 1, 1, '2014-07-09', 'No', '2014-07-10 05:59:05'),
(8, 1, 1, 1, 81, '2014-07-09', 'Yes', '2014-07-10 05:59:05'),
(9, 1, 3, 1, 1, '2014-07-09', 'No', '2014-07-10 06:03:03'),
(10, 1, 1, 1, 81, '2014-07-09', 'Yes', '2014-07-10 06:03:03'),
(11, 1, 3, 1, 1, '2014-07-08', 'No', '2014-07-10 06:03:57'),
(12, 1, 1, 1, 81, '2014-07-08', 'Yes', '2014-07-10 06:03:57'),
(13, 1, 1, 1, 1, '2014-07-12', 'No', '2014-07-12 07:25:55'),
(14, 1, 16, 1, 1, '2014-07-12', 'Yes', '2014-07-12 07:43:08'),
(15, 1, 7, 2, 1, '2014-07-12', 'Yes', '2014-07-12 07:51:34'),
(16, 1, 9, 2, 1, '2014-07-12', 'Yes', '2014-07-12 07:58:36'),
(17, 1, 4, 1, 1, '2014-07-12', 'Yes', '2014-07-12 07:58:45'),
(18, 1, 3, 1, 1, '2014-07-12', 'Yes', '2014-07-12 07:58:55'),
(19, 0, 0, 0, 1, '0000-00-00', '', '2014-07-12 13:05:25'),
(20, 0, 0, 0, 1, '0000-00-00', '', '2014-07-12 13:06:20'),
(21, 0, 0, 0, 1, '2014-07-09', 'Yes', '2014-07-12 13:12:58'),
(22, 1, 1, 1, 1, '2014-07-09', 'No', '2014-07-12 13:14:18'),
(23, 1, 1, 1, 1, '2014-07-11', 'Yes', '2014-07-12 13:16:58'),
(24, 1, 1, 1, 1, '2014-07-10', 'No', '2014-07-12 13:17:11'),
(25, 1, 11, 0, 1, '2014-07-10', 'Yes', '2014-07-12 13:19:36'),
(26, 1, 4, 1, 1, '2014-07-11', 'Yes', '2014-07-12 13:20:27'),
(27, 1, 16, 1, 1, '2014-07-11', 'No', '2014-07-12 13:20:55'),
(28, 1, 4, 1, 1, '2014-07-09', 'Yes', '2014-07-12 13:21:09'),
(29, 1, 5, 1, 1, '2014-07-09', 'No', '2014-07-12 13:21:15'),
(30, 1, 3, 1, 1, '2014-07-13', 'Yes', '2014-07-14 04:17:17'),
(31, 1, 4, 1, 1, '2014-07-14', 'Yes', '2014-07-14 04:19:38'),
(32, 1, 5, 1, 1, '2014-07-13', 'Yes', '2014-07-14 04:37:07'),
(33, 1, 1, 1, 1, '2014-07-14', 'Yes', '2014-07-14 04:43:12'),
(34, 1, 15, 2, 1, '2014-07-09', 'Yes', '2014-07-15 06:28:03'),
(35, 1, 9, 2, 1, '2014-07-14', 'Yes', '2014-07-15 06:28:05'),
(36, 1, 8, 2, 1, '2014-07-15', 'Yes', '2014-07-15 06:28:09'),
(37, 1, 11, 0, 1, '2014-07-15', 'Yes', '2014-07-15 06:28:11'),
(38, 1, 10, 2, 1, '2014-07-15', 'Yes', '2014-07-15 06:28:13'),
(39, 1, 9, 2, 1, '2014-07-11', 'Yes', '2014-07-15 06:28:15'),
(40, 1, 8, 2, 1, '2014-07-09', 'Yes', '2014-07-15 06:28:18'),
(41, 1, 3, 1, 1, '2014-07-16', 'Yes', '2014-07-22 12:43:13'),
(42, 1, 1, 1, 1, '2014-07-22', 'No', '2014-07-22 12:44:14'),
(43, 1, 3, 1, 1, '2014-07-22', 'Yes', '2014-07-22 12:48:44'),
(44, 1, 1, 1, 55, '2014-07-28', 'Yes', '2014-07-28 06:02:55'),
(45, 1, 1, 1, 1, '2014-07-28', 'Yes', '2014-07-28 07:44:50'),
(46, 1, 3, 1, 1, '2014-07-28', 'Yes', '2014-07-28 07:44:54'),
(47, 1, 4, 1, 1, '2014-07-28', 'Yes', '2014-07-28 07:44:56'),
(48, 1, 16, 1, 1, '2014-07-28', 'Yes', '2014-07-28 07:45:06'),
(49, 1, 7, 2, 1, '2014-07-28', 'Yes', '2014-07-28 12:24:18'),
(50, 7, 19, 1, 1, '2014-08-23', 'Yes', '2014-08-23 05:57:41'),
(51, 13, 39, 1, 1, '2015-02-27', 'No', '2015-02-27 10:01:35'),
(52, 13, 39, 1, 1, '2015-03-09', 'Yes', '2015-03-09 11:30:26'),
(53, 13, 39, 1, 1, '2015-03-01', 'Yes', '2015-03-09 11:30:36'),
(54, 13, 39, 1, 1, '2015-03-03', 'No', '2015-03-09 11:31:04'),
(55, 16, 45, 1, 1, '2015-03-24', 'Yes', '2015-03-24 12:34:18'),
(56, 16, 45, 1, 1, '2015-03-25', 'Yes', '2015-04-11 13:32:24'),
(57, 16, 45, 1, 1, '2015-03-27', 'Yes', '2015-04-11 13:32:28'),
(58, 16, 46, 1, 1, '2015-03-26', 'Yes', '2015-04-11 13:32:31'),
(59, 16, 46, 1, 1, '2015-03-27', 'Yes', '2015-04-11 13:32:32'),
(60, 16, 46, 1, 1, '2015-03-28', 'Yes', '2015-04-11 13:32:33'),
(61, 16, 46, 1, 1, '2015-03-30', 'Yes', '2015-04-11 13:32:38'),
(62, 16, 46, 1, 1, '2015-04-01', 'Yes', '2015-04-11 13:32:49'),
(63, 16, 46, 1, 1, '2015-04-02', 'Yes', '2015-04-11 13:32:50'),
(64, 17, 48, 1, 1, '2016-06-21', 'Yes', '2016-06-21 10:35:22');

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

--
-- Table structure for table `th_employer_ch_categories`
--

CREATE TABLE IF NOT EXISTS `th_employer_ch_categories` (
  `ec_cat_id` int(11) NOT NULL AUTO_INCREMENT,
  `ec_cat_name` varchar(50) NOT NULL,
  `comp_id_fkx` int(11) NOT NULL,
  `created` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  PRIMARY KEY (`ec_cat_id`)
) ENGINE=InnoDB  DEFAULT CHARSET=latin1 AUTO_INCREMENT=5 ;

--
-- Dumping data for table `th_employer_ch_categories`
--

INSERT INTO `th_employer_ch_categories` (`ec_cat_id`, `ec_cat_name`, `comp_id_fkx`, `created`) VALUES
(1, 'Exercise', 32, '2014-07-09 08:21:57'),
(2, 'Nutrition/Wellness', 32, '2014-07-09 08:21:57'),
(3, 'Test', 32, '2014-07-10 05:13:23'),
(4, 'Test2', 32, '2014-07-10 05:24:41');

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

--
-- Table structure for table `th_employer_ch_join`
--

CREATE TABLE IF NOT EXISTS `th_employer_ch_join` (
  `chj_id` int(11) NOT NULL AUTO_INCREMENT,
  `rgs_id_fkx` int(10) unsigned NOT NULL,
  `ec_id_fkx` int(11) NOT NULL,
  `chj_emp_code` varchar(30) NOT NULL,
  `chj_department` int(11) NOT NULL,
  `chj_branch` int(11) NOT NULL,
  `chj_role` int(11) NOT NULL,
  `chj_schedule` int(11) NOT NULL,
  `chj_created` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  PRIMARY KEY (`chj_id`)
) ENGINE=InnoDB  DEFAULT CHARSET=latin1 AUTO_INCREMENT=8 ;

--
-- Dumping data for table `th_employer_ch_join`
--

INSERT INTO `th_employer_ch_join` (`chj_id`, `rgs_id_fkx`, `ec_id_fkx`, `chj_emp_code`, `chj_department`, `chj_branch`, `chj_role`, `chj_schedule`, `chj_created`) VALUES
(1, 1, 1, '4258', 0, 50, 3, 5, '2014-07-11 11:03:05'),
(2, 55, 1, '123456', 0, 49, 3, 3, '2014-07-28 06:01:58'),
(3, 81, 1, '534', 0, 49, 3, 7, '2014-07-28 07:20:00'),
(4, 1, 7, '4258', 2, 50, 2, 2, '2014-08-23 05:50:41'),
(5, 1, 13, '123456', 2, 50, 2, 2, '2015-02-27 08:37:47'),
(6, 1, 16, '123456', 2, 50, 2, 2, '2015-03-25 08:51:28'),
(7, 1, 17, '123456', 2, 50, 3, 4, '2016-06-21 06:15:08');

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

--
-- Table structure for table `th_employer_coaches`
--

CREATE TABLE IF NOT EXISTS `th_employer_coaches` (
  `ec_id` int(11) NOT NULL AUTO_INCREMENT,
  `coach_id_fkx` int(11) NOT NULL,
  `user_id_fkx` int(11) NOT NULL,
  `reg_date` timestamp NULL DEFAULT CURRENT_TIMESTAMP,
  `coach_status` varchar(10) DEFAULT 'Active' COMMENT 'Active,Inactive',
  `connect_request` varchar(10) NOT NULL DEFAULT 'P' COMMENT 'P->Pending, A->Accept, L->Leave, D->Deny',
  `connect_by` varchar(10) NOT NULL DEFAULT 'Coach' COMMENT 'Coach or Employer',
  `connect_type` varchar(4) DEFAULT 'PT',
  `students` tinyint(4) NOT NULL DEFAULT '0' COMMENT '1-> Manage Students',
  PRIMARY KEY (`ec_id`)
) ENGINE=InnoDB  DEFAULT CHARSET=latin1 AUTO_INCREMENT=40 ;

--
-- Dumping data for table `th_employer_coaches`
--

INSERT INTO `th_employer_coaches` (`ec_id`, `coach_id_fkx`, `user_id_fkx`, `reg_date`, `coach_status`, `connect_request`, `connect_by`, `connect_type`, `students`) VALUES
(15, 60, 15, '2013-05-30 11:52:41', 'Active', 'A', 'Coach', 'PT', 0),
(16, 41, 32, '2013-06-05 09:14:05', 'Active', 'A', 'Coach', 'PT', 1),
(17, 67, 32, '2013-06-05 09:14:06', 'Active', 'A', 'Coach', 'PT', 1),
(18, 87, 15, '2013-07-12 04:45:25', 'Active', 'A', 'Coach', 'PT', 0),
(19, 41, 15, '2013-07-12 06:58:52', 'Active', 'A', 'Coach', 'PT', 0),
(20, 67, 15, '2013-07-12 06:58:54', 'Active', 'A', 'Coach', 'PT', 0),
(21, 70, 6, '2013-07-16 06:40:49', 'Active', 'A', 'Coach', 'PT', 0),
(30, 41, 68, '2014-02-07 06:27:36', 'Active', 'P', 'Coach', 'PT', 0),
(34, 60, 32, '2014-05-26 06:55:49', 'Inactive', 'A', 'Employer', 'PT', 0),
(35, 98, 32, '2014-05-26 11:45:30', 'Active', 'A', 'Employer', 'FT', 1),
(36, 71, 32, '2014-06-05 06:55:26', 'Active', 'A', 'Employer', 'PT', 1),
(37, 72, 32, '2014-06-10 05:42:23', 'Active', 'A', 'Employer', 'PT', 0),
(38, 99, 32, '2014-06-10 10:40:53', 'Inactive', 'A', 'Employer', 'PT', 0),
(39, 0, 32, '2014-06-12 11:16:33', 'Active', 'A', 'Employer', 'PT', 0);

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

--
-- Table structure for table `th_employer_coach_log`
--

CREATE TABLE IF NOT EXISTS `th_employer_coach_log` (
  `ecl_id` int(11) NOT NULL AUTO_INCREMENT,
  `coach_id_fkx` int(11) NOT NULL,
  `rgs_id_fkx` int(10) unsigned NOT NULL,
  `user_id_fkx` int(11) NOT NULL COMMENT 'Employer''s user_id from tc_users',
  `wp_data` text NOT NULL,
  `transfer_status` varchar(4) DEFAULT 'NO',
  `ecl_date` timestamp NULL DEFAULT CURRENT_TIMESTAMP,
  PRIMARY KEY (`ecl_id`)
) ENGINE=InnoDB  DEFAULT CHARSET=latin1 AUTO_INCREMENT=6 ;

--
-- Dumping data for table `th_employer_coach_log`
--

INSERT INTO `th_employer_coach_log` (`ecl_id`, `coach_id_fkx`, `rgs_id_fkx`, `user_id_fkx`, `wp_data`, `transfer_status`, `ecl_date`) VALUES
(1, 41, 9, 32, '', 'NO', '2014-06-12 08:37:53'),
(2, 41, 1, 32, '3', 'NO', '2014-06-12 08:37:53'),
(3, 41, 7, 32, '', 'YES', '2014-06-12 08:37:53'),
(4, 41, 10, 32, '17', 'NO', '2014-06-12 08:37:53'),
(5, 41, 15, 32, '', 'NO', '2014-06-12 08:37:53');

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

--
-- Table structure for table `th_employer_departments`
--

CREATE TABLE IF NOT EXISTS `th_employer_departments` (
  `dept_id` int(11) NOT NULL AUTO_INCREMENT,
  `dept_name` varchar(50) NOT NULL,
  `dept_type` varchar(2) NOT NULL DEFAULT 'O' COMMENT 'O->Official, A-> Academic',
  `emp_id` int(11) NOT NULL COMMENT 'user_id_fkx from th_users Table',
  `created` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  PRIMARY KEY (`dept_id`)
) ENGINE=InnoDB  DEFAULT CHARSET=latin1 AUTO_INCREMENT=14 ;

--
-- Dumping data for table `th_employer_departments`
--

INSERT INTO `th_employer_departments` (`dept_id`, `dept_name`, `dept_type`, `emp_id`, `created`) VALUES
(1, 'HR', 'O', 504, '2014-07-12 12:57:08'),
(2, 'Sales', 'O', 504, '2014-07-12 12:57:08'),
(6, 'Test', 'O', 504, '2014-07-14 05:37:14'),
(8, 'Accounts', 'O', 504, '2014-07-14 05:49:16'),
(11, 'IT', 'O', 504, '2014-07-14 08:46:03'),
(12, 'Physics', 'A', 504, '2015-01-22 10:21:01'),
(13, 'IT and Computer', 'A', 504, '2015-01-27 08:29:36');

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

--
-- Table structure for table `th_employer_fc_files`
--

CREATE TABLE IF NOT EXISTS `th_employer_fc_files` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `fc_id` int(11) NOT NULL,
  `filename` varchar(150) NOT NULL,
  `filepath` varchar(150) NOT NULL,
  `cerated` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  KEY `fc_id` (`fc_id`)
) ENGINE=InnoDB  DEFAULT CHARSET=latin1 AUTO_INCREMENT=11 ;

--
-- Dumping data for table `th_employer_fc_files`
--

INSERT INTO `th_employer_fc_files` (`id`, `fc_id`, `filename`, `filepath`, `cerated`) VALUES
(5, 8, 'organisational Metrics.docx', 'fc_8_14086951034063.docx', '2014-08-22 08:11:43'),
(6, 5, 'A Do-Anywhere, Full-Body Resistance Band Workout _ Greatist.pdf', 'fc_5_14086980728933.pdf', '2014-08-22 09:01:12'),
(7, 5, '9823-2-sph.jpg', 'fc_5_14086981054233.jpg', '2014-08-22 09:01:45'),
(8, 6, '9823-3-b.jpg', 'fc_6_14087079709413.jpg', '2014-08-22 11:46:10'),
(9, 6, '9823-2-sph.jpg', 'fc_6_14087082910653.jpg', '2014-08-22 11:51:31'),
(10, 6, '9823-2-sph.jpg', 'fc_6_14087083853263.jpg', '2014-08-22 11:53:05');

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

--
-- Table structure for table `th_employer_hccost`
--

CREATE TABLE IF NOT EXISTS `th_employer_hccost` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `user_id_fkx` int(11) NOT NULL,
  `year` varchar(10) NOT NULL,
  `avg_compensation` double NOT NULL,
  `ttl_compensation` double NOT NULL,
  `medical` double NOT NULL,
  `pharmaceutical` double NOT NULL,
  `utilization` double NOT NULL,
  `disability` double NOT NULL,
  `workers_compensation` double NOT NULL,
  `health_care` double NOT NULL,
  `presenteeism_rate` double NOT NULL,
  `unproductive_days` int(11) NOT NULL,
  `presenteeism_cost` double NOT NULL,
  `absenteeism_rate` double NOT NULL,
  `absence_days` int(11) NOT NULL,
  `absenteeism_cost` double NOT NULL,
  `productivity` double NOT NULL,
  `tulasi` double NOT NULL,
  `created` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  KEY `id` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;

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

--
-- Table structure for table `th_employer_metric`
--

CREATE TABLE IF NOT EXISTS `th_employer_metric` (
  `met_id` int(11) NOT NULL AUTO_INCREMENT,
  `met_wp_id` int(11) NOT NULL,
  `met_type` varchar(10) NOT NULL,
  `met_goal` varchar(200) NOT NULL,
  `met_title` varchar(250) NOT NULL,
  `classification` varchar(4) NOT NULL DEFAULT 'QN' COMMENT 'QN->Quantitative, QL-> Qualitative',
  `met_from` varchar(100) NOT NULL DEFAULT 'CWP',
  `met_desc` text NOT NULL,
  `met_target` text NOT NULL,
  `met_unit` varchar(50) NOT NULL,
  `met_start` date NOT NULL,
  `met_end` date NOT NULL,
  `met_end_time` time NOT NULL,
  `sch_type` varchar(4) NOT NULL DEFAULT 'F' COMMENT 'F-> Frequency, C->Custom',
  `met_frequency` varchar(50) NOT NULL,
  `met_for` varchar(50) NOT NULL,
  `met_for_unit` varchar(50) NOT NULL,
  `met_rem_status` varchar(2) NOT NULL,
  `met_rem_time` time NOT NULL,
  `met_rem_before` varchar(3) NOT NULL,
  `met_share` text NOT NULL,
  `met_status` varchar(10) NOT NULL,
  `met_pstatus` varchar(10) NOT NULL DEFAULT '0',
  `met_created` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  PRIMARY KEY (`met_id`),
  KEY `met_wp_id` (`met_wp_id`)
) ENGINE=InnoDB  DEFAULT CHARSET=latin1 AUTO_INCREMENT=38 ;

--
-- Dumping data for table `th_employer_metric`
--

INSERT INTO `th_employer_metric` (`met_id`, `met_wp_id`, `met_type`, `met_goal`, `met_title`, `classification`, `met_from`, `met_desc`, `met_target`, `met_unit`, `met_start`, `met_end`, `met_end_time`, `sch_type`, `met_frequency`, `met_for`, `met_for_unit`, `met_rem_status`, `met_rem_time`, `met_rem_before`, `met_share`, `met_status`, `met_pstatus`, `met_created`) VALUES
(2, 2, 'hra', 'HRA Metric 2', 'Lerem Ipsum Doller Sit Amit.', 'QN', 'CWP', 'test', '4', 'times', '2014-06-02', '2014-07-02', '00:00:00', 'F', 'daily', '1', 'Month', '', '00:00:00', '', '2', 'Active', '0', '2014-06-02 08:09:07'),
(3, 2, 'hra', 'Make healthy employee', 'Lerem Ipsum Doller Sit Amit.', 'QN', 'CWP', 'Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.', '4', 'times', '2014-06-02', '2014-08-02', '00:00:00', 'F', 'daily', '2', 'Month', '', '00:00:00', '', '1,2', 'Active', '1', '2014-06-03 10:24:31'),
(5, 2, 'tulasi', 'Tulasi Metric 1', 'Lerem Ipsum Doller Sit Amit.', 'QN', 'CWP', 'test', '4', 'times', '2014-06-03', '2014-06-26', '00:00:00', 'F', 'daily', '23', 'Day', '', '00:00:00', '', '2', 'Active', '0', '2014-06-03 12:31:39'),
(6, 2, 'hw', 'test', 'Lerem Ipsum Doller Sit Amit.', 'QN', 'CWP', 'sdgf', '4', 'times', '2014-06-17', '2014-10-17', '00:00:00', 'F', 'daily', '4', 'Month', '', '00:00:00', '', '1,2', 'Active', '0', '2014-06-07 12:49:56'),
(7, 3, 'hra', 'Meeting with Diabetes Expert', 'Lerem Ipsum Doller Sit Amit.', 'QN', 'CWP', 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Curabitur bibendum ornare dolor, quis ullamcorper ligula sodales at. Nulla tellus elit, varius non commodo eget, mattis vel eros. In sed ornare nulla.', '4', 'times', '2014-06-25', '2014-07-25', '00:00:00', 'F', 'daily', '6', 'Month', '', '00:00:00', '', '1,2', 'Active', '1', '2014-06-26 06:49:03'),
(8, 3, 'tulasi', 'Setup Jogging Events For Employees', 'Lerem Ipsum Doller Sit Amit.', 'QN', 'CWP', 'Setup Jogging Events For Employees Setup Jogging Events For Employees Setup Jogging Events For Employees', '4', 'times', '2014-07-24', '2014-08-23', '00:00:00', 'F', 'daily', '30', 'Day', '', '00:00:00', '', '1,2', 'Active', '1', '2014-07-22 10:58:56'),
(24, 6, 'hra', 'Meeting with Diabetes Expert', 'Lerem Ipsum Doller Sit Amit.', 'QN', 'CWP', 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Curabitur bibendum ornare dolor, quis ullamcorper ligula sodales at. Nulla tellus elit, varius non commodo eget, mattis vel eros. In sed ornare nulla.', '4', 'times', '2014-08-22', '2015-02-22', '00:00:00', 'F', 'daily', '6', 'Month', '', '00:00:00', '', '', 'Active', '0', '2014-08-22 12:18:19'),
(25, 6, 'tulasi', 'Setup Jogging Events For Employees', 'Lerem Ipsum Doller Sit Amit.', 'QN', 'CWP', 'Setup Jogging Events For Employees Setup Jogging Events For Employees Setup Jogging Events For Employees', '4', 'times', '2014-08-26', '2014-09-25', '00:00:00', 'F', 'daily', '30', 'Day', '', '00:00:00', '', '', 'Active', '0', '2014-08-22 12:18:19'),
(26, 4, 'hra', 'Meeting with Diabetes Expert', 'Lerem Ipsum Doller Sit Amit.', 'QN', 'CWP', 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Curabitur bibendum ornare dolor, quis ullamcorper ligula sodales at. Nulla tellus elit, varius non commodo eget, mattis vel eros. In sed ornare nulla.', '4', 'times', '2014-08-23', '2015-02-23', '00:00:00', 'F', 'daily', '6', 'Month', '', '00:00:00', '', '', 'Active', '0', '2014-08-23 05:50:23'),
(27, 4, 'tulasi', 'Setup Jogging Events For Employees', 'Lerem Ipsum Doller Sit Amit.', 'QN', 'CWP', 'Setup Jogging Events For Employees Setup Jogging Events For Employees Setup Jogging Events For Employees', '4', 'times', '2014-08-26', '2014-09-25', '00:00:00', 'F', 'daily', '30', 'Day', '', '00:00:00', '', '', 'Active', '0', '2014-08-23 05:50:23'),
(28, 7, 'hra', 'Test', 'Test2', 'QN', 'CWP', 'Test', '25', 'test', '2015-01-15', '2015-02-14', '11:23:00', 'F', 'daily', '30', 'Day', '', '00:00:00', '1', '', 'Active', '0', '2015-01-15 05:53:44'),
(31, 7, 'tulasi', 'Tulasi Metric 1', 'Tulasi Metric', 'QN', 'CWP', '', '20', 'time', '2015-04-04', '2015-04-30', '16:25:00', 'F', 'bidaily', '', '', '', '00:00:00', '1', '', 'Active', '0', '2015-04-02 10:58:02'),
(32, 7, 'hw', 'Fit and Healty', 'Fit and Healty', 'QN', 'CWP', 'Running', '3', 'km', '2015-04-07', '2015-05-30', '12:49:00', 'F', 'tts', '53', 'days', '', '00:00:00', '1', '', 'Active', '0', '2015-04-06 07:21:12'),
(33, 2, 'hw', 'Loose Weight up to 5kg.', 'Loose Weight', 'QN', 'CWP', '', '5', 'Kg.', '2015-04-07', '2015-05-30', '15:25:00', 'C', '', '53', 'days', '', '00:00:00', '1', '', 'Active', '0', '2015-04-06 09:56:59'),
(34, 4, 'hw', 'Reduce Weight upto 5 kg', 'Loose Weight', 'QN', 'CWP', '', '5', 'Kg.', '2015-04-08', '2015-05-30', '15:38:00', 'C', '', '52', 'days', '', '00:00:00', '1', '', 'Active', '0', '2015-04-06 10:08:54'),
(37, 7, 'hw', 'Fast Walk upto 3 km', 'Fit and Healthy', 'QN', 'CWP', '', '3', 'km', '2015-04-16', '2015-04-30', '16:50:00', 'F', 'weekdays', '14', 'days', '', '00:00:00', '1', '', 'Active', '0', '2015-04-15 11:22:04');

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

--
-- Table structure for table `th_employer_metric_data`
--

CREATE TABLE IF NOT EXISTS `th_employer_metric_data` (
  `md_id` int(11) NOT NULL AUTO_INCREMENT,
  `md_met_id` int(11) NOT NULL,
  `md_freq_date` date NOT NULL,
  `md_val` double NOT NULL,
  `md_user_type` varchar(10) NOT NULL COMMENT 'WPM or WLT',
  `md_user_id` int(11) NOT NULL,
  `md_rdate` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  PRIMARY KEY (`md_id`),
  KEY `md_user_id` (`md_user_id`),
  KEY `md_met_id` (`md_met_id`)
) ENGINE=InnoDB  DEFAULT CHARSET=latin1 AUTO_INCREMENT=14 ;

--
-- Dumping data for table `th_employer_metric_data`
--

INSERT INTO `th_employer_metric_data` (`md_id`, `md_met_id`, `md_freq_date`, `md_val`, `md_user_type`, `md_user_id`, `md_rdate`) VALUES
(7, 32, '2015-04-08', 20, 'WPM', 98, '2015-04-10 08:52:54'),
(8, 32, '2015-04-10', 3.5, 'WLT', 1, '2015-04-10 08:54:52'),
(9, 32, '2015-04-16', 2, 'WPM', 98, '2015-04-16 05:46:29'),
(10, 34, '2015-04-10', 2, 'WLT', 1, '2015-04-16 07:00:27'),
(11, 34, '2015-04-13', 6, 'WLT', 1, '2015-04-16 07:00:33'),
(12, 34, '2015-04-15', 4, 'WLT', 1, '2015-04-16 07:00:37'),
(13, 32, '2015-04-07', 20, 'WPM', 98, '2015-04-16 08:30:31');

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

--
-- Table structure for table `th_employer_metric_sugg`
--

CREATE TABLE IF NOT EXISTS `th_employer_metric_sugg` (
  `ms_id` int(11) NOT NULL AUTO_INCREMENT,
  `ms_met_id` int(11) NOT NULL,
  `ms_user_id` varchar(50) NOT NULL,
  `ms_user_type` varchar(20) NOT NULL,
  `ms_comment` text NOT NULL,
  `ms_type` varchar(10) NOT NULL DEFAULT 'Comment',
  `ms_hidden` tinyint(4) NOT NULL DEFAULT '0',
  `ms_new` tinyint(4) NOT NULL DEFAULT '1',
  `ms_created` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  PRIMARY KEY (`ms_id`)
) ENGINE=InnoDB  DEFAULT CHARSET=latin1 AUTO_INCREMENT=35 ;

--
-- Dumping data for table `th_employer_metric_sugg`
--

INSERT INTO `th_employer_metric_sugg` (`ms_id`, `ms_met_id`, `ms_user_id`, `ms_user_type`, `ms_comment`, `ms_type`, `ms_hidden`, `ms_new`, `ms_created`) VALUES
(1, 0, '99', 'WPM', 'Test Sugg', 'Sugg', 0, 1, '2014-08-13 11:31:11'),
(3, 2, '98', 'WPM', 'werwerew', 'Reply', 0, 1, '2014-08-13 13:16:33'),
(7, 2, '99', 'WPM', 'repl', 'Reply', 0, 1, '2014-08-14 05:01:59'),
(9, 2, '98', 'WPM', 'nice', 'Reply', 0, 1, '2014-08-14 05:07:34'),
(10, 9, '99', 'WPM', 'Nice thought', 'Sugg', 0, 1, '2014-08-14 05:32:37'),
(11, 10, '98', 'WPM', 'Thank u', 'Reply', 0, 1, '2014-08-14 05:32:54'),
(12, 10, '99', 'WPM', 'Welcome', 'Reply', 0, 1, '2014-08-14 05:33:08'),
(13, 9, '98', 'WPM', 'Test', 'Sugg', 0, 1, '2014-08-14 05:33:48'),
(14, 10, '98', 'WPM', 'nice', 'Reply', 0, 1, '2014-08-14 05:56:48'),
(15, 10, '1', 'WLT', 'test', 'Sugg', 0, 1, '2014-08-18 07:10:56'),
(16, 15, '98', 'WPM', 'thanks', 'Reply', 0, 1, '2014-08-18 07:32:20'),
(21, 15, '', 'WLT', 'asdf', 'Reply', 0, 1, '2014-08-18 08:00:18'),
(22, 6, '98', 'WPM', 'helllo', 'Sugg', 0, 1, '2014-08-18 08:07:43'),
(23, 9, '98', 'WPM', 'asdf', 'Sugg', 0, 1, '2014-08-18 08:09:04'),
(24, 11, '98', 'WPM', 'hii', 'Sugg', 0, 1, '2014-08-18 08:13:22'),
(26, 24, '', 'WLT', 'test', 'Reply', 0, 1, '2014-08-18 08:13:55'),
(27, 10, '98', 'WPM', 'gfsdg', 'Sugg', 0, 1, '2014-08-18 08:27:04'),
(28, 27, '98', 'WPM', 'fdgdfg', 'Reply', 0, 1, '2014-08-18 08:27:13'),
(29, 13, '98', 'WPM', 'Nice thought for toplogic', 'Sugg', 0, 1, '2014-08-19 05:15:57'),
(30, 29, '', 'WLT', 'Thank u', 'Reply', 0, 1, '2014-08-19 05:40:12'),
(31, 29, '98', 'WPM', 'welcome', 'Reply', 0, 1, '2014-08-19 05:41:00'),
(32, 19, '1', 'WLT', 'test', 'Sugg', 0, 1, '2014-08-19 10:01:33'),
(33, 19, '98', 'WPM', 'ok', 'Sugg', 0, 1, '2014-08-19 10:01:46'),
(34, 32, '98', 'WPM', 'tes', 'Reply', 0, 1, '2014-08-19 10:02:33');

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

--
-- Table structure for table `th_employer_notifications`
--

CREATE TABLE IF NOT EXISTS `th_employer_notifications` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `type` varchar(10) NOT NULL,
  `tc_sender_id` int(10) unsigned NOT NULL,
  `reciever_id` varchar(50) NOT NULL,
  `ref_id` varchar(50) NOT NULL,
  `mail_status` tinyint(2) NOT NULL DEFAULT '0',
  `remark` varchar(100) NOT NULL,
  `isnew` tinyint(2) NOT NULL DEFAULT '0',
  `recorded` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  KEY `id` (`id`)
) ENGINE=InnoDB  DEFAULT CHARSET=latin1 AUTO_INCREMENT=491 ;

--
-- Dumping data for table `th_employer_notifications`
--

INSERT INTO `th_employer_notifications` (`id`, `type`, `tc_sender_id`, `reciever_id`, `ref_id`, `mail_status`, `remark`, `isnew`, `recorded`) VALUES
(29, 'PC', 53, '223', '', 0, '', 0, '2012-11-02 07:26:58'),
(30, 'PC', 53, '223', '', 0, '', 0, '2012-11-02 07:38:44'),
(31, 'PC', 53, '223', '', 0, '', 0, '2012-11-02 07:49:07'),
(32, 'PC', 53, '223', '', 0, '', 0, '2012-11-02 07:57:05'),
(33, 'PC', 53, '223', '', 0, '', 0, '2012-11-02 07:58:50'),
(34, 'PC', 53, '223', '', 0, '', 0, '2012-11-02 08:03:04'),
(35, 'PC', 53, '223', '', 0, '', 0, '2012-11-02 08:05:38'),
(36, 'PC', 53, '223', '', 0, '', 0, '2012-11-02 08:07:43'),
(37, 'PC', 53, '223', '', 0, '', 0, '2012-11-02 08:11:14'),
(38, 'PC', 53, '223', '', 0, '', 0, '2012-11-02 08:11:30'),
(39, 'PC', 53, '223', '', 0, '', 0, '2012-11-02 08:12:21'),
(40, 'PC', 53, '223', '', 0, '', 0, '2012-11-02 08:12:35'),
(41, 'PC', 53, '223', '', 0, '', 0, '2012-11-02 08:13:36'),
(42, 'PCV', 53, '223', '', 0, '', 1, '2012-11-02 08:13:48'),
(82, 'BMN', 81, '223', '1', 0, 'BP', 0, '2012-11-05 08:42:56'),
(83, 'BMN', 81, '223', '1', 0, 'BP', 0, '2012-11-05 08:43:23'),
(84, 'BMN', 81, '223', '1', 0, 'BP', 0, '2012-11-05 08:43:31'),
(85, 'BMN', 81, '223', '1', 0, 'BP', 0, '2012-11-05 08:43:43'),
(116, 'BMN', 81, '223', '1', 0, 'BP', 0, '2012-11-05 09:01:13'),
(129, 'BMN', 81, '223', '1', 0, 'CH', 0, '2012-11-05 09:37:19'),
(130, 'BMN', 81, '223', '2', 0, 'CH', 0, '2012-11-06 08:01:21'),
(131, 'BMN', 81, '223', '2', 0, 'BG', 0, '2012-11-06 08:02:24'),
(132, 'BMN', 81, '223', '2', 0, 'BP', 0, '2012-11-06 08:02:32'),
(133, 'BMN', 81, '223', '2', 0, 'WT', 0, '2012-11-06 08:02:42'),
(134, 'PC', 32, '296', '', 0, '', 0, '2012-11-06 13:06:10'),
(136, 'BMN', 81, '223', '2', 0, 'WT', 0, '2012-11-08 05:42:09'),
(137, 'BMN', 81, '223', '2', 0, 'WT', 0, '2012-11-08 05:42:21'),
(138, 'BMN', 81, '223', '2', 0, 'WT', 0, '2012-11-08 05:42:21'),
(139, 'BMN', 81, '223', '2', 0, 'WT', 0, '2012-11-08 05:42:21'),
(140, 'BMN', 81, '223', '2', 0, 'BP', 0, '2012-11-08 05:42:40'),
(141, 'BMN', 81, '223', '2', 0, 'WT', 0, '2012-11-08 05:43:27'),
(142, 'BMN', 81, '223', '2', 0, 'WT', 0, '2012-11-08 05:45:10'),
(143, 'BMN', 81, '223', '2', 0, 'WT', 0, '2012-11-08 05:48:17'),
(144, 'BMN', 81, '223', '2', 0, 'WT', 0, '2012-11-08 05:49:32'),
(145, 'BMN', 81, '223', '2', 0, 'WT', 0, '2012-11-08 05:50:03'),
(146, 'BMN', 81, '223', '2', 0, 'WT', 0, '2012-11-08 05:50:45'),
(147, 'BMN', 81, '223', '2', 0, 'WT', 0, '2012-11-08 05:51:14'),
(148, 'BMN', 81, '223', '2', 0, 'WT', 0, '2012-11-08 06:15:49'),
(149, 'BMN', 81, '223', '3', 0, 'CH', 0, '2012-11-08 06:39:42'),
(150, 'BMN', 81, '223', '3', 0, 'BG', 0, '2012-11-08 07:26:31'),
(151, 'BMN', 81, '223', '3', 0, 'BG', 0, '2012-11-08 07:31:23'),
(152, 'PC', 81, '296', '', 0, '', 0, '2012-11-08 11:40:20'),
(153, 'PCV', 81, '296', '', 0, '', 1, '2012-11-08 11:41:24'),
(156, 'BMN', 81, '296', '5', 0, 'WT', 1, '2012-11-08 13:15:37'),
(157, 'BMN', 81, '296', '2', 0, 'WT', 1, '2012-11-09 13:57:15'),
(158, 'BMN', 81, '296', '9', 0, 'WT', 1, '2012-11-10 06:27:12'),
(163, 'PCV', 32, '296', '', 0, '', 1, '2012-11-10 12:37:53'),
(164, 'PCV', 32, '296', '', 0, '', 1, '2012-11-10 12:56:59'),
(165, 'BMN', 1, '296', '2', 0, 'WT', 1, '2012-11-12 05:17:59'),
(166, 'BMN', 1, '296', '1', 0, 'WT', 1, '2012-11-15 04:29:46'),
(167, 'PC', 81, '296', '', 0, '', 0, '2012-11-15 09:14:52'),
(168, 'PC', 81, '296', '', 0, '', 0, '2012-11-15 10:24:22'),
(169, 'PCV', 81, '296', '', 0, '', 1, '2012-11-15 12:24:16'),
(170, 'PC', 81, '296', '', 0, '', 0, '2012-11-15 13:15:14'),
(171, 'PCV', 32, '296', '', 0, '', 1, '2012-11-15 13:17:47'),
(172, 'TCHC', 1, '296', '2', 0, '', 1, '2012-11-17 04:42:35'),
(174, 'PC', 81, '501', '', 0, '', 0, '2012-11-17 06:10:06'),
(175, 'BMN', 81, '501', '5', 1, 'WT', 1, '2012-11-17 06:23:56'),
(176, 'SCHC', 7, 'Walgreen Co.', '', 0, '', 0, '2012-11-19 07:42:04'),
(177, 'BMN', 1, '296', '1', 0, 'WT', 1, '2012-11-20 05:22:45'),
(178, 'PC', 81, '296', '', 0, '', 0, '2012-11-20 09:28:06'),
(179, 'PC', 81, '296', '', 0, '', 0, '2012-11-20 09:30:53'),
(180, 'PC', 81, '296', '', 0, '', 0, '2012-11-20 09:33:30'),
(181, 'PC', 81, '296', '', 0, '', 0, '2012-11-20 09:34:15'),
(182, 'PC', 81, '296', '', 0, '', 0, '2012-11-21 06:21:05'),
(183, 'PC', 81, '296', '', 0, '', 0, '2012-11-21 06:21:53'),
(184, 'PC', 81, '296', '', 0, '', 0, '2012-11-21 06:22:51'),
(185, 'PC', 81, '296', '', 0, '', 0, '2012-11-21 06:23:54'),
(186, 'PC', 81, '296', '', 0, '', 0, '2012-11-21 06:25:11'),
(187, 'PC', 81, '296', '', 0, '', 0, '2012-11-21 06:25:47'),
(188, 'PC', 81, '296', '', 0, '', 0, '2012-11-21 07:00:11'),
(189, 'PC', 81, '296', '', 0, '', 0, '2012-11-21 07:01:33'),
(190, 'PC', 81, '296', '', 0, '', 0, '2012-11-21 07:02:59'),
(191, 'PCV', 53, '223', '', 0, '', 0, '2012-11-26 07:22:29'),
(194, 'SCHC', 1, '296', '', 0, '', 1, '2012-12-05 04:53:46'),
(195, 'BMN', 1, '296', '4', 0, 'WT', 1, '2012-12-06 04:32:10'),
(196, 'PC', 63, '296', '', 0, '', 0, '2012-12-08 05:50:06'),
(197, 'PC', 33, '296', '', 0, '', 0, '2012-12-10 12:33:20'),
(198, 'PC', 65, '296', '', 0, '', 0, '2012-12-11 10:12:57'),
(199, 'SCHC', 7, 'Walgreen Co.', '', 0, '', 0, '2012-12-12 11:50:18'),
(200, 'SCHC', 7, 'Walgreen Co.', '', 0, '', 0, '2012-12-14 12:42:49'),
(201, 'BMN', 7, 'Walgreen Co.', '1', 0, 'WT', 0, '2012-12-20 10:55:10'),
(202, 'PC', 34, '45', '', 0, '', 0, '2012-12-21 09:57:44'),
(203, 'PC', 34, '45', '', 0, '', 0, '2012-12-21 09:59:22'),
(204, 'TCHC', 23, 'Walgreen Co.', '1', 0, '', 0, '2013-01-12 08:51:37'),
(205, 'TCHC', 23, 'Walgreen Co.', '2', 0, '', 0, '2013-01-12 08:51:38'),
(206, 'TCHC', 65, '296', '1', 0, '', 0, '2013-01-29 07:27:33'),
(207, 'TCHC', 65, '296', '2', 0, '', 0, '2013-01-29 07:27:34'),
(208, 'SCHC', 23, 'Walgreen Co.', '', 0, '', 0, '2013-02-07 06:28:29'),
(209, 'TCHC', 33, '296', '1', 0, '', 0, '2013-02-13 10:45:44'),
(210, 'TCHC', 33, '296', '2', 0, '', 0, '2013-02-13 10:45:45'),
(211, 'SCHC', 81, '296', '', 0, '', 1, '2013-02-28 05:07:52'),
(212, 'SCHC', 1, '296', '', 0, '', 0, '2013-03-05 04:42:58'),
(213, 'PCV', 65, '296', '', 0, '', 0, '2013-03-11 08:06:45'),
(214, 'SCHC', 63, '296', '', 0, '', 0, '2013-04-02 04:33:26'),
(215, 'PC', 63, '245', '', 0, '', 0, '2013-04-30 11:30:00'),
(216, 'PC', 41, '504', '', 0, '', 0, '2013-05-01 09:09:17'),
(217, 'PC', 39, '45', '', 0, '', 0, '2013-05-01 11:46:07'),
(218, 'PC', 20, '45', '', 0, '', 0, '2013-05-01 12:32:44'),
(219, 'PC', 64, '504', '', 0, '', 0, '2013-05-02 05:52:12'),
(220, 'PC', 9, '504', '', 0, '', 0, '2013-05-02 13:11:46'),
(221, 'PC', 54, '76', '', 0, '', 0, '2013-05-04 07:08:27'),
(222, 'PC', 54, '504', '', 0, '', 0, '2013-05-04 07:16:15'),
(223, 'PC', 19, '45', '', 0, '', 0, '2013-05-04 12:45:49'),
(224, 'PC', 52, '23', '', 0, '', 0, '2013-05-06 08:47:37'),
(225, 'PC', 76, '19', '', 0, '', 0, '2013-05-06 09:39:10'),
(226, 'PC', 76, '356', '', 0, '', 0, '2013-05-07 06:18:00'),
(227, 'PC', 76, '21', '', 0, '', 0, '2013-05-07 06:18:47'),
(228, 'PC', 62, '23', '', 0, '', 0, '2013-05-08 09:09:57'),
(229, 'PC', 49, '23', '', 0, '', 0, '2013-05-10 07:40:13'),
(230, 'PC', 49, '27', '', 0, '', 0, '2013-05-10 13:36:34'),
(231, 'SCHC', 33, '296', '', 0, '', 0, '2013-05-13 07:51:10'),
(232, 'PC', 18, '59', '', 0, '', 0, '2013-05-14 08:53:28'),
(233, 'BMN', 1, '296', '2', 0, 'WT', 0, '2013-05-16 07:24:42'),
(234, 'PC', 65, '45', '', 0, '', 0, '2013-05-22 07:32:25'),
(236, 'SCHC', 1, '296', '', 0, '', 0, '2013-05-24 07:45:03'),
(237, 'TCHC', 81, '296', '21', 0, '', 0, '2013-05-25 05:12:27'),
(399, 'EPRFE', 1, '504', '55', 0, '', 1, '2013-06-20 05:58:39'),
(400, 'ER', 1, '504', '65', 0, '', 1, '2013-06-20 08:02:21'),
(401, 'ER', 1, '504', '13', 0, '', 1, '2013-06-20 08:09:26'),
(402, 'ER', 1, '504', '49', 0, '', 1, '2013-06-20 09:00:25'),
(403, 'ER', 1, '504', '38', 0, '', 1, '2013-06-21 04:36:49'),
(404, 'ER', 1, '504', '66', 0, '', 1, '2013-06-22 12:16:23'),
(405, 'ER', 1, '504', '61', 0, '', 1, '2013-06-22 12:16:28'),
(406, 'ER', 1, '504', '60', 0, '', 1, '2013-06-22 12:16:31'),
(407, 'ER', 1, '504', '59', 0, '', 1, '2013-06-22 12:16:34'),
(410, 'BMN', 81, '504', '1', 0, 'WT', 0, '2013-07-05 12:35:31'),
(411, 'ER', 1, '504', '76', 0, '', 1, '2013-07-13 09:09:50'),
(412, 'ER', 81, '504', '16', 0, '', 0, '2013-07-13 11:11:01'),
(413, 'ER', 1, '504', '77', 0, '', 1, '2013-07-17 05:53:24'),
(414, 'ER', 1, '504', '80', 0, '', 1, '2013-07-17 09:25:08'),
(415, 'ER', 1, '504', '82', 0, '', 1, '2013-07-17 11:43:10'),
(416, 'ER', 1, '504', '81', 0, '', 1, '2013-07-17 11:43:17'),
(417, 'TCHC', 65, '45', '21', 0, '', 0, '2013-07-25 10:39:29'),
(418, 'PCV', 41, '45', '', 0, '', 0, '2013-07-26 12:07:05'),
(419, 'ER', 1, '504', '83', 0, '', 1, '2013-07-30 13:15:35'),
(420, 'BMN', 33, '296', '1', 0, 'WT', 0, '2013-08-02 12:14:57'),
(421, 'BMN', 1, '504', '1', 0, 'WT', 0, '2013-08-02 12:17:06'),
(422, 'BMN', 1, '504', '1', 0, 'WT', 0, '2013-08-03 05:48:51'),
(423, 'BMN', 1, '504', '1', 0, 'WT', 0, '2013-08-05 04:36:28'),
(424, 'TCHC', 65, '45', '10', 0, '', 0, '2013-08-27 12:41:17'),
(425, 'SCHC', 81, '504', '', 0, '', 1, '2013-08-29 06:32:15'),
(426, 'TCHC', 81, '504', '10', 0, '', 1, '2013-08-29 06:32:21'),
(427, 'ER', 81, '504', '83', 0, '', 1, '2013-08-29 06:45:04'),
(428, 'SCHC', 41, '45', '', 0, '', 0, '2013-08-30 11:39:33'),
(429, 'SCHC', 1, '504', '', 0, '', 1, '2013-09-19 10:49:32'),
(430, 'ER', 1, '504', '102', 0, '', 1, '2013-11-16 13:53:08'),
(431, 'PC', 10, '504', '', 0, '', 0, '2013-12-06 05:09:55'),
(432, 'TCHC', 63, '296', '10', 0, '', 0, '2013-12-24 11:25:46'),
(433, 'TCHC', 63, '296', '21', 0, '', 0, '2013-12-24 11:25:47'),
(434, 'ER', 1, '504', '108', 0, '', 1, '2014-01-09 09:08:00'),
(435, 'ER', 1, '504', '104', 0, '', 1, '2014-01-09 09:08:43'),
(443, 'ER', 1, '504', '45', 0, '', 1, '2014-03-01 08:19:02'),
(444, 'ER', 1, '504', '116', 0, '', 1, '2014-03-01 08:21:14'),
(445, 'SCHC', 19, '45', '', 0, '', 0, '2014-03-13 05:10:15'),
(446, 'TCHC', 19, '45', '24', 0, '', 0, '2014-03-13 05:10:20'),
(447, 'TCHC', 19, '45', '25', 0, '', 0, '2014-03-13 05:10:21'),
(448, 'PCV', 19, '45', '', 0, '', 0, '2014-03-13 05:10:23'),
(449, 'TCHC', 7, 'Walgreen Co.', '21', 0, '', 0, '2014-03-21 05:26:45'),
(450, 'PCV', 39, '45', '', 0, '', 0, '2014-03-24 13:00:30'),
(452, 'ER', 1, '504', '', 0, '', 0, '2014-04-07 11:46:58'),
(453, 'ER', 1, '504', '4', 0, '', 0, '2014-04-07 13:28:59'),
(454, 'ER', 1, '504', '46', 0, '', 0, '2014-04-08 05:08:34'),
(455, 'ER', 1, '504', '18', 0, '', 0, '2014-04-14 04:24:02'),
(456, 'ER', 1, '504', '17', 0, '', 0, '2014-04-14 04:50:12'),
(457, 'ER', 1, '504', '99', 0, '', 0, '2014-04-14 05:05:17'),
(458, 'ER', 1, '504', '115', 0, '', 0, '2014-04-14 05:17:18'),
(459, 'PC', 48, '296', '', 0, '', 0, '2014-05-29 11:14:00'),
(460, 'ER', 1, '504', '126', 0, '', 0, '2014-07-02 06:41:47'),
(461, 'PC', 21, '504', '', 0, '', 0, '2014-07-15 06:58:26'),
(462, 'PC', 37, '504', '', 0, '', 0, '2014-07-15 08:02:08'),
(463, 'PCV', 20, '45', '', 0, '', 0, '2014-07-19 13:20:35'),
(464, 'PCV', 54, '504', '', 0, '', 0, '2014-07-19 13:20:46'),
(465, 'PCV', 64, '504', '', 0, '', 0, '2014-07-19 13:20:47'),
(466, 'PCV', 15, '504', '', 0, '', 0, '2014-07-19 13:20:56'),
(467, 'BMN', 1, '504', '2', 0, 'WT', 0, '2014-07-23 06:42:04'),
(469, 'BMN', 1, '504', '10', 0, 'WT', 0, '2014-07-24 04:18:33'),
(470, 'BMN', 7, 'Walgreen Co.', '2', 0, 'WT', 0, '2014-07-24 04:34:57'),
(471, 'ER', 1, '504', '131', 0, '', 0, '2014-08-04 13:09:24'),
(472, 'ER', 1, '504', '57', 0, '', 0, '2014-08-05 06:22:35'),
(473, 'ER', 1, '504', '94', 0, '', 0, '2014-08-05 08:38:06'),
(474, 'ER', 1, '504', '44', 0, '', 0, '2014-08-05 10:28:35'),
(475, 'EPRFE', 1, '504', '115', 0, '', 0, '2014-08-06 11:16:35'),
(476, 'EPRFE', 1, '504', '116', 0, '', 0, '2014-08-06 12:10:04'),
(477, 'EPRFE', 1, '504', '77', 0, '', 0, '2014-08-06 12:23:55'),
(478, 'EPRFE', 1, '504', '83', 0, '', 0, '2014-08-06 12:34:02'),
(479, 'ER', 1, '504', '110', 0, '', 0, '2014-08-06 13:29:07'),
(480, 'ER', 1, '504', '139', 0, '', 0, '2014-08-07 07:51:28'),
(481, 'BMN', 1, '504', '9', 0, 'WT', 0, '2014-09-18 10:30:20'),
(482, 'BMN', 7, 'Walgreen Co.', '9', 0, 'WT', 0, '2014-09-18 11:08:25'),
(483, 'PC', 40, '504', '', 0, '', 0, '2015-01-24 05:06:42'),
(484, 'BMN', 1, '504', '9', 0, 'WT', 0, '2015-07-02 11:16:55'),
(485, 'ER', 95, '', '76', 0, '', 0, '2015-09-24 11:00:05'),
(486, 'ER', 1, '504', '162', 0, '', 0, '2016-03-04 05:16:13'),
(487, 'ER', 41, '45', '160', 0, '', 0, '2016-03-04 06:19:45'),
(488, 'EPRFE', 1, '504', '174', 0, '', 0, '2016-03-04 06:56:03'),
(489, 'ER', 1, '504', '161', 0, '', 0, '2016-03-04 07:42:50'),
(490, 'ER', 1, '504', '173', 0, '', 0, '2016-03-04 10:36:08');

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

--
-- Table structure for table `th_employer_reg_enquiry`
--

CREATE TABLE IF NOT EXISTS `th_employer_reg_enquiry` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `enquiry_cname` varchar(100) NOT NULL,
  `enquiry_name` varchar(50) NOT NULL,
  `enquiry_email` varchar(50) NOT NULL,
  `enquiry_contact` varchar(30) NOT NULL,
  `enqiry_details` text NOT NULL,
  `enquiry_ip` varchar(30) NOT NULL,
  `enquiry_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB  DEFAULT CHARSET=latin1 AUTO_INCREMENT=2 ;

--
-- Dumping data for table `th_employer_reg_enquiry`
--

INSERT INTO `th_employer_reg_enquiry` (`id`, `enquiry_cname`, `enquiry_name`, `enquiry_email`, `enquiry_contact`, `enqiry_details`, `enquiry_ip`, `enquiry_date`) VALUES
(1, 'United States Steel Corp.', 'sdfsdf', 'sdfsdf', 'sdfsdf', 'sdfsdf', '127.0.0.1', '2014-08-11 06:24:01');

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

--
-- Table structure for table `th_employer_subscription`
--

CREATE TABLE IF NOT EXISTS `th_employer_subscription` (
  `sub_id` int(11) NOT NULL AUTO_INCREMENT,
  `emp_id` int(11) NOT NULL,
  `plan_id` int(11) NOT NULL,
  `title` varchar(100) DEFAULT NULL,
  `allowed_clients` int(11) NOT NULL,
  `storage_space` int(11) NOT NULL COMMENT 'in MB',
  `price` float NOT NULL COMMENT 'in $',
  `start_date` date DEFAULT NULL,
  `end_date` date DEFAULT NULL,
  `purchase_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `payment_status` varchar(20) DEFAULT 'unpaid',
  `sub_duration` varchar(100) DEFAULT NULL,
  `plan_status` tinyint(4) NOT NULL DEFAULT '0' COMMENT '0=Inactive Plan, 1=Active Plan',
  `action` varchar(20) DEFAULT NULL COMMENT 'S=Starter, R=Renew, U=upgrade, D=Downgrade',
  PRIMARY KEY (`sub_id`)
) ENGINE=InnoDB  DEFAULT CHARSET=latin1 AUTO_INCREMENT=36 ;

--
-- Dumping data for table `th_employer_subscription`
--

INSERT INTO `th_employer_subscription` (`sub_id`, `emp_id`, `plan_id`, `title`, `allowed_clients`, `storage_space`, `price`, `start_date`, `end_date`, `purchase_date`, `payment_status`, `sub_duration`, `plan_status`, `action`) VALUES
(10, 41, 3, 'Standard', 10, 400, 50, '2013-11-09', '2013-12-09', '2013-11-09 05:07:22', 'paid', '1', 0, 'U'),
(12, 41, 9, 'Test', 15, 20, 10, '2013-11-12', '2013-12-12', '2013-11-12 13:26:59', 'paid', '1', 0, 'U'),
(14, 60, 1, 'Beginner', 2, 100, 20, '2013-11-14', '2013-12-14', '2013-11-14 12:45:01', 'paid', '1', 1, 'S'),
(15, 60, 2, 'Basic', 5, 250, 40, '2013-11-14', '2013-12-14', '2013-11-14 13:09:03', 'unpaid', '1', 0, 'U'),
(16, 41, 3, 'Standard', 10, 400, 50, '2013-11-15', '2014-12-15', '2013-11-15 11:20:01', 'paid', '1', 1, 'D'),
(17, 92, 1, 'Beginner', 2, 100, 20, '2013-12-06', '2014-01-06', '2013-12-06 10:40:07', 'paid', '1', 1, 'S'),
(18, 72, 1, 'Beginner', 2, 100, 20, '2013-12-10', '2014-01-10', '2013-12-10 05:56:35', 'paid', '1', 1, 'S'),
(19, 72, 1, 'Beginner', 2, 100, 20, '2013-12-10', '2014-01-10', '2013-12-10 05:57:46', 'unpaid', '1', 0, 'R'),
(20, 41, 3, 'Standard', 10, 400, 50, '2013-12-21', '2014-01-21', '2013-12-21 10:59:54', 'unpaid', '1', 0, 'R'),
(21, 94, 1, 'Beginner', 2, 100, 20, '2013-12-26', '2014-01-26', '2013-12-26 11:09:16', 'paid', '1', 1, 'S'),
(22, 0, 1, 'Beginner', 2, 100, 20, '2013-12-28', '2014-01-28', '2013-12-28 14:40:05', 'paid', '1', 1, 'S'),
(23, 93, 1, 'Beginner', 2, 100, 20, '2013-12-30', '2014-01-28', '2013-12-30 14:04:58', 'paid', '1', 1, 'S'),
(24, 1, 1, 'Beginner', 2, 100, 20, '2014-01-08', '2014-02-08', '2014-01-08 04:31:01', 'paid', '1', 1, 'S'),
(25, 32, 1, 'Beginner', 2, 100, 20, '2014-02-11', '2014-03-11', '2014-02-11 06:36:52', 'paid', '1', 1, 'S'),
(26, 71, 1, 'Beginner', 2, 100, 20, '2014-05-02', '2014-06-02', '2014-05-02 09:09:23', 'paid', '1', 1, 'S'),
(27, 96, 1, 'Beginner', 2, 100, 20, '2014-05-24', '2014-06-24', '2014-05-24 12:45:37', 'paid', '1', 1, 'S'),
(28, 97, 1, 'Beginner', 2, 100, 20, '2014-05-26', '2014-06-26', '2014-05-26 04:38:52', 'paid', '1', 1, 'S'),
(29, 98, 1, 'Beginner', 2, 100, 20, '2014-05-28', '2014-06-28', '2014-05-28 06:42:43', 'paid', '1', 1, 'S'),
(30, 32, 5, 'Enterprise', 50, 1000, 120, '2014-06-01', '2014-06-10', '2014-06-05 04:52:21', 'paid', '1', 1, 'U'),
(31, 32, 3, 'Standard', 30, 400, 50, '2014-06-07', '2014-07-07', '2014-06-07 04:45:25', 'unpaid', '1', 0, 'U'),
(32, 102, 5, 'Enterprise', 50, 1000, 120, '2014-07-04', '2014-08-04', '2014-07-04 04:34:54', 'paid', '1', 1, 'S'),
(33, 103, 5, 'Enterprise', 50, 1000, 120, '2014-08-11', '2014-09-11', '2014-08-11 13:15:40', 'paid', '1', 1, 'S'),
(34, 104, 5, 'Enterprise', 50, 1000, 120, '2014-08-11', '2014-09-11', '2014-08-11 13:15:40', 'paid', '1', 1, 'S'),
(35, 109, 5, 'Enterprise', 50, 1000, 120, '2014-08-14', '2014-09-14', '2014-08-14 06:14:01', 'paid', '1', 1, 'S');

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

--
