-- phpMyAdmin SQL Dump
-- version 4.8.0.1
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: Aug 08, 2018 at 10:23 AM
-- Server version: 10.1.32-MariaDB
-- PHP Version: 5.6.36

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


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

--
-- Database: `hrm`
--

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

--
-- Table structure for table `tbl_employee`
--

CREATE TABLE `tbl_employee` (
  `id` int(50) NOT NULL,
  `user_type` varchar(255) NOT NULL,
  `emp_id` int(50) NOT NULL,
  `firstname` text NOT NULL,
  `lastname` text NOT NULL,
  `gender` varchar(255) NOT NULL,
  `profile_photo` varchar(255) NOT NULL,
  `profile_photo_data` text NOT NULL,
  `email_id` text NOT NULL,
  `phone_no` text NOT NULL,
  `username` varchar(50) NOT NULL,
  `password` varchar(255) NOT NULL,
  `user_status` text NOT NULL,
  `remarks` text NOT NULL,
  `recruited_by` text NOT NULL,
  `create_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `tbl_employee`
--

INSERT INTO `tbl_employee` (`id`, `user_type`, `emp_id`, `firstname`, `lastname`, `gender`, `profile_photo`, `profile_photo_data`, `email_id`, `phone_no`, `username`, `password`, `user_status`, `remarks`, `recruited_by`, `create_time`) VALUES
(1, 'admin', 11001, 'Vir Bhadra', 'Pant', 'male', 'n/a', 'n/a', 'virbhadrapant@gmail.com', '7209166865', 'ranjan', 'ranjan', 'active', 'active', '', '2018-07-17 16:08:59'),
(2, 'pd', 22001, 'Vir Bhadra', 'Pant', 'male', 'n/a', 'n/a', 'virbhadrapant@gmail.com', '7209166865', 'viru', 'viru', 'active', 'active', '', '2018-07-17 16:08:59'),
(3, 'hr', 33001, 'Vir Bhadra', 'Pant', 'male', 'n/a', 'n/a', 'virbhadrapant@gmail.com', '7209166865', 'vir', 'vir', 'active', 'active', '', '2018-07-17 16:08:59'),
(4, 'acc', 44001, 'Vir Bhadra', 'Pant', 'male', 'n/a', 'n/a', 'virbhadrapant@gmail.com', '7209166865', 'bhadra', 'bhadra', 'active', 'active', '', '2018-07-17 16:08:59'),
(5, 'emp', 55001, 'Vir Bhadra', 'Pant', 'male', 'n/a', 'n/a', 'virbhadrapant@gmail.com', '7209166865', 'pant', 'pant', 'active', 'good one', '', '2018-07-17 16:08:59');

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

--
-- Table structure for table `tbl_menu_mtr`
--

CREATE TABLE `tbl_menu_mtr` (
  `id` int(50) NOT NULL,
  `menu_name` text NOT NULL,
  `file_path` text NOT NULL,
  `under_menu_id` int(50) NOT NULL,
  `menu_order` int(50) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `tbl_menu_mtr`
--

INSERT INTO `tbl_menu_mtr` (`id`, `menu_name`, `file_path`, `under_menu_id`, `menu_order`) VALUES
(20, 'VEER', '#', 0, 0),
(21, 'bhadra', 'dashboard/index', 20, 1),
(22, 'pant', 'dashboard/index', 20, 2),
(23, 'vir', 'dashboard/menu_permission', 20, 3),
(24, 'ranjan', 'dashboard/menu_permission', 20, 4),
(25, 'HBD', '#', 0, 0),
(26, 'test', 'dashboard/menu_permission', 25, 1);

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

--
-- Table structure for table `tbl_menu_permission`
--

CREATE TABLE `tbl_menu_permission` (
  `id` int(50) NOT NULL,
  `menu_id` int(50) NOT NULL,
  `user_type_id` int(50) NOT NULL,
  `status` int(50) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `tbl_menu_permission`
--

INSERT INTO `tbl_menu_permission` (`id`, `menu_id`, `user_type_id`, `status`) VALUES
(16, 21, 1, 1),
(17, 22, 1, 1),
(18, 26, 1, 1),
(19, 26, 2, 1);

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

--
-- Table structure for table `tbl_page_mtr`
--

CREATE TABLE `tbl_page_mtr` (
  `id` int(50) NOT NULL,
  `page_name` text NOT NULL,
  `page_desc` text NOT NULL,
  `page_link` text NOT NULL,
  `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `created_by` text NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `tbl_page_mtr`
--

INSERT INTO `tbl_page_mtr` (`id`, `page_name`, `page_desc`, `page_link`, `created_at`, `created_by`) VALUES
(1, 'dashboard_index', 'test checking link', 'dashboard/index', '2018-08-05 07:52:49', '101/admin/veer'),
(2, 'menu_permission', 'check link', 'dashboard/menu_permission', '2018-08-05 08:17:48', '101/admin/veer'),
(5, 'test', 'dashboard/index', 'test description', '2018-08-07 09:40:37', '101/admin/veer');

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

--
-- Table structure for table `tbl_user_mtr`
--

CREATE TABLE `tbl_user_mtr` (
  `id` int(50) NOT NULL,
  `user_type` text NOT NULL,
  `type_code` int(2) NOT NULL,
  `description` text NOT NULL,
  `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `tbl_user_mtr`
--

INSERT INTO `tbl_user_mtr` (`id`, `user_type`, `type_code`, `description`, `created_at`) VALUES
(1, 'admin', 11, 'Administrator', '2018-07-18 17:54:13'),
(2, 'pd', 22, 'Project Director', '2018-07-15 21:35:06'),
(3, 'hr', 33, 'Human Resource', '2018-07-15 21:35:06'),
(4, 'acc', 44, 'Accountant', '2018-07-15 21:36:33'),
(5, 'emp', 55, 'Employee', '2018-07-15 21:36:33');

--
-- Indexes for dumped tables
--

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

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

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

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

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

--
-- AUTO_INCREMENT for dumped tables
--

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

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

--
-- AUTO_INCREMENT for table `tbl_menu_permission`
--
ALTER TABLE `tbl_menu_permission`
  MODIFY `id` int(50) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=20;

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

--
-- AUTO_INCREMENT for table `tbl_user_mtr`
--
ALTER TABLE `tbl_user_mtr`
  MODIFY `id` int(50) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=6;
COMMIT;

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