Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
PSW2-D3TI01
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Julius Samosir
PSW2-D3TI01
Commits
a433f9c9
Commit
a433f9c9
authored
Jun 06, 2020
by
Visgha Olivia
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Upload New File
parent
56126bf4
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
120 additions
and
0 deletions
+120
-0
proyek_psw.sql
proyek_psw.sql
+120
-0
No files found.
proyek_psw.sql
0 → 100644
View file @
a433f9c9
--
-- Database: `proyek_psw`
--
-- --------------------------------------------------------
--
-- Struktur dari tabel `akun`
--
CREATE
TABLE
`akun`
(
`id_akun`
int
(
11
)
NOT
NULL
,
`nama`
varchar
(
200
)
NOT
NULL
,
`username`
varchar
(
50
)
NOT
NULL
,
`password`
varchar
(
50
)
NOT
NULL
,
`email`
varchar
(
50
)
NOT
NULL
,
`role`
int
(
1
)
NOT
NULL
)
ENGINE
=
InnoDB
DEFAULT
CHARSET
=
latin1
;
--
-- Dumping data untuk tabel `akun`
--
INSERT
INTO
`akun`
(
`id_akun`
,
`nama`
,
`username`
,
`password`
,
`email`
,
`role`
)
VALUES
(
1
,
''
,
'admin'
,
'admin'
,
''
,
1
),
(
23
,
'Julius'
,
'jul'
,
'jul'
,
'ogiesamosir@gmail.com'
,
2
),
(
27
,
'Musang'
,
'musang'
,
'musang'
,
'musangjanginam@gmail.com'
,
2
);
-- --------------------------------------------------------
--
-- Struktur dari tabel `paket`
--
CREATE
TABLE
`paket`
(
`id_paket`
int
(
11
)
NOT
NULL
,
`nama_paket`
varchar
(
100
)
NOT
NULL
,
`deskripsi`
varchar
(
200
)
NOT
NULL
,
`tanggal`
date
NOT
NULL
,
`gambar`
varchar
(
200
)
NOT
NULL
,
`harga`
int
(
11
)
NOT
NULL
,
`kuota`
int
(
11
)
NOT
NULL
)
ENGINE
=
InnoDB
DEFAULT
CHARSET
=
latin1
;
--
-- Dumping data untuk tabel `paket`
--
INSERT
INTO
`paket`
(
`id_paket`
,
`nama_paket`
,
`deskripsi`
,
`tanggal`
,
`gambar`
,
`harga`
,
`kuota`
)
VALUES
(
13
,
'Maknyosssssssss'
,
'Enak'
,
'2020-06-26'
,
'hosting_01.jpg'
,
500000
,
1000
),
(
14
,
'Oreo'
,
'Enak banget'
,
'2020-06-27'
,
'apple-touch-icon.png'
,
15000
,
10
),
(
15
,
'Murah Meriah Mantapp'
,
'Kayak Caption tuh'
,
'2020-06-18'
,
'hosting_01.jpg'
,
90000
,
50
),
(
16
,
'Kelas Atas'
,
'Mahal banget'
,
'2020-06-20'
,
'hosting_02.jpg'
,
90000
,
50
),
(
17
,
'Bang-Bang'
,
'We gotta you'
,
'2020-06-18'
,
'avatar.png'
,
10000
,
10
);
-- --------------------------------------------------------
--
-- Struktur dari tabel `tiket`
--
CREATE
TABLE
`tiket`
(
`id_tiket`
int
(
11
)
NOT
NULL
,
`id_akun`
int
(
11
)
NOT
NULL
,
`kode_paket`
int
(
11
)
NOT
NULL
,
`no_kursi`
int
(
11
)
NOT
NULL
)
ENGINE
=
InnoDB
DEFAULT
CHARSET
=
latin1
;
--
-- Dumping data untuk tabel `tiket`
--
INSERT
INTO
`tiket`
(
`id_tiket`
,
`id_akun`
,
`kode_paket`
,
`no_kursi`
)
VALUES
(
33
,
23
,
13
,
1
),
(
34
,
23
,
14
,
1
);
--
-- Indexes for dumped tables
--
--
-- Indexes for table `akun`
--
ALTER
TABLE
`akun`
ADD
PRIMARY
KEY
(
`id_akun`
);
--
-- Indexes for table `paket`
--
ALTER
TABLE
`paket`
ADD
PRIMARY
KEY
(
`id_paket`
);
--
-- Indexes for table `tiket`
--
ALTER
TABLE
`tiket`
ADD
PRIMARY
KEY
(
`id_tiket`
);
--
-- AUTO_INCREMENT for dumped tables
--
--
-- AUTO_INCREMENT for table `akun`
--
ALTER
TABLE
`akun`
MODIFY
`id_akun`
int
(
11
)
NOT
NULL
AUTO_INCREMENT
,
AUTO_INCREMENT
=
28
;
--
-- AUTO_INCREMENT for table `paket`
--
ALTER
TABLE
`paket`
MODIFY
`id_paket`
int
(
11
)
NOT
NULL
AUTO_INCREMENT
,
AUTO_INCREMENT
=
18
;
--
-- AUTO_INCREMENT for table `tiket`
--
ALTER
TABLE
`tiket`
MODIFY
`id_tiket`
int
(
11
)
NOT
NULL
AUTO_INCREMENT
,
AUTO_INCREMENT
=
36
;
/*!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 */
;
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment