@kipicore/dbcore 1.1.627 → 1.1.629

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,2 @@
1
+ declare const _exports: import("sequelize-cli").Migration;
2
+ export = _exports;
@@ -0,0 +1,13 @@
1
+ 'use strict';
2
+ /** @type {import('sequelize-cli').Migration} */
3
+ module.exports = {
4
+ async up(queryInterface, Sequelize) {
5
+ await queryInterface.addColumn('refunds', 'amount', {
6
+ type: Sequelize.INTEGER,
7
+ allowNull: true,
8
+ });
9
+ },
10
+ async down(queryInterface, Sequelize) {
11
+ await queryInterface.removeColumn('refunds', 'amount');
12
+ },
13
+ };
@@ -0,0 +1,2 @@
1
+ declare const _exports: import("sequelize-cli").Migration;
2
+ export = _exports;
@@ -0,0 +1,13 @@
1
+ 'use strict';
2
+ /** @type {import('sequelize-cli').Migration} */
3
+ module.exports = {
4
+ async up(queryInterface, Sequelize) {
5
+ await queryInterface.addColumn('refunds', 'user_id', {
6
+ type: Sequelize.UUID,
7
+ allowNull: true,
8
+ });
9
+ },
10
+ async down(queryInterface, Sequelize) {
11
+ await queryInterface.removeColumn('refunds', 'user_id');
12
+ },
13
+ };
@@ -11,4 +11,6 @@ export interface IRefundCollectionModelAttributes extends IDefaultAttributes {
11
11
  refundedBy?: string;
12
12
  refundedAt?: Date;
13
13
  refundAmount?: number;
14
+ amount?: number;
15
+ userId?: string;
14
16
  }
@@ -13,6 +13,8 @@ declare class RefundCollectionModule extends Model<IRefundCollectionModelAttribu
13
13
  refundedBy: string;
14
14
  refundedAt: Date;
15
15
  refundAmount: number;
16
+ amount: number;
17
+ userId: string;
16
18
  createdBy: string;
17
19
  updatedBy: string;
18
20
  deletedBy: string;
@@ -81,6 +81,15 @@ RefundCollectionModule.init({
81
81
  allowNull: true,
82
82
  field: 'refund_amount',
83
83
  },
84
+ amount: {
85
+ type: sequelize_1.DataTypes.INTEGER,
86
+ allowNull: true,
87
+ },
88
+ userId: {
89
+ type: sequelize_1.DataTypes.UUID,
90
+ allowNull: true,
91
+ field: 'user_id',
92
+ },
84
93
  paymentType: {
85
94
  type: sequelize_1.DataTypes.STRING,
86
95
  allowNull: true,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kipicore/dbcore",
3
- "version": "1.1.627",
3
+ "version": "1.1.629",
4
4
  "description": "Reusable DB core package with Postgres, MongoDB, models, services, interfaces, and types",
5
5
  "types": "dist/index.d.ts",
6
6
  "main": "dist/index.js",