Professional Documents
Culture Documents
Table of Contents
Sybase PowerDesigner
5/11/2013Page 2 of 69
Model Penjadwalan
I Specifications
Include specifications here...
PowerDesigner
5/11/2013
Page 3
Model Penjadwalan
II Model information
II.1 Card of model Model Penjadwalan
Name Code Comment DBMS Database Model Penjadwalan MODEL_PENJADWALAN MySQL 5.0 <None>
PowerDesigner
5/11/2013
Page 4
Model Penjadwalan
PowerDesigner
5/11/2013
Page 5
Model Penjadwalan
List of references
Code AMBIL AMBIL2 MEMILIKI MENGAJAR2 MENGAJAR PUNYA_RUANG PUNYA_WAKTU PUNYA_WAKTU2 Parent Table mahasiswa mata_kuliah prodi mata_kuliah dosen dosen dosen waktu Child Table ambil ambil mata_kuliah mengajar mengajar ruang punya_waktu punya_waktu
IV.1.1.2
IV.1.1.2.1
Name Code Parent Table Child Table
Reference ambil
Card of reference ambil
ambil AMBIL mahasiswa ambil
IV.1.1.2.2
alter table TBL_AMBIL add constraint FK_AMBIL foreign key (NIM) references TBL_MAHASISWA (NIM) on delete cascade on update restrict;
IV.1.1.2.3
TabelDatabase
IV.1.1.2.4
NIM
PowerDesigner
5/11/2013
Page 6
Model Penjadwalan
IV.1.1.2.5
Name ReferenceMatch
IV.1.1.3
IV.1.1.3.1
Name Code Parent Table Child Table
Reference ambil
Card of reference ambil
ambil AMBIL2 mata_kuliah ambil
IV.1.1.3.2
alter table TBL_AMBIL add constraint FK_AMBIL2 foreign key (KODE_MK) references TBL_MATA_KULIAH (KODE_MK) on delete cascade on update restrict;
IV.1.1.3.3
TabelDatabase
IV.1.1.3.4
KODE_MK
IV.1.1.3.5
Name ReferenceMatch
IV.1.1.4
IV.1.1.4.1
Name Code Parent Table Child Table
Reference memiliki
Card of reference memiliki
memiliki MEMILIKI prodi mata_kuliah
PowerDesigner
5/11/2013
Page 7
Model Penjadwalan
IV.1.1.4.2
alter table TBL_MATA_KULIAH add constraint FK_MEMILIKI foreign key (KODE_PRODI) references TBL_PRODI (KODE_PRODI) on delete cascade on update restrict;
IV.1.1.4.3
TabelDatabase
IV.1.1.4.4
IV.1.1.4.5
Name ReferenceMatch
IV.1.1.5
IV.1.1.5.1
Name Code Parent Table Child Table
Reference mengajar
Card of reference mengajar
mengajar MENGAJAR2 mata_kuliah mengajar
IV.1.1.5.2
alter table TBL_MENGAJAR add constraint FK_MENGAJAR2 foreign key (KODE_MK) references TBL_MATA_KULIAH (KODE_MK) on delete cascade on update restrict;
IV.1.1.5.3
TabelDatabase
IV.1.1.5.4
KODE_MK
PowerDesigner
5/11/2013
Page 8
Model Penjadwalan
IV.1.1.5.5
Name ReferenceMatch
IV.1.1.6
IV.1.1.6.1
Name Code Parent Table Child Table
Reference mengajar
Card of reference mengajar
mengajar MENGAJAR dosen mengajar
IV.1.1.6.2
alter table TBL_MENGAJAR add constraint FK_MENGAJAR foreign key (NIP) references TBL_DOSEN (NIP) on delete cascade on update restrict;
IV.1.1.6.3
TabelDatabase
IV.1.1.6.4
NIP
IV.1.1.6.5
Name ReferenceMatch
IV.1.1.7
IV.1.1.7.1
Name Code Parent Table Child Table
Reference punya_ruang
Card of reference punya_ruang
punya_ruang PUNYA_RUANG dosen ruang
PowerDesigner
5/11/2013
Page 9
Model Penjadwalan
IV.1.1.7.2
alter table TBL_RUANG add constraint FK_PUNYA_RUANG foreign key (NIP) references TBL_DOSEN (NIP) on delete cascade on update restrict;
IV.1.1.7.3
TabelDatabase
IV.1.1.7.4
NIP
IV.1.1.7.5
Name ReferenceMatch
IV.1.1.8
IV.1.1.8.1
Name Code Parent Table Child Table
Reference punya_waktu
Card of reference punya_waktu
punya_waktu PUNYA_WAKTU dosen punya_waktu
IV.1.1.8.2
alter table TBL_PUNYA_WAKTU add constraint FK_PUNYA_WAKTU foreign key (NIP) references TBL_DOSEN (NIP) on delete cascade on update restrict;
IV.1.1.8.3
TabelDatabase
IV.1.1.8.4
NIP
PowerDesigner
5/11/2013
Page 10
Model Penjadwalan
IV.1.1.8.5
Name ReferenceMatch
IV.1.1.9
IV.1.1.9.1
Name Code Parent Table Child Table
Reference punya_waktu
Card of reference punya_waktu
punya_waktu PUNYA_WAKTU2 waktu punya_waktu
IV.1.1.9.2
alter table TBL_PUNYA_WAKTU add constraint FK_PUNYA_WAKTU2 foreign key (ID_WAKTU) references TBL_WAKTU (ID_WAKTU) on delete cascade on update restrict;
IV.1.1.9.3
TabelDatabase
IV.1.1.9.4
ID_WAKTU
IV.1.1.9.5
Name ReferenceMatch
PowerDesigner
5/11/2013
Page 11
Model Penjadwalan
IV.2 Tables
IV.2.1Model level tables IV.2.1.1
ambil dosen mahasiswa mata_kuliah mengajar prodi punya_waktu ruang waktu
List of tables
Name Code TBL_AMBIL TBL_DOSEN TBL_MAHASISWA TBL_MATA_KULIAH TBL_MENGAJAR TBL_PRODI TBL_PUNYA_WAKTU TBL_RUANG TBL_WAKTU
IV.2.1.2
NIP NAMA GELAR_DEPAN GELAR_BELAKANG NO_HP STATUS EMAIL NIM NAMA KODE_MK KODE_PRODI NAMA_MK SKS SEMESTER KODE_RUANG NIP NAMA_RUANG KAPASITAS ID_WAKTU HARI JAM_MASUK JAM_KELUAR KODE_PRODI NAMA_PRODI
PowerDesigner
5/11/2013
Page 12
Model Penjadwalan
IV.2.1.3
Identifier_1 Identifier_1 Identifier_1 Identifier_1 Identifier_1 Identifier_1 Identifier_1 Identifier_1 Identifier_1
IV.2.1.4
Name
Table
TBL_DOSEN_P K TBL_MAHASIS WA_PK TBL_MATA_K ULIAH_PK MEMILIKI_FK TBL_RUANG_ PK PUNYA_RUAN G_FK TBL_WAKTU_ PK TBL_PRODI_P K MENGAJAR_F K MENGAJAR2_
PowerDesigner
Model Penjadwalan
X X X X
IV.2.1.5
IV.2.1.5.1
Name Code DBMS
Table ambil
Card of table ambil
ambil TBL_AMBIL MySQL 5.0
IV.2.1.5.2 IV.2.1.5.3
%RULES%
Check constraint name of the table ambil Server validation rule of the table ambil Code preview of the table ambil
TK_TBL_AMBIL
IV.2.1.5.4
drop table if exists TBL_AMBIL; /*==============================================================*/ /* Table: TBL_AMBIL */ /*==============================================================*/ create table TBL_AMBIL ( NIM varchar(50) not null, KODE_MK varchar(50) not null, TAHUN_AJARAN varchar(10), primary key (NIM, KODE_MK) ); alter table TBL_AMBIL add constraint FK_AMBIL foreign key (NIM) references TBL_MAHASISWA (NIM) on delete cascade on update restrict; alter table TBL_AMBIL add constraint FK_AMBIL2 foreign key (KODE_MK) references TBL_MATA_KULIAH (KODE_MK) on delete cascade on update restrict;
IV.2.1.5.5
TabelDatabase
PowerDesigner
5/11/2013
Page 14
Model Penjadwalan
IV.2.1.5.6
ambil ambil
IV.2.1.5.7
ambil ambil
IV.2.1.5.8
Temporary
IV.2.1.5.9
IV.2.1.5.10
Name Code Data Type Mandatory
Minimum Value Maximum Value Default Value Unit Format Cannot Modify List Of Values
No
PowerDesigner
5/11/2013
Page 15
Model Penjadwalan
Code
Target Name MySQL 5.0 MySQL 5.0 MySQL 5.0 MySQL 5.0 MySQL 5.0
IV.2.1.5.11
Name Code Data Type Mandatory
Minimum Value Maximum Value Default Value Unit Format Cannot Modify List Of Values
No
Name
PowerDesigner
Code
5/11/2013
Class Name
Page 16
Model Penjadwalan
Identifier_1 KODE_MK ?
IDENTIFIER_1 KODE_MK ?
Target Name MySQL 5.0 MySQL 5.0 MySQL 5.0 MySQL 5.0 MySQL 5.0
IV.2.1.5.12
Name Code Data Type Mandatory
Minimum Value Maximum Value Default Value Unit Format Cannot Modify List Of Values
No
Target Name MySQL 5.0 MySQL 5.0 MySQL 5.0 MySQL 5.0 MySQL 5.0
Page 17
Model Penjadwalan
IV.2.1.5.13
Identifier_1
IV.2.1.5.14
Name Code Table
Code
Name ExtUnique
Value false
IV.2.1.5.15
Name AMBIL_FK AMBIL2_FK
IV.2.1.5.16
Name Code Unique Cluster Primary
PowerDesigner
Model Penjadwalan
Yes No ambil
Code
Sort Ascending
Name FullText
Value false
IV.2.1.5.17
Name Code Unique Cluster Primary Foreign Key Alternate Key Table
Code
Sort Ascending
Name FullText
Value false
PowerDesigner
5/11/2013
Page 19
Model Penjadwalan
IV.2.1.6
IV.2.1.6.1
Name Code DBMS
Table dosen
Card of table dosen
dosen TBL_DOSEN MySQL 5.0
IV.2.1.6.2 IV.2.1.6.3
%RULES%
Check constraint name of the table dosen Server validation rule of the table dosen Code preview of the table dosen
TK_TBL_DOSEN
IV.2.1.6.4
drop table if exists TBL_DOSEN; /*==============================================================*/ /* Table: TBL_DOSEN */ /*==============================================================*/ create table TBL_DOSEN ( NIP varchar(50) not null, NAMA varchar(100), GELAR_DEPAN varchar(50), GELAR_BELAKANG varchar(50), NO_HP varchar(50), STATUS longtext, EMAIL varchar(50), primary key (NIP) );
IV.2.1.6.5
TabelDatabase
IV.2.1.6.6
mengajar punya_ruang punya_waktu
IV.2.1.6.7
PowerDesigner
5/11/2013
Page 20
Model Penjadwalan
IV.2.1.6.8
Temporary
IV.2.1.6.9
IV.2.1.6.10
Name Code Data Type Mandatory
Minimum Value Maximum Value Default Value Unit Format Cannot Modify List Of Values
No
PowerDesigner
5/11/2013
Page 21
Model Penjadwalan
Code
Class Name Key Index Column Reference Join Reference Join Reference Join
Target Name MySQL 5.0 MySQL 5.0 MySQL 5.0 MySQL 5.0 MySQL 5.0
IV.2.1.6.11
Name Code Data Type Mandatory
Minimum Value Maximum Value Default Value Unit Format Cannot Modify List Of Values
No
Name
Data Type
Value
Target Name
PowerDesigner
5/11/2013
Page 22
Model Penjadwalan
MySQL 5.0 MySQL 5.0 MySQL 5.0 MySQL 5.0 MySQL 5.0
IV.2.1.6.12
Name Code Data Type Mandatory
Minimum Value Maximum Value Default Value Unit Format Cannot Modify List Of Values
No
Target Name MySQL 5.0 MySQL 5.0 MySQL 5.0 MySQL 5.0 MySQL 5.0
IV.2.1.6.13
Name Code
PowerDesigner
Model Penjadwalan
varchar(50) No
Minimum Value Maximum Value Default Value Unit Format Cannot Modify List Of Values
No
Target Name MySQL 5.0 MySQL 5.0 MySQL 5.0 MySQL 5.0 MySQL 5.0
IV.2.1.6.14
Name Code Data Type Mandatory
Model Penjadwalan
No
Target Name MySQL 5.0 MySQL 5.0 MySQL 5.0 MySQL 5.0 MySQL 5.0
IV.2.1.6.15
Name Code Data Type Mandatory
Minimum Value Maximum Value Default Value Unit Format Cannot Modify List Of Values
No
Value
5/11/2013
Model Penjadwalan
IV.2.1.6.16
Name Code Data Type Mandatory
Minimum Value Maximum Value Default Value Unit Format Cannot Modify List Of Values
No
Target Name MySQL 5.0 MySQL 5.0 MySQL 5.0 MySQL 5.0 MySQL 5.0
IV.2.1.6.17
Identifier_1
PowerDesigner
5/11/2013
Page 26
Model Penjadwalan
IV.2.1.6.18
Name Code Table
Code
Name ExtUnique
Value false
IV.2.1.6.19
Name
TBL_DOSEN_P K
IV.2.1.6.20
Name Code Unique Cluster Primary
PowerDesigner
Model Penjadwalan
No No dosen
Code
Sort Ascending
Name FullText
Value false
IV.2.1.7
IV.2.1.7.1
Name Code DBMS
Table mahasiswa
Card of table mahasiswa
mahasiswa TBL_MAHASISWA MySQL 5.0
IV.2.1.7.2 IV.2.1.7.3
%RULES%
Check constraint name of the table mahasiswa Server validation rule of the table mahasiswa Code preview of the table mahasiswa
TK_TBL_MAHASISWA
IV.2.1.7.4
drop table if exists TBL_MAHASISWA; /*==============================================================*/ /* Table: TBL_MAHASISWA */ /*==============================================================*/ create table TBL_MAHASISWA ( NIM varchar(50) not null, NAMA varchar(100), primary key (NIM) );
PowerDesigner
5/11/2013
Page 28
Model Penjadwalan
IV.2.1.7.5
TabelDatabase
IV.2.1.7.6
ambil
IV.2.1.7.7
ambil
IV.2.1.7.8
Temporary
IV.2.1.7.9
NIM NAMA
IV.2.1.7.10
Name Code Data Type Mandatory
PowerDesigner
5/11/2013
Page 29
Model Penjadwalan
No
Code
Target Name MySQL 5.0 MySQL 5.0 MySQL 5.0 MySQL 5.0 MySQL 5.0
IV.2.1.7.11
Name Code Data Type Mandatory
Minimum Value Maximum Value Default Value Unit Format Cannot Modify List Of Values
No
PowerDesigner
5/11/2013
Page 30
Model Penjadwalan
Target Name MySQL 5.0 MySQL 5.0 MySQL 5.0 MySQL 5.0 MySQL 5.0
IV.2.1.7.12
Identifier_1
IV.2.1.7.13
Name Code Table
Code
Name ExtUnique
Value false
PowerDesigner
5/11/2013
Page 31
Model Penjadwalan
IV.2.1.7.14
Name
TBL_MAHASIS WA_PK
IV.2.1.7.15
Name Code Unique Cluster Primary Foreign Key Alternate Key Table
Code
Sort Ascending
Name FullText
Value false
IV.2.1.8
IV.2.1.8.1
Name Code DBMS
Table mata_kuliah
Card of table mata_kuliah
mata_kuliah TBL_MATA_KULIAH MySQL 5.0
IV.2.1.8.2
TK_TBL_MATA_KULIAH
PowerDesigner
5/11/2013
Page 32
Model Penjadwalan
IV.2.1.8.3
%RULES%
Server validation rule of the table mata_kuliah Code preview of the table mata_kuliah
IV.2.1.8.4
drop table if exists TBL_MATA_KULIAH; /*==============================================================*/ /* Table: TBL_MATA_KULIAH */ /*==============================================================*/ create table TBL_MATA_KULIAH ( KODE_MK varchar(50) not null, KODE_PRODI varchar(50) not null, NAMA_MK varchar(100), SKS int, SEMESTER int, primary key (KODE_MK) ); alter table TBL_MATA_KULIAH add constraint FK_MEMILIKI foreign key (KODE_PRODI) references TBL_PRODI (KODE_PRODI) on delete cascade on update restrict;
IV.2.1.8.5
TabelDatabase
IV.2.1.8.6
ambil mengajar
IV.2.1.8.7
memiliki
IV.2.1.8.8
ambil memiliki mengajar
PowerDesigner
5/11/2013
Page 33
Model Penjadwalan
IV.2.1.8.9
Temporary
IV.2.1.8.10
IV.2.1.8.11
Name Code Data Type Mandatory
Minimum Value Maximum Value Default Value Unit Format Cannot Modify List Of Values
No
Code
PowerDesigner
5/11/2013
Page 34
Model Penjadwalan
Target Name MySQL 5.0 MySQL 5.0 MySQL 5.0 MySQL 5.0 MySQL 5.0
IV.2.1.8.12
Name Code Data Type Mandatory
Minimum Value Maximum Value Default Value Unit Format Cannot Modify List Of Values
No
Code
Value
5/11/2013
Model Penjadwalan
IV.2.1.8.13
Name Code Data Type Mandatory
Minimum Value Maximum Value Default Value Unit Format Cannot Modify List Of Values
No
Target Name MySQL 5.0 MySQL 5.0 MySQL 5.0 MySQL 5.0 MySQL 5.0
IV.2.1.8.14
Name Code Data Type Mandatory
PowerDesigner
Model Penjadwalan
Minimum Value Maximum Value Default Value Unit Format Cannot Modify List Of Values
No
Target Name MySQL 5.0 MySQL 5.0 MySQL 5.0 MySQL 5.0 MySQL 5.0
IV.2.1.8.15
Name Code Data Type Mandatory
Minimum Value Maximum Value Default Value Unit Format Cannot Modify
PowerDesigner
No
5/11/2013 Page 37
Model Penjadwalan
List Of Values
IV.2.1.8.15.4Server validation rule of the column SEMESTER of the table mata_kuliah
%MINMAX% and %LISTVAL% and %CASE% and %RULES%
Target Name MySQL 5.0 MySQL 5.0 MySQL 5.0 MySQL 5.0 MySQL 5.0
IV.2.1.8.16
Identifier_1
IV.2.1.8.17
Name Code Table
Code
PowerDesigner
5/11/2013
Page 38
Model Penjadwalan
Name ExtUnique
Value false
IV.2.1.8.18
Name
IV.2.1.8.19
Name Code Unique Cluster Primary Foreign Key Alternate Key Table
Code
Sort Ascending
Name FullText
Value false
IV.2.1.8.20
Name Code
PowerDesigner
5/11/2013
Page 39
Model Penjadwalan
No No No Yes No mata_kuliah
Name KODE_PRODI
Code KODE_PRODI
Sort Ascending
Name FullText
Value false
IV.2.1.9
IV.2.1.9.1
Name Code DBMS
Table mengajar
Card of table mengajar
mengajar TBL_MENGAJAR MySQL 5.0
IV.2.1.9.2 IV.2.1.9.3
%RULES%
Check constraint name of the table mengajar Server validation rule of the table mengajar Code preview of the table mengajar
TK_TBL_MENGAJAR
IV.2.1.9.4
drop table if exists TBL_MENGAJAR; /*==============================================================*/ /* Table: TBL_MENGAJAR */ /*==============================================================*/ create table TBL_MENGAJAR ( NIP varchar(50) not null, KODE_MK varchar(50) not null, primary key (NIP, KODE_MK)
PowerDesigner
5/11/2013
Page 40
Model Penjadwalan
); alter table TBL_MENGAJAR add constraint FK_MENGAJAR foreign key (NIP) references TBL_DOSEN (NIP) on delete cascade on update restrict; alter table TBL_MENGAJAR add constraint FK_MENGAJAR2 foreign key (KODE_MK) references TBL_MATA_KULIAH (KODE_MK) on delete cascade on update restrict;
IV.2.1.9.5
TabelDatabase
IV.2.1.9.6
mengajar mengajar
IV.2.1.9.7
mengajar mengajar
IV.2.1.9.8
Temporary
IV.2.1.9.9
NIP KODE_MK
IV.2.1.9.10
Name Code Data Type Mandatory
PowerDesigner
5/11/2013
Page 41
Model Penjadwalan
Minimum Value Maximum Value Default Value Unit Format Cannot Modify List Of Values
No
Code
Target Name MySQL 5.0 MySQL 5.0 MySQL 5.0 MySQL 5.0 MySQL 5.0
IV.2.1.9.11
Name Code Data Type Mandatory
Minimum Value
PowerDesigner 5/11/2013 Page 42
Model Penjadwalan
Maximum Value Default Value Unit Format Cannot Modify List Of Values
No
Code
Target Name MySQL 5.0 MySQL 5.0 MySQL 5.0 MySQL 5.0 MySQL 5.0
IV.2.1.9.12
Identifier_1
IV.2.1.9.13
Name Code Table
PowerDesigner
5/11/2013
Page 43
Model Penjadwalan
Code
Name ExtUnique
Value false
IV.2.1.9.14
Name
MENGAJAR_FK MENGAJAR2_F K
IV.2.1.9.15
Name Code Unique Cluster Primary Foreign Key Alternate Key Table
Code
Sort Ascending
Name FullText
Value false
PowerDesigner
5/11/2013
Page 44
Model Penjadwalan
IV.2.1.9.16
Name Code Unique Cluster Primary Foreign Key Alternate Key Table
Code
Sort Ascending
Name FullText
Value false
IV.2.1.10
IV.2.1.10.1
Name Code DBMS
Table prodi
Card of table prodi
prodi TBL_PRODI MySQL 5.0
IV.2.1.10.2 IV.2.1.10.3
%RULES%
Check constraint name of the table prodi Server validation rule of the table prodi Code preview of the table prodi
TK_TBL_PRODI
IV.2.1.10.4
PowerDesigner
5/11/2013
Page 45
Model Penjadwalan
/*==============================================================*/ create table TBL_PRODI ( KODE_PRODI varchar(50) not null, NAMA_PRODI varchar(100), primary key (KODE_PRODI) );
IV.2.1.10.5
TabelDatabase
IV.2.1.10.6
memiliki
IV.2.1.10.7
memiliki
IV.2.1.10.8
Temporary
Name
IV.2.1.10.9
KODE_PRODI NAMA_PRODI
IV.2.1.10.10.2 Check constraint name of the column KODE_PRODI of the table prodi
CK_KODE_PRODI
PowerDesigner
5/11/2013
Page 46
Model Penjadwalan
Minimum Value Maximum Value Default Value Unit Format Cannot Modify List Of Values
No
IV.2.1.10.10.4 Server validation rule of the column KODE_PRODI of the table prodi
%MINMAX% and %LISTVAL% and %CASE% and %RULES%
Code
Target Name MySQL 5.0 MySQL 5.0 MySQL 5.0 MySQL 5.0 MySQL 5.0
IV.2.1.10.11.2 Check constraint name of the column NAMA_PRODI of the table prodi
CK_NAMA_PRODI
PowerDesigner
5/11/2013
Page 47
Model Penjadwalan
No
IV.2.1.10.11.4 Server validation rule of the column NAMA_PRODI of the table prodi
%MINMAX% and %LISTVAL% and %CASE% and %RULES%
Target Name MySQL 5.0 MySQL 5.0 MySQL 5.0 MySQL 5.0 MySQL 5.0
Code
PowerDesigner
5/11/2013
Page 48
Model Penjadwalan
Name ExtUnique
Value false
Name Code Unique Cluster Primary Foreign Key Alternate Key Table
Name KODE_PRODI
Code KODE_PRODI
Sort Ascending
Name FullText
Value false
IV.2.1.11
IV.2.1.11.1
Name Code DBMS
Table punya_waktu
Card of table punya_waktu
punya_waktu TBL_PUNYA_WAKTU MySQL 5.0
PowerDesigner
5/11/2013
Page 49
Model Penjadwalan
IV.2.1.11.2 IV.2.1.11.3
%RULES%
Check constraint name of the table punya_waktu Server validation rule of the table punya_waktu Code preview of the table punya_waktu
TK_TBL_PUNYA_WAKTU
IV.2.1.11.4
drop table if exists TBL_PUNYA_WAKTU; /*==============================================================*/ /* Table: TBL_PUNYA_WAKTU */ /*==============================================================*/ create table TBL_PUNYA_WAKTU ( NIP varchar(50) not null, ID_WAKTU varchar(50) not null, TAHUN_AJARAN varchar(10), primary key (NIP, ID_WAKTU) ); alter table TBL_PUNYA_WAKTU add constraint FK_PUNYA_WAKTU foreign key (NIP) references TBL_DOSEN (NIP) on delete cascade on update restrict; alter table TBL_PUNYA_WAKTU add constraint FK_PUNYA_WAKTU2 foreign key (ID_WAKTU) references TBL_WAKTU (ID_WAKTU) on delete cascade on update restrict;
IV.2.1.11.5
TabelDatabase
IV.2.1.11.6
IV.2.1.11.7
punya_waktu punya_waktu
IV.2.1.11.8
Temporary
Name
PowerDesigner
5/11/2013
Page 50
Model Penjadwalan
IV.2.1.11.9
IV.2.1.11.10.2 Check constraint name of the column NIP of the table punya_waktu
CK_NIP
Minimum Value Maximum Value Default Value Unit Format Cannot Modify List Of Values
No
IV.2.1.11.10.4 Server validation rule of the column NIP of the table punya_waktu
%MINMAX% and %LISTVAL% and %CASE% and %RULES%
Code
Value
PowerDesigner
5/11/2013
Page 51
Model Penjadwalan
IV.2.1.11.11.2 Check constraint name of the column ID_WAKTU of the table punya_waktu
CK_ID_WAKTU
Minimum Value Maximum Value Default Value Unit Format Cannot Modify List Of Values
No
IV.2.1.11.11.4 Server validation rule of the column ID_WAKTU of the table punya_waktu
%MINMAX% and %LISTVAL% and %CASE% and %RULES%
Code
Target Name MySQL 5.0 MySQL 5.0 MySQL 5.0 MySQL 5.0 MySQL 5.0
PowerDesigner
5/11/2013
Page 52
Model Penjadwalan
IV.2.1.11.12.2 Check constraint name of the column TAHUN_AJARAN of the table punya_waktu
CK_TAHUN_AJARAN
Minimum Value Maximum Value Default Value Unit Format Cannot Modify List Of Values
No
IV.2.1.11.12.4 Server validation rule of the column TAHUN_AJARAN of the table punya_waktu
%MINMAX% and %LISTVAL% and %CASE% and %RULES%
Target Name MySQL 5.0 MySQL 5.0 MySQL 5.0 MySQL 5.0 MySQL 5.0
PowerDesigner
5/11/2013
Page 53
Model Penjadwalan
Code
Name ExtUnique
Value false
Name Code Unique Cluster Primary Foreign Key Alternate Key Table
Name
Code
Sort
PowerDesigner
5/11/2013
Page 54
Model Penjadwalan
NIP
NIP
Ascending
Name FullText
Value false
Name Code Unique Cluster Primary Foreign Key Alternate Key Table
Code
Sort Ascending
Name FullText
Value false
IV.2.1.12
IV.2.1.12.1
Name Code DBMS
Table ruang
Card of table ruang
ruang TBL_RUANG MySQL 5.0
IV.2.1.12.2
TK_TBL_RUANG
PowerDesigner
5/11/2013
Page 55
Model Penjadwalan
IV.2.1.12.3
%RULES%
Server validation rule of the table ruang Code preview of the table ruang
IV.2.1.12.4
drop table if exists TBL_RUANG; /*==============================================================*/ /* Table: TBL_RUANG */ /*==============================================================*/ create table TBL_RUANG ( KODE_RUANG varchar(50) not null, NIP varchar(50), NAMA_RUANG varchar(100), KAPASITAS int, primary key (KODE_RUANG) ); alter table TBL_RUANG add constraint FK_PUNYA_RUANG foreign key (NIP) references TBL_DOSEN (NIP) on delete cascade on update restrict;
IV.2.1.12.5
TabelDatabase
IV.2.1.12.6
Name punya_ruang
IV.2.1.12.7
punya_ruang
IV.2.1.12.8
Temporary
Name
IV.2.1.12.9
PowerDesigner
5/11/2013
Page 56
Model Penjadwalan
KAPASITAS
KAPASITAS
IV.2.1.12.10.2 Check constraint name of the column KODE_RUANG of the table ruang
CK_KODE_RUANG
Minimum Value Maximum Value Default Value Unit Format Cannot Modify List Of Values
No
IV.2.1.12.10.4 Server validation rule of the column KODE_RUANG of the table ruang
%MINMAX% and %LISTVAL% and %CASE% and %RULES%
Target Name MySQL 5.0 MySQL 5.0 MySQL 5.0 MySQL 5.0 MySQL 5.0
PowerDesigner
5/11/2013
Page 57
Model Penjadwalan
IV.2.1.12.11.2 Check constraint name of the column NIP of the table ruang
CK_NIP
Minimum Value Maximum Value Default Value Unit Format Cannot Modify List Of Values
No
IV.2.1.12.11.4 Server validation rule of the column NIP of the table ruang
%MINMAX% and %LISTVAL% and %CASE% and %RULES%
Code
Target Name MySQL 5.0 MySQL 5.0 MySQL 5.0 MySQL 5.0 MySQL 5.0
Model Penjadwalan
Mandatory
No
IV.2.1.12.12.2 Check constraint name of the column NAMA_RUANG of the table ruang
CK_NAMA_RUANG
Minimum Value Maximum Value Default Value Unit Format Cannot Modify List Of Values
No
IV.2.1.12.12.4 Server validation rule of the column NAMA_RUANG of the table ruang
%MINMAX% and %LISTVAL% and %CASE% and %RULES%
Target Name MySQL 5.0 MySQL 5.0 MySQL 5.0 MySQL 5.0 MySQL 5.0
IV.2.1.12.13.2 Check constraint name of the column KAPASITAS of the table ruang
CK_KAPASITAS
Model Penjadwalan
No
IV.2.1.12.13.4 Server validation rule of the column KAPASITAS of the table ruang
%MINMAX% and %LISTVAL% and %CASE% and %RULES%
Target Name MySQL 5.0 MySQL 5.0 MySQL 5.0 MySQL 5.0 MySQL 5.0
Name KODE_RUANG
Code KODE_RUANG
Name TBL_RUANG_PK
Code TBL_RUANG_PK
Name
Data Type
Value
Target Name
PowerDesigner
5/11/2013
Page 60
Model Penjadwalan
ExtUnique
(Boolean)
false
MySQL 5.0
Name Code Unique Cluster Primary Foreign Key Alternate Key Table
Name KODE_RUANG
Code KODE_RUANG
Sort Ascending
Name FullText
Value false
PUNYA_RUANG_FK PUNYA_RUANG_FK No No
5/11/2013 Page 61
Model Penjadwalan
No Yes No ruang
Code
Sort Ascending
Name FullText
Value false
IV.2.1.13
IV.2.1.13.1
Name Code DBMS
Table waktu
Card of table waktu
waktu TBL_WAKTU MySQL 5.0
IV.2.1.13.2 IV.2.1.13.3
%RULES%
Check constraint name of the table waktu Server validation rule of the table waktu Code preview of the table waktu
TK_TBL_WAKTU
IV.2.1.13.4
drop table if exists TBL_WAKTU; /*==============================================================*/ /* Table: TBL_WAKTU */ /*==============================================================*/ create table TBL_WAKTU ( ID_WAKTU varchar(50) not null, HARI varchar(20), JAM_MASUK varchar(10), JAM_KELUAR varchar(10), primary key (ID_WAKTU) );
PowerDesigner
5/11/2013
Page 62
Model Penjadwalan
IV.2.1.13.5
TabelDatabase
IV.2.1.13.6
punya_waktu
IV.2.1.13.7
punya_waktu
IV.2.1.13.8
Temporary
Name
IV.2.1.13.9
IV.2.1.13.10.2 Check constraint name of the column ID_WAKTU of the table waktu
CK_ID_WAKTU
Model Penjadwalan
No
IV.2.1.13.10.4 Server validation rule of the column ID_WAKTU of the table waktu
%MINMAX% and %LISTVAL% and %CASE% and %RULES%
Code
Target Name MySQL 5.0 MySQL 5.0 MySQL 5.0 MySQL 5.0 MySQL 5.0
IV.2.1.13.11.2 Check constraint name of the column HARI of the table waktu
CK_HARI
Minimum Value Maximum Value Default Value Unit Format Cannot Modify
No
PowerDesigner
5/11/2013
Page 64
Model Penjadwalan
List Of Values
IV.2.1.13.11.4 Server validation rule of the column HARI of the table waktu
%MINMAX% and %LISTVAL% and %CASE% and %RULES%
Target Name MySQL 5.0 MySQL 5.0 MySQL 5.0 MySQL 5.0 MySQL 5.0
IV.2.1.13.12.2 Check constraint name of the column JAM_MASUK of the table waktu
CK_JAM_MASUK
Minimum Value Maximum Value Default Value Unit Format Cannot Modify List Of Values
No
IV.2.1.13.12.4 Server validation rule of the column JAM_MASUK of the table waktu
%MINMAX% and %LISTVAL% and %CASE% and %RULES%
Target Name MySQL 5.0 MySQL 5.0 MySQL 5.0 MySQL 5.0
Page 65
Model Penjadwalan
ZeroFill
(Boolean)
false
MySQL 5.0
IV.2.1.13.13.2 Check constraint name of the column JAM_KELUAR of the table waktu
CK_JAM_KELUAR
Minimum Value Maximum Value Default Value Unit Format Cannot Modify List Of Values
No
IV.2.1.13.13.4 Server validation rule of the column JAM_KELUAR of the table waktu
%MINMAX% and %LISTVAL% and %CASE% and %RULES%
Target Name MySQL 5.0 MySQL 5.0 MySQL 5.0 MySQL 5.0 MySQL 5.0
Name
PowerDesigner
Identifier_1
5/11/2013 Page 66
Model Penjadwalan
Code Table
IDENTIFIER_1 waktu
Code
Name ExtUnique
Value false
Name Code Unique Cluster Primary Foreign Key Alternate Key Table
PowerDesigner
5/11/2013
Page 67
Model Penjadwalan
Code
Sort Ascending
Name FullText
Value false
PowerDesigner
5/11/2013
Page 68
Model Penjadwalan
PowerDesigner
5/11/2013
Page 69