Changeset 55ed171 for backend/models


Ignore:
Timestamp:
10/15/22 15:28:57 (2 years ago)
Author:
Nace Gjorgjievski <nace.gorgievski123@…>
Branches:
master
Children:
113029b
Parents:
ee05663
Message:

Full Admin Functionality Added

Location:
backend/models
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • backend/models/orderModel.js

    ree05663 r55ed171  
    3535    totalPrice: { type: Number, required: true },
    3636    user: { type: mongoose.Schema.Types.ObjectId, ref: "User", required: true },
     37    isConfirmed: { type: Boolean, default: false },
    3738    isPaid: { type: Boolean, default: false },
     39    contactNumber: { type: String },
    3840    paidAt: { type: Date },
    3941    paidAtFormat: { type: String },
     42    shippedAt: { type: Date },
     43    isShipped: { type: Boolean, default: false },
    4044    isDelivered: { type: Boolean, default: false },
    4145    deliveredAt: { type: Date },
  • backend/models/productModel.js

    ree05663 r55ed171  
    77    image: { type: String, required: true },
    88    sideImage: { type: String, required: true },
     9    sideImage2: { type: String, required: true },
    910    dimension: { type: String, required: true },
    1011    scheme: { type: String, required: true },
Note: See TracChangeset for help on using the changeset viewer.