- Cataloghi

- Import ed Export Pagine
- ObjectID sostituita con ObjectId
This commit is contained in:
Surya Paolo
2024-12-17 17:55:47 +01:00
parent 14b3e18986
commit 300bab2125
91 changed files with 404 additions and 272 deletions

View File

@@ -123,20 +123,25 @@ const productInfoSchema = new Schema({
collezione: {
type: String,
},
date_publishing: {
date_pub: {
type: Date,
},
date_publishing_ts: {
date_pub_ts: {
type: Number,
},
productTypes: [{
type: Number,
}],
totaleVenduti: Number,
venditeLastM: Number,
venditeLast6M: Number,
venditeLastY: Number,
venditeLast2Y: Number,
date_updated: {
type: Date,
},
totVen: Number,
vLastM: Number,
vLast6M: Number,
vLastY: Number,
vLast2Y: Number,
dataUltimoOrdine: Date,
rank3M: Number,
rank6M: Number,
@@ -152,7 +157,12 @@ const productInfoSchema = new Schema({
var productInfo = module.exports = mongoose.model('ProductInfo', productInfoSchema);
module.exports.getFieldsForSearch = function () {
return [{ field: 'name', type: tools.FieldType.string }]
return [
{ field: 'name', type: tools.FieldType.string },
{ field: 'code', type: tools.FieldType.string },
{ field: 'sku', type: tools.FieldType.string },
{ field: 'codice_EAN', type: tools.FieldType.string },
]
};
module.exports.executeQueryTable = function (idapp, params) {