Develop PDB 1

This commit is contained in:
Surya Paolo
2023-11-28 14:20:22 +01:00
parent 5aa6accfc5
commit a66cd610dd
4 changed files with 43 additions and 8 deletions

View File

@@ -27,7 +27,6 @@ const productSchema = new Schema({
],
code: {
type: String,
lowercase: true
},
name: {
type: String,
@@ -39,8 +38,13 @@ const productSchema = new Schema({
type: String, ref: 'Department'
},
category: {
type: String, ref: 'Category'
// type: String
type: Array,
},
prezzo_ivato: {
type: Number
},
perc_iva: { // 4, 10, 22 &
type: Number
},
price: {
type: Number