-- phpMyAdmin SQL Dump
-- version 5.2.1
-- https://www.phpmyadmin.net/
--
-- Host: localhost:3306
-- Generation Time: Nov 29, 2023 at 09:51 AM
-- Server version: 8.0.35
-- PHP Version: 8.1.16

SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
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: `gmpsoftwareindia_saipro`
--

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

--
-- Table structure for table `emp_rights`
--

CREATE TABLE `emp_rights` (
  `id` int NOT NULL,
  `user_no` varchar(20) NOT NULL DEFAULT 'gmpdemo1',
  `emp_id` varchar(20) NOT NULL,
  `department` varchar(50) NOT NULL,
  `module` varchar(50) NOT NULL,
  `form_name` varchar(50) NOT NULL,
  `isuser` varchar(20) NOT NULL DEFAULT 'true',
  `ischecker` varchar(20) NOT NULL DEFAULT 'true',
  `isapprover` varchar(20) NOT NULL DEFAULT 'true',
  `qms_approver` varchar(15) NOT NULL,
  `dept_head` varchar(25) NOT NULL,
  `isauditor` varchar(10) NOT NULL DEFAULT 'false',
  `user_rights` text,
  `additional` text NOT NULL,
  `rights` varchar(20) NOT NULL,
  `ismail` varchar(10) NOT NULL,
  `iscontact` varchar(10) NOT NULL,
  `mail_id` varchar(50) NOT NULL,
  `contact_no` varchar(20) NOT NULL,
  `from_date` date NOT NULL,
  `to_date` date DEFAULT NULL,
  `status` varchar(20) NOT NULL DEFAULT 'pending',
  `entry_by` varchar(20) NOT NULL,
  `entry_date` datetime NOT NULL,
  `update_by` varchar(20) NOT NULL,
  `update_date` date DEFAULT NULL,
  `plant_id` varchar(20) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `emp_rights`
--

INSERT INTO `emp_rights` (`id`, `user_no`, `emp_id`, `department`, `module`, `form_name`, `isuser`, `ischecker`, `isapprover`, `qms_approver`, `dept_head`, `isauditor`, `user_rights`, `additional`, `rights`, `ismail`, `iscontact`, `mail_id`, `contact_no`, `from_date`, `to_date`, `status`, `entry_by`, `entry_date`, `update_by`, `update_date`, `plant_id`) VALUES
(1, 'gmpdemo1', 'master', 'all', '', '', 'true', 'true', 'true', 'true', 'true', 'false', '[{}]', '[]', '', '', '', '', '', '0000-00-00', NULL, 'approve', 'master', '2022-11-28 05:12:09', '', NULL, '67'),
(37, '', '194', 'Management', '', '', 'Yes', 'No', 'Yes', 'No', 'No', 'false', '', '', '', '', '', '', '', '0000-00-00', NULL, 'approve', 'master', '2023-09-23 05:42:49', '', NULL, '67'),
(38, '', 'T_EMP_12', 'Purchase', '', '', 'Yes', 'Yes', 'No', 'Yes', 'Yes', 'false', '', '', '', '', '', '', '', '0000-00-00', NULL, 'approve', 'master', '2023-11-29 11:59:04', '', NULL, '67');

--
-- Indexes for dumped tables
--

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

--
-- AUTO_INCREMENT for dumped tables
--

--
-- AUTO_INCREMENT for table `emp_rights`
--
ALTER TABLE `emp_rights`
  MODIFY `id` int NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=39;
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 */;
