Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- phpMyAdmin SQL Dump
- -- version 3.5.2.2
- -- http://www.phpmyadmin.net
- --
- -- Host: 127.0.0.1
- -- Generation Time: May 02, 2013 at 12:57 PM
- -- Server version: 5.5.27
- -- PHP Version: 5.4.7
- SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO";
- 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 utf8 */;
- --
- -- Database: `d_smkn2`
- --
- -- --------------------------------------------------------
- --
- -- Table structure for table `d_admin`
- --
- CREATE TABLE IF NOT EXISTS `d_admin` (
- `id_admin` int(35) NOT NULL,
- `username` varchar(15) NOT NULL,
- `password` text NOT NULL,
- `nama` char(60) NOT NULL,
- `email` varchar(100) NOT NULL,
- `last_login` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
- PRIMARY KEY (`id_admin`),
- UNIQUE KEY `username` (`username`,`email`)
- ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
- -- --------------------------------------------------------
- --
- -- Table structure for table `d_jurusan`
- --
- CREATE TABLE IF NOT EXISTS `d_jurusan` (
- `id_jurusan` int(10) NOT NULL AUTO_INCREMENT,
- `jurusan` varchar(60) NOT NULL,
- PRIMARY KEY (`id_jurusan`)
- ) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;
- -- --------------------------------------------------------
- --
- -- Table structure for table `d_kota`
- --
- CREATE TABLE IF NOT EXISTS `d_kota` (
- `id_kota` int(10) NOT NULL,
- `kota` char(35) NOT NULL,
- PRIMARY KEY (`id_kota`)
- ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
- -- --------------------------------------------------------
- --
- -- Table structure for table `d_nilai`
- --
- CREATE TABLE IF NOT EXISTS `d_nilai` (
- `id_nilai` int(35) NOT NULL,
- `mtk` int(10) NOT NULL,
- `bhs_indo` int(10) NOT NULL,
- `bhs_ing` int(10) NOT NULL,
- `produktif` int(10) NOT NULL,
- `rr` varchar(10) NOT NULL,
- `id_status` int(5) NOT NULL,
- PRIMARY KEY (`id_nilai`)
- ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
- -- --------------------------------------------------------
- --
- -- Table structure for table `d_siswa`
- --
- CREATE TABLE IF NOT EXISTS `d_siswa` (
- `id_siswa` int(35) NOT NULL AUTO_INCREMENT,
- `id_nilai` int(35) NOT NULL,
- `nama` char(100) NOT NULL,
- `alamat` text NOT NULL,
- `no_telepon` int(20) NOT NULL,
- `no_ujian` int(25) NOT NULL,
- `tgl_lahir` int(10) NOT NULL,
- `email` varchar(50) NOT NULL,
- `id_kota` int(10) NOT NULL,
- `id_jurusan` int(10) NOT NULL,
- `jenis_kelamin` char(25) NOT NULL,
- `last_login` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
- `image` text NOT NULL,
- PRIMARY KEY (`id_siswa`),
- UNIQUE KEY `no_ujian` (`no_ujian`)
- ) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;
- -- --------------------------------------------------------
- --
- -- Table structure for table `d_status`
- --
- CREATE TABLE IF NOT EXISTS `d_status` (
- `id_status` int(10) NOT NULL,
- `status` text NOT NULL,
- PRIMARY KEY (`id_status`)
- ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
- /*!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 */;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement