text: -- phpMyAdmin SQL Dump
  -- version 4.8.5
  -- https://www.phpmyadmin.net/
  --
  -- Host: 127.0.0.1
  -- Generation Time: Aug 13, 2019 at 02:13 AM
  -- Server version: 10.1.38-MariaDB
  -- PHP Version: 7.1.28
  
  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: `sib`
  --
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `categories`
  --
  
  CREATE TABLE `categories` (
    `category_id` int(11) NOT NULL,
    `name` varchar(225) NOT NULL
  ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
  
  --
  -- Dumping data for table `categories`
  --
  
  INSERT INTO `categories` (`category_id`, `name`) VALUES
  (1, 'Billboard'),
  (2, 'Neon Sign'),
  (3, 'Megatron');
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `foto_reklame`
  --
  
  CREATE TABLE `foto_reklame` (
    `id_foto` int(10) NOT NULL,
    `id_reklame` int(10) NOT NULL,
    `foto` varchar(500) NOT NULL,
    `keterangan` varchar(4000) NOT NULL
  ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
  
  --
  -- Dumping data for table `foto_reklame`
  --
  
  INSERT INTO `foto_reklame` (`id_foto`, `id_reklame`, `foto`, `keterangan`) VALUES
  (1, 2, '1556481593.png', 'Coba 1'),
  (2, 2, '1556481604.png', 'Coba 2'),
  (3, 2, '1556481613.png', 'Coba 3'),
  (4, 1, '1556566538.png', 'Foto 1'),
  (5, 1, '1556566724.png', 'aaa'),
  (6, 8, '1562759997.png', 'Cek'),
  (7, 8, '1563656197.png', 'coba2');
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `reklame`
  --
  
  CREATE TABLE `reklame` (
    `ID` int(11) NOT NULL,
    `id_user` int(11) NOT NULL,
    `name` varchar(75) DEFAULT NULL,
    `price` bigint(20) NOT NULL,
    `latitude` varchar(100) DEFAULT NULL,
    `longitude` varchar(100) DEFAULT NULL,
    `address` text,
    `photo` varchar(250) DEFAULT NULL,
    `amenities` text,
    `description` text,
    `jenis_media` varchar(50) NOT NULL,
    `orientasi` varchar(50) NOT NULL,
    `ukuran` varchar(50) NOT NULL,
    `position` varchar(50) NOT NULL,
    `lighting` varchar(50) NOT NULL,
    `link` varchar(1000) NOT NULL,
    `status` varchar(50) DEFAULT NULL
  ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
  
  --
  -- Dumping data for table `reklame`
  --
  
  INSERT INTO `reklame` (`ID`, `id_user`, `name`, `price`, `latitude`, `longitude`, `address`, `photo`, `amenities`, `description`, `jenis_media`, `orientasi`, `ukuran`, `position`, `lighting`, `link`, `status`) VALUES
  (1, 0, 'INI BILLBOARD', 75000000, '-6.8811060540771285', '107.54166982158199', 'Cek Alamat', 'billboard1.png', 'Full Service, Pantau CCTV', 'Cek Deskripsi', 'Billboard', 'Horizontal', '5 x 10 Meter', 'Stand Alone', 'Frontlight', 'http://facebook.com/dmons02', 'Tersedia'),
  (2, 0, 'DB-042', 35000000, '-6.893111', '107.558262', 'Billboard di Jl. Raya Jenderal H. Amir Machmud No.273, Cigugur Tengah, Cimahi Tengah, Kota Cimahi, Jawa Barat 40522, Indonesia', 'Cimindi.png', 'Full Service, Pantau CCTV', 'Ukuran : 4 X 8  Meter, Posisition : Stand Alone , Lighting : Frontlight  , Orientasi Horizontal', 'Billboard', 'Vertical', '16 x 8 Meter', 'Stand Alone', 'Frontlight', 'http://google.com', 'Tidak Tersedia'),
  (3, 0, 'Coba Ketiga', 100000000, '-6.87599328004541', '107.54269978984371', 'Alamatnya berada di jati pokoknyamah', 'billboard2.png', 'Full Service, Pantau CCTV', 'Ini deskripsinya pokoknya terserah mau isi apa juga', 'Megatron', 'Vertial', '4 x 10 Meter', 'Frontlight', 'Stand Alone', 'http://facebook.com/dmons02', 'Tersedia'),
  (5, 0, 'CEK KE LIMA 5', 75000000, '-6.877697544171006', '107.54149816020504', 'ALAMAT BLA BLA BLA', 'bikin-ngiler-ini-gaji-magang-di-perusahaan-teknologi-raksasa.png', 'Full Service, Pantau CCTV, Lokasi Ramai', 'DESKRIPSI BLA BLA', 'Billboard', 'Vertical', '4 x 10 Meter', 'Frontlight', 'Stand Alone', 'http://facebook.com/dmons02', 'Tidak Tersedia'),
  (6, 8, 'PT. Reklame Iklan', 75000000, '-6.873948155025596', '107.51523396953121', 'Alamat lengkap woow', 'Screenshot_4.png', 'Full Service', 'Deskripsi', 'Billboard', 'Vertical', '4 x 10 Meter', 'Frontlight', 'Bridge', 'http://facebook.com/dmons02', 'Tersedia'),
  (7, 7, 'CEK KE LIMA 6', 5000000, '-6.869176162427446', '107.50768086894527', 'adsadsada', 'SIB.png', 'Full Service, Pantau CCTV', 'wqeqwewqeweqweqw', 'Neon Sign', 'Vertical', '4 x 10 Meter', 'Frontlight', 'Bridge', 'http://facebook.com/dmons02', 'Tersedia'),
  (8, 7, 'Coba', 100000, '-6.8736073', '107.53772212578122', 'Cimahi', 'billboard13.png', 'Full Service', 'Tes', 'Billboard', 'Horizontal', '4 x 10 Meter', 'Bridge', 'LED', 'http://facebook.com/dmons02', 'Tersedia');
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `reklamecategories`
  --
  
  CREATE TABLE `reklamecategories` (
    `reklamecategories_id` int(11) NOT NULL,
    `reklame_id` int(11) NOT NULL,
    `category_id` int(11) NOT NULL
  ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
  
  --
  -- Dumping data for table `reklamecategories`
  --
  
  INSERT INTO `reklamecategories` (`reklamecategories_id`, `reklame_id`, `category_id`) VALUES
  (1, 1, 1),
  (8, 2, 3),
  (9, 2, 3),
  (10, 2, 1),
  (11, 2, 2),
  (12, 2, 3),
  (13, 4, 1),
  (14, 4, 2);
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `tbl_order`
  --
  
  CREATE TABLE `tbl_order` (
    `no_invoice` varchar(15) NOT NULL,
    `id_user` int(11) NOT NULL,
    `id_reklame` int(11) NOT NULL,
    `perusahaan_id` int(11) NOT NULL,
    `description` text NOT NULL,
    `photo_order` varchar(250) NOT NULL,
    `status_order` varchar(2) NOT NULL,
    `tgl_acc` varchar(50) NOT NULL,
    `tanggal` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP
  ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
  
  --
  -- Dumping data for table `tbl_order`
  --
  
  INSERT INTO `tbl_order` (`no_invoice`, `id_user`, `id_reklame`, `perusahaan_id`, `description`, `photo_order`, `status_order`, `tgl_acc`, `tanggal`) VALUES
  ('0308190001', 6, 1, 5, 'dsadasd', 'billboard11.png', '0', '', '2019-08-03 16:51:04'),
  ('0607190004', 8, 1, 6, 'vik', 'Screenshot_43.png', '0', '', '2019-07-31 09:01:32'),
  ('1406190001', 2, 5, 6, 'Mantuls pokokkna', 'visi_dan_misi.jpg', '1', '', '2019-07-31 09:01:43'),
  ('1507190001', 1, 1, 6, 'adsadsada', 'billboard2.png', '1', '', '2019-07-24 17:13:54'),
  ('2207190001', 6, 1, 6, 'Cek yang sudah memiliki id perusahaan', 'Cimindi.png', '1', '', '2019-07-29 17:47:58'),
  ('2207190002', 6, 1, 6, 'okokok', '', '1', '', '2019-04-29 17:48:06'),
  ('2207190003', 6, 1, 6, 'dasdsadsa', 'Screenshot_44.png', '1', '', '2019-05-29 17:48:04'),
  ('2207190004', 6, 1, 4, 'dasdasd', 'billboard21.png', '1', '', '2019-06-29 17:48:00'),
  ('2207190005', 6, 1, 4, 'dasdasdsad', 'b143_4-512.png', '1', '', '2019-05-29 17:48:03'),
  ('2207190006', 11, 1, 6, 'PT Nurjaman', 'billboard22.png', '1', '', '2019-03-29 17:48:09'),
  ('2406190001', 2, 1, 6, 'saya akan iklan tentang jarum black', 'Screenshot_15.png', '1', '', '2019-02-24 17:13:38'),
  ('3105190002', 2, 1, 6, 'Bangkong', 'Virtual-internship-1024x682.png', '1', '', '2019-07-24 17:13:51');
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `tbl_perusahaan`
  --
  
  CREATE TABLE `tbl_perusahaan` (
    `id_perusahaan` int(11) NOT NULL,
    `id_user` int(11) NOT NULL,
    `nm_perusahaan` varchar(50) NOT NULL,
    `jabatan_perusahaan` varchar(50) NOT NULL,
    `direktur_perusahaan` varchar(50) NOT NULL,
    `kontak_perusahaan` varchar(50) NOT NULL,
    `mobile_perusahaan` varchar(20) NOT NULL,
    `fax_perusahaan` varchar(50) NOT NULL,
    `alamat_perusahaan` varchar(250) NOT NULL,
    `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
    `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00'
  ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
  
  --
  -- Dumping data for table `tbl_perusahaan`
  --
  
  INSERT INTO `tbl_perusahaan` (`id_perusahaan`, `id_user`, `nm_perusahaan`, `jabatan_perusahaan`, `direktur_perusahaan`, `kontak_perusahaan`, `mobile_perusahaan`, `fax_perusahaan`, `alamat_perusahaan`, `created_at`, `updated_at`) VALUES
  (1, 8, 'Tes', 'dasdas', 'asdsad', 'dasd', 'asd', 'asda', 'dasda', '2019-07-02 17:57:58', '0000-00-00 00:00:00'),
  (4, 6, 'doqwkdpoqkod', 'kpokdpokwpokdw', 'opkdp', 'wok', 'wdkp', 'dwkp', 'wkdpo', '2019-07-21 21:45:48', '0000-00-00 00:00:00'),
  (5, 6, 'PT. Nurjaman', 'Jabatan Nurjaman', 'Nama Direktur d', 'Dadang Sutisna', '022-89672255', '(0516) 21510', 'Alamatnya lengkap weh', '2019-07-21 21:46:30', '0000-00-00 00:00:00'),
  (6, 11, 'PT. Nurjaman', 'Jabatan Nurjaman', 'Nama Direktur', 'Dadang Sutisna', '022-89672255', '(0516) 21510', 'Alamatnya lengkap weh', '2019-07-22 16:33:07', '0000-00-00 00:00:00');
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `tbl_reset_password`
  --
  
  CREATE TABLE `tbl_reset_password` (
    `id` bigint(20) NOT NULL,
    `email` varchar(128) NOT NULL,
    `activation_id` varchar(32) NOT NULL,
    `agent` varchar(512) NOT NULL,
    `client_ip` varchar(32) NOT NULL,
    `isDeleted` tinyint(4) NOT NULL DEFAULT '0',
    `createdBy` bigint(20) NOT NULL DEFAULT '1',
    `createdDtm` datetime NOT NULL,
    `updateBy` bigint(20) DEFAULT NULL,
    `updateDtm` datetime DEFAULT NULL
  ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `users`
  --
  
  CREATE TABLE `users` (
    `userId` int(50) NOT NULL,
    `fullname` varchar(50) DEFAULT NULL,
    `kota` varchar(100) DEFAULT NULL,
    `kode_pos` varchar(20) NOT NULL,
    `alamat` varchar(250) NOT NULL,
    `mobile` varchar(20) DEFAULT NULL,
    `username` varchar(50) NOT NULL,
    `email` varchar(128) NOT NULL COMMENT 'login email',
    `password` varchar(128) NOT NULL COMMENT 'hashed login password',
    `reset_password` varchar(128) NOT NULL,
    `status_aktif` int(1) DEFAULT '1',
    `role` varchar(50) NOT NULL,
    `photo_profile` varchar(250) DEFAULT NULL,
    `photo_npwp` varchar(250) DEFAULT NULL,
    `photo_sppkp` varchar(250) DEFAULT NULL,
    `photo_siup` varchar(250) DEFAULT NULL,
    `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
    `updated_at` timestamp NULL DEFAULT NULL
  ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
  
  --
  -- Dumping data for table `users`
  --
  
  INSERT INTO `users` (`userId`, `fullname`, `kota`, `kode_pos`, `alamat`, `mobile`, `username`, `email`, `password`, `reset_password`, `status_aktif`, `role`, `photo_profile`, `photo_npwp`, `photo_sppkp`, `photo_siup`, `created_at`, `updated_at`) VALUES
  (3, 'Tes Penyewa', '', '', '', '0852159185', 'tester', 'testes@gmail.com', '$2y$10$JUaLtr5STNqnwXRg7wd3O.Xx6sWf.J2HiGFTFx/923VpT1s9atK8y', 'sz7TIv4xYR3iDQWgoXFwu0EV8NKtSBMclfUqb2mjyhHnG6LPA5', 1, 'Penyewa', NULL, '', '', '', '2019-07-01 20:12:43', NULL),
  (5, 'Tes Pemilik Media', '', '', '', '0893123213', 'Nurjaman', 'nurjaman@admin.com', '$2y$10$6/iaK7PS7X9xG.Jf1LB//est0/cu5frKcRafcqHymvot7R9yxexOC', '', 1, 'Pemilik Media', 'cimahi-slide-1.png', '', '', '', '2019-07-01 20:12:43', NULL),
  (6, 'Penyewa', '', '', '', '089672255644', 'Penyewa', 'penyewa@sib.com', '$2y$10$IFmdxn9P7QUeRxy3OGetvugXYmi40K8scXSkQZz5Ogph0Ki5/9oDW', '', 1, 'Penyewa', 'visi_dan_misi6.jpg', '', '', '', '2019-07-01 20:12:43', NULL),
  (7, 'Pemilik', '', '', '', '089672255644', 'Pemilik Media', 'pemilik@sib.com', '$2y$10$Lf6IUE9XTc7zoZZZnwDog.XVHUwRGOeTMnM89uMWR8SIvHinMB/qe', '', 1, 'Pemilik Media', 'visi_dan_misi7.jpg', 'bikin-ngiler-ini-gaji-magang-di-perusahaan-teknologi-raksasa1.png', 'Cimindi.png', '', '2019-07-01 20:12:43', NULL),
  (8, 'Admin Coba 12356', 'Cimahi 12345', '40513', '    Test Admin                                                                                   ', '089672255644', 'admin02', 'admin@sib.com', '$2y$10$Lf6IUE9XTc7zoZZZnwDog.XVHUwRGOeTMnM89uMWR8SIvHinMB/qe', '', 1, 'Admin', 'billTag.png', 'billboard2.png', 'cimahi-slide-1.png', NULL, '2019-07-01 20:12:43', NULL),
  (9, 'Syam Ardy', 'uyuyua123123', 'dsadsa', '  dasdas  ', '0896723173615dasda', 'Syam', 'syam@sib.com', '$2y$10$WyzToYpuHgvxn.v3V6cD.OzC3y0698CRZRU94CijoMymEx7LLUeOq', '', 1, 'Penyewa', 'bikin-ngiler-ini-gaji-magang-di-perusahaan-teknologi-raksasa.png', 'Cimindi6.png', 'program-1-magang1.png', 'Virtual-internship-1024x6829.png', '2019-07-10 11:24:36', NULL),
  (10, 'Nurjaman', '', '', '  ', '', 'das', 'nurjaman@sib.com', '$2y$10$ncH3KPwoXINEugi7y6zVCuCfkoobGz3Mj2ryv0ZfKrWWxjuDMrXQa', '', 1, 'Admin', NULL, NULL, NULL, NULL, '2019-07-15 19:35:34', NULL),
  (11, 'Admin Coba', NULL, '', '', '628957129381', 'tes', 'nurzaman02@gmail.com', '$2y$10$I2PxKtLVYH/eu49bwj9wMeSn.bABjhsstZd6erMEyRwW3MHihu6RS', 'JT7ovzPeAcL56Ojrf03i1ME94lUnSCtdGDyFwka2gZxKXVbuNh', 1, 'Penyewa', NULL, NULL, NULL, NULL, '2019-07-15 19:38:18', NULL),
  (12, NULL, NULL, '', '', '089672255644', 'coba', 'coba23@sib.com', '$2y$10$dotQR7vf9FEZNFtpGAGNreoZAPdFVDzIb0ro6Up6A1Mxm6q7Ctkj.', '', 1, 'Penyewa', NULL, NULL, NULL, NULL, '2019-08-01 20:26:43', NULL),
  (13, 'bambang 23', '', '', '    ', '089672255644', 'bambang02', 'bambang@sib.com', '$2y$10$rB7lZ1wmWcQh8nz4pCib7.iMZ2KaPNyhy8cOeoMGUUNwItCX1.R8S', '', 1, 'Penyewa', NULL, NULL, NULL, NULL, '2019-08-12 10:19:49', NULL);
  
  --
  -- Indexes for dumped tables
  --
  
  --
  -- Indexes for table `categories`
  --
  ALTER TABLE `categories`
    ADD PRIMARY KEY (`category_id`);
  
  --
  -- Indexes for table `foto_reklame`
  --
  ALTER TABLE `foto_reklame`
    ADD PRIMARY KEY (`id_foto`);
  
  --
  -- Indexes for table `reklame`
  --
  ALTER TABLE `reklame`
    ADD PRIMARY KEY (`ID`);
  
  --
  -- Indexes for table `reklamecategories`
  --
  ALTER TABLE `reklamecategories`
    ADD PRIMARY KEY (`reklamecategories_id`);
  
  --
  -- Indexes for table `tbl_order`
  --
  ALTER TABLE `tbl_order`
    ADD PRIMARY KEY (`no_invoice`,`id_user`,`id_reklame`,`perusahaan_id`);
  
  --
  -- Indexes for table `tbl_perusahaan`
  --
  ALTER TABLE `tbl_perusahaan`
    ADD PRIMARY KEY (`id_perusahaan`);
  
  --
  -- Indexes for table `tbl_reset_password`
  --
  ALTER TABLE `tbl_reset_password`
    ADD PRIMARY KEY (`id`);
  
  --
  -- Indexes for table `users`
  --
  ALTER TABLE `users`
    ADD PRIMARY KEY (`userId`);
  
  --
  -- AUTO_INCREMENT for dumped tables
  --
  
  --
  -- AUTO_INCREMENT for table `categories`
  --
  ALTER TABLE `categories`
    MODIFY `category_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;
  
  --
  -- AUTO_INCREMENT for table `foto_reklame`
  --
  ALTER TABLE `foto_reklame`
    MODIFY `id_foto` int(10) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=8;
  
  --
  -- AUTO_INCREMENT for table `reklame`
  --
  ALTER TABLE `reklame`
    MODIFY `ID` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=10;
  
  --
  -- AUTO_INCREMENT for table `reklamecategories`
  --
  ALTER TABLE `reklamecategories`
    MODIFY `reklamecategories_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=15;
  
  --
  -- AUTO_INCREMENT for table `tbl_perusahaan`
  --
  ALTER TABLE `tbl_perusahaan`
    MODIFY `id_perusahaan` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=7;
  
  --
  -- AUTO_INCREMENT for table `tbl_reset_password`
  --
  ALTER TABLE `tbl_reset_password`
    MODIFY `id` bigint(20) NOT NULL AUTO_INCREMENT;
  
  --
  -- AUTO_INCREMENT for table `users`
  --
  ALTER TABLE `users`
    MODIFY `userId` int(50) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=14;
  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 */;
  