-- phpMyAdmin SQL Dump
-- version 4.9.5
-- https://www.phpmyadmin.net/
--
-- Host: localhost:3306
-- Generation Time: Jun 12, 2021 at 11:44 AM
-- Server version: 5.7.34
-- PHP Version: 7.3.28

SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET AUTOCOMMIT = 0;
START TRANSACTION;
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 utf8mb4 */;

--
-- Database: `musaddiq_onlinevote`
--

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

--
-- Table structure for table `question`
--

CREATE TABLE `question` (
  `id` int(255) NOT NULL,
  `que` text NOT NULL,
  `option1` varchar(222) NOT NULL,
  `option2` varchar(222) NOT NULL,
  `option3` varchar(222) NOT NULL,
  `option4` varchar(222) NOT NULL,
  `option5` varchar(255) NOT NULL,
  `ans` varchar(222) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `question`
--

INSERT INTO `question` (`id`, `que`, `option1`, `option2`, `option3`, `option4`, `option5`, `ans`) VALUES
(1, 'Which party do you want to vote for?', 'BJP', 'Congress', 'Shivsena', 'None of the above', '', 'a');

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

--
-- Table structure for table `vote`
--

CREATE TABLE `vote` (
  `id` int(11) NOT NULL,
  `date` date NOT NULL,
  `name` varchar(255) NOT NULL,
  `voterid` varchar(255) NOT NULL,
  `que_id` int(11) NOT NULL,
  `ans_id` varchar(255) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `vote`
--

INSERT INTO `vote` (`id`, `date`, `name`, `voterid`, `que_id`, `ans_id`) VALUES
(1, '2021-05-26', 'Puja Nandkumar Shinde', '1', 1, 'None of the above'),
(2, '2021-05-26', 'Shreedham TRADING AND CO', '2', 1, 'BJP'),
(3, '2021-05-26', 'asifa', '9856632562', 1, 'Congress'),
(4, '2021-05-26', 'live', '3', 1, 'None of the above'),
(5, '2021-05-26', 'asifa', '9856632562', 1, 'Congress'),
(6, '2021-06-08', 'Asifa', '213457', 1, 'Congress'),
(7, '2021-06-08', 'Nora', '2134576', 1, 'Shivsena'),
(8, '2021-06-09', 'Chavan Mayuri ', '1234', 1, 'BJP'),
(9, '2021-06-09', 'Prathamesh', '123456789', 1, 'Shivsena'),
(10, '2021-06-09', 'Prathamesh', '123456789', 1, 'Shivsena'),
(11, '2021-06-09', 'Abc', '12345678900', 1, 'Congress'),
(12, '2021-06-09', '', '', 1, 'BJP'),
(13, '2021-06-11', '', '', 1, 'None of the above'),
(14, '2021-06-11', '', '', 1, 'BJP'),
(15, '2021-06-11', '', '', 1, 'None of the above'),
(16, '2021-06-11', '', '', 1, 'None of the above'),
(17, '2021-06-11', '', '', 1, 'Congress'),
(18, '2021-06-11', 'Pratiksha ', '567', 1, 'None of the above');

--
-- Indexes for dumped tables
--

--
-- Indexes for table `question`
--
ALTER TABLE `question`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `vote`
--
ALTER TABLE `vote`
  ADD PRIMARY KEY (`id`);

--
-- AUTO_INCREMENT for dumped tables
--

--
-- AUTO_INCREMENT for table `question`
--
ALTER TABLE `question`
  MODIFY `id` int(255) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;

--
-- AUTO_INCREMENT for table `vote`
--
ALTER TABLE `vote`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=19;
COMMIT;

/*!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 */;
