Skip to content
Snippets Groups Projects
PasswordManagerSurvey.sql 5.76 KiB
Newer Older
-- phpMyAdmin SQL Dump
-- version 4.9.5deb2
-- https://www.phpmyadmin.net/
--
-- Host: localhost:3306
-- Generation Time: Feb 23, 2022 at 09:07 PM
-- Server version: 8.0.28-0ubuntu0.20.04.3
-- PHP Version: 7.4.3

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: `PasswordManagerSurvey`
--

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

--
-- Table structure for table `Participant`
--

CREATE TABLE `Participant` (
  `PartID` int NOT NULL,
  `PartUID` varchar(128) NOT NULL,
  `Consent` int NOT NULL,
  `AboutYou` int NOT NULL,
  `OnlineHabbits` int NOT NULL,
  `PasswordManagers` int NOT NULL,
  `IpAddr` text NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;

--
-- Dumping data for table `Participant`
--

INSERT INTO `Participant` (`PartID`, `PartUID`, `Consent`, `AboutYou`, `OnlineHabbits`, `PasswordManagers`, `IpAddr`) VALUES
(7, '620eca27bc1313.30833519', 1, 1, 1, 1, '0'),
(8, '620f9aafcc0348.50180618', 1, 1, 1, 1, '0'),
(9, '62169898cfd044.47385950', 1, 1, 1, 1, '::1'),
(10, '62169cabd9c134.63128652', 1, 1, 1, 1, '::1'),
(11, '62169df6a19838.17207366', 1, 1, 1, 1, '::1'),
(12, '6216a1fa2e70d1.95308567', 1, 1, 1, 1, '::1');

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

--
-- Table structure for table `Question`
--

CREATE TABLE `Question` (
  `QuestionID` int NOT NULL,
  `Factor` text NOT NULL,
  `PWMKnowledge` tinyint NOT NULL,
  `Section` text NOT NULL,
  `Type` int NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;

--
-- Dumping data for table `Question`
--

INSERT INTO `Question` (`QuestionID`, `Factor`, `PWMKnowledge`, `Section`, `Type`) VALUES
(1, 'Do you consent to this survey?', 0, 'Consent', 0),
(2, 'What is Your Gender?', 0, 'AboutYou', 0),
(3, 'What is Your Age Category?', 0, 'AboutYou', 0),
(5, 'Some question', 1, 'OnlineHabbits', 1),
(6, 'Some other question', 1, 'OnlineHabbits', 1),
(7, 'yet another queestion', 1, 'PasswordManagers', 1),
(9, 'and one more for good measure!', 1, 'PasswordManagers', 1);

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

--
-- Table structure for table `QuestionAnswer`
--

CREATE TABLE `QuestionAnswer` (
  `AnswerID` int NOT NULL,
  `QuestionID` int NOT NULL,
  `PossibleAnswer` text NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;

--
-- Dumping data for table `QuestionAnswer`
--

INSERT INTO `QuestionAnswer` (`AnswerID`, `QuestionID`, `PossibleAnswer`) VALUES
(1, 2, 'Male'),
(2, 2, 'Female'),
(3, 2, 'Other'),
(4, 3, '18-24'),
(5, 3, '25-34'),
(6, 3, '35-44'),
(7, 3, '45-54'),
(8, 3, '55-64'),
(9, 3, '65+'),
(20, 0, 'SD'),
(21, 0, 'D'),
(22, 0, 'N'),
(23, 0, 'A'),
(24, 0, 'SA'),
(25, 1, 'Yes');

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

--
-- Table structure for table `QuestionResponse`
--

CREATE TABLE `QuestionResponse` (
  `QRID` int NOT NULL,
  `QuestionID` int NOT NULL,
  `PartID` int NOT NULL,
  `AnswerID` int NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;

--
-- Dumping data for table `QuestionResponse`
--

INSERT INTO `QuestionResponse` (`QRID`, `QuestionID`, `PartID`, `AnswerID`) VALUES
(6, 0, 3, 10),
(7, 1, 3, 1),
(8, 2, 3, 4),
(9, 0, 4, 10),
(10, 0, 5, 10),
(11, 1, 5, 1),
(12, 2, 5, 4),
(13, 4, 5, 12),
(14, 5, 5, 15),
(15, 6, 5, 16),
(16, 7, 5, 18),
(17, 0, 6, 10),
(18, 1, 6, 1),
(19, 2, 6, 4),
(20, 4, 6, 12),
(21, 5, 6, 14),
(22, 6, 6, 17),
(23, 7, 6, 19),
(24, 0, 7, 10),
(25, 1, 7, 1),
(26, 2, 7, 4),
(27, 4, 7, 12),
(28, 5, 7, 14),
(29, 6, 7, 16),
(30, 7, 7, 18),
(31, 0, 8, 10),
(32, 1, 8, 2),
(33, 2, 8, 4),
(34, 4, 8, 20),
(35, 5, 8, 21),
(36, 6, 8, 20),
(37, 7, 8, 21),
(38, 8, 9, 25),
(39, 1, 9, 1),
(40, 2, 9, 4),
(41, 4, 9, 20),
(42, 5, 9, 21),
(43, 6, 9, 20),
(44, 7, 9, 21),
(45, 1, 9, 25),
(46, 2, 9, 1),
(47, 3, 9, 4),
(48, 5, 9, 20),
(49, 6, 9, 21),
(50, 7, 9, 20),
(51, 9, 9, 21),
(52, 1, 10, 25),
(53, 1, 10, 25),
(54, 2, 10, 1),
(55, 3, 10, 4),
(56, 5, 10, 20),
(57, 6, 10, 21),
(58, 7, 10, 20),
(59, 9, 10, 22),
(60, 1, 11, 25),
(61, 2, 11, 1),
(62, 3, 11, 4),
(63, 5, 11, 20),
(64, 6, 11, 20),
(65, 7, 11, 20),
(66, 9, 11, 20),
(67, 1, 12, 25),
(68, 2, 12, 1),
(69, 3, 12, 4),
(70, 5, 12, 20),
(71, 6, 12, 20),
(72, 7, 12, 20),
(73, 9, 12, 20);

--
-- Indexes for dumped tables
--

--
-- Indexes for table `Participant`
--
ALTER TABLE `Participant`
  ADD PRIMARY KEY (`PartID`),
  ADD UNIQUE KEY `PartUID` (`PartID`),
  ADD UNIQUE KEY `PartUID_2` (`PartUID`);

--
-- Indexes for table `Question`
--
ALTER TABLE `Question`
  ADD PRIMARY KEY (`QuestionID`);

--
-- Indexes for table `QuestionAnswer`
--
ALTER TABLE `QuestionAnswer`
  ADD PRIMARY KEY (`AnswerID`);

--
-- Indexes for table `QuestionResponse`
--
ALTER TABLE `QuestionResponse`
  ADD PRIMARY KEY (`QRID`);

--
-- AUTO_INCREMENT for dumped tables
--

--
-- AUTO_INCREMENT for table `Participant`
--
ALTER TABLE `Participant`
  MODIFY `PartID` int NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=13;

--
-- AUTO_INCREMENT for table `Question`
--
ALTER TABLE `Question`
  MODIFY `QuestionID` int NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=10;

--
-- AUTO_INCREMENT for table `QuestionAnswer`
--
ALTER TABLE `QuestionAnswer`
  MODIFY `AnswerID` int NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=26;

--
-- AUTO_INCREMENT for table `QuestionResponse`
--
ALTER TABLE `QuestionResponse`
  MODIFY `QRID` int NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=74;
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 */;