Aggiornata Chiave Segreta per accesso SIGNCODE.

- Inserito autenticazione MongoDB ai database.
-PCB: Aggiunto altri campi a products
This commit is contained in:
Surya Paolo
2023-12-07 08:34:24 +01:00
parent d5bc76335f
commit 4871c2d868
10 changed files with 140 additions and 20 deletions

View File

@@ -28,6 +28,12 @@ const productSchema = new Schema({
code: {
type: String,
},
codice_EAN: {
type: String,
},
barcode: {
type: String,
},
name: {
type: String,
},
@@ -61,6 +67,9 @@ const productSchema = new Schema({
weight: {
type: Number
},
vegan: {
type: Boolean
},
unit: {
type: Number
},
@@ -97,6 +106,15 @@ const productSchema = new Schema({
img3: {
type: String,
},
ingredienti: {
type: String,
},
valori_nutrizionali: {
type: String,
},
note: {
type: String,
},
});
var Product = module.exports = mongoose.model('Product', productSchema);