-- phpMyAdmin SQL Dump
-- version 5.1.1deb5ubuntu1
-- https://www.phpmyadmin.net/
--
-- Host: localhost:3306
-- Generation Time: Feb 22, 2023 at 09:01 AM
-- Server version: 8.0.32-0ubuntu0.22.04.2
-- PHP Version: 8.1.2-1ubuntu2.10

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

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

--
-- Table structure for table `manufacturer`
--
create database store charset="utf8mb4";

use store;

CREATE TABLE `manufacturer` (
  `id` int NOT NULL,
  `name` varchar(100) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

--
-- Dumping data for table `manufacturer`
--

INSERT INTO `manufacturer` (`id`, `name`) VALUES
(1, 'paco'),
(2, 'manolo'),
(3, 'francisco'),
(4, 'luis');

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

--
-- Table structure for table `product`
--

CREATE TABLE `product` (
  `id` int NOT NULL,
  `name` varchar(100) NOT NULL,
  `price` double NOT NULL,
  `manufacturer_id` int NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

--
-- Dumping data for table `product`
--

INSERT INTO `product` (`id`, `name`, `price`, `manufacturer_id`) VALUES
(2, 'patinete', 80, 3),
(6, 'movil', 5, 1),
(7, 'ordenador', 10.5, 1),
(8, 'ordenador', 10.5, 1),
(9, 'ordenador', 10.5, 1),
(10, 'ordenador', 10.5, 1),
(11, 'ordenador', 10.5, 1),
(12, 'ordenador', 10.5, 1),
(13, 'ordenador', 10.5, 1),
(14, 'ordenador', 10.5, 1),
(15, 'ordenador', 10.5, 1),
(16, 'ordenador', 10.5, 1),
(17, 'ordenador', 10.5, 1),
(18, 'ordenador', 10.5, 1),
(19, 'ordenador', 10.5, 1),
(21, 'ordenador', 10.5, 1),
(22, 'ordenador', 10.5, 1),
(23, 'ordenador', 10.5, 1),
(24, 'ordenador', 10.5, 1),
(25, 'ordenador', 10.5, 1),
(26, 'ordenador', 10.5, 1),
(27, 'ordenador', 10.5, 1),
(28, 'disco', 5, 4),
(30, 'ordenador', 10.5, 1);

--
-- Indexes for dumped tables
--

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

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

--
-- AUTO_INCREMENT for dumped tables
--

--
-- AUTO_INCREMENT for table `manufacturer`
--
ALTER TABLE `manufacturer`
  MODIFY `id` int NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5;

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