@kipicore/dbcore 1.1.376 → 1.1.378

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.
@@ -11,5 +11,7 @@ export interface IInformationSupportModelAttributes extends IDefaultAttributes,
11
11
  id: string;
12
12
  title: string;
13
13
  number: number;
14
+ previousNumber: number;
15
+ nextNumber: number;
14
16
  information: IDescription[];
15
17
  }
@@ -66,6 +66,14 @@ const informationSupportSchema = new mongoose_1.Schema({
66
66
  type: Number,
67
67
  required: false, // This will be auto-incremented on server side
68
68
  },
69
+ nextNumber: {
70
+ type: Number,
71
+ required: false,
72
+ },
73
+ previousNumber: {
74
+ type: Number,
75
+ required: false,
76
+ },
69
77
  information: {
70
78
  type: [descriptionSchema],
71
79
  default: [],
@@ -5,7 +5,7 @@ const index_1 = require("./index");
5
5
  const app_1 = require("../../constants/app");
6
6
  class PdcHistoryModel extends sequelize_1.Model {
7
7
  static associate(models) {
8
- const { UserModel, InstituteModel, InstituteEntityModel, StudentFeeCollectionModel, PdcChequeModel, AcademicCalendarModel, StudentFeeTypeCollectionModel, } = models;
8
+ const { UserModel, InstituteModel, StudentFeeCollectionModel, PdcChequeModel, AcademicCalendarModel, StudentFeeTypeCollectionModel } = models;
9
9
  PdcHistoryModel.belongsTo(UserModel, {
10
10
  foreignKey: { name: 'createdBy', allowNull: true, field: 'created_by' },
11
11
  as: 'createdByUser',
@@ -34,14 +34,6 @@ class PdcHistoryModel extends sequelize_1.Model {
34
34
  foreignKey: 'userId',
35
35
  as: 'userHasPdcHistory',
36
36
  });
37
- PdcHistoryModel.belongsTo(InstituteEntityModel, {
38
- foreignKey: 'standardId',
39
- as: 'pdcHistoryStandard',
40
- });
41
- InstituteEntityModel.hasMany(PdcHistoryModel, {
42
- foreignKey: 'standardId',
43
- as: 'StandardPdcHistory',
44
- });
45
37
  PdcHistoryModel.belongsTo(PdcChequeModel, {
46
38
  foreignKey: 'pdcChequeId',
47
39
  as: 'pdcChequeDetails',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kipicore/dbcore",
3
- "version": "1.1.376",
3
+ "version": "1.1.378",
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",