aggiornamento ordini
This commit is contained in:
@@ -18,9 +18,7 @@ const orderSchema = new Schema({
|
||||
idapp: {
|
||||
type: String,
|
||||
},
|
||||
userId: {
|
||||
type: String,
|
||||
},
|
||||
userId: { type: Schema.Types.ObjectId, ref: 'User' },
|
||||
status: {
|
||||
type: Number,
|
||||
},
|
||||
@@ -63,11 +61,11 @@ const orderSchema = new Schema({
|
||||
date_spedito: {
|
||||
type: Date
|
||||
},
|
||||
completed: {
|
||||
completato: {
|
||||
type: Boolean,
|
||||
default: false,
|
||||
},
|
||||
date_completed: {
|
||||
date_completato: {
|
||||
type: Date
|
||||
},
|
||||
consegnato: {
|
||||
|
||||
Reference in New Issue
Block a user