aggiornamento ordini

This commit is contained in:
Surya Paolo
2023-12-14 15:20:21 +01:00
parent d0bf7e1b6a
commit ea2b7095c9
7 changed files with 246 additions and 130 deletions

View File

@@ -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: {