-- phpMyAdmin SQL Dump
-- version 5.2.1
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: Dec 29, 2025 at 12:23 PM
-- Server version: 10.4.32-MariaDB
-- PHP Version: 8.0.30

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

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

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

CREATE TABLE `attendance` (
  `id` int(11) NOT NULL,
  `user_id` int(11) DEFAULT NULL,
  `attendance_date` date DEFAULT NULL,
  `punch_in_time` time DEFAULT NULL,
  `punch_out_time` time DEFAULT NULL,
  `work_mode` enum('WFH','Office') DEFAULT NULL,
  `ip_address` varchar(50) DEFAULT NULL,
  `created_at` datetime DEFAULT NULL,
  `updated_at` datetime DEFAULT NULL,
  `latitude` decimal(10,8) DEFAULT NULL,
  `longitude` decimal(11,8) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

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

INSERT INTO `attendance` (`id`, `user_id`, `attendance_date`, `punch_in_time`, `punch_out_time`, `work_mode`, `ip_address`, `created_at`, `updated_at`, `latitude`, `longitude`) VALUES
(1, 8, '2025-12-29', '09:29:29', '09:42:53', 'Office', '::1', '2025-12-29 09:29:29', '2025-12-29 09:42:53', NULL, NULL),
(2, 9, '2025-12-29', '10:03:48', NULL, 'Office', '::1', '2025-12-29 10:03:48', NULL, NULL, NULL),
(3, 10, '2025-12-29', '10:06:06', '10:11:38', 'Office', '::1', '2025-12-29 10:06:06', '2025-12-29 10:11:38', NULL, NULL),
(4, 11, '2025-12-29', '10:18:06', NULL, 'WFH', NULL, '2025-12-29 10:18:06', NULL, 17.24963345, 80.14773854);

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

--
-- Table structure for table `tbl_management`
--

CREATE TABLE `tbl_management` (
  `id` int(11) DEFAULT NULL,
  `added_date_time` varchar(100) DEFAULT NULL,
  `transaction_date` varchar(100) DEFAULT NULL,
  `name` varchar(100) DEFAULT NULL,
  `phone_number` varchar(100) DEFAULT NULL,
  `role` varchar(100) DEFAULT NULL,
  `username` varchar(100) DEFAULT NULL,
  `password` varchar(100) DEFAULT NULL,
  `added_by` int(11) DEFAULT NULL,
  `added_by_role` varchar(100) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

--
-- Dumping data for table `tbl_management`
--

INSERT INTO `tbl_management` (`id`, `added_date_time`, `transaction_date`, `name`, `phone_number`, `role`, `username`, `password`, `added_by`, `added_by_role`) VALUES
(NULL, NULL, NULL, 'Madhu', '9959419861', 'Admin', 'madhu123', 'Madhu@123', NULL, NULL);

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

--
-- Table structure for table `tbl_users`
--

CREATE TABLE `tbl_users` (
  `id` int(11) NOT NULL,
  `name` varchar(100) DEFAULT NULL,
  `mobile_number` varchar(100) DEFAULT NULL,
  `role` varchar(100) DEFAULT NULL,
  `username` varchar(100) DEFAULT NULL,
  `password` varchar(100) DEFAULT NULL,
  `added_by` int(11) DEFAULT NULL,
  `added_by_role` varchar(1000) DEFAULT NULL,
  `last_updated_by` int(100) DEFAULT NULL,
  `last_updated_by_role` varchar(100) DEFAULT NULL,
  `last_updated_date_time` varchar(100) DEFAULT NULL,
  `ip_address` varchar(100) DEFAULT NULL,
  `added_date_time` varchar(100) DEFAULT NULL,
  `transaction_date` varchar(100) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

--
-- Dumping data for table `tbl_users`
--

INSERT INTO `tbl_users` (`id`, `name`, `mobile_number`, `role`, `username`, `password`, `added_by`, `added_by_role`, `last_updated_by`, `last_updated_by_role`, `last_updated_date_time`, `ip_address`, `added_date_time`, `transaction_date`) VALUES
(8, 'srujana', '6309619816', 'Employee', 'Srujana', 'Srujana123', NULL, 'Admin', NULL, 'Admin', '2025-12-29 07:07:21', NULL, '2025-12-29 07:01:35', '2025-12-29'),
(9, 'Hema', '7093512345', 'Employee', 'Hema123', 'Hema@123', NULL, 'Admin', NULL, NULL, NULL, NULL, '2025-12-29 10:03:25', '2025-12-29'),
(10, 'Sunitha', '9959419861', 'Employee', 'Sunitha123', 'Sunitha@123', NULL, 'Admin', NULL, NULL, NULL, NULL, '2025-12-29 10:05:36', '2025-12-29'),
(11, 'Rani', '8897260191', 'Employee', 'Rani1234', 'Rani@1234', NULL, 'Admin', NULL, 'Admin', '2025-12-29 10:14:22', NULL, '2025-12-29 10:13:56', '2025-12-29');

--
-- Indexes for dumped tables
--

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

--
-- Indexes for table `tbl_users`
--
ALTER TABLE `tbl_users`
  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=5;

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