-
Notifications
You must be signed in to change notification settings - Fork 0
/
rental_mobil.sql
223 lines (176 loc) · 5.57 KB
/
rental_mobil.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
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
-- phpMyAdmin SQL Dump
-- version 4.1.6
-- http://www.phpmyadmin.net
--
-- Host: 127.0.0.1
-- Generation Time: Feb 13, 2016 at 05:29 PM
-- Server version: 5.6.16
-- PHP Version: 5.5.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 utf8 */;
--
-- Database: `rental_mobil`
--
-- --------------------------------------------------------
--
-- Table structure for table `jenisservice`
--
CREATE TABLE IF NOT EXISTS `jenisservice` (
`IdJenisService` varchar(5) NOT NULL,
`NmJenisService` text NOT NULL,
PRIMARY KEY (`IdJenisService`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- --------------------------------------------------------
--
-- Table structure for table `karyawan`
--
CREATE TABLE IF NOT EXISTS `karyawan` (
`NIK` varchar(20) NOT NULL,
`NimKaryawan` text NOT NULL,
`AlmtKaryawan` text NOT NULL,
`TelpKaryawan` text NOT NULL,
PRIMARY KEY (`NIK`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `karyawan`
--
INSERT INTO `karyawan` (`NIK`, `NimKaryawan`, `AlmtKaryawan`, `TelpKaryawan`) VALUES
('12345678', 'ABC123456', 'Kp.padurenan', '085776932047');
-- --------------------------------------------------------
--
-- Table structure for table `kendaraan`
--
CREATE TABLE IF NOT EXISTS `kendaraan` (
`NoPlat` varchar(20) NOT NULL,
`Tahun` text NOT NULL,
`TarifPerJam` int(11) NOT NULL,
`StatusRental` text NOT NULL,
PRIMARY KEY (`NoPlat`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- --------------------------------------------------------
--
-- Table structure for table `login`
--
CREATE TABLE IF NOT EXISTS `login` (
`Username` varchar(10) NOT NULL,
`Password` text NOT NULL,
`TypeUser` text NOT NULL,
PRIMARY KEY (`Username`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `login`
--
INSERT INTO `login` (`Username`, `Password`, `TypeUser`) VALUES
('007', 'q', 'Karyawan'),
('abe', 'q', 'Admin'),
('Admin', 'admin', 'Admin');
-- --------------------------------------------------------
--
-- Table structure for table `merk`
--
CREATE TABLE IF NOT EXISTS `merk` (
`KodeMerk` varchar(5) NOT NULL,
`NmMerk` text NOT NULL,
PRIMARY KEY (`KodeMerk`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- --------------------------------------------------------
--
-- Table structure for table `pelanggan`
--
CREATE TABLE IF NOT EXISTS `pelanggan` (
`NoKTP` varchar(20) NOT NULL,
`NamaPel` text NOT NULL,
`AlamatPel` text NOT NULL,
`TelpPel` text NOT NULL,
PRIMARY KEY (`NoKTP`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- --------------------------------------------------------
--
-- Table structure for table `pemilik`
--
CREATE TABLE IF NOT EXISTS `pemilik` (
`KodePemilik` varchar(5) NOT NULL,
`NmPemilik` text NOT NULL,
`AlmtPemilik` text NOT NULL,
`TelpPemilik` text NOT NULL,
PRIMARY KEY (`KodePemilik`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- --------------------------------------------------------
--
-- Table structure for table `service`
--
CREATE TABLE IF NOT EXISTS `service` (
`KodeService` varchar(5) NOT NULL,
`TglService` date NOT NULL,
`BiayaService` int(11) NOT NULL,
PRIMARY KEY (`KodeService`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- --------------------------------------------------------
--
-- Table structure for table `setoran`
--
CREATE TABLE IF NOT EXISTS `setoran` (
`NoSetoran` varchar(5) NOT NULL,
`TglSetoran` date NOT NULL,
`Jumlah` int(11) NOT NULL,
PRIMARY KEY (`NoSetoran`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- --------------------------------------------------------
--
-- Table structure for table `sopir`
--
CREATE TABLE IF NOT EXISTS `sopir` (
`IdSopir` varchar(5) NOT NULL,
`NmSopir` text NOT NULL,
`AlmtSopir` text NOT NULL,
`TelpSopir` text NOT NULL,
`NoSIM` text NOT NULL,
`TarifPerJam` int(11) NOT NULL,
PRIMARY KEY (`IdSopir`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `sopir`
--
INSERT INTO `sopir` (`IdSopir`, `NmSopir`, `AlmtSopir`, `TelpSopir`, `NoSIM`, `TarifPerJam`) VALUES
('1', 'Rahmad Al Habib', 'Perum.Pabuaran Asri 2 Blok A18 No.1 Pabuaran Cibinong Bogor', '085776932047', '23232743848711', 30000);
-- --------------------------------------------------------
--
-- Table structure for table `transaksisewa`
--
CREATE TABLE IF NOT EXISTS `transaksisewa` (
`NoTransaksi` varchar(5) NOT NULL,
`TglPesan` date NOT NULL,
`TglPinjam` date NOT NULL,
`JamPinjam` time NOT NULL,
`TglKembaliRencana` date NOT NULL,
`JamKembaliRencana` time NOT NULL,
`TglKembaliRealisasi` date NOT NULL,
`JamKembaliRealisasi` time NOT NULL,
`Denda` int(11) NOT NULL,
`KilometerPinjam` int(11) NOT NULL,
`KilometerKembali` int(11) NOT NULL,
`BBMpinjam` int(11) NOT NULL,
`BBMkembali` int(11) NOT NULL,
`KondisiMobilPinjam` text NOT NULL,
`KondisiMobilKembali` text NOT NULL,
`Kerusakan` text NOT NULL,
`BiayaKerusakan` int(11) NOT NULL,
`BiayaBBM` int(11) NOT NULL,
PRIMARY KEY (`NoTransaksi`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- --------------------------------------------------------
--
-- Table structure for table `type`
--
CREATE TABLE IF NOT EXISTS `type` (
`IdType` varchar(5) NOT NULL,
`NmType` text NOT NULL,
PRIMARY KEY (`IdType`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!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 */;