endpoint de escolares, login e inscripcion
This commit is contained in:
@@ -69,12 +69,12 @@ Inscripcion.belongsTo(Area, {
|
||||
},
|
||||
});
|
||||
|
||||
Inscripcion.belongsTo(FechaInscripcion, {
|
||||
foreignKey: {
|
||||
name: 'idFechaInscripcion',
|
||||
type: DataTypes.INTEGER,
|
||||
allowNull: false,
|
||||
},
|
||||
});
|
||||
// Inscripcion.belongsTo(FechaInscripcion, {
|
||||
// foreignKey: {
|
||||
// name: 'idFechaInscripcion',
|
||||
// type: DataTypes.INTEGER,
|
||||
// allowNull: false,
|
||||
// },
|
||||
// });
|
||||
|
||||
module.exports = Inscripcion;
|
||||
|
||||
+15
-11
@@ -17,15 +17,19 @@ Usuario.init(
|
||||
allowNull: false,
|
||||
unique: true,
|
||||
},
|
||||
semestre: {
|
||||
type: DataTypes.STRING(30),
|
||||
allowNull: false,
|
||||
},
|
||||
nombre: {
|
||||
type: DataTypes.STRING(70),
|
||||
allowNull: true,
|
||||
defaultValue: null,
|
||||
},
|
||||
semestre: {
|
||||
type: DataTypes.STRING(30),
|
||||
allowNull: false,
|
||||
},
|
||||
carrera: {
|
||||
type: DataTypes.STRING(60),
|
||||
allowNull: false,
|
||||
},
|
||||
},
|
||||
{
|
||||
sequelize,
|
||||
@@ -35,12 +39,12 @@ Usuario.init(
|
||||
}
|
||||
);
|
||||
|
||||
Usuario.belongsTo(Carrera, {
|
||||
foreignKey: {
|
||||
name: 'idCarrera',
|
||||
type: DataTypes.INTEGER,
|
||||
allowNull: false,
|
||||
},
|
||||
});
|
||||
// Usuario.belongsTo(Carrera, {
|
||||
// foreignKey: {
|
||||
// name: 'idCarrera',
|
||||
// type: DataTypes.INTEGER,
|
||||
// allowNull: false,
|
||||
// },
|
||||
// });
|
||||
|
||||
module.exports = Usuario;
|
||||
|
||||
Reference in New Issue
Block a user