From 421e4c1613df6a689bfc2e854b329d70d3b6594d Mon Sep 17 00:00:00 2001 From: "bruno.martinez" <zs22016061@estudiantes.uv.mx> Date: Wed, 12 Mar 2025 03:25:52 +0000 Subject: [PATCH] base de datos actualizada --- Interfaz/conticket.sql | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/Interfaz/conticket.sql b/Interfaz/conticket.sql index 13081c8..f9144f2 100644 --- a/Interfaz/conticket.sql +++ b/Interfaz/conticket.sql @@ -1,8 +1,6 @@ CREATE DATABASE IF NOT EXISTS conticket; USE conticket; -drop table asientos; -DELETE FROM asientos; -ALTER TABLE asientos AUTO_INCREMENT = 1; + -- Tabla para almacenar los asientos CREATE TABLE asientos ( @@ -10,7 +8,8 @@ CREATE TABLE asientos ( artista VARCHAR(50) NOT NULL, -- Nombre del artista/concierto dia INT NOT NULL, -- Día del evento (22, 23, 24) asiento VARCHAR(10) NOT NULL, -- Identificador del asiento (ej: 1A, 2B) - estado ENUM('disponible', 'vendido') DEFAULT 'disponible' -- Estado del asiento + estado ENUM('disponible', 'vendido') DEFAULT 'disponible', -- Estado del asiento + precio DECIMAL(10, 2) NOT NULL ); -- Tabla para registrar las ventas @@ -22,7 +21,3 @@ CREATE TABLE ventas ( FOREIGN KEY (asiento_id) REFERENCES asientos(id) ); -INSERT INTO ventas (asiento_id, fecha_venta, precio) VALUES -(1, '2023-10-01 10:00:00', 100), -(2, '2023-10-02 11:00:00', 150), -(3, '2023-10-03 12:00:00', 200); \ No newline at end of file