instala la mayoria de catalogos

This commit is contained in:
2020-10-01 01:26:50 -05:00
parent 69da7020e6
commit e8b443351a
5 changed files with 119 additions and 17 deletions
+3
View File
@@ -38,4 +38,7 @@ CarreraPlantel.init(
}
)
CarreraPlantel.belongsTo(Carrera, { foreignKey: 'idCarrera' })
CarreraPlantel.belongsTo(Plantel, { foreignKey: 'idPlantel' })
module.exports = CarreraPlantel
+5 -5
View File
@@ -12,10 +12,10 @@ Mesa.init(
autoIncrement: true,
unique: true,
},
mesa: {
type: DataTypes.STRING(50),
allowNull: false,
},
// mesa: {
// type: DataTypes.STRING(50),
// allowNull: false,
// },
activo: {
type: DataTypes.BOOLEAN,
defaultValue: false,
@@ -27,7 +27,7 @@ Mesa.init(
key: 'idStatus',
},
allowNull: false,
// defaultValue: 1,
defaultValue: 1,
},
},
{
-5
View File
@@ -44,7 +44,6 @@ Prestamo.init(
key: 'idOperador',
},
allowNull: true,
defaultValue: NULL,
},
idOperadorRegreso: {
type: DataTypes.INTEGER,
@@ -53,7 +52,6 @@ Prestamo.init(
key: 'idOperador',
},
allowNull: true,
defaultValue: NULL,
},
idEquipo: {
type: DataTypes.INTEGER,
@@ -62,7 +60,6 @@ Prestamo.init(
key: 'idEquipo',
},
allowNull: true,
defaultValue: NULL,
},
idHorario: {
type: DataTypes.INTEGER,
@@ -79,7 +76,6 @@ Prestamo.init(
key: 'idMesa',
},
allowNull: true,
defaultValue: NULL,
},
idSalon: {
type: DataTypes.INTEGER,
@@ -88,7 +84,6 @@ Prestamo.init(
key: 'idSalon',
},
allowNull: true,
defaultValue: NULL,
},
},
{
+1 -1
View File
@@ -27,13 +27,13 @@ Salon.init(
key: 'idStatus',
},
allowNull: false,
defaultValue: 1,
},
},
{
sequelize,
modelName: 'Salon',
tableName: 'salon',
timestamps: false,
}
)