const mongoose = require("mongoose");
const Schema = mongoose.Schema

const ProductsubscribeSchema = mongoose.Schema({
  ps_id: {
    type: Number
  },
  product_id: {
    type: String,
    required: true
  },
  ctime: {
    type: String,
    required: true
  },
  retailer:{type: String},
  istore_product_id: { type: Number },
  // upc: { type: null },
  update_time :  { type: String },
  is_delete: {type: Number},
  post_shopify: { // record created date
    type: Number,
  },
  sub_unsub: { type: Number },
  marketplace: { type: String },
  // d2c_category: { type: null },
  
});

module.exports = mongoose.model("Productsubscribe", ProductsubscribeSchema)