389 lines
22 KiB
SQL
389 lines
22 KiB
SQL
-- MySQL dump 10.13 Distrib 8.0.31, for Win64 (x86_64)
|
|
--
|
|
-- Host: 127.0.0.1 Database: la_liga
|
|
-- ------------------------------------------------------
|
|
-- Server version 5.7.24
|
|
|
|
/*!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 */;
|
|
/*!50503 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 `doctrine_migration_versions`
|
|
--
|
|
|
|
DROP TABLE IF EXISTS `doctrine_migration_versions`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!50503 SET character_set_client = utf8mb4 */;
|
|
CREATE TABLE `doctrine_migration_versions` (
|
|
`version` varchar(191) COLLATE utf8_unicode_ci NOT NULL,
|
|
`executed_at` datetime DEFAULT NULL,
|
|
`execution_time` int(11) DEFAULT NULL,
|
|
PRIMARY KEY (`version`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
|
|
--
|
|
-- Dumping data for table `doctrine_migration_versions`
|
|
--
|
|
|
|
LOCK TABLES `doctrine_migration_versions` WRITE;
|
|
/*!40000 ALTER TABLE `doctrine_migration_versions` DISABLE KEYS */;
|
|
INSERT INTO `doctrine_migration_versions` VALUES ('DoctrineMigrations\\Version20230831220137','2023-09-18 21:25:32',26),('DoctrineMigrations\\Version20230918201118','2023-09-18 21:25:32',0),('DoctrineMigrations\\Version20230918202500','2023-09-18 21:25:32',2452),('DoctrineMigrations\\Version20231007212245','2023-10-07 22:23:15',176),('DoctrineMigrations\\Version20231007221519','2023-10-07 23:20:14',351),('DoctrineMigrations\\Version20231007222620','2023-10-07 23:27:17',145),('DoctrineMigrations\\Version20231007223332','2023-10-07 23:34:28',98);
|
|
/*!40000 ALTER TABLE `doctrine_migration_versions` ENABLE KEYS */;
|
|
UNLOCK TABLES;
|
|
|
|
--
|
|
-- Table structure for table `facility`
|
|
--
|
|
|
|
DROP TABLE IF EXISTS `facility`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!50503 SET character_set_client = utf8mb4 */;
|
|
CREATE TABLE `facility` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`name` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|
`address` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|
PRIMARY KEY (`id`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
|
|
--
|
|
-- Dumping data for table `facility`
|
|
--
|
|
|
|
LOCK TABLES `facility` WRITE;
|
|
/*!40000 ALTER TABLE `facility` DISABLE KEYS */;
|
|
/*!40000 ALTER TABLE `facility` ENABLE KEYS */;
|
|
UNLOCK TABLES;
|
|
|
|
--
|
|
-- Table structure for table `file`
|
|
--
|
|
|
|
DROP TABLE IF EXISTS `file`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!50503 SET character_set_client = utf8mb4 */;
|
|
CREATE TABLE `file` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`game_id` int(11) DEFAULT NULL,
|
|
`player_id` int(11) DEFAULT NULL,
|
|
`name` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|
`type` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|
`created_at` datetime DEFAULT NULL COMMENT '(DC2Type:datetime_immutable)',
|
|
PRIMARY KEY (`id`),
|
|
KEY `IDX_8C9F3610E48FD905` (`game_id`),
|
|
KEY `IDX_8C9F361099E6F5DF` (`player_id`),
|
|
CONSTRAINT `FK_8C9F361099E6F5DF` FOREIGN KEY (`player_id`) REFERENCES `player` (`id`),
|
|
CONSTRAINT `FK_8C9F3610E48FD905` FOREIGN KEY (`game_id`) REFERENCES `game` (`id`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
|
|
--
|
|
-- Dumping data for table `file`
|
|
--
|
|
|
|
LOCK TABLES `file` WRITE;
|
|
/*!40000 ALTER TABLE `file` DISABLE KEYS */;
|
|
/*!40000 ALTER TABLE `file` ENABLE KEYS */;
|
|
UNLOCK TABLES;
|
|
|
|
--
|
|
-- Table structure for table `game`
|
|
--
|
|
|
|
DROP TABLE IF EXISTS `game`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!50503 SET character_set_client = utf8mb4 */;
|
|
CREATE TABLE `game` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`season_id` int(11) DEFAULT NULL,
|
|
`facility_id` int(11) DEFAULT NULL,
|
|
`home_team_id` int(11) DEFAULT NULL,
|
|
`away_team_id` int(11) DEFAULT NULL,
|
|
`points_home` int(11) DEFAULT NULL,
|
|
`points_away` int(11) DEFAULT NULL,
|
|
`planned_date` datetime DEFAULT NULL,
|
|
`game_date_time` datetime DEFAULT NULL,
|
|
`notes` varchar(350) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|
PRIMARY KEY (`id`),
|
|
KEY `IDX_232B318C4EC001D1` (`season_id`),
|
|
KEY `IDX_232B318CA7014910` (`facility_id`),
|
|
KEY `IDX_232B318C9C4C13F6` (`home_team_id`),
|
|
KEY `IDX_232B318C45185D02` (`away_team_id`),
|
|
CONSTRAINT `FK_232B318C45185D02` FOREIGN KEY (`away_team_id`) REFERENCES `team` (`id`),
|
|
CONSTRAINT `FK_232B318C4EC001D1` FOREIGN KEY (`season_id`) REFERENCES `season` (`id`),
|
|
CONSTRAINT `FK_232B318C9C4C13F6` FOREIGN KEY (`home_team_id`) REFERENCES `team` (`id`),
|
|
CONSTRAINT `FK_232B318CA7014910` FOREIGN KEY (`facility_id`) REFERENCES `facility` (`id`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
|
|
--
|
|
-- Dumping data for table `game`
|
|
--
|
|
|
|
LOCK TABLES `game` WRITE;
|
|
/*!40000 ALTER TABLE `game` DISABLE KEYS */;
|
|
/*!40000 ALTER TABLE `game` ENABLE KEYS */;
|
|
UNLOCK TABLES;
|
|
|
|
--
|
|
-- Table structure for table `league`
|
|
--
|
|
|
|
DROP TABLE IF EXISTS `league`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!50503 SET character_set_client = utf8mb4 */;
|
|
CREATE TABLE `league` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`president_id` int(11) DEFAULT NULL,
|
|
`name` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|
`city` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|
`logo` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|
`description` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|
`points_per_win` int(11) DEFAULT NULL,
|
|
`points_per_draw` int(11) DEFAULT NULL,
|
|
`points_per_loss` int(11) DEFAULT NULL,
|
|
`active` tinyint(1) DEFAULT NULL,
|
|
`created_at` datetime DEFAULT NULL COMMENT '(DC2Type:datetime_immutable)',
|
|
PRIMARY KEY (`id`),
|
|
UNIQUE KEY `UNIQ_3EB4C318B40A33C7` (`president_id`),
|
|
CONSTRAINT `FK_3EB4C318B40A33C7` FOREIGN KEY (`president_id`) REFERENCES `user` (`id`)
|
|
) ENGINE=InnoDB AUTO_INCREMENT=10 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
|
|
--
|
|
-- Dumping data for table `league`
|
|
--
|
|
|
|
LOCK TABLES `league` WRITE;
|
|
/*!40000 ALTER TABLE `league` DISABLE KEYS */;
|
|
INSERT INTO `league` VALUES (9,2,'La Primera Liga',NULL,'/src/files/league/logo.jpg','Liga de pruebas.',3,2,1,1,'2023-10-08 02:12:02');
|
|
/*!40000 ALTER TABLE `league` ENABLE KEYS */;
|
|
UNLOCK TABLES;
|
|
|
|
--
|
|
-- Table structure for table `log`
|
|
--
|
|
|
|
DROP TABLE IF EXISTS `log`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!50503 SET character_set_client = utf8mb4 */;
|
|
CREATE TABLE `log` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`payload` json DEFAULT NULL,
|
|
`code` int(11) DEFAULT NULL,
|
|
`message` varchar(550) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|
`created_at` datetime DEFAULT NULL COMMENT '(DC2Type:datetime_immutable)',
|
|
PRIMARY KEY (`id`)
|
|
) ENGINE=InnoDB AUTO_INCREMENT=33 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
|
|
--
|
|
-- Dumping data for table `log`
|
|
--
|
|
|
|
LOCK TABLES `log` WRITE;
|
|
/*!40000 ALTER TABLE `log` DISABLE KEYS */;
|
|
INSERT INTO `log` VALUES (1,'[{\"files\": {}, \"query\": {}, \"server\": {}, \"cookies\": {}, \"headers\": {}, \"request\": {}, \"attributes\": {}}]',500,'Typed property DMD\\LaLigaApi\\Dto\\UserDto::$noteList must not be accessed before initialization','2023-10-04 23:26:48'),(2,'[{\"files\": {}, \"query\": {}, \"server\": {}, \"cookies\": {}, \"headers\": {}, \"request\": {}, \"attributes\": {}}]',500,'Class \"HttpException\" not found','2023-10-04 23:28:11'),(3,'[{\"files\": {}, \"query\": {}, \"server\": {}, \"cookies\": {}, \"headers\": {}, \"request\": {}, \"attributes\": {}}]',500,'Class \"HttpException\" not found','2023-10-04 23:29:38'),(4,'[{\"files\": {}, \"query\": {}, \"server\": {}, \"cookies\": {}, \"headers\": {}, \"request\": {}, \"attributes\": {}}]',404,'No route found for \"POST http://127.0.0.1:8000/api/login_check\"','2023-10-06 23:25:17'),(5,'[{\"files\": {}, \"query\": {}, \"server\": {}, \"cookies\": {}, \"headers\": {}, \"request\": {}, \"attributes\": {}}]',404,'No route found for \"POST http://127.0.0.1:8000/api/login\"','2023-10-06 23:37:11'),(6,'[{\"files\": {}, \"query\": {}, \"server\": {}, \"cookies\": {}, \"headers\": {}, \"request\": {}, \"attributes\": {}}]',404,'No route found for \"POST http://127.0.0.1:8000/api/login\"','2023-10-06 23:39:15'),(7,'[{\"files\": {}, \"query\": {}, \"server\": {}, \"cookies\": {}, \"headers\": {}, \"request\": {}, \"attributes\": {}}]',404,'No route found for \"POST http://127.0.0.1:8000/api/login_check\"','2023-10-06 23:39:23'),(8,'[{\"files\": {}, \"query\": {}, \"server\": {}, \"cookies\": {}, \"headers\": {}, \"request\": {}, \"attributes\": {}}]',404,'No route found for \"POST http://127.0.0.1:8000/api/login\"','2023-10-06 23:39:30'),(9,'[{\"files\": {}, \"query\": {}, \"server\": {}, \"cookies\": {}, \"headers\": {}, \"request\": {}, \"attributes\": {}}]',404,'No route found for \"POST http://127.0.0.1:8000/api/login\"','2023-10-06 23:40:36'),(10,'[{\"files\": {}, \"query\": {}, \"server\": {}, \"cookies\": {}, \"headers\": {}, \"request\": {}, \"attributes\": {}}]',404,'No route found for \"POST http://127.0.0.1:8000/api/login_check\"','2023-10-06 23:40:43'),(11,'[{\"files\": {}, \"query\": {}, \"server\": {}, \"cookies\": {}, \"headers\": {}, \"request\": {}, \"attributes\": {}}]',500,'The routing file \"D:\\My Stuff\\DEVELOPMENT\\Side Projects\\LaLiga/config/routes.yaml\" contains unsupported keys for \"controllers\": \"api_login_check\". Expected one of: \"resource\", \"type\", \"prefix\", \"path\", \"host\", \"schemes\", \"methods\", \"defaults\", \"requirements\", \"options\", \"condition\", \"controller\", \"name_prefix\", \"trailing_slash_on_root\", \"locale\", \"format\", \"utf8\", \"exclude\", \"stateless\" in D:\\My Stuff\\DEVELOPMENT\\Side Projects\\LaLiga/config/routes.yaml (which is being imported from \"D:\\My Stuff\\DEVELOPMENT\\Side Projects\\LaLiga\\src\\Kernel.php\").','2023-10-06 23:41:23'),(12,'[{\"files\": {}, \"query\": {}, \"server\": {}, \"cookies\": {}, \"headers\": {}, \"request\": {}, \"attributes\": {}}]',400,'The key \"username\" must be provided.','2023-10-06 23:41:51'),(13,'[{\"files\": {}, \"query\": {}, \"server\": {}, \"cookies\": {}, \"headers\": {}, \"request\": {}, \"attributes\": {}}]',500,'Class \"HttpException\" not found','2023-10-06 23:54:55'),(14,'[{\"files\": {}, \"query\": {}, \"server\": {}, \"cookies\": {}, \"headers\": {}, \"request\": {}, \"attributes\": {}}]',500,'Class \"HttpException\" not found','2023-10-06 23:58:03'),(15,'[{\"files\": {}, \"query\": {}, \"server\": {}, \"cookies\": {}, \"headers\": {}, \"request\": {}, \"attributes\": {}}]',500,'Class \"HttpException\" not found','2023-10-07 00:01:59'),(16,'[{\"files\": {}, \"query\": {}, \"server\": {}, \"cookies\": {}, \"headers\": {}, \"request\": {}, \"attributes\": {}}]',400,'Ya hay un usuario registrado con este correo.','2023-10-07 00:05:07'),(17,'[{\"files\": {}, \"query\": {}, \"server\": {}, \"cookies\": {}, \"headers\": {}, \"request\": {}, \"attributes\": {}}]',400,'Ya hay un usuario registrado con este correo.','2023-10-07 00:05:52'),(18,'[{\"files\": {}, \"query\": {}, \"server\": {}, \"cookies\": {}, \"headers\": {}, \"request\": {}, \"attributes\": {}}]',500,'Cannot validate values of type \"string\" automatically. Please provide a constraint.','2023-10-07 00:06:16'),(19,'[{\"files\": {}, \"query\": {}, \"server\": {}, \"cookies\": {}, \"headers\": {}, \"request\": {}, \"attributes\": {}}]',500,'Symfony\\Component\\Validator\\Mapping\\GenericMetadata::addConstraint(): Argument #1 ($constraint) must be of type Symfony\\Component\\Validator\\Constraint, int given, called in D:\\My Stuff\\DEVELOPMENT\\Side Projects\\LaLiga\\vendor\\symfony\\validator\\Mapping\\GenericMetadata.php on line 183','2023-10-07 00:07:17'),(20,'[{\"files\": {}, \"query\": {}, \"server\": {}, \"cookies\": {}, \"headers\": {}, \"request\": {}, \"attributes\": {}}]',500,'Cannot resolve argument $handleCreateLeague of \"DMD\\LaLigaApi\\Controller\\LeagueController::createLeague()\": Cannot autowire service \"DMD\\LaLigaApi\\Service\\League\\Handlers\\createLeague\\HandleCreateLeague\": argument \"$response\" of method \"__construct()\" references class \"Symfony\\Component\\HttpFoundation\\JsonResponse\" but no such service exists.','2023-10-08 00:26:12'),(21,'[{\"files\": {}, \"query\": {}, \"server\": {}, \"cookies\": {}, \"headers\": {}, \"request\": {}, \"attributes\": {}}]',403,'Sin permiso.','2023-10-08 00:30:55'),(22,'[{\"files\": {}, \"query\": {}, \"server\": {}, \"cookies\": {}, \"headers\": {}, \"request\": {}, \"attributes\": {}}]',403,'Sin permiso.','2023-10-08 00:31:34'),(23,'[{\"files\": {}, \"query\": {}, \"server\": {}, \"cookies\": {}, \"headers\": {}, \"request\": {}, \"attributes\": {}}]',500,'Typed property DMD\\LaLigaApi\\Dto\\LeagueDto::$createdAt must not be accessed before initialization','2023-10-08 00:36:47'),(24,'[{\"files\": {}, \"query\": {}, \"server\": {}, \"cookies\": {}, \"headers\": {}, \"request\": {}, \"attributes\": {}}]',403,'Sin permiso.','2023-10-08 00:39:28'),(25,'[{\"files\": {}, \"query\": {}, \"server\": {}, \"cookies\": {}, \"headers\": {}, \"request\": {}, \"attributes\": {}}]',403,'Sin permiso.','2023-10-08 00:40:25'),(26,'[{\"files\": {}, \"query\": {}, \"server\": {}, \"cookies\": {}, \"headers\": {}, \"request\": {}, \"attributes\": {}}]',500,'Typed property DMD\\LaLigaApi\\Dto\\LeagueDto::$createdAt must not be accessed before initialization','2023-10-08 00:41:55'),(27,'[{\"files\": {}, \"query\": {}, \"server\": {}, \"cookies\": {}, \"headers\": {}, \"request\": {}, \"attributes\": {}}]',500,'DateTime::createFromFormat(): Argument #2 ($datetime) must be of type string, DateTime given','2023-10-08 00:49:57'),(28,'[{\"files\": {}, \"query\": {}, \"server\": {}, \"cookies\": {}, \"headers\": {}, \"request\": {}, \"attributes\": {}}]',500,'DateTime::createFromFormat(): Argument #2 ($datetime) must be of type string, DateTime given','2023-10-08 00:51:52'),(29,'[{\"files\": {}, \"query\": {}, \"server\": {}, \"cookies\": {}, \"headers\": {}, \"request\": {}, \"attributes\": {}}]',500,'Warning: Undefined array key \"captain\"','2023-10-08 00:52:47'),(30,'[{\"files\": {}, \"query\": {}, \"server\": {}, \"cookies\": {}, \"headers\": {}, \"request\": {}, \"attributes\": {}}]',403,'Sin permiso.','2023-10-08 01:04:34'),(31,'[{\"files\": {}, \"query\": {}, \"server\": {}, \"cookies\": {}, \"headers\": {}, \"request\": {}, \"attributes\": {}}]',403,'Ya tienes una liga creada.','2023-10-08 01:06:24'),(32,'[{\"files\": {}, \"query\": {}, \"server\": {}, \"cookies\": {}, \"headers\": {}, \"request\": {}, \"attributes\": {}}]',403,'No se puede crear una nueva liga porque ya tienes una creada.','2023-10-08 01:08:53');
|
|
/*!40000 ALTER TABLE `log` ENABLE KEYS */;
|
|
UNLOCK TABLES;
|
|
|
|
--
|
|
-- Table structure for table `player`
|
|
--
|
|
|
|
DROP TABLE IF EXISTS `player`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!50503 SET character_set_client = utf8mb4 */;
|
|
CREATE TABLE `player` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`team_id` int(11) DEFAULT NULL,
|
|
`first_name` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|
`last_name` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|
`position` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|
`jersey_number` smallint(6) DEFAULT NULL,
|
|
`is_federated` tinyint(1) DEFAULT NULL,
|
|
`picture_file_name` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|
`birthday` date DEFAULT NULL,
|
|
PRIMARY KEY (`id`),
|
|
KEY `IDX_98197A65296CD8AE` (`team_id`),
|
|
CONSTRAINT `FK_98197A65296CD8AE` FOREIGN KEY (`team_id`) REFERENCES `team` (`id`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
|
|
--
|
|
-- Dumping data for table `player`
|
|
--
|
|
|
|
LOCK TABLES `player` WRITE;
|
|
/*!40000 ALTER TABLE `player` DISABLE KEYS */;
|
|
/*!40000 ALTER TABLE `player` ENABLE KEYS */;
|
|
UNLOCK TABLES;
|
|
|
|
--
|
|
-- Table structure for table `season`
|
|
--
|
|
|
|
DROP TABLE IF EXISTS `season`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!50503 SET character_set_client = utf8mb4 */;
|
|
CREATE TABLE `season` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`league_id` int(11) DEFAULT NULL,
|
|
`date_start` date NOT NULL,
|
|
`date_end` date DEFAULT NULL,
|
|
`active` tinyint(1) DEFAULT NULL,
|
|
`created_at` datetime DEFAULT NULL COMMENT '(DC2Type:datetime_immutable)',
|
|
PRIMARY KEY (`id`),
|
|
KEY `IDX_F0E45BA958AFC4DE` (`league_id`),
|
|
CONSTRAINT `FK_F0E45BA958AFC4DE` FOREIGN KEY (`league_id`) REFERENCES `league` (`id`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
|
|
--
|
|
-- Dumping data for table `season`
|
|
--
|
|
|
|
LOCK TABLES `season` WRITE;
|
|
/*!40000 ALTER TABLE `season` DISABLE KEYS */;
|
|
/*!40000 ALTER TABLE `season` ENABLE KEYS */;
|
|
UNLOCK TABLES;
|
|
|
|
--
|
|
-- Table structure for table `season_data`
|
|
--
|
|
|
|
DROP TABLE IF EXISTS `season_data`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!50503 SET character_set_client = utf8mb4 */;
|
|
CREATE TABLE `season_data` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`team_id` int(11) DEFAULT NULL,
|
|
`season_id` int(11) DEFAULT NULL,
|
|
`points` int(11) DEFAULT NULL,
|
|
PRIMARY KEY (`id`),
|
|
KEY `IDX_2BBA6FFD296CD8AE` (`team_id`),
|
|
KEY `IDX_2BBA6FFD4EC001D1` (`season_id`),
|
|
CONSTRAINT `FK_2BBA6FFD296CD8AE` FOREIGN KEY (`team_id`) REFERENCES `team` (`id`),
|
|
CONSTRAINT `FK_2BBA6FFD4EC001D1` FOREIGN KEY (`season_id`) REFERENCES `season` (`id`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
|
|
--
|
|
-- Dumping data for table `season_data`
|
|
--
|
|
|
|
LOCK TABLES `season_data` WRITE;
|
|
/*!40000 ALTER TABLE `season_data` DISABLE KEYS */;
|
|
/*!40000 ALTER TABLE `season_data` ENABLE KEYS */;
|
|
UNLOCK TABLES;
|
|
|
|
--
|
|
-- Table structure for table `season_team`
|
|
--
|
|
|
|
DROP TABLE IF EXISTS `season_team`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!50503 SET character_set_client = utf8mb4 */;
|
|
CREATE TABLE `season_team` (
|
|
`season_id` int(11) NOT NULL,
|
|
`team_id` int(11) NOT NULL,
|
|
PRIMARY KEY (`season_id`,`team_id`),
|
|
KEY `IDX_42A93A814EC001D1` (`season_id`),
|
|
KEY `IDX_42A93A81296CD8AE` (`team_id`),
|
|
CONSTRAINT `FK_42A93A81296CD8AE` FOREIGN KEY (`team_id`) REFERENCES `team` (`id`) ON DELETE CASCADE,
|
|
CONSTRAINT `FK_42A93A814EC001D1` FOREIGN KEY (`season_id`) REFERENCES `season` (`id`) ON DELETE CASCADE
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
|
|
--
|
|
-- Dumping data for table `season_team`
|
|
--
|
|
|
|
LOCK TABLES `season_team` WRITE;
|
|
/*!40000 ALTER TABLE `season_team` DISABLE KEYS */;
|
|
/*!40000 ALTER TABLE `season_team` ENABLE KEYS */;
|
|
UNLOCK TABLES;
|
|
|
|
--
|
|
-- Table structure for table `team`
|
|
--
|
|
|
|
DROP TABLE IF EXISTS `team`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!50503 SET character_set_client = utf8mb4 */;
|
|
CREATE TABLE `team` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`name` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|
`active` tinyint(1) DEFAULT NULL,
|
|
`created_at` datetime DEFAULT NULL COMMENT '(DC2Type:datetime_immutable)',
|
|
`captain_id` int(11) DEFAULT NULL,
|
|
PRIMARY KEY (`id`),
|
|
UNIQUE KEY `UNIQ_C4E0A61F3346729B` (`captain_id`),
|
|
CONSTRAINT `FK_CAPTAIN_ID` FOREIGN KEY (`captain_id`) REFERENCES `user` (`id`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
|
|
--
|
|
-- Dumping data for table `team`
|
|
--
|
|
|
|
LOCK TABLES `team` WRITE;
|
|
/*!40000 ALTER TABLE `team` DISABLE KEYS */;
|
|
/*!40000 ALTER TABLE `team` ENABLE KEYS */;
|
|
UNLOCK TABLES;
|
|
|
|
--
|
|
-- Table structure for table `user`
|
|
--
|
|
|
|
DROP TABLE IF EXISTS `user`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!50503 SET character_set_client = utf8mb4 */;
|
|
CREATE TABLE `user` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`email` varchar(180) COLLATE utf8mb4_unicode_ci NOT NULL,
|
|
`roles` json NOT NULL,
|
|
`password` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
|
|
`first_name` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|
`last_name` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|
`phone` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|
`profile_picture` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|
`birthday` date DEFAULT NULL,
|
|
`note_list` longtext COLLATE utf8mb4_unicode_ci COMMENT '(DC2Type:array)',
|
|
`active` tinyint(1) DEFAULT NULL,
|
|
`created_at` datetime DEFAULT NULL COMMENT '(DC2Type:datetime_immutable)',
|
|
PRIMARY KEY (`id`),
|
|
UNIQUE KEY `UNIQ_8D93D649E7927C74` (`email`)
|
|
) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_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 (2,'dnlguzman@gmail.com','[\"ROLE_USER\"]','$2y$13$gEJ2F/QIGSAp8Ymu0Mm12O8KJtY3NKuUhceGAewuK3oGalR9.FxiO','Daniel','Daniel','123456786','/src/imagenes/413421324.jpg','1988-03-15',NULL,NULL,'2023-10-04 23:30:51'),(3,'test@gmail.com','[\"ROLE_USER\"]','$2y$13$mp7TYGwN4xkk8qfkAaHv7.g8naBBQAQd9hg/thehIfHntcLfYzRWS','Daniel','Daniel','123456786','/src/imagenes/413421324.jpg','1988-03-15',NULL,NULL,'2023-10-04 23:32:08');
|
|
/*!40000 ALTER TABLE `user` 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 2023-10-08 21:16:09
|