mirror of
https://github.com/Alvin-Zilverstand/school.git
synced 2026-03-07 05:52:46 +01:00
update
This commit is contained in:
@@ -0,0 +1,170 @@
|
||||
-- MySQL dump 10.19 Distrib 10.3.39-MariaDB, for Linux (x86_64)
|
||||
--
|
||||
-- Host: localhost Database: boydfranken_nl_
|
||||
-- ------------------------------------------------------
|
||||
-- Server version 10.3.39-MariaDB
|
||||
|
||||
/*!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 */;
|
||||
/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;
|
||||
/*!40103 SET TIME_ZONE='+00:00' */;
|
||||
/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
|
||||
/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
|
||||
/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
|
||||
/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
|
||||
|
||||
--
|
||||
-- Table structure for table `comments`
|
||||
--
|
||||
|
||||
DROP TABLE IF EXISTS `comments`;
|
||||
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
||||
/*!40101 SET character_set_client = utf8 */;
|
||||
CREATE TABLE `comments` (
|
||||
`id` int(11) NOT NULL AUTO_INCREMENT,
|
||||
`post_id` int(11) NOT NULL,
|
||||
`user_id` int(11) NOT NULL,
|
||||
`parent_id` int(11) DEFAULT NULL,
|
||||
`content` text NOT NULL,
|
||||
`created_at` timestamp NOT NULL DEFAULT current_timestamp(),
|
||||
`updated_at` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
|
||||
PRIMARY KEY (`id`),
|
||||
KEY `post_id` (`post_id`),
|
||||
KEY `user_id` (`user_id`),
|
||||
KEY `post_id_2` (`post_id`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_general_ci;
|
||||
/*!40101 SET character_set_client = @saved_cs_client */;
|
||||
|
||||
--
|
||||
-- Dumping data for table `comments`
|
||||
--
|
||||
|
||||
LOCK TABLES `comments` WRITE;
|
||||
/*!40000 ALTER TABLE `comments` DISABLE KEYS */;
|
||||
/*!40000 ALTER TABLE `comments` ENABLE KEYS */;
|
||||
UNLOCK TABLES;
|
||||
|
||||
--
|
||||
-- Table structure for table `posts`
|
||||
--
|
||||
|
||||
DROP TABLE IF EXISTS `posts`;
|
||||
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
||||
/*!40101 SET character_set_client = utf8 */;
|
||||
CREATE TABLE `posts` (
|
||||
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
|
||||
`user_id` int(10) unsigned NOT NULL,
|
||||
`content` text NOT NULL,
|
||||
`created_at` timestamp NOT NULL DEFAULT current_timestamp(),
|
||||
PRIMARY KEY (`id`),
|
||||
KEY `user_id` (`user_id`)
|
||||
) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
|
||||
/*!40101 SET character_set_client = @saved_cs_client */;
|
||||
|
||||
--
|
||||
-- Dumping data for table `posts`
|
||||
--
|
||||
|
||||
LOCK TABLES `posts` WRITE;
|
||||
/*!40000 ALTER TABLE `posts` DISABLE KEYS */;
|
||||
INSERT INTO `posts` VALUES (4,28,'Hallo\r\n','2024-12-05 20:22:44'),(5,30,'test','2024-12-06 09:05:02');
|
||||
/*!40000 ALTER TABLE `posts` ENABLE KEYS */;
|
||||
UNLOCK TABLES;
|
||||
|
||||
--
|
||||
-- Table structure for table `profiles`
|
||||
--
|
||||
|
||||
DROP TABLE IF EXISTS `profiles`;
|
||||
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
||||
/*!40101 SET character_set_client = utf8 */;
|
||||
CREATE TABLE `profiles` (
|
||||
`user_id` int(11) NOT NULL,
|
||||
`profile_picture` varchar(255) DEFAULT 'assets/images/jp_balkenende.jpg',
|
||||
`bio` text DEFAULT 'Bio niet ingesteld.',
|
||||
`created_at` datetime NOT NULL DEFAULT current_timestamp(),
|
||||
`updated_at` datetime NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
|
||||
`Address` text DEFAULT NULL,
|
||||
`Hobbies` text DEFAULT NULL,
|
||||
`Job` text DEFAULT NULL,
|
||||
`Skill` text DEFAULT NULL,
|
||||
PRIMARY KEY (`user_id`),
|
||||
CONSTRAINT `fk_userprofile_userid_users_id` FOREIGN KEY (`user_id`) REFERENCES `user` (`id`) ON DELETE CASCADE
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_general_ci;
|
||||
/*!40101 SET character_set_client = @saved_cs_client */;
|
||||
|
||||
--
|
||||
-- Dumping data for table `profiles`
|
||||
--
|
||||
|
||||
LOCK TABLES `profiles` WRITE;
|
||||
/*!40000 ALTER TABLE `profiles` DISABLE KEYS */;
|
||||
INSERT INTO `profiles` VALUES (26,'assets/images/jp_balkenende.jpg','Bio niet ingesteld.','2024-12-05 20:52:34','2024-12-05 20:52:34',NULL,NULL,NULL,NULL),(27,'assets/images/jp_balkenende.jpg','Bio niet ingesteld.','2024-12-05 20:53:34','2024-12-05 20:53:34',NULL,NULL,NULL,NULL),(28,'assets/images/jp_balkenende.jpg','Bio niet ingesteld.','2024-12-05 20:54:10','2024-12-05 20:54:10',NULL,NULL,NULL,NULL),(29,'assets/images/jp_balkenende.jpg','Bio niet ingesteld.','2024-12-05 20:54:39','2024-12-05 20:54:39',NULL,NULL,NULL,NULL),(30,'assets/images/jp_balkenende.jpg','Bio niet ingesteld.','2024-12-05 22:18:44','2024-12-05 22:18:44',NULL,NULL,NULL,NULL);
|
||||
/*!40000 ALTER TABLE `profiles` ENABLE KEYS */;
|
||||
UNLOCK TABLES;
|
||||
|
||||
--
|
||||
-- Table structure for table `user`
|
||||
--
|
||||
|
||||
DROP TABLE IF EXISTS `user`;
|
||||
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
||||
/*!40101 SET character_set_client = utf8 */;
|
||||
CREATE TABLE `user` (
|
||||
`id` int(11) NOT NULL AUTO_INCREMENT,
|
||||
`fname` varchar(22) NOT NULL,
|
||||
`lname` varchar(22) NOT NULL,
|
||||
`profile picture` varchar(255) DEFAULT 'assets/images/jp_balkenende.jpg',
|
||||
`email` varchar(22) NOT NULL,
|
||||
`password` varchar(200) NOT NULL,
|
||||
`created_at` date NOT NULL DEFAULT current_timestamp(),
|
||||
PRIMARY KEY (`id`)
|
||||
) ENGINE=InnoDB AUTO_INCREMENT=31 DEFAULT CHARSET=utf8 COLLATE=utf8_general_ci;
|
||||
/*!40101 SET character_set_client = @saved_cs_client */;
|
||||
|
||||
--
|
||||
-- Dumping data for table `user`
|
||||
--
|
||||
|
||||
LOCK TABLES `user` WRITE;
|
||||
/*!40000 ALTER TABLE `user` DISABLE KEYS */;
|
||||
INSERT INTO `user` VALUES (26,'Gino','Tillemanns','assets/images/jp_balkenende.jpg','522766@vistacollege.nl','$2y$10$tQVd/Cd4YSaNKo6ihCvp2eCtyQVCVW/R1wkRdi3vSHOlF16Bj7cRa','2024-12-05'),(27,'Boyd','Franken','assets/images/jp_balkenende.jpg','508831@vistacollege.nl','$2y$10$Z6AVQ1XdJdEJ2hontZMMu.g1a5RCimBtQ/B8hJmoIA6jHCI1R13I.','2024-12-05'),(28,'Alvin','Zilverstand','assets/images/jp_balkenende.jpg','524715@vistacollege.nl','$2y$10$smehNGgAlzkFSIqeHzkpb.AjZTrahrJhGEU4IHadn/hHyT98iF66.','2024-12-05'),(29,'Megan','Bolster','assets/images/jp_balkenende.jpg','501594@vistacollege.nl','$2y$10$JvxbmEQCuEmUmvY6sxkN8OurHlrGa8OJ2IVJID/4UEHPRImVXkDBK','2024-12-05'),(30,'Boyd','Franken','assets/images/jp_balkenende.jpg','test@email.nl','$2y$10$.ogrp0Ta3TQ0o7/NCWa7IOPpMGaMltxWJTfJLaZMQojXJ4walc3ZW','2024-12-05');
|
||||
/*!40000 ALTER TABLE `user` ENABLE KEYS */;
|
||||
UNLOCK TABLES;
|
||||
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
|
||||
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
|
||||
/*!50003 SET @saved_col_connection = @@collation_connection */ ;
|
||||
/*!50003 SET character_set_client = utf8mb4 */ ;
|
||||
/*!50003 SET character_set_results = utf8mb4 */ ;
|
||||
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
|
||||
/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
|
||||
/*!50003 SET sql_mode = 'ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION' */ ;
|
||||
DELIMITER ;;
|
||||
/*!50003 CREATE*/ /* 50017 DEFINER=`run`@`%`*/ /*!50003 TRIGGER after_user_insert
|
||||
AFTER INSERT ON user
|
||||
FOR EACH ROW
|
||||
BEGIN
|
||||
INSERT INTO profiles (user_id) VALUES (NEW.id);
|
||||
END */;;
|
||||
DELIMITER ;
|
||||
/*!50003 SET sql_mode = @saved_sql_mode */ ;
|
||||
/*!50003 SET character_set_client = @saved_cs_client */ ;
|
||||
/*!50003 SET character_set_results = @saved_cs_results */ ;
|
||||
/*!50003 SET collation_connection = @saved_col_connection */ ;
|
||||
|
||||
--
|
||||
-- Dumping routines for database 'boydfranken_nl_'
|
||||
--
|
||||
/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;
|
||||
|
||||
/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
|
||||
/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
|
||||
/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
|
||||
/*!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 */;
|
||||
/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
|
||||
|
||||
-- Dump completed on 2024-12-06 20:55:18
|
||||
Reference in New Issue
Block a user