-- http://www.phpmyadmin.net
--




--
-- Database: `elib`
--
CREATE DATABASE `elib` DEFAULT CHARACTER SET latin1 COLLATE latin1_swedish_ci;
USE `elib`;

-- --------------------------------------------------------

--
-- Table structure for table `anotification`
--

CREATE TABLE IF NOT EXISTS `anotification` (
  `id` bigint(255) NOT NULL AUTO_INCREMENT,
  `iden` bigint(20) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;

-- --------------------------------------------------------

--
-- Table structure for table `anotification2`
--

CREATE TABLE IF NOT EXISTS `anotification2` (
  `id` bigint(255) NOT NULL AUTO_INCREMENT,
  `iden` bigint(20) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;

-- --------------------------------------------------------

--
-- Table structure for table `articles`
--

CREATE TABLE IF NOT EXISTS `articles` (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `fors` varchar(255) NOT NULL,
  `name` varchar(255) NOT NULL,
  `num` varchar(255) NOT NULL,
  `by` varchar(255) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;

-- --------------------------------------------------------

--
-- Table structure for table `back`
--

CREATE TABLE IF NOT EXISTS `back` (
  `file` varchar(500) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

-- --------------------------------------------------------

--
-- Table structure for table `books`
--

CREATE TABLE IF NOT EXISTS `books` (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `iden` bigint(200) NOT NULL,
  `name` varchar(255) NOT NULL,
  `frontpage` varchar(255) NOT NULL,
  `author` varchar(255) NOT NULL,
  `description` varchar(1000) NOT NULL,
  `dop` varchar(255) NOT NULL,
  `edition` varchar(255) NOT NULL,
  `publisher` varchar(255) NOT NULL,
  `pop` varchar(255) NOT NULL,
  `nop` varchar(255) NOT NULL,
  `file` varchar(255) NOT NULL,
  `type` varchar(255) NOT NULL,
  `artkey` varchar(10000) NOT NULL,
  `course` varchar(255) NOT NULL,
  `by` varchar(255) NOT NULL,
  `date` varchar(255) NOT NULL,
  `underd` varchar(255) NOT NULL,
  `underc` varchar(255) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;

-- --------------------------------------------------------

--
-- Table structure for table `carchive`
--

CREATE TABLE IF NOT EXISTS `carchive` (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `name` varchar(255) NOT NULL,
  `under` bigint(20) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB  DEFAULT CHARSET=latin1 AUTO_INCREMENT=3 ;

-- --------------------------------------------------------

--
-- Table structure for table `conversation`
--

CREATE TABLE IF NOT EXISTS `conversation` (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `iden` bigint(20) NOT NULL,
  `by` varchar(20) NOT NULL,
  `type1` varchar(255) NOT NULL,
  `type2` varchar(255) NOT NULL,
  `message` varchar(1000) NOT NULL,
  `dates` varchar(30) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;

-- --------------------------------------------------------

--
-- Table structure for table `conversationl`
--

CREATE TABLE IF NOT EXISTS `conversationl` (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `iden` bigint(20) NOT NULL,
  `by` varchar(20) NOT NULL,
  `type1` bigint(255) NOT NULL,
  `type2` varchar(255) NOT NULL,
  `message` varchar(1000) NOT NULL,
  `dates` varchar(30) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;

-- --------------------------------------------------------

--
-- Table structure for table `course`
--

CREATE TABLE IF NOT EXISTS `course` (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `name` varchar(255) NOT NULL,
  `under` bigint(20) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB  DEFAULT CHARSET=latin1 AUTO_INCREMENT=3 ;

--
-- Dumping data for table `course`
--

INSERT INTO `course` (`id`, `name`, `under`) VALUES
(1, 'Programming ', 1);

-- --------------------------------------------------------

--
-- Table structure for table `darchive`
--

CREATE TABLE IF NOT EXISTS `darchive` (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `name` varchar(255) NOT NULL,
  `under` bigint(20) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;

-- --------------------------------------------------------

--
-- Table structure for table `department`
--

CREATE TABLE IF NOT EXISTS `department` (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `name` varchar(255) NOT NULL,
  `under` bigint(20) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB  DEFAULT CHARSET=latin1 AUTO_INCREMENT=25 ;

--
-- Dumping data for table `department`
--

INSERT INTO `department` (`id`, `name`, `under`) VALUES
(1, 'Computer Science', 1),
(3, 'Chemistry', 1),
(4, 'Mathematics', 1),
(5, 'Physics', 1),
(6, 'Statistics', 1),
(7, 'Biology', 1),
(8, 'General Science', 1),
(9, 'Accounting', 2),
(10, 'Business Administration', 2),
(11, 'Economics', 2),
(12, 'History', 2),
(13, 'Mass Communication', 2),
(14, 'Philosophy', 2),
(15, 'Political Science', 2),
(16, 'Psychology', 2),
(17, 'Religious Studies', 2),
(18, 'Sociology', 2),
(19, 'Theology', 2),
(20, 'General Studies', 2),
(21, 'English', 2);

-- --------------------------------------------------------

--
-- Table structure for table `faculty`
--

CREATE TABLE IF NOT EXISTS `faculty` (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `name` varchar(255) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB  DEFAULT CHARSET=latin1 AUTO_INCREMENT=4 ;

--
-- Dumping data for table `faculty`
--

INSERT INTO `faculty` (`id`, `name`) VALUES
(1, 'Science'),
(2, 'Humanities and Management Studies');

-- --------------------------------------------------------

--
-- Table structure for table `farchive`
--

CREATE TABLE IF NOT EXISTS `farchive` (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `name` varchar(255) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;

-- --------------------------------------------------------

--
-- Table structure for table `lecturers`
--

CREATE TABLE IF NOT EXISTS `lecturers` (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `sname` varchar(255) NOT NULL,
  `oname` varchar(255) NOT NULL,
  `dept` varchar(255) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB  DEFAULT CHARSET=latin1 AUTO_INCREMENT=3 ;

--
-- Dumping data for table `lecturers`
--

INSERT INTO `lecturers` (`id`, `sname`, `oname`, `dept`) VALUES
(1, 'Oladeji', 'Oreoluwa', '1'),
(2, 'Oladeji', 'Mic', '1');

-- --------------------------------------------------------

--
-- Table structure for table `notification`
--

CREATE TABLE IF NOT EXISTS `notification` (
  `id` bigint(255) NOT NULL AUTO_INCREMENT,
  `iden` bigint(20) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;

-- --------------------------------------------------------

--
-- Table structure for table `notification2`
--

CREATE TABLE IF NOT EXISTS `notification2` (
  `id` bigint(255) NOT NULL AUTO_INCREMENT,
  `iden` bigint(20) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;

-- --------------------------------------------------------

--
-- Table structure for table `students`
--

CREATE TABLE IF NOT EXISTS `students` (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `sname` varchar(255) NOT NULL,
  `oname` varchar(255) NOT NULL,
  `matric` varchar(255) NOT NULL,
  `dept` varchar(255) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;

