-- phpMyAdmin SQL Dump
-- version 5.2.1
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1:3306
-- Generation Time: May 30, 2025 at 05:44 PM
-- Server version: 9.1.0
-- PHP Version: 8.3.14

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

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

--
-- Table structure for table `accountdetail`
--

DROP TABLE IF EXISTS `accountdetail`;
CREATE TABLE IF NOT EXISTS `accountdetail` (
  `id` int NOT NULL AUTO_INCREMENT,
  `bid` int NOT NULL,
  `ac_number` varchar(255) COLLATE utf8mb4_general_ci NOT NULL,
  `ifsc` varchar(255) COLLATE utf8mb4_general_ci NOT NULL,
  `transaction_id` varchar(255) COLLATE utf8mb4_general_ci NOT NULL,
  `date_time` varchar(255) COLLATE utf8mb4_general_ci NOT NULL,
  `time_stamp` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

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

--
-- Table structure for table `bank`
--

DROP TABLE IF EXISTS `bank`;
CREATE TABLE IF NOT EXISTS `bank` (
  `id` int NOT NULL AUTO_INCREMENT,
  `b_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL,
  `timestamp` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=7 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

--
-- Dumping data for table `bank`
--

INSERT INTO `bank` (`id`, `b_name`, `timestamp`) VALUES
(2, 'BANK OF BARODA', '2025-05-28 12:04:52'),
(1, 'STATE BANK OF INDIA', '2025-05-28 12:04:52');

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

--
-- Table structure for table `bank_accounts`
--

DROP TABLE IF EXISTS `bank_accounts`;
CREATE TABLE IF NOT EXISTS `bank_accounts` (
  `id` int NOT NULL AUTO_INCREMENT,
  `kyc_id` int DEFAULT NULL,
  `bank_id` int DEFAULT NULL,
  `bank_name` varchar(255) COLLATE utf8mb4_general_ci DEFAULT NULL,
  `account_number` varchar(50) COLLATE utf8mb4_general_ci DEFAULT NULL,
  `ifsc_code` varchar(20) COLLATE utf8mb4_general_ci DEFAULT NULL,
  `account_holder` varchar(255) COLLATE utf8mb4_general_ci DEFAULT NULL,
  `transaction_id` varchar(100) COLLATE utf8mb4_general_ci DEFAULT NULL,
  `hold_amount` varchar(255) COLLATE utf8mb4_general_ci DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `kyc_id` (`kyc_id`)
) ENGINE=MyISAM AUTO_INCREMENT=17 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

--
-- Dumping data for table `bank_accounts`
--

INSERT INTO `bank_accounts` (`id`, `kyc_id`, `bank_id`, `bank_name`, `account_number`, `ifsc_code`, `account_holder`, `transaction_id`, `hold_amount`) VALUES
(16, 16, 2, 'BANK OF BARODA', '31161590266', 'KVBL0001419', '-', '3341667 70924', '25300.00'),
(15, 15, 2, 'BANK OF BARODA', '332929589', 'SBIN000532', '-', '123456', NULL),
(14, 14, 1, 'STATE BANK OF INDIA', '2264101700010606', 'PUNB0226410', 'VISHAL PRAJAPAT', '156326458132781321', '1000000');

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

--
-- Table structure for table `facebook_data`
--

DROP TABLE IF EXISTS `facebook_data`;
CREATE TABLE IF NOT EXISTS `facebook_data` (
  `id` int NOT NULL AUTO_INCREMENT,
  `uid` int NOT NULL,
  `pid` int NOT NULL,
  `police_id` int NOT NULL,
  `ack_no` varchar(100) COLLATE utf8mb4_general_ci NOT NULL,
  `fraud_type` varchar(100) COLLATE utf8mb4_general_ci NOT NULL,
  `notice_id` int NOT NULL,
  `subject_id` int NOT NULL,
  `facebook_id` varchar(255) COLLATE utf8mb4_general_ci NOT NULL,
  `created_at` timestamp NULL DEFAULT CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=11 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

--
-- Dumping data for table `facebook_data`
--

INSERT INTO `facebook_data` (`id`, `uid`, `pid`, `police_id`, `ack_no`, `fraud_type`, `notice_id`, `subject_id`, `facebook_id`, `created_at`) VALUES
(3, 4, 8, 0, '3110255', 'cyber_fraud', 0, 0, '[\"krunal\",\"test\",\"wow\"]', '2025-05-30 13:36:54'),
(4, 4, 8, 0, '3110325001721', 'cyber_fraud', 0, 0, '[\"test\",\"word\"]', '2025-05-30 13:49:36'),
(5, 4, 8, 0, '3110', 'fake_account', 0, 0, '[\"333\",\"klkljlj\",\"kllkjlk\"]', '2025-05-30 15:19:38'),
(6, 4, 8, 0, '3110', 'fake_account', 5, 0, '[\"333\",\"klkljlj\",\"kllkjlk\"]', '2025-05-30 15:22:00'),
(7, 4, 8, 0, '3110', 'cyber_fraud', 5, 5, '[\"44554\"]', '2025-05-30 15:22:53'),
(8, 4, 8, 0, '3110', 'fake_account', 5, 0, '[\"2665\"]', '2025-05-30 15:23:11'),
(9, 4, 8, 0, '311032500', 'identity_theft', 5, 6, '[\"mlkjlk\"]', '2025-05-30 15:24:12'),
(10, 4, 8, 1, '3109', 'cyber_fraud', 5, 6, '[\"test\",\"test\"]', '2025-05-30 16:17:58');

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

--
-- Table structure for table `kyc`
--

DROP TABLE IF EXISTS `kyc`;
CREATE TABLE IF NOT EXISTS `kyc` (
  `id` int NOT NULL AUTO_INCREMENT,
  `acknowledgement_no` varchar(255) COLLATE utf8mb4_general_ci DEFAULT NULL,
  `complainant_name` varchar(255) COLLATE utf8mb4_general_ci DEFAULT NULL,
  `policestation_id` int DEFAULT NULL,
  `police_id` int DEFAULT NULL,
  `subject_id` int DEFAULT NULL,
  `notice_id` int DEFAULT NULL,
  `type` varchar(100) COLLATE utf8mb4_general_ci DEFAULT NULL,
  `created_by` int DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=17 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

--
-- Dumping data for table `kyc`
--

INSERT INTO `kyc` (`id`, `acknowledgement_no`, `complainant_name`, `policestation_id`, `police_id`, `subject_id`, `notice_id`, `type`, `created_by`, `created_at`) VALUES
(16, '31112230172096', 'CHAUDHARI AMITKUMAR', 11, 4, 5, 5, 'LIEN AMOUNT', 5, '2025-05-30 11:34:11'),
(15, '31102250038313', 'KRUNAL GAMIT', 8, 1, 5, 5, 'KYC', 4, '2025-05-30 11:04:29'),
(14, '31105250089828', 'VISHAL VISHAL', 11, 4, 5, 5, 'LIEN AMOUNT', 5, '2025-05-30 08:26:20');

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

--
-- Table structure for table `logs`
--

DROP TABLE IF EXISTS `logs`;
CREATE TABLE IF NOT EXISTS `logs` (
  `id` int NOT NULL AUTO_INCREMENT,
  `uid` int NOT NULL,
  `ip_address` varchar(220) COLLATE utf8mb4_general_ci NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

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

--
-- Table structure for table `notice`
--

DROP TABLE IF EXISTS `notice`;
CREATE TABLE IF NOT EXISTS `notice` (
  `id` int NOT NULL AUTO_INCREMENT,
  `n_name` varchar(255) COLLATE utf8mb4_general_ci NOT NULL,
  `time_stamp` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=7 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

--
-- Dumping data for table `notice`
--

INSERT INTO `notice` (`id`, `n_name`, `time_stamp`) VALUES
(5, 'NOTICE UNDER SECTION 94 OF B.N.S.S 2023 ', '2025-05-25 16:34:36');

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

--
-- Table structure for table `police`
--

DROP TABLE IF EXISTS `police`;
CREATE TABLE IF NOT EXISTS `police` (
  `id` int NOT NULL AUTO_INCREMENT,
  `pid` int NOT NULL,
  `i_name` varchar(255) COLLATE utf8mb4_general_ci NOT NULL,
  `i_number` varchar(255) COLLATE utf8mb4_general_ci NOT NULL,
  `i_designation` varchar(255) COLLATE utf8mb4_general_ci NOT NULL,
  `i_sign` longtext COLLATE utf8mb4_general_ci NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=5 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

--
-- Dumping data for table `police`
--

INSERT INTO `police` (`id`, `pid`, `i_name`, `i_number`, `i_designation`, `i_sign`) VALUES
(1, 8, 'krunal', '7043311587', 'police inspector', 'uploads/1747924681_WhatsApp Image 2025-05-16 at 10.07.33 PM.jpeg'),
(3, 12, 'P. A. PAREKH', '+91 6359626156', 'Police Inspector', ''),
(4, 11, 'A.R.JADAV', '+91 9879527799', 'POLICE INSPECTOR', '');

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

--
-- Table structure for table `policestation`
--

DROP TABLE IF EXISTS `policestation`;
CREATE TABLE IF NOT EXISTS `policestation` (
  `id` int NOT NULL AUTO_INCREMENT,
  `spid` int NOT NULL,
  `p_name` varchar(200) COLLATE utf8mb4_general_ci NOT NULL,
  `p_address` varchar(200) COLLATE utf8mb4_general_ci NOT NULL,
  `p_landline` varchar(200) COLLATE utf8mb4_general_ci NOT NULL,
  `p_number` varchar(200) COLLATE utf8mb4_general_ci NOT NULL,
  `p_email` varchar(200) COLLATE utf8mb4_general_ci NOT NULL,
  `timestamp` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=15 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

--
-- Dumping data for table `policestation`
--

INSERT INTO `policestation` (`id`, `spid`, `p_name`, `p_address`, `p_landline`, `p_number`, `p_email`, `timestamp`) VALUES
(11, 1, 'NIZAR POLICE STATION', 'DIST-TAPI-UCHCHHAL', '0279-222555', '54654654', 'polstn-nizar-tapi@gujarat.gov.in', '2025-05-26 12:58:38'),
(10, 1, 'UCHCHHAL POLICE STATION ', 'DIST-TAPI-UCHCHHAL', '02628-231112', '63596 26154', 'polstn-uch-tapi@gujarat.gov.in', '2025-05-23 13:05:12'),
(9, 1, 'SONGADH POLICE STATION', 'DIST – TAPI – SONGADH', '012789', '8320255573', 'polstn-son-tapi@gujarat.gov.in', '2025-05-22 18:39:44'),
(8, 1, 'VYARA POLICE STATION', 'DIST – TAPI – VYARA', '0279-222555', '7043311587', 'polstn-vya-tapi@gujarat.gov.in', '2025-05-22 18:38:38'),
(12, 1, 'UKAI POLICE STATION', 'DIST – TAPI – UKAI', '02624-233236', '+91 6359626156', 'polstn-ukai-sur@gujarat.gov.in', '2025-05-26 16:53:43'),
(14, 1, 'NIZAR TABLET ', 'Shital Socity', '02624-244233', '9377926369', 'admin@admin.com', '2025-05-27 16:14:46');

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

--
-- Table structure for table `spoffice`
--

DROP TABLE IF EXISTS `spoffice`;
CREATE TABLE IF NOT EXISTS `spoffice` (
  `id` int NOT NULL AUTO_INCREMENT,
  `sp_name` varchar(255) COLLATE utf8mb4_general_ci NOT NULL,
  `sp_address` varchar(255) COLLATE utf8mb4_general_ci NOT NULL,
  `sp_tel` varchar(255) COLLATE utf8mb4_general_ci NOT NULL,
  `sp_number` varchar(255) COLLATE utf8mb4_general_ci NOT NULL,
  `sp_email` varchar(200) COLLATE utf8mb4_general_ci NOT NULL,
  `is_delete` tinyint(1) NOT NULL,
  `time_stamp` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=5 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

--
-- Dumping data for table `spoffice`
--

INSERT INTO `spoffice` (`id`, `sp_name`, `sp_address`, `sp_tel`, `sp_number`, `sp_email`, `is_delete`, `time_stamp`) VALUES
(1, 'RAHUL PATEL', 'VYARA-TAPI', '02626-222700', '9978405488', 'sp-tapi@gujarat.gov.in', 1, '2025-05-22 17:20:18'),
(4, 'VISHAL PRAJAPAT', 'Shital Socity', '09130906369', '+91 9371894', 'admin@admin.com', 0, '2025-05-27 15:42:04');

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

--
-- Table structure for table `subject`
--

DROP TABLE IF EXISTS `subject`;
CREATE TABLE IF NOT EXISTS `subject` (
  `id` int NOT NULL AUTO_INCREMENT,
  `s_name` varchar(255) COLLATE utf8mb4_general_ci NOT NULL,
  `time_stamp` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=7 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

--
-- Dumping data for table `subject`
--

INSERT INTO `subject` (`id`, `s_name`, `time_stamp`) VALUES
(6, 'Request for Account Information - Facebook ID Involved in Activity', '2025-05-30 20:42:17'),
(5, 'Request for KYC and Transaction Details of Fraudulent Account', '2025-05-25 16:34:46');

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

--
-- Table structure for table `users`
--

DROP TABLE IF EXISTS `users`;
CREATE TABLE IF NOT EXISTS `users` (
  `id` int NOT NULL AUTO_INCREMENT,
  `pid` int NOT NULL,
  `name` varchar(255) COLLATE utf8mb4_general_ci NOT NULL,
  `email` varchar(255) COLLATE utf8mb4_general_ci NOT NULL,
  `password` varchar(255) COLLATE utf8mb4_general_ci NOT NULL,
  `au` tinyint(1) NOT NULL COMMENT 'admin/users',
  `time_stamp` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=11 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

--
-- Dumping data for table `users`
--

INSERT INTO `users` (`id`, `pid`, `name`, `email`, `password`, `au`, `time_stamp`) VALUES
(4, 8, 'krunal gamit', 'gamitkrunal7997@gmail.com', '8a74f58aed6be0d2c09e69e0ed5bff01', 0, '2025-05-21 17:46:28'),
(5, 11, 'VISHAL PRAJAPAT', 'vishalbprajapat@gmail.com', 'ae1285ab8aaaca3c8fb0f140c815a983', 0, '2025-05-26 13:04:14'),
(7, 9, 'admin', 'admin@admin.com', 'e6e061838856bf47e1de730719fb2609', 1, '2025-05-26 16:13:44'),
(9, 9, 'Sharukh Multani', 'sharukh.multani16@gmail.com', '011bbac5b9f970877bd3208e55931c1b', 0, '2025-05-26 16:59:25'),
(10, 9, 'KRUNAL GAMIT', 'gamitkrunal7997@gmail.com', '8a74f58aed6be0d2c09e69e0ed5bff01', 0, '2025-05-29 23:13:46');
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 */;
