Web Programming.sql
Web Programming.sql
-- version 5.1.0
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: Jul 08, 2021 at 05:34 AM
-- Server version: 10.4.18-MariaDB
-- PHP Version: 7.4.16
--
-- Database: `web_programming`
--
-- --------------------------------------------------------
--
-- Table structure for table `accountsholder`
--
--
-- Dumping data for table `accountsholder`
--
-- --------------------------------------------------------
--
-- Table structure for table `accounts_info`
--
--
-- Dumping data for table `accounts_info`
--
--
-- Table structure for table `account_history`
--
--
-- Dumping data for table `account_history`
--
-- --------------------------------------------------------
--
-- Table structure for table `counting`
--
--
-- Dumping data for table `counting`
--
INSERT INTO `counting` (`acc_count`, `emp_id`) VALUES
(82523828, 2023);
-- --------------------------------------------------------
--
-- Table structure for table `emp_details`
--
--
-- Dumping data for table `emp_details`
--
-- --------------------------------------------------------
--
-- Table structure for table `emp_history`
--
--
-- Dumping data for table `emp_history`
--
INSERT INTO `emp_history` (`id`, `log_date_time`, `logout_date_time`) VALUES
('GM1122', '2021-06-22 12:14:30', '2021-06-22 12:14:39'),
('GM1122', '2021-06-22 12:14:58', '2021-06-22 12:15:31'),
('GM1122', '2021-06-22 12:19:12', '2021-06-22 12:35:27'),
('ADN2022', '2021-06-22 12:36:21', '2021-06-22 12:36:46'),
('ADN2023', '2021-06-22 12:37:24', '2021-06-22 12:37:42'),
('ADN2022', '2021-06-22 12:38:43', '2021-06-22 12:38:49'),
('ADN2023', '2021-06-22 12:38:56', '2021-06-22 12:39:02'),
('EMP2010', '2021-06-22 12:39:14', '2021-06-22 12:39:18'),
('EMP2013', '2021-06-22 12:39:45', '2021-06-22 12:39:49'),
('EMP2014', '2021-06-22 12:39:59', '2021-06-22 12:40:02'),
('EMP2015', '2021-06-22 12:40:11', '2021-06-22 12:40:15'),
('EMP2016', '2021-06-22 12:40:25', '2021-06-22 12:40:27'),
('EMP2017', '2021-06-22 12:40:45', '2021-06-22 12:40:48'),
('EMP2018', '2021-06-22 12:41:02', '2021-06-22 12:41:21'),
('EMP2019', '2021-06-22 12:41:30', '2021-06-22 12:41:33'),
('EMP2020', '2021-06-22 12:41:41', '2021-06-22 12:41:43'),
('EMP2021', '2021-06-22 12:41:52', '2021-06-22 12:41:57'),
('ADN2009', '2021-06-22 12:42:03', '2021-06-22 12:42:06'),
('GM1122', '2021-06-22 12:42:12', '2021-06-22 12:42:14'),
('EMP2013', '2021-06-22 12:42:22', '2021-06-22 12:42:25'),
('EMP2014', '2021-06-22 12:42:32', '2021-06-22 12:42:35'),
('EMP2014', '2021-06-22 12:42:42', '2021-06-22 12:42:45'),
('EMP2015', '2021-06-22 12:42:52', '2021-06-22 12:42:55'),
('EMP2016', '2021-06-22 12:43:01', '2021-06-22 12:43:04'),
('EMP2017', '2021-06-22 12:43:11', '2021-06-22 12:43:13'),
('EMP2018', '2021-06-22 12:43:23', '2021-06-22 12:43:25'),
('EMP2019', '2021-06-22 12:43:37', '2021-06-22 12:43:57'),
('EMP2019', '2021-06-22 12:44:07', '2021-06-22 12:44:10'),
('EMP2020', '2021-06-22 12:44:18', '2021-06-22 12:44:20'),
('EMP2021', '2021-06-22 12:44:27', '2021-06-22 12:44:30'),
('GM1122', '2021-06-22 12:45:02', '2021-06-22 12:45:05'),
('EMP2010', '2021-06-22 12:45:12', '2021-06-22 12:45:15'),
('ADN2009', '2021-06-22 12:45:20', '2021-06-22 12:45:23'),
('EMP2014', '2021-06-22 12:45:30', '2021-06-22 12:45:33'),
('EMP2013', '2021-06-22 12:45:39', '2021-06-22 12:45:42'),
('EMP2015', '2021-06-22 12:45:55', '2021-06-22 12:45:57'),
('EMP2016', '2021-06-22 12:46:01', '2021-06-22 12:46:04'),
('EMP2017', '2021-06-22 12:46:10', '2021-06-22 12:46:14'),
('EMP2017', '2021-06-22 12:46:21', '2021-06-22 12:46:23'),
('EMP2018', '2021-06-22 12:46:32', '2021-06-22 12:46:35'),
('EMP2019', '2021-06-22 12:46:45', '2021-06-22 12:46:47'),
('EMP2020', '2021-06-22 12:46:57', '2021-06-22 12:46:59'),
('EMP2020', '2021-06-22 12:47:09', '2021-06-22 12:47:11'),
('EMP2021', '2021-06-22 12:47:19', '2021-06-22 12:47:21'),
('EMP2017', '2021-06-22 12:47:29', '2021-06-22 12:47:31'),
('GM1122', '2021-06-27 07:41:43', 'logged still'),
('GM1122', '2021-06-29 03:21:16', 'logged still'),
('GM1122', '2021-07-03 11:46:12', '2021-07-03 11:49:45'),
('GM1122', '2021-07-07 09:56:35', 'logged still');
-- --------------------------------------------------------
--
-- Table structure for table `users`
--
--
-- Dumping data for table `users`
--
--
-- Indexes for dumped tables
--
--
-- Indexes for table `accountsholder`
--
ALTER TABLE `accountsholder`
ADD PRIMARY KEY (`account`);
--
-- Indexes for table `accounts_info`
--
ALTER TABLE `accounts_info`
ADD KEY `account` (`account`);
--
-- Indexes for table `account_history`
--
ALTER TABLE `account_history`
ADD PRIMARY KEY (`no`);
--
-- Indexes for table `emp_details`
--
ALTER TABLE `emp_details`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `emp_history`
--
ALTER TABLE `emp_history`
ADD KEY `id` (`id`);
--
-- Indexes for table `users`
--
ALTER TABLE `users`
ADD PRIMARY KEY (`id`),
ADD KEY `id` (`id`);
--
-- AUTO_INCREMENT for dumped tables
--
--
-- AUTO_INCREMENT for table `account_history`
--
ALTER TABLE `account_history`
MODIFY `no` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=127;
--
-- Constraints for dumped tables
--
--
-- Constraints for table `accounts_info`
--
ALTER TABLE `accounts_info`
ADD CONSTRAINT `accounts_info_ibfk_1` FOREIGN KEY (`account`) REFERENCES
`accountsholder` (`account`) ON DELETE CASCADE ON UPDATE CASCADE;
--
-- Constraints for table `emp_history`
--
ALTER TABLE `emp_history`
ADD CONSTRAINT `emp_history_ibfk_1` FOREIGN KEY (`id`) REFERENCES `users` (`id`)
ON DELETE CASCADE ON UPDATE CASCADE;
--
-- Constraints for table `users`
--
ALTER TABLE `users`
ADD CONSTRAINT `users_ibfk_1` FOREIGN KEY (`id`) REFERENCES `emp_details` (`id`)
ON DELETE CASCADE ON UPDATE CASCADE;
COMMIT;