registro evento y pdf
This commit is contained in:
@@ -0,0 +1,61 @@
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
drop table conferecia;
|
||||
drop table conferencia_persona;
|
||||
drop table asistencia;
|
||||
drop table fecha;
|
||||
drop table evento;
|
||||
|
||||
create table pago(
|
||||
id_pago int PRIMARY KEY AUTO_INCREMENT,
|
||||
id_persona int,
|
||||
total_pago int
|
||||
);
|
||||
|
||||
Create Table evento (
|
||||
id_evento int PRIMARY KEY AUTO_INCREMENT,
|
||||
tipo_evento varchar (150),
|
||||
nombre_evento varchar (150),
|
||||
cupo int,
|
||||
lugar varchar(150)
|
||||
);
|
||||
|
||||
Create Table fecha(
|
||||
id_fecha int PRIMARY KEY AUTO_INCREMENT,
|
||||
id_evento int,
|
||||
fecha_inicio datetime,
|
||||
fecha_fin datetime
|
||||
);
|
||||
|
||||
|
||||
Create Table asistencia(
|
||||
id_asistencia int PRIMARY KEY AUTO_INCREMENT,
|
||||
id_persona int,
|
||||
id_fecha int,
|
||||
constancia boolean,
|
||||
pagado boolean,
|
||||
asistencia boolean
|
||||
);
|
||||
|
||||
|
||||
|
||||
alter table pago add FOREIGN KEY (id_persona) REFERENCES persona (id_persona);
|
||||
ALTER TABLE fecha ADD FOREIGN KEY (id_evento) REFERENCES evento (id_evento);
|
||||
ALTER TABLE asistencia ADD FOREIGN KEY (id_fecha) REFERENCES fecha (id_fecha);
|
||||
ALTER TABLE asistencia ADD FOREIGN KEY (id_persona) REFERENCES persona (id_persona);
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user