? Fallagassrini

Fallagassrini Bypass Shell

echo"
Fallagassrini
";
Current Path : /home1/savoy/public_html/savoyglobal.net/sgms/draft/application/data/

Linux gator3171.hostgator.com 4.19.286-203.ELK.el7.x86_64 #1 SMP Wed Jun 14 04:33:55 CDT 2023 x86_64
Upload File :
Current File : /home1/savoy/public_html/savoyglobal.net/sgms/draft/application/data/horeitia-3.12.sql

-- phpMyAdmin SQL Dump
-- version 3.2.2.1deb1
-- http://www.phpmyadmin.net
--
-- Host: localhost
-- Generation Time: Dec 03, 2011 at 12:48 PM
-- Server version: 5.1.37
-- PHP Version: 5.2.10-2ubuntu6.10

SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO";


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

--
-- Database: `horeitia`
--

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

--
-- Table structure for table `agency`
--

CREATE TABLE IF NOT EXISTS `agency` (
  `agency_id` int(5) NOT NULL AUTO_INCREMENT,
  `agency_name` varchar(200) NOT NULL,
  `agency_code` varchar(10) NOT NULL,
  PRIMARY KEY (`agency_id`)
) ENGINE=InnoDB  DEFAULT CHARSET=latin1 AUTO_INCREMENT=14 ;

--
-- Dumping data for table `agency`
--

INSERT INTO `agency` (`agency_id`, `agency_name`, `agency_code`) VALUES
(1, 'Evershine Placements & Exports pvt ltd', 'EV'),
(2, 'Skylink International', 'SI'),
(3, 'Pheonix Recruting Agency', 'PRA'),
(4, 'River Overseas', 'RO'),
(5, 'Delta Recruitment', 'DR'),
(6, 'Meridian Jobs', 'MJ'),
(7, 'Code International', 'CI'),
(8, 'Man International', 'MI'),
(9, 'Poeple & Plcs', 'PP'),
(10, 'Bridge Sky', 'BS'),
(11, 'Skilotech', 'ST'),
(12, 'Evershine Cochin', 'EC'),
(13, 'JR Consultancy', 'JR');

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

--
-- Table structure for table `alert`
--

CREATE TABLE IF NOT EXISTS `alert` (
  `alert_id` int(11) NOT NULL AUTO_INCREMENT,
  `alert_master_id` int(11) NOT NULL,
  `employee_id` int(11) NOT NULL,
  `alert_date` date NOT NULL,
  `alert_status` int(11) NOT NULL DEFAULT '1',
  `completed_date` date NOT NULL,
  PRIMARY KEY (`alert_id`),
  KEY `employee_id` (`employee_id`),
  KEY `alert_master_id` (`alert_master_id`)
) ENGINE=InnoDB  DEFAULT CHARSET=latin1 AUTO_INCREMENT=21 ;

--
-- Dumping data for table `alert`
--

INSERT INTO `alert` (`alert_id`, `alert_master_id`, `employee_id`, `alert_date`, `alert_status`, `completed_date`) VALUES
(1, 1, 18, '2011-12-01', 0, '2011-12-01'),
(2, 2, 18, '2013-11-19', 1, '0000-00-00'),
(3, 1, 19, '2011-12-01', 0, '2011-12-01'),
(4, 2, 19, '1970-01-01', 1, '0000-00-00'),
(5, 1, 20, '2011-12-01', 0, '2011-12-01'),
(6, 2, 20, '1970-01-01', 1, '0000-00-00'),
(7, 3, 20, '1970-01-01', 0, '2011-12-01'),
(8, 8, 20, '2011-12-01', 0, '2011-12-01'),
(9, 9, 20, '2011-12-01', 0, '2011-12-01'),
(10, 3, 19, '1970-01-01', 1, '0000-00-00'),
(11, 8, 19, '2011-12-01', 0, '2011-12-01'),
(12, 9, 19, '2011-12-01', 0, '2011-12-01'),
(13, 3, 18, '1970-01-01', 1, '0000-00-00'),
(14, 8, 18, '2011-12-01', 0, '2011-12-01'),
(15, 9, 18, '2011-12-01', 0, '2011-12-01'),
(16, 12, 19, '2011-12-01', 1, '0000-00-00'),
(17, 12, 18, '2011-12-01', 1, '0000-00-00'),
(18, 12, 20, '2011-12-01', 1, '0000-00-00'),
(19, 26, 20, '2011-12-01', 0, '2011-12-01'),
(20, 27, 20, '2011-12-01', 0, '2011-12-01');

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

--
-- Table structure for table `alert_master`
--

CREATE TABLE IF NOT EXISTS `alert_master` (
  `alert_master_id` int(11) NOT NULL AUTO_INCREMENT,
  `module_name` varchar(100) NOT NULL,
  `alert_master_caption` varchar(200) NOT NULL,
  `alert_master_page` varchar(200) NOT NULL,
  `sort` int(11) NOT NULL,
  `alert_function` varchar(200) NOT NULL,
  PRIMARY KEY (`alert_master_id`)
) ENGINE=InnoDB  DEFAULT CHARSET=latin1 AUTO_INCREMENT=28 ;

--
-- Dumping data for table `alert_master`
--

INSERT INTO `alert_master` (`alert_master_id`, `module_name`, `alert_master_caption`, `alert_master_page`, `sort`, `alert_function`) VALUES
(1, 'Onboarding', 'Personal details', '', 1, 'editformdata(''onboarding'',''edit_page'',''~~~'',''employee_non_main'',''emp_non_id'',''add_employee_personal'',''@@@'')'),
(2, 'Administration', 'Visa Processing', '', 7, 'view_my_alert_employee(''add_visa_processing'',''Administration'',''***'',''@@@'')'),
(3, 'Employee Exit', 'Emergency / Annual Leave', '', 8, 'view_my_alert_employee(''add_leave'',''Exits'',''***'',''@@@'')'),
(8, 'Onboarding', 'Camp Allotment', '', 2, 'view_my_alert(''16'',''3'')'),
(9, 'Onboarding', 'Site Allotment', '', 3, 'view_my_alert(''17'',''3'')'),
(12, 'Onboarding', 'Tools and Equipments Allotment', '', 4, 'view_my_alert_employee(''add_item_allotment'',''Onboarding'',''***'',''@@@'')'),
(17, 'General / TradeTool kit', 'Alert for renewal / replacement of Trade tool list and General Items list', '', 5, ''),
(18, 'Administration', 'Training', '', 6, 'view_my_alert_employee(''add_training'',''Administration'',''***'',''@@@'')'),
(26, 'Employee Exit', 'Settlement', '', 9, 'editformdata(''exits'',''edit_page'',''~~~'',''leave'',''employee_id'',''add_settlement'',''@@@'')'),
(27, 'Employee Exit', 'Exit', '', 10, 'editformdata(''exits'',''edit_page'',''~~~'',''leave'',''employee_id'',''add_exit'',''@@@'')');

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

--
-- Table structure for table `alert_master_designation`
--

CREATE TABLE IF NOT EXISTS `alert_master_designation` (
  `alert_master_id` int(11) NOT NULL,
  `designation_id` int(11) NOT NULL,
  KEY `designation_id` (`designation_id`),
  KEY `alert_master_id` (`alert_master_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `alert_master_designation`
--

INSERT INTO `alert_master_designation` (`alert_master_id`, `designation_id`) VALUES
(1, 2),
(1, 3),
(1, 4),
(1, 5),
(27, 2),
(27, 3),
(27, 4),
(27, 5),
(3, 2),
(26, 2),
(8, 2),
(18, 2),
(12, 2),
(2, 2),
(17, 2),
(9, 2);

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

--
-- Table structure for table `alert_user`
--

CREATE TABLE IF NOT EXISTS `alert_user` (
  `alert_user_id` int(11) NOT NULL AUTO_INCREMENT,
  `alert_id` int(11) NOT NULL,
  `user_id` int(11) NOT NULL,
  PRIMARY KEY (`alert_user_id`),
  KEY `alert_id` (`alert_id`),
  KEY `user_id` (`user_id`)
) ENGINE=InnoDB  DEFAULT CHARSET=latin1 AUTO_INCREMENT=21 ;

--
-- Dumping data for table `alert_user`
--

INSERT INTO `alert_user` (`alert_user_id`, `alert_id`, `user_id`) VALUES
(1, 1, 2),
(2, 2, 2),
(3, 3, 2),
(4, 4, 2),
(5, 5, 2),
(6, 6, 2),
(7, 7, 2),
(8, 8, 2),
(9, 9, 2),
(10, 10, 2),
(11, 11, 2),
(12, 12, 2),
(13, 13, 2),
(14, 14, 2),
(15, 15, 2),
(16, 16, 2),
(17, 17, 2),
(18, 18, 2),
(19, 19, 2),
(20, 20, 2);

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

--
-- Table structure for table `allowance`
--

CREATE TABLE IF NOT EXISTS `allowance` (
  `allowance_id` int(5) NOT NULL AUTO_INCREMENT,
  `allowance_name` varchar(40) NOT NULL,
  PRIMARY KEY (`allowance_id`)
) ENGINE=InnoDB  DEFAULT CHARSET=latin1 AUTO_INCREMENT=4 ;

--
-- Dumping data for table `allowance`
--

INSERT INTO `allowance` (`allowance_id`, `allowance_name`) VALUES
(1, 'HRA'),
(2, 'TA'),
(3, 'FA');

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

--
-- Table structure for table `attendance_list`
--

CREATE TABLE IF NOT EXISTS `attendance_list` (
  `attendance_list_id` int(11) NOT NULL AUTO_INCREMENT,
  `attendance_list_reason` varchar(100) NOT NULL,
  PRIMARY KEY (`attendance_list_id`)
) ENGINE=InnoDB  DEFAULT CHARSET=latin1 AUTO_INCREMENT=12 ;

--
-- Dumping data for table `attendance_list`
--

INSERT INTO `attendance_list` (`attendance_list_id`, `attendance_list_reason`) VALUES
(5, 'Absent'),
(6, 'Sick'),
(7, 'Site Finish'),
(8, 'Site Out'),
(9, 'No Site'),
(10, 'Visa Problem'),
(11, 'Medical');

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

--
-- Table structure for table `batch`
--

CREATE TABLE IF NOT EXISTS `batch` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `batch_date` date NOT NULL,
  `batch_code` varchar(20) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB  DEFAULT CHARSET=latin1 AUTO_INCREMENT=6 ;

--
-- Dumping data for table `batch`
--

INSERT INTO `batch` (`id`, `batch_date`, `batch_code`) VALUES
(4, '2011-11-22', '22-11-2011-4'),
(5, '2011-11-30', '30-11-2011-5');

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

--
-- Table structure for table `camp`
--

CREATE TABLE IF NOT EXISTS `camp` (
  `camp_id` int(5) NOT NULL AUTO_INCREMENT,
  `camp_name` varchar(200) NOT NULL,
  `camp_boss` varchar(100) NOT NULL,
  `camp_contact_no` varchar(30) NOT NULL,
  PRIMARY KEY (`camp_id`)
) ENGINE=InnoDB  DEFAULT CHARSET=latin1 AUTO_INCREMENT=7 ;

--
-- Dumping data for table `camp`
--

INSERT INTO `camp` (`camp_id`, `camp_name`, `camp_boss`, `camp_contact_no`) VALUES
(1, 'AlKhore', 'Mr Sujith S', '33447330'),
(2, 'Sanaya', 'Mr Binu V', '55524160'),
(3, 'Umm Salal Ali Old', 'Mr Michael Thomas', '55685079'),
(4, 'Um Salali New', 'Mr Das Mani', '66202713'),
(5, 'Abu Hamour', 'Mr Anil', '33252868'),
(6, 'Wakra', 'Mr Prasad', '55087168');

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

--
-- Table structure for table `camp_allotment`
--

CREATE TABLE IF NOT EXISTS `camp_allotment` (
  `camp_allotment_id` int(5) NOT NULL AUTO_INCREMENT,
  `camp_id` int(10) NOT NULL,
  `employee_id` int(10) NOT NULL,
  `camp_allotment_date` date NOT NULL,
  PRIMARY KEY (`camp_allotment_id`),
  KEY `camp_id` (`camp_id`),
  KEY `employee_id` (`employee_id`)
) ENGINE=InnoDB  DEFAULT CHARSET=latin1 AUTO_INCREMENT=4 ;

--
-- Dumping data for table `camp_allotment`
--

INSERT INTO `camp_allotment` (`camp_allotment_id`, `camp_id`, `employee_id`, `camp_allotment_date`) VALUES
(1, 6, 19, '2011-12-01'),
(2, 6, 18, '2011-12-01'),
(3, 5, 20, '2011-12-01');

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

--
-- Table structure for table `cir`
--

CREATE TABLE IF NOT EXISTS `cir` (
  `cir_id` int(11) NOT NULL AUTO_INCREMENT,
  `employee_id` int(11) NOT NULL,
  `cir_date` date NOT NULL,
  `comments` text NOT NULL,
  `cir_document_name` varchar(150) NOT NULL,
  `cir_document_file` varchar(150) NOT NULL,
  PRIMARY KEY (`cir_id`),
  KEY `employee_id` (`employee_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;

--
-- Dumping data for table `cir`
--


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

--
-- Table structure for table `deduction`
--

CREATE TABLE IF NOT EXISTS `deduction` (
  `deduction_id` int(5) NOT NULL AUTO_INCREMENT,
  `deduction_name` varchar(40) NOT NULL,
  PRIMARY KEY (`deduction_id`)
) ENGINE=InnoDB  DEFAULT CHARSET=latin1 AUTO_INCREMENT=3 ;

--
-- Dumping data for table `deduction`
--

INSERT INTO `deduction` (`deduction_id`, `deduction_name`) VALUES
(1, 'Leave'),
(2, 'Medical');

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

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

CREATE TABLE IF NOT EXISTS `designation` (
  `designation_id` int(5) NOT NULL AUTO_INCREMENT,
  `designation_name` varchar(40) NOT NULL,
  PRIMARY KEY (`designation_id`)
) ENGINE=InnoDB  DEFAULT CHARSET=latin1 AUTO_INCREMENT=6 ;

--
-- Dumping data for table `designation`
--

INSERT INTO `designation` (`designation_id`, `designation_name`) VALUES
(2, 'Admin'),
(3, 'Marketing'),
(4, 'PR'),
(5, 'HR');

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

--
-- Table structure for table `employee_absent`
--

CREATE TABLE IF NOT EXISTS `employee_absent` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `attendance_reason_id` int(11) NOT NULL,
  `employee_id` int(11) NOT NULL,
  `attendance_date` date NOT NULL,
  PRIMARY KEY (`id`),
  KEY `employee_id` (`employee_id`),
  KEY `attendance_reason_id` (`attendance_reason_id`)
) ENGINE=InnoDB  DEFAULT CHARSET=latin1 AUTO_INCREMENT=4 ;

--
-- Dumping data for table `employee_absent`
--

INSERT INTO `employee_absent` (`id`, `attendance_reason_id`, `employee_id`, `attendance_date`) VALUES
(1, 11, 20, '2011-12-01'),
(2, 5, 19, '2011-12-01'),
(3, 9, 18, '2011-12-01');

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

--
-- Table structure for table `employee_non_main`
--

CREATE TABLE IF NOT EXISTS `employee_non_main` (
  `emp_non_id` int(10) NOT NULL,
  `batch_id` int(11) NOT NULL,
  `emp_non_no` varchar(10) NOT NULL,
  `emp_non_full_name` varchar(100) NOT NULL,
  `emp_non_date_joining` date NOT NULL,
  `emp_non_nationality_id` int(5) NOT NULL,
  `emp_non_trade_id` int(5) NOT NULL,
  `emp_non_visa_type_id` int(5) NOT NULL,
  `emp_non_date_visa_issue` date NOT NULL,
  `emp_non_date_visa_expiry` date NOT NULL,
  `emp_non_visa_remind_before` int(11) NOT NULL,
  `emp_non_sponsor_id` int(5) NOT NULL,
  `emp_non_agency_id` int(5) NOT NULL,
  `emp_non_passport_no` varchar(50) NOT NULL,
  `agreement_name` varchar(200) NOT NULL,
  `agreement_doc` varchar(200) NOT NULL,
  `attestment_name` varchar(200) NOT NULL,
  `attestment_doc` varchar(200) NOT NULL,
  `emp_non_date_passport_expiry` date NOT NULL,
  `emp_non_passport_remind_before` int(5) NOT NULL,
  `active` int(1) NOT NULL DEFAULT '1',
  PRIMARY KEY (`emp_non_id`),
  UNIQUE KEY `emp_non_no` (`emp_non_no`),
  KEY `emp_non_sponsor_id` (`emp_non_sponsor_id`),
  KEY `emp_non_visa_type_id` (`emp_non_visa_type_id`),
  KEY `emp_non_trade_id` (`emp_non_trade_id`),
  KEY `emp_non_nationality_id` (`emp_non_nationality_id`),
  KEY `emp_non_agency_id` (`emp_non_agency_id`),
  KEY `batch_id` (`batch_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `employee_non_main`
--

INSERT INTO `employee_non_main` (`emp_non_id`, `batch_id`, `emp_non_no`, `emp_non_full_name`, `emp_non_date_joining`, `emp_non_nationality_id`, `emp_non_trade_id`, `emp_non_visa_type_id`, `emp_non_date_visa_issue`, `emp_non_date_visa_expiry`, `emp_non_visa_remind_before`, `emp_non_sponsor_id`, `emp_non_agency_id`, `emp_non_passport_no`, `agreement_name`, `agreement_doc`, `attestment_name`, `attestment_doc`, `emp_non_date_passport_expiry`, `emp_non_passport_remind_before`, `active`) VALUES
(18, 5, '09300000', 'Shan Abdussalam', '2011-11-30', 2, 14, 19, '2011-11-02', '2013-11-22', 3, 11, 2, 'SAC3203121321', '', '', '', '', '0000-00-00', 0, 1),
(19, 5, '09300001', 'Sachin Tendulkar', '2011-11-30', 2, 14, 19, '1970-01-01', '2013-11-22', 0, 11, 2, '3213213', '', '', '', '', '0000-00-00', 0, 1),
(20, 5, '07300000', 'khan', '2011-11-30', 2, 14, 19, '1970-01-01', '0000-00-00', 0, 10, 2, 'SAC3203121321', '', '', '', '', '0000-00-00', 0, 0);

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

--
-- Table structure for table `employee_status`
--

CREATE TABLE IF NOT EXISTS `employee_status` (
  `employee_status_id` int(11) NOT NULL AUTO_INCREMENT,
  `employee_id` int(11) NOT NULL,
  `employee_no` int(11) NOT NULL,
  `effective_date` date NOT NULL,
  `employee_status` int(11) NOT NULL,
  PRIMARY KEY (`employee_status_id`),
  KEY `employee_id` (`employee_id`)
) ENGINE=InnoDB  DEFAULT CHARSET=latin1 AUTO_INCREMENT=4 ;

--
-- Dumping data for table `employee_status`
--

INSERT INTO `employee_status` (`employee_status_id`, `employee_id`, `employee_no`, `effective_date`, `employee_status`) VALUES
(1, 18, 9300000, '2011-11-30', 1),
(2, 19, 9300001, '2011-11-30', 1),
(3, 20, 7300000, '2011-11-30', 1);

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

--
-- Table structure for table `employee_training`
--

CREATE TABLE IF NOT EXISTS `employee_training` (
  `employee_training_id` int(11) NOT NULL AUTO_INCREMENT,
  `employee_id` int(11) NOT NULL,
  `training_id` int(11) NOT NULL,
  `training_date_start` date NOT NULL,
  `training_date_end` date NOT NULL,
  `first_attempt_date` date NOT NULL,
  `second_attempt_date` date NOT NULL,
  `first_attempt_result` varchar(100) NOT NULL,
  `second_attempt_result` varchar(100) NOT NULL,
  `remarks` text NOT NULL,
  PRIMARY KEY (`employee_training_id`),
  KEY `employee_id` (`employee_id`),
  KEY `training_id` (`training_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;

--
-- Dumping data for table `employee_training`
--


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

--
-- Table structure for table `emp_non_personal`
--

CREATE TABLE IF NOT EXISTS `emp_non_personal` (
  `emp_non_id` int(11) NOT NULL,
  `emp_non_personal_dob` date NOT NULL,
  `emp_non_personal_father_name` varchar(100) NOT NULL,
  `emp_non_personal_religion_id` int(11) NOT NULL,
  `emp_non_personal_permanent_address` tinytext NOT NULL,
  `emp_non_personal_contact_no` int(11) NOT NULL,
  `emp_non_personal_nok_name` varchar(100) NOT NULL,
  `emp_non_personal_nok_contact_no` varchar(40) NOT NULL,
  `emp_non_personal_vacation_date` date NOT NULL,
  `emp_non_personal_vacation_remind_before` int(11) NOT NULL,
  `emp_non_personal_other_trade` tinytext NOT NULL,
  `photo_name` varchar(100) NOT NULL,
  `photo_doc` varchar(100) NOT NULL,
  PRIMARY KEY (`emp_non_id`),
  KEY `emp_non_personal_religion_id` (`emp_non_personal_religion_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `emp_non_personal`
--

INSERT INTO `emp_non_personal` (`emp_non_id`, `emp_non_personal_dob`, `emp_non_personal_father_name`, `emp_non_personal_religion_id`, `emp_non_personal_permanent_address`, `emp_non_personal_contact_no`, `emp_non_personal_nok_name`, `emp_non_personal_nok_contact_no`, `emp_non_personal_vacation_date`, `emp_non_personal_vacation_remind_before`, `emp_non_personal_other_trade`, `photo_name`, `photo_doc`) VALUES
(18, '1999-11-11', 'salam', 9, 'fdsafsa', 4324324, '', '', '1970-01-01', 0, '', '', '11-12-01-13-17-48shanpic.jpg'),
(19, '2011-11-30', 'fdas', 11, 'fdsafdsa', 2147483647, '', '', '0000-00-00', 0, '', '', ''),
(20, '2011-10-11', 'gfds', 8, 'fdas', 54325432, '', '', '0000-00-00', 0, '', '', '');

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

--
-- Table structure for table `exit`
--

CREATE TABLE IF NOT EXISTS `exit` (
  `exit_id` int(11) NOT NULL AUTO_INCREMENT,
  `leave_id` int(11) NOT NULL,
  `exit_date` date NOT NULL,
  `exit_permit` varchar(100) NOT NULL,
  PRIMARY KEY (`exit_id`),
  KEY `leave_id` (`leave_id`)
) ENGINE=InnoDB  DEFAULT CHARSET=latin1 AUTO_INCREMENT=2 ;

--
-- Dumping data for table `exit`
--

INSERT INTO `exit` (`exit_id`, `leave_id`, `exit_date`, `exit_permit`) VALUES
(1, 1, '2011-12-01', 'Issued');

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

--
-- Table structure for table `expected_arrival`
--

CREATE TABLE IF NOT EXISTS `expected_arrival` (
  `expected_arrival_id` int(11) NOT NULL,
  `expected_arrival_date` date NOT NULL,
  `expected_arrival_trade` int(11) NOT NULL,
  `no_employees` int(11) NOT NULL,
  `expected_arrival_nationality` int(11) NOT NULL,
  PRIMARY KEY (`expected_arrival_id`),
  KEY `expected_arrival_trade` (`expected_arrival_trade`),
  KEY `expected_arrival_nationality` (`expected_arrival_nationality`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `expected_arrival`
--

INSERT INTO `expected_arrival` (`expected_arrival_id`, `expected_arrival_date`, `expected_arrival_trade`, `no_employees`, `expected_arrival_nationality`) VALUES
(21, '2011-12-26', 17, 54, 6),
(22, '2011-12-29', 18, 670, 6);

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

--
-- Table structure for table `general_item`
--

CREATE TABLE IF NOT EXISTS `general_item` (
  `item_id` int(5) NOT NULL AUTO_INCREMENT,
  `item_name` varchar(200) NOT NULL,
  `item_shelf_life` int(20) NOT NULL,
  `item_remind_before` int(5) NOT NULL,
  PRIMARY KEY (`item_id`)
) ENGINE=InnoDB  DEFAULT CHARSET=latin1 AUTO_INCREMENT=17 ;

--
-- Dumping data for table `general_item`
--

INSERT INTO `general_item` (`item_id`, `item_name`, `item_shelf_life`, `item_remind_before`) VALUES
(9, 'Bed set', 730, 5),
(10, 'Safety shoes', 180, 10),
(11, 'Coveralls', 180, 10),
(12, 'Helmet', 90, 10),
(13, 'Gogles', 30, 10),
(14, 'Hand gloves', 100, 10),
(15, 'Tiffin Set', 730, 10),
(16, 'Safety jacket', 30, 10);

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

--
-- Table structure for table `grade`
--

CREATE TABLE IF NOT EXISTS `grade` (
  `grade_id` int(5) NOT NULL AUTO_INCREMENT,
  `grade_name` varchar(40) NOT NULL,
  PRIMARY KEY (`grade_id`)
) ENGINE=InnoDB  DEFAULT CHARSET=latin1 AUTO_INCREMENT=3 ;

--
-- Dumping data for table `grade`
--

INSERT INTO `grade` (`grade_id`, `grade_name`) VALUES
(1, 'Grade1'),
(2, 'Grade2');

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

--
-- Table structure for table `item_allotment`
--

CREATE TABLE IF NOT EXISTS `item_allotment` (
  `item_allotment_id` int(10) NOT NULL AUTO_INCREMENT,
  `item_id` int(5) NOT NULL,
  `employee_id` int(10) NOT NULL,
  `item_allotment_date` date NOT NULL,
  `item_allotment_expiry` date NOT NULL,
  `item_remind_before` int(5) NOT NULL,
  PRIMARY KEY (`item_allotment_id`),
  KEY `employee_id` (`employee_id`),
  KEY `item_id` (`item_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;

--
-- Dumping data for table `item_allotment`
--


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

--
-- Table structure for table `joining`
--

CREATE TABLE IF NOT EXISTS `joining` (
  `joining_id` int(11) NOT NULL AUTO_INCREMENT,
  `joining_caption` varchar(100) NOT NULL,
  `joining_page` varchar(200) NOT NULL,
  PRIMARY KEY (`joining_id`)
) ENGINE=MyISAM  DEFAULT CHARSET=latin1 AUTO_INCREMENT=6 ;

--
-- Dumping data for table `joining`
--

INSERT INTO `joining` (`joining_id`, `joining_caption`, `joining_page`) VALUES
(1, 'New Batch', 'addformdisplay(''add_new_batch'',''Onboarding'')'),
(2, 'Add Employees to Existing Batch', 'viewdata(''onboarding'',''viewinonboardingsearch'',''search_batch'',''view_batch'',''1'')'),
(3, 'Employee List', 'viewdata(''onboarding'',''viewinonboardingsearch'',''search_employee_joining'',''view_employee_joining'',''1'')'),
(4, 'Employee Checklist', 'viewdata(''onboarding'',''viewinonboardingsearch'',''search_batch'',''view_batch_checklist'',''1'')'),
(5, 'Employee Rejoining', 'viewdata(''onboarding'',''viewinonboardingsearch'',''search_employee_rejoining'',''view_employee_rejoining'',''1'')');

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

--
-- Table structure for table `leave`
--

CREATE TABLE IF NOT EXISTS `leave` (
  `leave_id` int(11) NOT NULL AUTO_INCREMENT,
  `leave_type_id` int(11) NOT NULL,
  `leave_reason` varchar(100) NOT NULL,
  `leave_starting_date` date NOT NULL,
  `leave_ending_date` date NOT NULL,
  `leave_ticket` varchar(50) NOT NULL,
  `remarks` text NOT NULL,
  `employee_id` int(11) NOT NULL,
  `leave_from` varchar(100) NOT NULL,
  `leave_to` varchar(100) NOT NULL,
  `leave_application_form_name` varchar(100) NOT NULL,
  `leave_application_form_doc` varchar(100) NOT NULL,
  `proof_emergency_name` varchar(100) NOT NULL,
  `proof_emergency_doc` varchar(100) NOT NULL,
  `clearence_form_name` varchar(100) NOT NULL,
  `clearence_form_doc` varchar(100) NOT NULL,
  `self_declaration_name` varchar(100) NOT NULL,
  `self_declaration_doc` varchar(100) NOT NULL,
  `settlement_sheet_name` varchar(100) NOT NULL,
  `settlement_sheet_doc` varchar(100) NOT NULL,
  `leave_status` varchar(20) NOT NULL,
  PRIMARY KEY (`leave_id`),
  KEY `employee_id` (`employee_id`),
  KEY `leave_type_id` (`leave_type_id`)
) ENGINE=InnoDB  DEFAULT CHARSET=latin1 AUTO_INCREMENT=2 ;

--
-- Dumping data for table `leave`
--

INSERT INTO `leave` (`leave_id`, `leave_type_id`, `leave_reason`, `leave_starting_date`, `leave_ending_date`, `leave_ticket`, `remarks`, `employee_id`, `leave_from`, `leave_to`, `leave_application_form_name`, `leave_application_form_doc`, `proof_emergency_name`, `proof_emergency_doc`, `clearence_form_name`, `clearence_form_doc`, `self_declaration_name`, `self_declaration_doc`, `settlement_sheet_name`, `settlement_sheet_doc`, `leave_status`) VALUES
(1, 2, 'Personal problems', '2011-12-01', '2012-01-13', 'Self Arrangement', 'test', 20, '', '', '', '', '', '', '', '', '', '', '', '', 'Approved');

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

--
-- Table structure for table `leave_type`
--

CREATE TABLE IF NOT EXISTS `leave_type` (
  `leave_type_id` int(5) NOT NULL AUTO_INCREMENT,
  `leave_type_name` varchar(30) NOT NULL,
  PRIMARY KEY (`leave_type_id`)
) ENGINE=InnoDB  DEFAULT CHARSET=latin1 AUTO_INCREMENT=4 ;

--
-- Dumping data for table `leave_type`
--

INSERT INTO `leave_type` (`leave_type_id`, `leave_type_name`) VALUES
(1, 'Emergency'),
(2, 'Vacation'),
(3, 'Cancel / Exit');

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

--
-- Table structure for table `login_details`
--

CREATE TABLE IF NOT EXISTS `login_details` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `profile` varchar(30) DEFAULT NULL,
  `username` varchar(30) DEFAULT NULL,
  `password` varchar(32) DEFAULT NULL,
  `login_time` datetime NOT NULL,
  `faillog_count` varchar(11) DEFAULT NULL,
  `userid` varchar(11) DEFAULT NULL,
  `failing_time` datetime NOT NULL,
  `ip_address` varchar(16) NOT NULL,
  `status` varchar(8) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM  DEFAULT CHARSET=latin1 AUTO_INCREMENT=347 ;

--
-- Dumping data for table `login_details`
--

INSERT INTO `login_details` (`id`, `profile`, `username`, `password`, `login_time`, `faillog_count`, `userid`, `failing_time`, `ip_address`, `status`) VALUES
(1, '1', 'admin', '21232f297a57a5a743894a0e4a801fc3', '2011-10-07 14:05:35', NULL, '1', '0000-00-00 00:00:00', '127.0.0.1', 'Success'),
(5, 'NULL', 'admin', 'admin', '2011-10-08 10:28:00', NULL, 'NULL', '2011-10-08 10:28:00', '192.168.1.118', 'failed'),
(4, 'NULL', 'admin', 'admin', '2011-10-08 10:27:56', NULL, 'NULL', '2011-10-08 10:27:56', '192.168.1.118', 'failed'),
(6, '1', 'admin', '21232f297a57a5a743894a0e4a801fc3', '2011-10-08 10:28:50', NULL, '1', '0000-00-00 00:00:00', '192.168.1.118', 'Success'),
(7, '1', 'admin', '21232f297a57a5a743894a0e4a801fc3', '2011-10-08 10:39:16', NULL, '1', '0000-00-00 00:00:00', '192.168.1.118', 'Success'),
(8, '1', 'admin', '21232f297a57a5a743894a0e4a801fc3', '2011-10-08 10:52:17', NULL, '1', '0000-00-00 00:00:00', '192.168.1.118', 'Success'),
(9, '1', 'admin', '21232f297a57a5a743894a0e4a801fc3', '2011-10-08 11:49:00', NULL, '1', '0000-00-00 00:00:00', '192.168.1.118', 'Success'),
(10, '1', 'admin', '21232f297a57a5a743894a0e4a801fc3', '2011-10-08 12:36:01', NULL, '1', '0000-00-00 00:00:00', '192.168.1.118', 'Success'),
(11, '1', 'admin', '21232f297a57a5a743894a0e4a801fc3', '2011-10-08 12:39:01', NULL, '1', '0000-00-00 00:00:00', '192.168.1.118', 'Success'),
(12, '1', 'admin', '21232f297a57a5a743894a0e4a801fc3', '2011-10-08 14:48:24', NULL, '1', '0000-00-00 00:00:00', '192.168.1.118', 'Success'),
(13, '1', 'admin', '21232f297a57a5a743894a0e4a801fc3', '2011-10-08 15:27:39', NULL, '1', '0000-00-00 00:00:00', '192.168.1.118', 'Success'),
(14, '1', 'admin', '21232f297a57a5a743894a0e4a801fc3', '2011-10-08 17:39:30', NULL, '1', '0000-00-00 00:00:00', '192.168.1.118', 'Success'),
(15, '1', 'admin', '21232f297a57a5a743894a0e4a801fc3', '2011-10-08 17:40:27', NULL, '1', '0000-00-00 00:00:00', '192.168.1.118', 'Success'),
(16, '1', 'admin', '21232f297a57a5a743894a0e4a801fc3', '2011-10-08 17:41:15', NULL, '1', '0000-00-00 00:00:00', '192.168.1.118', 'Success'),
(17, '1', 'admin', '21232f297a57a5a743894a0e4a801fc3', '2011-10-08 17:42:10', NULL, '1', '0000-00-00 00:00:00', '192.168.1.118', 'Success'),
(18, '1', 'admin', '21232f297a57a5a743894a0e4a801fc3', '2011-10-08 17:43:00', NULL, '1', '0000-00-00 00:00:00', '192.168.1.118', 'Success'),
(19, '1', 'admin', '21232f297a57a5a743894a0e4a801fc3', '2011-10-08 17:51:26', NULL, '1', '0000-00-00 00:00:00', '192.168.1.118', 'Success'),
(20, '1', 'admin', '21232f297a57a5a743894a0e4a801fc3', '2011-10-08 18:00:21', NULL, '1', '0000-00-00 00:00:00', '192.168.1.118', 'Success'),
(21, '1', 'admin', '21232f297a57a5a743894a0e4a801fc3', '2011-10-08 18:12:05', NULL, '1', '0000-00-00 00:00:00', '122.166.153.79', 'Success'),
(22, '1', 'admin', '21232f297a57a5a743894a0e4a801fc3', '2011-10-08 18:42:10', NULL, '1', '0000-00-00 00:00:00', '78.101.189.168', 'Success'),
(23, '1', 'admin', '21232f297a57a5a743894a0e4a801fc3', '2011-10-08 19:07:35', NULL, '1', '0000-00-00 00:00:00', '122.166.153.79', 'Success'),
(24, '1', 'admin', '21232f297a57a5a743894a0e4a801fc3', '2011-10-08 19:07:45', NULL, '1', '0000-00-00 00:00:00', '122.166.153.79', 'Success'),
(25, '1', 'admin', '21232f297a57a5a743894a0e4a801fc3', '2011-10-08 19:15:52', NULL, '1', '0000-00-00 00:00:00', '78.101.189.168', 'Success'),
(26, 'NULL', '', '', '2011-10-08 19:15:52', NULL, 'NULL', '2011-10-08 19:15:52', '0', 'failed'),
(27, '1', 'admin', '21232f297a57a5a743894a0e4a801fc3', '2011-10-08 19:36:01', NULL, '1', '0000-00-00 00:00:00', '122.166.153.79', 'Success'),
(28, '1', 'admin', '21232f297a57a5a743894a0e4a801fc3', '2011-10-09 01:21:10', NULL, '1', '0000-00-00 00:00:00', '89.211.239.151', 'Success'),
(29, '1', 'admin', '21232f297a57a5a743894a0e4a801fc3', '2011-10-09 02:10:27', NULL, '1', '0000-00-00 00:00:00', '89.211.239.151', 'Success'),
(30, '1', 'admin', '21232f297a57a5a743894a0e4a801fc3', '2011-10-09 14:16:21', NULL, '1', '0000-00-00 00:00:00', '89.211.239.151', 'Success'),
(31, '1', 'admin', '21232f297a57a5a743894a0e4a801fc3', '2011-10-09 17:28:50', NULL, '1', '0000-00-00 00:00:00', '122.166.155.66', 'Success'),
(32, '1', 'admin', '21232f297a57a5a743894a0e4a801fc3', '2011-10-10 10:18:45', NULL, '1', '0000-00-00 00:00:00', '192.168.1.118', 'Success'),
(33, '1', 'admin', '21232f297a57a5a743894a0e4a801fc3', '2011-10-10 11:07:45', NULL, '1', '0000-00-00 00:00:00', '192.168.1.115', 'Success'),
(34, '1', 'admin', '21232f297a57a5a743894a0e4a801fc3', '2011-10-10 12:14:22', NULL, '1', '0000-00-00 00:00:00', '192.168.1.118', 'Success'),
(35, '1', 'admin', '21232f297a57a5a743894a0e4a801fc3', '2011-10-10 12:39:55', NULL, '1', '0000-00-00 00:00:00', '192.168.1.118', 'Success'),
(36, '1', 'admin', '21232f297a57a5a743894a0e4a801fc3', '2011-10-10 13:46:22', NULL, '1', '0000-00-00 00:00:00', '192.168.1.118', 'Success'),
(37, '1', 'admin', '21232f297a57a5a743894a0e4a801fc3', '2011-10-10 13:46:41', NULL, '1', '0000-00-00 00:00:00', '192.168.1.118', 'Success'),
(38, '1', 'admin', '21232f297a57a5a743894a0e4a801fc3', '2011-10-10 15:28:24', NULL, '1', '0000-00-00 00:00:00', '192.168.1.118', 'Success'),
(39, '1', 'admin', '21232f297a57a5a743894a0e4a801fc3', '2011-10-10 18:42:42', NULL, '1', '0000-00-00 00:00:00', '192.168.1.118', 'Success'),
(40, '1', 'shan', 'shan', '2011-10-10 20:21:14', NULL, '3', '2011-10-10 20:21:14', '192.168.1.118', 'failed'),
(41, '1', 'shan', 'shan', '2011-10-10 20:21:19', NULL, '3', '2011-10-10 20:21:19', '192.168.1.118', 'failed'),
(42, '1', 'admin', '21232f297a57a5a743894a0e4a801fc3', '2011-10-10 20:29:15', NULL, '1', '0000-00-00 00:00:00', '192.168.1.118', 'Success'),
(43, '1', 'shan', 'shan', '2011-10-10 20:31:51', NULL, '4', '2011-10-10 20:31:51', '192.168.1.118', 'failed'),
(44, '1', 'admin', '21232f297a57a5a743894a0e4a801fc3', '2011-10-10 20:32:27', NULL, '1', '0000-00-00 00:00:00', '192.168.1.118', 'Success'),
(45, '1', 'admin', '21232f297a57a5a743894a0e4a801fc3', '2011-10-11 12:17:33', NULL, '1', '0000-00-00 00:00:00', '192.168.1.118', 'Success'),
(46, '1', 'admin', '21232f297a57a5a743894a0e4a801fc3', '2011-10-11 14:09:22', NULL, '1', '0000-00-00 00:00:00', '192.168.1.118', 'Success'),
(47, '1', 'admin', '21232f297a57a5a743894a0e4a801fc3', '2011-10-11 17:10:37', NULL, '1', '0000-00-00 00:00:00', '192.168.1.118', 'Success'),
(48, '1', 'admin', '21232f297a57a5a743894a0e4a801fc3', '2011-10-12 09:56:41', NULL, '1', '0000-00-00 00:00:00', '192.168.1.118', 'Success'),
(49, '1', 'shan', '3e119ab537d3c4cc0c31b9277bfd785e', '2011-10-12 12:46:36', NULL, '1', '0000-00-00 00:00:00', '192.168.1.118', 'Success'),
(50, '1', 'admin', '21232f297a57a5a743894a0e4a801fc3', '2011-10-12 14:39:40', NULL, '2', '0000-00-00 00:00:00', '192.168.1.118', 'Success'),
(51, '1', 'admin', '21232f297a57a5a743894a0e4a801fc3', '2011-10-12 17:47:42', NULL, '2', '0000-00-00 00:00:00', '192.168.1.118', 'Success'),
(52, '1', 'shan', 'shan', '2011-10-12 17:50:31', NULL, '1', '2011-10-12 17:50:31', '192.168.1.118', 'failed'),
(53, '1', 'shan', 'shan', '2011-10-12 17:50:34', NULL, '1', '2011-10-12 17:50:34', '192.168.1.118', 'failed'),
(54, '1', 'admin', '21232f297a57a5a743894a0e4a801fc3', '2011-10-12 17:50:35', NULL, '2', '0000-00-00 00:00:00', '192.168.1.118', 'Success'),
(55, '1', 'shan', '3e119ab537d3c4cc0c31b9277bfd785e', '2011-10-12 17:50:48', NULL, '1', '0000-00-00 00:00:00', '192.168.1.118', 'Success'),
(56, '1', 'admin', '21232f297a57a5a743894a0e4a801fc3', '2011-10-12 17:51:22', NULL, '2', '0000-00-00 00:00:00', '192.168.1.118', 'Success'),
(57, '1', 'admin', '21232f297a57a5a743894a0e4a801fc3', '2011-10-13 08:58:42', NULL, '2', '0000-00-00 00:00:00', '192.168.1.118', 'Success'),
(58, '1', 'admin', '21232f297a57a5a743894a0e4a801fc3', '2011-10-13 09:14:36', NULL, '2', '0000-00-00 00:00:00', '192.168.1.118', 'Success'),
(59, '1', 'admin', '21232f297a57a5a743894a0e4a801fc3', '2011-10-13 10:16:35', NULL, '2', '0000-00-00 00:00:00', '192.168.1.4', 'Success'),
(60, '1', 'admin', '21232f297a57a5a743894a0e4a801fc3', '2011-10-14 09:46:13', NULL, '2', '0000-00-00 00:00:00', '192.168.1.118', 'Success'),
(61, '1', 'admin', '21232f297a57a5a743894a0e4a801fc3', '2011-10-14 09:46:42', NULL, '2', '0000-00-00 00:00:00', '192.168.1.118', 'Success'),
(62, '1', 'admin', '21232f297a57a5a743894a0e4a801fc3', '2011-10-14 10:27:48', NULL, '2', '0000-00-00 00:00:00', '192.168.1.118', 'Success'),
(63, '1', 'admin', '21232f297a57a5a743894a0e4a801fc3', '2011-10-14 10:31:18', NULL, '2', '0000-00-00 00:00:00', '192.168.1.3', 'Success'),
(64, '1', 'shan', 'shan', '2011-10-14 10:48:12', NULL, '1', '2011-10-14 10:48:12', '192.168.1.118', 'failed'),
(65, '1', 'shan', 'shan', '2011-10-14 10:48:16', NULL, '1', '2011-10-14 10:48:16', '192.168.1.118', 'failed'),
(66, '1', 'admin', '21232f297a57a5a743894a0e4a801fc3', '2011-10-14 10:48:19', NULL, '2', '0000-00-00 00:00:00', '192.168.1.118', 'Success'),
(67, '1', 'admin', '21232f297a57a5a743894a0e4a801fc3', '2011-10-14 10:49:12', NULL, '2', '0000-00-00 00:00:00', '192.168.1.118', 'Success'),
(68, '1', 'shan', '3e119ab537d3c4cc0c31b9277bfd785e', '2011-10-14 11:13:06', NULL, '3', '0000-00-00 00:00:00', '192.168.1.118', 'Success'),
(69, '1', 'admin', 'admin', '2011-10-14 14:07:37', NULL, '2', '2011-10-14 14:07:37', '192.168.1.118', 'failed'),
(70, '1', 'admin', 'admin', '2011-10-14 14:07:40', NULL, '2', '2011-10-14 14:07:40', '192.168.1.118', 'failed'),
(71, '1', 'admin', 'admin', '2011-10-14 14:07:42', NULL, '2', '2011-10-14 14:07:42', '192.168.1.118', 'failed'),
(72, '1', 'admin', 'admin', '2011-10-14 14:07:43', NULL, '2', '2011-10-14 14:07:43', '192.168.1.118', 'failed'),
(73, '1', 'admin', 'admin', '2011-10-14 14:07:47', NULL, '2', '2011-10-14 14:07:47', '192.168.1.118', 'failed'),
(74, '1', 'admin', 'admin', '2011-10-14 14:07:50', NULL, '2', '2011-10-14 14:07:50', '192.168.1.118', 'failed'),
(75, '1', 'admin', 'admin', '2011-10-14 14:09:18', NULL, '2', '2011-10-14 14:09:18', '192.168.1.118', 'failed'),
(76, '1', 'admin', '21232f297a57a5a743894a0e4a801fc3', '2011-10-14 14:10:15', NULL, '2', '0000-00-00 00:00:00', '192.168.1.118', 'Success'),
(77, '1', 'admin', '21232f297a57a5a743894a0e4a801fc3', '2011-10-14 14:10:18', NULL, '2', '0000-00-00 00:00:00', '192.168.1.118', 'Success'),
(78, '1', 'admin', '21232f297a57a5a743894a0e4a801fc3', '2011-10-14 15:00:36', NULL, '2', '0000-00-00 00:00:00', '192.168.1.118', 'Success'),
(79, '1', 'admin', '21232f297a57a5a743894a0e4a801fc3', '2011-10-14 15:01:20', NULL, '2', '0000-00-00 00:00:00', '192.168.1.118', 'Success'),
(80, '1', 'admin', '21232f297a57a5a743894a0e4a801fc3', '2011-10-14 15:56:28', NULL, '2', '0000-00-00 00:00:00', '192.168.1.118', 'Success'),
(81, '1', 'admin', 'shan', '2011-10-14 16:00:55', NULL, '2', '2011-10-14 16:00:55', '192.168.1.118', 'failed'),
(82, '1', 'admin', 'shan', '2011-10-14 16:00:58', NULL, '2', '2011-10-14 16:00:58', '192.168.1.118', 'failed'),
(83, '1', 'admin', 'admin', '2011-10-14 16:01:20', NULL, '2', '2011-10-14 16:01:20', '192.168.1.118', 'failed'),
(84, '1', 'admin', 'admin', '2011-10-14 16:01:22', NULL, '2', '2011-10-14 16:01:22', '192.168.1.118', 'failed'),
(85, '1', 'admin', '21232f297a57a5a743894a0e4a801fc3', '2011-10-14 16:01:40', NULL, '2', '0000-00-00 00:00:00', '192.168.1.118', 'Success'),
(86, '1', 'admin', '3e119ab537d3c4cc0c31b9277bfd785e', '2011-10-14 16:01:49', NULL, '2', '0000-00-00 00:00:00', '192.168.1.118', 'Success'),
(87, '1', 'shan', 'test', '2011-10-14 16:05:11', NULL, '3', '2011-10-14 16:05:11', '192.168.1.118', 'failed'),
(88, '1', 'shan', 'test', '2011-10-14 16:05:16', NULL, '3', '2011-10-14 16:05:16', '192.168.1.118', 'failed'),
(89, '1', 'admin', 'admin', '2011-10-14 16:05:35', NULL, '2', '2011-10-14 16:05:35', '192.168.1.118', 'failed'),
(90, '1', 'admin', '098f6bcd4621d373cade4e832627b4f6', '2011-10-14 16:05:38', NULL, '2', '0000-00-00 00:00:00', '192.168.1.118', 'Success'),
(91, '1', 'shan', '098f6bcd4621d373cade4e832627b4f6', '2011-10-14 16:05:59', NULL, '3', '0000-00-00 00:00:00', '192.168.1.118', 'Success'),
(92, '1', 'admin', 'shan', '2011-10-14 16:06:02', NULL, '2', '2011-10-14 16:06:02', '192.168.1.118', 'failed'),
(93, '1', 'admin', '21232f297a57a5a743894a0e4a801fc3', '2011-10-14 16:06:05', NULL, '2', '0000-00-00 00:00:00', '192.168.1.118', 'Success'),
(94, '1', 'admin', '21232f297a57a5a743894a0e4a801fc3', '2011-10-14 16:10:29', NULL, '2', '0000-00-00 00:00:00', '192.168.1.3', 'Success'),
(95, '1', 'admin', 'test', '2011-10-14 18:47:18', NULL, '2', '2011-10-14 18:47:18', '192.168.1.118', 'failed'),
(96, '1', 'admin', '21232f297a57a5a743894a0e4a801fc3', '2011-10-14 18:47:21', NULL, '2', '0000-00-00 00:00:00', '192.168.1.118', 'Success'),
(97, '1', 'admin', '21232f297a57a5a743894a0e4a801fc3', '2011-10-14 20:46:18', NULL, '2', '0000-00-00 00:00:00', '192.168.1.118', 'Success'),
(98, '1', 'admin', '21232f297a57a5a743894a0e4a801fc3', '2011-10-15 09:36:46', NULL, '2', '0000-00-00 00:00:00', '192.168.1.118', 'Success'),
(99, '1', 'admin', '21232f297a57a5a743894a0e4a801fc3', '2011-10-15 11:43:21', NULL, '2', '0000-00-00 00:00:00', '192.168.1.118', 'Success'),
(100, '1', 'admin', '21232f297a57a5a743894a0e4a801fc3', '2011-10-15 11:46:05', NULL, '2', '0000-00-00 00:00:00', '192.168.1.118', 'Success'),
(101, '1', 'admin', '21232f297a57a5a743894a0e4a801fc3', '2011-10-15 12:14:25', NULL, '2', '0000-00-00 00:00:00', '192.168.1.118', 'Success'),
(102, '1', 'admin', '21232f297a57a5a743894a0e4a801fc3', '2011-10-15 20:23:57', NULL, '2', '0000-00-00 00:00:00', '192.168.1.118', 'Success'),
(103, '1', 'admin', '21232f297a57a5a743894a0e4a801fc3', '2011-10-16 15:36:35', NULL, '2', '0000-00-00 00:00:00', '192.168.1.118', 'Success'),
(104, '1', 'admin', '21232f297a57a5a743894a0e4a801fc3', '2011-10-16 17:32:08', NULL, '2', '0000-00-00 00:00:00', '192.168.1.118', 'Success'),
(105, '10', 'hra', 'b849ebfa6f27b964d744ea625ac48618', '2011-10-16 18:07:40', NULL, '4', '0000-00-00 00:00:00', '192.168.1.118', 'Success'),
(106, '1', 'admin', '21232f297a57a5a743894a0e4a801fc3', '2011-10-16 18:07:45', NULL, '2', '0000-00-00 00:00:00', '192.168.1.118', 'Success'),
(107, '1', 'admin', '21232f297a57a5a743894a0e4a801fc3', '2011-10-17 10:26:28', NULL, '2', '0000-00-00 00:00:00', '192.168.1.118', 'Success'),
(108, '1', 'admin', '21232f297a57a5a743894a0e4a801fc3', '2011-10-17 15:55:34', NULL, '2', '0000-00-00 00:00:00', '192.168.1.118', 'Success'),
(109, '1', 'admin', '21232f297a57a5a743894a0e4a801fc3', '2011-10-17 16:40:00', NULL, '2', '0000-00-00 00:00:00', '192.168.1.118', 'Success'),
(110, '1', 'admin', '21232f297a57a5a743894a0e4a801fc3', '2011-10-18 15:41:30', NULL, '2', '0000-00-00 00:00:00', '192.168.1.118', 'Success'),
(111, '1', 'admin', '21232f297a57a5a743894a0e4a801fc3', '2011-10-18 16:02:46', NULL, '2', '0000-00-00 00:00:00', '192.168.1.118', 'Success'),
(112, '1', 'admin', '21232f297a57a5a743894a0e4a801fc3', '2011-10-18 18:04:05', NULL, '2', '0000-00-00 00:00:00', '192.168.1.118', 'Success'),
(113, '1', 'admin', '21232f297a57a5a743894a0e4a801fc3', '2011-10-19 09:23:16', NULL, '2', '0000-00-00 00:00:00', '192.168.1.118', 'Success'),
(114, '1', 'admin', '21232f297a57a5a743894a0e4a801fc3', '2011-10-19 11:31:28', NULL, '2', '0000-00-00 00:00:00', '192.168.1.118', 'Success'),
(115, '1', 'admin', '21232f297a57a5a743894a0e4a801fc3', '2011-10-19 14:15:38', NULL, '2', '0000-00-00 00:00:00', '192.168.1.118', 'Success'),
(116, '1', 'admin', 'admin', '2011-10-20 10:19:57', NULL, '2', '2011-10-20 10:19:57', '192.168.1.118', 'failed'),
(117, '1', 'admin', 'admin', '2011-10-20 10:20:00', NULL, '2', '2011-10-20 10:20:00', '192.168.1.118', 'failed'),
(118, '1', 'admin', 'admin', '2011-10-20 10:20:02', NULL, '2', '2011-10-20 10:20:02', '192.168.1.118', 'failed'),
(119, '1', 'admin', 'admin', '2011-10-20 10:20:46', NULL, '2', '2011-10-20 10:20:46', '192.168.1.118', 'failed'),
(120, '1', 'admin', '21232f297a57a5a743894a0e4a801fc3', '2011-10-20 10:25:59', NULL, '2', '0000-00-00 00:00:00', '192.168.1.118', 'Success'),
(121, '1', 'admin', '21232f297a57a5a743894a0e4a801fc3', '2011-10-20 11:27:42', NULL, '2', '0000-00-00 00:00:00', '192.168.1.118', 'Success'),
(122, '1', 'admin', '21232f297a57a5a743894a0e4a801fc3', '2011-10-20 13:43:34', NULL, '2', '0000-00-00 00:00:00', '192.168.1.118', 'Success'),
(123, '1', 'admin', '21232f297a57a5a743894a0e4a801fc3', '2011-10-20 15:08:53', NULL, '2', '0000-00-00 00:00:00', '192.168.1.118', 'Success'),
(124, '1', 'admin', '21232f297a57a5a743894a0e4a801fc3', '2011-10-20 16:45:09', NULL, '2', '0000-00-00 00:00:00', '192.168.1.118', 'Success'),
(125, '1', 'admin', '21232f297a57a5a743894a0e4a801fc3', '2011-10-20 18:06:39', NULL, '2', '0000-00-00 00:00:00', '192.168.1.118', 'Success'),
(126, '1', 'admin', '21232f297a57a5a743894a0e4a801fc3', '2011-10-20 19:37:51', NULL, '2', '0000-00-00 00:00:00', '192.168.1.118', 'Success'),
(127, '1', 'admin', '21232f297a57a5a743894a0e4a801fc3', '2011-10-21 15:43:11', NULL, '2', '0000-00-00 00:00:00', '192.168.1.118', 'Success'),
(128, '1', 'admin', '21232f297a57a5a743894a0e4a801fc3', '2011-10-21 17:27:19', NULL, '2', '0000-00-00 00:00:00', '192.168.1.118', 'Success'),
(129, '1', 'admin', '21232f297a57a5a743894a0e4a801fc3', '2011-10-21 17:40:43', NULL, '2', '0000-00-00 00:00:00', '192.168.1.118', 'Success'),
(130, '1', 'admin', '21232f297a57a5a743894a0e4a801fc3', '2011-10-21 19:15:33', NULL, '2', '0000-00-00 00:00:00', '192.168.1.118', 'Success'),
(131, '1', 'admin', '21232f297a57a5a743894a0e4a801fc3', '2011-10-22 11:13:25', NULL, '2', '0000-00-00 00:00:00', '192.168.1.118', 'Success'),
(132, '1', 'admin', '21232f297a57a5a743894a0e4a801fc3', '2011-10-22 12:58:54', NULL, '2', '0000-00-00 00:00:00', '192.168.1.118', 'Success'),
(133, '1', 'admin', '21232f297a57a5a743894a0e4a801fc3', '2011-10-22 14:16:09', NULL, '2', '0000-00-00 00:00:00', '192.168.1.118', 'Success'),
(134, '1', 'admin', '21232f297a57a5a743894a0e4a801fc3', '2011-10-22 16:10:24', NULL, '2', '0000-00-00 00:00:00', '192.168.1.118', 'Success'),
(135, '1', 'admin', '21232f297a57a5a743894a0e4a801fc3', '2011-10-24 14:41:08', NULL, '2', '0000-00-00 00:00:00', '192.168.1.118', 'Success'),
(136, '1', 'admin', '21232f297a57a5a743894a0e4a801fc3', '2011-10-24 19:02:21', NULL, '2', '0000-00-00 00:00:00', '192.168.1.118', 'Success'),
(137, '1', 'admin', '21232f297a57a5a743894a0e4a801fc3', '2011-10-25 09:30:31', NULL, '2', '0000-00-00 00:00:00', '192.168.1.118', 'Success'),
(138, '1', 'admin', '21232f297a57a5a743894a0e4a801fc3', '2011-10-25 10:15:07', NULL, '2', '0000-00-00 00:00:00', '192.168.1.118', 'Success'),
(139, '1', 'admin', '21232f297a57a5a743894a0e4a801fc3', '2011-10-25 11:15:07', NULL, '2', '0000-00-00 00:00:00', '192.168.1.118', 'Success'),
(140, '1', 'admin', '21232f297a57a5a743894a0e4a801fc3', '2011-10-25 12:31:54', NULL, '2', '0000-00-00 00:00:00', '192.168.1.118', 'Success'),
(141, '1', 'admin', '21232f297a57a5a743894a0e4a801fc3', '2011-10-25 13:59:51', NULL, '2', '0000-00-00 00:00:00', '192.168.1.118', 'Success'),
(142, '1', 'admin', '21232f297a57a5a743894a0e4a801fc3', '2011-10-25 16:48:15', NULL, '2', '0000-00-00 00:00:00', '192.168.1.118', 'Success'),
(143, '1', 'admin', '21232f297a57a5a743894a0e4a801fc3', '2011-10-26 10:23:45', NULL, '2', '0000-00-00 00:00:00', '192.168.1.118', 'Success'),
(144, '1', 'admin', '21232f297a57a5a743894a0e4a801fc3', '2011-10-26 12:10:01', NULL, '2', '0000-00-00 00:00:00', '192.168.1.118', 'Success'),
(145, '1', 'admin', '21232f297a57a5a743894a0e4a801fc3', '2011-10-26 14:00:34', NULL, '2', '0000-00-00 00:00:00', '192.168.1.118', 'Success'),
(146, '1', 'admin', '21232f297a57a5a743894a0e4a801fc3', '2011-10-26 16:12:59', NULL, '2', '0000-00-00 00:00:00', '122.166.148.182', 'Success'),
(147, '1', 'admin', '21232f297a57a5a743894a0e4a801fc3', '2011-10-26 16:46:25', NULL, '2', '0000-00-00 00:00:00', '78.100.31.113', 'Success'),
(148, '1', 'admin', '21232f297a57a5a743894a0e4a801fc3', '2011-10-26 16:56:51', NULL, '2', '0000-00-00 00:00:00', '122.166.148.182', 'Success'),
(149, '1', 'admin', '21232f297a57a5a743894a0e4a801fc3', '2011-10-26 17:14:57', NULL, '2', '0000-00-00 00:00:00', '78.100.31.113', 'Success'),
(150, '1', 'admin', '21232f297a57a5a743894a0e4a801fc3', '2011-10-26 17:42:31', NULL, '2', '0000-00-00 00:00:00', '78.101.30.199', 'Success'),
(151, '1', 'admin', '21232f297a57a5a743894a0e4a801fc3', '2011-10-26 18:05:10', NULL, '2', '0000-00-00 00:00:00', '78.100.31.113', 'Success'),
(152, '1', 'admin', '21232f297a57a5a743894a0e4a801fc3', '2011-10-26 18:08:45', NULL, '2', '0000-00-00 00:00:00', '78.101.30.199', 'Success'),
(153, '1', 'admin', '21232f297a57a5a743894a0e4a801fc3', '2011-10-26 19:25:22', NULL, '2', '0000-00-00 00:00:00', '178.152.109.151', 'Success'),
(154, '1', 'admin', '21232f297a57a5a743894a0e4a801fc3', '2011-10-27 10:34:21', NULL, '2', '0000-00-00 00:00:00', '78.101.28.155', 'Success'),
(155, '1', 'admin', '21232f297a57a5a743894a0e4a801fc3', '2011-10-27 10:52:53', NULL, '2', '0000-00-00 00:00:00', '78.101.28.155', 'Success'),
(156, '1', 'admin', '21232f297a57a5a743894a0e4a801fc3', '2011-10-27 11:03:57', NULL, '2', '0000-00-00 00:00:00', '78.101.28.155', 'Success'),
(157, '1', 'admin', '21232f297a57a5a743894a0e4a801fc3', '2011-10-27 11:13:18', NULL, '2', '0000-00-00 00:00:00', '178.152.83.167', 'Success'),
(158, '1', 'admin', 'admi', '2011-10-27 11:34:19', NULL, '2', '2011-10-27 11:34:19', '78.101.28.155', 'failed'),
(159, '1', 'admin', '21232f297a57a5a743894a0e4a801fc3', '2011-10-27 11:34:28', NULL, '2', '0000-00-00 00:00:00', '78.101.28.155', 'Success'),
(160, '1', 'admin', '21232f297a57a5a743894a0e4a801fc3', '2011-10-27 11:50:54', NULL, '2', '0000-00-00 00:00:00', '178.152.83.167', 'Success'),
(161, '1', 'admin', '21232f297a57a5a743894a0e4a801fc3', '2011-10-27 12:03:03', NULL, '2', '0000-00-00 00:00:00', '178.152.53.167', 'Success'),
(162, '1', 'admin', '21232f297a57a5a743894a0e4a801fc3', '2011-10-27 12:08:12', NULL, '2', '0000-00-00 00:00:00', '178.152.83.167', 'Success'),
(163, '1', 'admin', '21232f297a57a5a743894a0e4a801fc3', '2011-10-27 13:59:45', NULL, '2', '0000-00-00 00:00:00', '178.152.108.8', 'Success'),
(164, '1', 'admin', '21232f297a57a5a743894a0e4a801fc3', '2011-10-27 19:32:27', NULL, '2', '0000-00-00 00:00:00', '178.152.83.167', 'Success'),
(165, '1', 'admin', '21232f297a57a5a743894a0e4a801fc3', '2011-10-28 01:47:31', NULL, '2', '0000-00-00 00:00:00', '178.152.83.167', 'Success'),
(166, '1', 'admin', '21232f297a57a5a743894a0e4a801fc3', '2011-10-29 11:42:20', NULL, '2', '0000-00-00 00:00:00', '122.166.150.62', 'Success'),
(167, '1', 'admin', '21232f297a57a5a743894a0e4a801fc3', '2011-10-29 12:01:54', NULL, '2', '0000-00-00 00:00:00', '178.152.83.167', 'Success'),
(168, '1', 'admin', '21232f297a57a5a743894a0e4a801fc3', '2011-10-29 13:19:14', NULL, '2', '0000-00-00 00:00:00', '178.152.196.172', 'Success'),
(169, '1', 'admin', '21232f297a57a5a743894a0e4a801fc3', '2011-10-29 13:19:15', NULL, '2', '0000-00-00 00:00:00', '178.152.196.172', 'Success'),
(170, '1', 'admin', '21232f297a57a5a743894a0e4a801fc3', '2011-10-29 13:47:18', NULL, '2', '0000-00-00 00:00:00', '78.101.50.203', 'Success'),
(171, '1', 'admin', '21232f297a57a5a743894a0e4a801fc3', '2011-10-29 13:47:19', NULL, '2', '0000-00-00 00:00:00', '78.101.50.203', 'Success'),
(172, '1', 'admin', '21232f297a57a5a743894a0e4a801fc3', '2011-10-29 14:18:01', NULL, '2', '0000-00-00 00:00:00', '122.166.150.62', 'Success'),
(173, '1', 'admin', '21232f297a57a5a743894a0e4a801fc3', '2011-10-29 18:58:52', NULL, '2', '0000-00-00 00:00:00', '192.168.1.118', 'Success'),
(174, '1', 'admin', '21232f297a57a5a743894a0e4a801fc3', '2011-10-29 20:00:03', NULL, '2', '0000-00-00 00:00:00', '192.168.1.118', 'Success'),
(175, '1', 'admin', '21232f297a57a5a743894a0e4a801fc3', '2011-10-31 10:09:50', NULL, '2', '0000-00-00 00:00:00', '192.168.1.118', 'Success'),
(176, '1', 'admin', '21232f297a57a5a743894a0e4a801fc3', '2011-10-31 14:44:13', NULL, '2', '0000-00-00 00:00:00', '192.168.1.118', 'Success'),
(177, '1', 'admin', '21232f297a57a5a743894a0e4a801fc3', '2011-10-31 16:22:04', NULL, '2', '0000-00-00 00:00:00', '192.168.1.118', 'Success'),
(178, '1', 'admin', '21232f297a57a5a743894a0e4a801fc3', '2011-11-01 09:40:55', NULL, '2', '0000-00-00 00:00:00', '192.168.1.118', 'Success'),
(179, '1', 'admin', '21232f297a57a5a743894a0e4a801fc3', '2011-11-01 09:56:54', NULL, '2', '0000-00-00 00:00:00', '192.168.2.100', 'Success'),
(180, '1', 'admin', '21232f297a57a5a743894a0e4a801fc3', '2011-11-01 10:06:23', NULL, '2', '0000-00-00 00:00:00', '127.0.0.1', 'Success'),
(181, '1', 'admin', '21232f297a57a5a743894a0e4a801fc3', '2011-11-01 13:37:06', NULL, '2', '0000-00-00 00:00:00', '127.0.0.1', 'Success'),
(182, '1', 'admin', '21232f297a57a5a743894a0e4a801fc3', '2011-11-01 14:52:38', NULL, '2', '0000-00-00 00:00:00', '127.0.0.1', 'Success'),
(183, '1', 'admin', '21232f297a57a5a743894a0e4a801fc3', '2011-11-01 15:08:58', NULL, '2', '0000-00-00 00:00:00', '127.0.0.1', 'Success'),
(184, '1', 'admin', '21232f297a57a5a743894a0e4a801fc3', '2011-11-01 17:45:53', NULL, '2', '0000-00-00 00:00:00', '127.0.0.1', 'Success'),
(185, '1', 'admin', '21232f297a57a5a743894a0e4a801fc3', '2011-11-02 10:37:56', NULL, '2', '0000-00-00 00:00:00', '::1', 'Success'),
(186, '1', 'admin', '21232f297a57a5a743894a0e4a801fc3', '2011-11-02 13:58:09', NULL, '2', '0000-00-00 00:00:00', '::1', 'Success'),
(187, '1', 'admin', '21232f297a57a5a743894a0e4a801fc3', '2011-11-02 18:14:16', NULL, '2', '0000-00-00 00:00:00', '::1', 'Success'),
(188, '1', 'admin', '21232f297a57a5a743894a0e4a801fc3', '2011-11-03 10:53:22', NULL, '2', '0000-00-00 00:00:00', '::1', 'Success'),
(189, '1', 'admin', '21232f297a57a5a743894a0e4a801fc3', '2011-11-03 14:54:15', NULL, '2', '0000-00-00 00:00:00', '::1', 'Success'),
(190, '1', 'admin', '21232f297a57a5a743894a0e4a801fc3', '2011-11-04 09:55:28', NULL, '2', '0000-00-00 00:00:00', '::1', 'Success'),
(191, '1', 'admin', '21232f297a57a5a743894a0e4a801fc3', '2011-11-04 14:50:53', NULL, '2', '0000-00-00 00:00:00', '::1', 'Success'),
(192, '1', 'admin', '21232f297a57a5a743894a0e4a801fc3', '2011-11-04 15:34:36', NULL, '2', '0000-00-00 00:00:00', '::1', 'Success'),
(193, '1', 'admin', '21232f297a57a5a743894a0e4a801fc3', '2011-11-04 15:34:45', NULL, '2', '0000-00-00 00:00:00', '::1', 'Success'),
(194, '1', 'admin', '21232f297a57a5a743894a0e4a801fc3', '2011-11-04 15:34:59', NULL, '2', '0000-00-00 00:00:00', '::1', 'Success'),
(195, '1', 'admin', '21232f297a57a5a743894a0e4a801fc3', '2011-11-04 16:03:40', NULL, '2', '0000-00-00 00:00:00', '::1', 'Success'),
(196, '1', 'admin', '21232f297a57a5a743894a0e4a801fc3', '2011-11-04 16:20:23', NULL, '2', '0000-00-00 00:00:00', '::1', 'Success'),
(197, '1', 'admin', '21232f297a57a5a743894a0e4a801fc3', '2011-11-04 17:00:11', NULL, '2', '0000-00-00 00:00:00', '::1', 'Success'),
(198, '1', 'admin', '21232f297a57a5a743894a0e4a801fc3', '2011-11-05 10:08:42', NULL, '2', '0000-00-00 00:00:00', '::1', 'Success'),
(199, '1', 'admin', '21232f297a57a5a743894a0e4a801fc3', '2011-11-05 10:55:35', NULL, '2', '0000-00-00 00:00:00', '::1', 'Success'),
(200, '1', 'admin', '21232f297a57a5a743894a0e4a801fc3', '2011-11-05 12:47:51', NULL, '2', '0000-00-00 00:00:00', '::1', 'Success'),
(201, '1', 'admin', '21232f297a57a5a743894a0e4a801fc3', '2011-11-05 14:44:28', NULL, '2', '0000-00-00 00:00:00', '::1', 'Success'),
(202, '1', 'admin', '21232f297a57a5a743894a0e4a801fc3', '2011-11-08 09:56:01', NULL, '2', '0000-00-00 00:00:00', '127.0.0.1', 'Success'),
(203, '1', 'admin', '21232f297a57a5a743894a0e4a801fc3', '2011-11-08 11:56:55', NULL, '2', '0000-00-00 00:00:00', '127.0.0.1', 'Success'),
(204, '1', 'admin', '21232f297a57a5a743894a0e4a801fc3', '2011-11-08 13:15:53', NULL, '2', '0000-00-00 00:00:00', '127.0.0.1', 'Success'),
(205, '1', 'admin', '21232f297a57a5a743894a0e4a801fc3', '2011-11-08 15:13:02', NULL, '2', '0000-00-00 00:00:00', '127.0.0.1', 'Success'),
(206, '1', 'admin', '21232f297a57a5a743894a0e4a801fc3', '2011-11-08 16:23:00', NULL, '2', '0000-00-00 00:00:00', '127.0.0.1', 'Success'),
(207, '1', 'admin', '21232f297a57a5a743894a0e4a801fc3', '2011-11-08 17:12:48', NULL, '2', '0000-00-00 00:00:00', '127.0.0.1', 'Success'),
(208, '1', 'admin', '21232f297a57a5a743894a0e4a801fc3', '2011-11-08 18:08:04', NULL, '2', '0000-00-00 00:00:00', '127.0.0.1', 'Success'),
(209, '1', 'admin', '21232f297a57a5a743894a0e4a801fc3', '2011-11-08 18:47:03', NULL, '2', '0000-00-00 00:00:00', '127.0.0.1', 'Success'),
(210, '1', 'admin', '21232f297a57a5a743894a0e4a801fc3', '2011-11-09 10:47:22', NULL, '2', '0000-00-00 00:00:00', '127.0.0.1', 'Success'),
(211, '1', 'admin', '21232f297a57a5a743894a0e4a801fc3', '2011-11-09 14:48:08', NULL, '2', '0000-00-00 00:00:00', '127.0.0.1', 'Success'),
(212, '1', 'admin', '21232f297a57a5a743894a0e4a801fc3', '2011-11-09 19:01:31', NULL, '2', '0000-00-00 00:00:00', '127.0.0.1', 'Success'),
(213, '1', 'admin', '21232f297a57a5a743894a0e4a801fc3', '2011-11-10 11:52:23', NULL, '2', '0000-00-00 00:00:00', '::1', 'Success'),
(214, '1', 'admin', '21232f297a57a5a743894a0e4a801fc3', '2011-11-10 15:41:51', NULL, '2', '0000-00-00 00:00:00', '::1', 'Success'),
(215, '1', 'admin', '21232f297a57a5a743894a0e4a801fc3', '2011-11-10 16:42:19', NULL, '2', '0000-00-00 00:00:00', '::1', 'Success'),
(216, '1', 'admin', '21232f297a57a5a743894a0e4a801fc3', '2011-11-10 19:13:39', NULL, '2', '0000-00-00 00:00:00', '::1', 'Success'),
(217, '1', 'admin', '21232f297a57a5a743894a0e4a801fc3', '2011-11-11 09:45:50', NULL, '2', '0000-00-00 00:00:00', '127.0.0.1', 'Success'),
(218, '1', 'admin', '21232f297a57a5a743894a0e4a801fc3', '2011-11-11 14:13:50', NULL, '2', '0000-00-00 00:00:00', '127.0.0.1', 'Success'),
(219, '1', 'admin', '21232f297a57a5a743894a0e4a801fc3', '2011-11-11 16:34:24', NULL, '2', '0000-00-00 00:00:00', '127.0.0.1', 'Success'),
(220, '1', 'admin', '21232f297a57a5a743894a0e4a801fc3', '2011-11-11 11:15:02', NULL, '2', '0000-00-00 00:00:00', '127.0.0.1', 'Success'),
(221, '1', 'admin', '21232f297a57a5a743894a0e4a801fc3', '2011-11-12 13:05:08', NULL, '2', '0000-00-00 00:00:00', '::1', 'Success'),
(222, '1', 'admin', '21232f297a57a5a743894a0e4a801fc3', '2011-11-12 09:48:13', NULL, '2', '0000-00-00 00:00:00', '::1', 'Success'),
(223, '1', 'admin', '21232f297a57a5a743894a0e4a801fc3', '2011-11-12 10:06:36', NULL, '2', '0000-00-00 00:00:00', '::1', 'Success'),
(224, '1', 'admin', '21232f297a57a5a743894a0e4a801fc3', '2011-11-14 10:42:51', NULL, '2', '0000-00-00 00:00:00', '::1', 'Success'),
(225, '1', 'admin', '21232f297a57a5a743894a0e4a801fc3', '2011-11-14 12:02:03', NULL, '2', '0000-00-00 00:00:00', '::1', 'Success'),
(226, '1', 'admin', '21232f297a57a5a743894a0e4a801fc3', '2011-11-14 16:54:29', NULL, '2', '0000-00-00 00:00:00', '::1', 'Success'),
(227, '1', 'admin', '21232f297a57a5a743894a0e4a801fc3', '2011-11-14 18:54:40', NULL, '2', '0000-00-00 00:00:00', '::1', 'Success'),
(228, '1', 'admin', '21232f297a57a5a743894a0e4a801fc3', '2011-11-14 20:17:10', NULL, '2', '0000-00-00 00:00:00', '::1', 'Success'),
(229, '1', 'admin', '21232f297a57a5a743894a0e4a801fc3', '2011-11-15 10:09:14', NULL, '2', '0000-00-00 00:00:00', '::1', 'Success'),
(230, '1', 'admin', '21232f297a57a5a743894a0e4a801fc3', '2011-11-15 17:17:00', NULL, '2', '0000-00-00 00:00:00', '::1', 'Success'),
(231, '1', 'admin', '21232f297a57a5a743894a0e4a801fc3', '2011-11-15 10:00:39', NULL, '2', '0000-00-00 00:00:00', '::1', 'Success'),
(232, '1', 'admin', '21232f297a57a5a743894a0e4a801fc3', '2011-11-16 11:17:48', NULL, '2', '0000-00-00 00:00:00', '::1', 'Success'),
(233, '1', 'admin', '21232f297a57a5a743894a0e4a801fc3', '2011-11-16 12:43:08', NULL, '2', '0000-00-00 00:00:00', '::1', 'Success'),
(234, '1', 'admin', '21232f297a57a5a743894a0e4a801fc3', '2011-11-16 13:55:12', NULL, '2', '0000-00-00 00:00:00', '::1', 'Success'),
(235, '1', 'admin', '21232f297a57a5a743894a0e4a801fc3', '2011-11-16 16:17:00', NULL, '2', '0000-00-00 00:00:00', '::1', 'Success'),
(236, '1', 'admin', '21232f297a57a5a743894a0e4a801fc3', '2011-11-17 10:49:46', NULL, '2', '0000-00-00 00:00:00', '::1', 'Success'),
(237, '1', 'admin', '21232f297a57a5a743894a0e4a801fc3', '2011-11-17 14:16:56', NULL, '2', '0000-00-00 00:00:00', '::1', 'Success'),
(238, '1', 'admin', '21232f297a57a5a743894a0e4a801fc3', '2011-11-17 16:16:22', NULL, '2', '0000-00-00 00:00:00', '::1', 'Success'),
(239, '1', 'admin', '21232f297a57a5a743894a0e4a801fc3', '2011-11-18 11:04:52', NULL, '2', '0000-00-00 00:00:00', '::1', 'Success'),
(240, '1', 'admin', '21232f297a57a5a743894a0e4a801fc3', '2011-11-18 11:43:17', NULL, '2', '0000-00-00 00:00:00', '::1', 'Success'),
(241, '1', 'admin', '21232f297a57a5a743894a0e4a801fc3', '2011-11-18 11:57:56', NULL, '2', '0000-00-00 00:00:00', '::1', 'Success'),
(242, '1', 'admin', '21232f297a57a5a743894a0e4a801fc3', '2011-11-18 15:18:24', NULL, '2', '0000-00-00 00:00:00', '::1', 'Success'),
(243, '1', 'admin', '21232f297a57a5a743894a0e4a801fc3', '2011-11-18 17:52:40', NULL, '2', '0000-00-00 00:00:00', '::1', 'Success'),
(244, '1', 'admin', '21232f297a57a5a743894a0e4a801fc3', '2011-11-18 19:47:49', NULL, '2', '0000-00-00 00:00:00', '::1', 'Success'),
(245, '1', 'admin', '21232f297a57a5a743894a0e4a801fc3', '2011-11-19 10:28:22', NULL, '2', '0000-00-00 00:00:00', '::1', 'Success'),
(246, '1', 'admin', '21232f297a57a5a743894a0e4a801fc3', '2011-11-19 14:08:40', NULL, '2', '0000-00-00 00:00:00', '122.166.149.26', 'Success'),
(247, '1', 'admin', 'admian', '2011-11-19 15:16:27', NULL, '2', '2011-11-19 15:16:27', '122.166.149.26', 'failed'),
(248, '1', 'admin', '21232f297a57a5a743894a0e4a801fc3', '2011-11-19 15:16:38', NULL, '2', '0000-00-00 00:00:00', '122.166.149.26', 'Success'),
(249, '1', 'admin', '21232f297a57a5a743894a0e4a801fc3', '2011-11-19 18:55:32', NULL, '2', '0000-00-00 00:00:00', '78.101.177.221', 'Success'),
(250, '1', 'admin', '21232f297a57a5a743894a0e4a801fc3', '2011-11-20 10:16:15', NULL, '2', '0000-00-00 00:00:00', '78.101.13.63', 'Success'),
(251, '1', 'admin', '21232f297a57a5a743894a0e4a801fc3', '2011-11-20 11:15:26', NULL, '2', '0000-00-00 00:00:00', '78.101.177.221', 'Success'),
(252, '1', 'admin', '21232f297a57a5a743894a0e4a801fc3', '2011-11-20 11:19:17', NULL, '2', '0000-00-00 00:00:00', '78.101.240.255', 'Success'),
(253, '1', 'admin', '21232f297a57a5a743894a0e4a801fc3', '2011-11-20 12:22:52', NULL, '2', '0000-00-00 00:00:00', '78.101.13.63', 'Success'),
(254, '1', 'admin', '21232f297a57a5a743894a0e4a801fc3', '2011-11-20 13:04:58', NULL, '2', '0000-00-00 00:00:00', '78.101.177.221', 'Success'),
(255, '1', 'admin', '21232f297a57a5a743894a0e4a801fc3', '2011-11-20 15:02:14', NULL, '2', '0000-00-00 00:00:00', '78.101.13.63', 'Success'),
(256, '1', 'admin', '21232f297a57a5a743894a0e4a801fc3', '2011-11-20 17:48:24', NULL, '2', '0000-00-00 00:00:00', '78.101.13.63', 'Success'),
(257, '1', 'admin', '?????', '2011-11-20 18:19:11', NULL, '2', '2011-11-20 18:19:11', '78.101.13.63', 'failed'),
(258, '1', 'admin', '21232f297a57a5a743894a0e4a801fc3', '2011-11-20 18:42:25', NULL, '2', '0000-00-00 00:00:00', '78.101.13.63', 'Success'),
(259, '1', 'admin', 'ADMIN', '2011-11-20 19:04:36', NULL, '2', '2011-11-20 19:04:36', '78.101.13.63', 'failed'),
(260, '1', 'admin', '21232f297a57a5a743894a0e4a801fc3', '2011-11-20 19:25:26', NULL, '2', '0000-00-00 00:00:00', '78.101.13.63', 'Success'),
(261, '1', 'admin', '21232f297a57a5a743894a0e4a801fc3', '2011-11-20 20:35:11', NULL, '2', '0000-00-00 00:00:00', '78.101.13.63', 'Success'),
(262, '1', 'admin', '21232f297a57a5a743894a0e4a801fc3', '2011-11-21 11:04:31', NULL, '2', '0000-00-00 00:00:00', '122.166.145.15', 'Success'),
(263, '1', 'admin', '21232f297a57a5a743894a0e4a801fc3', '2011-11-21 14:01:19', NULL, '2', '0000-00-00 00:00:00', '::1', 'Success'),
(264, '1', 'admin', '21232f297a57a5a743894a0e4a801fc3', '2011-11-21 18:56:46', NULL, '2', '0000-00-00 00:00:00', '::1', 'Success'),
(265, '1', 'admin', '21232f297a57a5a743894a0e4a801fc3', '2011-11-22 11:12:01', NULL, '2', '0000-00-00 00:00:00', '::1', 'Success'),
(266, '1', 'admin', '21232f297a57a5a743894a0e4a801fc3', '2011-11-22 17:27:45', NULL, '2', '0000-00-00 00:00:00', '::1', 'Success'),
(267, '1', 'admin', '21232f297a57a5a743894a0e4a801fc3', '2011-11-22 20:16:21', NULL, '2', '0000-00-00 00:00:00', '::1', 'Success'),
(268, '1', 'admin', '21232f297a57a5a743894a0e4a801fc3', '2011-11-23 10:27:34', NULL, '2', '0000-00-00 00:00:00', '::1', 'Success'),
(269, '1', 'admin', '21232f297a57a5a743894a0e4a801fc3', '2011-11-23 14:09:22', NULL, '2', '0000-00-00 00:00:00', '::1', 'Success'),
(270, '1', 'admin', '21232f297a57a5a743894a0e4a801fc3', '2011-11-23 17:04:50', NULL, '2', '0000-00-00 00:00:00', '::1', 'Success'),
(271, '1', 'admin', '21232f297a57a5a743894a0e4a801fc3', '2011-11-23 18:43:15', NULL, '2', '0000-00-00 00:00:00', '::1', 'Success'),
(272, '1', 'admin', '21232f297a57a5a743894a0e4a801fc3', '2011-11-24 10:42:51', NULL, '2', '0000-00-00 00:00:00', '::1', 'Success'),
(273, '1', 'admin', '21232f297a57a5a743894a0e4a801fc3', '2011-11-24 13:28:42', NULL, '2', '0000-00-00 00:00:00', '::1', 'Success'),
(274, '1', 'admin', '21232f297a57a5a743894a0e4a801fc3', '2011-11-24 18:26:55', NULL, '2', '0000-00-00 00:00:00', '::1', 'Success'),
(275, '1', 'admin', '21232f297a57a5a743894a0e4a801fc3', '2011-11-24 19:42:30', NULL, '2', '0000-00-00 00:00:00', '::1', 'Success'),
(276, '1', 'admin', '21232f297a57a5a743894a0e4a801fc3', '2011-11-25 10:15:46', NULL, '2', '0000-00-00 00:00:00', '::1', 'Success'),
(277, '1', 'admin', '21232f297a57a5a743894a0e4a801fc3', '2011-11-25 11:11:29', NULL, '2', '0000-00-00 00:00:00', '::1', 'Success'),
(278, '1', 'admin', '21232f297a57a5a743894a0e4a801fc3', '2011-11-25 11:45:00', NULL, '2', '0000-00-00 00:00:00', '::1', 'Success'),
(279, '1', 'admin', '21232f297a57a5a743894a0e4a801fc3', '2011-11-25 15:13:56', NULL, '2', '0000-00-00 00:00:00', '::1', 'Success'),
(280, '1', 'admin', '21232f297a57a5a743894a0e4a801fc3', '2011-11-25 16:20:01', NULL, '2', '0000-00-00 00:00:00', '::1', 'Success'),
(281, '1', 'admin', '21232f297a57a5a743894a0e4a801fc3', '2011-11-25 16:58:58', NULL, '2', '0000-00-00 00:00:00', '::1', 'Success'),
(282, '1', 'admin', '21232f297a57a5a743894a0e4a801fc3', '2011-11-25 17:45:47', NULL, '2', '0000-00-00 00:00:00', '::1', 'Success'),
(283, '1', 'admin', '21232f297a57a5a743894a0e4a801fc3', '2011-11-25 19:04:18', NULL, '2', '0000-00-00 00:00:00', '::1', 'Success'),
(284, '1', 'admin', '21232f297a57a5a743894a0e4a801fc3', '2011-11-26 09:47:22', NULL, '2', '0000-00-00 00:00:00', '::1', 'Success'),
(285, '1', 'admin', '21232f297a57a5a743894a0e4a801fc3', '2011-11-26 10:39:23', NULL, '2', '0000-00-00 00:00:00', '::1', 'Success'),
(286, '1', 'admin', '21232f297a57a5a743894a0e4a801fc3', '2011-11-26 14:58:29', NULL, '2', '0000-00-00 00:00:00', '::1', 'Success'),
(287, '1', 'admin', '21232f297a57a5a743894a0e4a801fc3', '2011-11-26 15:52:43', NULL, '2', '0000-00-00 00:00:00', '::1', 'Success'),
(288, '1', 'admin', '21232f297a57a5a743894a0e4a801fc3', '2011-11-26 16:29:27', NULL, '2', '0000-00-00 00:00:00', '::1', 'Success'),
(289, '1', 'admin', '21232f297a57a5a743894a0e4a801fc3', '2011-11-28 11:40:50', NULL, '2', '0000-00-00 00:00:00', '::1', 'Success'),
(290, '1', 'admin', '21232f297a57a5a743894a0e4a801fc3', '2011-11-28 12:07:27', NULL, '2', '0000-00-00 00:00:00', '::1', 'Success'),
(291, '1', 'admin', '21232f297a57a5a743894a0e4a801fc3', '2011-11-28 13:18:07', NULL, '2', '0000-00-00 00:00:00', '::1', 'Success'),
(292, '1', 'admin', '21232f297a57a5a743894a0e4a801fc3', '2011-11-28 13:56:26', NULL, '2', '0000-00-00 00:00:00', '::1', 'Success'),
(293, '1', 'admin', '21232f297a57a5a743894a0e4a801fc3', '2011-11-28 14:39:01', NULL, '2', '0000-00-00 00:00:00', '::1', 'Success'),
(294, '1', 'admin', '21232f297a57a5a743894a0e4a801fc3', '2011-11-28 15:19:12', NULL, '2', '0000-00-00 00:00:00', '::1', 'Success'),
(295, '1', 'admin', '21232f297a57a5a743894a0e4a801fc3', '2011-11-28 18:26:01', NULL, '2', '0000-00-00 00:00:00', '::1', 'Success'),
(296, '1', 'admin', '21232f297a57a5a743894a0e4a801fc3', '2011-11-28 18:31:58', NULL, '2', '0000-00-00 00:00:00', '::1', 'Success'),
(297, '1', 'admin', '21232f297a57a5a743894a0e4a801fc3', '2011-11-29 10:17:09', NULL, '2', '0000-00-00 00:00:00', '::1', 'Success'),
(298, '1', 'admin', '21232f297a57a5a743894a0e4a801fc3', '2011-11-29 12:26:17', NULL, '2', '0000-00-00 00:00:00', '::1', 'Success'),
(299, '1', 'admin', '21232f297a57a5a743894a0e4a801fc3', '2011-11-29 14:40:30', NULL, '2', '0000-00-00 00:00:00', '::1', 'Success'),
(300, '1', 'admin', '21232f297a57a5a743894a0e4a801fc3', '2011-11-30 10:39:17', NULL, '2', '0000-00-00 00:00:00', '::1', 'Success'),
(301, '1', 'admin', '21232f297a57a5a743894a0e4a801fc3', '2011-11-30 17:54:05', NULL, '2', '0000-00-00 00:00:00', '::1', 'Success'),
(302, '1', 'admin', '21232f297a57a5a743894a0e4a801fc3', '2011-11-30 18:49:36', NULL, '2', '0000-00-00 00:00:00', '::1', 'Success'),
(303, '1', 'admin', '21232f297a57a5a743894a0e4a801fc3', '2011-12-01 10:02:21', NULL, '2', '0000-00-00 00:00:00', '::1', 'Success'),
(304, '1', 'admin', '21232f297a57a5a743894a0e4a801fc3', '2011-12-01 19:08:45', NULL, '2', '0000-00-00 00:00:00', '::1', 'Success'),
(305, '1', 'admin', '21232f297a57a5a743894a0e4a801fc3', '2011-12-02 09:40:27', NULL, '2', '0000-00-00 00:00:00', '::1', 'Success'),
(306, '1', 'admin', '21232f297a57a5a743894a0e4a801fc3', '2011-12-02 09:45:23', NULL, '2', '0000-00-00 00:00:00', '::1', 'Success'),
(307, '1', 'admin', '21232f297a57a5a743894a0e4a801fc3', '2011-12-02 09:48:47', NULL, '2', '0000-00-00 00:00:00', '::1', 'Success'),
(308, '1', 'admin', '21232f297a57a5a743894a0e4a801fc3', '2011-12-02 09:51:41', NULL, '2', '0000-00-00 00:00:00', '::1', 'Success'),
(309, '1', 'admin', '21232f297a57a5a743894a0e4a801fc3', '2011-12-02 10:19:46', NULL, '2', '0000-00-00 00:00:00', '::1', 'Success'),
(310, '1', 'admin', '21232f297a57a5a743894a0e4a801fc3', '2011-12-02 15:00:55', NULL, '2', '0000-00-00 00:00:00', '::1', 'Success'),
(311, '1', 'admin', '21232f297a57a5a743894a0e4a801fc3', '2011-12-03 10:01:55', NULL, '2', '0000-00-00 00:00:00', '::1', 'Success'),
(312, '1', 'admin', '21232f297a57a5a743894a0e4a801fc3', '2011-12-03 10:09:02', NULL, '2', '0000-00-00 00:00:00', '::1', 'Success'),
(313, '1', 'admin', '21232f297a57a5a743894a0e4a801fc3', '2011-12-03 10:09:17', NULL, '2', '0000-00-00 00:00:00', '::1', 'Success'),
(314, '1', 'admin', '21232f297a57a5a743894a0e4a801fc3', '2011-12-03 10:09:23', NULL, '2', '0000-00-00 00:00:00', '::1', 'Success'),
(315, '1', 'admin', '21232f297a57a5a743894a0e4a801fc3', '2011-12-03 10:11:09', NULL, '2', '0000-00-00 00:00:00', '::1', 'Success'),
(316, '1', 'admin', '21232f297a57a5a743894a0e4a801fc3', '2011-12-03 10:12:11', NULL, '2', '0000-00-00 00:00:00', '::1', 'Success'),
(317, '1', 'admin', '21232f297a57a5a743894a0e4a801fc3', '2011-12-03 10:12:43', NULL, '2', '0000-00-00 00:00:00', '::1', 'Success'),
(318, '1', 'admin', '21232f297a57a5a743894a0e4a801fc3', '2011-12-03 10:14:41', NULL, '2', '0000-00-00 00:00:00', '::1', 'Success'),
(319, '1', 'admin', '21232f297a57a5a743894a0e4a801fc3', '2011-12-03 10:23:21', NULL, '2', '0000-00-00 00:00:00', '::1', 'Success'),
(320, '3', 'shan', '3e119ab537d3c4cc0c31b9277bfd785e', '2011-12-03 10:47:22', NULL, '3', '0000-00-00 00:00:00', '::1', 'Success'),
(321, '1', 'admin', '21232f297a57a5a743894a0e4a801fc3', '2011-12-03 10:50:26', NULL, '2', '0000-00-00 00:00:00', '::1', 'Success'),
(322, '4', 'shan', '3e119ab537d3c4cc0c31b9277bfd785e', '2011-12-03 11:15:14', NULL, '3', '0000-00-00 00:00:00', '::1', 'Success'),
(323, '1', 'admin', '21232f297a57a5a743894a0e4a801fc3', '2011-12-03 11:16:07', NULL, '2', '0000-00-00 00:00:00', '::1', 'Success'),
(324, '4', 'shan', '3e119ab537d3c4cc0c31b9277bfd785e', '2011-12-03 11:17:09', NULL, '3', '0000-00-00 00:00:00', '::1', 'Success'),
(325, '1', 'admin', '21232f297a57a5a743894a0e4a801fc3', '2011-12-03 11:17:41', NULL, '2', '0000-00-00 00:00:00', '::1', 'Success'),
(326, '5', 'shan', '3e119ab537d3c4cc0c31b9277bfd785e', '2011-12-03 11:30:26', NULL, '4', '0000-00-00 00:00:00', '::1', 'Success'),
(327, '5', 'shan', '3e119ab537d3c4cc0c31b9277bfd785e', '2011-12-03 11:37:39', NULL, '4', '0000-00-00 00:00:00', '::1', 'Success'),
(328, '5', 'shan', '3e119ab537d3c4cc0c31b9277bfd785e', '2011-12-03 11:40:42', NULL, '4', '0000-00-00 00:00:00', '::1', 'Success'),
(329, '1', 'admin', '21232f297a57a5a743894a0e4a801fc3', '2011-12-03 11:42:17', NULL, '2', '0000-00-00 00:00:00', '::1', 'Success'),
(330, '5', 'shan', '3e119ab537d3c4cc0c31b9277bfd785e', '2011-12-03 11:42:24', NULL, '4', '0000-00-00 00:00:00', '::1', 'Success'),
(331, '1', 'admin', '21232f297a57a5a743894a0e4a801fc3', '2011-12-03 11:42:35', NULL, '2', '0000-00-00 00:00:00', '::1', 'Success'),
(332, '5', 'shan', '3e119ab537d3c4cc0c31b9277bfd785e', '2011-12-03 11:43:04', NULL, '4', '0000-00-00 00:00:00', '::1', 'Success'),
(333, '5', 'shan', '3e119ab537d3c4cc0c31b9277bfd785e', '2011-12-03 11:43:13', NULL, '4', '0000-00-00 00:00:00', '::1', 'Success'),
(334, '1', 'admin', '21232f297a57a5a743894a0e4a801fc3', '2011-12-03 11:43:25', NULL, '2', '0000-00-00 00:00:00', '::1', 'Success'),
(335, '5', 'shan', '3e119ab537d3c4cc0c31b9277bfd785e', '2011-12-03 11:43:47', NULL, '4', '0000-00-00 00:00:00', '::1', 'Success'),
(336, '5', 'shan', '3e119ab537d3c4cc0c31b9277bfd785e', '2011-12-03 11:43:53', NULL, '4', '0000-00-00 00:00:00', '::1', 'Success'),
(337, '1', 'admin', '21232f297a57a5a743894a0e4a801fc3', '2011-12-03 11:44:01', NULL, '2', '0000-00-00 00:00:00', '::1', 'Success'),
(338, '5', 'shan', '3e119ab537d3c4cc0c31b9277bfd785e', '2011-12-03 11:44:49', NULL, '4', '0000-00-00 00:00:00', '::1', 'Success'),
(339, '1', 'admin', '21232f297a57a5a743894a0e4a801fc3', '2011-12-03 11:51:10', NULL, '2', '0000-00-00 00:00:00', '::1', 'Success'),
(340, '1', 'admin', '21232f297a57a5a743894a0e4a801fc3', '2011-12-03 11:55:26', NULL, '2', '0000-00-00 00:00:00', '::1', 'Success'),
(341, '1', 'admin', '21232f297a57a5a743894a0e4a801fc3', '2011-12-03 12:16:27', NULL, '2', '0000-00-00 00:00:00', '::1', 'Success'),
(342, '1', 'admin', '21232f297a57a5a743894a0e4a801fc3', '2011-12-03 12:16:38', NULL, '2', '0000-00-00 00:00:00', '::1', 'Success'),
(343, '1', 'admin', '21232f297a57a5a743894a0e4a801fc3', '2011-12-03 12:31:34', NULL, '2', '0000-00-00 00:00:00', '::1', 'Success'),
(344, '1', 'admin', '21232f297a57a5a743894a0e4a801fc3', '2011-12-03 12:32:54', NULL, '2', '0000-00-00 00:00:00', '::1', 'Success'),
(345, '1', 'admin', '21232f297a57a5a743894a0e4a801fc3', '2011-12-03 12:33:16', NULL, '2', '0000-00-00 00:00:00', '::1', 'Success'),
(346, '1', 'admin', '21232f297a57a5a743894a0e4a801fc3', '2011-12-03 12:43:08', NULL, '2', '0000-00-00 00:00:00', '::1', 'Success');

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

--
-- Table structure for table `master`
--

CREATE TABLE IF NOT EXISTS `master` (
  `master_id` int(10) NOT NULL AUTO_INCREMENT,
  `creator_id` int(10) NOT NULL,
  `created_time` datetime NOT NULL,
  `ip` varchar(20) NOT NULL,
  PRIMARY KEY (`master_id`)
) ENGINE=InnoDB  DEFAULT CHARSET=latin1 AUTO_INCREMENT=23 ;

--
-- Dumping data for table `master`
--

INSERT INTO `master` (`master_id`, `creator_id`, `created_time`, `ip`) VALUES
(3, 2, '2011-11-25 19:05:29', '::1'),
(15, 2, '2011-11-30 12:48:41', '::1'),
(16, 2, '2011-11-30 16:02:47', '::1'),
(17, 2, '2011-11-30 16:03:14', '::1'),
(18, 2, '2011-12-01 10:25:55', '::1'),
(19, 2, '2011-12-01 10:26:08', '::1'),
(20, 2, '2011-12-01 10:26:22', '::1'),
(21, 4, '2011-12-03 11:45:04', '::1'),
(22, 4, '2011-12-03 11:45:24', '::1');

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

--
-- Table structure for table `menu`
--

CREATE TABLE IF NOT EXISTS `menu` (
  `menu_id` bigint(10) NOT NULL AUTO_INCREMENT,
  `module_id` bigint(10) NOT NULL,
  `caption` varchar(50) NOT NULL,
  `target` varchar(250) NOT NULL,
  `sort` int(11) NOT NULL,
  `imagepath` varchar(100) NOT NULL,
  PRIMARY KEY (`menu_id`),
  KEY `Module_id` (`module_id`)
) ENGINE=InnoDB  DEFAULT CHARSET=latin1 AUTO_INCREMENT=53 ;

--
-- Dumping data for table `menu`
--

INSERT INTO `menu` (`menu_id`, `module_id`, `caption`, `target`, `sort`, `imagepath`) VALUES
(1, 2, 'Type of Visa', 'manage_visa_type', 6, ''),
(2, 2, 'Sponsor', 'manage_sponsor', 7, ''),
(3, 2, 'Recruitment Agency', 'manage_agency', 8, ''),
(4, 2, 'Camp', 'manage_camp', 10, ''),
(5, 2, 'Work Site', 'manage_site', 11, ''),
(6, 2, 'Type of Leave', 'manage_leave_type', 12, ''),
(7, 2, 'Trade list', 'manage_trade', 5, ''),
(8, 45, 'Department', 'manage_department', 8, ''),
(9, 2, 'Designation', 'manage_designation', 15, ''),
(10, 2, 'Training Modules', 'manage_training_module', 2, ''),
(11, 2, 'Allowance', 'manage_allowance', 13, ''),
(12, 2, 'Grade', 'manage_grade', 16, ''),
(13, 2, 'Trade Tool List', 'manage_tool_list', 3, ''),
(14, 2, 'General Items List', 'manage_general_item', 4, ''),
(15, 3, 'Joining / Re Joining', 'manage_joining', 2, 'Employee Arrival.png'),
(16, 3, 'Camp Allotment', 'manage_camp_allotment', 5, 'Camp Allotment.png'),
(17, 3, 'Site Allotment', 'manage_site_allotment', 6, 'Site Allotment.png'),
(18, 3, 'Tools and Equipments', 'manage_item_issuance', 7, 'Tool Issuance.png'),
(19, 45, 'General Item Issuance', 'manage_item_issuance', 7, 'general.png'),
(20, 4, 'Training', 'manage_training', 3, 'Trade Training.png'),
(21, 4, 'Daily Absence list', 'manage_attendance', 1, 'Attendance1.png'),
(22, 4, 'Visa Processing', 'manage_visa_processing', 4, 'visa.png'),
(23, 4, 'Camp Shift', 'manage_camp_shifting', 5, 'Camp Shifting.png'),
(24, 4, 'Site Shift', 'manage_site_shifting', 6, 'Site Shifting.png'),
(25, 5, 'Emergency / Annual Leave', 'manage_leave', 1, 'Annual Leave.png'),
(26, 45, 'Emergency Leave', 'manage_emergency', 1, 'Emergency Leave.png'),
(27, 6, 'Absent list report', 'manage_attendance_report', 1, 'Attendance.png'),
(28, 6, 'Camp shift report', 'manage_camp_shift_report', 2, 'Leave.png'),
(29, 6, 'Leave report', 'manage_leave_report', 4, 'Employee.png'),
(30, 6, 'Site Shift report', 'manage_site_shift_report', 3, 'camp.png'),
(31, 7, 'Users', 'manage_user', 1, 'Users.png'),
(33, 7, 'Reminders', 'manage_reminder', 4, 'Reminders.png'),
(34, 7, 'Alerts Master', 'manage_alert_master', 5, 'Alerts.png'),
(35, 7, 'Profiles', 'manage_role', 2, 'role.png'),
(36, 5, 'Settlement', 'manage_settlement', 3, 'Settlement.png'),
(37, 5, 'Exit', 'manage_exit', 4, 'exit.png'),
(38, 3, 'Personal details', 'manage_employee_personal', 3, 'Employee Personal Details.png'),
(39, 4, 'Salary processing', 'manage_salary', 2, 'salary settings.png'),
(40, 2, 'Religion', 'manage_religion', 17, ''),
(41, 2, 'Daily Absence list', 'manage_attendance_list', 1, 'Attendance.png'),
(42, 2, 'Nationality', 'manage_nationality', 9, ''),
(43, 2, 'Deduction', 'manage_deduction', 14, ''),
(44, 3, 'Expected Arrival', 'manage_expected_arrival', 1, 'exit.png'),
(45, 4, 'Trade Change', 'manage_trade_change', 7, 'Site Shifting.png'),
(46, 7, 'My Alerts', 'manage_my_alert', 6, 'Alerts.png'),
(47, 4, 'Critical Incidence Report', 'manage_cir', 8, 'Alerts.png'),
(48, 6, 'Employee Status report', 'manage_employee_status_report', 5, 'Employee.png'),
(49, 8, 'Personal details', 'manage_employee_personal_office', 1, 'Employee Personal Details.png'),
(50, 8, 'Leave', 'manage_leave_office', 2, 'Leave.png'),
(51, 8, 'Settlement', 'manage_settlement_office', 3, 'Settlement.png'),
(52, 8, 'Exit', 'manage_exit_office', 4, 'exit.png');

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

--
-- Table structure for table `modules`
--

CREATE TABLE IF NOT EXISTS `modules` (
  `module_id` int(10) NOT NULL AUTO_INCREMENT,
  `module_name` varchar(30) NOT NULL,
  `sort` int(11) NOT NULL,
  `status` int(11) NOT NULL DEFAULT '1',
  PRIMARY KEY (`module_id`),
  UNIQUE KEY `module_name` (`module_name`)
) ENGINE=InnoDB  DEFAULT CHARSET=latin1 AUTO_INCREMENT=9 ;

--
-- Dumping data for table `modules`
--

INSERT INTO `modules` (`module_id`, `module_name`, `sort`, `status`) VALUES
(1, 'Home', 1, 2),
(2, 'Master', 2, 2),
(3, 'Onboarding', 4, 1),
(4, 'Administration', 5, 1),
(5, 'Employee Exit', 6, 1),
(6, 'Reports', 7, 1),
(7, 'Settings', 8, 2),
(8, 'Employee', 3, 0);

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

--
-- Table structure for table `nationality`
--

CREATE TABLE IF NOT EXISTS `nationality` (
  `nationality_id` int(5) NOT NULL AUTO_INCREMENT,
  `nationality_name` varchar(30) NOT NULL,
  `nationality_code` varchar(10) NOT NULL,
  PRIMARY KEY (`nationality_id`),
  UNIQUE KEY `nationality_code` (`nationality_code`)
) ENGINE=InnoDB  DEFAULT CHARSET=latin1 AUTO_INCREMENT=9 ;

--
-- Dumping data for table `nationality`
--

INSERT INTO `nationality` (`nationality_id`, `nationality_name`, `nationality_code`) VALUES
(2, 'Indian', '3'),
(3, 'Nepal', '1'),
(6, 'Srilankan', '2'),
(7, 'Egyptian', '4'),
(8, 'Sudan', '5');

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

--
-- Table structure for table `office_employee`
--

CREATE TABLE IF NOT EXISTS `office_employee` (
  `office_employee_id` int(11) NOT NULL AUTO_INCREMENT,
  `office_employee_no` varchar(11) NOT NULL,
  `office_employee_name` varchar(100) NOT NULL,
  `office_employee_visa_type_id` int(11) NOT NULL,
  `office_employee_joining_date` date NOT NULL,
  `office_employee_grade_id` int(11) NOT NULL,
  `office_employee_designation_id` int(11) NOT NULL,
  `office_employee_department` varchar(100) NOT NULL,
  `office_employee_immediate_superior_id` int(11) NOT NULL,
  `office_employee_highest_education` varchar(100) NOT NULL,
  `office_employee_passing_year` varchar(10) NOT NULL,
  `office_employee_work_experience` text NOT NULL,
  `office_employee_comments` text NOT NULL,
  `office_employee_photo_name` varchar(100) NOT NULL,
  `office_employee_photo_doc` varchar(100) NOT NULL,
  `office_employee_application_form_name` varchar(100) NOT NULL,
  `office_employee_application_form_doc` varchar(100) NOT NULL,
  `office_employee_offer_letter_name` varchar(100) NOT NULL,
  `office_employee_offer_letter_doc` varchar(100) NOT NULL,
  `office_employee_other_doc_name` varchar(100) NOT NULL,
  `office_employee_other_doc_doc` varchar(100) NOT NULL,
  `office_employee_active` int(1) NOT NULL DEFAULT '1',
  PRIMARY KEY (`office_employee_id`),
  UNIQUE KEY `office_employee_no` (`office_employee_no`),
  KEY `office_employee_designation_id` (`office_employee_designation_id`),
  KEY `office_employee_grade_id` (`office_employee_grade_id`),
  KEY `office_employee_visa_type_id` (`office_employee_visa_type_id`)
) ENGINE=InnoDB  DEFAULT CHARSET=latin1 AUTO_INCREMENT=3 ;

--
-- Dumping data for table `office_employee`
--


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

--
-- Table structure for table `office_exit`
--

CREATE TABLE IF NOT EXISTS `office_exit` (
  `office_exit_id` int(11) NOT NULL AUTO_INCREMENT,
  `office_exit_leave_id` int(11) NOT NULL,
  `office_exit_date` date NOT NULL,
  `office_exit_status` varchar(50) NOT NULL,
  PRIMARY KEY (`office_exit_id`),
  KEY `office_exit_leave_id` (`office_exit_leave_id`)
) ENGINE=InnoDB  DEFAULT CHARSET=latin1 AUTO_INCREMENT=3 ;

--
-- Dumping data for table `office_exit`
--


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

--
-- Table structure for table `office_leave`
--

CREATE TABLE IF NOT EXISTS `office_leave` (
  `office_leave_id` int(11) NOT NULL AUTO_INCREMENT,
  `office_leave_type_id` int(11) NOT NULL,
  `office_leave_reason` varchar(100) NOT NULL,
  `office_leave_starting_date` date NOT NULL,
  `office_leave_ending_date` date NOT NULL,
  `office_leave_remarks` text NOT NULL,
  `office_leave_employee_id` int(11) NOT NULL,
  `office_leave_status` varchar(20) NOT NULL,
  PRIMARY KEY (`office_leave_id`),
  KEY `employee_id` (`office_leave_employee_id`),
  KEY `leave_type_id` (`office_leave_type_id`)
) ENGINE=InnoDB  DEFAULT CHARSET=latin1 AUTO_INCREMENT=3 ;

--
-- Dumping data for table `office_leave`
--


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

--
-- Table structure for table `office_settlement`
--

CREATE TABLE IF NOT EXISTS `office_settlement` (
  `office_settlement_id` int(11) NOT NULL AUTO_INCREMENT,
  `office_settlement_leave_id` int(11) NOT NULL,
  `office_settlement_date` date NOT NULL,
  `office_settlement_status` varchar(20) NOT NULL,
  PRIMARY KEY (`office_settlement_id`),
  KEY `office_settlement_leave_id` (`office_settlement_leave_id`)
) ENGINE=InnoDB  DEFAULT CHARSET=latin1 AUTO_INCREMENT=4 ;

--
-- Dumping data for table `office_settlement`
--


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

--
-- Table structure for table `religion`
--

CREATE TABLE IF NOT EXISTS `religion` (
  `religion_id` int(5) NOT NULL AUTO_INCREMENT,
  `religion_name` varchar(40) NOT NULL,
  PRIMARY KEY (`religion_id`)
) ENGINE=InnoDB  DEFAULT CHARSET=latin1 AUTO_INCREMENT=13 ;

--
-- Dumping data for table `religion`
--

INSERT INTO `religion` (`religion_id`, `religion_name`) VALUES
(7, 'Islam'),
(8, 'Christianity'),
(9, 'Hinduism'),
(10, 'Sikhism'),
(11, 'Jainism'),
(12, 'Buddhism');

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

--
-- Table structure for table `reminder`
--

CREATE TABLE IF NOT EXISTS `reminder` (
  `reminder_id` int(10) NOT NULL,
  `reminder_date` date NOT NULL,
  `remind_before` int(10) NOT NULL,
  `reminder_subject` varchar(100) NOT NULL,
  `reminder_description` text NOT NULL,
  PRIMARY KEY (`reminder_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `reminder`
--


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

--
-- Table structure for table `role`
--

CREATE TABLE IF NOT EXISTS `role` (
  `role_id` int(11) NOT NULL AUTO_INCREMENT,
  `designation_id` int(5) NOT NULL,
  `role_permission` tinytext NOT NULL,
  `role_edit_del_permission` tinytext NOT NULL,
  PRIMARY KEY (`role_id`),
  UNIQUE KEY `designation_id` (`designation_id`)
) ENGINE=InnoDB  DEFAULT CHARSET=latin1 AUTO_INCREMENT=6 ;

--
-- Dumping data for table `role`
--

INSERT INTO `role` (`role_id`, `designation_id`, `role_permission`, `role_edit_del_permission`) VALUES
(1, 2, '41,10,13,14,7,1,2,3,42,4,5,6,11,43,9,12,40,49,50,51,52,44,15,38,16,17,18,39,20,22,23,24,45,47,25,36,37,27,28,30,29,48,31,35,33,34,46,,', '7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,,'),
(5, 4, '41,10,13,14,7,1,2,3,42,4,5,6,11,43,9,12,40,49,50,51,52,44,15,38,16,17,18,21,39,20,22,23,24,45,47,25,36,37,27,28,30,29,48,31,35,33,34,46,', '4,4,4,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,4,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,7,7,7,7,7,');

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

--
-- Table structure for table `salary`
--

CREATE TABLE IF NOT EXISTS `salary` (
  `salary_id` int(11) NOT NULL AUTO_INCREMENT,
  `salary_increment` decimal(10,0) NOT NULL,
  `salary_increment_date` date NOT NULL,
  `employee_id` int(11) NOT NULL,
  `remarks` text NOT NULL,
  PRIMARY KEY (`salary_id`),
  KEY `employee_id` (`employee_id`)
) ENGINE=InnoDB  DEFAULT CHARSET=latin1 AUTO_INCREMENT=4 ;

--
-- Dumping data for table `salary`
--

INSERT INTO `salary` (`salary_id`, `salary_increment`, `salary_increment_date`, `employee_id`, `remarks`) VALUES
(1, '0', '2011-12-01', 20, ''),
(2, '2000', '2011-12-01', 19, ''),
(3, '0', '2011-12-01', 18, '');

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

--
-- Table structure for table `salary_allowance`
--

CREATE TABLE IF NOT EXISTS `salary_allowance` (
  `salary_allowance_id` int(11) NOT NULL AUTO_INCREMENT,
  `salary_id` int(11) NOT NULL,
  `allowance_id` int(11) NOT NULL,
  `allowance_amount` decimal(10,0) NOT NULL,
  PRIMARY KEY (`salary_allowance_id`),
  KEY `salary_id` (`salary_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;

--
-- Dumping data for table `salary_allowance`
--


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

--
-- Table structure for table `salary_deduction`
--

CREATE TABLE IF NOT EXISTS `salary_deduction` (
  `salary_deduction_id` int(11) NOT NULL AUTO_INCREMENT,
  `salary_id` int(11) NOT NULL,
  `deduction_id` int(11) NOT NULL,
  `deduction_amount` decimal(10,0) NOT NULL,
  PRIMARY KEY (`salary_deduction_id`),
  KEY `salary_id` (`salary_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;

--
-- Dumping data for table `salary_deduction`
--


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

--
-- Table structure for table `settlement`
--

CREATE TABLE IF NOT EXISTS `settlement` (
  `settlement_id` int(11) NOT NULL AUTO_INCREMENT,
  `date` date NOT NULL,
  `basic_salary` varchar(20) NOT NULL,
  `final_amount` decimal(10,0) NOT NULL,
  `leave_id` int(11) NOT NULL,
  PRIMARY KEY (`settlement_id`),
  KEY `leave_id` (`leave_id`)
) ENGINE=InnoDB  DEFAULT CHARSET=latin1 AUTO_INCREMENT=2 ;

--
-- Dumping data for table `settlement`
--

INSERT INTO `settlement` (`settlement_id`, `date`, `basic_salary`, `final_amount`, `leave_id`) VALUES
(1, '2011-12-01', '2000', '2100', 1);

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

--
-- Table structure for table `settlement_allowance`
--

CREATE TABLE IF NOT EXISTS `settlement_allowance` (
  `settlement_allowance_id` int(11) NOT NULL AUTO_INCREMENT,
  `settlement_id` int(11) NOT NULL,
  `allowance_id` int(11) NOT NULL,
  `allowance_amount` decimal(10,0) NOT NULL,
  PRIMARY KEY (`settlement_allowance_id`),
  KEY `settlement_id` (`settlement_id`)
) ENGINE=InnoDB  DEFAULT CHARSET=latin1 AUTO_INCREMENT=5 ;

--
-- Dumping data for table `settlement_allowance`
--

INSERT INTO `settlement_allowance` (`settlement_allowance_id`, `settlement_id`, `allowance_id`, `allowance_amount`) VALUES
(2, 3, 2, '355'),
(3, 6, 2, '0'),
(4, 1, 1, '150');

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

--
-- Table structure for table `settlement_deduction`
--

CREATE TABLE IF NOT EXISTS `settlement_deduction` (
  `settlement_deduction_id` int(11) NOT NULL AUTO_INCREMENT,
  `settlement_id` int(11) NOT NULL,
  `deduction_id` int(11) NOT NULL,
  `deduction_amount` decimal(10,0) NOT NULL,
  PRIMARY KEY (`settlement_deduction_id`)
) ENGINE=InnoDB  DEFAULT CHARSET=latin1 AUTO_INCREMENT=3 ;

--
-- Dumping data for table `settlement_deduction`
--

INSERT INTO `settlement_deduction` (`settlement_deduction_id`, `settlement_id`, `deduction_id`, `deduction_amount`) VALUES
(1, 2, 2, '2000'),
(2, 1, 2, '50');

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

--
-- Table structure for table `site`
--

CREATE TABLE IF NOT EXISTS `site` (
  `site_id` int(5) NOT NULL AUTO_INCREMENT,
  `site_name` varchar(200) NOT NULL,
  `site_cordinator` varchar(100) NOT NULL,
  `site_contact_no` varchar(30) NOT NULL,
  PRIMARY KEY (`site_id`)
) ENGINE=InnoDB  DEFAULT CHARSET=latin1 AUTO_INCREMENT=4 ;

--
-- Dumping data for table `site`
--

INSERT INTO `site` (`site_id`, `site_name`, `site_cordinator`, `site_contact_no`) VALUES
(2, 'Site1', 'Sachin Tendulkar', '9032132121'),
(3, 'Site2', 'Sanjay Raspande', '312321321');

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

--
-- Table structure for table `site_allotment`
--

CREATE TABLE IF NOT EXISTS `site_allotment` (
  `site_allotment_id` int(5) NOT NULL AUTO_INCREMENT,
  `site_id` int(10) NOT NULL,
  `employee_id` int(10) NOT NULL,
  `site_allotment_date` date NOT NULL,
  PRIMARY KEY (`site_allotment_id`),
  KEY `employee_id` (`employee_id`),
  KEY `site_id` (`site_id`)
) ENGINE=InnoDB  DEFAULT CHARSET=latin1 AUTO_INCREMENT=4 ;

--
-- Dumping data for table `site_allotment`
--

INSERT INTO `site_allotment` (`site_allotment_id`, `site_id`, `employee_id`, `site_allotment_date`) VALUES
(1, 2, 19, '2011-12-01'),
(2, 2, 18, '2011-12-01'),
(3, 3, 20, '2011-12-01');

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

--
-- Table structure for table `sponsor`
--

CREATE TABLE IF NOT EXISTS `sponsor` (
  `sponsor_id` int(5) NOT NULL AUTO_INCREMENT,
  `sponsor_name` varchar(100) NOT NULL,
  `sponsor_code` varchar(10) NOT NULL,
  `visa_code` varchar(10) NOT NULL,
  PRIMARY KEY (`sponsor_id`),
  UNIQUE KEY `sponsor_code` (`sponsor_code`)
) ENGINE=InnoDB  DEFAULT CHARSET=latin1 AUTO_INCREMENT=18 ;

--
-- Dumping data for table `sponsor`
--

INSERT INTO `sponsor` (`sponsor_id`, `sponsor_name`, `sponsor_code`, `visa_code`) VALUES
(10, 'Hamlet', '7', 'H'),
(11, 'Horeitia Global', '9', 'HG'),
(12, 'Global', '8', 'GB'),
(14, 'Hamilton', '5', ''),
(15, 'Fine Decor', '1', ''),
(16, 'Tajhiz', '3', ''),
(17, 'Powerman', '6', '');

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

--
-- Table structure for table `temp_employee`
--

CREATE TABLE IF NOT EXISTS `temp_employee` (
  `employee_id` int(11) NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1;

--
-- Dumping data for table `temp_employee`
--


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

--
-- Table structure for table `tool_allotment`
--

CREATE TABLE IF NOT EXISTS `tool_allotment` (
  `tool_allotment_id` int(10) NOT NULL AUTO_INCREMENT,
  `tool_id` int(5) NOT NULL,
  `employee_id` int(10) NOT NULL,
  `tool_allotment_date` date NOT NULL,
  `tool_allotment_expiry` date NOT NULL,
  `tool_remind_before` int(5) NOT NULL,
  `returned` int(11) NOT NULL DEFAULT '1',
  PRIMARY KEY (`tool_allotment_id`),
  KEY `tool_id` (`tool_id`),
  KEY `employee_id` (`employee_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;

--
-- Dumping data for table `tool_allotment`
--


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

--
-- Table structure for table `tool_list`
--

CREATE TABLE IF NOT EXISTS `tool_list` (
  `trade_id` int(10) NOT NULL,
  `tool_id` int(10) NOT NULL AUTO_INCREMENT,
  `tool_name` varchar(60) NOT NULL,
  `tool_shelf_life` int(5) NOT NULL,
  `tool_remind_before` int(5) NOT NULL,
  PRIMARY KEY (`tool_id`)
) ENGINE=InnoDB  DEFAULT CHARSET=latin1 AUTO_INCREMENT=117 ;

--
-- Dumping data for table `tool_list`
--

INSERT INTO `tool_list` (`trade_id`, `tool_id`, `tool_name`, `tool_shelf_life`, `tool_remind_before`) VALUES
(4, 31, 'Claw Hammer', 200, 0),
(4, 32, 'Hand Saw', 150, 0),
(4, 33, 'M. Tape', 450, 0),
(4, 34, 'Right Angle', 120, 0),
(1, 35, 'Scaffolder Spirit Level', 300, 30),
(1, 36, 'Scaffolder Spanner', 250, 10),
(3, 37, 'Screw Driver -', 34, 0),
(3, 38, 'Screw Driver +', 23, 0),
(5, 40, 'hammer', 45, 0),
(6, 41, 'measuring Tape', 10, 0),
(1, 46, 'Hammer', 20, 5),
(1, 48, 'Spanner', 300, 200),
(1, 49, 'Screw Driver', 30, 12),
(3, 50, 'Spirit Lever', 180, 10),
(3, 51, 'M. Tape', 180, 10),
(1, 52, 'Scaffolder Tools Belt Leather', 180, 10),
(1, 53, 'Scaffolder Harness', 180, 10),
(3, 54, 'Pipe Wrench 12"', 180, 10),
(3, 55, 'Pipe Wrench 14"', 180, 10),
(3, 56, 'Pipe Wrench 18"', 180, 10),
(3, 57, 'Spanner Set', 180, 10),
(3, 58, 'Adjustable Spanner', 180, 10),
(3, 59, 'Center Punch', 180, 10),
(3, 60, 'Tool box with pad lock', 180, 10),
(3, 61, 'Axo Blade with Frame', 180, 10),
(4, 62, 'Wood Plainer (m)', 180, 10),
(4, 63, 'Screw Driver  (M) -', 180, 10),
(4, 64, 'Screw Driver  (M) +', 180, 10),
(4, 65, 'Carpenter Chisel ½"', 180, 10),
(4, 66, 'Carpenter Chisel 1"', 180, 10),
(4, 67, 'Carpenter Chisel 1.5"', 180, 10),
(4, 68, 'Carpenter Chisel 32 mm', 180, 10),
(5, 69, 'M. Tape', 180, 10),
(5, 70, 'Hacksaw Blade with Frame', 180, 10),
(5, 71, 'Grip Plier', 180, 10),
(5, 72, 'Tool box with pad lock', 180, 10),
(5, 73, 'Rubber Hammer', 180, 10),
(5, 74, 'Aviation Cutter Left', 180, 10),
(5, 75, 'Aviation Cutter Right', 180, 10),
(5, 76, 'Revet Gun', 180, 10),
(5, 77, 'Right Angle', 180, 10),
(5, 78, 'Cilicon Gun', 180, 10),
(12, 79, 'Knippex HD 180', 180, 10),
(12, 80, 'M. Tape', 180, 10),
(8, 81, 'Screw Driver -', 180, 10),
(8, 82, 'Screw Driver +', 180, 10),
(8, 83, 'Spirit Lever', 180, 10),
(8, 84, 'M. Tape', 180, 10),
(8, 85, 'Spanner Set', 180, 10),
(8, 86, 'Pipe Wrench 14"', 180, 10),
(8, 87, 'Pipe Wrench 18"', 180, 10),
(8, 88, 'Adjustable Spanner (M)', 180, 10),
(8, 89, 'Hammer', 180, 10),
(8, 90, 'Chesel', 180, 10),
(8, 91, 'Hacksaw Blade with Frame', 180, 10),
(8, 92, 'Tool box with pad lock', 180, 10),
(9, 93, 'Screw Driver -', 180, 10),
(9, 94, 'Screw Driver +', 180, 10),
(9, 95, 'Spirit Lever', 180, 10),
(9, 96, 'M. Tape', 180, 10),
(9, 97, 'Tester', 180, 10),
(9, 98, 'File Round', 180, 10),
(9, 99, 'File Flat', 180, 10),
(9, 100, 'Grip Plier', 180, 10),
(9, 101, 'Wire Cutter', 180, 10),
(9, 102, 'Hack Saw Frame W/Blade', 180, 10),
(9, 103, 'Adjustable Spanner', 180, 10),
(9, 104, 'Hammer', 180, 10),
(9, 105, 'Chesel', 180, 10),
(9, 106, 'Cutting Player', 180, 10),
(9, 107, 'Tool box with pad lock', 180, 10),
(10, 108, 'Trowel', 180, 10),
(10, 109, 'Flot', 180, 10),
(10, 110, 'M. Tape', 180, 10),
(10, 111, 'Spirit Level', 180, 10),
(10, 112, 'Hammer', 180, 10),
(10, 113, 'Plumb Bob', 180, 10),
(11, 114, 'Claw Hammer', 180, 10),
(11, 115, 'Hand Saw', 180, 10),
(11, 116, 'M. Tape', 180, 10);

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

--
-- Table structure for table `trade`
--

CREATE TABLE IF NOT EXISTS `trade` (
  `trade_id` int(5) NOT NULL AUTO_INCREMENT,
  `trade_name` varchar(60) NOT NULL,
  `trade_training` int(1) NOT NULL,
  PRIMARY KEY (`trade_id`)
) ENGINE=InnoDB  DEFAULT CHARSET=latin1 AUTO_INCREMENT=34 ;

--
-- Dumping data for table `trade`
--

INSERT INTO `trade` (`trade_id`, `trade_name`, `trade_training`) VALUES
(1, 'Scaffolder', 1),
(3, 'Pipe Fitter', 0),
(4, 'Finishing Carpenter', 0),
(5, 'Duct Fitter', 0),
(6, 'Pipe Fabricator', 0),
(7, 'Rigger', 1),
(8, 'Plumber', 0),
(9, 'Electrician', 0),
(10, 'Mason', 0),
(11, 'Shuttering Carpenter', 0),
(12, 'Steel Fixer', 0),
(13, '6G Welder', 0),
(14, 'ARC Welder', 0),
(15, 'Assistant Electrician', 0),
(16, 'Brick Mason', 0),
(17, 'Carpenter', 0),
(18, 'Duct Fabricator', 0),
(19, 'Duct Foreman', 0),
(20, 'Duct Helper', 0),
(21, 'Duct Insulater', 0),
(22, 'Duct man', 0),
(23, 'Electrician Helper', 0),
(24, 'Furniture Carpenter', 0),
(25, 'Industrial Electrician', 0),
(26, 'Insulator', 0),
(27, 'Labor', 0),
(28, 'Mechanical Helper', 0),
(29, 'Painter', 0),
(30, 'Tile Mason', 0),
(31, 'Wallpainter', 0),
(32, 'Welder ', 0),
(33, 'Welder Helper', 0);

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

--
-- Table structure for table `trade_change`
--

CREATE TABLE IF NOT EXISTS `trade_change` (
  `trade_change_id` int(11) NOT NULL AUTO_INCREMENT,
  `employee_id` int(11) NOT NULL,
  `trade_id` int(11) NOT NULL,
  `trade_change_date` date NOT NULL,
  `remarks` text NOT NULL,
  PRIMARY KEY (`trade_change_id`),
  KEY `employee_id` (`employee_id`),
  KEY `trade_id` (`trade_id`)
) ENGINE=InnoDB  DEFAULT CHARSET=latin1 AUTO_INCREMENT=4 ;

--
-- Dumping data for table `trade_change`
--

INSERT INTO `trade_change` (`trade_change_id`, `employee_id`, `trade_id`, `trade_change_date`, `remarks`) VALUES
(1, 18, 14, '2011-11-30', ''),
(2, 19, 14, '2011-11-30', ''),
(3, 20, 14, '2011-11-30', '');

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

--
-- Table structure for table `training_module`
--

CREATE TABLE IF NOT EXISTS `training_module` (
  `training_module_id` int(5) NOT NULL AUTO_INCREMENT,
  `trade_id` int(5) NOT NULL,
  `training_type` varchar(200) NOT NULL,
  PRIMARY KEY (`training_module_id`),
  UNIQUE KEY `trade_id_2` (`trade_id`),
  KEY `trade_id` (`trade_id`)
) ENGINE=InnoDB  DEFAULT CHARSET=latin1 AUTO_INCREMENT=4 ;

--
-- Dumping data for table `training_module`
--

INSERT INTO `training_module` (`training_module_id`, `trade_id`, `training_type`) VALUES
(2, 1, 'Vocational Trainig'),
(3, 7, 'Vocational Trainig');

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

--
-- Table structure for table `user`
--

CREATE TABLE IF NOT EXISTS `user` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `username` varchar(25) NOT NULL,
  `password` varchar(32) NOT NULL,
  `role_id` int(11) NOT NULL,
  `email` varchar(60) NOT NULL,
  `permission` mediumtext NOT NULL,
  `edit_del_permission` tinytext NOT NULL,
  PRIMARY KEY (`id`),
  KEY `role_id` (`role_id`)
) ENGINE=InnoDB  DEFAULT CHARSET=latin1 AUTO_INCREMENT=5 ;

--
-- Dumping data for table `user`
--

INSERT INTO `user` (`id`, `username`, `password`, `role_id`, `email`, `permission`, `edit_del_permission`) VALUES
(2, 'admin', '21232f297a57a5a743894a0e4a801fc3', 1, 'shan.salam@isrishti.com', '41,10,13,14,7,1,2,3,42,4,5,6,11,43,9,12,40,49,50,51,52,44,15,38,16,17,18,39,20,22,23,24,45,47,25,36,37,27,28,30,29,48,31,35,33,34,46,,', '7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,,'),
(4, 'shan', '3e119ab537d3c4cc0c31b9277bfd785e', 5, 'shan.salam@isrishti.com', '41,10,13,14,7,1,2,3,42,4,5,6,11,43,9,12,40,49,50,51,52,44,15,38,16,17,18,21,39,20,22,23,24,45,47,25,36,37,27,28,30,29,48,31,35,33,34,46,', '4,4,4,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,4,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,7,7,7,7,7,');

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

--
-- Table structure for table `visa_processing`
--

CREATE TABLE IF NOT EXISTS `visa_processing` (
  `visa_processing_id` int(11) NOT NULL AUTO_INCREMENT,
  `employee_id` int(11) NOT NULL,
  `visa_type_id` int(11) NOT NULL,
  `visa_issue_date` date NOT NULL,
  `visa_expiry_date` date NOT NULL,
  `visa_remind_before` int(11) NOT NULL,
  `work_permit` varchar(110) NOT NULL,
  `work_permit_expiry_date` date NOT NULL,
  `work_permit_renewal_date` date NOT NULL,
  `medical` varchar(100) NOT NULL,
  `blood_group` varchar(100) NOT NULL,
  `id_card_no` varchar(100) NOT NULL,
  `health_card_no` varchar(100) NOT NULL,
  `fingerprint` varchar(100) NOT NULL,
  `employee_no` varchar(11) NOT NULL,
  PRIMARY KEY (`visa_processing_id`),
  KEY `visa_type_id` (`visa_type_id`),
  KEY `employee_id` (`employee_id`)
) ENGINE=InnoDB  DEFAULT CHARSET=latin1 AUTO_INCREMENT=4 ;

--
-- Dumping data for table `visa_processing`
--

INSERT INTO `visa_processing` (`visa_processing_id`, `employee_id`, `visa_type_id`, `visa_issue_date`, `visa_expiry_date`, `visa_remind_before`, `work_permit`, `work_permit_expiry_date`, `work_permit_renewal_date`, `medical`, `blood_group`, `id_card_no`, `health_card_no`, `fingerprint`, `employee_no`) VALUES
(1, 18, 19, '2011-11-02', '2013-11-22', 3, '', '0000-00-00', '0000-00-00', '', '', '', '', '', '09300000'),
(2, 19, 19, '1970-01-01', '2013-11-22', 0, '', '0000-00-00', '0000-00-00', '', '', '', '', '', '09300001'),
(3, 20, 19, '1970-01-01', '0000-00-00', 0, '', '0000-00-00', '0000-00-00', '', '', '', '', '', '07300000');

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

--
-- Table structure for table `visa_type`
--

CREATE TABLE IF NOT EXISTS `visa_type` (
  `visa_type_id` int(11) NOT NULL AUTO_INCREMENT,
  `visa_type_name` varchar(200) NOT NULL,
  `visa_type_duration` varchar(100) NOT NULL,
  `visa_code` int(11) NOT NULL,
  PRIMARY KEY (`visa_type_id`)
) ENGINE=InnoDB  DEFAULT CHARSET=latin1 AUTO_INCREMENT=20 ;

--
-- Dumping data for table `visa_type`
--

INSERT INTO `visa_type` (`visa_type_id`, `visa_type_name`, `visa_type_duration`, `visa_code`) VALUES
(18, 'Employment', '24', 0),
(19, 'Business', '1', 1);

--
-- Constraints for dumped tables
--

--
-- Constraints for table `alert`
--
ALTER TABLE `alert`
  ADD CONSTRAINT `alert_ibfk_1` FOREIGN KEY (`alert_master_id`) REFERENCES `alert_master` (`alert_master_id`) ON DELETE NO ACTION ON UPDATE NO ACTION,
  ADD CONSTRAINT `alert_ibfk_2` FOREIGN KEY (`employee_id`) REFERENCES `employee_non_main` (`emp_non_id`) ON DELETE CASCADE ON UPDATE CASCADE;

--
-- Constraints for table `alert_master_designation`
--
ALTER TABLE `alert_master_designation`
  ADD CONSTRAINT `alert_master_designation_ibfk_2` FOREIGN KEY (`designation_id`) REFERENCES `designation` (`designation_id`) ON DELETE NO ACTION,
  ADD CONSTRAINT `alert_master_designation_ibfk_3` FOREIGN KEY (`alert_master_id`) REFERENCES `alert_master` (`alert_master_id`) ON DELETE CASCADE;

--
-- Constraints for table `alert_user`
--
ALTER TABLE `alert_user`
  ADD CONSTRAINT `alert_user_ibfk_1` FOREIGN KEY (`alert_id`) REFERENCES `alert` (`alert_id`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `alert_user_ibfk_2` FOREIGN KEY (`user_id`) REFERENCES `user` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;

--
-- Constraints for table `camp_allotment`
--
ALTER TABLE `camp_allotment`
  ADD CONSTRAINT `camp_allotment_ibfk_1` FOREIGN KEY (`camp_id`) REFERENCES `camp` (`camp_id`) ON DELETE NO ACTION,
  ADD CONSTRAINT `camp_allotment_ibfk_2` FOREIGN KEY (`employee_id`) REFERENCES `employee_non_main` (`emp_non_id`) ON DELETE CASCADE;

--
-- Constraints for table `cir`
--
ALTER TABLE `cir`
  ADD CONSTRAINT `cir_ibfk_1` FOREIGN KEY (`employee_id`) REFERENCES `employee_non_main` (`emp_non_id`) ON DELETE CASCADE;

--
-- Constraints for table `employee_absent`
--
ALTER TABLE `employee_absent`
  ADD CONSTRAINT `employee_absent_ibfk_1` FOREIGN KEY (`attendance_reason_id`) REFERENCES `attendance_list` (`attendance_list_id`) ON DELETE NO ACTION,
  ADD CONSTRAINT `employee_absent_ibfk_2` FOREIGN KEY (`employee_id`) REFERENCES `employee_non_main` (`emp_non_id`) ON DELETE CASCADE ON UPDATE CASCADE;

--
-- Constraints for table `employee_non_main`
--
ALTER TABLE `employee_non_main`
  ADD CONSTRAINT `employee_non_main_ibfk_1` FOREIGN KEY (`emp_non_nationality_id`) REFERENCES `nationality` (`nationality_id`) ON DELETE NO ACTION,
  ADD CONSTRAINT `employee_non_main_ibfk_2` FOREIGN KEY (`emp_non_trade_id`) REFERENCES `trade` (`trade_id`) ON DELETE NO ACTION,
  ADD CONSTRAINT `employee_non_main_ibfk_3` FOREIGN KEY (`emp_non_visa_type_id`) REFERENCES `visa_type` (`visa_type_id`) ON DELETE NO ACTION,
  ADD CONSTRAINT `employee_non_main_ibfk_4` FOREIGN KEY (`emp_non_sponsor_id`) REFERENCES `sponsor` (`sponsor_id`) ON DELETE NO ACTION,
  ADD CONSTRAINT `employee_non_main_ibfk_5` FOREIGN KEY (`emp_non_agency_id`) REFERENCES `agency` (`agency_id`) ON DELETE NO ACTION,
  ADD CONSTRAINT `employee_non_main_ibfk_6` FOREIGN KEY (`batch_id`) REFERENCES `batch` (`id`) ON DELETE NO ACTION,
  ADD CONSTRAINT `employee_non_main_ibfk_7` FOREIGN KEY (`emp_non_id`) REFERENCES `master` (`master_id`) ON DELETE CASCADE;

--
-- Constraints for table `employee_status`
--
ALTER TABLE `employee_status`
  ADD CONSTRAINT `employee_status_ibfk_1` FOREIGN KEY (`employee_id`) REFERENCES `employee_non_main` (`emp_non_id`) ON DELETE CASCADE ON UPDATE CASCADE;

--
-- Constraints for table `employee_training`
--
ALTER TABLE `employee_training`
  ADD CONSTRAINT `employee_training_ibfk_1` FOREIGN KEY (`employee_id`) REFERENCES `employee_non_main` (`emp_non_id`) ON DELETE CASCADE,
  ADD CONSTRAINT `employee_training_ibfk_2` FOREIGN KEY (`training_id`) REFERENCES `training_module` (`training_module_id`) ON DELETE NO ACTION;

--
-- Constraints for table `emp_non_personal`
--
ALTER TABLE `emp_non_personal`
  ADD CONSTRAINT `emp_non_personal_ibfk_1` FOREIGN KEY (`emp_non_id`) REFERENCES `employee_non_main` (`emp_non_id`) ON DELETE CASCADE,
  ADD CONSTRAINT `emp_non_personal_ibfk_2` FOREIGN KEY (`emp_non_personal_religion_id`) REFERENCES `religion` (`religion_id`) ON DELETE NO ACTION;

--
-- Constraints for table `exit`
--
ALTER TABLE `exit`
  ADD CONSTRAINT `exit_ibfk_1` FOREIGN KEY (`leave_id`) REFERENCES `leave` (`leave_id`) ON DELETE CASCADE ON UPDATE CASCADE;

--
-- Constraints for table `expected_arrival`
--
ALTER TABLE `expected_arrival`
  ADD CONSTRAINT `expected_arrival_ibfk_1` FOREIGN KEY (`expected_arrival_id`) REFERENCES `master` (`master_id`) ON DELETE CASCADE,
  ADD CONSTRAINT `expected_arrival_ibfk_2` FOREIGN KEY (`expected_arrival_trade`) REFERENCES `trade` (`trade_id`) ON DELETE NO ACTION,
  ADD CONSTRAINT `expected_arrival_ibfk_3` FOREIGN KEY (`expected_arrival_nationality`) REFERENCES `nationality` (`nationality_id`) ON DELETE NO ACTION;

--
-- Constraints for table `item_allotment`
--
ALTER TABLE `item_allotment`
  ADD CONSTRAINT `item_allotment_ibfk_1` FOREIGN KEY (`item_id`) REFERENCES `general_item` (`item_id`) ON DELETE NO ACTION,
  ADD CONSTRAINT `item_allotment_ibfk_2` FOREIGN KEY (`employee_id`) REFERENCES `employee_non_main` (`emp_non_id`) ON DELETE CASCADE;

--
-- Constraints for table `leave`
--
ALTER TABLE `leave`
  ADD CONSTRAINT `leave_ibfk_2` FOREIGN KEY (`employee_id`) REFERENCES `employee_non_main` (`emp_non_id`) ON DELETE CASCADE,
  ADD CONSTRAINT `leave_ibfk_3` FOREIGN KEY (`leave_type_id`) REFERENCES `leave_type` (`leave_type_id`) ON DELETE NO ACTION;

--
-- Constraints for table `office_employee`
--
ALTER TABLE `office_employee`
  ADD CONSTRAINT `office_employee_ibfk_1` FOREIGN KEY (`office_employee_visa_type_id`) REFERENCES `visa_type` (`visa_type_id`) ON DELETE NO ACTION,
  ADD CONSTRAINT `office_employee_ibfk_2` FOREIGN KEY (`office_employee_grade_id`) REFERENCES `grade` (`grade_id`) ON DELETE NO ACTION,
  ADD CONSTRAINT `office_employee_ibfk_3` FOREIGN KEY (`office_employee_designation_id`) REFERENCES `designation` (`designation_id`) ON DELETE NO ACTION;

--
-- Constraints for table `office_exit`
--
ALTER TABLE `office_exit`
  ADD CONSTRAINT `office_exit_ibfk_1` FOREIGN KEY (`office_exit_leave_id`) REFERENCES `office_leave` (`office_leave_id`) ON DELETE CASCADE;

--
-- Constraints for table `office_leave`
--
ALTER TABLE `office_leave`
  ADD CONSTRAINT `office_leave_ibfk_1` FOREIGN KEY (`office_leave_type_id`) REFERENCES `leave_type` (`leave_type_id`) ON DELETE NO ACTION,
  ADD CONSTRAINT `office_leave_ibfk_2` FOREIGN KEY (`office_leave_employee_id`) REFERENCES `office_employee` (`office_employee_id`) ON DELETE CASCADE;

--
-- Constraints for table `office_settlement`
--
ALTER TABLE `office_settlement`
  ADD CONSTRAINT `office_settlement_ibfk_1` FOREIGN KEY (`office_settlement_leave_id`) REFERENCES `office_leave` (`office_leave_id`) ON DELETE CASCADE;

--
-- Constraints for table `reminder`
--
ALTER TABLE `reminder`
  ADD CONSTRAINT `reminder_ibfk_1` FOREIGN KEY (`reminder_id`) REFERENCES `master` (`master_id`) ON DELETE CASCADE ON UPDATE CASCADE;

--
-- Constraints for table `role`
--
ALTER TABLE `role`
  ADD CONSTRAINT `role_ibfk_1` FOREIGN KEY (`designation_id`) REFERENCES `designation` (`designation_id`) ON DELETE NO ACTION;

--
-- Constraints for table `salary`
--
ALTER TABLE `salary`
  ADD CONSTRAINT `salary_ibfk_1` FOREIGN KEY (`employee_id`) REFERENCES `employee_non_main` (`emp_non_id`) ON DELETE CASCADE ON UPDATE CASCADE;

--
-- Constraints for table `salary_allowance`
--
ALTER TABLE `salary_allowance`
  ADD CONSTRAINT `salary_allowance_ibfk_1` FOREIGN KEY (`salary_id`) REFERENCES `salary` (`salary_id`) ON DELETE CASCADE ON UPDATE CASCADE;

--
-- Constraints for table `salary_deduction`
--
ALTER TABLE `salary_deduction`
  ADD CONSTRAINT `salary_deduction_ibfk_1` FOREIGN KEY (`salary_id`) REFERENCES `salary` (`salary_id`) ON DELETE CASCADE ON UPDATE CASCADE;

--
-- Constraints for table `settlement`
--
ALTER TABLE `settlement`
  ADD CONSTRAINT `settlement_ibfk_2` FOREIGN KEY (`leave_id`) REFERENCES `leave` (`leave_id`) ON DELETE CASCADE;

--
-- Constraints for table `site_allotment`
--
ALTER TABLE `site_allotment`
  ADD CONSTRAINT `site_allotment_ibfk_1` FOREIGN KEY (`employee_id`) REFERENCES `employee_non_main` (`emp_non_id`) ON DELETE CASCADE,
  ADD CONSTRAINT `site_allotment_ibfk_2` FOREIGN KEY (`site_id`) REFERENCES `site` (`site_id`) ON DELETE NO ACTION;

--
-- Constraints for table `tool_allotment`
--
ALTER TABLE `tool_allotment`
  ADD CONSTRAINT `tool_allotment_ibfk_1` FOREIGN KEY (`tool_id`) REFERENCES `tool_list` (`tool_id`) ON DELETE NO ACTION,
  ADD CONSTRAINT `tool_allotment_ibfk_2` FOREIGN KEY (`employee_id`) REFERENCES `employee_non_main` (`emp_non_id`) ON DELETE CASCADE;

--
-- Constraints for table `trade_change`
--
ALTER TABLE `trade_change`
  ADD CONSTRAINT `trade_change_ibfk_1` FOREIGN KEY (`employee_id`) REFERENCES `employee_non_main` (`emp_non_id`) ON DELETE CASCADE,
  ADD CONSTRAINT `trade_change_ibfk_2` FOREIGN KEY (`trade_id`) REFERENCES `trade` (`trade_id`) ON DELETE NO ACTION;

--
-- Constraints for table `training_module`
--
ALTER TABLE `training_module`
  ADD CONSTRAINT `training_module_ibfk_1` FOREIGN KEY (`trade_id`) REFERENCES `trade` (`trade_id`) ON DELETE NO ACTION;

--
-- Constraints for table `user`
--
ALTER TABLE `user`
  ADD CONSTRAINT `user_ibfk_1` FOREIGN KEY (`role_id`) REFERENCES `role` (`role_id`) ON DELETE NO ACTION;

--
-- Constraints for table `visa_processing`
--
ALTER TABLE `visa_processing`
  ADD CONSTRAINT `visa_processing_ibfk_1` FOREIGN KEY (`employee_id`) REFERENCES `employee_non_main` (`emp_non_id`) ON DELETE CASCADE,
  ADD CONSTRAINT `visa_processing_ibfk_2` FOREIGN KEY (`visa_type_id`) REFERENCES `visa_type` (`visa_type_id`) ON DELETE NO ACTION;

bypass 1.0, Devloped By El Moujahidin (the source has been moved and devloped)
Email: contact@elmoujehidin.net