@kipicore/dbcore 1.1.183 → 1.1.184

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
+ export function up(queryInterface: any, Sequelize: any): Promise<void>;
2
+ export function down(queryInterface: any, Sequelize: any): Promise<void>;
@@ -0,0 +1,22 @@
1
+ 'use strict';
2
+ const up = async (queryInterface, Sequelize) => {
3
+ const table = await queryInterface.describeTable('maintenance');
4
+ if (!table.is_remove) {
5
+ await queryInterface.addColumn('maintenance', 'is_remove', {
6
+ type: Sequelize.BOOLEAN,
7
+ defaultValue: null,
8
+ allowNull: true,
9
+ field: 'is_remove',
10
+ });
11
+ }
12
+ };
13
+ const down = async (queryInterface, Sequelize) => {
14
+ const table = await queryInterface.describeTable('maintenance');
15
+ if (table.is_remove) {
16
+ await queryInterface.removeColumn('maintenance', 'is_remove');
17
+ }
18
+ };
19
+ module.exports = {
20
+ up,
21
+ down,
22
+ };
@@ -11,4 +11,5 @@ export interface IMaintenanceModelAttributes extends IDefaultAttributes {
11
11
  instituteId?: string;
12
12
  entityId?: string;
13
13
  appType: APP_TYPE;
14
+ isRemove?: string;
14
15
  }
@@ -121,4 +121,6 @@ export interface IUserDetailsAttributes extends IDefaultAttributes, Document {
121
121
  workingDetails: IWorkingDetailsSchema;
122
122
  userSchoolInfo: IUserSchoolInfo;
123
123
  domicileState?: string;
124
+ studentPen?: string;
125
+ apaarId?: string;
124
126
  }
@@ -503,6 +503,12 @@ const userDetailsSchema = new mongoose_1.Schema({
503
503
  deletedBy: {
504
504
  type: String,
505
505
  },
506
+ studentPen: {
507
+ type: String,
508
+ },
509
+ apaarId: {
510
+ type: String,
511
+ },
506
512
  }, {
507
513
  timestamps: true,
508
514
  versionKey: false,
@@ -12,6 +12,7 @@ declare class MaintenanceModel extends Model<IMaintenanceModelAttributes, TIWork
12
12
  maintenanceDescription: string;
13
13
  entityId?: string;
14
14
  appType: string;
15
+ isRemove?: string;
15
16
  static associate(models: any): void;
16
17
  }
17
18
  export default MaintenanceModel;
@@ -109,6 +109,11 @@ MaintenanceModel.init({
109
109
  type: sequelize_1.DataTypes.STRING,
110
110
  field: 'app_type',
111
111
  allowNull: true,
112
+ },
113
+ isRemove: {
114
+ type: sequelize_1.DataTypes.BOOLEAN,
115
+ field: 'is_remove',
116
+ allowNull: true,
112
117
  }
113
118
  }, {
114
119
  modelName: 'MaintenanceModel',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kipicore/dbcore",
3
- "version": "1.1.183",
3
+ "version": "1.1.184",
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",