-- phpMyAdmin SQL Dump
-- version 5.2.1
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: Nov 25, 2025 at 08:45 PM
-- Server version: 10.4.32-MariaDB
-- PHP Version: 8.2.12

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

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

--
-- Table structure for table `category`
--

CREATE TABLE `category` (
  `id` bigint(20) NOT NULL,
  `category_name` varchar(250) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

--
-- Dumping data for table `category`
--

INSERT INTO `category` (`id`, `category_name`) VALUES
(1, 'Agarbatti'),
(2, 'Supari'),
(3, 'Cosmetic/Creams/Beauty Items'),
(4, 'Rice'),
(5, 'Asal Assorted'),
(6, 'Assorted Paste'),
(7, 'Desi Products'),
(8, 'Assorted Spices'),
(9, 'Muraba'),
(10, 'Punjabi Assorted Items'),
(11, 'Amina Sauce'),
(12, 'Herbal Items'),
(13, 'House hold'),
(14, 'Snacks'),
(15, 'Salt'),
(16, 'Henna'),
(17, 'Sweet Assorted'),
(18, 'Plastic Items'),
(19, 'Laziza Sweet Mix'),
(20, 'Toys'),
(21, 'All Hair Color'),
(22, 'Carrier Bag'),
(23, 'Soaps'),
(24, 'Tea'),
(25, 'Noodles'),
(26, 'Cooking cubes'),
(27, 'Sweetzone'),
(28, 'Durvesh Products/Powder'),
(29, 'Oil Various'),
(30, 'Mukhwas'),
(31, 'Vermicelli'),
(32, 'Fried Onion'),
(33, 'Drinks'),
(34, 'Goal Gappa Items'),
(35, 'Haribo Sweet'),
(36, 'Heera Assorted'),
(37, 'Natco Other Items'),
(38, 'Heera Atta'),
(39, 'Cooking Oil'),
(40, 'Laziza Spices'),
(41, 'Laziza Custard'),
(42, 'Laziza Jelly'),
(43, 'Kheer Mix'),
(44, 'Laziza Falooda'),
(45, 'Haleem'),
(46, 'Kheer Economy'),
(47, 'Natco Spices'),
(48, 'Pataks'),
(49, 'Punjabi'),
(54, 'Rajah Spices'),
(55, 'Laziza Rasmalai'),
(56, 'Sapna'),
(57, 'Shan Masala'),
(58, 'Deliveries'),
(59, 'Sweeto'),
(60, 'Tropics');

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

--
-- Table structure for table `product_images`
--

CREATE TABLE `product_images` (
  `id` bigint(20) NOT NULL,
  `product_mst_id` bigint(20) NOT NULL,
  `image_name` varchar(250) NOT NULL,
  `primary_image` varchar(1) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

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

--
-- Table structure for table `product_mst`
--

CREATE TABLE `product_mst` (
  `id` bigint(20) NOT NULL,
  `title` varchar(50) NOT NULL,
  `description` varchar(500) DEFAULT NULL,
  `category_id` bigint(20) NOT NULL,
  `price` float DEFAULT NULL,
  `discount_price` float DEFAULT NULL,
  `product_status` varchar(1) DEFAULT NULL,
  `register_on` timestamp NOT NULL DEFAULT current_timestamp()
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

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

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

CREATE TABLE `users` (
  `id` bigint(20) NOT NULL,
  `firstname` varchar(250) NOT NULL,
  `lastname` varchar(250) NOT NULL,
  `email_address` varchar(250) NOT NULL,
  `phone_no` varchar(250) DEFAULT NULL,
  `register_on` timestamp NOT NULL DEFAULT current_timestamp(),
  `password` varchar(20) NOT NULL,
  `role` varchar(250) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

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

INSERT INTO `users` (`id`, `firstname`, `lastname`, `email_address`, `phone_no`, `register_on`, `password`, `role`) VALUES
(1, 'Qasim', 'Ihsan', 'qasimihsan1995@gmail.com', '03157091149', '2025-11-20 09:47:26', '12345678', 'administrator');

--
-- Indexes for dumped tables
--

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

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

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

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

--
-- AUTO_INCREMENT for dumped tables
--

--
-- AUTO_INCREMENT for table `category`
--
ALTER TABLE `category`
  MODIFY `id` bigint(20) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=61;

--
-- AUTO_INCREMENT for table `product_images`
--
ALTER TABLE `product_images`
  MODIFY `id` bigint(20) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `product_mst`
--
ALTER TABLE `product_mst`
  MODIFY `id` bigint(20) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `users`
--
ALTER TABLE `users`
  MODIFY `id` bigint(20) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;
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 */;
