Dokter SQL
Dokter SQL
Dokter SQL
-- version 4.7.9
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: Aug 05, 2019 at 03:20 AM
-- Server version: 10.1.31-MariaDB
-- PHP Version: 7.2.3
--
-- Database: `sik`
--
-- --------------------------------------------------------
--
-- Table structure for table `dokter`
--
--
-- Dumping data for table `dokter`
--
--
-- Indexes for dumped tables
--
--
-- Indexes for table `dokter`
--
ALTER TABLE `dokter`
ADD PRIMARY KEY (`kd_dokter`),
ADD KEY `kd_sps` (`kd_sps`),
ADD KEY `nm_dokter` (`nm_dokter`),
ADD KEY `jk` (`jk`),
ADD KEY `tmp_lahir` (`tmp_lahir`),
ADD KEY `tgl_lahir` (`tgl_lahir`),
ADD KEY `gol_drh` (`gol_drh`),
ADD KEY `agama` (`agama`),
ADD KEY `almt_tgl` (`almt_tgl`),
ADD KEY `no_telp` (`no_telp`),
ADD KEY `stts_nikah` (`stts_nikah`),
ADD KEY `alumni` (`alumni`),
ADD KEY `no_ijn_praktek` (`no_ijn_praktek`),
ADD KEY `kd_dokter` (`kd_dokter`),
ADD KEY `status` (`status`);
--
-- Constraints for dumped tables
--
--
-- Constraints for table `dokter`
--
ALTER TABLE `dokter`
ADD CONSTRAINT `dokter_ibfk_2` FOREIGN KEY (`kd_sps`) REFERENCES `spesialis`
(`kd_sps`) ON UPDATE CASCADE,
ADD CONSTRAINT `dokter_ibfk_3` FOREIGN KEY (`kd_dokter`) REFERENCES `pegawai`
(`nik`) ON UPDATE CASCADE;
COMMIT;