98 lines
2.7 KiB
MySQL
98 lines
2.7 KiB
MySQL
|
-- phpMyAdmin SQL Dump
|
||
|
-- version 4.0.4
|
||
|
-- http://www.phpmyadmin.net
|
||
|
--
|
||
|
-- Host: 127.0.0.1
|
||
|
-- Generation Time: Apr 28, 2014 at 05:01 AM
|
||
|
-- Server version: 5.5.32
|
||
|
-- PHP Version: 5.4.16
|
||
|
|
||
|
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 */;
|
||
|
-- --------------------------------------------------------
|
||
|
|
||
|
--
|
||
|
-- Table structure for table `tbl_candidate`
|
||
|
--
|
||
|
|
||
|
CREATE TABLE IF NOT EXISTS `tbl_candidate` (
|
||
|
`Id` int(11) NOT NULL AUTO_INCREMENT,
|
||
|
`Name` text NOT NULL,
|
||
|
`Description` text NOT NULL,
|
||
|
`Party` text NOT NULL,
|
||
|
`Logo` text NOT NULL,
|
||
|
`Points` int(11) DEFAULT '0',
|
||
|
PRIMARY KEY (`Id`)
|
||
|
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;
|
||
|
|
||
|
-- --------------------------------------------------------
|
||
|
|
||
|
--
|
||
|
-- Table structure for table `tbl_login`
|
||
|
--
|
||
|
|
||
|
CREATE TABLE IF NOT EXISTS `tbl_login` (
|
||
|
`Id` int(11) NOT NULL AUTO_INCREMENT,
|
||
|
`Password` text NOT NULL,
|
||
|
PRIMARY KEY (`Id`)
|
||
|
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=2 ;
|
||
|
|
||
|
--
|
||
|
-- Dumping data for table `tbl_login`
|
||
|
--
|
||
|
|
||
|
INSERT INTO `tbl_login` (`Id`, `Password`) VALUES
|
||
|
(1, '123456');
|
||
|
|
||
|
-- --------------------------------------------------------
|
||
|
|
||
|
--
|
||
|
-- Table structure for table `tbl_party_response`
|
||
|
--
|
||
|
|
||
|
CREATE TABLE IF NOT EXISTS `tbl_party_response` (
|
||
|
`Id` int(11) NOT NULL AUTO_INCREMENT,
|
||
|
`CandidateId` int(11) NOT NULL,
|
||
|
`QuestionId` int(11) NOT NULL,
|
||
|
`Answer` enum('A','D','N') DEFAULT NULL,
|
||
|
`PriorityBit` enum('0','1') NOT NULL DEFAULT '0',
|
||
|
PRIMARY KEY (`Id`)
|
||
|
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;
|
||
|
|
||
|
-- --------------------------------------------------------
|
||
|
|
||
|
--
|
||
|
-- Table structure for table `tbl_questions`
|
||
|
--
|
||
|
|
||
|
CREATE TABLE IF NOT EXISTS `tbl_questions` (
|
||
|
`Id` int(11) NOT NULL AUTO_INCREMENT,
|
||
|
`Heading` text NOT NULL,
|
||
|
`Question` text NOT NULL,
|
||
|
PRIMARY KEY (`Id`)
|
||
|
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;
|
||
|
|
||
|
-- --------------------------------------------------------
|
||
|
|
||
|
--
|
||
|
-- Table structure for table `tbl_question_answer`
|
||
|
--
|
||
|
|
||
|
CREATE TABLE IF NOT EXISTS `tbl_question_answer` (
|
||
|
`Id` int(11) NOT NULL AUTO_INCREMENT,
|
||
|
`QuestionId` int(11) NOT NULL,
|
||
|
`Answer` enum('A','D','N','S') NOT NULL DEFAULT 'S' COMMENT 'A= Agree, N=Nuertal, S=Skip, D=Disagree',
|
||
|
`PriorityBit` enum('0','1') NOT NULL DEFAULT '0',
|
||
|
PRIMARY KEY (`Id`)
|
||
|
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;
|
||
|
|
||
|
/*!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 */;
|