Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
PA1
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
Michael Ollifarel Sagala
PA1
Commits
34ef1103
Commit
34ef1103
authored
Jan 12, 2020
by
Michael Ollifarel Sagala
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ok
parent
6fe8cbe3
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
704 additions
and
0 deletions
+704
-0
PABI_FINAL.sql
PABI_FINAL.sql
+352
-0
PABI_FINAL.sql
gambar/PABI_FINAL.sql
+352
-0
No files found.
PABI_FINAL.sql
0 → 100644
View file @
34ef1103
-- phpMyAdmin SQL Dump
-- version 4.8.0
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: Jan 12, 2020 at 03:06 PM
-- Server version: 10.1.31-MariaDB
-- PHP Version: 7.1.16
SET
SQL_MODE
=
"NO_AUTO_VALUE_ON_ZERO"
;
SET
AUTOCOMMIT
=
0
;
START
TRANSACTION
;
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 utf8mb4 */
;
--
-- Database: `pabi`
--
-- --------------------------------------------------------
--
-- Table structure for table `data_user`
--
CREATE
TABLE
`data_user`
(
`id`
int
(
10
)
NOT
NULL
,
`id_nama`
int
(
10
)
NOT
NULL
,
`nama`
varchar
(
100
)
NOT
NULL
,
`marga`
int
(
100
)
NOT
NULL
,
`mamak`
int
(
100
)
NOT
NULL
,
`kelas`
varchar
(
100
)
DEFAULT
NULL
,
`angkatan`
int
(
100
)
NOT
NULL
,
`prodi`
varchar
(
100
)
NOT
NULL
,
`Jenis_kelamin`
int
(
100
)
NOT
NULL
,
`marga_toga`
int
(
100
)
NOT
NULL
,
`mamak_toga`
int
(
100
)
NOT
NULL
)
ENGINE
=
InnoDB
DEFAULT
CHARSET
=
latin1
;
--
-- Dumping data for table `data_user`
--
INSERT
INTO
`data_user`
(
`id`
,
`id_nama`
,
`nama`
,
`marga`
,
`mamak`
,
`kelas`
,
`angkatan`
,
`prodi`
,
`Jenis_kelamin`
,
`marga_toga`
,
`mamak_toga`
)
VALUES
(
2
,
116
,
'Michael Sagala'
,
1
,
2
,
'32TK2'
,
2018
,
'd3tk'
,
1
,
0
,
0
),
(
4
,
119
,
'Ahmad'
,
3
,
4
,
'Not Set'
,
0
,
'Not Set'
,
1
,
0
,
0
),
(
5
,
120
,
'Selvia'
,
2
,
5
,
'Not Set'
,
0
,
'Not Set'
,
2
,
0
,
0
),
(
6
,
121
,
'serin'
,
2
,
8
,
'Not Set'
,
0
,
'Not Set'
,
2
,
0
,
0
),
(
7
,
122
,
'cewekla pokoknya'
,
9
,
2
,
'Not Set'
,
0
,
'Not Set'
,
2
,
0
,
0
),
(
8
,
123
,
'Christy'
,
5
,
1
,
'33tk1'
,
2017
,
'D4'
,
2
,
0
,
0
);
-- --------------------------------------------------------
--
-- Table structure for table `jenis_kelamin`
--
CREATE
TABLE
`jenis_kelamin`
(
`id`
int
(
100
)
NOT
NULL
,
`jk`
varchar
(
2
)
NOT
NULL
)
ENGINE
=
InnoDB
DEFAULT
CHARSET
=
latin1
;
--
-- Dumping data for table `jenis_kelamin`
--
INSERT
INTO
`jenis_kelamin`
(
`id`
,
`jk`
)
VALUES
(
1
,
'L'
),
(
2
,
'P'
),
(
3
,
'NS'
);
-- --------------------------------------------------------
--
-- Table structure for table `keluhan`
--
CREATE
TABLE
`keluhan`
(
`id`
int
(
11
)
NOT
NULL
,
`isi_keluhan`
varchar
(
1000
)
NOT
NULL
)
ENGINE
=
InnoDB
DEFAULT
CHARSET
=
latin1
;
--
-- Dumping data for table `keluhan`
--
INSERT
INTO
`keluhan`
(
`id`
,
`isi_keluhan`
)
VALUES
(
1
,
'121212'
),
(
2
,
''
),
(
3
,
''
),
(
4
,
'san'
),
(
5
,
'san'
),
(
6
,
''
),
(
7
,
''
),
(
8
,
'zz'
),
(
9
,
'zz'
),
(
10
,
''
),
(
11
,
''
),
(
12
,
''
),
(
13
,
''
),
(
14
,
''
),
(
15
,
''
),
(
16
,
''
),
(
17
,
''
),
(
18
,
''
),
(
19
,
''
),
(
20
,
''
),
(
21
,
''
),
(
22
,
''
),
(
23
,
''
),
(
24
,
''
),
(
25
,
''
),
(
26
,
''
),
(
27
,
''
),
(
28
,
''
),
(
29
,
''
);
-- --------------------------------------------------------
--
-- Table structure for table `marga`
--
CREATE
TABLE
`marga`
(
`id_marga`
int
(
100
)
NOT
NULL
,
`toga`
int
(
100
)
NOT
NULL
,
`marga`
varchar
(
100
)
NOT
NULL
)
ENGINE
=
InnoDB
DEFAULT
CHARSET
=
latin1
;
--
-- Dumping data for table `marga`
--
INSERT
INTO
`marga`
(
`id_marga`
,
`toga`
,
`marga`
)
VALUES
(
1
,
1
,
'sagala'
),
(
2
,
2
,
'simbolon'
),
(
3
,
2
,
'tamba'
),
(
4
,
1
,
'damanik'
),
(
5
,
1
,
'manik'
),
(
6
,
1
,
'okoko'
),
(
7
,
1
,
'batubara'
),
(
8
,
3
,
'not-set-yet'
),
(
9
,
4
,
'Siahaan'
),
(
10
,
2
,
'Sitanggang
\r\n
'
);
-- --------------------------------------------------------
--
-- Table structure for table `role`
--
CREATE
TABLE
`role`
(
`id_role`
int
(
10
)
NOT
NULL
,
`role`
varchar
(
10
)
NOT
NULL
)
ENGINE
=
InnoDB
DEFAULT
CHARSET
=
latin1
;
--
-- Dumping data for table `role`
--
INSERT
INTO
`role`
(
`id_role`
,
`role`
)
VALUES
(
1
,
'admin'
),
(
2
,
'user'
);
-- --------------------------------------------------------
--
-- Table structure for table `toga`
--
CREATE
TABLE
`toga`
(
`id_toga`
int
(
100
)
NOT
NULL
,
`nama_toga`
varchar
(
100
)
NOT
NULL
)
ENGINE
=
InnoDB
DEFAULT
CHARSET
=
latin1
;
--
-- Dumping data for table `toga`
--
INSERT
INTO
`toga`
(
`id_toga`
,
`nama_toga`
)
VALUES
(
1
,
'naimarata'
),
(
2
,
'parna'
),
(
3
,
'not set'
),
(
4
,
'somanimbil'
),
(
5
,
'Silahisabungan'
);
-- --------------------------------------------------------
--
-- Table structure for table `user`
--
CREATE
TABLE
`user`
(
`id`
int
(
10
)
NOT
NULL
,
`username`
varchar
(
100
)
NOT
NULL
,
`password`
varchar
(
100
)
NOT
NULL
,
`role`
int
(
10
)
NOT
NULL
)
ENGINE
=
InnoDB
DEFAULT
CHARSET
=
latin1
;
--
-- Dumping data for table `user`
--
INSERT
INTO
`user`
(
`id`
,
`username`
,
`password`
,
`role`
)
VALUES
(
1
,
'admin'
,
'admin'
,
1
),
(
116
,
'michael'
,
'michael'
,
2
),
(
118
,
'mmm'
,
'qq'
,
2
),
(
119
,
'mmm1'
,
'q'
,
2
),
(
120
,
'asd'
,
'a'
,
2
),
(
121
,
'asdd'
,
'asdd'
,
2
),
(
122
,
'kk'
,
'kk'
,
2
),
(
123
,
'v'
,
'v'
,
2
),
(
124
,
'srumapea'
,
'rumapea123'
,
2
),
(
125
,
'sagala'
,
'sagala'
,
2
),
(
126
,
'olli'
,
'olli'
,
2
),
(
127
,
'farel'
,
'farel'
,
2
),
(
128
,
'ad'
,
'ad'
,
2
),
(
129
,
'ads'
,
'ads'
,
2
),
(
130
,
'adss'
,
'adss'
,
2
);
--
-- Indexes for dumped tables
--
--
-- Indexes for table `data_user`
--
ALTER
TABLE
`data_user`
ADD
PRIMARY
KEY
(
`id`
),
ADD
KEY
`id_nama`
(
`id_nama`
),
ADD
KEY
`Jenis_kelamin`
(
`Jenis_kelamin`
),
ADD
KEY
`mamak`
(
`mamak`
),
ADD
KEY
`marga`
(
`marga`
);
--
-- Indexes for table `jenis_kelamin`
--
ALTER
TABLE
`jenis_kelamin`
ADD
PRIMARY
KEY
(
`id`
);
--
-- Indexes for table `keluhan`
--
ALTER
TABLE
`keluhan`
ADD
PRIMARY
KEY
(
`id`
);
--
-- Indexes for table `marga`
--
ALTER
TABLE
`marga`
ADD
PRIMARY
KEY
(
`id_marga`
),
ADD
KEY
`toga`
(
`toga`
);
--
-- Indexes for table `role`
--
ALTER
TABLE
`role`
ADD
PRIMARY
KEY
(
`id_role`
);
--
-- Indexes for table `toga`
--
ALTER
TABLE
`toga`
ADD
PRIMARY
KEY
(
`id_toga`
);
--
-- Indexes for table `user`
--
ALTER
TABLE
`user`
ADD
PRIMARY
KEY
(
`id`
),
ADD
KEY
`role`
(
`role`
);
--
-- AUTO_INCREMENT for dumped tables
--
--
-- AUTO_INCREMENT for table `data_user`
--
ALTER
TABLE
`data_user`
MODIFY
`id`
int
(
10
)
NOT
NULL
AUTO_INCREMENT
,
AUTO_INCREMENT
=
9
;
--
-- AUTO_INCREMENT for table `jenis_kelamin`
--
ALTER
TABLE
`jenis_kelamin`
MODIFY
`id`
int
(
100
)
NOT
NULL
AUTO_INCREMENT
,
AUTO_INCREMENT
=
4
;
--
-- AUTO_INCREMENT for table `keluhan`
--
ALTER
TABLE
`keluhan`
MODIFY
`id`
int
(
11
)
NOT
NULL
AUTO_INCREMENT
,
AUTO_INCREMENT
=
30
;
--
-- AUTO_INCREMENT for table `marga`
--
ALTER
TABLE
`marga`
MODIFY
`id_marga`
int
(
100
)
NOT
NULL
AUTO_INCREMENT
,
AUTO_INCREMENT
=
11
;
--
-- AUTO_INCREMENT for table `role`
--
ALTER
TABLE
`role`
MODIFY
`id_role`
int
(
10
)
NOT
NULL
AUTO_INCREMENT
,
AUTO_INCREMENT
=
3
;
--
-- AUTO_INCREMENT for table `toga`
--
ALTER
TABLE
`toga`
MODIFY
`id_toga`
int
(
100
)
NOT
NULL
AUTO_INCREMENT
,
AUTO_INCREMENT
=
6
;
--
-- AUTO_INCREMENT for table `user`
--
ALTER
TABLE
`user`
MODIFY
`id`
int
(
10
)
NOT
NULL
AUTO_INCREMENT
,
AUTO_INCREMENT
=
131
;
--
-- Constraints for dumped tables
--
--
-- Constraints for table `data_user`
--
ALTER
TABLE
`data_user`
ADD
CONSTRAINT
`data_user_ibfk_1`
FOREIGN
KEY
(
`id_nama`
)
REFERENCES
`user`
(
`id`
),
ADD
CONSTRAINT
`data_user_ibfk_4`
FOREIGN
KEY
(
`Jenis_kelamin`
)
REFERENCES
`jenis_kelamin`
(
`id`
),
ADD
CONSTRAINT
`data_user_ibfk_5`
FOREIGN
KEY
(
`mamak`
)
REFERENCES
`marga`
(
`id_marga`
),
ADD
CONSTRAINT
`data_user_ibfk_6`
FOREIGN
KEY
(
`marga`
)
REFERENCES
`marga`
(
`id_marga`
);
--
-- Constraints for table `marga`
--
ALTER
TABLE
`marga`
ADD
CONSTRAINT
`marga_ibfk_1`
FOREIGN
KEY
(
`toga`
)
REFERENCES
`toga`
(
`id_toga`
);
--
-- Constraints for table `user`
--
ALTER
TABLE
`user`
ADD
CONSTRAINT
`user_ibfk_1`
FOREIGN
KEY
(
`role`
)
REFERENCES
`role`
(
`id_role`
);
COMMIT
;
/*!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 */
;
gambar/PABI_FINAL.sql
0 → 100644
View file @
34ef1103
-- phpMyAdmin SQL Dump
-- version 4.8.0
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: Jan 12, 2020 at 03:06 PM
-- Server version: 10.1.31-MariaDB
-- PHP Version: 7.1.16
SET
SQL_MODE
=
"NO_AUTO_VALUE_ON_ZERO"
;
SET
AUTOCOMMIT
=
0
;
START
TRANSACTION
;
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 utf8mb4 */
;
--
-- Database: `pabi`
--
-- --------------------------------------------------------
--
-- Table structure for table `data_user`
--
CREATE
TABLE
`data_user`
(
`id`
int
(
10
)
NOT
NULL
,
`id_nama`
int
(
10
)
NOT
NULL
,
`nama`
varchar
(
100
)
NOT
NULL
,
`marga`
int
(
100
)
NOT
NULL
,
`mamak`
int
(
100
)
NOT
NULL
,
`kelas`
varchar
(
100
)
DEFAULT
NULL
,
`angkatan`
int
(
100
)
NOT
NULL
,
`prodi`
varchar
(
100
)
NOT
NULL
,
`Jenis_kelamin`
int
(
100
)
NOT
NULL
,
`marga_toga`
int
(
100
)
NOT
NULL
,
`mamak_toga`
int
(
100
)
NOT
NULL
)
ENGINE
=
InnoDB
DEFAULT
CHARSET
=
latin1
;
--
-- Dumping data for table `data_user`
--
INSERT
INTO
`data_user`
(
`id`
,
`id_nama`
,
`nama`
,
`marga`
,
`mamak`
,
`kelas`
,
`angkatan`
,
`prodi`
,
`Jenis_kelamin`
,
`marga_toga`
,
`mamak_toga`
)
VALUES
(
2
,
116
,
'Michael Sagala'
,
1
,
2
,
'32TK2'
,
2018
,
'd3tk'
,
1
,
0
,
0
),
(
4
,
119
,
'Ahmad'
,
3
,
4
,
'Not Set'
,
0
,
'Not Set'
,
1
,
0
,
0
),
(
5
,
120
,
'Selvia'
,
2
,
5
,
'Not Set'
,
0
,
'Not Set'
,
2
,
0
,
0
),
(
6
,
121
,
'serin'
,
2
,
8
,
'Not Set'
,
0
,
'Not Set'
,
2
,
0
,
0
),
(
7
,
122
,
'cewekla pokoknya'
,
9
,
2
,
'Not Set'
,
0
,
'Not Set'
,
2
,
0
,
0
),
(
8
,
123
,
'Christy'
,
5
,
1
,
'33tk1'
,
2017
,
'D4'
,
2
,
0
,
0
);
-- --------------------------------------------------------
--
-- Table structure for table `jenis_kelamin`
--
CREATE
TABLE
`jenis_kelamin`
(
`id`
int
(
100
)
NOT
NULL
,
`jk`
varchar
(
2
)
NOT
NULL
)
ENGINE
=
InnoDB
DEFAULT
CHARSET
=
latin1
;
--
-- Dumping data for table `jenis_kelamin`
--
INSERT
INTO
`jenis_kelamin`
(
`id`
,
`jk`
)
VALUES
(
1
,
'L'
),
(
2
,
'P'
),
(
3
,
'NS'
);
-- --------------------------------------------------------
--
-- Table structure for table `keluhan`
--
CREATE
TABLE
`keluhan`
(
`id`
int
(
11
)
NOT
NULL
,
`isi_keluhan`
varchar
(
1000
)
NOT
NULL
)
ENGINE
=
InnoDB
DEFAULT
CHARSET
=
latin1
;
--
-- Dumping data for table `keluhan`
--
INSERT
INTO
`keluhan`
(
`id`
,
`isi_keluhan`
)
VALUES
(
1
,
'121212'
),
(
2
,
''
),
(
3
,
''
),
(
4
,
'san'
),
(
5
,
'san'
),
(
6
,
''
),
(
7
,
''
),
(
8
,
'zz'
),
(
9
,
'zz'
),
(
10
,
''
),
(
11
,
''
),
(
12
,
''
),
(
13
,
''
),
(
14
,
''
),
(
15
,
''
),
(
16
,
''
),
(
17
,
''
),
(
18
,
''
),
(
19
,
''
),
(
20
,
''
),
(
21
,
''
),
(
22
,
''
),
(
23
,
''
),
(
24
,
''
),
(
25
,
''
),
(
26
,
''
),
(
27
,
''
),
(
28
,
''
),
(
29
,
''
);
-- --------------------------------------------------------
--
-- Table structure for table `marga`
--
CREATE
TABLE
`marga`
(
`id_marga`
int
(
100
)
NOT
NULL
,
`toga`
int
(
100
)
NOT
NULL
,
`marga`
varchar
(
100
)
NOT
NULL
)
ENGINE
=
InnoDB
DEFAULT
CHARSET
=
latin1
;
--
-- Dumping data for table `marga`
--
INSERT
INTO
`marga`
(
`id_marga`
,
`toga`
,
`marga`
)
VALUES
(
1
,
1
,
'sagala'
),
(
2
,
2
,
'simbolon'
),
(
3
,
2
,
'tamba'
),
(
4
,
1
,
'damanik'
),
(
5
,
1
,
'manik'
),
(
6
,
1
,
'okoko'
),
(
7
,
1
,
'batubara'
),
(
8
,
3
,
'not-set-yet'
),
(
9
,
4
,
'Siahaan'
),
(
10
,
2
,
'Sitanggang
\r\n
'
);
-- --------------------------------------------------------
--
-- Table structure for table `role`
--
CREATE
TABLE
`role`
(
`id_role`
int
(
10
)
NOT
NULL
,
`role`
varchar
(
10
)
NOT
NULL
)
ENGINE
=
InnoDB
DEFAULT
CHARSET
=
latin1
;
--
-- Dumping data for table `role`
--
INSERT
INTO
`role`
(
`id_role`
,
`role`
)
VALUES
(
1
,
'admin'
),
(
2
,
'user'
);
-- --------------------------------------------------------
--
-- Table structure for table `toga`
--
CREATE
TABLE
`toga`
(
`id_toga`
int
(
100
)
NOT
NULL
,
`nama_toga`
varchar
(
100
)
NOT
NULL
)
ENGINE
=
InnoDB
DEFAULT
CHARSET
=
latin1
;
--
-- Dumping data for table `toga`
--
INSERT
INTO
`toga`
(
`id_toga`
,
`nama_toga`
)
VALUES
(
1
,
'naimarata'
),
(
2
,
'parna'
),
(
3
,
'not set'
),
(
4
,
'somanimbil'
),
(
5
,
'Silahisabungan'
);
-- --------------------------------------------------------
--
-- Table structure for table `user`
--
CREATE
TABLE
`user`
(
`id`
int
(
10
)
NOT
NULL
,
`username`
varchar
(
100
)
NOT
NULL
,
`password`
varchar
(
100
)
NOT
NULL
,
`role`
int
(
10
)
NOT
NULL
)
ENGINE
=
InnoDB
DEFAULT
CHARSET
=
latin1
;
--
-- Dumping data for table `user`
--
INSERT
INTO
`user`
(
`id`
,
`username`
,
`password`
,
`role`
)
VALUES
(
1
,
'admin'
,
'admin'
,
1
),
(
116
,
'michael'
,
'michael'
,
2
),
(
118
,
'mmm'
,
'qq'
,
2
),
(
119
,
'mmm1'
,
'q'
,
2
),
(
120
,
'asd'
,
'a'
,
2
),
(
121
,
'asdd'
,
'asdd'
,
2
),
(
122
,
'kk'
,
'kk'
,
2
),
(
123
,
'v'
,
'v'
,
2
),
(
124
,
'srumapea'
,
'rumapea123'
,
2
),
(
125
,
'sagala'
,
'sagala'
,
2
),
(
126
,
'olli'
,
'olli'
,
2
),
(
127
,
'farel'
,
'farel'
,
2
),
(
128
,
'ad'
,
'ad'
,
2
),
(
129
,
'ads'
,
'ads'
,
2
),
(
130
,
'adss'
,
'adss'
,
2
);
--
-- Indexes for dumped tables
--
--
-- Indexes for table `data_user`
--
ALTER
TABLE
`data_user`
ADD
PRIMARY
KEY
(
`id`
),
ADD
KEY
`id_nama`
(
`id_nama`
),
ADD
KEY
`Jenis_kelamin`
(
`Jenis_kelamin`
),
ADD
KEY
`mamak`
(
`mamak`
),
ADD
KEY
`marga`
(
`marga`
);
--
-- Indexes for table `jenis_kelamin`
--
ALTER
TABLE
`jenis_kelamin`
ADD
PRIMARY
KEY
(
`id`
);
--
-- Indexes for table `keluhan`
--
ALTER
TABLE
`keluhan`
ADD
PRIMARY
KEY
(
`id`
);
--
-- Indexes for table `marga`
--
ALTER
TABLE
`marga`
ADD
PRIMARY
KEY
(
`id_marga`
),
ADD
KEY
`toga`
(
`toga`
);
--
-- Indexes for table `role`
--
ALTER
TABLE
`role`
ADD
PRIMARY
KEY
(
`id_role`
);
--
-- Indexes for table `toga`
--
ALTER
TABLE
`toga`
ADD
PRIMARY
KEY
(
`id_toga`
);
--
-- Indexes for table `user`
--
ALTER
TABLE
`user`
ADD
PRIMARY
KEY
(
`id`
),
ADD
KEY
`role`
(
`role`
);
--
-- AUTO_INCREMENT for dumped tables
--
--
-- AUTO_INCREMENT for table `data_user`
--
ALTER
TABLE
`data_user`
MODIFY
`id`
int
(
10
)
NOT
NULL
AUTO_INCREMENT
,
AUTO_INCREMENT
=
9
;
--
-- AUTO_INCREMENT for table `jenis_kelamin`
--
ALTER
TABLE
`jenis_kelamin`
MODIFY
`id`
int
(
100
)
NOT
NULL
AUTO_INCREMENT
,
AUTO_INCREMENT
=
4
;
--
-- AUTO_INCREMENT for table `keluhan`
--
ALTER
TABLE
`keluhan`
MODIFY
`id`
int
(
11
)
NOT
NULL
AUTO_INCREMENT
,
AUTO_INCREMENT
=
30
;
--
-- AUTO_INCREMENT for table `marga`
--
ALTER
TABLE
`marga`
MODIFY
`id_marga`
int
(
100
)
NOT
NULL
AUTO_INCREMENT
,
AUTO_INCREMENT
=
11
;
--
-- AUTO_INCREMENT for table `role`
--
ALTER
TABLE
`role`
MODIFY
`id_role`
int
(
10
)
NOT
NULL
AUTO_INCREMENT
,
AUTO_INCREMENT
=
3
;
--
-- AUTO_INCREMENT for table `toga`
--
ALTER
TABLE
`toga`
MODIFY
`id_toga`
int
(
100
)
NOT
NULL
AUTO_INCREMENT
,
AUTO_INCREMENT
=
6
;
--
-- AUTO_INCREMENT for table `user`
--
ALTER
TABLE
`user`
MODIFY
`id`
int
(
10
)
NOT
NULL
AUTO_INCREMENT
,
AUTO_INCREMENT
=
131
;
--
-- Constraints for dumped tables
--
--
-- Constraints for table `data_user`
--
ALTER
TABLE
`data_user`
ADD
CONSTRAINT
`data_user_ibfk_1`
FOREIGN
KEY
(
`id_nama`
)
REFERENCES
`user`
(
`id`
),
ADD
CONSTRAINT
`data_user_ibfk_4`
FOREIGN
KEY
(
`Jenis_kelamin`
)
REFERENCES
`jenis_kelamin`
(
`id`
),
ADD
CONSTRAINT
`data_user_ibfk_5`
FOREIGN
KEY
(
`mamak`
)
REFERENCES
`marga`
(
`id_marga`
),
ADD
CONSTRAINT
`data_user_ibfk_6`
FOREIGN
KEY
(
`marga`
)
REFERENCES
`marga`
(
`id_marga`
);
--
-- Constraints for table `marga`
--
ALTER
TABLE
`marga`
ADD
CONSTRAINT
`marga_ibfk_1`
FOREIGN
KEY
(
`toga`
)
REFERENCES
`toga`
(
`id_toga`
);
--
-- Constraints for table `user`
--
ALTER
TABLE
`user`
ADD
CONSTRAINT
`user_ibfk_1`
FOREIGN
KEY
(
`role`
)
REFERENCES
`role`
(
`id_role`
);
COMMIT
;
/*!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