text: -- phpMyAdmin SQL Dump
  -- version 4.8.2
  -- https://www.phpmyadmin.net/
  --
  -- Host: 127.0.0.1
  -- Generation Time: Dec 20, 2019 at 10:34 AM
  -- Server version: 10.1.34-MariaDB
  -- PHP Version: 7.2.7
  
  SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
  SET AUTOCOMMIT = 0;
  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: `test`
  --
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `contacts`
  --
  
  CREATE TABLE `contacts` (
    `id` int(11) NOT NULL,
    `name` varchar(200) NOT NULL,
    `phone` varchar(200) DEFAULT NULL,
    `email` varchar(200) DEFAULT NULL
  ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
  
  --
  -- Dumping data for table `contacts`
  --
  
  INSERT INTO `contacts` (`id`, `name`, `phone`, `email`) VALUES
  (1, 'Test', '123456789', 'test@gmai.com'),
  (2, 'john', '123456789', 'test@gmai.com'),
  (5, 'mhd', '123456789', 'test@gmai.com');
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `contact_groups`
  --
  
  CREATE TABLE `contact_groups` (
    `id` int(11) NOT NULL,
    `group_name` varchar(100) NOT NULL,
    `contact_id` int(11) NOT NULL,
    `temp` varchar(100) NOT NULL
  ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
  
  --
  -- Dumping data for table `contact_groups`
  --
  
  INSERT INTO `contact_groups` (`id`, `group_name`, `contact_id`, `temp`) VALUES
  (1, 'office', 1, ''),
  (2, 'office', 1, '');
  
  --
  -- Indexes for dumped tables
  --
  
  --
  -- Indexes for table `contacts`
  --
  ALTER TABLE `contacts`
    ADD PRIMARY KEY (`id`);
  
  --
  -- Indexes for table `contact_groups`
  --
  ALTER TABLE `contact_groups`
    ADD PRIMARY KEY (`id`),
    ADD KEY `contact_id` (`contact_id`);
  
  --
  -- AUTO_INCREMENT for dumped tables
  --
  
  --
  -- AUTO_INCREMENT for table `contacts`
  --
  ALTER TABLE `contacts`
    MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=11;
  
  --
  -- AUTO_INCREMENT for table `contact_groups`
  --
  ALTER TABLE `contact_groups`
    MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;
  
  --
  -- Constraints for dumped tables
  --
  
  --
  -- Constraints for table `contact_groups`
  --
  ALTER TABLE `contact_groups`
    ADD CONSTRAINT `contact_groups_ibfk_1` FOREIGN KEY (`contact_id`) REFERENCES `contacts` (`id`);
  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 */;
  