carga masiva2

This commit is contained in:
Lemuel Marquez
2020-12-27 21:05:36 -06:00
parent 6fc7563a5a
commit c01cac94a9
5 changed files with 140 additions and 45 deletions
+1 -1
View File
@@ -78,7 +78,7 @@ const dataPrograma = async () => {
institucion: `Institucion Falsa ${i + 1}`,
dependencia: `Dependencia Falsa ${j - i + 1}`,
programa: `Programa Falso ${j}`,
clavePrograma: `2020/${i + j + 1}-${i + j + 1}`,
clavePrograma: `2020-${i}/${i + j + 1}-${i + j + 1}`,
idUsuario: i + 2,
});
console.log(
+2 -1
View File
@@ -13,8 +13,9 @@ Usuario.init(
autoIncrement: true,
},
usuario: {
type: DataTypes.STRING(60),
type: DataTypes.STRING(100),
allowNull: false,
unique: true,
},
password: {
type: DataTypes.STRING(60),