Created
June 22, 2017 16:58
-
-
Save lbattaglioli2000/e57ef7d479e33a737a31d0038dadc447 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- phpMyAdmin SQL Dump | |
-- version 4.6.4 | |
-- https://www.phpmyadmin.net/ | |
-- | |
-- Host: localhost:3306 | |
-- Generation Time: Jun 22, 2017 at 06:57 PM | |
-- Server version: 5.6.33 | |
-- PHP Version: 7.0.12 | |
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; | |
SET time_zone = "+00:00"; | |
-- | |
-- Database: `opencg` | |
-- | |
-- -------------------------------------------------------- | |
-- | |
-- Table structure for table `kb` | |
-- | |
CREATE TABLE `kb` ( | |
`id` int(2) NOT NULL, | |
`published` varchar(30) NOT NULL, | |
`title` varchar(140) NOT NULL, | |
`description` varchar(500) NOT NULL, | |
`body` varchar(10000) NOT NULL, | |
`url` varchar(100) NOT NULL DEFAULT '#' | |
) ENGINE=InnoDB DEFAULT CHARSET=utf8; | |
-- -------------------------------------------------------- | |
-- | |
-- Table structure for table `students` | |
-- | |
CREATE TABLE `students` ( | |
`userID` int(6) NOT NULL, | |
`userName` varchar(50) NOT NULL, | |
`email` varchar(50) NOT NULL, | |
`schoolID` int(6) NOT NULL, | |
`schoolName` varchar(50) NOT NULL, | |
`pre` int(2) NOT NULL, | |
`mid` int(2) NOT NULL, | |
`post` int(2) NOT NULL, | |
`preURL` varchar(100) NOT NULL DEFAULT '#', | |
`midURL` varchar(100) NOT NULL DEFAULT '#', | |
`postURL` varchar(100) NOT NULL DEFAULT '#' | |
) ENGINE=InnoDB DEFAULT CHARSET=utf8; | |
-- -------------------------------------------------------- | |
-- | |
-- Table structure for table `teacher` | |
-- | |
CREATE TABLE `teacher` ( | |
`schoolID` int(6) NOT NULL, | |
`schoolName` varchar(50) NOT NULL, | |
`adminName` varchar(50) NOT NULL, | |
`email` varchar(50) NOT NULL | |
) ENGINE=InnoDB DEFAULT CHARSET=utf8; | |
-- | |
-- Indexes for dumped tables | |
-- | |
-- | |
-- Indexes for table `kb` | |
-- | |
ALTER TABLE `kb` | |
ADD PRIMARY KEY (`id`); | |
-- | |
-- Indexes for table `students` | |
-- | |
ALTER TABLE `students` | |
ADD UNIQUE KEY `userID` (`userID`); | |
-- | |
-- Indexes for table `teacher` | |
-- | |
ALTER TABLE `teacher` | |
ADD UNIQUE KEY `schoolID` (`schoolID`); | |
-- | |
-- AUTO_INCREMENT for dumped tables | |
-- | |
-- | |
-- AUTO_INCREMENT for table `kb` | |
-- | |
ALTER TABLE `kb` | |
MODIFY `id` int(2) NOT NULL AUTO_INCREMENT; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment