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

START TRANSACTION;



--
-- Database: `store`
--
CREATE DATABASE IF NOT EXISTS `store` DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
USE `store`;

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

--
-- Table structure for table `products`
--

CREATE TABLE `products` (
  `productID` int(10) UNSIGNED NOT NULL,
  `productCode` char(3) NOT NULL DEFAULT '',
  `name` varchar(30) NOT NULL DEFAULT '',
  `quantity` int(10) UNSIGNED NOT NULL DEFAULT 0,
  `price` decimal(7,2) NOT NULL DEFAULT 99999.99
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `products`
--

INSERT INTO `products` (`productID`, `productCode`, `name`, `quantity`, `price`) VALUES
(1, 'MBL', 'Apple iPhone XS', 650, '799.00'),
(2, 'MBL', 'Google Pixel 4', 600, '799.00'),
(3, 'CON', 'Nintendo Switch', 200, '199.00'),
(4, 'CON', 'Xbox One S', 600, '299.00'),
(5, 'CPT', 'ChromeBook 200', 500, '350.00'),
(6, 'CPT', 'Mackbook Pro', 250, '1500.00');

--
-- Indexes for dumped tables
--

--
-- Indexes for table `products`
--
ALTER TABLE `products`
  ADD PRIMARY KEY (`productID`);

--
-- AUTO_INCREMENT for dumped tables
--

--
-- AUTO_INCREMENT for table `products`
--
ALTER TABLE `products`
  MODIFY `productID` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=7;
COMMIT;

