cambio de la conferencia magistral
This commit is contained in:
@@ -20,7 +20,7 @@ function query(consulta) {
|
||||
const iterar = () => {
|
||||
con++;
|
||||
var actual = new Date();
|
||||
var menor = new Date();
|
||||
|
||||
//actual.setMinutes(datetime.getMinutes());
|
||||
console.log(actual);
|
||||
|
||||
|
||||
@@ -149,11 +149,13 @@ app.post('/datos_personales', async(req, res) => {
|
||||
|
||||
}
|
||||
if (body.magistral != undefined) {
|
||||
let ta = body.magistral;
|
||||
cad = `insert into asistencia values(null, ${id_persona}, ${ta.id_evento}, true, false , false , false, false, 'Asistente' );`;
|
||||
let n_q = await query(cad);
|
||||
cad = `update evento set cupo= cupo-1 where id_evento=${ta.id_evento};`;
|
||||
n_q = await query(cad);
|
||||
for (let i = 0; i < body.magistral.length; i++) {
|
||||
let ta = body.magistral[i];
|
||||
cad = `insert into asistencia values(null, ${id_persona}, ${ta.id_evento}, true, false , false , false, false, 'Asistente' );`;
|
||||
let n_q = await query(cad);
|
||||
cad = `update evento set cupo= cupo-1 where id_evento=${ta.id_evento};`;
|
||||
n_q = await query(cad);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
+19
-3
@@ -1,6 +1,22 @@
|
||||
drop database asinea;
|
||||
Create Database asinea;
|
||||
use asinea;
|
||||
-- drop database P_orion_asinea;
|
||||
-- Create Database P_orion_asinea;
|
||||
-- use P_orion_asinea;
|
||||
|
||||
|
||||
drop table admin;
|
||||
drop table universidad;
|
||||
drop table factura;
|
||||
drop table evento;
|
||||
drop table alumno;
|
||||
drop table academico;
|
||||
drop table asistencia;
|
||||
drop table persona;
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
CREATE TABLE `admin` (
|
||||
`id_admin` integer PRIMARY KEY NOT NULL AUTO_INCREMENT,
|
||||
`usuario` varchar(100),
|
||||
|
||||
Reference in New Issue
Block a user