hendroprwk08

Untitled

Jan 9th, 2021
1,256
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. -- phpMyAdmin SQL Dump
  2. -- version 5.0.3
  3. -- https://www.phpmyadmin.net/
  4. --
  5. -- Host: 127.0.0.1
  6. -- Waktu pembuatan: 09 Jan 2021 pada 08.29
  7. -- Versi server: 10.4.14-MariaDB
  8. -- Versi PHP: 7.2.34
  9.  
  10. SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
  11. START TRANSACTION;
  12. SET time_zone = "+00:00";
  13.  
  14.  
  15. /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
  16. /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
  17. /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
  18. /*!40101 SET NAMES utf8mb4 */;
  19.  
  20. --
  21. -- Database: `db_hrd_baru`
  22. --
  23.  
  24. -- --------------------------------------------------------
  25.  
  26. --
  27. -- Struktur dari tabel `jabatan`
  28. --
  29.  
  30. CREATE TABLE `jabatan` (
  31.   `idjabatan` int(11) NOT NULL,
  32.   `jabatan` varchar(50) NOT NULL,
  33.   `honor` int(11) NOT NULL,
  34.   `input_at` timestamp NOT NULL DEFAULT current_timestamp(),
  35.   `update_at` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp()
  36. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
  37.  
  38. --
  39. -- Dumping data untuk tabel `jabatan`
  40. --
  41.  
  42. INSERT INTO `jabatan` (`idjabatan`, `jabatan`, `honor`, `input_at`, `update_at`) VALUES
  43. (9, 'Staff GA', 1500000, '2021-01-07 07:41:14', '2021-01-07 07:50:18'),
  44. (10, 'Staff Produksi', 1800000, '2021-01-07 07:50:44', '2021-01-07 07:51:03');
  45.  
  46. -- --------------------------------------------------------
  47.  
  48. --
  49. -- Struktur dari tabel `pegawai`
  50. --
  51.  
  52. CREATE TABLE `pegawai` (
  53.   `idpegawai` int(11) NOT NULL,
  54.   `nama` varchar(22) NOT NULL,
  55.   `tgllahir` date NOT NULL,
  56.   `divisi` varchar(50) NOT NULL,
  57.   `idjabatan` int(22) NOT NULL,
  58.   `input_at` timestamp NOT NULL DEFAULT current_timestamp(),
  59.   `update_at` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp()
  60. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
  61.  
  62. --
  63. -- Indexes for dumped tables
  64. --
  65.  
  66. --
  67. -- Indeks untuk tabel `jabatan`
  68. --
  69. ALTER TABLE `jabatan`
  70.   ADD PRIMARY KEY (`idjabatan`);
  71.  
  72. --
  73. -- Indeks untuk tabel `pegawai`
  74. --
  75. ALTER TABLE `pegawai`
  76.   ADD PRIMARY KEY (`idpegawai`),
  77.   ADD KEY `id_jabatan_fk` (`idjabatan`) USING BTREE;
  78.  
  79. --
  80. -- AUTO_INCREMENT untuk tabel yang dibuang
  81. --
  82.  
  83. --
  84. -- AUTO_INCREMENT untuk tabel `jabatan`
  85. --
  86. ALTER TABLE `jabatan`
  87.   MODIFY `idjabatan` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=11;
  88.  
  89. --
  90. -- AUTO_INCREMENT untuk tabel `pegawai`
  91. --
  92. ALTER TABLE `pegawai`
  93.   MODIFY `idpegawai` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;
  94.  
  95. --
  96. -- Ketidakleluasaan untuk tabel pelimpahan (Dumped Tables)
  97. --
  98.  
  99. --
  100. -- Ketidakleluasaan untuk tabel `pegawai`
  101. --
  102. ALTER TABLE `pegawai`
  103.   ADD CONSTRAINT `pegawai_ibfk_1` FOREIGN KEY (`idjabatan`) REFERENCES `jabatan` (`idjabatan`) ON DELETE CASCADE ON UPDATE CASCADE;
  104. COMMIT;
  105.  
  106. /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
  107. /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
  108. /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
  109.  
RAW Paste Data

Adblocker detected! Please consider disabling it...

We've detected AdBlock Plus or some other adblocking software preventing Pastebin.com from fully loading.

We don't have any obnoxious sound, or popup ads, we actively block these annoying types of ads!

Please add Pastebin.com to your ad blocker whitelist or disable your adblocking software.

×