-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathpegawai.sql
95 lines (75 loc) · 2.38 KB
/
pegawai.sql
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
-- phpMyAdmin SQL Dump
-- version 4.1.12
-- http://www.phpmyadmin.net
--
-- Host: 127.0.0.1
-- Generation Time: Jan 12, 2017 at 02:41 AM
-- Server version: 5.6.16
-- PHP Version: 5.5.11
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: `pegawai`
--
-- --------------------------------------------------------
--
-- Table structure for table `divisi`
--
CREATE TABLE IF NOT EXISTS `divisi` (
`id_divisi` int(11) NOT NULL AUTO_INCREMENT,
`divisi` varchar(50) NOT NULL,
PRIMARY KEY (`id_divisi`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=3 ;
--
-- Dumping data for table `divisi`
--
INSERT INTO `divisi` (`id_divisi`, `divisi`) VALUES
(1, 'operasional'),
(2, 'logistik');
-- --------------------------------------------------------
--
-- Table structure for table `pegawai`
--
CREATE TABLE IF NOT EXISTS `pegawai` (
`id_pegawai` int(11) NOT NULL AUTO_INCREMENT,
`nama` varchar(50) NOT NULL,
`alamat` varchar(100) NOT NULL,
`id_divisi` int(11) NOT NULL,
PRIMARY KEY (`id_pegawai`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=8 ;
--
-- Dumping data for table `pegawai`
--
INSERT INTO `pegawai` (`id_pegawai`, `nama`, `alamat`, `id_divisi`) VALUES
(1, 'raisya', 'surabaya', 1),
(2, 'isyana', 'sidoarjo', 2),
(3, 'ahmad', 'gresik', 1),
(4, 'husein', 'malang', 2),
(7, 'Amalia', 'Surabaya', 1);
-- --------------------------------------------------------
--
-- Table structure for table `user`
--
CREATE TABLE IF NOT EXISTS `user` (
`id_user` int(11) NOT NULL AUTO_INCREMENT,
`user` varchar(50) NOT NULL,
`pass` varchar(100) NOT NULL,
`level` varchar(10) NOT NULL,
PRIMARY KEY (`id_user`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=7 ;
--
-- Dumping data for table `user`
--
INSERT INTO `user` (`id_user`, `user`, `pass`, `level`) VALUES
(1, 'admin', '12345', 'admin'),
(2, 'kholiq', '4444', 'user'),
(3, 'taufik', '7777', 'user'),
(4, 'arinku', 'cantiknyo', 'user'),
(6, 'intani', 'pelitaku', 'admin');
/*!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 */;