diff --git a/backend/src/infrastructure/data_access/repositories/schemas/order.schema.ts b/backend/src/infrastructure/data_access/repositories/schemas/order.schema.ts index 0a0fffe5..caab78d2 100644 --- a/backend/src/infrastructure/data_access/repositories/schemas/order.schema.ts +++ b/backend/src/infrastructure/data_access/repositories/schemas/order.schema.ts @@ -31,7 +31,7 @@ export class OrderDataModel extends BaseDocument implements IOrderDataModel { @Prop({ type: Number, required: true }) total: number; - + @Prop({ type: [{ type: mongoose.Schema.Types.ObjectId, ref: CartItemDataModel }] }) @Type(() => CartItemDataModel) cartItems?: CartItemDataModel[];