@giftwizard/db-models
Advanced tools
Comparing version 16.1.0 to 17.0.0
@@ -37,3 +37,2 @@ const { v4: uuid } = require('uuid'); | ||
send_at: DataTypes.DATE, | ||
meta: DataTypes.JSON, | ||
}, | ||
@@ -40,0 +39,0 @@ { |
@@ -47,8 +47,3 @@ module.exports = (sequelizeConnection, DataTypes) => { | ||
Order.associate = (models) => { | ||
Order.hasMany(models.Gift, { foreignKey: 'order_id', sourceKey: 'order_id' }); | ||
models.Gift.belongsTo(Order, { foreignKey: 'order_id', targetKey: 'order_id' }); | ||
}; | ||
return Order; | ||
}; |
@@ -19,3 +19,4 @@ module.exports = (sequelizeConnection, DataTypes) => { | ||
note: DataTypes.STRING, | ||
expiration_date: DataTypes.DATE | ||
expiration_date: DataTypes.DATE, | ||
campaign_id: DataTypes.STRING, | ||
}, | ||
@@ -22,0 +23,0 @@ { |
{ | ||
"name": "@giftwizard/db-models", | ||
"version": "16.1.0", | ||
"version": "17.0.0", | ||
"description": "Rise.ai package for 'sequelize' models used by several projects.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Deprecated
MaintenanceThe maintainer of the package marked it as deprecated. This could indicate that a single version should not be used, or that the package is no longer maintained and any new vulnerabilities will not be fixed.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
91387
49
3426
1