TicketCompany/BD/ticketcompany_db_conciertos...

60 lines
2.9 KiB
SQL
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

-- MySQL dump 10.13 Distrib 8.0.40, for Win64 (x86_64)
--
-- Host: localhost Database: ticketcompany_db
-- ------------------------------------------------------
-- Server version 8.0.40
/*!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 `conciertos`
--
DROP TABLE IF EXISTS `conciertos`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `conciertos` (
`id` int NOT NULL AUTO_INCREMENT,
`artista` varchar(100) NOT NULL,
`fecha` datetime NOT NULL,
`descripcion` text,
`imagen` varchar(255) DEFAULT NULL,
`cupos_ocupados` int NOT NULL DEFAULT '0',
`lugar_id` int DEFAULT NULL,
`precio` decimal(10,2) NOT NULL DEFAULT '500.00',
PRIMARY KEY (`id`),
KEY `lugar_id` (`lugar_id`),
CONSTRAINT `conciertos_ibfk_1` FOREIGN KEY (`lugar_id`) REFERENCES `lugares` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=15 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `conciertos`
--
LOCK TABLES `conciertos` WRITE;
/*!40000 ALTER TABLE `conciertos` DISABLE KEYS */;
INSERT INTO `conciertos` VALUES (8,'Junior H','2025-03-14 23:30:00','$adBoyz Tour Fei',NULL,0,2,950.00),(9,'Tributo a Soda Stereo','2025-03-15 22:41:00','Tributo a Soda Stereo','img/eventos/evento_67ce6db6571257.43010380.jpeg',0,1,400.00),(10,'Bad Bunny','2025-03-31 07:12:00','hola','img/eventos/evento_67cee54aeaa1a0.27290983.png',0,6,1499.98),(11,'Coldplay','2025-03-29 07:35:00','Coldplay en Xalapa','',0,4,299.99),(12,'Mora','2025-03-26 22:00:00','mora en xalapa','',0,3,1500.00),(13,'PRUEBA CAPACIDAD','2025-03-29 22:04:00','hola','img/eventos/evento_67d107d18f9a33.58561139.jpg',0,1,699.00),(14,'ASDASDASD','2025-03-21 22:08:00','evento de ´prueba','',0,2,2000.00);
/*!40000 ALTER TABLE `conciertos` 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 2025-03-12 20:51:00