-- https://www.phpmyadmin.net/
--

START TRANSACTION;



--
-- Database: `braintoken`
--

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

--
-- Table structure for table `assignments`
--

CREATE TABLE `assignments` (
  `id` int(255) NOT NULL,
  `assignmentName` varchar(2000) NOT NULL,
  `classId` varchar(200) NOT NULL,
  `question1` varchar(2000) DEFAULT NULL,
  `question2` varchar(2000) DEFAULT NULL,
  `question3` varchar(2000) DEFAULT NULL,
  `q1a` varchar(2000) DEFAULT NULL,
  `q1b` varchar(2000) DEFAULT NULL,
  `q1c` varchar(2000) DEFAULT NULL,
  `q1d` varchar(2000) DEFAULT NULL,
  `q2a` varchar(2000) DEFAULT NULL,
  `q2b` varchar(2000) DEFAULT NULL,
  `q2c` varchar(2000) DEFAULT NULL,
  `q2d` varchar(2000) DEFAULT NULL,
  `q3a` varchar(2000) DEFAULT NULL,
  `q3b` varchar(2000) DEFAULT NULL,
  `q3c` varchar(2000) DEFAULT NULL,
  `q3d` varchar(2000) DEFAULT NULL,
  `q1Answer` varchar(2000) NOT NULL,
  `q2Answer` varchar(2000) NOT NULL,
  `q3Answer` varchar(2000) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `assignments`
--

INSERT INTO `assignments` (`id`, `assignmentName`, `classId`, `question1`, `question2`, `question3`, `q1a`, `q1b`, `q1c`, `q1d`, `q2a`, `q2b`, `q2c`, `q2d`, `q3a`, `q3b`, `q3c`, `q3d`, `q1Answer`, `q2Answer`, `q3Answer`) VALUES
(15, 'Wednesday January 19th', 'higgy84601', 'What is lossy compression?', 'What is lossless compression?', 'What is a fully connected network?', 'Information is lost when data is compressed', 'Information is not lost when data is compressed', '', '', 'Information is lost when data is compressed', 'Information is not lost when data is compressed', '', '', 'Where all computers are connected to each other', 'Where the outer ring of computers are the only ones connected', '', '', 'a', 'b', 'a'),
(16, 'Friday February 18th', 'higgy84601', 'Question 1', 'Question 2', 'Question 2', 'q1', 'q2', '', '', 'q1', 'q2', '', '', 'q1', 'q2', '', '', 'a', 'a', 'a');

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

--
-- Table structure for table `braintoken`
--

CREATE TABLE `braintoken` (
  `id` int(11) NOT NULL,
  `tokenSupply` varchar(200) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `braintoken`
--

INSERT INTO `braintoken` (`id`, `tokenSupply`) VALUES
(1, '99400');

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

--
-- Table structure for table `studentsubmissions`
--

CREATE TABLE `studentsubmissions` (
  `id` int(255) NOT NULL,
  `name` varchar(2000) NOT NULL,
  `grade` int(3) DEFAULT NULL,
  `q1` varchar(1) DEFAULT NULL,
  `q2` varchar(1) DEFAULT NULL,
  `q3` varchar(1) DEFAULT NULL,
  `assignmentName` varchar(2000) NOT NULL,
  `classId` varchar(200) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `studentsubmissions`
--

INSERT INTO `studentsubmissions` (`id`, `name`, `grade`, `q1`, `q2`, `q3`, `assignmentName`, `classId`) VALUES
(32, 'davidt', 100, 'a', 'b', 'a', 'Wednesday January 19th', 'higgy84601'),
(33, 'bradenpotter', 100, 'a', 'b', 'a', 'Wednesday January 19th', 'higgy84601'),
(34, 'JustinW', 100, 'a', 'b', 'a', 'Wednesday January 19th', 'higgy84601'),
(35, 'MichaelS', 100, 'a', 'b', 'a', 'Wednesday January 19th', 'higgy84601'),
(36, 'MacyWilson1', 100, 'a', 'b', 'a', 'Wednesday January 19th', 'higgy84601'),
(37, 'davidt', 100, 'a', 'a', 'a', 'Friday February 18th', 'higgy84601');

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

--
-- Table structure for table `users`
--

CREATE TABLE `users` (
  `id` int(11) NOT NULL,
  `username` varchar(50) NOT NULL,
  `password` varchar(255) NOT NULL,
  `teacher` varchar(10) DEFAULT NULL,
  `classId` varchar(20) DEFAULT NULL,
  `wallet` varchar(200) DEFAULT NULL,
  `created_at` datetime DEFAULT current_timestamp(),
  `deletion_date` varchar(200) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `users`
--

INSERT INTO `users` (`id`, `username`, `password`, `teacher`, `classId`, `wallet`, `created_at`, `deletion_date`) VALUES
(8, 'higgy', '$2y$10$kmqvp4tU/B1HZHapsmmYCe/TKB62KJwVFCpkibCM5fg5kUd2H86K.', 'teacher', 'higgy84601', NULL, '2022-01-19 08:37:36', NULL),
(9, 'davidt', '$2y$10$Tvii2ACOsw2W6K1phBuKX.z6rcS2mcB9LKCEoEve8udNp3gE1eql2', NULL, 'higgy84601', '200', '2022-01-19 08:46:03', NULL),
(10, 'MichaelS', '$2y$10$kjjzXCA4wiOoTcruzT9EqOztOxLudLLl0eMEfjKA6QMLzMrNf91dS', NULL, 'higgy84601', '100', '2022-01-19 09:09:16', NULL),
(11, 'MacyWilson1', '$2y$10$p4n0rkWscLZvvhzKX.mSvuJEh68rlCGzu8Hk/Auh.X5n/DyMSQpWy', NULL, 'higgy84601', '100', '2022-01-19 09:10:39', NULL),
(12, 'bradenpotter', '$2y$10$xUWnFsU8Eh6lBMxmFGebN.WByMKqONEMZcLbO7rw6RlG4zZiQTtQa', NULL, 'higgy84601', '100', '2022-01-19 09:11:50', NULL),
(13, 'JustinW', '$2y$10$LmIMJ4uoyRzO6GnYf3yPOeI8f0CS7mbMN.jbmad6I7DBt1eNPUO8C', NULL, 'higgy84601', '100', '2022-01-19 09:17:23', NULL),
(14, 'ellabaker24', '$2y$10$3edTRYB3fJfjZjhuBzvUsOThwPbFLMeCORk1uyY0PynNqGxML8KES', NULL, '0', NULL, '2022-01-19 09:49:11', NULL),
(15, 'emmaridley15', '$2y$10$/dsytGChx3.ImqHuSuX9mO9vU0pzef3hwON52TwPOChfBVHh5eUEu', NULL, '0', NULL, '2022-01-19 09:49:11', NULL),
(16, 'briseismoon', '$2y$10$4L4gScubNZMpLEarSnlSLO1PGiCQk6SmrQrxmqwuccJelE/YdEbNa', NULL, '0', NULL, '2022-01-19 09:49:14', NULL),
(17, 'IsaacL1', '$2y$10$Y0GbSkBvY4pzmEFIU42rveZOvhnbM.I94faB3dsnIoxqRgA6VZGj.', NULL, '0', NULL, '2022-01-19 09:49:14', NULL),
(18, 'asenwaycaster', '$2y$10$f6.XcEwoYhkoV.lZ7Mjrg.KTa3UuNlXGaYVVt2QCc44z120vrkXdu', NULL, '0', NULL, '2022-01-19 09:49:22', NULL),
(19, '75603', '$2y$10$ZoF/TrvFK.dMcaHrzvtL0OgcKz0G1ZiSnQ4DvE2olT96j301g7D2m', NULL, '0', NULL, '2022-01-19 09:49:30', NULL),
(20, 'richlyn_blair', '$2y$10$ZESA3RLlFQ0D8USpCuLzneF9KyswQkmqWfIepzDUzZtHIDh6MIWcK', NULL, '0', NULL, '2022-01-19 09:49:50', NULL),
(21, 'VeryKross', '$2y$10$qw/gD2VlAI7.txiSlHfoaOypHg9BFY/lyZOdwSYwHOuGFW39Am6o6', NULL, '0', NULL, '2022-01-19 09:51:19', NULL),
(22, 'Barophobia', '$2y$10$pr79sHLuEXjQJOeBsLN/KeLLqY53O0/6.6k9Pabt1nj3dBbWFeybO', NULL, '0', NULL, '2022-01-24 09:33:18', NULL);

--
-- Indexes for dumped tables
--

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

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

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

--
-- Indexes for table `users`
--
ALTER TABLE `users`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `username` (`username`);

--
-- AUTO_INCREMENT for dumped tables
--

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

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

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

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

