Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const mongoose = require("mongoose");
- const orderHistoryShema = mongoose.Schema({
- userInfo : {
- type : mongoose.Types.ObjectId,
- ref : "User",
- },
- orderInfo : {
- type : Object,
- required : true
- },
- status : {
- type : String,
- enum : ["delivered","pending"]
- },
- date : {
- type : String,
- default: Date.now
- }
- });
- module.exports = orderHistoryShema;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement