listo, faltan correo y pruebas
This commit is contained in:
@@ -16,19 +16,27 @@ Profesor.init(
|
||||
allowNull: false,
|
||||
unique: true,
|
||||
},
|
||||
nombre: {
|
||||
type: DataTypes.STRING(50),
|
||||
allowNull: false,
|
||||
},
|
||||
adscripcion: {
|
||||
type: DataTypes.STRING(80),
|
||||
allowNull: false
|
||||
allowNull: false,
|
||||
},
|
||||
correo: {
|
||||
type: DataTypes.STRING(50),
|
||||
allowNull: true,
|
||||
defaultValue: null
|
||||
defaultValue: null,
|
||||
},
|
||||
numeroInvitados: {
|
||||
type: DataTypes.INTEGER,
|
||||
allowNull: true
|
||||
}
|
||||
allowNull: true,
|
||||
},
|
||||
numeroInvitadosDentro: {
|
||||
type: DataTypes.INTEGER,
|
||||
allowNull: true,
|
||||
},
|
||||
},
|
||||
{
|
||||
sequelize,
|
||||
@@ -38,5 +46,4 @@ Profesor.init(
|
||||
}
|
||||
);
|
||||
|
||||
|
||||
module.exports = Profesor;
|
||||
|
||||
Reference in New Issue
Block a user