@kipicore/dbcore 1.1.122 → 1.1.123
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/20251201085926-add_academicCalenderId_to_announcement.d.ts +2 -0
- package/dist/db/psql/migrations/20251201085926-add_academicCalenderId_to_announcement.js +23 -0
- package/dist/db/psql/migrations/20251201090537-add_academicCalenderId_to_userHasAnnouncement.d.ts +2 -0
- package/dist/db/psql/migrations/20251201090537-add_academicCalenderId_to_userHasAnnouncement.js +23 -0
- package/dist/db/psql/migrations/20251201092621-add_academicCalenderId_to_UHBatch.d.ts +2 -0
- package/dist/db/psql/migrations/20251201092621-add_academicCalenderId_to_UHBatch.js +23 -0
- package/dist/db/psql/migrations/20251201093210-add_academicCalenderId_to_classroom.d.ts +2 -0
- package/dist/db/psql/migrations/20251201093210-add_academicCalenderId_to_classroom.js +23 -0
- package/dist/db/psql/migrations/20251201093644-add_academicCalenderId_to_BankAccD.d.ts +2 -0
- package/dist/db/psql/migrations/20251201093644-add_academicCalenderId_to_BankAccD.js +23 -0
- package/dist/db/psql/migrations/20251201094148-add_academicCalenderId_to_workingD.d.ts +2 -0
- package/dist/db/psql/migrations/20251201094148-add_academicCalenderId_to_workingD.js +23 -0
- package/dist/db/psql/migrations/20251201094533-add_academicCalenderId_to_workingS.d.ts +2 -0
- package/dist/db/psql/migrations/20251201094533-add_academicCalenderId_to_workingS.js +23 -0
- package/dist/db/psql/migrations/20251201094828-add-academic-calendar-id-to-userhashomework.d.ts +2 -0
- package/dist/db/psql/migrations/20251201094828-add-academic-calendar-id-to-userhashomework.js +23 -0
- package/dist/db/psql/migrations/20251201095025-add_academicCalenderId_to_batchSubBookA.d.ts +2 -0
- package/dist/db/psql/migrations/20251201095025-add_academicCalenderId_to_batchSubBookA.js +23 -0
- package/dist/db/psql/migrations/20251201095408-add_academicCalenderId_to_batchSubProA.d.ts +2 -0
- package/dist/db/psql/migrations/20251201095408-add_academicCalenderId_to_batchSubProA.js +23 -0
- package/dist/db/psql/migrations/20251201100111-add_academicCalenderId_to_projectAOp.d.ts +2 -0
- package/dist/db/psql/migrations/20251201100111-add_academicCalenderId_to_projectAOp.js +23 -0
- package/dist/db/psql/migrations/20251201100553-add-academic-calendar-id-to-homework.d.ts +2 -0
- package/dist/db/psql/migrations/20251201100553-add-academic-calendar-id-to-homework.js +23 -0
- package/dist/db/psql/migrations/20251201100901-add_academicCalenderId_to_userHRollN.d.ts +2 -0
- package/dist/db/psql/migrations/20251201100901-add_academicCalenderId_to_userHRollN.js +23 -0
- package/dist/db/psql/migrations/20251201101407-add_academicCalenderId_to_feeHistory.d.ts +2 -0
- package/dist/db/psql/migrations/20251201101407-add_academicCalenderId_to_feeHistory.js +23 -0
- package/dist/db/psql/migrations/20251201102129-add_academicCalenderId_to_feeReminder.d.ts +2 -0
- package/dist/db/psql/migrations/20251201102129-add_academicCalenderId_to_feeReminder.js +23 -0
- package/dist/db/psql/migrations/20251201102622-add_academicCalenderId_to_paymentTerms.d.ts +2 -0
- package/dist/db/psql/migrations/20251201102622-add_academicCalenderId_to_paymentTerms.js +23 -0
- package/dist/db/psql/migrations/20251201103134-add_academicCalenderId_to_subjectHFee.d.ts +2 -0
- package/dist/db/psql/migrations/20251201103134-add_academicCalenderId_to_subjectHFee.js +23 -0
- package/dist/db/psql/migrations/20251201103447-add_academicCalenderId_to_lectureHistory.d.ts +2 -0
- package/dist/db/psql/migrations/20251201103447-add_academicCalenderId_to_lectureHistory.js +23 -0
- package/dist/db/psql/migrations/20251201103551-add-academic-calendar-id-to-greetings.d.ts +2 -0
- package/dist/db/psql/migrations/20251201103551-add-academic-calendar-id-to-greetings.js +23 -0
- package/dist/db/psql/migrations/20251201104336-add_academicCalenderId_to_lecture.d.ts +2 -0
- package/dist/db/psql/migrations/20251201104336-add_academicCalenderId_to_lecture.js +23 -0
- package/dist/db/psql/migrations/20251202041045-add_academic_Cal_masterL.d.ts +2 -0
- package/dist/db/psql/migrations/20251202041045-add_academic_Cal_masterL.js +21 -0
- package/dist/db/psql/migrations/20251202042541-add_academic_Cal_offer.d.ts +2 -0
- package/dist/db/psql/migrations/20251202042541-add_academic_Cal_offer.js +21 -0
- package/dist/db/psql/migrations/20251202042809-add-academic-calendar-id-to-schoolOffer.d.ts +2 -0
- package/dist/db/psql/migrations/20251202042809-add-academic-calendar-id-to-schoolOffer.js +23 -0
- package/dist/db/psql/migrations/20251202043001-add_academic_Cal_userHOffer.d.ts +2 -0
- package/dist/db/psql/migrations/20251202043001-add_academic_Cal_userHOffer.js +21 -0
- package/dist/db/psql/migrations/20251202043722-add_academic_Cal_pdcCheque.d.ts +2 -0
- package/dist/db/psql/migrations/20251202043722-add_academic_Cal_pdcCheque.js +21 -0
- package/dist/db/psql/migrations/20251202044220-add_academic_Cal_pdcChequeHistory.d.ts +2 -0
- package/dist/db/psql/migrations/20251202044220-add_academic_Cal_pdcChequeHistory.js +21 -0
- package/dist/db/psql/migrations/20251204101602-add_academic_cal_slot.d.ts +2 -0
- package/dist/db/psql/migrations/20251204101602-add_academic_cal_slot.js +21 -0
- package/dist/db/psql/migrations/20251204102512-add_academic_cal_syllabus.d.ts +2 -0
- package/dist/db/psql/migrations/20251204102512-add_academic_cal_syllabus.js +21 -0
- package/dist/db/psql/migrations/20251204103002-add_academic_cal_testimonial.d.ts +2 -0
- package/dist/db/psql/migrations/20251204103002-add_academic_cal_testimonial.js +21 -0
- package/dist/db/psql/migrations/20251204103254-add_academic_cal_trip.d.ts +2 -0
- package/dist/db/psql/migrations/20251204103254-add_academic_cal_trip.js +21 -0
- package/dist/db/psql/migrations/20251204103624-add_academic_cal_userBA.d.ts +2 -0
- package/dist/db/psql/migrations/20251204103624-add_academic_cal_userBA.js +21 -0
- package/dist/db/psql/migrations/20251204104027-add_academic_cal_userFeeType.d.ts +2 -0
- package/dist/db/psql/migrations/20251204104027-add_academic_cal_userFeeType.js +21 -0
- package/dist/db/psql/migrations/20251204104738-add_academic_cal_userHInventory.d.ts +2 -0
- package/dist/db/psql/migrations/20251204104738-add_academic_cal_userHInventory.js +21 -0
- package/dist/db/psql/migrations/20251204105047-add_academic_cal_userHInvenH.d.ts +2 -0
- package/dist/db/psql/migrations/20251204105047-add_academic_cal_userHInvenH.js +21 -0
- package/dist/db/psql/migrations/20251204105717-add_academic_cal_userHLeave.d.ts +2 -0
- package/dist/db/psql/migrations/20251204105717-add_academic_cal_userHLeave.js +21 -0
- package/dist/db/psql/migrations/20251204110256-add_academic_cal_userHLH.d.ts +2 -0
- package/dist/db/psql/migrations/20251204110256-add_academic_cal_userHLH.js +21 -0
- package/dist/db/psql/migrations/20251204110629-add_academic_cal_userLeaveReq.d.ts +2 -0
- package/dist/db/psql/migrations/20251204110629-add_academic_cal_userLeaveReq.js +21 -0
- package/dist/db/psql/migrations/20251204110928-add_academic_cal_userproAssessOp.d.ts +2 -0
- package/dist/db/psql/migrations/20251204110928-add_academic_cal_userproAssessOp.js +21 -0
- package/dist/db/psql/migrations/20251204112518-add_batchId_type_subHFee.d.ts +2 -0
- package/dist/db/psql/migrations/20251204112518-add_batchId_type_subHFee.js +31 -0
- package/dist/db/psql/migrations/20251208110114-add-thumbnail-introvideo-to-courses.d.ts +2 -0
- package/dist/db/psql/migrations/20251208110114-add-thumbnail-introvideo-to-courses.js +31 -0
- package/dist/interfaces/announcementInterface.d.ts +1 -0
- package/dist/interfaces/approvalRequestInterface.d.ts +1 -0
- package/dist/interfaces/attendanceInterface.d.ts +1 -0
- package/dist/interfaces/bDayWishInterface.d.ts +1 -0
- package/dist/interfaces/bankAccountDetailsInterface.d.ts +1 -0
- package/dist/interfaces/batchSubjectBookAssessmentInterface.d.ts +1 -0
- package/dist/interfaces/batchSubjectProjectAssessmentInterface.d.ts +1 -0
- package/dist/interfaces/certificatesHistoryInterface.d.ts +1 -0
- package/dist/interfaces/certificatesManagementInterface.d.ts +1 -0
- package/dist/interfaces/classRoomInterface.d.ts +1 -0
- package/dist/interfaces/courseInterface.d.ts +2 -0
- package/dist/interfaces/dailyBookInterface.d.ts +1 -0
- package/dist/interfaces/eventInterface.d.ts +1 -0
- package/dist/interfaces/examGroupInterface.d.ts +1 -0
- package/dist/interfaces/examHasAnswerSheetInterface.d.ts +1 -0
- package/dist/interfaces/examInterface.d.ts +1 -0
- package/dist/interfaces/feeHistoryInterface.d.ts +1 -0
- package/dist/interfaces/feeReminderInterface.d.ts +1 -0
- package/dist/interfaces/feeReminderTypeInterface.d.ts +1 -0
- package/dist/interfaces/feeTypeInterface.d.ts +1 -0
- package/dist/interfaces/generateIdCardInterface.d.ts +1 -0
- package/dist/interfaces/greetingsInterface.d.ts +1 -0
- package/dist/interfaces/holidayInterface.d.ts +1 -0
- package/dist/interfaces/homeworkInterface.d.ts +1 -0
- package/dist/interfaces/lectureHistoryInterface.d.ts +1 -0
- package/dist/interfaces/lectureInterface.d.ts +1 -0
- package/dist/interfaces/masterLeaveInterface.d.ts +1 -0
- package/dist/interfaces/offersInterface.d.ts +1 -0
- package/dist/interfaces/paymentTermsInterface.d.ts +1 -0
- package/dist/interfaces/pdcChequeInterface.d.ts +1 -0
- package/dist/interfaces/pdcHistoryInterface.d.ts +1 -0
- package/dist/interfaces/projectAssessmentOptionInterface.d.ts +1 -0
- package/dist/interfaces/replaceTeacherInterface.d.ts +1 -0
- package/dist/interfaces/schoolFeeInterface.d.ts +1 -0
- package/dist/interfaces/schoolOfferInterface.d.ts +1 -0
- package/dist/interfaces/slotInterface.d.ts +1 -0
- package/dist/interfaces/subjectHasFeeInterface.d.ts +1 -1
- package/dist/interfaces/syllabusInterface.d.ts +1 -0
- package/dist/interfaces/taskManagementInterface.d.ts +1 -0
- package/dist/interfaces/testimonialInterface.d.ts +1 -0
- package/dist/interfaces/tripInterface.d.ts +1 -0
- package/dist/interfaces/userBookAssessmentInterface.d.ts +1 -0
- package/dist/interfaces/userFeeTypeInterface.d.ts +1 -0
- package/dist/interfaces/userHasAnnouncementInterface.d.ts +1 -0
- package/dist/interfaces/userHasBatchInterface.d.ts +1 -0
- package/dist/interfaces/userHasHomeWorkInterface.d.ts +1 -0
- package/dist/interfaces/userHasInventoryHistoryInterface.d.ts +1 -0
- package/dist/interfaces/userHasInventoryInterface.d.ts +1 -0
- package/dist/interfaces/userHasLeaveHistoryInterface.d.ts +1 -0
- package/dist/interfaces/userHasLeaveInterface.d.ts +1 -0
- package/dist/interfaces/userHasOfferInterface.d.ts +1 -0
- package/dist/interfaces/userHasRollNumberInterface.d.ts +1 -0
- package/dist/interfaces/userInstituteMetaInterface.d.ts +1 -0
- package/dist/interfaces/userLeaveRequestInterface.d.ts +1 -0
- package/dist/interfaces/userProjectAssessmentOptionInterface.d.ts +1 -0
- package/dist/interfaces/workingDayInterface.d.ts +1 -0
- package/dist/interfaces/workingShiftInterface.d.ts +1 -0
- package/dist/models/mongodb/approvalRequestModel.js +4 -0
- package/dist/models/mongodb/attendanceModel.js +4 -0
- package/dist/models/mongodb/bDayWishModel.js +1 -0
- package/dist/models/mongodb/certificatesHistoryModel.js +4 -0
- package/dist/models/mongodb/certificatesManagementModel.js +4 -0
- package/dist/models/mongodb/dailyBookModel.js +4 -0
- package/dist/models/mongodb/eventModel.js +4 -0
- package/dist/models/mongodb/examGroupModel.js +4 -0
- package/dist/models/mongodb/examHasAnswerSheetModel.js +4 -0
- package/dist/models/mongodb/examModel.js +4 -0
- package/dist/models/mongodb/feeReminderTypeModel.js +4 -0
- package/dist/models/mongodb/generateIdCardModel.js +4 -0
- package/dist/models/mongodb/holidayModel.js +4 -0
- package/dist/models/mongodb/replaceTeacherModel.js +4 -0
- package/dist/models/mongodb/schoolFeeModel.js +4 -0
- package/dist/models/mongodb/taskManagementModel.js +4 -0
- package/dist/models/mongodb/userInstituteMetaModel.js +4 -0
- package/dist/models/psql/announcementModel.d.ts +1 -0
- package/dist/models/psql/announcementModel.js +14 -1
- package/dist/models/psql/bankAccountDetailsModel.d.ts +1 -0
- package/dist/models/psql/bankAccountDetailsModel.js +10 -1
- package/dist/models/psql/batchSubjectBookAssessmentModel.d.ts +1 -0
- package/dist/models/psql/batchSubjectBookAssessmentModel.js +10 -1
- package/dist/models/psql/batchSubjectProjectAssessmentModel.d.ts +1 -0
- package/dist/models/psql/batchSubjectProjectAssessmentModel.js +10 -1
- package/dist/models/psql/classRoomModel.d.ts +1 -0
- package/dist/models/psql/classRoomModel.js +20 -1
- package/dist/models/psql/courseModel.d.ts +2 -0
- package/dist/models/psql/courseModel.js +27 -1
- package/dist/models/psql/feeHistoryModel.d.ts +1 -0
- package/dist/models/psql/feeHistoryModel.js +9 -1
- package/dist/models/psql/feeReminderModel.d.ts +1 -0
- package/dist/models/psql/feeReminderModel.js +14 -1
- package/dist/models/psql/feeTypeModel.d.ts +1 -0
- package/dist/models/psql/feeTypeModel.js +14 -1
- package/dist/models/psql/greetingsModel.d.ts +1 -0
- package/dist/models/psql/greetingsModel.js +14 -1
- package/dist/models/psql/homeWorkModel.d.ts +1 -0
- package/dist/models/psql/homeWorkModel.js +14 -1
- package/dist/models/psql/lectureHistoryModel.d.ts +1 -0
- package/dist/models/psql/lectureHistoryModel.js +14 -1
- package/dist/models/psql/lectureModel.d.ts +1 -0
- package/dist/models/psql/lectureModel.js +14 -1
- package/dist/models/psql/masterLeaveModel.d.ts +1 -0
- package/dist/models/psql/masterLeaveModel.js +14 -1
- package/dist/models/psql/offerModel.d.ts +1 -0
- package/dist/models/psql/offerModel.js +13 -1
- package/dist/models/psql/paymentTermsModel.d.ts +1 -0
- package/dist/models/psql/paymentTermsModel.js +14 -1
- package/dist/models/psql/pdcChequeModel.d.ts +1 -0
- package/dist/models/psql/pdcChequeModel.js +14 -1
- package/dist/models/psql/pdcHistoryModel.d.ts +1 -0
- package/dist/models/psql/pdcHistoryModel.js +14 -1
- package/dist/models/psql/projectAssessmentOptionModel.d.ts +1 -0
- package/dist/models/psql/projectAssessmentOptionModel.js +10 -1
- package/dist/models/psql/schoolOfferModel.d.ts +1 -0
- package/dist/models/psql/schoolOfferModel.js +14 -1
- package/dist/models/psql/slotModel.d.ts +1 -0
- package/dist/models/psql/slotModel.js +14 -1
- package/dist/models/psql/subjectHasFeeModel.js +3 -3
- package/dist/models/psql/syllabusModel.d.ts +1 -0
- package/dist/models/psql/syllabusModel.js +14 -1
- package/dist/models/psql/testimonialModel.d.ts +1 -0
- package/dist/models/psql/testimonialModel.js +14 -1
- package/dist/models/psql/tripModel.d.ts +1 -0
- package/dist/models/psql/tripModel.js +14 -1
- package/dist/models/psql/userBookAssessmentModel.d.ts +1 -0
- package/dist/models/psql/userBookAssessmentModel.js +14 -1
- package/dist/models/psql/userFeeTypeModel.js +14 -1
- package/dist/models/psql/userHasAnnouncementModel.d.ts +1 -0
- package/dist/models/psql/userHasAnnouncementModel.js +14 -1
- package/dist/models/psql/userHasBatchModel.d.ts +1 -0
- package/dist/models/psql/userHasBatchModel.js +20 -1
- package/dist/models/psql/userHasHomeWorkModel.d.ts +1 -0
- package/dist/models/psql/userHasHomeWorkModel.js +14 -1
- package/dist/models/psql/userHasInventoryHistoryModel.d.ts +1 -0
- package/dist/models/psql/userHasInventoryHistoryModel.js +14 -1
- package/dist/models/psql/userHasInventoryModel.d.ts +1 -0
- package/dist/models/psql/userHasInventoryModel.js +14 -1
- package/dist/models/psql/userHasLeaveHistoryModel.d.ts +1 -0
- package/dist/models/psql/userHasLeaveHistoryModel.js +14 -1
- package/dist/models/psql/userHasLeaveModel.d.ts +1 -0
- package/dist/models/psql/userHasLeaveModel.js +14 -1
- package/dist/models/psql/userHasOfferModel.d.ts +1 -0
- package/dist/models/psql/userHasOfferModel.js +13 -1
- package/dist/models/psql/userHasRollNumberModel.d.ts +1 -0
- package/dist/models/psql/userHasRollNumberModel.js +14 -1
- package/dist/models/psql/userLeaveRequestModel.d.ts +1 -0
- package/dist/models/psql/userLeaveRequestModel.js +14 -1
- package/dist/models/psql/userProjectAssessmentOptionModel.d.ts +1 -0
- package/dist/models/psql/userProjectAssessmentOptionModel.js +14 -1
- package/dist/models/psql/workingDayModel.d.ts +1 -0
- package/dist/models/psql/workingDayModel.js +10 -1
- package/dist/models/psql/workingShiftModel.d.ts +1 -0
- package/dist/models/psql/workingShiftModel.js +10 -1
- package/package.json +1 -1
|
@@ -41,6 +41,7 @@ const userSchema = new mongoose_1.Schema({
|
|
|
41
41
|
}, { _id: false });
|
|
42
42
|
const bDayWishModelSchema = new mongoose_1.Schema({
|
|
43
43
|
instituteId: { type: String, required: true },
|
|
44
|
+
academicCalendarId: { type: String, required: false },
|
|
44
45
|
userIds: { type: [userSchema], default: [] },
|
|
45
46
|
userId: { type: String, required: true },
|
|
46
47
|
date: { type: Date, required: true },
|
|
@@ -53,6 +53,10 @@ const CertificatesHistorySchema = new mongoose_1.Schema({
|
|
|
53
53
|
type: Object,
|
|
54
54
|
required: false,
|
|
55
55
|
},
|
|
56
|
+
academicCalendarId: {
|
|
57
|
+
type: String,
|
|
58
|
+
required: false,
|
|
59
|
+
}
|
|
56
60
|
}, { timestamps: true, versionKey: false });
|
|
57
61
|
const CertificatesHistory = mongoose_1.default.model('certificates_history', CertificatesHistorySchema);
|
|
58
62
|
exports.default = CertificatesHistory;
|
|
@@ -7,7 +7,7 @@ const app_1 = require("../../constants/app");
|
|
|
7
7
|
const errorMessages_1 = require("../../constants/errorMessages");
|
|
8
8
|
class AnnouncementModel extends sequelize_1.Model {
|
|
9
9
|
static associate(models) {
|
|
10
|
-
const { UserModel, InstituteModel, FileStorageModel } = models;
|
|
10
|
+
const { UserModel, InstituteModel, FileStorageModel, AcademicCalendarModel, } = models;
|
|
11
11
|
AnnouncementModel.belongsTo(UserModel, {
|
|
12
12
|
foreignKey: { name: 'createdBy', allowNull: true, field: 'created_by' },
|
|
13
13
|
as: 'createdByUser',
|
|
@@ -36,6 +36,14 @@ class AnnouncementModel extends sequelize_1.Model {
|
|
|
36
36
|
foreignKey: 'fileStorageId',
|
|
37
37
|
as: 'announcementHasFileList',
|
|
38
38
|
});
|
|
39
|
+
AnnouncementModel.belongsTo(AcademicCalendarModel, {
|
|
40
|
+
foreignKey: { name: 'academicCalendarId' },
|
|
41
|
+
as: 'announcementAcademicCal',
|
|
42
|
+
});
|
|
43
|
+
AcademicCalendarModel.hasMany(AnnouncementModel, {
|
|
44
|
+
foreignKey: 'academicCalendarId',
|
|
45
|
+
as: 'academicCalAnnouncement',
|
|
46
|
+
});
|
|
39
47
|
}
|
|
40
48
|
static addHooks(models) {
|
|
41
49
|
const { InstituteEntityModel, BatchModel, UserModel } = models;
|
|
@@ -144,6 +152,11 @@ AnnouncementModel.init({
|
|
|
144
152
|
field: 'institute_id',
|
|
145
153
|
allowNull: true,
|
|
146
154
|
},
|
|
155
|
+
academicCalendarId: {
|
|
156
|
+
type: sequelize_1.DataTypes.UUID,
|
|
157
|
+
field: 'academic_calendar_id',
|
|
158
|
+
allowNull: true,
|
|
159
|
+
},
|
|
147
160
|
userIds: {
|
|
148
161
|
type: sequelize_1.DataTypes.ARRAY(sequelize_1.DataTypes.UUID),
|
|
149
162
|
field: 'user_ids',
|
|
@@ -13,6 +13,7 @@ export declare class BankAccountDetailsModel extends Model<IBankAccountDetailsIn
|
|
|
13
13
|
status: COMMAN_STATUS;
|
|
14
14
|
isDefault: BOOLEAN_STATUS;
|
|
15
15
|
isSelfAccount: BOOLEAN_STATUS;
|
|
16
|
+
academicCalendarId: string;
|
|
16
17
|
createdBy?: string;
|
|
17
18
|
updatedBy?: string;
|
|
18
19
|
deletedBy?: string;
|
|
@@ -6,7 +6,7 @@ const index_1 = require("./index");
|
|
|
6
6
|
const app_1 = require("../../constants/app");
|
|
7
7
|
class BankAccountDetailsModel extends sequelize_1.Model {
|
|
8
8
|
static associate(models) {
|
|
9
|
-
const { InstituteModel, UserModel } = models;
|
|
9
|
+
const { InstituteModel, UserModel, AcademicCalendarModel } = models;
|
|
10
10
|
BankAccountDetailsModel.belongsTo(InstituteModel, {
|
|
11
11
|
foreignKey: { name: 'instituteId', field: 'institute_id' },
|
|
12
12
|
as: 'bankAccountDetailsInstitute',
|
|
@@ -27,6 +27,10 @@ class BankAccountDetailsModel extends sequelize_1.Model {
|
|
|
27
27
|
foreignKey: { name: 'deletedBy', allowNull: true, field: 'deleted_by' },
|
|
28
28
|
as: 'deletedByUser',
|
|
29
29
|
});
|
|
30
|
+
BankAccountDetailsModel.belongsTo(AcademicCalendarModel, {
|
|
31
|
+
foreignKey: { name: 'academicCalendarId', allowNull: true, field: 'academic_calendar_id' },
|
|
32
|
+
as: 'bankAccDAcademicCal',
|
|
33
|
+
});
|
|
30
34
|
}
|
|
31
35
|
}
|
|
32
36
|
exports.BankAccountDetailsModel = BankAccountDetailsModel;
|
|
@@ -61,6 +65,11 @@ BankAccountDetailsModel.init({
|
|
|
61
65
|
type: sequelize_1.DataTypes.UUID,
|
|
62
66
|
allowNull: false,
|
|
63
67
|
},
|
|
68
|
+
academicCalendarId: {
|
|
69
|
+
type: sequelize_1.DataTypes.UUID,
|
|
70
|
+
field: 'academic_calendar_id',
|
|
71
|
+
allowNull: true,
|
|
72
|
+
},
|
|
64
73
|
status: {
|
|
65
74
|
type: sequelize_1.DataTypes.ENUM,
|
|
66
75
|
values: Object.values(app_1.COMMAN_STATUS),
|
|
@@ -5,7 +5,7 @@ const sequelize_1 = require("sequelize");
|
|
|
5
5
|
const index_1 = require("./index");
|
|
6
6
|
class BatchSubjectBookAssessmentModel extends sequelize_1.Model {
|
|
7
7
|
static associate(models) {
|
|
8
|
-
const { InstituteModel, UserModel, BatchModel, TypeManagementModel, InstituteEntityModel, } = models;
|
|
8
|
+
const { InstituteModel, UserModel, BatchModel, TypeManagementModel, InstituteEntityModel, AcademicCalendarModel, } = models;
|
|
9
9
|
BatchSubjectBookAssessmentModel.belongsTo(InstituteModel, {
|
|
10
10
|
foreignKey: { name: 'instituteId', field: 'institute_id' },
|
|
11
11
|
as: 'subjectBookAssessmentInstitute',
|
|
@@ -58,6 +58,10 @@ class BatchSubjectBookAssessmentModel extends sequelize_1.Model {
|
|
|
58
58
|
foreignKey: { name: 'deletedBy', allowNull: true, field: 'deleted_by' },
|
|
59
59
|
as: 'deletedByUser',
|
|
60
60
|
});
|
|
61
|
+
BatchSubjectBookAssessmentModel.belongsTo(AcademicCalendarModel, {
|
|
62
|
+
foreignKey: { name: 'academicCalendarId', allowNull: true, field: 'academic_calendar_id' },
|
|
63
|
+
as: 'batchSubBAAcaCal',
|
|
64
|
+
});
|
|
61
65
|
}
|
|
62
66
|
}
|
|
63
67
|
exports.BatchSubjectBookAssessmentModel = BatchSubjectBookAssessmentModel;
|
|
@@ -93,6 +97,11 @@ BatchSubjectBookAssessmentModel.init({
|
|
|
93
97
|
allowNull: true,
|
|
94
98
|
field: 'institute_id',
|
|
95
99
|
},
|
|
100
|
+
academicCalendarId: {
|
|
101
|
+
type: sequelize_1.DataTypes.UUID,
|
|
102
|
+
field: 'academic_calendar_id',
|
|
103
|
+
allowNull: true,
|
|
104
|
+
},
|
|
96
105
|
}, {
|
|
97
106
|
modelName: 'BatchSubjectBookAssessmentModel',
|
|
98
107
|
tableName: 'batch_subject_book_assessments',
|
|
@@ -5,7 +5,7 @@ const sequelize_1 = require("sequelize");
|
|
|
5
5
|
const index_1 = require("./index");
|
|
6
6
|
class BatchSubjectProjectAssessmentModel extends sequelize_1.Model {
|
|
7
7
|
static associate(models) {
|
|
8
|
-
const { InstituteModel, UserModel, BatchModel, InstituteEntityModel, } = models;
|
|
8
|
+
const { InstituteModel, UserModel, BatchModel, InstituteEntityModel, AcademicCalendarModel, } = models;
|
|
9
9
|
BatchSubjectProjectAssessmentModel.belongsTo(InstituteModel, {
|
|
10
10
|
foreignKey: { name: 'instituteId', field: 'institute_id' },
|
|
11
11
|
as: 'subjectProjectAssessmentInstitute',
|
|
@@ -38,6 +38,10 @@ class BatchSubjectProjectAssessmentModel extends sequelize_1.Model {
|
|
|
38
38
|
foreignKey: { name: 'standardId', field: 'standard_id' },
|
|
39
39
|
as: 'projectAssessmentStandard',
|
|
40
40
|
});
|
|
41
|
+
BatchSubjectProjectAssessmentModel.belongsTo(AcademicCalendarModel, {
|
|
42
|
+
foreignKey: { name: 'academicCalendarId', allowNull: true, field: 'academic_calendar_id' },
|
|
43
|
+
as: 'batchSubProAssesAcaCal',
|
|
44
|
+
});
|
|
41
45
|
BatchSubjectProjectAssessmentModel.belongsTo(UserModel, {
|
|
42
46
|
foreignKey: { name: 'createdBy', allowNull: true, field: 'created_by' },
|
|
43
47
|
as: 'createdByUser',
|
|
@@ -98,6 +102,11 @@ BatchSubjectProjectAssessmentModel.init({
|
|
|
98
102
|
type: sequelize_1.DataTypes.TEXT,
|
|
99
103
|
allowNull: true,
|
|
100
104
|
},
|
|
105
|
+
academicCalendarId: {
|
|
106
|
+
type: sequelize_1.DataTypes.UUID,
|
|
107
|
+
field: 'academic_calendar_id',
|
|
108
|
+
allowNull: true,
|
|
109
|
+
},
|
|
101
110
|
createdBy: {
|
|
102
111
|
type: sequelize_1.DataTypes.UUID,
|
|
103
112
|
allowNull: true,
|