@giftwizard/db-models
Advanced tools
Comparing version 6.0.0 to 7.0.0-dev.0
@@ -28,6 +28,2 @@ const _ = require('lodash'); | ||
}, | ||
gift_id: { | ||
type: DataTypes.INTEGER, | ||
allowNull: true | ||
}, | ||
shopify_gift_card_id: { | ||
@@ -211,5 +207,2 @@ type: DataTypes.TEXT | ||
models.Gift.hasMany(GiftCard, { foreignKey: 'gift_id', sourceKey: 'id' }); | ||
GiftCard.belongsTo(models.Gift, { foreignKey: 'gift_id', targetKey: 'id' }); | ||
GiftCard.hasMany(models.GiftCardsUsage, { foreignKey: 'gift_card_id', sourceKey: 'gift_card_id' }); | ||
@@ -216,0 +209,0 @@ models.GiftCardsUsage.belongsTo(GiftCard, { foreignKey: 'gift_card_id', targetKey: 'gift_card_id' }); |
{ | ||
"name": "@giftwizard/db-models", | ||
"version": "6.0.0", | ||
"version": "7.0.0-dev.0", | ||
"description": "Rise.ai package for 'sequelize' models used by several projects.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
83606
44
3144
3