diff --git a/src/libs/routes/school.js b/src/libs/routes/school.js index f294024526827c7310fa4e47687ffdf0103b9179..b03bd108c49e5e408512ff646f09bb5355a48f54 100644 --- a/src/libs/routes/school.js +++ b/src/libs/routes/school.js @@ -308,6 +308,56 @@ rqfCount.addField({ type: 'boolean', field: 'reg_infantil_preescola' } +}).addValue({ + name: 'directors_room', + table: 'escola', + tableField: 'sala_diretoria', + resultField: 'directors_room_name', + where: { + relation: '=', + type: 'boolean', + field: 'sala_diretoria' + } +}).addValue({ + name: 'teacher_room', + table: 'escola', + tableField: 'sala_professor', + resultField: 'teacher_room_name', + where: { + relation: '=', + type: 'boolean', + field: 'sala_professor' + } +}).addValue({ + name: 'playground', + table: 'escola', + tableField: 'parque_infantil', + resultField: 'playground_name', + where: { + relation: '=', + type: 'boolean', + field: 'parque_infantil' + } +}).addValue({ + name: 'nusery', + table: 'escola', + tableField: 'bercario', + resultField: 'nusery_name', + where: { + relation: '=', + type: 'boolean', + field: 'bercario' + } +}).addValue({ + name: 'toilet_inside_building', + table: 'escola', + tableField: 'sanitario_dentro_predio', + resultField: 'toilet_inside_building_name', + where: { + relation: '=', + type: 'boolean', + field: 'sanitario_dentro_predio' + } }); schoolApp.get('/', rqf.parse(), rqf.build(), (req, res, next) => {