listo, faltan correo y pruebas

This commit is contained in:
2022-04-17 22:23:39 -05:00
parent de238e3e50
commit a69574d529
23 changed files with 695 additions and 62 deletions
+12 -5
View File
@@ -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;