instala la mayoria de catalogos
This commit is contained in:
@@ -38,4 +38,7 @@ CarreraPlantel.init(
|
||||
}
|
||||
)
|
||||
|
||||
CarreraPlantel.belongsTo(Carrera, { foreignKey: 'idCarrera' })
|
||||
CarreraPlantel.belongsTo(Plantel, { foreignKey: 'idPlantel' })
|
||||
|
||||
module.exports = CarreraPlantel
|
||||
|
||||
+5
-5
@@ -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,
|
||||
},
|
||||
},
|
||||
{
|
||||
|
||||
@@ -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
@@ -27,13 +27,13 @@ Salon.init(
|
||||
key: 'idStatus',
|
||||
},
|
||||
allowNull: false,
|
||||
defaultValue: 1,
|
||||
},
|
||||
},
|
||||
{
|
||||
sequelize,
|
||||
modelName: 'Salon',
|
||||
tableName: 'salon',
|
||||
timestamps: false,
|
||||
}
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user