text: -- phpMyAdmin SQL Dump
  -- version 4.8.4
  -- https://www.phpmyadmin.net/
  --
  -- Host: 127.0.0.1
  -- Generation Time: Jan 14, 2019 at 10:26 AM
  -- Server version: 10.1.37-MariaDB
  -- PHP Version: 7.3.0
  
  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: `humas`
  --
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `detail_post`
  --
  
  CREATE TABLE `detail_post` (
    `id_detail` int(11) NOT NULL,
    `id_post` int(11) NOT NULL,
    `id_image` int(11) NOT NULL
  ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `images`
  --
  
  CREATE TABLE `images` (
    `id_image` int(11) NOT NULL,
    `nama` varchar(200) NOT NULL,
    `image` blob NOT NULL
  ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `jenis_post`
  --
  
  CREATE TABLE `jenis_post` (
    `id_jenis` int(11) NOT NULL,
    `nama` varchar(500) NOT NULL
  ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `post`
  --
  
  CREATE TABLE `post` (
    `id_post` int(11) NOT NULL,
    `judul_berita` varchar(500) NOT NULL,
    `content_berita` varchar(60000) NOT NULL,
    `tanggal_berita` date NOT NULL,
    `id_jenis` int(20) NOT NULL
  ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
  
  --
  -- Indexes for dumped tables
  --
  
  --
  -- Indexes for table `detail_post`
  --
  ALTER TABLE `detail_post`
    ADD PRIMARY KEY (`id_detail`),
    ADD KEY `id_post` (`id_post`),
    ADD KEY `id_image` (`id_image`);
  
  --
  -- Indexes for table `images`
  --
  ALTER TABLE `images`
    ADD PRIMARY KEY (`id_image`);
  
  --
  -- Indexes for table `jenis_post`
  --
  ALTER TABLE `jenis_post`
    ADD PRIMARY KEY (`id_jenis`);
  
  --
  -- Indexes for table `post`
  --
  ALTER TABLE `post`
    ADD PRIMARY KEY (`id_post`),
    ADD KEY `id_jenis` (`id_jenis`);
  
  --
  -- AUTO_INCREMENT for dumped tables
  --
  
  --
  -- AUTO_INCREMENT for table `detail_post`
  --
  ALTER TABLE `detail_post`
    MODIFY `id_detail` int(11) NOT NULL AUTO_INCREMENT;
  
  --
  -- AUTO_INCREMENT for table `images`
  --
  ALTER TABLE `images`
    MODIFY `id_image` int(11) NOT NULL AUTO_INCREMENT;
  
  --
  -- AUTO_INCREMENT for table `jenis_post`
  --
  ALTER TABLE `jenis_post`
    MODIFY `id_jenis` int(11) NOT NULL AUTO_INCREMENT;
  
  --
  -- AUTO_INCREMENT for table `post`
  --
  ALTER TABLE `post`
    MODIFY `id_post` int(11) NOT NULL AUTO_INCREMENT;
  
  --
  -- Constraints for dumped tables
  --
  
  --
  -- Constraints for table `detail_post`
  --
  ALTER TABLE `detail_post`
    ADD CONSTRAINT `detail_post_ibfk_1` FOREIGN KEY (`id_post`) REFERENCES `post` (`id_post`),
    ADD CONSTRAINT `detail_post_ibfk_2` FOREIGN KEY (`id_image`) REFERENCES `images` (`id_image`);
  
  --
  -- Constraints for table `post`
  --
  ALTER TABLE `post`
    ADD CONSTRAINT `post_ibfk_1` FOREIGN KEY (`id_jenis`) REFERENCES `jenis_post` (`id_jenis`);
  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 */;
  