@kipicore/dbcore 1.1.602 → 1.1.603

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,23 @@
1
+ 'use strict';
2
+ /** @type {import('sequelize-cli').Migration} */
3
+ module.exports = {
4
+ async up(queryInterface, Sequelize) {
5
+ const table = 'rms_purchase_requests';
6
+ const column = 'remarks';
7
+ const tableInfo = await queryInterface.describeTable(table);
8
+ if (!tableInfo[column]) {
9
+ await queryInterface.addColumn(table, column, {
10
+ type: Sequelize.TEXT,
11
+ allowNull: true,
12
+ });
13
+ }
14
+ },
15
+ async down(queryInterface) {
16
+ const table = 'rms_purchase_requests';
17
+ const column = 'remarks';
18
+ const tableInfo = await queryInterface.describeTable(table);
19
+ if (tableInfo[column]) {
20
+ await queryInterface.removeColumn(table, column);
21
+ }
22
+ }
23
+ };
@@ -14,5 +14,6 @@ export interface IRmsPurchaseRequestAttributes extends IDefaultAttributes {
14
14
  approvedAt?: Date | null;
15
15
  approvalRemarks?: string | null;
16
16
  approvalHistory?: string;
17
+ remarks?: string | null;
17
18
  status: string;
18
19
  }
@@ -9,5 +9,6 @@ export interface IRmsPurchaseRequestItemAttributes extends IDefaultAttributes {
9
9
  estimatedRate?: number | null;
10
10
  estimatedAmount?: number | null;
11
11
  approvedQuantity?: number | null;
12
+ remarks?: string | null;
12
13
  status: string;
13
14
  }
@@ -7,6 +7,7 @@ declare class RmsPurchaseRequestItemModel extends Model<IRmsPurchaseRequestItemA
7
7
  purchaseRequestId: string;
8
8
  resourceId: string;
9
9
  description?: string | null;
10
+ remarks?: string | null;
10
11
  quantity: number;
11
12
  estimatedRate?: number | null;
12
13
  estimatedAmount?: number | null;
@@ -58,6 +58,10 @@ RmsPurchaseRequestItemModel.init({
58
58
  type: sequelize_1.DataTypes.TEXT,
59
59
  allowNull: true,
60
60
  },
61
+ remarks: {
62
+ type: sequelize_1.DataTypes.TEXT,
63
+ allowNull: true,
64
+ },
61
65
  quantity: {
62
66
  type: sequelize_1.DataTypes.DECIMAL(10, 2),
63
67
  allowNull: true,
@@ -16,6 +16,7 @@ declare class RmsPurchaseRequestModel extends Model<IRmsPurchaseRequestAttribute
16
16
  approvedAt?: Date | null;
17
17
  approvalRemarks?: string | null;
18
18
  approvalHistory?: string | null;
19
+ remarks?: string | null;
19
20
  status: string;
20
21
  createdBy?: string | null;
21
22
  updatedBy?: string | null;
@@ -107,6 +107,10 @@ RmsPurchaseRequestModel.init({
107
107
  allowNull: true,
108
108
  field: 'approval_history',
109
109
  },
110
+ remarks: {
111
+ type: sequelize_1.DataTypes.TEXT,
112
+ allowNull: true,
113
+ },
110
114
  status: {
111
115
  type: sequelize_1.DataTypes.STRING,
112
116
  allowNull: true,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kipicore/dbcore",
3
- "version": "1.1.602",
3
+ "version": "1.1.603",
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",