Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@giftwizard/db-models

Package Overview
Dependencies
Maintainers
9
Versions
115
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@giftwizard/db-models - npm Package Compare versions

Comparing version 16.1.0 to 17.0.0

models/reward copy.js

1

models/gift.js

@@ -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",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc