using cuestionario2 has atribute, create credentials for testing
This commit is contained in:
@@ -7,6 +7,9 @@ const Status = require('./Status');
|
||||
const CuestionarioAlumno = require('./CuestionarioAlumno');
|
||||
const CuestionarioPrograma = require('./CuestionarioPrograma');
|
||||
|
||||
const CuestionarioAlumno2 = require('./CuestionarioAlumno2');
|
||||
const CuestionarioPrograma2 = require('./CuestionarioPrograma2');
|
||||
|
||||
class Servicio extends Model {}
|
||||
Servicio.init(
|
||||
{
|
||||
@@ -146,4 +149,26 @@ Servicio.belongsTo(CuestionarioPrograma, {
|
||||
},
|
||||
});
|
||||
|
||||
|
||||
|
||||
|
||||
Servicio.belongsTo(CuestionarioAlumno2, {
|
||||
foreignKey: {
|
||||
name: 'idCuestionarioAlumno2',
|
||||
type: DataTypes.INTEGER,
|
||||
allowNull: true,
|
||||
defaultValue: null,
|
||||
},
|
||||
});
|
||||
|
||||
Servicio.belongsTo(CuestionarioPrograma2, {
|
||||
foreignKey: {
|
||||
name: 'idCuestionarioPrograma2',
|
||||
type: DataTypes.INTEGER,
|
||||
allowNull: true,
|
||||
defaultValue: null,
|
||||
},
|
||||
});
|
||||
|
||||
|
||||
module.exports = Servicio;
|
||||
|
||||
Reference in New Issue
Block a user