Soy Joshua
i'm joshua
// Cliente
const ClienteSchema = new Schema({
nombre: String,
telefono: String,
correo: String,
});
// Servicio
const ServicioShema = new Schema({
nombre: String,
codigo: String,
tarifa: String,
descripcion: String
});
// Suscripcion
const SuscripcionShema = new Schema({
cliente_id: String,
servicio_id: String,
created_At: {type: Date, default: Date.now}
});
docker compose
big docker compose
let msg = fs.readFileSync('resource/data.txt')
let obj = {
name: 'data.txt',
content: msg
}
ch.sendToQueue(q, new Buffer(JSON.stringify(obj)));