produccion
This commit is contained in:
@@ -1,32 +0,0 @@
|
||||
const Usuario = require('./tablas/Usuario');
|
||||
const { encriptar } = require('../helper/encriptar');
|
||||
|
||||
const dataUsuarios = async () => {
|
||||
let usuario = ['416313221', '111111111', '222222222'];
|
||||
let nombre = [
|
||||
'Adriana De Luna Ramirez',
|
||||
'Nombre Falso 1',
|
||||
'Nombre Falso 2',
|
||||
];
|
||||
|
||||
for (let i = 0; i < usuario.length; i++) {
|
||||
await Usuario.create({
|
||||
usuario: usuario[i],
|
||||
nombre: nombre[i],
|
||||
password: encriptar('holi'),
|
||||
idTipoUsuario: 2,
|
||||
});
|
||||
console.log(`Se insertó el usuario ${usuario[i]}.`.magenta);
|
||||
}
|
||||
};
|
||||
|
||||
const exec = async () => {
|
||||
await dataUsuarios();
|
||||
console.log(
|
||||
'\nSe ha instalado exitosamente la información falsa en la base de datos.\n'
|
||||
.underline.bold.green
|
||||
);
|
||||
process.exit();
|
||||
};
|
||||
|
||||
exec();
|
||||
@@ -18,16 +18,18 @@ Inscripcion.init(
|
||||
type: DataTypes.INTEGER,
|
||||
defaultValue: 2,
|
||||
},
|
||||
confirmacion: {
|
||||
cancelacion: {
|
||||
type: DataTypes.BOOLEAN,
|
||||
allowNull: false,
|
||||
defaultValue: false,
|
||||
defaultValue: 0,
|
||||
},
|
||||
motivo: {
|
||||
type: DataTypes.STRING(100),
|
||||
defaultValue: null,
|
||||
},
|
||||
folio: {
|
||||
type: DataTypes.STRING(10),
|
||||
allowNull: true,
|
||||
defaultValue: null,
|
||||
unique: true,
|
||||
},
|
||||
monto: {
|
||||
type: DataTypes.INTEGER,
|
||||
|
||||
@@ -22,8 +22,8 @@ Usuario.init(
|
||||
allowNull: true,
|
||||
defaultValue: null,
|
||||
},
|
||||
semestre: {
|
||||
type: DataTypes.STRING(30),
|
||||
generacion: {
|
||||
type: DataTypes.STRING(5),
|
||||
allowNull: false,
|
||||
},
|
||||
idCarrera: {
|
||||
|
||||
Reference in New Issue
Block a user