-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathf1db_create.sql
More file actions
285 lines (254 loc) · 18 KB
/
f1db_create.sql
File metadata and controls
285 lines (254 loc) · 18 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
-- --------------------------------------------------------
-- Host: 127.0.0.1
-- Versión del servidor: 11.7.2-MariaDB - mariadb.org binary distribution
-- SO del servidor: Win64
-- HeidiSQL Versión: 12.10.0.7000
-- --------------------------------------------------------
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET NAMES utf8 */;
/*!50503 SET NAMES utf8mb4 */;
/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;
/*!40103 SET TIME_ZONE='+00:00' */;
/*!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 */;
-- Volcando estructura de base de datos para f1dataset
CREATE DATABASE IF NOT EXISTS `f1dataset` /*!40100 DEFAULT CHARACTER SET utf8mb3 COLLATE utf8mb3_uca1400_ai_ci */;
USE `f1dataset`;
-- Volcando estructura para tabla f1dataset.circuits
CREATE TABLE IF NOT EXISTS `circuits` (
`circuitId` int(11) NOT NULL COMMENT 'ID único del circuito',
`circuitRef` varchar(50) NOT NULL DEFAULT '' COMMENT 'Referencia corta del circuito (ej: ''monaco'')',
`name` varchar(100) NOT NULL DEFAULT '' COMMENT 'Nombre completo del circuito',
`location` varchar(50) NOT NULL DEFAULT '' COMMENT 'Ciudad donde se ubica el circuito',
`country` varchar(50) NOT NULL DEFAULT '' COMMENT 'País del circuito',
`lat` decimal(10,7) NOT NULL DEFAULT 0.0000000 COMMENT 'Latitud geográfica del circuito',
`lng` decimal(10,7) NOT NULL DEFAULT 0.0000000 COMMENT 'Longitud geográfica del circuito',
`alt` int(11) NOT NULL COMMENT 'Altitud sobre el nivel del mar en metros',
`url` varchar(255) NOT NULL DEFAULT '' COMMENT 'Enlace a la página de Wikipedia del circuito',
PRIMARY KEY (`circuitId`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_uca1400_ai_ci;
-- La exportación de datos fue deseleccionada.
-- Volcando estructura para tabla f1dataset.constructors
CREATE TABLE IF NOT EXISTS `constructors` (
`constructorId` int(11) NOT NULL COMMENT 'ID único del constructor/equipo',
`constructorRef` varchar(50) NOT NULL DEFAULT '' COMMENT 'Referencia corta del constructor (ej: ''ferrari'')',
`name` varchar(100) NOT NULL DEFAULT '' COMMENT 'Nombre completo del constructor/equipo',
`nationality` varchar(50) NOT NULL DEFAULT '' COMMENT 'Nacionalidad del constructor',
`url` varchar(255) NOT NULL DEFAULT '' COMMENT 'Enlace a la página de Wikipedia del constructor',
PRIMARY KEY (`constructorId`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_uca1400_ai_ci;
-- La exportación de datos fue deseleccionada.
-- Volcando estructura para tabla f1dataset.constructorstanding
CREATE TABLE IF NOT EXISTS `constructorstanding` (
`constructorStandingId` int(11) NOT NULL COMMENT 'ID único del registro de clasificación',
`raceId` int(11) NOT NULL COMMENT 'Referencia a la carrera',
`constructorId` int(11) NOT NULL COMMENT 'Referencia al constructor',
`points` decimal(8,2) NOT NULL DEFAULT 0.00 COMMENT 'Puntos acumulados hasta esa carrera',
`position` int(11) NOT NULL COMMENT 'Posición en el campeonato de constructores',
`positionText` varchar(10) NOT NULL DEFAULT '' COMMENT 'Posición como texto (para casos especiales)',
`wins` int(11) NOT NULL COMMENT 'Número de victorias acumuladas',
PRIMARY KEY (`constructorStandingId`),
KEY `fk_constructorStanding_constructors1_idx` (`constructorId`),
KEY `fk_constructorStanding_races1_idx` (`raceId`),
CONSTRAINT `fk_constructorStanding_constructors1` FOREIGN KEY (`constructorId`) REFERENCES `constructors` (`constructorId`) ON DELETE NO ACTION ON UPDATE NO ACTION,
CONSTRAINT `fk_constructorStanding_races1` FOREIGN KEY (`raceId`) REFERENCES `races` (`raceId`) ON DELETE NO ACTION ON UPDATE NO ACTION
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_uca1400_ai_ci;
-- La exportación de datos fue deseleccionada.
-- Volcando estructura para tabla f1dataset.constructor_results
CREATE TABLE IF NOT EXISTS `constructor_results` (
`constructorResultId` int(11) NOT NULL COMMENT 'ID único del resultado por constructor',
`raceId` int(11) NOT NULL COMMENT 'Referencia a la carrera',
`constructorId` int(11) NOT NULL COMMENT 'Referencia al constructor',
`points` decimal(8,2) NOT NULL DEFAULT 0.00 COMMENT 'Puntos totales obtenidos por el constructor en la carrera',
`status` varchar(50) DEFAULT '' COMMENT 'Estado final del constructor en la carrera',
PRIMARY KEY (`constructorResultId`),
KEY `fk_constructor_results_constructors_idx` (`constructorId`),
KEY `fk_constructor_results_races1_idx` (`raceId`),
CONSTRAINT `fk_constructor_results_constructors` FOREIGN KEY (`constructorId`) REFERENCES `constructors` (`constructorId`) ON DELETE NO ACTION ON UPDATE NO ACTION,
CONSTRAINT `fk_constructor_results_races1` FOREIGN KEY (`raceId`) REFERENCES `races` (`raceId`) ON DELETE NO ACTION ON UPDATE NO ACTION
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_uca1400_ai_ci;
-- La exportación de datos fue deseleccionada.
-- Volcando estructura para tabla f1dataset.drivers
CREATE TABLE IF NOT EXISTS `drivers` (
`driverId` int(11) NOT NULL COMMENT 'ID único del piloto',
`driverRef` varchar(50) NOT NULL DEFAULT '' COMMENT 'Referencia corta del piloto (ej: ''hamilton'')',
`number` int(11) DEFAULT NULL COMMENT 'Número permanente del piloto',
`code` varchar(3) DEFAULT '' COMMENT 'Código de 3 letras del piloto (ej: ''HAM'')',
`forename` varchar(50) NOT NULL DEFAULT '' COMMENT 'Nombre del piloto',
`surname` varchar(50) NOT NULL DEFAULT '' COMMENT 'Apellido del piloto',
`dob` date NOT NULL COMMENT 'Fecha de nacimiento del piloto',
`nationality` varchar(50) NOT NULL DEFAULT '' COMMENT 'Nacionalidad del piloto',
`url` varchar(255) NOT NULL DEFAULT '' COMMENT 'Enlace a la página de Wikipedia del piloto',
PRIMARY KEY (`driverId`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_uca1400_ai_ci;
-- La exportación de datos fue deseleccionada.
-- Volcando estructura para tabla f1dataset.driver_standings
CREATE TABLE IF NOT EXISTS `driver_standings` (
`driverStandingId` int(11) NOT NULL COMMENT 'ID único del registro de clasificación',
`driverId` int(11) NOT NULL COMMENT 'Referencia al piloto',
`raceId` int(11) NOT NULL COMMENT 'Referencia a la carrera',
`points` decimal(8,2) NOT NULL DEFAULT 0.00 COMMENT 'Puntos acumulados hasta esa carrera',
`position` int(11) NOT NULL COMMENT 'Posición en el campeonato de pilotos',
`positionText` varchar(10) NOT NULL DEFAULT '' COMMENT 'Posición como texto (para casos especiales)',
`wins` int(11) NOT NULL COMMENT 'Número de victorias acumuladas',
PRIMARY KEY (`driverStandingId`),
KEY `fk_driver_standings_driver1_idx` (`driverId`),
KEY `fk_driver_standings_races1_idx` (`raceId`),
CONSTRAINT `fk_driver_standings_driver1` FOREIGN KEY (`driverId`) REFERENCES `drivers` (`driverId`) ON DELETE NO ACTION ON UPDATE NO ACTION,
CONSTRAINT `fk_driver_standings_races1` FOREIGN KEY (`raceId`) REFERENCES `races` (`raceId`) ON DELETE NO ACTION ON UPDATE NO ACTION
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_uca1400_ai_ci;
-- La exportación de datos fue deseleccionada.
-- Volcando estructura para tabla f1dataset.lap_times
CREATE TABLE IF NOT EXISTS `lap_times` (
`raceId` int(11) NOT NULL COMMENT 'Referencia a la carrera',
`driverId` int(11) NOT NULL COMMENT 'Referencia al piloto',
`lap` int(11) NOT NULL COMMENT 'Número de vuelta',
`position` int(11) NOT NULL COMMENT 'Posición del piloto en esa vuelta',
`time` varchar(20) NOT NULL DEFAULT '' COMMENT 'Tiempo de la vuelta en formato MM:SS.mmm',
`miliseconds` int(11) NOT NULL COMMENT 'Tiempo de la vuelta en milisegundos',
PRIMARY KEY (`raceId`,`lap`,`driverId`) USING BTREE,
KEY `fk_lap_times_driver1_idx` (`driverId`),
CONSTRAINT `fk_lap_times_driver1` FOREIGN KEY (`driverId`) REFERENCES `drivers` (`driverId`) ON DELETE NO ACTION ON UPDATE NO ACTION
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_uca1400_ai_ci;
-- La exportación de datos fue deseleccionada.
-- Volcando estructura para tabla f1dataset.pit_stops
CREATE TABLE IF NOT EXISTS `pit_stops` (
`raceId` int(11) NOT NULL COMMENT 'Referencia a la carrera',
`driverId` int(11) NOT NULL COMMENT 'Referencia al piloto',
`stop` int(11) NOT NULL COMMENT 'Número de parada en boxes (1, 2, 3...)',
`lap` int(11) NOT NULL COMMENT 'Vuelta en la que se realizó la parada',
`time` time NOT NULL COMMENT 'Hora en que se realizó la parada',
`duration` varchar(20) NOT NULL DEFAULT '' COMMENT 'Duración de la parada en formato SS.mmm',
`miliseconds` int(11) NOT NULL COMMENT 'Duración de la parada en milisegundos',
KEY `fk_pit_stops_races1_idx` (`raceId`),
KEY `fk_pit_stops_driver1_idx` (`driverId`),
CONSTRAINT `fk_pit_stops_driver1` FOREIGN KEY (`driverId`) REFERENCES `drivers` (`driverId`) ON DELETE NO ACTION ON UPDATE NO ACTION,
CONSTRAINT `fk_pit_stops_races1` FOREIGN KEY (`raceId`) REFERENCES `races` (`raceId`) ON DELETE NO ACTION ON UPDATE NO ACTION
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_uca1400_ai_ci;
-- La exportación de datos fue deseleccionada.
-- Volcando estructura para tabla f1dataset.qualifying
CREATE TABLE IF NOT EXISTS `qualifying` (
`qualifyId` int(11) NOT NULL COMMENT 'ID único del resultado de clasificación',
`driverId` int(11) NOT NULL COMMENT 'Referencia a la carrera',
`constructorId` int(11) NOT NULL COMMENT 'Referencia al piloto',
`raceId` int(11) NOT NULL COMMENT 'Referencia al constructor',
`number` int(11) NOT NULL COMMENT 'Número del coche en esa carrera',
`position` int(11) NOT NULL COMMENT 'Posición final obtenida en clasificación',
`q1` varchar(20) DEFAULT '' COMMENT 'Mejor tiempo en Q1 (formato MM:SS.mmm)',
`q2` varchar(20) DEFAULT '' COMMENT 'Mejor tiempo en Q2 (formato MM:SS.mmm)',
`q3` varchar(20) DEFAULT '' COMMENT 'Mejor tiempo en Q3 (formato MM:SS.mmm)',
PRIMARY KEY (`qualifyId`),
KEY `fk_qualifying_driver1_idx` (`driverId`),
KEY `fk_qualifying_constructors1_idx` (`constructorId`),
KEY `fk_qualifying_races1_idx` (`raceId`),
CONSTRAINT `fk_qualifying_constructors1` FOREIGN KEY (`constructorId`) REFERENCES `constructors` (`constructorId`) ON DELETE NO ACTION ON UPDATE NO ACTION,
CONSTRAINT `fk_qualifying_driver1` FOREIGN KEY (`driverId`) REFERENCES `drivers` (`driverId`) ON DELETE NO ACTION ON UPDATE NO ACTION,
CONSTRAINT `fk_qualifying_races1` FOREIGN KEY (`raceId`) REFERENCES `races` (`raceId`) ON DELETE NO ACTION ON UPDATE NO ACTION
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_uca1400_ai_ci;
-- La exportación de datos fue deseleccionada.
-- Volcando estructura para tabla f1dataset.races
CREATE TABLE IF NOT EXISTS `races` (
`raceId` int(11) NOT NULL COMMENT 'ID único de la carrera',
`year` int(11) NOT NULL COMMENT 'Año de la temporada',
`round` int(11) NOT NULL COMMENT 'Número de carrera dentro de la temporada',
`circuitId` int(11) NOT NULL COMMENT 'Referencia al circuito donde se corrió',
`name` varchar(100) NOT NULL DEFAULT '' COMMENT 'Nombre oficial de la carrera',
`date` date NOT NULL COMMENT 'Fecha en que se corrió la carrera',
`time` time DEFAULT NULL COMMENT 'Hora de inicio de la carrera',
`url` varchar(255) NOT NULL DEFAULT '' COMMENT 'Enlace a la página de Wikipedia de la carrera',
`fp1_date` date DEFAULT NULL COMMENT 'Fecha de la práctica libre 1',
`fp1_time` time DEFAULT NULL COMMENT 'Hora de la práctica libre 1',
`fp2_date` date DEFAULT NULL COMMENT 'Fecha de la práctica libre 2',
`fp2_time` time DEFAULT NULL COMMENT 'Hora de la práctica libre 2',
`fp3_date` date DEFAULT NULL COMMENT 'Fecha de la práctica libre 3',
`fp3_time` time DEFAULT NULL COMMENT 'Hora de la práctica libre 3',
`quali_date` date DEFAULT NULL COMMENT 'Fecha de la sesión de clasificación',
`quali_time` time DEFAULT NULL COMMENT 'Hora de la sesión de clasificación',
`sprint_date` date DEFAULT NULL COMMENT 'Fecha de la carrera sprint (si aplica)',
`sprint_time` time DEFAULT NULL COMMENT 'Hora de la carrera sprint (si aplica)',
PRIMARY KEY (`raceId`),
KEY `fk_races_circuits1_idx` (`circuitId`),
KEY `fk_races_seasons1_idx` (`year`),
CONSTRAINT `fk_races_circuits1` FOREIGN KEY (`circuitId`) REFERENCES `circuits` (`circuitId`) ON DELETE NO ACTION ON UPDATE NO ACTION,
CONSTRAINT `fk_races_seasons1` FOREIGN KEY (`year`) REFERENCES `seasons` (`year`) ON DELETE NO ACTION ON UPDATE NO ACTION
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_uca1400_ai_ci;
-- La exportación de datos fue deseleccionada.
-- Volcando estructura para tabla f1dataset.results
CREATE TABLE IF NOT EXISTS `results` (
`resultId` int(11) NOT NULL COMMENT 'ID único del resultado',
`raceId` int(11) NOT NULL COMMENT 'Referencia a la carrera',
`driverId` int(11) NOT NULL COMMENT 'Referencia al piloto',
`constructorId` int(11) NOT NULL COMMENT 'Referencia al constructor',
`number` int(11) NOT NULL COMMENT 'Número del coche en esa carrera',
`grid` int(11) NOT NULL COMMENT 'Posición de salida en la parrilla',
`position` int(11) NOT NULL COMMENT 'Posición final en la carrera',
`positionText` varchar(10) NOT NULL DEFAULT '' COMMENT 'Posición como texto (ej: ''R'' para retirado)',
`positionOrder` int(11) NOT NULL COMMENT 'Orden numérico para clasificación',
`points` decimal(8,2) NOT NULL DEFAULT 0.00 COMMENT 'Puntos obtenidos en la carrera',
`laps` int(11) NOT NULL COMMENT 'Número de vueltas completadas',
`time` varchar(20) DEFAULT '0' COMMENT 'Tiempo total de carrera o diferencia con el ganador',
`miliseconds` int(11) DEFAULT NULL COMMENT 'Tiempo total en milisegundos',
`fastestLap` int(11) DEFAULT NULL COMMENT 'Número de vuelta donde hizo su mejor tiempo',
`rank` int(11) DEFAULT NULL COMMENT 'Posición en el ranking de vuelta rápida',
`fastestLapTime` varchar(20) DEFAULT '' COMMENT 'Tiempo de su vuelta más rápida',
`fastestLapSpeed` decimal(6,3) DEFAULT 0.000 COMMENT 'Velocidad promedio de su vuelta más rápida',
`statusId` int(11) NOT NULL COMMENT 'Referencia al estado final (terminado, retirado, etc.)',
PRIMARY KEY (`resultId`),
KEY `fk_results_races1_idx` (`raceId`),
KEY `fk_results_driver1_idx` (`driverId`),
KEY `fk_results_constructors1_idx` (`constructorId`),
KEY `fk_results_status1_idx` (`statusId`),
CONSTRAINT `fk_results_constructors1` FOREIGN KEY (`constructorId`) REFERENCES `constructors` (`constructorId`) ON DELETE NO ACTION ON UPDATE NO ACTION,
CONSTRAINT `fk_results_driver1` FOREIGN KEY (`driverId`) REFERENCES `drivers` (`driverId`) ON DELETE NO ACTION ON UPDATE NO ACTION,
CONSTRAINT `fk_results_races1` FOREIGN KEY (`raceId`) REFERENCES `races` (`raceId`) ON DELETE NO ACTION ON UPDATE NO ACTION,
CONSTRAINT `fk_results_status1` FOREIGN KEY (`statusId`) REFERENCES `status` (`statusId`) ON DELETE NO ACTION ON UPDATE NO ACTION
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_uca1400_ai_ci;
-- La exportación de datos fue deseleccionada.
-- Volcando estructura para tabla f1dataset.seasons
CREATE TABLE IF NOT EXISTS `seasons` (
`year` int(11) NOT NULL COMMENT 'Año de la temporada de F1',
`url` varchar(255) NOT NULL DEFAULT '' COMMENT 'Enlace a la página de Wikipedia de la temporada',
PRIMARY KEY (`year`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_uca1400_ai_ci;
-- La exportación de datos fue deseleccionada.
-- Volcando estructura para tabla f1dataset.sprint_results
CREATE TABLE IF NOT EXISTS `sprint_results` (
`resultId` int(11) NOT NULL COMMENT 'ID único del resultado de sprint',
`raceId` int(11) DEFAULT NULL COMMENT 'Referencia a la carrera/evento',
`driverId` int(11) NOT NULL COMMENT 'Referencia al piloto',
`constructorId` int(11) NOT NULL COMMENT 'Referencia al constructor',
`number` int(11) NOT NULL COMMENT 'Número del coche',
`grid` int(11) NOT NULL COMMENT 'Posición de salida en la carrera sprint',
`position` int(11) NOT NULL COMMENT 'Posición final en la carrera sprint',
`positionText` varchar(10) NOT NULL COMMENT 'Posición como texto',
`positionOrder` int(11) NOT NULL COMMENT 'Orden numérico para clasificación',
`points` decimal(8,2) NOT NULL DEFAULT 0.00 COMMENT 'Puntos obtenidos en la carrera sprint',
`laps` int(11) NOT NULL COMMENT 'Número de vueltas completadas',
`time` varchar(20) DEFAULT '' COMMENT 'Tiempo total de la carrera sprint',
`milliseconds` int(11) DEFAULT 0 COMMENT 'Tiempo total en milisegundos',
`fastestLap` int(11) DEFAULT 0 COMMENT 'Número de vuelta más rápida',
`fastestLapTime` varchar(20) DEFAULT '0' COMMENT 'Tiempo de la vuelta más rápida',
`statusId` int(11) NOT NULL DEFAULT 0 COMMENT 'Referencia al estado final',
PRIMARY KEY (`resultId`) USING BTREE,
KEY `fk_sprint_results_constructors1_idx` (`constructorId`),
KEY `fk_sprint_results_driver1_idx` (`driverId`),
KEY `fk_sprint_results_races_idx` (`raceId`) USING BTREE,
KEY `fk_sprint_results_status_idx` (`statusId`),
CONSTRAINT `fk_sprint_results_constructors1` FOREIGN KEY (`constructorId`) REFERENCES `constructors` (`constructorId`) ON DELETE NO ACTION ON UPDATE NO ACTION,
CONSTRAINT `fk_sprint_results_driver1` FOREIGN KEY (`driverId`) REFERENCES `drivers` (`driverId`) ON DELETE NO ACTION ON UPDATE NO ACTION,
CONSTRAINT `fk_sprint_results_races` FOREIGN KEY (`raceId`) REFERENCES `races` (`raceId`) ON DELETE NO ACTION ON UPDATE NO ACTION,
CONSTRAINT `fk_sprint_results_status` FOREIGN KEY (`statusId`) REFERENCES `status` (`statusId`) ON DELETE NO ACTION ON UPDATE NO ACTION
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_uca1400_ai_ci;
-- Volcando estructura para tabla f1dataset.status
CREATE TABLE IF NOT EXISTS `status` (
`statusId` int(11) NOT NULL COMMENT 'ID único del estado',
`status` varchar(50) NOT NULL DEFAULT '' COMMENT 'Descripción del estado (Finished, Engine, Accident, etc.)',
PRIMARY KEY (`statusId`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_uca1400_ai_ci;
-- La exportación de datos fue deseleccionada.
/*!40103 SET TIME_ZONE=IFNULL(@OLD_TIME_ZONE, 'system') */;
/*!40101 SET SQL_MODE=IFNULL(@OLD_SQL_MODE, '') */;
/*!40014 SET FOREIGN_KEY_CHECKS=IFNULL(@OLD_FOREIGN_KEY_CHECKS, 1) */;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40111 SET SQL_NOTES=IFNULL(@OLD_SQL_NOTES, 1) */;