diff --git a/ppl2(new).sql b/ppl2(new).sql new file mode 100644 index 0000000000000000000000000000000000000000..14a943ee29d2ba39077c3c185bf864bc564da817 --- /dev/null +++ b/ppl2(new).sql @@ -0,0 +1,306 @@ +-- phpMyAdmin SQL Dump +-- version 4.3.11 +-- http://www.phpmyadmin.net +-- +-- Host: 127.0.0.1 +-- Generation Time: May 16, 2016 at 06:48 PM +-- Server version: 5.6.24 +-- PHP Version: 5.6.8 + +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 utf8 */; + +-- +-- Database: `ppl2` +-- + +-- -------------------------------------------------------- + +-- +-- Table structure for table `informals` +-- +-- Creation: May 16, 2016 at 04:40 PM +-- + +CREATE TABLE IF NOT EXISTS `informals` ( + `id` int(11) NOT NULL DEFAULT '0', + `nip` varchar(20) NOT NULL, + `id_institusi` int(11) NOT NULL, + `keahlian` varchar(140) NOT NULL, + `no_ijazah` varchar(30) NOT NULL, + `tahun` year(4) NOT NULL, + `durasi` int(11) NOT NULL, + `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, + `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', + `ip` varchar(255) NOT NULL +) ENGINE=InnoDB DEFAULT CHARSET=latin1; + +-- +-- RELATIONS FOR TABLE `informals`: +-- `id_institusi` +-- `institusi` -> `id_institusi` +-- + +-- -------------------------------------------------------- + +-- +-- Table structure for table `institusi` +-- +-- Creation: May 16, 2016 at 04:42 PM +-- + +CREATE TABLE IF NOT EXISTS `institusi` ( + `id_institusi` int(11) NOT NULL, + `nama_institusi` varchar(255) NOT NULL, + `alamat_institusi` varchar(255) NOT NULL, + `email_institusi` varchar(255) NOT NULL, + `notelp_institusi` varchar(255) NOT NULL, + `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, + `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', + `ip` varchar(255) NOT NULL +) ENGINE=InnoDB DEFAULT CHARSET=latin1; + +-- +-- RELATIONS FOR TABLE `institusi`: +-- + +-- -------------------------------------------------------- + +-- +-- Table structure for table `migrations` +-- +-- Creation: May 16, 2016 at 12:10 PM +-- + +CREATE TABLE IF NOT EXISTS `migrations` ( + `migration` varchar(255) COLLATE utf8_unicode_ci NOT NULL, + `batch` int(11) NOT NULL +) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; + +-- +-- RELATIONS FOR TABLE `migrations`: +-- + +-- +-- 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_04_04_173639_non_formal', 2); + +-- -------------------------------------------------------- + +-- +-- Table structure for table `password_resets` +-- +-- Creation: May 16, 2016 at 12:10 PM +-- + +CREATE TABLE IF NOT EXISTS `password_resets` ( + `email` varchar(255) COLLATE utf8_unicode_ci NOT NULL, + `token` varchar(255) COLLATE utf8_unicode_ci NOT NULL, + `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, + `updated_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP +) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; + +-- +-- RELATIONS FOR TABLE `password_resets`: +-- + +-- -------------------------------------------------------- + +-- +-- Table structure for table `pelatihan` +-- +-- Creation: May 16, 2016 at 04:31 PM +-- + +CREATE TABLE IF NOT EXISTS `pelatihan` ( + `id_jadwal` int(11) NOT NULL, + `id_institusi` int(11) NOT NULL, + `keahlian` varchar(140) NOT NULL, + `durasi_ijazah` int(11) NOT NULL, + `tanggal` date NOT NULL, + `jam` time NOT NULL, + `tempat` varchar(50) NOT NULL, + `kapasitas` int(5) NOT NULL, + `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, + `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', + `ip` varchar(255) NOT NULL +) ENGINE=InnoDB DEFAULT CHARSET=latin1; + +-- +-- RELATIONS FOR TABLE `pelatihan`: +-- `id_institusi` +-- `institusi` -> `id_institusi` +-- + +-- -------------------------------------------------------- + +-- +-- Table structure for table `pendaftaran_pelatihan` +-- +-- Creation: May 16, 2016 at 04:32 PM +-- + +CREATE TABLE IF NOT EXISTS `pendaftaran_pelatihan` ( + `id_pendaftaran` int(11) NOT NULL, + `id_jadwal` int(11) NOT NULL, + `nip` varchar(20) NOT NULL, + `email` varchar(50) NOT NULL, + `no_ijazah` varchar(30) NOT NULL, + `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, + `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', + `ip` varchar(255) NOT NULL +) ENGINE=InnoDB DEFAULT CHARSET=latin1; + +-- +-- RELATIONS FOR TABLE `pendaftaran_pelatihan`: +-- `id_jadwal` +-- `pelatihan` -> `id_jadwal` +-- + +-- -------------------------------------------------------- + +-- +-- Table structure for table `pendidikan_formal` +-- +-- Creation: May 16, 2016 at 04:36 PM +-- + +CREATE TABLE IF NOT EXISTS `pendidikan_formal` ( + `id` int(11) NOT NULL, + `nip` varchar(20) NOT NULL, + `id_institusi` int(11) NOT NULL, + `tingkatan` varchar(20) NOT NULL, + `gelar` varchar(10) NOT NULL, + `jurusan` varchar(140) NOT NULL, + `no_ijazah` varchar(30) NOT NULL, + `tahun` year(4) NOT NULL, + `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, + `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', + `ip` varchar(255) NOT NULL +) ENGINE=InnoDB DEFAULT CHARSET=latin1; + +-- +-- RELATIONS FOR TABLE `pendidikan_formal`: +-- `id_institusi` +-- `institusi` -> `id_institusi` +-- + +-- -------------------------------------------------------- + +-- +-- Table structure for table `users` +-- +-- Creation: May 16, 2016 at 12:10 PM +-- + +CREATE TABLE IF NOT EXISTS `users` ( + `id` int(10) unsigned NOT NULL, + `name` varchar(255) COLLATE utf8_unicode_ci NOT NULL, + `email` varchar(255) COLLATE utf8_unicode_ci NOT NULL, + `password` 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; + +-- +-- RELATIONS FOR TABLE `users`: +-- + +-- +-- Indexes for dumped tables +-- + +-- +-- Indexes for table `informals` +-- +ALTER TABLE `informals` + ADD PRIMARY KEY (`id`), ADD KEY `id_institusi` (`id_institusi`); + +-- +-- Indexes for table `institusi` +-- +ALTER TABLE `institusi` + ADD PRIMARY KEY (`id_institusi`); + +-- +-- Indexes for table `password_resets` +-- +ALTER TABLE `password_resets` + ADD PRIMARY KEY (`email`,`token`), ADD KEY `password_resets_email_index` (`email`), ADD KEY `password_resets_token_index` (`token`); + +-- +-- Indexes for table `pelatihan` +-- +ALTER TABLE `pelatihan` + ADD PRIMARY KEY (`id_jadwal`), ADD KEY `id_institusi` (`id_institusi`); + +-- +-- Indexes for table `pendaftaran_pelatihan` +-- +ALTER TABLE `pendaftaran_pelatihan` + ADD PRIMARY KEY (`id_pendaftaran`), ADD KEY `id_jadwal` (`id_jadwal`); + +-- +-- Indexes for table `pendidikan_formal` +-- +ALTER TABLE `pendidikan_formal` + ADD PRIMARY KEY (`id`), ADD KEY `id_institusi` (`id_institusi`); + +-- +-- Indexes for table `users` +-- +ALTER TABLE `users` + ADD PRIMARY KEY (`id`), ADD UNIQUE KEY `users_email_unique` (`email`); + +-- +-- AUTO_INCREMENT for dumped tables +-- + +-- +-- AUTO_INCREMENT for table `users` +-- +ALTER TABLE `users` + MODIFY `id` int(10) unsigned NOT NULL AUTO_INCREMENT; +-- +-- Constraints for dumped tables +-- + +-- +-- Constraints for table `informals` +-- +ALTER TABLE `informals` +ADD CONSTRAINT `informals_ibfk_1` FOREIGN KEY (`id_institusi`) REFERENCES `institusi` (`id_institusi`); + +-- +-- Constraints for table `pelatihan` +-- +ALTER TABLE `pelatihan` +ADD CONSTRAINT `pelatihan_ibfk_1` FOREIGN KEY (`id_institusi`) REFERENCES `institusi` (`id_institusi`); + +-- +-- Constraints for table `pendaftaran_pelatihan` +-- +ALTER TABLE `pendaftaran_pelatihan` +ADD CONSTRAINT `pendaftaran_pelatihan_ibfk_1` FOREIGN KEY (`id_jadwal`) REFERENCES `pelatihan` (`id_jadwal`); + +-- +-- Constraints for table `pendidikan_formal` +-- +ALTER TABLE `pendidikan_formal` +ADD CONSTRAINT `pendidikan_formal_ibfk_1` FOREIGN KEY (`id_institusi`) REFERENCES `institusi` (`id_institusi`); + +/*!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 */;