text: -- MySQL dump 10.13  Distrib 5.7.27, for Linux (x86_64)
  --
  -- Host: localhost    Database: yii2advanced
  -- ------------------------------------------------------
  -- Server version	5.7.27-0ubuntu0.18.04.1
  
  /*!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 utf8 */;
  /*!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 `courses`
  --
  
  DROP TABLE IF EXISTS `courses`;
  /*!40101 SET @saved_cs_client     = @@character_set_client */;
  /*!40101 SET character_set_client = utf8 */;
  CREATE TABLE `courses` (
    `id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'ID',
    `name` varchar(500) DEFAULT NULL,
    `description` varchar(500) DEFAULT NULL,
    `img` varchar(500) DEFAULT NULL,
    `video` varchar(500) DEFAULT NULL,
    PRIMARY KEY (`id`),
    KEY `idx-courses-id` (`id`)
  ) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=latin1;
  /*!40101 SET character_set_client = @saved_cs_client */;
  
  --
  -- Dumping data for table `courses`
  --
  
  LOCK TABLES `courses` WRITE;
  /*!40000 ALTER TABLE `courses` DISABLE KEYS */;
  INSERT INTO `courses` VALUES (1,'PHP','Hypertext Preprocessor is a general-purpose programming language originally designed for web development','https://www.tutorialrepublic.com/lib/images/php-illustration.png','OK_JCtrrv-c'),(2,'Java','Java is a general-purpose programming language that is class-based, object-oriented','https://miro.medium.com/max/1838/1*_FFpkCWD-KwQmc7oevCRBQ.jpeg','grEKMHGYyns'),(3,'Python','Python is an interpreted, high-level, general-purpose programming language. ','https://aptonic.com/blog/wp-content/uploads/2015/08/python-logo.png','rfscVS0vtbw'),(4,'Ruby','Ruby is an interpreted, high-level, general-purpose programming language.','https://vignette.wikia.nocookie.net/logopedia/images/c/c9/Ruby-language.png/revision/latest?cb=20130122221837','t_ispmWmdjY'),(5,'JavaScript','JavaScript, often abbreviated as JS, is a high-level, interpreted programming language that conforms to the ECMAScript specification. ','http://www.tutorialsmade.com/wp-content/uploads/2017/05/javascript.png','PkZNo7MFNFg');
  /*!40000 ALTER TABLE `courses` ENABLE KEYS */;
  UNLOCK TABLES;
  
  --
  -- Table structure for table `migration`
  --
  
  DROP TABLE IF EXISTS `migration`;
  /*!40101 SET @saved_cs_client     = @@character_set_client */;
  /*!40101 SET character_set_client = utf8 */;
  CREATE TABLE `migration` (
    `version` varchar(180) NOT NULL,
    `apply_time` int(11) DEFAULT NULL,
    PRIMARY KEY (`version`)
  ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
  /*!40101 SET character_set_client = @saved_cs_client */;
  
  --
  -- Dumping data for table `migration`
  --
  
  LOCK TABLES `migration` WRITE;
  /*!40000 ALTER TABLE `migration` DISABLE KEYS */;
  INSERT INTO `migration` VALUES ('m000000_000000_base',1564842964),('m130524_201442_init',1564843056),('m190124_110200_add_verification_token_column_to_user_table',1564843058),('m190803_143941_create_courses_table',1564843370),('m190803_144107_create_user_courses_table',1564843378);
  /*!40000 ALTER TABLE `migration` 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,
    `username` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
    `auth_key` varchar(32) COLLATE utf8_unicode_ci NOT NULL,
    `password_hash` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
    `password_reset_token` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
    `email` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
    `status` smallint(6) NOT NULL DEFAULT '10',
    `created_at` int(11) NOT NULL,
    `updated_at` int(11) NOT NULL,
    `verification_token` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
    PRIMARY KEY (`id`),
    UNIQUE KEY `username` (`username`),
    UNIQUE KEY `email` (`email`),
    UNIQUE KEY `password_reset_token` (`password_reset_token`)
  ) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_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 (1,'Iman','dt-vH0NKz-W7jdoesAR9H0Kd4VExP5jV','$2y$13$cOSdUeydqWM8G3q9Hil/j.sipdV9nFDZAp5taau3MSbt3RceGfsQS',NULL,'elokour.iman@gmail.com',10,1564846680,1564846680,'D034-jA2bgDCm0b7FTcoHCyI06nFZDsd_1564846680'),(2,'Ayah','18cP2bKKYLiYHD5yEECjYRksz1UgW_PG','$2y$13$G5hH3mKFA8Y//Vv8T9jm7uQ5sSUKvOmJYBzkfUhHeF8ZAmTkuhLZ6',NULL,'ayah@gmail.com',10,1564867582,1564867582,'UwTXFhKjZASlK1Ygb5dO1aAMpaMBJ-v1_1564867582');
  /*!40000 ALTER TABLE `user` ENABLE KEYS */;
  UNLOCK TABLES;
  
  --
  -- Table structure for table `user_courses`
  --
  
  DROP TABLE IF EXISTS `user_courses`;
  /*!40101 SET @saved_cs_client     = @@character_set_client */;
  /*!40101 SET character_set_client = utf8 */;
  CREATE TABLE `user_courses` (
    `id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'ID',
    `course_id` int(11) DEFAULT NULL,
    `user_id` int(11) DEFAULT NULL,
    PRIMARY KEY (`id`),
    KEY `idx-user_courses-id` (`id`),
    KEY `fk-user_courses-course_id-courses-id` (`course_id`),
    KEY `fk-user_courses-user_id-user-id` (`user_id`),
    CONSTRAINT `fk-user_courses-course_id-courses-id` FOREIGN KEY (`course_id`) REFERENCES `courses` (`id`) ON DELETE SET NULL ON UPDATE CASCADE,
    CONSTRAINT `fk-user_courses-user_id-user-id` FOREIGN KEY (`user_id`) REFERENCES `user` (`id`) ON DELETE SET NULL ON UPDATE CASCADE
  ) ENGINE=InnoDB AUTO_INCREMENT=22 DEFAULT CHARSET=latin1;
  /*!40101 SET character_set_client = @saved_cs_client */;
  
  --
  -- Dumping data for table `user_courses`
  --
  
  LOCK TABLES `user_courses` WRITE;
  /*!40000 ALTER TABLE `user_courses` DISABLE KEYS */;
  INSERT INTO `user_courses` VALUES (18,2,1),(19,5,1),(20,1,1),(21,5,2);
  /*!40000 ALTER TABLE `user_courses` ENABLE KEYS */;
  UNLOCK TABLES;
  /*!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 2019-08-04 12:29:33
  