18 lines
408 B
JavaScript
18 lines
408 B
JavaScript
const validar = require('../../helper/validar');
|
|
const dbPath = '../../db/tablas';
|
|
const Usuario = require(`${dbPath}/Usuario`);
|
|
const Inscripcion = require(`${dbPath}/Inscripcion`);
|
|
|
|
const todasInscripciones = async (body) => {
|
|
return Inscripcion.findAll({
|
|
include: [
|
|
{
|
|
model: Usuario,
|
|
attributes: ['numeroCuenta'],
|
|
},
|
|
],
|
|
});
|
|
};
|
|
|
|
module.exports = todasInscripciones;
|