@kipicore/dbcore 1.1.126 → 1.1.127

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.
@@ -54,11 +54,11 @@ class TestimonialModel extends sequelize_1.Model {
54
54
  });
55
55
  TestimonialModel.belongsTo(AcademicCalendarModel, {
56
56
  foreignKey: { name: 'academicCalendarId', field: 'academic_calendar_id' },
57
- as: 'syllabusAcaCal',
57
+ as: 'testimonialAcaCal',
58
58
  });
59
59
  AcademicCalendarModel.hasMany(TestimonialModel, {
60
60
  foreignKey: { name: 'academicCalendarId', field: 'academic_calendar_id' },
61
- as: 'acaCalSyllabus',
61
+ as: 'acaCalTestimonial',
62
62
  });
63
63
  }
64
64
  static addHooks(models) {
@@ -26,11 +26,11 @@ class UserHasLeaveHistoryModel extends sequelize_1.Model {
26
26
  });
27
27
  UserHasLeaveHistoryModel.belongsTo(AcademicCalendarModel, {
28
28
  foreignKey: { name: 'academicCalendarId', field: 'academic_calendar_id' },
29
- as: 'syllabusAcaCal',
29
+ as: 'userHasLeaveHisAcaCal',
30
30
  });
31
31
  AcademicCalendarModel.hasMany(UserHasLeaveHistoryModel, {
32
32
  foreignKey: { name: 'academicCalendarId', field: 'academic_calendar_id' },
33
- as: 'acaCalSyllabus',
33
+ as: 'acaCalUserHasLeaveHis',
34
34
  });
35
35
  }
36
36
  }
@@ -44,11 +44,11 @@ class UserProjectAssessmentOptionModel extends sequelize_1.Model {
44
44
  });
45
45
  UserProjectAssessmentOptionModel.belongsTo(AcademicCalendarModel, {
46
46
  foreignKey: { name: 'academicCalendarId', field: 'academic_calendar_id' },
47
- as: 'syllabusAcaCal',
47
+ as: 'userProjectOptionAcaCal',
48
48
  });
49
49
  AcademicCalendarModel.hasMany(UserProjectAssessmentOptionModel, {
50
50
  foreignKey: { name: 'academicCalendarId', field: 'academic_calendar_id' },
51
- as: 'acaCalSyllabus',
51
+ as: 'acaCalUserProjectOption',
52
52
  });
53
53
  }
54
54
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kipicore/dbcore",
3
- "version": "1.1.126",
3
+ "version": "1.1.127",
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",