@kipicore/dbcore 1.1.262 → 1.1.264

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,21 @@
1
+ 'use strict';
2
+ const up = async (queryInterface, Sequelize) => {
3
+ const table = await queryInterface.describeTable('institutes');
4
+ if (table.establishment_year) {
5
+ await queryInterface.addColumn('institutes', 'establishment_year', {
6
+ type: Sequelize.INTEGER,
7
+ allowNull: true,
8
+ field: 'establishment_year',
9
+ });
10
+ }
11
+ };
12
+ const down = async (queryInterface, Sequelize) => {
13
+ const table = await queryInterface.describeTable('institutes');
14
+ if (table.establishment_year) {
15
+ await queryInterface.removeColumn('institutes', 'establishment_year');
16
+ }
17
+ };
18
+ module.exports = {
19
+ up,
20
+ down,
21
+ };
@@ -35,4 +35,5 @@ export interface IInstituteAttributes extends IDefaultAttributes {
35
35
  pdfId?: string;
36
36
  campusId?: string;
37
37
  syncAcademicList?: string[];
38
+ establishmentYear?: number;
38
39
  }
@@ -16,6 +16,5 @@ export interface ITicketRaiseAttributes extends IDefaultAttributes, Document {
16
16
  assignTo: string;
17
17
  files: string[];
18
18
  conversation: ITicketRaiseConversationAttributes[];
19
- academicCalendarId: string;
20
- instituteId: string;
19
+ userId: string;
21
20
  }
@@ -81,11 +81,7 @@ const TicketRaiseSchema = new mongoose_1.Schema({
81
81
  type: [TicketConversationsSchema],
82
82
  required: false
83
83
  },
84
- academicCalendarId: {
85
- type: String,
86
- required: false,
87
- },
88
- instituteId: {
84
+ userId: {
89
85
  type: String,
90
86
  required: false,
91
87
  },
@@ -37,6 +37,7 @@ declare class InstituteModel extends Model<IInstituteAttributes, TInstituteCreat
37
37
  campusId?: string;
38
38
  taluka?: string;
39
39
  syncAcademicList?: string[];
40
+ establishmentYear?: number;
40
41
  createdBy: string;
41
42
  updatedBy: string;
42
43
  deletedBy: string;
@@ -120,6 +120,7 @@ InstituteModel.init({
120
120
  country: { type: sequelize_1.DataTypes.INTEGER, allowNull: false },
121
121
  state: { type: sequelize_1.DataTypes.INTEGER, allowNull: false },
122
122
  city: { type: sequelize_1.DataTypes.INTEGER, allowNull: false },
123
+ establishmentYear: { type: sequelize_1.DataTypes.INTEGER, allowNull: true, field: 'establishment_year' },
123
124
  plannerSyncStatus: {
124
125
  type: sequelize_1.DataTypes.STRING,
125
126
  field: 'planner_sync_status',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kipicore/dbcore",
3
- "version": "1.1.262",
3
+ "version": "1.1.264",
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",