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

START TRANSACTION;



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

--
-- 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 table `orders`
--
ALTER TABLE `orders`
  ADD PRIMARY KEY (`id`);

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

--
-- 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;

