text: -- phpMyAdmin SQL Dump
  -- version 5.1.0
  -- https://www.phpmyadmin.net/
  --
  -- Host: localhost
  -- Generation Time: Jul 20, 2021 at 08:52 AM
  -- Server version: 10.4.19-MariaDB
  -- PHP Version: 8.0.6
  
  SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
  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: `techstra_db`
  --
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `post`
  --
  
  CREATE TABLE `post` (
    `post_id` int(11) NOT NULL,
    `post_title` varchar(50) NOT NULL,
    `post_description` varchar(255) NOT NULL,
    `post_photo` varchar(50) NOT NULL,
    `user_id` int(11) NOT NULL
  ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
  
  --
  -- Dumping data for table `post`
  --
  
  INSERT INTO `post` (`post_id`, `post_title`, `post_description`, `post_photo`, `user_id`) VALUES
  (3, 'Do You Bleed', 'Special Combo Kick', 'art-1.jpg', 1),
  (5, 'Happy Candy', 'Vibes To Void', 'art-2.jpg', 1),
  (6, 'Testosterone Ingrown', 'Holy Grails!', 'art-3.jpg', 1),
  (7, 'Macintoshi Lite', 'California Man', 'art-4.jpg', 1),
  (8, 'We Rule', 'The honeyland', 'art-5.jpg', 1),
  (9, 'My Main Man', 'Mail Me', 'art-6.jpg', 1),
  (10, 'You Should Work', 'Should have been', 'art-7.jpg', 1),
  (11, 'The One We Want', 'It is her', 'art-8.jpg', 1);
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `user`
  --
  
  CREATE TABLE `user` (
    `user_id` int(11) NOT NULL,
    `user_firstname` varchar(50) NOT NULL,
    `user_lastname` varchar(50) NOT NULL,
    `user_username` varchar(100) NOT NULL,
    `user_password` varchar(50) NOT NULL,
    `user_email` varchar(75) NOT NULL,
    `user_code` varchar(50) NOT NULL,
    `user_verification` tinyint(1) NOT NULL
  ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
  
  --
  -- Dumping data for table `user`
  --
  
  INSERT INTO `user` (`user_id`, `user_firstname`, `user_lastname`, `user_username`, `user_password`, `user_email`, `user_code`, `user_verification`) VALUES
  (1, 'Janine Charles', 'Salon', 'admin', '123', 'admin@admin.com', '', 1),
  (2, 'August', 'Salanguit', 'boom', '123', '201812311@fit.edu.ph', '', 1);
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `userinfo`
  --
  
  CREATE TABLE `userinfo` (
    `userinfo_id` int(11) NOT NULL,
    `userinfo_firstname` varchar(100) NOT NULL,
    `userinfo_lastname` varchar(100) NOT NULL,
    `userinfo_bio` varchar(255) NOT NULL,
    `userinfo_image` varchar(100) NOT NULL,
    `user_id` int(11) NOT NULL
  ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
  
  --
  -- Dumping data for table `userinfo`
  --
  
  INSERT INTO `userinfo` (`userinfo_id`, `userinfo_firstname`, `userinfo_lastname`, `userinfo_bio`, `userinfo_image`, `user_id`) VALUES
  (1, 'Janine Charles', 'Salon', 'Hi! I am a sneaker enthusiast.', 'astra-tech.jpg', 1),
  (2, 'August', 'Salanguit', 'Pogi is Me', '', 2);
  
  --
  -- Indexes for dumped tables
  --
  
  --
  -- Indexes for table `post`
  --
  ALTER TABLE `post`
    ADD PRIMARY KEY (`post_id`),
    ADD KEY `userinfo FK user_id` (`user_id`);
  
  --
  -- Indexes for table `user`
  --
  ALTER TABLE `user`
    ADD PRIMARY KEY (`user_id`),
    ADD UNIQUE KEY `user_username` (`user_username`),
    ADD UNIQUE KEY `user_email` (`user_email`);
  
  --
  -- Indexes for table `userinfo`
  --
  ALTER TABLE `userinfo`
    ADD PRIMARY KEY (`userinfo_id`),
    ADD KEY `FK_user_id` (`user_id`);
  
  --
  -- AUTO_INCREMENT for dumped tables
  --
  
  --
  -- AUTO_INCREMENT for table `post`
  --
  ALTER TABLE `post`
    MODIFY `post_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=15;
  
  --
  -- AUTO_INCREMENT for table `user`
  --
  ALTER TABLE `user`
    MODIFY `user_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;
  
  --
  -- AUTO_INCREMENT for table `userinfo`
  --
  ALTER TABLE `userinfo`
    MODIFY `userinfo_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;
  
  --
  -- Constraints for dumped tables
  --
  
  --
  -- Constraints for table `post`
  --
  ALTER TABLE `post`
    ADD CONSTRAINT `userinfo FK user_id` FOREIGN KEY (`user_id`) REFERENCES `user` (`user_id`);
  
  --
  -- Constraints for table `userinfo`
  --
  ALTER TABLE `userinfo`
    ADD CONSTRAINT `FK_user_id` FOREIGN KEY (`user_id`) REFERENCES `user` (`user_id`) ON DELETE CASCADE ON UPDATE CASCADE;
  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 */;
  