text: 'use strict'
  
  // Subscription
  module.exports = function(sequelize, DataTypes) {
    let Subscription = sequelize.define('subscriptions', {
      userId: {
        type: DataTypes.INTEGER
      },
      crateId: {
        type: DataTypes.INTEGER
      },
      style: {
        type: DataTypes.STRING
      }
    })
  
    Subscription.associate = function(models) {
      Subscription.belongsTo(models.User)
      Subscription.belongsTo(models.Crate)
    }
  
    return Subscription
  }