BBnepal-Accounts/bbnepal_hr.sql

412 lines
14 KiB
MySQL
Raw Normal View History

2024-07-10 12:43:19 +00:00
-- phpMyAdmin SQL Dump
-- version 5.2.0
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: Jun 27, 2023 at 02:57 AM
-- Server version: 10.4.27-MariaDB
-- PHP Version: 8.1.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: `bbnepal_hr`
--
-- --------------------------------------------------------
--
-- Table structure for table `bt_admin`
--
CREATE TABLE `bt_admin` (
`id` int(11) NOT NULL,
`admin_role_ids` varchar(255) NOT NULL,
`admin_name` varchar(50) NOT NULL,
`email` varchar(100) NOT NULL,
`password` varchar(100) NOT NULL,
`status` varchar(64) NOT NULL DEFAULT 'Active',
`can_delete` varchar(16) NOT NULL DEFAULT 'Yes',
`created` datetime NOT NULL DEFAULT current_timestamp(),
`modified` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
--
-- Dumping data for table `bt_admin`
--
INSERT INTO `bt_admin` (`id`, `admin_role_ids`, `admin_name`, `email`, `password`, `status`, `can_delete`, `created`, `modified`) VALUES
(1, '1', 'HR Admin', 'hr@demo.com', '0e7517141fb53f21ee439b355b5a1d0a', 'Active', 'No', '2021-11-10 04:00:00', NULL),
(2, '1', 'Sanjeet', 'sanjeet.mandal7@gmail.com', '0e7517141fb53f21ee439b355b5a1d0a', 'Active', 'Yes', '2022-05-08 23:21:22', NULL);
-- --------------------------------------------------------
--
-- Table structure for table `bt_admin_menu`
--
CREATE TABLE `bt_admin_menu` (
`id` int(11) NOT NULL,
`menu_name` varchar(256) NOT NULL,
`parent_id` int(11) NOT NULL DEFAULT 0,
`order_number` int(11) NOT NULL,
`inactive_icon` varchar(256) NOT NULL,
`active_icon` varchar(256) NOT NULL,
`page_link` varchar(256) NOT NULL,
`status` varchar(64) NOT NULL DEFAULT 'Active',
`created_on` datetime NOT NULL DEFAULT current_timestamp()
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;
--
-- Dumping data for table `bt_admin_menu`
--
INSERT INTO `bt_admin_menu` (`id`, `menu_name`, `parent_id`, `order_number`, `inactive_icon`, `active_icon`, `page_link`, `status`, `created_on`) VALUES
(1, 'Dashboard', 0, 1, 'dashboard1.png', 'dashboard2.png', 'dashboard', 'Active', '2021-11-12 13:43:57'),
(2, 'Designation', 0, 2, 'designation1.png', 'designation2.png', 'designation', 'Active', '2021-11-12 00:00:16'),
(3, 'Department', 0, 3, 'department1.png', 'department2.png', 'department', 'Active', '2021-11-12 00:00:38'),
(4, 'Staffs', 0, 4, 'subadmin1.png', 'subadmin2.png', 'staffs', 'Active', '2021-11-12 07:00:00'),
(5, 'Attendance', 0, 5, 'attendance1.png', 'attendance2.png', 'attendance', 'Active', '2021-11-12 00:00:00'),
(6, 'Authorization', 0, 6, 'authorization1.png', 'authorization2.png', '#', 'Active', '2021-11-12 00:00:00'),
(7, 'Roles', 6, 1, '', '', 'roles', 'Active', '2021-11-12 00:17:00'),
(8, 'Users', 6, 2, '', '', 'users', 'Active', '2021-11-12 00:00:00'),
(9, 'Payroll', 0, 7, 'pay-roll1.png', 'pay-roll2.png', 'pay-roll', 'Active', '2021-12-15 02:08:10'),
(10, 'Settings', 0, 8, 'settings.png', 'settings.png', '#', 'Active', '2021-12-15 02:08:10'),
(11, 'Staff Roles', 10, 1, '', '', 'staff-roles', 'Active', '2021-12-15 02:08:10');
-- --------------------------------------------------------
--
-- Table structure for table `bt_admin_roles`
--
CREATE TABLE `bt_admin_roles` (
`id` int(10) UNSIGNED NOT NULL,
`role_name` varchar(64) NOT NULL,
`role_desc` varchar(512) DEFAULT NULL,
`status` enum('Active','Inactive') NOT NULL DEFAULT 'Active',
`can_delete` varchar(64) NOT NULL DEFAULT 'Yes',
`created` datetime NOT NULL DEFAULT current_timestamp(),
`modified` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;
--
-- Dumping data for table `bt_admin_roles`
--
INSERT INTO `bt_admin_roles` (`id`, `role_name`, `role_desc`, `status`, `can_delete`, `created`, `modified`) VALUES
(1, 'Library Super Admin', '', 'Active', 'No', '2021-11-10 06:00:00', NULL),
(2, 'Book Manager', 'bm desc here', 'Active', 'Yes', '2021-11-12 09:00:00', NULL);
-- --------------------------------------------------------
--
-- Table structure for table `bt_admin_role_permissions`
--
CREATE TABLE `bt_admin_role_permissions` (
`id` int(10) UNSIGNED NOT NULL,
`admin_role_ids` int(11) NOT NULL,
`menu_ids` varchar(1024) NOT NULL,
`created` datetime NOT NULL DEFAULT current_timestamp(),
`modified` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;
--
-- Dumping data for table `bt_admin_role_permissions`
--
INSERT INTO `bt_admin_role_permissions` (`id`, `admin_role_ids`, `menu_ids`, `created`, `modified`) VALUES
(1, 1, '1,2,3,4,5,6,9,10', '2021-11-12 00:00:00', NULL),
(2, 2, '1,6', '2021-11-12 00:00:00', NULL),
(3, 4, '1,2,6', '2021-11-14 15:28:53', NULL),
(4, 5, '2', '2021-12-17 02:10:46', NULL),
(5, 6, '2,3,4,5', '2021-12-17 02:35:21', NULL),
(6, 7, '4', '2021-12-17 02:48:15', NULL);
-- --------------------------------------------------------
--
-- Table structure for table `bt_buses`
--
CREATE TABLE `bt_buses` (
`id` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_520_ci;
-- --------------------------------------------------------
--
-- Table structure for table `bt_drivers`
--
CREATE TABLE `bt_drivers` (
`id` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_520_ci;
-- --------------------------------------------------------
--
-- Table structure for table `hr_department`
--
CREATE TABLE `hr_department` (
`id` int(11) NOT NULL,
`title` varchar(45) DEFAULT NULL,
`is_active` varchar(45) DEFAULT 'yes',
`created_on` varchar(45) DEFAULT 'CURRENT_TIMESTAMP',
`modified_on` varchar(45) DEFAULT 'CURRENT_TIMESTAMP'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Dumping data for table `hr_department`
--
INSERT INTO `hr_department` (`id`, `title`, `is_active`, `created_on`, `modified_on`) VALUES
(1, 'Primary', 'no', '2079-11-17 14:37:19', '2080-01-11 19:00:21'),
(2, 'Secondary', 'yes', '2079-11-17 17:06:17', '2079-11-19 10:52:32'),
(3, '+2', 'yes', '2079-11-17 20:12:08', '2079-11-17 20:12:08'),
(4, 'Lower Secondary', 'yes', '2079-12-21 15:37:40', '2079-12-21 15:39:06');
-- --------------------------------------------------------
--
-- Table structure for table `hr_designation`
--
CREATE TABLE `hr_designation` (
`id` int(11) NOT NULL,
`title` varchar(45) DEFAULT NULL,
`is_active` varchar(10) DEFAULT 'yes',
`created_on` varchar(45) DEFAULT 'CURRENT_TIMESTAMP',
`modified_on` varchar(45) DEFAULT 'CURRENT_TIMESTAMP'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Dumping data for table `hr_designation`
--
INSERT INTO `hr_designation` (`id`, `title`, `is_active`, `created_on`, `modified_on`) VALUES
(1, 'Principal', 'yes', '2079-11-18 11:08:59', '2079-11-18 11:09:24'),
(2, 'Vice Principal', 'yes', '2079-11-18 11:09:07', '2079-12-12 17:15:34'),
(3, 'Co-ordinator', 'yes', '2079-12-12 17:17:20', '2079-12-12 17:18:16');
-- --------------------------------------------------------
--
-- Table structure for table `staffs`
--
CREATE TABLE `staffs` (
`id` int(11) NOT NULL,
`name` varchar(100) DEFAULT NULL,
`staffId` varchar(45) NOT NULL,
`gender` varchar(10) DEFAULT NULL,
`dob` varchar(50) DEFAULT NULL,
`role` int(11) DEFAULT NULL,
`department` int(11) DEFAULT 0,
`designations` int(11) DEFAULT 0,
`father_name` varchar(100) DEFAULT NULL,
`mother_name` varchar(100) DEFAULT NULL,
`email` varchar(75) DEFAULT NULL,
`mobile` varchar(15) DEFAULT NULL,
`martial_status` varchar(10) DEFAULT NULL,
`emergency_number` varchar(15) DEFAULT NULL,
`document_type` varchar(50) DEFAULT NULL,
`document_photo_1` text DEFAULT NULL,
`document_id` varchar(40) DEFAULT NULL,
`address` text DEFAULT NULL,
`province` int(11) DEFAULT 7,
`country` varchar(100) DEFAULT 'Nepal',
`qualification` text DEFAULT NULL,
`experience` text DEFAULT NULL,
`date_of_joining` varchar(25) DEFAULT NULL,
`epf_no` varchar(100) DEFAULT NULL,
`pan` varchar(45) DEFAULT NULL,
`basic_salary` double(9,2) DEFAULT NULL,
`contract_type` varchar(15) DEFAULT NULL,
`bank_account_name` text DEFAULT NULL,
`bank_account_number` text DEFAULT NULL,
`bank_name` text DEFAULT NULL,
`branch_name` text DEFAULT NULL,
`resume` text DEFAULT NULL,
`joining_letter` text DEFAULT NULL,
`other_document` text DEFAULT NULL,
`photo` text DEFAULT NULL,
`is_active` varchar(3) NOT NULL DEFAULT 'yes',
`created_on` varchar(30) DEFAULT NULL,
`modified_on` varchar(30) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;
--
-- Dumping data for table `staffs`
--
INSERT INTO `staffs` (`id`, `name`, `staffId`, `gender`, `dob`, `role`, `department`, `designations`, `father_name`, `mother_name`, `email`, `mobile`, `martial_status`, `emergency_number`, `document_type`, `document_photo_1`, `document_id`, `address`, `province`, `country`, `qualification`, `experience`, `date_of_joining`, `epf_no`, `pan`, `basic_salary`, `contract_type`, `bank_account_name`, `bank_account_number`, `bank_name`, `branch_name`, `resume`, `joining_letter`, `other_document`, `photo`, `is_active`, `created_on`, `modified_on`) VALUES
(1, 'Yogesh Kamti', 'BLBDT2079112501', 'male', '2052-04-10', 1, 2, 1, '', '', 'admin@demo.com', '9865650872', 'unmarried', '', 'driving_licensce', 'BLBDT2079112501_doc1.png', 'ewfdsxcd', 'Dhangadhi', 1, 'Nepal', '', '', '2079-11-25', '', '', 30000.00, 'permanent', '', '', '', '', 'BLBDT2079112501_resume.pdf', 'BLBDT2079112501_joining_letter.pdf', 'BLBDT2079112501_doc2.pdf', 'BLBDT2079112501_profile1.png', 'yes', '2079-11-25 16:30:34', '2079-11-29 16:51:15'),
(2, 'Lalit Nath', 'BLBDT2079112902', 'male', '2056-02-01', 1, 3, 0, '', '', 'lalitnath1999@gmail.com', '9814698278', 'unmarried', '', 'citizenship', '', '6789698758', 'Dhangadhi', 7, 'Nepal', '', '', '2079-11-29', 'EPF1', 'PAN10001', 20000.00, 'permanent', '', '', '', '', '', '', '', 'BLBDT2079112902_profile.png', 'yes', '2079-11-29 13:31:16', '2079-11-29 16:51:50');
-- --------------------------------------------------------
--
-- Table structure for table `staff_roles`
--
CREATE TABLE `staff_roles` (
`id` int(11) NOT NULL,
`title` varchar(45) DEFAULT NULL,
`is_active` varchar(3) DEFAULT 'yes',
`created_on` varchar(45) DEFAULT NULL,
`modified_on` varchar(45) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Dumping data for table `staff_roles`
--
INSERT INTO `staff_roles` (`id`, `title`, `is_active`, `created_on`, `modified_on`) VALUES
(1, 'Teacher', 'yes', '2079-11-19 10:52:38', '2079-11-19 10:52:38'),
(2, 'Driver', 'yes', '2079-11-19 13:19:17', '2079-11-19 13:21:34'),
(3, 'IT Head', 'yes', '2079-11-19 13:23:04', '2079-12-12 17:28:05'),
(4, 'New', 'yes', '2079-12-12 17:28:11', '2079-12-12 17:28:11'),
(5, 'Abcd', 'yes', '2079-12-12 17:28:18', '2079-12-12 17:28:18');
--
-- Indexes for dumped tables
--
--
-- Indexes for table `bt_admin`
--
ALTER TABLE `bt_admin`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `bt_admin_menu`
--
ALTER TABLE `bt_admin_menu`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `bt_admin_roles`
--
ALTER TABLE `bt_admin_roles`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `bt_admin_role_permissions`
--
ALTER TABLE `bt_admin_role_permissions`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `bt_buses`
--
ALTER TABLE `bt_buses`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `bt_drivers`
--
ALTER TABLE `bt_drivers`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `hr_department`
--
ALTER TABLE `hr_department`
ADD PRIMARY KEY (`id`),
ADD UNIQUE KEY `title_UNIQUE` (`title`);
--
-- Indexes for table `hr_designation`
--
ALTER TABLE `hr_designation`
ADD PRIMARY KEY (`id`),
ADD UNIQUE KEY `title_UNIQUE` (`title`);
--
-- Indexes for table `staffs`
--
ALTER TABLE `staffs`
ADD PRIMARY KEY (`id`),
ADD UNIQUE KEY `staffId_UNIQUE` (`staffId`);
--
-- Indexes for table `staff_roles`
--
ALTER TABLE `staff_roles`
ADD PRIMARY KEY (`id`),
ADD UNIQUE KEY `title_UNIQUE` (`title`);
--
-- AUTO_INCREMENT for dumped tables
--
--
-- AUTO_INCREMENT for table `bt_admin`
--
ALTER TABLE `bt_admin`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;
--
-- AUTO_INCREMENT for table `bt_admin_menu`
--
ALTER TABLE `bt_admin_menu`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=12;
--
-- AUTO_INCREMENT for table `bt_admin_roles`
--
ALTER TABLE `bt_admin_roles`
MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;
--
-- AUTO_INCREMENT for table `bt_admin_role_permissions`
--
ALTER TABLE `bt_admin_role_permissions`
MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=7;
--
-- AUTO_INCREMENT for table `bt_buses`
--
ALTER TABLE `bt_buses`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `hr_department`
--
ALTER TABLE `hr_department`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5;
--
-- AUTO_INCREMENT for table `hr_designation`
--
ALTER TABLE `hr_designation`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;
--
-- AUTO_INCREMENT for table `staffs`
--
ALTER TABLE `staffs`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;
--
-- AUTO_INCREMENT for table `staff_roles`
--
ALTER TABLE `staff_roles`
MODIFY `id` int(11) 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 */;