diff --git a/penilaian_performansi.sql b/penilaian_performansi.sql index 69ef5994bb93c45f9298ba67dd8faec78e693343..4e80f35d55bd9be7a6b597e662343ee30dbb7b55 100644 --- a/penilaian_performansi.sql +++ b/penilaian_performansi.sql @@ -1,14 +1,14 @@ -- phpMyAdmin SQL Dump --- version 4.3.11 +-- version 4.2.7.1 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 --- Generation Time: Apr 04, 2016 at 05:27 AM --- Server version: 5.6.24 --- PHP Version: 5.6.8 +-- Generation Time: Apr 04, 2016 at 06:54 AM +-- Server version: 5.6.24-log +-- PHP Version: 5.5.15 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; -SET time_zone = "+00:00"; +SET time_zone = "+07:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; @@ -19,6 +19,9 @@ SET time_zone = "+00:00"; -- -- Database: `penilaian_performansi` -- +CREATE DATABASE IF NOT EXISTS penilaian_performansi; + +USE penilaian_performansi; -- -------------------------------------------------------- @@ -28,7 +31,7 @@ SET time_zone = "+00:00"; CREATE TABLE IF NOT EXISTS `kegiatan` ( `id_skp` int(11) NOT NULL, - `id_kegiatan` int(11) NOT NULL, +`id_kegiatan` int(11) NOT NULL, `deskripsi` text NOT NULL, `target_ak` int(11) NOT NULL, `target_kualitas` int(11) NOT NULL, @@ -41,7 +44,7 @@ CREATE TABLE IF NOT EXISTS `kegiatan` ( `real_biaya` int(11) DEFAULT NULL, `real_waktu` varchar(255) DEFAULT NULL, `nilai_kegiatan` int(11) DEFAULT NULL -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ; -- -------------------------------------------------------- @@ -80,14 +83,14 @@ CREATE TABLE IF NOT EXISTS `pendidikan` ( -- CREATE TABLE IF NOT EXISTS `penilaian` ( - `id_penilaian` int(11) NOT NULL, +`id_penilaian` int(11) NOT NULL, `id_pegawai` varchar(20) NOT NULL, `id_penilai` varchar(20) NOT NULL, `periode` year(4) NOT NULL, `nilai` int(11) DEFAULT NULL, `persetujuan_atasan` tinyint(1) DEFAULT NULL, `persetujuan_pegawai` tinyint(1) DEFAULT NULL -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ; -- -------------------------------------------------------- @@ -97,14 +100,14 @@ CREATE TABLE IF NOT EXISTS `penilaian` ( CREATE TABLE IF NOT EXISTS `perilaku_kerja` ( `id_penilaian` int(11) NOT NULL, - `id_perilaku` int(11) NOT NULL, +`id_perilaku` int(11) NOT NULL, `pelayanan` int(11) NOT NULL, `integritas` int(11) NOT NULL, `komitmen` int(11) NOT NULL, `disiplin` int(11) NOT NULL, `kerjasama` int(11) NOT NULL, `kepemimpinan` int(11) NOT NULL -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ; -- -------------------------------------------------------- @@ -114,11 +117,11 @@ CREATE TABLE IF NOT EXISTS `perilaku_kerja` ( CREATE TABLE IF NOT EXISTS `rekomendasi` ( `id_penilaian` int(11) NOT NULL, - `id_rekomendasi` int(11) NOT NULL, +`id_rekomendasi` int(11) NOT NULL, `rek_pelatihan` text, `rek_promosi` text, `rek_mutasi` text -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ; -- -------------------------------------------------------- @@ -128,10 +131,10 @@ CREATE TABLE IF NOT EXISTS `rekomendasi` ( CREATE TABLE IF NOT EXISTS `skp` ( `id_penilaian` int(11) NOT NULL, - `id_skp` int(11) NOT NULL, +`id_skp` int(11) NOT NULL, `nilai` int(11) DEFAULT NULL, `status` tinyint(1) DEFAULT NULL -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ; -- -- Indexes for dumped tables @@ -141,58 +144,61 @@ CREATE TABLE IF NOT EXISTS `skp` ( -- Indexes for table `kegiatan` -- ALTER TABLE `kegiatan` - ADD PRIMARY KEY (`id_kegiatan`), ADD UNIQUE KEY `idx_skp` (`id_skp`); - --- --- Indexes for table `kehadiran` --- -ALTER TABLE `kehadiran` - ADD PRIMARY KEY (`id_kehadiran`); - --- --- Indexes for table `pendidikan` --- -ALTER TABLE `pendidikan` - ADD PRIMARY KEY (`id_pendidikan`); + ADD PRIMARY KEY (`id_kegiatan`), ADD UNIQUE KEY `idx_skp` (`id_skp`); -- -- Indexes for table `penilaian` -- ALTER TABLE `penilaian` - ADD PRIMARY KEY (`id_penilaian`); + ADD PRIMARY KEY (`id_penilaian`); -- -- Indexes for table `perilaku_kerja` -- ALTER TABLE `perilaku_kerja` - ADD PRIMARY KEY (`id_perilaku`), ADD UNIQUE KEY `idx_penilaian` (`id_penilaian`); + ADD PRIMARY KEY (`id_perilaku`), ADD UNIQUE KEY `idx_penilaian` (`id_penilaian`); -- -- Indexes for table `rekomendasi` -- ALTER TABLE `rekomendasi` - ADD PRIMARY KEY (`id_rekomendasi`), ADD UNIQUE KEY `idx_penilaian` (`id_penilaian`); + ADD PRIMARY KEY (`id_rekomendasi`), ADD UNIQUE KEY `idx_penilaian` (`id_penilaian`); -- -- Indexes for table `skp` -- ALTER TABLE `skp` - ADD PRIMARY KEY (`id_skp`), ADD UNIQUE KEY `idx_penilaian` (`id_penilaian`); + ADD PRIMARY KEY (`id_skp`), ADD UNIQUE KEY `idx_penilaian` (`id_penilaian`); -- -- AUTO_INCREMENT for dumped tables -- -- --- AUTO_INCREMENT for table `kehadiran` +-- AUTO_INCREMENT for table `kegiatan` +-- +ALTER TABLE `kegiatan` +MODIFY `id_kegiatan` int(11) NOT NULL AUTO_INCREMENT; +-- +-- AUTO_INCREMENT for table `penilaian` +-- +ALTER TABLE `penilaian` +MODIFY `id_penilaian` int(11) NOT NULL AUTO_INCREMENT; +-- +-- AUTO_INCREMENT for table `perilaku_kerja` -- -ALTER TABLE `kehadiran` - MODIFY `id_kehadiran` int(11) NOT NULL AUTO_INCREMENT; +ALTER TABLE `perilaku_kerja` +MODIFY `id_perilaku` int(11) NOT NULL AUTO_INCREMENT; +-- +-- AUTO_INCREMENT for table `rekomendasi` -- --- AUTO_INCREMENT for table `pendidikan` +ALTER TABLE `rekomendasi` +MODIFY `id_rekomendasi` int(11) NOT NULL AUTO_INCREMENT; -- -ALTER TABLE `pendidikan` - MODIFY `id_pendidikan` int(11) NOT NULL AUTO_INCREMENT; +-- AUTO_INCREMENT for table `skp` +-- +ALTER TABLE `skp` +MODIFY `id_skp` int(11) NOT NULL AUTO_INCREMENT; -- -- Constraints for dumped tables --