-- phpMyAdmin SQL Dump
-- version 4.5.1
-- http://www.phpmyadmin.net
--
-- Host: 127.0.0.1
-- Generation Time: Apr 18, 2017 at 08:35 AM
-- Server version: 10.1.16-MariaDB
-- PHP Version: 7.0.9

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: `ide_project`
--

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

--
-- Table structure for table `migrations`
--

CREATE TABLE `migrations` (
  `migration` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `batch` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `migrations`
--

INSERT INTO `migrations` (`migration`, `batch`) VALUES
('2014_10_12_000000_create_users_table', 1),
('2014_10_12_100000_create_password_resets_table', 1),
('2016_09_05_042427_buat_table_dosen', 1),
('2016_09_05_082747_buat_tabel_mhs', 1),
('2016_09_06_130023_buat_tabel_mk', 1),
('2016_09_09_030257_buat_tabel_ruang', 1),
('2016_09_09_034324_buat_tabel_jadwal', 1),
('2016_09_11_033152_buat_tabel_thnajaran', 1),
('2016_09_13_054409_buat_tabel_krs', 1),
('2016_09_13_073007_buat_table_krs_detil', 1),
('2016_09_13_073547_buat_tabel_nilai', 1),
('2016_09_15_025204_buat_tabel_bobot', 1),
('2017_01_12_232938_create_books_table', 2),
('2017_01_13_003134_create_seebooks_table', 3),
('2017_01_13_174234_create_upload_tables', 4),
('2017_01_13_191608_create_uploads_tables', 5),
('2017_01_13_191641_create_upload_tables', 5),
('2017_01_19_013901_create_tblMahasiswa_table', 6),
('2017_01_19_014213_drop_tblMahasiswa_table', 7),
('2017_01_19_014425_create_tabelMahasiswa_table', 8),
('2017_03_22_033823_create_customers_table', 9),
('2017_03_24_101625_create_tblPengunjung_table', 10),
('2017_03_25_092628_create_room_tables', 11),
('2017_03_25_102000_create_pay_tables', 12);

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

--
-- Table structure for table `password_resets`
--

CREATE TABLE `password_resets` (
  `email` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `token` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

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

--
-- Table structure for table `tbl_book`
--

CREATE TABLE `tbl_book` (
  `id` int(10) UNSIGNED NOT NULL,
  `nama_buku` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `penulis` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `isbn` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

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

--
-- Table structure for table `tbl_kamar`
--

CREATE TABLE `tbl_kamar` (
  `id` int(10) UNSIGNED NOT NULL,
  `jenis_kamar` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `harga_kamar` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `jumlah_kamar` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `deleted_at` timestamp NULL DEFAULT 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 `tbl_kamar`
--

INSERT INTO `tbl_kamar` (`id`, `jenis_kamar`, `harga_kamar`, `jumlah_kamar`, `deleted_at`, `created_at`, `updated_at`) VALUES
(1, 'VIP', 'Rp.700.000,00', '15', NULL, '2017-03-25 02:44:05', '2017-03-25 02:44:05'),
(2, 'Standart', 'Rp.400.000,00', '10', NULL, '2017-03-25 02:44:28', '2017-03-25 02:44:28'),
(3, 'Ekonomi', 'Rp.200.000,00', '30', NULL, '2017-03-25 02:44:47', '2017-03-25 02:44:47');

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

--
-- Table structure for table `tbl_pegawai`
--

CREATE TABLE `tbl_pegawai` (
  `id` int(10) UNSIGNED NOT NULL,
  `nip` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `nama_pegawai` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `tahun_masuk` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `jabatan` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `user_id` int(11) NOT NULL,
  `deleted_at` timestamp NULL DEFAULT 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 `tbl_pegawai`
--

INSERT INTO `tbl_pegawai` (`id`, `nip`, `nama_pegawai`, `tahun_masuk`, `jabatan`, `user_id`, `deleted_at`, `created_at`, `updated_at`) VALUES
(16, '191919', 'Vedtra Purba', '2016', 'Pegawai', 95, NULL, '2017-03-24 06:22:42', '2017-03-24 06:22:42'),
(17, '13315017', 'Gas', '2016', 'Pegawai', 96, NULL, '2017-03-27 07:13:17', '2017-03-27 07:13:17');

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

--
-- Table structure for table `tbl_pembayaran`
--

CREATE TABLE `tbl_pembayaran` (
  `id` int(10) UNSIGNED NOT NULL,
  `nama` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `jenis_kamar` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `lama` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `harga` varchar(225) COLLATE utf8_unicode_ci NOT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

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

--
-- Table structure for table `tbl_pengunjung`
--

CREATE TABLE `tbl_pengunjung` (
  `id` int(10) UNSIGNED NOT NULL,
  `kode_pemesanan` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `nama` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `jenis_kamar` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `kontak` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `check_in` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `check_out` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `deleted_at` timestamp NULL DEFAULT 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 `tbl_pengunjung`
--

INSERT INTO `tbl_pengunjung` (`id`, `kode_pemesanan`, `nama`, `jenis_kamar`, `kontak`, `check_in`, `check_out`, `deleted_at`, `created_at`, `updated_at`) VALUES
(13, '1', 'asd', 'sadas', 'sadas', 'sdada', 'sdadasddd', NULL, NULL, NULL),
(14, '2', 'adas', 'sadda', 'asddas', 'asdsa', 'asddsa', NULL, NULL, NULL);

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

--
-- Table structure for table `tbl_receptionist`
--

CREATE TABLE `tbl_receptionist` (
  `id` int(10) UNSIGNED NOT NULL,
  `nip` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `nama_receptionist` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `tahun_masuk` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `jabatan` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `user_id` int(11) NOT NULL,
  `deleted_at` timestamp NULL DEFAULT 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 `tbl_receptionist`
--

INSERT INTO `tbl_receptionist` (`id`, `nip`, `nama_receptionist`, `tahun_masuk`, `jabatan`, `user_id`, `deleted_at`, `created_at`, `updated_at`) VALUES
(0, '654321', 'De', '2016', 'Receptionist', 94, NULL, '2017-03-24 05:43:14', '2017-03-24 05:43:14'),
(0, '989898', 'Putri', '2017', 'Receptionist', 97, NULL, '2017-04-04 18:15:11', '2017-04-04 18:15:11'),
(0, '11315027', 'Berta Nainggolan', '2019', 'Receptionist', 98, NULL, '2017-04-11 19:29:24', '2017-04-11 19:29:24');

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

--
-- Table structure for table `upload`
--

CREATE TABLE `upload` (
  `id` int(10) UNSIGNED NOT NULL,
  `nama` varchar(225) COLLATE utf8_unicode_ci NOT NULL,
  `filename` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `mime` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `original_filename` varchar(255) COLLATE utf8_unicode_ci 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 `upload`
--

INSERT INTO `upload` (`id`, `nama`, `filename`, `mime`, `original_filename`, `created_at`, `updated_at`) VALUES
(28, '', 'php1AD2.tmp.pptx', 'application/vnd.openxmlformats-officedocument.presentationml.presentation', 'IF321314-IF421314_W05S01-ClassRelationship Polymorphism.pptx', '2017-01-20 07:03:14', '2017-01-20 07:03:14'),
(29, '', 'php6830.tmp.pptx', 'application/vnd.openxmlformats-officedocument.presentationml.presentation', 'IF321314-IF421314_W06S01-Interface _Abstract Nested_Class.pptx', '2017-01-20 07:09:01', '2017-01-20 07:09:01'),
(30, '', 'php1605.tmp.pptx', 'application/vnd.openxmlformats-officedocument.presentationml.presentation', 'IF321314-IF421314_W07S01-Enum Annotation.pptx', '2017-01-20 11:57:02', '2017-01-20 11:57:02'),
(32, '', 'phpF7FC.tmp.pdf', 'application/pdf', 'PBO_w09s03_ExceptionHandling.pdf', '2017-01-30 13:06:10', '2017-01-30 13:06:10'),
(34, '', 'php752A.tmp.docx', 'application/vnd.openxmlformats-officedocument.wordprocessingml.document', 'Business Intelligence.docx', '2017-01-31 07:20:55', '2017-01-31 07:20:55'),
(36, '', 'php901.tmp.docx', 'application/vnd.openxmlformats-officedocument.wordprocessingml.document', 'Jawaban dari sesi pertanyaan yang dilakukan Kelompok E pada Sesi 1.docx', '2017-01-31 08:00:52', '2017-01-31 08:00:52'),
(37, '', 'phpFD09.tmp.docx', 'application/vnd.openxmlformats-officedocument.wordprocessingml.document', 'Schema.docx', '2017-01-31 08:08:27', '2017-01-31 08:08:27'),
(38, '', 'php6624.tmp.xlsx', 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet', 'Export Data(3).xlsx', '2017-03-21 21:55:35', '2017-03-21 21:55:35'),
(39, '', 'phpC821.tmp.xlsx', 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet', 'book.csv.xlsx', '2017-03-22 01:57:24', '2017-03-22 01:57:24');

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

--
-- Table structure for table `users`
--

CREATE TABLE `users` (
  `id` int(10) UNSIGNED NOT NULL,
  `username` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `avatar` varchar(225) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'default.jpg',
  `password` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `role` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `remember_token` varchar(100) COLLATE utf8_unicode_ci DEFAULT 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 `users`
--

INSERT INTO `users` (`id`, `username`, `avatar`, `password`, `role`, `remember_token`, `created_at`, `updated_at`) VALUES
(1, 'manager', 'default.jpg', '$2y$10$DJ7fzsjErQ9g9g21Rq2jvuGG2xdnjZbTFBW4.NlXIMk0ApI1xZZZC', 'manager', 'ZFCCUW0EA0he0acEncWImdppDqMNxN4uFa5q8wg77nlOPmrV6QuD6rQPIlvR', '2017-01-13 07:06:23', '2017-04-11 19:32:30'),
(94, '654321', 'default.jpg', '$2y$10$9i2Gxa2d8QI43urrIqkHveRWenN/GZsG0yI7W9MbY8p.hGMGVawLO', 'receptionist', 'tO3hQJWE7NUlJsOdWQtU9kS0NbxsRTLR9gxXqzkMVcxVECVNNTT5D8cRdQty', '2017-03-24 05:43:14', '2017-03-25 03:45:24'),
(95, '191919', 'default.jpg', '$2y$10$M6/S/Hr1CWMX/mgsuHwFFuN1s9anFTlsyx70f47HFWBA9A/QpVATm', 'pegawai', 'YF9PhzaDSGPBVBNpLJILXyuWoRo1hVeOvWLjXDrsiwtbNsnghcSfEqOtFoIt', '2017-03-24 06:22:42', '2017-04-09 18:15:30'),
(96, '13315017', 'default.jpg', '$2y$10$l6ZrQjlPdTqIPuvHl0djEOmMo6Oy/C0qqEtzlhHVXIYW7cr8lBir2', 'pegawai', 'tvHYOWWzHDj7JaqqFL8mSYPim9FCv64BeZo6r8p9NxIG9weVxwyQwW7Pdi0j', '2017-03-27 07:13:16', '2017-03-27 07:46:15'),
(97, '989898', 'default.jpg', '$2y$10$0UyEhHHYBeJmHnKj323Iruse8Oc2pwyWecqTUCG2pSkgS5UENN9w2', 'receptionist', 'gcQJsgBHbY3uw2T20F6cCDfveyIzWwbtK0qNVpkn00X8h54KEMwgjB527l3j', '2017-04-04 18:15:11', '2017-04-17 23:34:53'),
(98, '11315027', 'default.jpg', '$2y$10$LHPUSiaAw8vtJQcBCwNxnO6W65o5xpKB39j4RheIb0tgo4VifV2we', 'receptionist', 'sAj6x88rkllAH49P9sxUm6voGXfihNF4ui0znnLio3ibE1TBYuKVH6csnzzX', '2017-04-11 19:29:24', '2017-04-11 19:33:17');

--
-- Indexes for dumped tables
--

--
-- Indexes for table `password_resets`
--
ALTER TABLE `password_resets`
  ADD KEY `password_resets_email_index` (`email`),
  ADD KEY `password_resets_token_index` (`token`);

--
-- Indexes for table `tbl_book`
--
ALTER TABLE `tbl_book`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `tbl_kamar`
--
ALTER TABLE `tbl_kamar`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `tbl_pegawai`
--
ALTER TABLE `tbl_pegawai`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `tbl_pembayaran`
--
ALTER TABLE `tbl_pembayaran`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `tbl_pengunjung`
--
ALTER TABLE `tbl_pengunjung`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `upload`
--
ALTER TABLE `upload`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `users`
--
ALTER TABLE `users`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `users_username_unique` (`username`);

--
-- AUTO_INCREMENT for dumped tables
--

--
-- AUTO_INCREMENT for table `tbl_book`
--
ALTER TABLE `tbl_book`
  MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `tbl_kamar`
--
ALTER TABLE `tbl_kamar`
  MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;
--
-- AUTO_INCREMENT for table `tbl_pegawai`
--
ALTER TABLE `tbl_pegawai`
  MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=18;
--
-- AUTO_INCREMENT for table `tbl_pembayaran`
--
ALTER TABLE `tbl_pembayaran`
  MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `tbl_pengunjung`
--
ALTER TABLE `tbl_pengunjung`
  MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=15;
--
-- AUTO_INCREMENT for table `upload`
--
ALTER TABLE `upload`
  MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=40;
--
-- AUTO_INCREMENT for table `users`
--
ALTER TABLE `users`
  MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=99;
/*!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 */;
