-- https://www.phpmyadmin.net/
--

START TRANSACTION;



--
-- Database: `swanam-ind`
--

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

--
-- Table structure for table `additional_tasks`
--

CREATE TABLE `additional_tasks` (
  `task_code` varchar(4) NOT NULL,
  `task_name` varchar(30) NOT NULL,
  `task_description` varchar(100) NOT NULL,
  `task_page_link` varchar(40) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

--
-- Dumping data for table `additional_tasks`
--

INSERT INTO `additional_tasks` (`task_code`, `task_name`, `task_description`, `task_page_link`) VALUES
('AT01', 'Picture Format Change', 'Conversion from JPG/JPEG to PNG. Convert JPG/JPEG to PNG.', 'convert-to-png'),
('AT02', 'Barcode decoding / scanning', 'Barcode Decode / Barcode Scan by file uploading (Method 1)', 'code-scanner-first'),
('AT03', 'Barcode decoding / scanning', 'Barcode Decode / Barcode Scan by file uploading (Method 2)', 'code-scanner-second'),
('AT04', 'Barcode decoding / scanning', 'Barcode Decode / Barcode Scan by Webcam', 'code-scanner-second');

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

--
-- Table structure for table `barcodes`
--

CREATE TABLE `barcodes` (
  `barcode_id` varchar(4) NOT NULL,
  `barcode_name` varchar(40) NOT NULL,
  `dimension` varchar(4) NOT NULL,
  `capacity` varchar(40) NOT NULL,
  `barcode_page_link` varchar(40) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

--
-- Dumping data for table `barcodes`
--

INSERT INTO `barcodes` (`barcode_id`, `barcode_name`, `dimension`, `capacity`, `barcode_page_link`) VALUES
('BC01', 'Aztec Code', '2D', '100', 'aztec-code'),
('BC02', 'Code 128', '1D', '100', 'bar-code'),
('BC03', 'Data Matrix', '2D', '100', 'data-matrix'),
('BC04', 'GS1-128 Barcode', '1D', '100', 'gs1-128-barcode'),
('BC05', 'Healthcare Code (Pharmacode One-Track)', '1D', '100', 'healthcare-code'),
('BC06', 'Healthcare Code (Pharmacode Two-Track)', '1D', '100', 'healthcare-code'),
('BC07', 'Healthcare Code (PZN8)', '1D', '100', 'healthcare-code'),
('BC08', 'ISBN', '1D', '100', 'isbn-issn'),
('BC09', 'ISBN with Add-on', '1D', '100', 'isbn-issn'),
('BC10', 'ISSN', '1D', '100', 'isbn-issn'),
('BC11', 'ITF-14', '1D', '100', 'itf14-code'),
('BC12', 'PDF417', '1D', '100', 'pdf417'),
('BC13', 'QR Code', '2D', '100', 'qr-code'),
('BC14', 'UPC / UPC-A', '1D', '100', 'upc-barcode'),
('BC15', 'UPC Extension (EAN-13)', '1D', '100', 'ean13-barcode'),
('BC16', 'Digital Link Data Matrix', '2D', '100', 'data-matrix-digital-link'),
('BC17', 'Digital Link QR Code', '2D', '100', 'qr-code-digital-link');

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

--
-- Table structure for table `barcode_generated`
--

CREATE TABLE `barcode_generated` (
  `generation_id` bigint(12) NOT NULL,
  `generation_date` datetime NOT NULL,
  `username` varchar(30) NOT NULL,
  `barcode_id` varchar(4) NOT NULL,
  `barcode_content` varchar(500) NOT NULL,
  `content_deleted` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

--
-- Dumping data for table `barcode_generated`
--

INSERT INTO `barcode_generated` (`generation_id`, `generation_date`, `username`, `barcode_id`, `barcode_content`, `content_deleted`) VALUES
(1, '2025-11-22 17:48:59', 'amitji.slim@gmail.com', 'BC02', 'srdzhxgcjvb', NULL),
(2, '2025-11-22 17:53:34', 'amitji.slim@gmail.com', 'BC01', 'dcfghjkl', NULL),
(3, '2025-11-22 17:53:39', 'amitji.slim@gmail.com', 'BC01', 'dcfghjkl', NULL),
(4, '2025-11-22 18:04:01', 'amitji.slim@gmail.com', 'BC02', 'SFDGHJKL', NULL),
(5, '2025-11-22 20:05:59', 'amitji.slim@gmail.com', 'BC01', 'Agrik1234567', NULL),
(6, '2025-11-22 20:09:49', 'amitji.slim@gmail.com', 'BC01', 'sfdghjbklm', NULL),
(7, '2025-11-22 20:26:49', 'amitji.slim@gmail.com', 'BC01', 'aszfdxgnvhm', NULL),
(8, '2025-11-22 20:26:57', 'amitji.slim@gmail.com', 'BC01', 'aszfdxgnvhm', NULL),
(9, '2025-11-22 20:35:45', 'amitji.slim@gmail.com', 'BC01', 'fedgfhhjb', NULL),
(10, '2025-11-22 20:36:50', 'amitji.slim@gmail.com', 'BC01', 'fedgfhhjb', NULL),
(11, '2025-11-22 20:38:08', 'amitji.slim@gmail.com', 'BC01', 'sfdghvjbkn', NULL),
(12, '2025-11-22 20:44:31', 'amitji.slim@gmail.com', 'BC01', 'sadfghvjb', NULL);

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

--
-- Table structure for table `country_details`
--

CREATE TABLE `country_details` (
  `country_isd_code` varchar(4) NOT NULL,
  `country_name` varchar(30) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

--
-- Dumping data for table `country_details`
--

INSERT INTO `country_details` (`country_isd_code`, `country_name`) VALUES
('091', 'India');

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

--
-- Table structure for table `encryption_decryption_processed`
--

CREATE TABLE `encryption_decryption_processed` (
  `process_id` bigint(12) NOT NULL,
  `process_date` datetime NOT NULL,
  `username` varchar(30) NOT NULL,
  `process_name` varchar(12) NOT NULL,
  `technique_code` varchar(4) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

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

--
-- Table structure for table `encryption_techniques`
--

CREATE TABLE `encryption_techniques` (
  `technique_code` varchar(4) NOT NULL,
  `technique_name` varchar(50) NOT NULL,
  `technique_short_name` varchar(25) NOT NULL,
  `technique_size` varchar(20) NOT NULL,
  `technique_page_link` varchar(40) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

--
-- Dumping data for table `encryption_techniques`
--

INSERT INTO `encryption_techniques` (`technique_code`, `technique_name`, `technique_short_name`, `technique_size`, `technique_page_link`) VALUES
('ET01', 'Advanced Encryption Standard', 'AES-128', '128', 'data-encryption'),
('ET02', 'Advanced Encryption Standard', 'AES-192', '192', 'data-encryption'),
('ET03', 'Advanced Encryption Standard', 'AES-256', '256', 'data-encryption'),
('ET04', 'Triple Data Encryption Standard', '3DES', '', 'data-encryption'),
('ET05', 'Twofish Encryption', 'Twofish', '', 'data-encryption'),
('ET06', 'Rivest–Shamir–Adleman Encryption', 'RSA', '', 'data-encryption'),
('ET07', 'Elliptic Curve Cryptography', 'ECC', '', 'data-encryption'),
('ET08', 'Hybrid Encryption: (AES + RSA)', '(AES + RSA)', '', 'data-encryption'),
('ET09', 'Hybrid Encryption: (AES + ECC)', '(AES + ECC)', '', 'data-encryption'),
('ET10', 'Data Decryption', 'Data Decryption', '', 'data-decryption');

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

--
-- Table structure for table `feedback`
--

CREATE TABLE `feedback` (
  `feedback_code` varchar(10) NOT NULL,
  `feedback_date` datetime NOT NULL,
  `username` varchar(30) NOT NULL,
  `rating` int(1) NOT NULL,
  `feedback_details` varchar(360) NOT NULL,
  `feedback_reply` varchar(360) DEFAULT NULL,
  `replied_by` varchar(30) DEFAULT NULL,
  `replied_on` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

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

--
-- Table structure for table `gender`
--

CREATE TABLE `gender` (
  `gender_code` varchar(1) NOT NULL,
  `gender_name` varchar(7) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

--
-- Dumping data for table `gender`
--

INSERT INTO `gender` (`gender_code`, `gender_name`) VALUES
('F', 'Female'),
('M', 'Male'),
('O', 'Others');

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

--
-- Table structure for table `grievances`
--

CREATE TABLE `grievances` (
  `grievance_code` varchar(10) NOT NULL,
  `grievance_date` datetime NOT NULL,
  `username` varchar(30) NOT NULL,
  `issue_code` varchar(5) NOT NULL,
  `grievance_details` varchar(360) NOT NULL,
  `grievance_status` varchar(1) NOT NULL DEFAULT '0' COMMENT '''0-Open, 1-Closed''',
  `grievance_redressal` varchar(360) DEFAULT NULL,
  `addressed_by` varchar(30) DEFAULT NULL,
  `addressed_on` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

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

--
-- Table structure for table `grievance_issues`
--

CREATE TABLE `grievance_issues` (
  `issue_code` varchar(5) NOT NULL,
  `issue_name` varchar(75) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

--
-- Dumping data for table `grievance_issues`
--

INSERT INTO `grievance_issues` (`issue_code`, `issue_name`) VALUES
('GV01', 'Payment cannot be initiated'),
('GV02', 'Payment initiated but failed'),
('GV03', 'Payment made but not updated in account'),
('GV04', 'Payment made, updated in account but contents are not accessable'),
('GV05', 'Facing problem in barcode generation'),
('GV06', 'Facing problem in barcode scanning'),
('GV07', 'Facing problem in data encryption'),
('GV08', 'Facing problem in data decryption'),
('GV09', 'Others');

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

--
-- Table structure for table `notifications`
--

CREATE TABLE `notifications` (
  `notification_sl_no` int(5) NOT NULL,
  `notification_date` datetime NOT NULL,
  `notification_channel` varchar(15) NOT NULL,
  `notification_subject` varchar(100) NOT NULL,
  `notification_body` varchar(400) NOT NULL,
  `sent_by` varchar(30) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

--
-- Dumping data for table `notifications`
--

INSERT INTO `notifications` (`notification_sl_no`, `notification_date`, `notification_channel`, `notification_subject`, `notification_body`, `sent_by`) VALUES
(1, '2025-11-22 17:19:26', 'email', 'Business Specification - Swanam-ind', 'onclick=\"history.back()\"', 'amitji.slim@gmail.com');

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

--
-- Table structure for table `organisations`
--

CREATE TABLE `organisations` (
  `org_sl_no` int(4) NOT NULL,
  `organisation_code` varchar(12) NOT NULL,
  `organisation_name` varchar(75) NOT NULL,
  `maximum_user` int(4) NOT NULL,
  `edited_on` datetime DEFAULT NULL,
  `edited_by` varchar(30) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

--
-- Dumping data for table `organisations`
--

INSERT INTO `organisations` (`org_sl_no`, `organisation_code`, `organisation_name`, `maximum_user`, `edited_on`, `edited_by`) VALUES
(1, 'ORG25110001', 'Bindu Corporation', 5, NULL, NULL);

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

--
-- Table structure for table `refunds`
--

CREATE TABLE `refunds` (
  `refund_sl_id` int(11) NOT NULL,
  `merchant_refund_id` varchar(100) NOT NULL,
  `transaction_id` varchar(100) NOT NULL,
  `merchant_order_id` varchar(100) NOT NULL,
  `amount` int(11) NOT NULL,
  `status` varchar(20) NOT NULL DEFAULT 'PENDING',
  `created_at` datetime DEFAULT current_timestamp(),
  `updated_at` datetime DEFAULT NULL ON UPDATE current_timestamp()
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

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

--
-- Table structure for table `state_details`
--

CREATE TABLE `state_details` (
  `state_code` varchar(2) NOT NULL,
  `state_name` varchar(50) NOT NULL,
  `type` varchar(20) NOT NULL,
  `gst_state_code` varchar(2) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `state_details`
--

INSERT INTO `state_details` (`state_code`, `state_name`, `type`, `gst_state_code`) VALUES
('AN', 'Andaman and Nicobar Islands', 'Union Territory', '35'),
('AP', 'Andhra Pradesh', 'State', '37'),
('AR', 'Arunachal Pradesh', 'State', '12'),
('AS', 'Assam', 'State', '18'),
('BR', 'Bihar', 'State', '10'),
('CG', 'Chattisgarh', 'State', '22'),
('CH', 'Chandigarh', 'Union Territory', '04'),
('DD', 'Dadra and Nagar Haveli and Daman and Diu', 'Union Territory', '26'),
('DL', 'National Capital Territory of Delhi', 'Union Territory', '07'),
('GA', 'Goa', 'State', '30'),
('GJ', 'Gujarat', 'State', '24'),
('HP', 'Himachal Pradesh', 'State', '02'),
('HR', 'Haryana', 'State', '06'),
('JH', 'Jharkhand', 'State', '20'),
('JK', 'Jammu and Kashmir', 'Union Territory', '01'),
('KA', 'Karnataka', 'State', '29'),
('KL', 'Kerala', 'State', '32'),
('LA', 'Ladakh', 'Union Territory', '38'),
('LD', 'Lakshadweep', 'Union Territory', '31'),
('MH', 'Maharashtra', 'State', '27'),
('ML', 'Meghalaya', 'State', '17'),
('MN', 'Manipur', 'State', '14'),
('MP', 'Madhya Pradesh', 'State', '23'),
('MZ', 'Mizoram', 'State', '15'),
('NL', 'Nagaland', 'State', '13'),
('OD', 'Odisha', 'State', '21'),
('PB', 'Punjab', 'State', '03'),
('PY', 'Puducherry', 'Union Territory', '34'),
('RJ', 'Rajasthan', 'State', '08'),
('SK', 'Sikkim', 'State', '11'),
('TN', 'Tamil Nadu', 'State', '33'),
('TR', 'Tripura', 'State', '16'),
('TS', 'Telangana', 'State', '36'),
('UK', 'Uttarakhand', 'State', '05'),
('UP', 'Uttar Pradesh', 'State', '09'),
('WB', 'West Bengal', 'State', '19');

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

--
-- Table structure for table `subscriptions`
--

CREATE TABLE `subscriptions` (
  `subs_sl_no` bigint(10) NOT NULL,
  `date_of_subscription` datetime NOT NULL,
  `transaction_id` varchar(20) DEFAULT NULL,
  `username` varchar(30) NOT NULL,
  `start_of_subscription` date NOT NULL,
  `end_of_subscription` date NOT NULL,
  `amount_paid` int(7) NOT NULL,
  `status` varchar(10) NOT NULL DEFAULT '0' COMMENT '0-Without Subscription, 1-With Subscription',
  `refund_status` varchar(10) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

--
-- Dumping data for table `subscriptions`
--

INSERT INTO `subscriptions` (`subs_sl_no`, `date_of_subscription`, `transaction_id`, `username`, `start_of_subscription`, `end_of_subscription`, `amount_paid`, `status`, `refund_status`) VALUES
(1, '2025-11-22 16:27:23', NULL, 'amitji.slim@gmail.com', '2025-11-22', '2025-12-07', 0, '0', NULL),
(2, '2025-11-23 00:00:00', '0', 'amitji.slim@gmail.com', '2025-11-23', '2025-12-23', 290, 'Pending', NULL),
(3, '2025-11-23 00:00:00', '0', 'amitji.slim@gmail.com', '2025-11-23', '2026-11-23', 2900, 'Pending', NULL),
(4, '2025-11-23 00:00:00', '0', 'amitji.slim@gmail.com', '2025-11-23', '2025-12-23', 290, 'Pending', NULL),
(5, '2025-11-23 00:00:00', '0', 'amitji.slim@gmail.com', '2025-11-23', '2025-12-23', 290, 'Pending', NULL),
(6, '2025-11-23 00:00:00', '0', 'amitji.slim@gmail.com', '2025-11-23', '2025-12-23', 290, 'Pending', NULL),
(7, '2025-11-23 00:00:00', 'T251100001', 'amitji.slim@gmail.com', '2025-11-23', '2026-11-23', 2900, 'Pending', NULL),
(8, '2025-11-27 23:25:30', NULL, 'amit.slim@hotmail.com', '2025-11-27', '2025-12-12', 0, '0', NULL);

--
-- Indexes for dumped tables
--

--
-- Indexes for table `additional_tasks`
--
ALTER TABLE `additional_tasks`
  ADD PRIMARY KEY (`task_code`);

--
-- Indexes for table `barcodes`
--
ALTER TABLE `barcodes`
  ADD PRIMARY KEY (`barcode_id`);

--
-- Indexes for table `barcode_generated`
--
ALTER TABLE `barcode_generated`
  ADD PRIMARY KEY (`generation_id`);

--
-- Indexes for table `country_details`
--
ALTER TABLE `country_details`
  ADD PRIMARY KEY (`country_isd_code`);

--
-- Indexes for table `encryption_decryption_processed`
--
ALTER TABLE `encryption_decryption_processed`
  ADD PRIMARY KEY (`process_id`);

--
-- Indexes for table `encryption_techniques`
--
ALTER TABLE `encryption_techniques`
  ADD PRIMARY KEY (`technique_code`);

--
-- Indexes for table `feedback`
--
ALTER TABLE `feedback`
  ADD PRIMARY KEY (`feedback_code`);

--
-- Indexes for table `gender`
--
ALTER TABLE `gender`
  ADD PRIMARY KEY (`gender_code`);

--
-- Indexes for table `grievances`
--
ALTER TABLE `grievances`
  ADD PRIMARY KEY (`grievance_code`);

--
-- Indexes for table `grievance_issues`
--
ALTER TABLE `grievance_issues`
  ADD PRIMARY KEY (`issue_code`);

--
-- Indexes for table `notifications`
--
ALTER TABLE `notifications`
  ADD PRIMARY KEY (`notification_sl_no`);

--
-- Indexes for table `organisations`
--
ALTER TABLE `organisations`
  ADD PRIMARY KEY (`org_sl_no`),
  ADD UNIQUE KEY `organisation_code` (`organisation_code`);

--
-- Indexes for table `refunds`
--
ALTER TABLE `refunds`
  ADD PRIMARY KEY (`refund_sl_id`);

--
-- Indexes for table `state_details`
--
ALTER TABLE `state_details`
  ADD PRIMARY KEY (`state_code`),
  ADD UNIQUE KEY `gst_state_code` (`gst_state_code`);

--
-- Indexes for table `subscriptions`
--
ALTER TABLE `subscriptions`
  ADD PRIMARY KEY (`subs_sl_no`);

--
-- AUTO_INCREMENT for dumped tables
--

--
-- AUTO_INCREMENT for table `barcode_generated`
--
ALTER TABLE `barcode_generated`
  MODIFY `generation_id` bigint(12) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=13;

--
-- AUTO_INCREMENT for table `encryption_decryption_processed`
--
ALTER TABLE `encryption_decryption_processed`
  MODIFY `process_id` bigint(12) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `notifications`
--
ALTER TABLE `notifications`
  MODIFY `notification_sl_no` int(5) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;

--
-- AUTO_INCREMENT for table `organisations`
--
ALTER TABLE `organisations`
  MODIFY `org_sl_no` int(4) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;

--
-- AUTO_INCREMENT for table `refunds`
--
ALTER TABLE `refunds`
  MODIFY `refund_sl_id` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `subscriptions`
--
ALTER TABLE `subscriptions`
  MODIFY `subs_sl_no` bigint(10) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=9;
COMMIT;

