nuevo servicio

This commit is contained in:
2020-11-16 12:47:46 -06:00
parent c49ef87cfc
commit 8e97cf4605
7 changed files with 117 additions and 18 deletions
+9 -2
View File
@@ -53,6 +53,10 @@ Servicio.init(
allowNull: true,
defaultValue: null,
},
carpeta: {
type: DataTypes.STRING(30),
allowNull: false,
},
cartaAceptacion: {
type: DataTypes.STRING(30),
allowNull: false,
@@ -112,6 +116,7 @@ Servicio.belongsTo(Status, {
name: 'idStatus',
type: DataTypes.INTEGER,
allowNull: false,
defaultValue: 1,
},
});
@@ -127,7 +132,8 @@ Servicio.belongsTo(CuestionarioAlumno, {
foreignKey: {
name: 'idCuestionarioAlumno',
type: DataTypes.INTEGER,
allowNull: false,
allowNull: true,
defaultValue: null,
},
});
@@ -135,7 +141,8 @@ Servicio.belongsTo(CuestionarioPrograma, {
foreignKey: {
name: 'idCuestionarioPrograma',
type: DataTypes.INTEGER,
allowNull: false,
allowNull: true,
defaultValue: null,
},
});