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