-- phpMyAdmin SQL Dump
-- version 4.6.6
-- https://www.phpmyadmin.net/
--
-- Host: localhost
-- Generation Time: Oct 05, 2018 at 11:34 AM
-- Server version: 5.7.17-log
-- PHP Version: 5.6.30

SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
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: `db_food`
--

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

--
-- Table structure for table `food`
--

CREATE TABLE `food` (
  `f_id` int(11) NOT NULL,
  `f_name` text NOT NULL,
  `f_price` float NOT NULL,
  `f_size` text NOT NULL,
  `f_unit` text NOT NULL,
  `t_id` int(11) NOT NULL,
  `f_status` text NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `food`
--

INSERT INTO `food` (`f_id`, `f_name`, `f_price`, `f_size`, `f_unit`, `t_id`, `f_status`) VALUES
(1, 'ซูชิ', 200, 'ใหญ่', 'ถ้วย', 1, 'มี'),
(2, 'เทมปูระ', 300, 'กลาง', 'ถ้วย', 1, 'มี'),
(3, 'ยากิโซบะ', 100, 'เล็ก', 'จาน', 1, 'มี'),
(4, 'ข้าวผัดกระเทียม', 120, 'เล็ก', 'จาน', 1, 'มี'),
(5, 'น้ำแตงโม', 60, 'เล็ก', 'แก้ว', 3, 'มี'),
(6, 'ขนมหวาน', 60, 'เล็ก', 'ถ้วย', 2, 'มี'),
(7, 'ผลไม้', 80, 'กลาง', 'จาน', 4, 'มี'),
(8, 'ราเมง', 100, 'กลาง', 'ชาม', 1, 'มี'),
(9, 'น้ำเปล่า', 20, 'เล็ก', 'ขวด', 3, 'มี'),
(13, 'น้ำส้ม', 80, 'เล็ก', 'แก้ว', 3, 'มี');

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

--
-- Table structure for table `typefood`
--

CREATE TABLE `typefood` (
  `t_id` int(11) NOT NULL,
  `t_name` text NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `typefood`
--

INSERT INTO `typefood` (`t_id`, `t_name`) VALUES
(1, 'อาหารคาว'),
(2, 'อาหารหวาน'),
(3, 'เครื่องดื่ม'),
(10, 'ไอติม');

--
-- Indexes for dumped tables
--

--
-- Indexes for table `food`
--
ALTER TABLE `food`
  ADD PRIMARY KEY (`f_id`);

--
-- Indexes for table `typefood`
--
ALTER TABLE `typefood`
  ADD PRIMARY KEY (`t_id`);

--
-- AUTO_INCREMENT for dumped tables
--

--
-- AUTO_INCREMENT for table `food`
--
ALTER TABLE `food`
  MODIFY `f_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=14;
--
-- AUTO_INCREMENT for table `typefood`
--
ALTER TABLE `typefood`
  MODIFY `t_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=11;
/*!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 */;
