text: -- phpMyAdmin SQL Dump
  -- version 4.5.1
  -- http://www.phpmyadmin.net
  --
  -- Host: 127.0.0.1
  -- Generation Time: Jul 04, 2016 at 10:00 AM
  -- Server version: 10.1.13-MariaDB
  -- PHP Version: 5.6.23
  
  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: `notebook`
  --
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `page_note`
  --
  
  CREATE TABLE `page_note` (
    `id` int(10) UNSIGNED NOT NULL,
    `page_id` int(10) UNSIGNED NOT NULL,
    `note_id` int(10) UNSIGNED NOT NULL,
    `created_at` timestamp NULL DEFAULT NULL,
    `updated_at` timestamp NULL DEFAULT NULL
  ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
  
  --
  -- Dumping data for table `page_note`
  --
  
  INSERT INTO `page_note` (`id`, `page_id`, `note_id`, `created_at`, `updated_at`) VALUES
  (1, 8, 18, NULL, NULL);
  
  --
  -- Indexes for dumped tables
  --
  
  --
  -- Indexes for table `page_note`
  --
  ALTER TABLE `page_note`
    ADD PRIMARY KEY (`id`),
    ADD KEY `page_note_page_id_foreign` (`page_id`),
    ADD KEY `note_id` (`note_id`);
  
  --
  -- AUTO_INCREMENT for dumped tables
  --
  
  --
  -- AUTO_INCREMENT for table `page_note`
  --
  ALTER TABLE `page_note`
    MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;
  --
  -- Constraints for dumped tables
  --
  
  --
  -- Constraints for table `page_note`
  --
  ALTER TABLE `page_note`
    ADD CONSTRAINT `page_note_ibfk_1` FOREIGN KEY (`note_id`) REFERENCES `notes` (`id`),
    ADD CONSTRAINT `page_note_page_id_foreign` FOREIGN KEY (`page_id`) REFERENCES `pages` (`id`);
  
  /*!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 */;
  