1. ERD
2. RELASI TABEL
TABEL
Tabel login
Field
|
Type
|
Length
|
Keterangan
|
User name
|
Varchar
|
5
|
Admin
|
Password
|
Varchar
|
10
|
Pus 123
|
Jumlah Length
|
15
|
|
Tabel Pasien
Field
|
Type
|
Length
|
Keterangan
|
Kode_Pasien
|
Integer
|
4
|
Primery Key
|
Nama_kk
|
Varchar
|
20
|
|
Nama_Pasien
|
Varchar
|
20
|
|
Alamat
|
Varchar
|
30
|
|
Jenis_Kelamin
|
Varchar
|
9
|
|
Umur
|
Int
|
3
|
|
Jenis_Kelamin
|
Varchar
|
10
|
|
Jumlah Length
|
96
|
|
Tabel Dokter
Field
|
Type
|
Length
|
Ketrengan
|
Kode_dokter
|
Integer
|
2
|
Primary
key
|
Nama_dokter
|
Varchar
|
20
|
|
Alamat
|
Varchar
|
30
|
|
Jabatan
|
Varchar
|
20
|
|
No_telp
|
Varchar
|
12
|
|
Jumlah
Length
|
79
|
|
Tabel Pengobatan
Field
|
Type
|
Length
|
Ketrangan
|
No_reg
|
Varchar
|
12
|
Primary
Key
|
Kode_pasien
|
Integer
|
4
|
Foreign
Key
|
Kode_dokter
|
Integer
|
8
|
Foreign
Key
|
Tgl_berobat
|
Date
|
Short
date
|
|
Keluhan
|
Varchar
|
100
|
|
Kode_poli
|
Varchar
|
5
|
Foreign
Key
|
Resep
|
Varchar
|
100
|
|
Jumlah
Length
|
229
|
|
Tabel Poli
Field
|
Type
|
Length
|
Ketrangan
|
Kode_poli
|
Varchar
|
5
|
Primary
Key
|
Nama_poli
|
Varchar
|
100
|
|
Jumlah
length
|
105
|
|
Tabel Perawat
Field
|
Type
|
Length
|
Keterangan
|
Kode_Perawat
|
Interger
|
2
|
Primary
Key
|
Nama_Perawat
|
Varchar
|
20
|
|
Alamat
|
Varchar
|
20
|
|
Jumlah
Length
|
42
|
|
Tidak ada komentar:
Posting Komentar