From ed4a42d5c9c1a068cdbdbab062b0d408d6edd272 Mon Sep 17 00:00:00 2001 From: UO287568 Date: Tue, 21 Nov 2023 13:58:09 +0100 Subject: [PATCH] tabla plazos --- src/main/resources/schema.sql | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/main/resources/schema.sql b/src/main/resources/schema.sql index 11f5505..f9ef810 100644 --- a/src/main/resources/schema.sql +++ b/src/main/resources/schema.sql @@ -57,4 +57,8 @@ create table Tiempo(id_c int, dorsal int, tiempo varchar(6), drop table if exists Categoria; create table Categoria(id_c int not null, nombre_cat varchar(30) not null, edadMin int not null, edadMax int not null, genero varchar(15), - constraint fk_categoria_competicion foreign key (id_c) references "Competicion" (id_c)); \ No newline at end of file + constraint fk_Categoria_competicion foreign key (id_c) references "Competicion" (id_c)); + +drop table if exists Plazo; +create table Plazo(id_c int not null, descr varchar(30) not null, fechaIni varchar(20) not null, fechaFin varchar(20) not null, cuota decimal(4,2) not null, + constraint fk_Plazo_Competicion foreign key (id_c) references "Competicion" (id_c)); \ No newline at end of file