- aggiornamento Cataloghi

- Gestione delle versioni del prodotto ("Nuovi","Usati","Epub", ecc..)
This commit is contained in:
Surya Paolo
2024-06-20 17:16:56 +02:00
parent 8dbdad1e02
commit c3cc344b9f
6 changed files with 136 additions and 45 deletions

View File

@@ -44,6 +44,17 @@ const elemText = new Schema(
}
);
const catalogo = new Schema(
{
//++AddCATALOGO_FIELDS
productTypes: [{ type: Number }],
excludeproductTypes: [{ type: Number }],
// formato: [{ type: String, default: '' }],
// categoria: [{ type: String, default: '' }],
// Editore: [{ type: String, default: '' }],
}
);
const MyElemSchema = new Schema({
_id: {
type: ObjectId,
@@ -164,6 +175,7 @@ const MyElemSchema = new Schema({
type: String,
},
listcards: [myCard],
catalogo: catalogo,
list: [
{
imagefile: {