-- phpMyAdmin SQL Dump
-- version 5.2.1
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: Mar 13, 2025 at 06:55 AM
-- Server version: 10.4.32-MariaDB
-- PHP Version: 8.2.12

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: `nilatech_attendance`
--

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

--
-- Table structure for table `attendance`
--

CREATE TABLE `attendance` (
  `id` int(11) NOT NULL,
  `checkin` varchar(200) DEFAULT NULL,
  `checkout` varchar(200) DEFAULT NULL,
  `leave_id` int(11) NOT NULL,
  `user_id` int(11) NOT NULL,
  `location_id` int(11) NOT NULL,
  `leave_date` varchar(200) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

--
-- Dumping data for table `attendance`
--

INSERT INTO `attendance` (`id`, `checkin`, `checkout`, `leave_id`, `user_id`, `location_id`, `leave_date`) VALUES
(11, '2025-02-01 11:09:48', '', 0, 24, 1, '2025-02-01'),
(12, '0', '0', 1, 24, 0, '2025-02-12'),
(13, '0', '0', 1, 24, 0, '2025-02-07'),
(14, '2025-02-05 11:40:40', '', 0, 24, 1, '2025-02-05'),
(17, '0', '0', 1, 3, 0, '2025-02-13'),
(22, '0', '0', 1, 3, 0, '2025-02-07');

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

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

CREATE TABLE `leave` (
  `id` int(11) NOT NULL,
  `date` date NOT NULL,
  `user_id` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

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

INSERT INTO `leave` (`id`, `date`, `user_id`) VALUES
(4, '2025-02-12', 24),
(5, '2025-02-07', 24),
(8, '2025-02-13', 3),
(13, '2025-02-07', 3);

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

--
-- Table structure for table `location`
--

CREATE TABLE `location` (
  `id` int(11) NOT NULL,
  `location_name` varchar(30) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

--
-- Dumping data for table `location`
--

INSERT INTO `location` (`id`, `location_name`) VALUES
(1, 'Trichy - KK Nagar'),
(2, 'Karur - Thirukkampuliyur'),
(3, 'Karur - Mahadhanapuram'),
(4, 'Trichy - Thiruvallarai');

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

--
-- Table structure for table `project`
--

CREATE TABLE `project` (
  `id` int(11) NOT NULL,
  `project_name` varchar(255) NOT NULL,
  `project_code` varchar(200) NOT NULL,
  `task_count` int(11) NOT NULL,
  `status` int(11) NOT NULL,
  `created_at` timestamp NOT NULL DEFAULT current_timestamp(),
  `updated_at` timestamp NOT NULL DEFAULT current_timestamp(),
  `active` int(11) NOT NULL DEFAULT 0
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

--
-- Dumping data for table `project`
--

INSERT INTO `project` (`id`, `project_name`, `project_code`, `task_count`, `status`, `created_at`, `updated_at`, `active`) VALUES
(2, 'RAS i4 PLC-v5.01', 'NR24100', 13, 0, '2025-01-23 05:20:47', '2025-01-23 10:50:47', 0),
(3, 'ANALOG-v1.0', 'NR24101', 13, 0, '2025-01-23 05:23:36', '2025-01-23 10:53:36', 0),
(4, 'MOTION CONT-v3.0', 'NR24108', 13, 0, '2025-01-23 05:26:48', '2025-01-23 10:56:48', 0),
(5, 'Eight Channel-v3.0', 'NR24106', 13, 0, '2025-01-23 05:28:38', '2025-01-23 10:58:38', 0),
(6, 'GOGGLES-v2.0', 'NR24114', 13, 0, '2025-01-23 05:32:26', '2025-01-23 11:02:26', 0),
(7, 'FPGA', 'NR24113', 3, 0, '2025-01-23 05:33:00', '2025-01-23 11:03:00', 0),
(8, 'HYDRAULIC CONTROLLER', 'NR24110', 4, 0, '2025-01-23 05:33:47', '2025-01-23 11:03:47', 0),
(9, 'WELDING CONTROLLER', 'NR24119', 4, 0, '2025-01-23 05:34:33', '2025-01-23 11:04:33', 0),
(10, 'NRAX65_RCI', 'NR24103', 9, 0, '2025-01-23 05:36:16', '2025-01-23 11:06:16', 0),
(11, 'RANE-DISK PAD', 'NR24118', 13, 0, '2025-01-23 05:38:15', '2025-01-23 11:08:15', 0),
(12, 'FLICKERING(SK)v2.0', 'NR24107', 13, 0, '2025-01-23 05:39:54', '2025-01-23 11:09:54', 0),
(13, 'WELDING WIRE FEEDR', 'NR24117', 13, 0, '2025-01-23 05:41:57', '2025-01-23 11:11:57', 0),
(14, 'TERMINAL BLOCK', 'NR24116', 3, 0, '2025-01-23 05:42:56', '2025-01-23 11:12:56', 0),
(15, 'LINA Battery', 'NR24105', 4, 0, '2025-01-23 05:43:53', '2025-01-23 11:13:53', 0),
(16, 'UI DESIGN', 'NR24120', 4, 0, '2025-01-23 05:45:13', '2025-01-23 11:15:13', 0),
(18, 'Smart Bag Count', 'NR24104', 4, 0, '2025-01-25 00:24:57', '2025-01-25 05:54:57', 0);

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

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

CREATE TABLE `role` (
  `id` int(11) NOT NULL,
  `role_name` varchar(200) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

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

INSERT INTO `role` (`id`, `role_name`) VALUES
(1, 'admin'),
(2, 'software '),
(3, 'embedded'),
(4, 'designer'),
(5, 'designer_autoCAD');

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

--
-- Table structure for table `task`
--

CREATE TABLE `task` (
  `id` int(11) NOT NULL,
  `task_name` varchar(255) NOT NULL,
  `project_id` int(11) NOT NULL,
  `user_id` int(11) DEFAULT NULL,
  `status` int(11) NOT NULL,
  `created_at` timestamp NOT NULL DEFAULT current_timestamp(),
  `updated_at` timestamp NULL DEFAULT current_timestamp(),
  `duration` int(11) NOT NULL DEFAULT 0,
  `active` int(11) NOT NULL DEFAULT 0
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

--
-- Dumping data for table `task`
--

INSERT INTO `task` (`id`, `task_name`, `project_id`, `user_id`, `status`, `created_at`, `updated_at`, `duration`, `active`) VALUES
(2, 'PCB design', 2, 8, 2, '2025-01-23 05:20:47', '2025-01-23 10:50:47', 1, 1),
(3, 'Support', 2, 20, 1, '2025-01-23 05:20:47', '2025-01-23 10:50:48', 0, 0),
(4, 'PCB QC', 2, 8, 2, '2025-01-23 05:20:48', '2025-01-23 10:50:48', 2, 0),
(5, 'PURCHASE', 2, 8, 1, '2025-01-23 05:20:48', '2025-01-23 10:50:48', 0, 0),
(6, 'Soldering', 2, 9, 1, '2025-01-23 05:20:48', '2025-01-23 10:50:48', 0, 0),
(7, 'Soldering QC', 2, NULL, 0, '2025-01-23 05:20:48', '2025-01-23 10:50:48', 0, 0),
(8, 'Software', 2, 1, 1, '2025-01-23 05:20:48', '2025-01-23 10:50:48', 0, 0),
(9, 'Programme', 2, NULL, 0, '2025-01-23 05:20:48', '2025-01-23 10:50:48', 0, 0),
(10, 'CAD Design', 2, 19, 1, '2025-01-23 05:20:48', '2025-01-23 10:50:48', 2, 0),
(11, '3D Print', 18, 19, 1, '2025-01-23 05:20:48', '2025-01-23 10:50:48', 0, 0),
(12, 'Matel case', 2, 5, 1, '2025-01-23 05:20:48', '2025-01-23 10:50:48', 0, 0),
(13, 'Testing in LAB', 2, NULL, 0, '2025-01-23 05:20:48', '2025-01-23 10:50:48', 0, 0),
(14, 'Testing in FAC', 2, NULL, 0, '2025-01-23 05:20:48', '2025-01-23 10:50:48', 0, 0),
(15, 'R & D', 3, 24, 1, '2025-01-23 05:23:36', '2025-01-23 10:53:36', 0, 0),
(16, 'PCB design', 3, NULL, 0, '2025-01-23 05:23:36', '2025-01-23 10:53:36', 0, 0),
(17, 'Support', 3, NULL, 0, '2025-01-23 05:23:36', '2025-01-23 10:53:36', 0, 0),
(18, 'PCB QC', 3, NULL, 0, '2025-01-23 05:23:36', '2025-01-23 10:53:36', 0, 0),
(19, 'PURCHASE', 3, NULL, 0, '2025-01-23 05:23:36', '2025-01-23 10:53:36', 0, 0),
(20, 'Soldering', 3, NULL, 0, '2025-01-23 05:23:36', '2025-01-23 10:53:36', 0, 0),
(21, 'Soldering QC', 3, NULL, 0, '2025-01-23 05:23:36', '2025-01-23 10:53:36', 0, 0),
(22, 'Software', 3, NULL, 0, '2025-01-23 05:23:36', '2025-01-23 10:53:36', 0, 0),
(23, 'Programme', 3, NULL, 0, '2025-01-23 05:23:36', '2025-01-23 10:53:36', 0, 0),
(24, 'CAD Design', 3, NULL, 0, '2025-01-23 05:23:36', '2025-01-23 10:53:36', 0, 0),
(25, '3D Print', 3, NULL, 0, '2025-01-23 05:23:36', '2025-01-23 10:53:36', 0, 0),
(26, 'Matel Case', 3, NULL, 0, '2025-01-23 05:23:36', '2025-01-23 10:53:36', 0, 0),
(27, 'Testing in LAB', 3, NULL, 0, '2025-01-23 05:23:36', '2025-01-23 10:53:36', 0, 0),
(28, 'R & D', 4, NULL, 0, '2025-01-23 05:26:48', '2025-01-23 10:56:48', 0, 0),
(29, 'PCB design', 4, NULL, 0, '2025-01-23 05:26:48', '2025-01-23 10:56:48', 0, 0),
(30, 'Support', 4, NULL, 0, '2025-01-23 05:26:48', '2025-01-23 10:56:48', 0, 0),
(31, 'PCB QC', 4, NULL, 0, '2025-01-23 05:26:48', '2025-01-23 10:56:48', 0, 0),
(32, 'PURCHASE', 4, NULL, 0, '2025-01-23 05:26:48', '2025-01-23 10:56:48', 0, 0),
(33, 'Soldering', 4, NULL, 0, '2025-01-23 05:26:48', '2025-01-23 10:56:48', 0, 0),
(34, 'Soldering QC', 4, NULL, 0, '2025-01-23 05:26:48', '2025-01-23 10:56:48', 0, 0),
(35, 'Software OTA', 4, NULL, 0, '2025-01-23 05:26:48', '2025-01-23 10:56:48', 0, 0),
(36, 'Programme', 4, NULL, 0, '2025-01-23 05:26:48', '2025-01-23 10:56:48', 0, 0),
(37, 'CAD Design', 4, NULL, 0, '2025-01-23 05:26:48', '2025-01-23 10:56:48', 0, 0),
(38, '3D Print', 4, NULL, 0, '2025-01-23 05:26:48', '2025-01-23 10:56:48', 0, 0),
(39, 'Matel case', 4, NULL, 0, '2025-01-23 05:26:48', '2025-01-23 10:56:48', 0, 0),
(40, 'Testing in LAB', 4, NULL, 0, '2025-01-23 05:26:48', '2025-01-23 10:56:48', 0, 0),
(41, 'R & D', 5, NULL, 0, '2025-01-23 05:28:38', '2025-01-23 10:58:38', 0, 0),
(42, 'PCB design', 5, NULL, 0, '2025-01-23 05:28:38', '2025-01-23 10:58:38', 0, 0),
(43, 'Support', 5, NULL, 0, '2025-01-23 05:28:38', '2025-01-23 10:58:38', 0, 0),
(44, 'PCB QC', 5, NULL, 0, '2025-01-23 05:28:38', '2025-01-23 10:58:38', 0, 0),
(45, 'PURCHASE', 5, NULL, 0, '2025-01-23 05:28:38', '2025-01-23 10:58:38', 0, 0),
(46, 'Soldering', 5, NULL, 0, '2025-01-23 05:28:38', '2025-01-23 10:58:38', 0, 0),
(47, 'Soldering QC', 5, NULL, 0, '2025-01-23 05:28:38', '2025-01-23 10:58:38', 0, 0),
(48, 'Software OTA', 5, NULL, 0, '2025-01-23 05:28:38', '2025-01-23 10:58:38', 0, 0),
(49, 'Programme', 5, NULL, 0, '2025-01-23 05:28:38', '2025-01-23 10:58:38', 0, 0),
(50, 'CAD Design', 5, NULL, 0, '2025-01-23 05:28:38', '2025-01-23 10:58:38', 0, 0),
(51, '3D Print', 5, NULL, 0, '2025-01-23 05:28:38', '2025-01-23 10:58:38', 0, 0),
(52, 'Matel case', 5, NULL, 0, '2025-01-23 05:28:38', '2025-01-23 10:58:38', 0, 0),
(53, 'Testing in LAB', 5, NULL, 0, '2025-01-23 05:28:38', '2025-01-23 10:58:38', 0, 0),
(54, 'R & D', 6, NULL, 0, '2025-01-23 05:32:26', '2025-01-23 11:02:26', 0, 0),
(55, 'Testing 2', 18, 16, 1, '2025-01-23 05:32:26', '2025-01-23 11:02:26', 0, 0),
(56, 'PURCHASE', 6, NULL, 0, '2025-01-23 05:32:26', '2025-01-23 11:02:26', 0, 0),
(57, 'Client Feedback', 6, NULL, 0, '2025-01-23 05:32:26', '2025-01-23 11:02:26', 0, 0),
(58, 'CAD Design 2', 6, NULL, 0, '2025-01-23 05:32:26', '2025-01-23 11:02:26', 0, 0),
(59, '3D Print', 6, NULL, 0, '2025-01-23 05:32:26', '2025-01-23 11:02:26', 0, 0),
(60, 'Discussion', 6, NULL, 0, '2025-01-23 05:32:26', '2025-01-23 11:02:26', 0, 0),
(61, 'Client Feedback', 6, NULL, 0, '2025-01-23 05:32:26', '2025-01-23 11:02:26', 0, 0),
(62, 'CAD Design 3', 6, NULL, 0, '2025-01-23 05:32:26', '2025-01-23 11:02:26', 0, 0),
(63, '3D Print', 6, NULL, 0, '2025-01-23 05:32:26', '2025-01-23 11:02:26', 0, 0),
(64, 'Discussion', 6, NULL, 0, '2025-01-23 05:32:26', '2025-01-23 11:02:26', 0, 0),
(65, 'Client Feedback', 6, NULL, 0, '2025-01-23 05:32:26', '2025-01-23 11:02:26', 0, 0),
(66, 'Testing 3', 6, NULL, 0, '2025-01-23 05:32:26', '2025-01-23 11:02:26', 0, 0),
(67, 'R & D', 7, NULL, 0, '2025-01-23 05:33:00', '2025-01-23 11:03:00', 0, 0),
(68, 'PCB design', 7, NULL, 0, '2025-01-23 05:33:00', '2025-01-23 11:03:00', 0, 0),
(69, 'Testing in LAB', 7, NULL, 0, '2025-01-23 05:33:00', '2025-01-23 11:03:00', 0, 0),
(70, 'R & D', 8, NULL, 0, '2025-01-23 05:33:47', '2025-01-23 11:03:47', 0, 0),
(71, 'PCB design', 8, NULL, 0, '2025-01-23 05:33:47', '2025-01-23 11:03:47', 0, 0),
(72, 'Testing in LAB', 8, NULL, 0, '2025-01-23 05:33:47', '2025-01-23 11:03:47', 0, 0),
(73, 'Design', 8, NULL, 0, '2025-01-23 05:33:47', '2025-01-23 11:03:47', 0, 0),
(74, 'R & D', 9, NULL, 0, '2025-01-23 05:34:33', '2025-01-23 11:04:33', 0, 0),
(75, 'PCB design', 9, NULL, 0, '2025-01-23 05:34:33', '2025-01-23 11:04:33', 0, 0),
(76, 'Testing in LAB', 9, NULL, 0, '2025-01-23 05:34:33', '2025-01-23 11:04:33', 0, 0),
(77, 'Design', 9, NULL, 0, '2025-01-23 05:34:33', '2025-01-23 11:04:33', 0, 0),
(78, 'R & D', 10, NULL, 0, '2025-01-23 05:36:16', '2025-01-23 11:06:16', 0, 0),
(79, 'Testing MECH', 10, NULL, 0, '2025-01-23 05:36:16', '2025-01-23 11:06:16', 0, 0),
(80, 'PURCHASE', 10, NULL, 0, '2025-01-23 05:36:16', '2025-01-23 11:06:16', 0, 0),
(81, 'CAD Design', 10, NULL, 0, '2025-01-23 05:36:16', '2025-01-23 11:06:16', 0, 0),
(82, '3D Print', 10, NULL, 0, '2025-01-23 05:36:16', '2025-01-23 11:06:16', 0, 0),
(83, 'Testing 2', 10, NULL, 0, '2025-01-23 05:36:16', '2025-01-23 11:06:16', 0, 0),
(84, 'Software', 10, NULL, 0, '2025-01-23 05:36:16', '2025-01-23 11:06:16', 0, 0),
(85, 'Testing', 10, NULL, 0, '2025-01-23 05:36:16', '2025-01-23 11:06:16', 0, 0),
(86, 'Programme', 10, NULL, 0, '2025-01-23 05:36:16', '2025-01-23 11:06:16', 0, 0),
(87, 'R & D', 11, NULL, 0, '2025-01-23 05:38:15', '2025-01-23 11:08:15', 0, 0),
(88, 'Meeting', 11, NULL, 0, '2025-01-23 05:38:15', '2025-01-23 11:08:15', 0, 0),
(89, 'Demo', 11, NULL, 0, '2025-01-23 05:38:15', '2025-01-23 11:08:15', 0, 0),
(90, 'Programme', 11, NULL, 0, '2025-01-23 05:38:15', '2025-01-23 11:08:15', 0, 0),
(91, 'Programme QC', 11, 8, 1, '2025-01-23 05:38:15', '2025-01-23 11:08:15', 0, 0),
(92, 'PURCHASE', 11, NULL, 0, '2025-01-23 05:38:15', '2025-01-23 11:08:15', 0, 0),
(93, 'Soldering', 11, NULL, 0, '2025-01-23 05:38:15', '2025-01-23 11:08:15', 0, 0),
(94, 'Soldering QC', 11, NULL, 0, '2025-01-23 05:38:15', '2025-01-23 11:08:15', 0, 0),
(95, 'Software', 11, NULL, 0, '2025-01-23 05:38:15', '2025-01-23 11:08:15', 0, 0),
(96, 'Software QC', 11, NULL, 0, '2025-01-23 05:38:15', '2025-01-23 11:08:15', 0, 0),
(97, 'CAD Design', 11, NULL, 0, '2025-01-23 05:38:15', '2025-01-23 11:08:15', 0, 0),
(98, '3D Print', 11, NULL, 0, '2025-01-23 05:38:15', '2025-01-23 11:08:15', 0, 0),
(99, 'Matel Case', 11, NULL, 0, '2025-01-23 05:38:15', '2025-01-23 11:08:15', 0, 0),
(100, 'R & D', 12, NULL, 0, '2025-01-23 05:39:54', '2025-01-23 11:09:54', 0, 0),
(101, 'PCB design', 12, NULL, 0, '2025-01-23 05:39:54', '2025-01-23 11:09:54', 0, 0),
(102, 'Support', 12, NULL, 0, '2025-01-23 05:39:54', '2025-01-23 11:09:54', 0, 0),
(103, 'PCB QC', 12, NULL, 0, '2025-01-23 05:39:54', '2025-01-23 11:09:54', 0, 0),
(104, 'PURCHASE', 12, NULL, 0, '2025-01-23 05:39:54', '2025-01-23 11:09:54', 0, 0),
(105, 'Soldering', 12, NULL, 0, '2025-01-23 05:39:54', '2025-01-23 11:09:54', 0, 0),
(106, 'Soldering QC', 12, NULL, 0, '2025-01-23 05:39:54', '2025-01-23 11:09:54', 0, 0),
(107, 'Software', 12, NULL, 0, '2025-01-23 05:39:54', '2025-01-23 11:09:54', 0, 0),
(108, 'Programme', 12, NULL, 0, '2025-01-23 05:39:54', '2025-01-23 11:09:54', 0, 0),
(109, 'CAD Design', 12, NULL, 0, '2025-01-23 05:39:54', '2025-01-23 11:09:54', 0, 0),
(110, '3D Print', 12, NULL, 0, '2025-01-23 05:39:54', '2025-01-23 11:09:54', 0, 0),
(111, 'Matel Case', 12, NULL, 0, '2025-01-23 05:39:54', '2025-01-23 11:09:54', 0, 0),
(112, 'Testing in LAB', 12, NULL, 0, '2025-01-23 05:39:54', '2025-01-23 11:09:54', 0, 0),
(113, 'R & D', 13, NULL, 0, '2025-01-23 05:41:57', '2025-01-23 11:11:57', 0, 0),
(114, 'DEMO', 13, NULL, 0, '2025-01-23 05:41:57', '2025-01-23 11:11:57', 0, 0),
(115, 'PCB design', 13, NULL, 0, '2025-01-23 05:41:57', '2025-01-23 11:11:57', 0, 0),
(116, 'PCB QC', 13, NULL, 0, '2025-01-23 05:41:57', '2025-01-23 11:11:57', 0, 0),
(117, 'Quotation', 13, NULL, 0, '2025-01-23 05:41:57', '2025-01-23 11:11:57', 0, 0),
(118, 'Customer order', 13, NULL, 0, '2025-01-23 05:41:57', '2025-01-23 11:11:57', 0, 0),
(119, 'Soldering', 13, NULL, 0, '2025-01-23 05:41:57', '2025-01-23 11:11:57', 0, 0),
(120, 'Soldering QC', 13, NULL, 0, '2025-01-23 05:41:57', '2025-01-23 11:11:57', 0, 0),
(121, 'Software', 13, NULL, 0, '2025-01-23 05:41:57', '2025-01-23 11:11:57', 0, 0),
(122, 'Software QC', 13, NULL, 0, '2025-01-23 05:41:57', '2025-01-23 11:11:57', 0, 0),
(123, 'CAD Design', 13, NULL, 0, '2025-01-23 05:41:57', '2025-01-23 11:11:57', 0, 0),
(124, '3D Print', 13, NULL, 0, '2025-01-23 05:41:57', '2025-01-23 11:11:57', 0, 0),
(125, 'Testing in LAB', 13, NULL, 0, '2025-01-23 05:41:57', '2025-01-23 11:11:57', 0, 0),
(126, 'Supplier Check', 14, NULL, 0, '2025-01-23 05:42:56', '2025-01-23 11:12:56', 0, 0),
(127, 'CAD Design', 14, NULL, 0, '2025-01-23 05:42:56', '2025-01-23 11:12:56', 0, 0),
(128, '3D Print', 14, NULL, 0, '2025-01-23 05:42:56', '2025-01-23 11:12:56', 0, 0),
(129, 'Testing', 15, NULL, 0, '2025-01-23 05:43:53', '2025-01-23 11:13:53', 0, 0),
(130, 'Client Feedback', 15, NULL, 0, '2025-01-23 05:43:53', '2025-01-23 11:13:53', 0, 0),
(131, 'CAD Design', 15, NULL, 0, '2025-01-23 05:43:53', '2025-01-23 11:13:53', 0, 0),
(132, '3D Print', 15, NULL, 0, '2025-01-23 05:43:53', '2025-01-23 11:13:53', 0, 0),
(133, 'Display Design', 16, 24, 1, '2025-01-23 05:45:13', '2025-01-23 11:15:13', 0, 0),
(134, 'Games Design', 16, NULL, 0, '2025-01-23 05:45:13', '2025-01-23 11:15:13', 0, 0),
(135, 'Academy LOGO', 16, NULL, 0, '2025-01-23 05:45:13', '2025-01-23 11:15:13', 0, 0),
(136, 'PPT', 16, NULL, 0, '2025-01-23 05:45:13', '2025-01-23 11:15:13', 0, 0),
(137, 'as', 17, NULL, 0, '2025-01-25 00:13:44', '2025-01-25 05:43:44', 0, 0),
(138, 'R & D', 18, 8, 1, '2025-01-25 00:24:57', '2025-01-25 05:54:57', 0, 0),
(139, 'Testing 2', 18, 24, 1, '2025-01-25 00:24:57', '2025-01-25 05:54:57', 0, 0),
(140, 'CAD Design', 18, NULL, 0, '2025-01-25 00:24:57', '2025-01-25 05:54:57', 0, 0);

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

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

CREATE TABLE `user` (
  `id` int(11) NOT NULL,
  `username` varchar(100) NOT NULL,
  `address` varchar(255) NOT NULL,
  `mail` varchar(50) NOT NULL,
  `gender` varchar(200) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

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

INSERT INTO `user` (`id`, `username`, `address`, `mail`, `gender`) VALUES
(1, 'Admin', 'Pudukkottai', 'male', 'male'),
(2, 'JAWAHAR P', 'Trichy', 'jawa@nilatech.com', 'Male'),
(3, 'SENTHILVELAN J', 'Trichy', 'senthil@nilatech.com', 'Male'),
(4, 'THULASIMANI V', 'Trichy', 'thulasi@nilatech.com', 'Female'),
(5, 'KANAGARAJ P', 'Trichy', 'gemtrichypolish@gmail.com', 'Male'),
(6, 'KAMARUDDIN S', 'Trichy', 'kamar@nilatech.com', 'Male'),
(7, 'SHANMUGASUNDARAM N', 'Trichy', 'kumarnilatech@gmail.com', 'Male'),
(8, 'MALVINO T', 'Trichy', 'malvino@nilatech.com', 'Male'),
(9, 'VEERABHAGU MURUGAN E', 'Trichy', 'veera@nilatech.com', 'Male'),
(10, 'VAIRAMOORTHY K', 'Trichy', 'kathanamutha@gmail.com', 'Male'),
(11, 'SANTHIYA SS', 'Trichy', 'santhiya@nilatech.com', 'female'),
(12, 'LOGANATHAN K', 'Trichy', 'loganathan@nilatech.com', 'Male'),
(13, 'VISHNU M', 'Trichy', 'vishnutn472003@gmail.com', 'Male'),
(14, 'SATHISH S', 'Trichy', 'ssathish0723@gmail.com', 'Male'),
(16, 'SRI KRISHNA KUMAR S', 'Trichy', 'krishna@nilatech.com', 'Male'),
(17, 'PRAVEEN K', 'Trichy', 'praveen09291995@gmail.com', 'Male'),
(18, 'ARUMUGAM S', 'Trichy', 'arumugavel55881@gmail.com', 'Male'),
(19, 'BALAJI R', 'Trichy', 'electro@nilatech.com', 'Male'),
(20, 'THOWFIK RAHMAN J', 'Trichy', 'thowfik@nillatech.com', 'Male'),
(21, 'SANTHOSH KUMAR A', 'Trichy', 'asanthosh2134@gmail.com', 'Male'),
(22, 'SHARAN SS', 'Trichy', 'sharanshiva2002@gmail.com', 'Male'),
(23, 'RAMESH S', 'Trichy', 'ramesh@nilatech.com', 'Male'),
(24, 'ABDUL SATHAR A', 'Trichy', 'abdul@nilatech.com', 'Male');

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

--
-- Table structure for table `user_role`
--

CREATE TABLE `user_role` (
  `id` int(11) NOT NULL,
  `role_id` int(11) NOT NULL,
  `user_id` int(11) NOT NULL,
  `created_at` datetime DEFAULT NULL,
  `updated_at` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

--
-- Dumping data for table `user_role`
--

INSERT INTO `user_role` (`id`, `role_id`, `user_id`, `created_at`, `updated_at`) VALUES
(21, 1, 2, NULL, NULL),
(27, 2, 4, NULL, NULL),
(28, 3, 4, NULL, NULL),
(29, 3, 5, NULL, NULL),
(34, 1, 3, NULL, NULL),
(35, 2, 3, NULL, NULL),
(36, 3, 3, NULL, NULL),
(37, 5, 3, NULL, NULL),
(38, 3, 6, NULL, NULL),
(39, 5, 7, NULL, NULL),
(40, 3, 10, NULL, NULL),
(42, 2, 11, NULL, NULL),
(43, 2, 12, NULL, NULL),
(44, 3, 13, NULL, NULL),
(45, 3, 14, NULL, NULL),
(46, 2, 16, NULL, NULL),
(47, 3, 17, NULL, NULL),
(48, 3, 19, NULL, NULL),
(49, 5, 19, NULL, NULL),
(51, 4, 20, NULL, NULL),
(52, 3, 8, NULL, NULL),
(53, 2, 21, NULL, NULL),
(56, 1, 1, NULL, NULL);

--
-- Indexes for dumped tables
--

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

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

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

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

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

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

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

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

--
-- AUTO_INCREMENT for dumped tables
--

--
-- AUTO_INCREMENT for table `attendance`
--
ALTER TABLE `attendance`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=23;

--
-- AUTO_INCREMENT for table `leave`
--
ALTER TABLE `leave`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=14;

--
-- AUTO_INCREMENT for table `location`
--
ALTER TABLE `location`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5;

--
-- AUTO_INCREMENT for table `project`
--
ALTER TABLE `project`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=21;

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

--
-- AUTO_INCREMENT for table `task`
--
ALTER TABLE `task`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=150;

--
-- AUTO_INCREMENT for table `user`
--
ALTER TABLE `user`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=36;

--
-- AUTO_INCREMENT for table `user_role`
--
ALTER TABLE `user_role`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=58;
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 */;
