@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.
- package/dist/db/psql/migrations/20251209061902-add-acl_id_feeTypeModel.d.ts +2 -0
- package/dist/db/psql/migrations/20251209061902-add-acl_id_feeTypeModel.js +21 -0
- package/dist/db/psql/migrations/20251210100917-id_add_typemanagement.d.ts +2 -0
- package/dist/db/psql/migrations/20251210100917-id_add_typemanagement.js +33 -0
- package/dist/db/psql/migrations/20251210101254-id_add_bankAccDetails.d.ts +2 -0
- package/dist/db/psql/migrations/20251210101254-id_add_bankAccDetails.js +22 -0
- package/dist/db/psql/migrations/20251210102112-id_add_accHasReceiptDetails.d.ts +2 -0
- package/dist/db/psql/migrations/20251210102112-id_add_accHasReceiptDetails.js +33 -0
- package/dist/db/psql/migrations/20251210102601-id_add_masterLeave.d.ts +2 -0
- package/dist/db/psql/migrations/20251210102601-id_add_masterLeave.js +22 -0
- package/dist/db/psql/migrations/20251210103020-id_add_slot.d.ts +2 -0
- package/dist/db/psql/migrations/20251210103020-id_add_slot.js +22 -0
- package/dist/db/psql/migrations/20251210103724-id_add_classRoom.d.ts +2 -0
- package/dist/db/psql/migrations/20251210103724-id_add_classRoom.js +22 -0
- package/dist/db/psql/migrations/20251210104353-id_add_floorManagement.d.ts +2 -0
- package/dist/db/psql/migrations/20251210104353-id_add_floorManagement.js +33 -0
- package/dist/db/psql/migrations/20251210105807-id_add_batch.d.ts +2 -0
- package/dist/db/psql/migrations/20251210105807-id_add_batch.js +22 -0
- package/dist/db/psql/migrations/20251210110340-id_add_workingshift.d.ts +2 -0
- package/dist/db/psql/migrations/20251210110340-id_add_workingshift.js +22 -0
- package/dist/db/psql/migrations/20251210110912-id_add_greetings.d.ts +2 -0
- package/dist/db/psql/migrations/20251210110912-id_add_greetings.js +22 -0
- package/dist/db/psql/migrations/20251210113530-id_add_role.d.ts +2 -0
- package/dist/db/psql/migrations/20251210113530-id_add_role.js +33 -0
- package/dist/db/psql/migrations/20251210122210-id_add_userHasRole.d.ts +2 -0
- package/dist/db/psql/migrations/20251210122210-id_add_userHasRole.js +33 -0
- package/dist/db/psql/migrations/20251210124921-id_add_subjectHFee.d.ts +2 -0
- package/dist/db/psql/migrations/20251210124921-id_add_subjectHFee.js +22 -0
- package/dist/db/psql/migrations/20251210130015-id_add_workingDay.d.ts +2 -0
- package/dist/db/psql/migrations/20251210130015-id_add_workingDay.js +22 -0
- package/dist/db/psql/migrations/20251210132959-id_add_reminderSetting.d.ts +2 -0
- package/dist/db/psql/migrations/20251210132959-id_add_reminderSetting.js +22 -0
- package/dist/interfaces/accountHasReceiptDetailsInterface.d.ts +2 -0
- package/dist/interfaces/bankAccountDetailsInterface.d.ts +1 -0
- package/dist/interfaces/batchInterface.d.ts +1 -0
- package/dist/interfaces/classRoomInterface.d.ts +1 -0
- package/dist/interfaces/feeReminderSettingInterface.d.ts +1 -0
- package/dist/interfaces/feeReminderTypeInterface.d.ts +1 -0
- package/dist/interfaces/floorManagementInterface.d.ts +2 -0
- package/dist/interfaces/greetingsInterface.d.ts +1 -0
- package/dist/interfaces/masterLeaveInterface.d.ts +1 -0
- package/dist/interfaces/roleInterface.d.ts +2 -0
- package/dist/interfaces/slotInterface.d.ts +1 -0
- package/dist/interfaces/subjectHasFeeInterface.d.ts +1 -0
- package/dist/interfaces/subjectIndexInterface.d.ts +2 -0
- package/dist/interfaces/typeManagementInterface.d.ts +2 -0
- package/dist/interfaces/userHasRoleInterface.d.ts +2 -0
- package/dist/interfaces/userInstituteMetaInterface.d.ts +2 -0
- package/dist/interfaces/workingDayInterface.d.ts +1 -0
- package/dist/interfaces/workingShiftInterface.d.ts +1 -0
- package/dist/models/mongodb/feeReminderTypeModel.js +4 -0
- package/dist/models/mongodb/subjectIndexModel.js +8 -0
- package/dist/models/mongodb/userInstituteMetaModel.js +8 -0
- package/dist/models/psql/accountHasReceiptDetailsModel.d.ts +2 -0
- package/dist/models/psql/accountHasReceiptDetailsModel.js +27 -1
- package/dist/models/psql/bankAccountDetailsModel.d.ts +1 -0
- package/dist/models/psql/bankAccountDetailsModel.js +13 -0
- package/dist/models/psql/batchModel.d.ts +1 -0
- package/dist/models/psql/batchModel.js +13 -0
- package/dist/models/psql/classRoomModel.d.ts +1 -0
- package/dist/models/psql/classRoomModel.js +13 -0
- package/dist/models/psql/feeHistoryModel.js +1 -0
- package/dist/models/psql/feeReminderSettingModel.d.ts +1 -0
- package/dist/models/psql/feeReminderSettingModel.js +12 -0
- package/dist/models/psql/floorManagementModel.d.ts +2 -0
- package/dist/models/psql/floorManagementModel.js +27 -1
- package/dist/models/psql/greetingsModel.d.ts +1 -0
- package/dist/models/psql/greetingsModel.js +13 -0
- package/dist/models/psql/masterLeaveModel.d.ts +1 -0
- package/dist/models/psql/masterLeaveModel.js +13 -0
- package/dist/models/psql/roleModel.d.ts +2 -0
- package/dist/models/psql/roleModel.js +27 -1
- package/dist/models/psql/slotModel.d.ts +1 -0
- package/dist/models/psql/slotModel.js +13 -0
- package/dist/models/psql/subjectHasFeeModel.d.ts +1 -0
- package/dist/models/psql/subjectHasFeeModel.js +13 -0
- package/dist/models/psql/typeManagementModel.d.ts +2 -0
- package/dist/models/psql/typeManagementModel.js +39 -1
- package/dist/models/psql/userHasRoleModel.d.ts +2 -0
- package/dist/models/psql/userHasRoleModel.js +27 -1
- package/dist/models/psql/workingDayModel.d.ts +1 -0
- package/dist/models/psql/workingDayModel.js +13 -0
- package/dist/models/psql/workingShiftModel.d.ts +1 -0
- package/dist/models/psql/workingShiftModel.js +13 -0
- 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',
|
|
@@ -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