Contoh Tabel Pegawai


ini adalah contoh database untuk pegawai

— —————————-

Table structure for `absen`
— —————————-
CREATE TABLE `absen` (
`id_absen` int(11) NOT NULL AUTO_INCREMENT,
`bulan_periode` char(20) DEFAULT NULL,
`tahun_periode` char(4) DEFAULT NULL,
`tgl_abasen` date DEFAULT NULL,
`nik` char(20) DEFAULT NULL,
`status` char(10) DEFAULT NULL,
`jam_masuk` time DEFAULT NULL,
`jam_pulang` time DEFAULT NULL,
PRIMARY KEY (`id_absen`)
) ENGINE=MyISAM AUTO_INCREMENT=55 DEFAULT CHARSET=latin1;

— —————————-

Table structure for `karyawan`
— —————————-
CREATE TABLE `karyawan` (
`nik` char(20) NOT NULL,
`jabatan` char(50) NOT NULL,
`bagian` char(50) NOT NULL,
`nama` varchar(80) DEFAULT NULL,
`sex` char(2) DEFAULT NULL,
`tempat_lhr` varchar(50) DEFAULT NULL,
`tanggal_lhr` date DEFAULT NULL,
`telp` char(20) DEFAULT NULL,
`hp` char(20) DEFAULT NULL,
`alamat` varchar(100) DEFAULT NULL,
`kota` varchar(50) DEFAULT NULL,
`status_kawin` char(5) DEFAULT NULL,
`status_karyawan` varchar(50) DEFAULT NULL,
`gaji_pokok` int(11) DEFAULT NULL,
`gaji_pokok_perjam` int(11) DEFAULT NULL,
`tanggal_masuk` date DEFAULT NULL,
`status` enum(‘AKTIF’,’KELUAR’) DEFAULT ‘AKTIF’,
`tglinsert` datetime NOT NULL,
`tglupdate` datetime NOT NULL,
`userid` char(30) NOT NULL,
PRIMARY KEY (`nik`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;

— —————————-

Table structure for `potongan`
— —————————-
CREATE TABLE `potongan` (
`id_potongan` int(11) NOT NULL AUTO_INCREMENT,
`bulan_periode` char(20) DEFAULT NULL,
`tahun_periode` char(4) DEFAULT NULL,
`tanggal` date DEFAULT NULL,
`nik` char(20) DEFAULT NULL,
`jumlah` int(11) DEFAULT NULL,
`ket` varchar(50) DEFAULT NULL,
PRIMARY KEY (`id_potongan`)
) ENGINE=MyISAM AUTO_INCREMENT=7 DEFAULT CHARSET=latin1;

— —————————-

Table structure for `bagian`
— —————————-
CREATE TABLE `bagian` (
`id_bagian` int(11) NOT NULL AUTO_INCREMENT,
`bagian` char(50) DEFAULT NULL,
PRIMARY KEY (`id_bagian`)
) ENGINE=MyISAM AUTO_INCREMENT=28 DEFAULT CHARSET=latin1;

— —————————-

— Table structure for `jabatan`
— —————————-
CREATE TABLE `jabatan` (
`id_jabatan` int(11) NOT NULL AUTO_INCREMENT,
`jabatan` char(50) DEFAULT NULL,
PRIMARY KEY (`id_jabatan`)
) ENGINE=MyISAM AUTO_INCREMENT=4 DEFAULT CHARSET=latin1;

— —————————-

Table structure for `statusabsen`
— —————————-
CREATE TABLE `tbstatusabsen` (
`id_status_absen` int(11) NOT NULL AUTO_INCREMENT,
`status_absen` char(10) DEFAULT NULL,
PRIMARY KEY (`id_status_absen`)
) ENGINE=MyISAM AUTO_INCREMENT=4 DEFAULT CHARSET=latin1;

— —————————-

— Table structure for `statuskaryawan`
— —————————-
CREATE TABLE `statuskaryawan` (
`id_status_karyawan` int(11) NOT NULL AUTO_INCREMENT,
`status_karyawan` varchar(50) DEFAULT NULL,
PRIMARY KEY (`id_status_karyawan`)
) ENGINE=MyISAM AUTO_INCREMENT=3 DEFAULT CHARSET=latin1;

— —————————-

Table structure for `statuskawin`
— —————————-
CREATE TABLE `statuskawin` (
`kode_kawin` char(5) NOT NULL,
`status_kawin` varchar(50) DEFAULT NULL,
PRIMARY KEY (`kode_kawin`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;

jangan lupa beri komen….. dan jika anda ingin bertanya lebih jauh bisa kirim ke email enasri_enasri@yahoo.com

Tinggalkan Balasan

Isikan data di bawah atau klik salah satu ikon untuk log in:

Logo WordPress.com

You are commenting using your WordPress.com account. Logout / Ubah )

Gambar Twitter

You are commenting using your Twitter account. Logout / Ubah )

Foto Facebook

You are commenting using your Facebook account. Logout / Ubah )

Foto Google+

You are commenting using your Google+ account. Logout / Ubah )

Connecting to %s