Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
165 lines (142 sloc) 5.71 KB
-- MySQL dump 10.13 Distrib 5.7.27, for Linux (x86_64)
--
-- Host: localhost Database: xxx
-- ------------------------------------------------------
-- 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 `oauth2_providers`
--
DROP TABLE IF EXISTS `oauth2_providers`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `oauth2_providers` (
`id` tinyint(3) unsigned NOT NULL AUTO_INCREMENT,
`name` varchar(255) NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `name` (`name`)
) ENGINE=InnoDB AUTO_INCREMENT=9 DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `oauth2_providers`
--
LOCK TABLES `oauth2_providers` WRITE;
/*!40000 ALTER TABLE `oauth2_providers` DISABLE KEYS */;
INSERT INTO `oauth2_providers` VALUES (1,'Facebook'),(3,'GitHub'),(2,'Google'),(4,'Instagram'),(5,'LinkedIn'),(6,'VK'),(7,'Yahoo'),(8,'Yandex');
/*!40000 ALTER TABLE `oauth2_providers` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `user_logins`
--
DROP TABLE IF EXISTS `user_logins`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `user_logins` (
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`ip` varchar(45) NOT NULL,
`username` varchar(255) NOT NULL,
`attempts` bigint(20) unsigned NOT NULL DEFAULT '0',
`penalty_expiration` datetime DEFAULT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `ip` (`ip`,`username`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `user_logins`
--
LOCK TABLES `user_logins` WRITE;
/*!40000 ALTER TABLE `user_logins` DISABLE KEYS */;
/*!40000 ALTER TABLE `user_logins` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `users`
--
DROP TABLE IF EXISTS `users`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `users` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`name` varchar(255) NOT NULL,
`email` varchar(255) NOT NULL,
`date_created` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (`id`),
UNIQUE KEY `email` (`email`)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `users`
--
LOCK TABLES `users` WRITE;
/*!40000 ALTER TABLE `users` DISABLE KEYS */;
INSERT INTO `users` VALUES (1,'John Doe','john@doe.com','2019-09-03 07:11:53'),(2,'Jane Doe','jane@doe.com','2019-09-03 07:11:53');
/*!40000 ALTER TABLE `users` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `users__form`
--
DROP TABLE IF EXISTS `users__form`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `users__form` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`user_id` int(10) unsigned NOT NULL,
`username` varchar(255) NOT NULL,
`password` char(60) NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `username` (`username`),
KEY `user_id` (`user_id`),
KEY `username_2` (`username`,`password`),
CONSTRAINT `users__form_ibfk_1` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `users__form`
--
LOCK TABLES `users__form` WRITE;
/*!40000 ALTER TABLE `users__form` DISABLE KEYS */;
INSERT INTO `users__form` VALUES (1,1,'john','$2y$10$2w0D.GEoKXMB1s7vFG7nbOL0F5SqvgnPzXkhke3lhdNCGhwU4nEQO'),(2,2,'jane','$2y$10$aJ8Fnli2knKolkjlnCAxZO7l/Qb1rwNc9v//9arVmS.bbFQJg7McW');
/*!40000 ALTER TABLE `users__form` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `users__oauth2`
--
DROP TABLE IF EXISTS `users__oauth2`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `users__oauth2` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`user_id` int(10) unsigned NOT NULL,
`remote_user_id` bigint(20) unsigned NOT NULL,
`driver_id` tinyint(3) unsigned NOT NULL,
`access_token` varchar(255) NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `remote_user_id` (`remote_user_id`,`driver_id`),
KEY `user_id` (`user_id`),
CONSTRAINT `users__oauth2_ibfk_1` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `users__oauth2`
--
LOCK TABLES `users__oauth2` WRITE;
/*!40000 ALTER TABLE `users__oauth2` DISABLE KEYS */;
/*!40000 ALTER TABLE `users__oauth2` 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-10-04 7:02:45
You can’t perform that action at this time.