ojamoto_models 1.0.1 → 1.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,22 @@
1
+ ("use strict");
2
+
3
+ module.exports = {
4
+ async up(queryInterface, Sequelize) {
5
+ await queryInterface.addColumn(
6
+ "wallet_transactions",
7
+ "provider_reference_id",
8
+ {
9
+ type: Sequelize.STRING(100),
10
+ allowNull: true,
11
+ after: "user_id",
12
+ comment: "Flutterwave's own transfer/transaction ID",
13
+ },
14
+ );
15
+ },
16
+ async down(queryInterface) {
17
+ await queryInterface.removeColumn(
18
+ "wallet_transactions",
19
+ "provider_reference_id",
20
+ );
21
+ },
22
+ };
@@ -41,6 +41,10 @@ module.exports = (sequelize) => {
41
41
  onDelete: "CASCADE",
42
42
  comment: "Denormalized for quick queries",
43
43
  },
44
+ provider_reference_id: {
45
+ type: DataTypes.STRING(100),
46
+ allowNull: true,
47
+ },
44
48
  type: {
45
49
  type: DataTypes.ENUM(...Object.values(WALLET_TRANSACTION_TYPE)),
46
50
  allowNull: false,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ojamoto_models",
3
- "version": "1.0.1",
3
+ "version": "1.0.2",
4
4
  "main": "index.js",
5
5
  "scripts": {
6
6
  "migrate:up": "npx sequelize-cli db:migrate",