-- --------------------------------------------------------
-- Server OS:                    Win64
-- HeidiSQL Version:             12.3.0.6589
-- --------------------------------------------------------



-- Dumping database structure for drinks_db
CREATE DATABASE IF NOT EXISTS `drinks_db` /*!40100 DEFAULT CHARACTER SET utf8mb4 */;
USE `drinks_db`;

-- Dumping structure for table drinks_db.drinks
CREATE TABLE IF NOT EXISTS `drinks` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `brand_id` int(11) NOT NULL,
  `drink_type` varchar(50) NOT NULL,
  `quantity` tinyint(10) NOT NULL,
  PRIMARY KEY (`id`),
  KEY `drinks_ibfk_1` (`brand_id`),
  CONSTRAINT `drinks_ibfk_1` FOREIGN KEY (`brand_id`) REFERENCES `drink_brands` (`id`) ON DELETE NO ACTION ON UPDATE NO ACTION
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8mb4;

-- Dumping data for table drinks_db.drinks: ~2 rows (approximately)
INSERT INTO `drinks` (`id`, `brand_id`, `drink_type`, `quantity`) VALUES
	(1, 1, 'Whiskey', 19),
	(2, 9, 'Spirit', 19);

-- Dumping structure for table drinks_db.drink_brands
CREATE TABLE IF NOT EXISTS `drink_brands` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `brand_name` varchar(50) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=11 DEFAULT CHARSET=utf8mb4;

-- Dumping data for table drinks_db.drink_brands: ~10 rows (approximately)
INSERT INTO `drink_brands` (`id`, `brand_name`) VALUES
	(1, 'Jack Daniels'),
	(2, 'Bacardi'),
	(3, 'Smirnoff'),
	(4, 'Johnnie Walker'),
	(5, 'Jameson'),
	(6, 'Patron'),
	(7, 'Grey Goose'),
	(8, 'Hennessy'),
	(9, 'Absolut'),
	(10, 'Chivas regal');

