-- phpMyAdmin SQL Dump
-- version 5.2.1
-- https://www.phpmyadmin.net/
--
-- Host: localhost:3306
-- Generation Time: Mar 12, 2026 at 06:23 PM
-- Server version: 8.0.33-cll-lve
-- PHP Version: 8.1.16

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

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

--
-- Table structure for table `admin`
--

CREATE TABLE `admin` (
  `al_id` int NOT NULL,
  `email` varchar(50) NOT NULL,
  `pass` varchar(50) NOT NULL,
  `name` varchar(50) DEFAULT 'Admin',
  `access` varchar(500) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `admin`
--

INSERT INTO `admin` (`al_id`, `email`, `pass`, `name`, `access`) VALUES
(2, 'admin@gmail.com', 'admin123', 'Admin', '[\"Dashboard\",\"Product\",\"Orders\",\"Users\",\"Transactions\",\"Content Management\",\"Staff\",\"Captcha Entries\",\"Earnings Management\",\"Wallet Management\",\"SEO Manager\",\"Enquiries Management\",\"KYC Managaement\",\"Pages Managaement\",\"Settings\",\"Support\",\"Reports\", \"KYC Management\", \"Pages Management\"]'),
(12, 'pclrohtak@gmail.com', 'Pcl@2020', 'Admin', '[\"Transactions\"]');

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

--
-- Table structure for table `orders`
--

CREATE TABLE `orders` (
  `id` int NOT NULL,
  `product_id` int DEFAULT NULL,
  `name` varchar(255) DEFAULT NULL,
  `email` varchar(255) DEFAULT NULL,
  `phone` varchar(15) DEFAULT NULL,
  `address` text,
  `city` varchar(100) DEFAULT NULL,
  `state` varchar(100) DEFAULT NULL,
  `country` varchar(100) DEFAULT NULL,
  `pincode` varchar(10) DEFAULT NULL,
  `amount` decimal(10,2) DEFAULT NULL,
  `order_date` timestamp NULL DEFAULT CURRENT_TIMESTAMP
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;

--
-- Dumping data for table `orders`
--

INSERT INTO `orders` (`id`, `product_id`, `name`, `email`, `phone`, `address`, `city`, `state`, `country`, `pincode`, `amount`, `order_date`) VALUES
(1, 1, 'Test', 'info@diginspire.co', '09840662081', 'No.344/B, Road no. 4, Ashok nagar, Ranchi- 834002 Jharkhand', 'Ranchi', 'Jharkhand', 'India', '834002', 5999.00, '2024-11-15 05:17:49'),
(2, 1, 'Test', 'info@diginspire.co', '09840662081', 'No.344/B, Road no. 4, Ashok nagar, Ranchi- 834002 Jharkhand', 'Ranchi', 'Jharkhand', 'India', '834002', 5999.00, '2024-11-15 05:19:49'),
(3, 1, 'Vaibhav', 'info@diginspire.co', '09840662081', 'No.344/B, Road no. 4, Ashok nagar, Ranchi- 834002 Jharkhand', 'Ranchi', 'Jharkhand', 'India', '834002', 5999.00, '2024-11-15 05:40:19'),
(4, 1, 'Nikunj Gajera', 'nikunjgajera11@gmail.com', '08866775339', 'C-401, Savan Plaza', 'Surat', 'Gujarat', 'India', '395010', 5999.00, '2024-11-15 05:45:57');

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

--
-- Table structure for table `Product`
--

CREATE TABLE `Product` (
  `id` int NOT NULL,
  `title` varchar(255) NOT NULL,
  `subtitle` varchar(255) DEFAULT NULL,
  `price` varchar(255) NOT NULL DEFAULT '0',
  `description` text,
  `main_image` varchar(255) DEFAULT NULL,
  `additional_images` json DEFAULT NULL,
  `benefits` text,
  `about` text,
  `additional_details` text,
  `created_at` timestamp NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_at` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;

--
-- Dumping data for table `Product`
--

INSERT INTO `Product` (`id`, `title`, `subtitle`, `price`, `description`, `main_image`, `additional_images`, `benefits`, `about`, `additional_details`, `created_at`, `updated_at`) VALUES
(1, 'Product Title', 'Product Subtitle', '5999', 'This is a detailed description of the product.', '../images/image1.webp', '[\"../images/image1.webp\", \"../images/image2.webp\"]', 'List of product benefits here.', 'About the product here.', 'Additional details here.', '2024-11-15 04:45:15', '2024-11-15 06:00:00');

--
-- Indexes for dumped tables
--

--
-- Indexes for table `admin`
--
ALTER TABLE `admin`
  ADD PRIMARY KEY (`al_id`);

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

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

--
-- AUTO_INCREMENT for dumped tables
--

--
-- AUTO_INCREMENT for table `admin`
--
ALTER TABLE `admin`
  MODIFY `al_id` int NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=13;

--
-- AUTO_INCREMENT for table `orders`
--
ALTER TABLE `orders`
  MODIFY `id` int NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=6;

--
-- AUTO_INCREMENT for table `Product`
--
ALTER TABLE `Product`
  MODIFY `id` int NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=13;
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 */;
