nueva base

This commit is contained in:
2022-06-15 18:18:25 -05:00
parent 999371769d
commit 013df2fea2
4 changed files with 67 additions and 7 deletions
+8
View File
@@ -47,4 +47,12 @@ Pregunta.belongsTo(TipoPregunta, {
},
});
Pregunta.belongsTo(Pregunta, {
foreignKey: {
name: 'idPreguntaDepende',
type: DataTypes.INTEGER,
allowNull: true,
},
});
module.exports = Pregunta;