@kipicore/dbcore 1.1.131 → 1.1.132

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.
Files changed (85) hide show
  1. package/dist/db/psql/migrations/20251209061902-add-acl_id_feeTypeModel.d.ts +2 -0
  2. package/dist/db/psql/migrations/20251209061902-add-acl_id_feeTypeModel.js +21 -0
  3. package/dist/db/psql/migrations/20251210100917-id_add_typemanagement.d.ts +2 -0
  4. package/dist/db/psql/migrations/20251210100917-id_add_typemanagement.js +33 -0
  5. package/dist/db/psql/migrations/20251210101254-id_add_bankAccDetails.d.ts +2 -0
  6. package/dist/db/psql/migrations/20251210101254-id_add_bankAccDetails.js +22 -0
  7. package/dist/db/psql/migrations/20251210102112-id_add_accHasReceiptDetails.d.ts +2 -0
  8. package/dist/db/psql/migrations/20251210102112-id_add_accHasReceiptDetails.js +33 -0
  9. package/dist/db/psql/migrations/20251210102601-id_add_masterLeave.d.ts +2 -0
  10. package/dist/db/psql/migrations/20251210102601-id_add_masterLeave.js +22 -0
  11. package/dist/db/psql/migrations/20251210103020-id_add_slot.d.ts +2 -0
  12. package/dist/db/psql/migrations/20251210103020-id_add_slot.js +22 -0
  13. package/dist/db/psql/migrations/20251210103724-id_add_classRoom.d.ts +2 -0
  14. package/dist/db/psql/migrations/20251210103724-id_add_classRoom.js +22 -0
  15. package/dist/db/psql/migrations/20251210104353-id_add_floorManagement.d.ts +2 -0
  16. package/dist/db/psql/migrations/20251210104353-id_add_floorManagement.js +33 -0
  17. package/dist/db/psql/migrations/20251210105807-id_add_batch.d.ts +2 -0
  18. package/dist/db/psql/migrations/20251210105807-id_add_batch.js +22 -0
  19. package/dist/db/psql/migrations/20251210110340-id_add_workingshift.d.ts +2 -0
  20. package/dist/db/psql/migrations/20251210110340-id_add_workingshift.js +22 -0
  21. package/dist/db/psql/migrations/20251210110912-id_add_greetings.d.ts +2 -0
  22. package/dist/db/psql/migrations/20251210110912-id_add_greetings.js +22 -0
  23. package/dist/db/psql/migrations/20251210113530-id_add_role.d.ts +2 -0
  24. package/dist/db/psql/migrations/20251210113530-id_add_role.js +33 -0
  25. package/dist/db/psql/migrations/20251210122210-id_add_userHasRole.d.ts +2 -0
  26. package/dist/db/psql/migrations/20251210122210-id_add_userHasRole.js +33 -0
  27. package/dist/db/psql/migrations/20251210124921-id_add_subjectHFee.d.ts +2 -0
  28. package/dist/db/psql/migrations/20251210124921-id_add_subjectHFee.js +22 -0
  29. package/dist/db/psql/migrations/20251210130015-id_add_workingDay.d.ts +2 -0
  30. package/dist/db/psql/migrations/20251210130015-id_add_workingDay.js +22 -0
  31. package/dist/db/psql/migrations/20251210132959-id_add_reminderSetting.d.ts +2 -0
  32. package/dist/db/psql/migrations/20251210132959-id_add_reminderSetting.js +22 -0
  33. package/dist/interfaces/accountHasReceiptDetailsInterface.d.ts +2 -0
  34. package/dist/interfaces/bankAccountDetailsInterface.d.ts +1 -0
  35. package/dist/interfaces/batchInterface.d.ts +1 -0
  36. package/dist/interfaces/classRoomInterface.d.ts +1 -0
  37. package/dist/interfaces/feeReminderSettingInterface.d.ts +1 -0
  38. package/dist/interfaces/feeReminderTypeInterface.d.ts +1 -0
  39. package/dist/interfaces/floorManagementInterface.d.ts +2 -0
  40. package/dist/interfaces/greetingsInterface.d.ts +1 -0
  41. package/dist/interfaces/masterLeaveInterface.d.ts +1 -0
  42. package/dist/interfaces/roleInterface.d.ts +2 -0
  43. package/dist/interfaces/slotInterface.d.ts +1 -0
  44. package/dist/interfaces/subjectHasFeeInterface.d.ts +1 -0
  45. package/dist/interfaces/subjectIndexInterface.d.ts +2 -0
  46. package/dist/interfaces/typeManagementInterface.d.ts +2 -0
  47. package/dist/interfaces/userHasRoleInterface.d.ts +2 -0
  48. package/dist/interfaces/userInstituteMetaInterface.d.ts +2 -0
  49. package/dist/interfaces/workingDayInterface.d.ts +1 -0
  50. package/dist/interfaces/workingShiftInterface.d.ts +1 -0
  51. package/dist/models/mongodb/feeReminderTypeModel.js +4 -0
  52. package/dist/models/mongodb/subjectIndexModel.js +8 -0
  53. package/dist/models/mongodb/userInstituteMetaModel.js +8 -0
  54. package/dist/models/psql/accountHasReceiptDetailsModel.d.ts +2 -0
  55. package/dist/models/psql/accountHasReceiptDetailsModel.js +27 -1
  56. package/dist/models/psql/bankAccountDetailsModel.d.ts +1 -0
  57. package/dist/models/psql/bankAccountDetailsModel.js +13 -0
  58. package/dist/models/psql/batchModel.d.ts +1 -0
  59. package/dist/models/psql/batchModel.js +13 -0
  60. package/dist/models/psql/classRoomModel.d.ts +1 -0
  61. package/dist/models/psql/classRoomModel.js +13 -0
  62. package/dist/models/psql/feeHistoryModel.js +1 -0
  63. package/dist/models/psql/feeReminderSettingModel.d.ts +1 -0
  64. package/dist/models/psql/feeReminderSettingModel.js +12 -0
  65. package/dist/models/psql/floorManagementModel.d.ts +2 -0
  66. package/dist/models/psql/floorManagementModel.js +27 -1
  67. package/dist/models/psql/greetingsModel.d.ts +1 -0
  68. package/dist/models/psql/greetingsModel.js +13 -0
  69. package/dist/models/psql/masterLeaveModel.d.ts +1 -0
  70. package/dist/models/psql/masterLeaveModel.js +13 -0
  71. package/dist/models/psql/roleModel.d.ts +2 -0
  72. package/dist/models/psql/roleModel.js +27 -1
  73. package/dist/models/psql/slotModel.d.ts +1 -0
  74. package/dist/models/psql/slotModel.js +13 -0
  75. package/dist/models/psql/subjectHasFeeModel.d.ts +1 -0
  76. package/dist/models/psql/subjectHasFeeModel.js +13 -0
  77. package/dist/models/psql/typeManagementModel.d.ts +2 -0
  78. package/dist/models/psql/typeManagementModel.js +39 -1
  79. package/dist/models/psql/userHasRoleModel.d.ts +2 -0
  80. package/dist/models/psql/userHasRoleModel.js +27 -1
  81. package/dist/models/psql/workingDayModel.d.ts +1 -0
  82. package/dist/models/psql/workingDayModel.js +13 -0
  83. package/dist/models/psql/workingShiftModel.d.ts +1 -0
  84. package/dist/models/psql/workingShiftModel.js +13 -0
  85. package/package.json +1 -1
@@ -22,6 +22,14 @@ class WorkingDayModel extends sequelize_1.Model {
22
22
  foreignKey: { name: 'academicCalendarId', allowNull: true, field: 'academic_calendar_id' },
23
23
  as: 'workingDayAcaCal',
24
24
  });
25
+ WorkingDayModel.belongsTo(WorkingDayModel, {
26
+ foreignKey: { name: 'oldId', allowNull: true, field: 'old_id' },
27
+ as: 'workingDayOldParent',
28
+ });
29
+ WorkingDayModel.hasMany(WorkingDayModel, {
30
+ foreignKey: { name: 'oldId', allowNull: true, field: 'old_id' },
31
+ as: 'workingDayOldChild',
32
+ });
25
33
  }
26
34
  }
27
35
  WorkingDayModel.init({
@@ -66,6 +74,11 @@ WorkingDayModel.init({
66
74
  field: 'academic_calendar_id',
67
75
  allowNull: true,
68
76
  },
77
+ oldId: {
78
+ type: sequelize_1.DataTypes.UUID,
79
+ field: 'old_id',
80
+ allowNull: true,
81
+ },
69
82
  }, {
70
83
  modelName: 'WorkingDayModel',
71
84
  tableName: 'working_days',
@@ -12,6 +12,7 @@ declare class WorkingShiftModel extends Model<IWorkingShiftAttributes, TWorkingS
12
12
  instituteId: string;
13
13
  slotId: string;
14
14
  academicCalendarId: string;
15
+ oldId?: string;
15
16
  createdBy: string;
16
17
  updatedBy: string;
17
18
  deletedBy: string;
@@ -46,6 +46,14 @@ class WorkingShiftModel extends sequelize_1.Model {
46
46
  foreignKey: { name: 'academicCalendarId', allowNull: true, field: 'academic_calendar_id' },
47
47
  as: 'workingShiftAcaCal',
48
48
  });
49
+ WorkingShiftModel.belongsTo(WorkingShiftModel, {
50
+ foreignKey: { name: 'oldId', field: 'old_id', allowNull: true },
51
+ as: 'workingShiftParent',
52
+ });
53
+ WorkingShiftModel.hasMany(WorkingShiftModel, {
54
+ foreignKey: { name: 'oldId', field: 'old_id', allowNull: true },
55
+ as: 'childWorkingShift',
56
+ });
49
57
  }
50
58
  }
51
59
  WorkingShiftModel.init({
@@ -95,6 +103,11 @@ WorkingShiftModel.init({
95
103
  field: 'academic_calendar_id',
96
104
  allowNull: true,
97
105
  },
106
+ oldId: {
107
+ type: sequelize_1.DataTypes.UUID,
108
+ field: 'old_id',
109
+ allowNull: true,
110
+ },
98
111
  }, {
99
112
  modelName: 'WorkingShiftModel',
100
113
  tableName: 'working_shift_days',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kipicore/dbcore",
3
- "version": "1.1.131",
3
+ "version": "1.1.132",
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",