aggiornamento cataloghi, search
This commit is contained in:
@@ -58,9 +58,9 @@ mongoose.plugin(schema => {
|
||||
*/
|
||||
|
||||
const T_WEB_ArticoliSchema = new Schema({
|
||||
IdArticolo: { type: Number, index: true },
|
||||
Ean13: { type: String, index: true },
|
||||
Titolo: { type: String, index: true },
|
||||
IdArticolo: { type: Number },
|
||||
Ean13: { type: String },
|
||||
Titolo: { type: String },
|
||||
ListaAutori: String,
|
||||
ListaArgomenti: String,
|
||||
IdStatoProdotto: Number,
|
||||
@@ -101,7 +101,7 @@ const T_WEB_ArticoliSchema = new Schema({
|
||||
|
||||
module.exports = mongoose.model('T_WEB_Articoli', T_WEB_ArticoliSchema);
|
||||
|
||||
module.exports.createIndexes()
|
||||
module.exports.createIndexes({ IdArticolo: 1, DataOra: -1 })
|
||||
.then(() => { })
|
||||
.catch((err) => { throw err; });
|
||||
|
||||
|
||||
Reference in New Issue
Block a user