{"size": 535, "ext": "js", "max_stars_repo_path": "server/db/models/Wishlist.js", "max_stars_repo_name": "Banana-Boys/banana-boutique", "max_stars_repo_stars_event_min_datetime": "2019-11-05T16:26:25.000Z", "max_stars_repo_stars_event_max_datetime": "2019-11-13T09:34:36.000Z", "max_issues_repo_path": "server/db/models/Wishlist.js", "max_issues_repo_name": "Banana-Boys/banana-boutique", "max_issues_repo_issues_event_min_datetime": "2019-11-05T20:30:47.000Z", "max_issues_repo_issues_event_max_datetime": "2021-03-09T22:21:38.000Z", "max_forks_repo_path": "server/db/models/Wishlist.js", "max_forks_repo_name": "Banana-Boys/banana-boutique", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": 4, "max_issues_count": 3, "max_forks_count": null, "avg_line_length": 26.75, "max_line_length": 115, "alphanum_fraction": 0.6934579439}
const Sequelize = require('sequelize')
const db = require('../db')

const Wishlist = db.define('wishlist', {
  //   fk reference to productId(s) and/or bundleId(s) through WishlistLineItem
  //   fk reference to shippingAddress
  //   fk reference to User
  name: {
    type: Sequelize.STRING,
    allowNull: false
  },
  shippingTax: {
    type: Sequelize.STRING,
    defaultValue: 0
  }
  // Subtotal will be calculated as a function of the line items, promotion, and shipping tax as an instance method
})

module.exports = Wishlist
