@kipicore/dbcore 1.1.19 → 1.1.21
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/.sequelizerc +13 -0
- package/dist/.sequelizerc +13 -0
- package/dist/configs/aws.js +4 -4
- package/dist/configs/index.d.ts +2 -0
- package/dist/configs/index.js +18 -0
- package/dist/constants/app.js +13 -13
- package/dist/constants/index.d.ts +5 -0
- package/dist/constants/index.js +21 -0
- package/dist/constants/successMessages.d.ts +1 -1
- package/dist/helpers/index.d.ts +2 -0
- package/dist/helpers/index.js +18 -0
- package/dist/helpers/s3Uploader.d.ts +1 -1
- package/dist/helpers/s3Uploader.js +6 -6
- package/dist/helpers/utils.d.ts +3 -3
- package/dist/helpers/utils.js +4 -4
- package/dist/index.d.ts +17 -419
- package/dist/index.js +30 -755
- package/dist/interfaces/academicCalendarInterface.d.ts +2 -2
- package/dist/interfaces/accountHasReceiptDetailsInterface.d.ts +1 -1
- package/dist/interfaces/announcementInterface.d.ts +2 -2
- package/dist/interfaces/approvalRequestInterface.d.ts +2 -2
- package/dist/interfaces/attendanceInterface.d.ts +2 -2
- package/dist/interfaces/bankAccountDetailsInterface.d.ts +2 -2
- package/dist/interfaces/bannerInterface.d.ts +2 -2
- package/dist/interfaces/batchInterface.d.ts +2 -2
- package/dist/interfaces/batchSubjectBookAssessmentInterface.d.ts +1 -1
- package/dist/interfaces/batchSubjectProjectAssessmentInterface.d.ts +1 -1
- package/dist/interfaces/blogInterface.d.ts +2 -2
- package/dist/interfaces/bookAssessmentDateInterface.d.ts +2 -2
- package/dist/interfaces/careerInterface.d.ts +2 -2
- package/dist/interfaces/categoriesInterface.d.ts +2 -2
- package/dist/interfaces/certificatesHistoryInterface.d.ts +1 -1
- package/dist/interfaces/certificatesManagementInterface.d.ts +2 -2
- package/dist/interfaces/cityInterface.d.ts +1 -1
- package/dist/interfaces/classRoomInterface.d.ts +2 -2
- package/dist/interfaces/cloudStorageInterface.d.ts +2 -2
- package/dist/interfaces/coinPurchaseOfferInterface.d.ts +2 -2
- package/dist/interfaces/columnInterface.d.ts +2 -2
- package/dist/interfaces/contactFeedBackInterface.d.ts +2 -2
- package/dist/interfaces/countryInterface.d.ts +1 -1
- package/dist/interfaces/courseHasVisitorsInterface.d.ts +1 -1
- package/dist/interfaces/courseInterface.d.ts +2 -2
- package/dist/interfaces/dailyBookInterface.d.ts +1 -1
- package/dist/interfaces/dashboardManagementInterface.d.ts +2 -2
- package/dist/interfaces/driverInterface.d.ts +2 -2
- package/dist/interfaces/entityGroupInterface.d.ts +2 -2
- package/dist/interfaces/eventInterface.d.ts +2 -2
- package/dist/interfaces/examGroupInterface.d.ts +3 -3
- package/dist/interfaces/examHasAnswerSheetInterface.d.ts +2 -2
- package/dist/interfaces/examInterface.d.ts +2 -2
- package/dist/interfaces/facilityInterface.d.ts +2 -2
- package/dist/interfaces/featureActionInterface.d.ts +2 -2
- package/dist/interfaces/feeHistoryDetailsInterface.d.ts +2 -2
- package/dist/interfaces/feeHistoryInterface.d.ts +2 -2
- package/dist/interfaces/feeReminderInterface.d.ts +1 -1
- package/dist/interfaces/feeReminderSettingInterface.d.ts +2 -2
- package/dist/interfaces/feeReminderTypeInterface.d.ts +2 -2
- package/dist/interfaces/feeTypeHasTermsInterface.d.ts +2 -2
- package/dist/interfaces/feeTypeInterface.d.ts +2 -2
- package/dist/interfaces/feedBackInterface.d.ts +2 -2
- package/dist/interfaces/feesCollectionInterface.d.ts +2 -2
- package/dist/interfaces/fileStorageInterface.d.ts +2 -2
- package/dist/interfaces/floorManagementInterface.d.ts +2 -2
- package/dist/interfaces/generateIdCardInterface.d.ts +1 -1
- package/dist/interfaces/greetingsInterface.d.ts +2 -2
- package/dist/interfaces/holidayInterface.d.ts +2 -2
- package/dist/interfaces/homeworkInterface.d.ts +2 -2
- package/dist/interfaces/index.d.ts +137 -0
- package/dist/interfaces/index.js +153 -0
- package/dist/interfaces/informationSupportInterface.d.ts +2 -2
- package/dist/interfaces/inquiryInterface.d.ts +3 -3
- package/dist/interfaces/instituteEntityInterface.d.ts +2 -2
- package/dist/interfaces/instituteEntityTypeInterface.d.ts +2 -2
- package/dist/interfaces/instituteInterface.d.ts +2 -2
- package/dist/interfaces/instituteSubscriptionPlanInterface.d.ts +2 -2
- package/dist/interfaces/inventoryHistoryInterface.d.ts +2 -2
- package/dist/interfaces/inventoryInterface.d.ts +2 -2
- package/dist/interfaces/invoiceInterface.d.ts +2 -2
- package/dist/interfaces/jobApplyInterface.d.ts +2 -2
- package/dist/interfaces/lectureHistoryInterface.d.ts +2 -2
- package/dist/interfaces/lectureInterface.d.ts +2 -2
- package/dist/interfaces/masterLeaveInterface.d.ts +2 -2
- package/dist/interfaces/moduleFeatureInterface.d.ts +2 -2
- package/dist/interfaces/moduleInterface.d.ts +2 -2
- package/dist/interfaces/offersInterface.d.ts +2 -2
- package/dist/interfaces/paymentTermsInterface.d.ts +2 -2
- package/dist/interfaces/pdcChequeInterface.d.ts +2 -2
- package/dist/interfaces/pdcHistoryInterface.d.ts +2 -2
- package/dist/interfaces/photosGalleryInterface.d.ts +2 -2
- package/dist/interfaces/pincodeInterface.d.ts +1 -1
- package/dist/interfaces/plannerInterface.d.ts +2 -2
- package/dist/interfaces/productInterface.d.ts +2 -2
- package/dist/interfaces/projectAssessmentOptionInterface.d.ts +1 -1
- package/dist/interfaces/replaceTeacherInterface.d.ts +2 -2
- package/dist/interfaces/roleInterface.d.ts +4 -4
- package/dist/interfaces/rulesRegulationInterface.d.ts +2 -2
- package/dist/interfaces/schoolFeeCollectionInterface.d.ts +1 -1
- package/dist/interfaces/schoolFeeInterface.d.ts +2 -2
- package/dist/interfaces/schoolOfferInterface.d.ts +2 -2
- package/dist/interfaces/sendNotificationInerface.d.ts +2 -2
- package/dist/interfaces/slotInterface.d.ts +2 -2
- package/dist/interfaces/stateInterface.d.ts +1 -1
- package/dist/interfaces/subCategoriesInterface.d.ts +2 -2
- package/dist/interfaces/subjectHasFeeInterface.d.ts +1 -1
- package/dist/interfaces/subjectHasPayFeeHistoryInterface.d.ts +1 -1
- package/dist/interfaces/subjectIndexInterface.d.ts +2 -2
- package/dist/interfaces/subscriptionPlanInterface.d.ts +2 -2
- package/dist/interfaces/syllabusInterface.d.ts +2 -2
- package/dist/interfaces/taskManagementInterface.d.ts +2 -2
- package/dist/interfaces/testimonialInterface.d.ts +2 -2
- package/dist/interfaces/toDoInterface.d.ts +2 -2
- package/dist/interfaces/tokenInterface.d.ts +2 -2
- package/dist/interfaces/tripInterface.d.ts +2 -2
- package/dist/interfaces/typeManagementInterface.d.ts +2 -2
- package/dist/interfaces/uniqueNumberCounterInterface.d.ts +2 -2
- package/dist/interfaces/userBookAssessmentInterface.d.ts +2 -2
- package/dist/interfaces/userDetailsInterface.d.ts +2 -2
- package/dist/interfaces/userFeeTypeByAccountInterface.d.ts +2 -2
- package/dist/interfaces/userFeeTypeInterface.d.ts +2 -2
- package/dist/interfaces/userHasAnnouncementInterface.d.ts +2 -2
- package/dist/interfaces/userHasBatchInterface.d.ts +1 -1
- package/dist/interfaces/userHasCourseInterface.d.ts +2 -2
- package/dist/interfaces/userHasDeviceInterface.d.ts +2 -2
- package/dist/interfaces/userHasFeeTermsInterface.d.ts +2 -2
- package/dist/interfaces/userHasFileInterface.d.ts +2 -2
- package/dist/interfaces/userHasHomeWorkInterface.d.ts +2 -2
- package/dist/interfaces/userHasInventoryHistoryInterface.d.ts +2 -2
- package/dist/interfaces/userHasInventoryInterface.d.ts +2 -2
- package/dist/interfaces/userHasLeaveHistoryInterface.d.ts +2 -2
- package/dist/interfaces/userHasLeaveInterface.d.ts +2 -2
- package/dist/interfaces/userHasOfferInterface.d.ts +1 -1
- package/dist/interfaces/userHasParentInterface.d.ts +2 -2
- package/dist/interfaces/userHasRoleInterface.d.ts +2 -2
- package/dist/interfaces/userHasRollNumberInterface.d.ts +1 -1
- package/dist/interfaces/userHasStorageInterface.d.ts +2 -2
- package/dist/interfaces/userHasSubjectFeeInterface.d.ts +1 -1
- package/dist/interfaces/userInstituteMetaInterface.d.ts +2 -2
- package/dist/interfaces/userInterface.d.ts +2 -2
- package/dist/interfaces/userLeaveRequestInterface.d.ts +2 -2
- package/dist/interfaces/userMetaInterface.d.ts +2 -2
- package/dist/interfaces/userPayoutDetailsInterface.d.ts +2 -2
- package/dist/interfaces/userPayoutHistoryInterface.d.ts +2 -2
- package/dist/interfaces/userPayoutInterface.d.ts +2 -2
- package/dist/interfaces/userProjectAssessmentOptionInterface.d.ts +2 -2
- package/dist/interfaces/userRequiredStepsInterface.d.ts +2 -2
- package/dist/interfaces/userSchoolMetaInterface.d.ts +2 -2
- package/dist/interfaces/vehicleInterface.d.ts +2 -2
- package/dist/interfaces/vendorManagementInterface.d.ts +2 -2
- package/dist/interfaces/videoAnalystInterface.d.ts +1 -1
- package/dist/interfaces/walletHistoryInterface.d.ts +2 -2
- package/dist/interfaces/walletInterface.d.ts +2 -2
- package/dist/interfaces/walletTransactionInterface.d.ts +3 -3
- package/dist/interfaces/workingDayInterface.d.ts +2 -2
- package/dist/interfaces/workingShiftInterface.d.ts +2 -2
- package/dist/models/mongodb/approvalRequestModel.d.ts +1 -1
- package/dist/models/mongodb/approvalRequestModel.js +4 -4
- package/dist/models/mongodb/attendanceModel.d.ts +1 -1
- package/dist/models/mongodb/attendanceModel.js +23 -23
- package/dist/models/mongodb/blogModel.d.ts +1 -1
- package/dist/models/mongodb/blogModel.js +3 -3
- package/dist/models/mongodb/careerModel.d.ts +1 -1
- package/dist/models/mongodb/careerModel.js +3 -3
- package/dist/models/mongodb/certificatesHistoryModel.d.ts +1 -1
- package/dist/models/mongodb/certificatesManagementModel.d.ts +1 -1
- package/dist/models/mongodb/certificatesManagementModel.js +3 -3
- package/dist/models/mongodb/columnModel.d.ts +1 -1
- package/dist/models/mongodb/columnModel.js +5 -5
- package/dist/models/mongodb/dailyBookModel.d.ts +1 -1
- package/dist/models/mongodb/dashboardManagementModel.d.ts +1 -1
- package/dist/models/mongodb/dashboardManagementModel.js +6 -6
- package/dist/models/mongodb/eventModel.d.ts +1 -1
- package/dist/models/mongodb/eventModel.js +15 -15
- package/dist/models/mongodb/examGroupModel.d.ts +1 -1
- package/dist/models/mongodb/examGroupModel.js +18 -18
- package/dist/models/mongodb/examHasAnswerSheetModel.d.ts +1 -1
- package/dist/models/mongodb/examHasAnswerSheetModel.js +12 -12
- package/dist/models/mongodb/examModel.d.ts +1 -1
- package/dist/models/mongodb/examModel.js +28 -28
- package/dist/models/mongodb/feeReminderTypeModel.d.ts +1 -1
- package/dist/models/mongodb/feeReminderTypeModel.js +3 -3
- package/dist/models/mongodb/feedBackModel.d.ts +1 -1
- package/dist/models/mongodb/feedBackModel.js +3 -3
- package/dist/models/mongodb/generateIdCardModel.d.ts +1 -1
- package/dist/models/mongodb/holidayModel.d.ts +1 -1
- package/dist/models/mongodb/holidayModel.js +15 -15
- package/dist/models/mongodb/index.d.ts +36 -2
- package/dist/models/mongodb/index.js +60 -10
- package/dist/models/mongodb/informationSupportModel.d.ts +1 -1
- package/dist/models/mongodb/informationSupportModel.js +2 -2
- package/dist/models/mongodb/inquiryModel.d.ts +1 -1
- package/dist/models/mongodb/inquiryModel.js +18 -18
- package/dist/models/mongodb/invoiceModel.d.ts +1 -1
- package/dist/models/mongodb/invoiceModel.js +7 -7
- package/dist/models/mongodb/jobApplyModel.d.ts +1 -1
- package/dist/models/mongodb/jobApplyModel.js +7 -7
- package/dist/models/mongodb/photosGalleryModel.d.ts +1 -1
- package/dist/models/mongodb/photosGalleryModel.js +6 -6
- package/dist/models/mongodb/plannerModel.d.ts +1 -1
- package/dist/models/mongodb/plannerModel.js +3 -3
- package/dist/models/mongodb/replaceTeacherModel.d.ts +1 -1
- package/dist/models/mongodb/replaceTeacherModel.js +6 -6
- package/dist/models/mongodb/schoolFeeModel.d.ts +1 -1
- package/dist/models/mongodb/schoolFeeModel.js +12 -12
- package/dist/models/mongodb/subjectIndexModel.d.ts +1 -1
- package/dist/models/mongodb/subjectIndexModel.js +88 -88
- package/dist/models/mongodb/subscriptionPlanModel.d.ts +1 -1
- package/dist/models/mongodb/subscriptionPlanModel.js +6 -6
- package/dist/models/mongodb/taskManagementModel.d.ts +1 -1
- package/dist/models/mongodb/taskManagementModel.js +10 -10
- package/dist/models/mongodb/uniqueNumberCounterModel.d.ts +1 -1
- package/dist/models/mongodb/uniqueNumberCounterModel.js +3 -3
- package/dist/models/mongodb/userDetailsModel.d.ts +1 -1
- package/dist/models/mongodb/userDetailsModel.js +19 -19
- package/dist/models/mongodb/userInstituteMetaModel.d.ts +1 -1
- package/dist/models/mongodb/userInstituteMetaModel.js +14 -14
- package/dist/models/mongodb/userSchoolMetaModel.d.ts +1 -1
- package/dist/models/mongodb/userSchoolMetaModel.js +30 -30
- package/dist/models/mongodb/videoAnalystModel.d.ts +1 -1
- package/dist/models/mongodb/walletTransactionModel.d.ts +1 -1
- package/dist/models/mongodb/walletTransactionModel.js +12 -12
- package/dist/models/psql/SubCategoriesModel.d.ts +3 -3
- package/dist/models/psql/SubCategoriesModel.js +14 -14
- package/dist/models/psql/academicCalendarModel.d.ts +3 -3
- package/dist/models/psql/academicCalendarModel.js +13 -13
- package/dist/models/psql/accountHasReceiptDetailsModel.d.ts +2 -2
- package/dist/models/psql/accountHasReceiptDetailsModel.js +15 -15
- package/dist/models/psql/announcementModel.d.ts +3 -3
- package/dist/models/psql/announcementModel.js +30 -30
- package/dist/models/psql/areaModel.d.ts +2 -2
- package/dist/models/psql/areaModel.js +5 -5
- package/dist/models/psql/bankAccountDetailsModel.d.ts +3 -3
- package/dist/models/psql/bankAccountDetailsModel.js +16 -16
- package/dist/models/psql/bannerModel.d.ts +3 -3
- package/dist/models/psql/bannerModel.js +20 -20
- package/dist/models/psql/batchModel.d.ts +3 -3
- package/dist/models/psql/batchModel.js +27 -27
- package/dist/models/psql/batchSubjectBookAssessmentModel.d.ts +2 -2
- package/dist/models/psql/batchSubjectBookAssessmentModel.js +20 -20
- package/dist/models/psql/batchSubjectProjectAssessmentModel.d.ts +2 -2
- package/dist/models/psql/batchSubjectProjectAssessmentModel.js +17 -17
- package/dist/models/psql/bookAssessmentDateModel.d.ts +3 -3
- package/dist/models/psql/bookAssessmentDateModel.js +12 -12
- package/dist/models/psql/categoriesModel.d.ts +3 -3
- package/dist/models/psql/categoriesModel.js +11 -11
- package/dist/models/psql/cityModel.d.ts +1 -1
- package/dist/models/psql/cityModel.js +8 -8
- package/dist/models/psql/classRoomModel.d.ts +3 -3
- package/dist/models/psql/classRoomModel.js +18 -18
- package/dist/models/psql/cloudStorageModel.d.ts +3 -3
- package/dist/models/psql/cloudStorageModel.js +10 -10
- package/dist/models/psql/coinPurchaseOfferModel.d.ts +3 -3
- package/dist/models/psql/coinPurchaseOfferModel.js +10 -10
- package/dist/models/psql/contactFeedBackModel.d.ts +3 -3
- package/dist/models/psql/contactFeedBackModel.js +16 -16
- package/dist/models/psql/countryModel.d.ts +1 -1
- package/dist/models/psql/countryModel.js +2 -2
- package/dist/models/psql/courseHasVisitorsModel.d.ts +2 -2
- package/dist/models/psql/courseHasVisitorsModel.js +9 -9
- package/dist/models/psql/courseModel.d.ts +3 -3
- package/dist/models/psql/courseModel.js +18 -18
- package/dist/models/psql/driverModel.d.ts +3 -3
- package/dist/models/psql/driverModel.js +25 -25
- package/dist/models/psql/entityGroupModel.d.ts +3 -3
- package/dist/models/psql/entityGroupModel.js +12 -12
- package/dist/models/psql/facilityModel.d.ts +3 -3
- package/dist/models/psql/facilityModel.js +20 -20
- package/dist/models/psql/featureActionModel.d.ts +3 -3
- package/dist/models/psql/featureActionModel.js +10 -10
- package/dist/models/psql/feeHistoryDetailsModel.d.ts +3 -3
- package/dist/models/psql/feeHistoryDetailsModel.js +23 -23
- package/dist/models/psql/feeHistoryModel.d.ts +3 -3
- package/dist/models/psql/feeHistoryModel.js +49 -49
- package/dist/models/psql/feeReminderModel.d.ts +2 -2
- package/dist/models/psql/feeReminderModel.js +41 -41
- package/dist/models/psql/feeReminderSettingModel.d.ts +3 -3
- package/dist/models/psql/feeReminderSettingModel.js +14 -14
- package/dist/models/psql/feeTypeHasTermsModel.d.ts +3 -3
- package/dist/models/psql/feeTypeHasTermsModel.js +14 -14
- package/dist/models/psql/feeTypeModel.d.ts +3 -3
- package/dist/models/psql/feeTypeModel.js +24 -24
- package/dist/models/psql/feesCollectionModel.d.ts +3 -3
- package/dist/models/psql/feesCollectionModel.js +30 -30
- package/dist/models/psql/fileStorageModel.d.ts +2 -2
- package/dist/models/psql/fileStorageModel.js +8 -8
- package/dist/models/psql/floorManagementModel.d.ts +3 -3
- package/dist/models/psql/floorManagementModel.js +11 -11
- package/dist/models/psql/greetingsModel.d.ts +3 -3
- package/dist/models/psql/greetingsModel.js +17 -17
- package/dist/models/psql/homeWorkModel.d.ts +3 -3
- package/dist/models/psql/homeWorkModel.js +18 -18
- package/dist/models/psql/index.js +2 -2
- package/dist/models/psql/instituteEntityModel.d.ts +3 -3
- package/dist/models/psql/instituteEntityModel.js +14 -14
- package/dist/models/psql/instituteEntityTypeModel.d.ts +3 -3
- package/dist/models/psql/instituteEntityTypeModel.js +10 -10
- package/dist/models/psql/instituteModel.d.ts +3 -3
- package/dist/models/psql/instituteModel.js +30 -30
- package/dist/models/psql/instituteSubscriptionPlanModel.d.ts +3 -3
- package/dist/models/psql/instituteSubscriptionPlanModel.js +16 -16
- package/dist/models/psql/inventoryHistoryModel.d.ts +3 -3
- package/dist/models/psql/inventoryHistoryModel.js +20 -20
- package/dist/models/psql/inventoryModel.d.ts +3 -3
- package/dist/models/psql/inventoryModel.js +16 -16
- package/dist/models/psql/lectureHistoryModel.d.ts +3 -3
- package/dist/models/psql/lectureHistoryModel.js +33 -33
- package/dist/models/psql/lectureModel.d.ts +3 -3
- package/dist/models/psql/lectureModel.js +74 -74
- package/dist/models/psql/masterLeaveModel.d.ts +3 -3
- package/dist/models/psql/masterLeaveModel.js +23 -23
- package/dist/models/psql/modelIndex.d.ts +101 -0
- package/dist/models/psql/modelIndex.js +117 -0
- package/dist/models/psql/moduleFeatureModel.d.ts +3 -3
- package/dist/models/psql/moduleFeatureModel.js +12 -12
- package/dist/models/psql/moduleModel.d.ts +3 -3
- package/dist/models/psql/moduleModel.js +14 -14
- package/dist/models/psql/offerModel.d.ts +3 -3
- package/dist/models/psql/offerModel.js +16 -16
- package/dist/models/psql/paymentTermsModel.d.ts +2 -2
- package/dist/models/psql/paymentTermsModel.js +15 -15
- package/dist/models/psql/pdcChequeModel.d.ts +3 -3
- package/dist/models/psql/pdcChequeModel.js +19 -19
- package/dist/models/psql/pdcHistoryModel.d.ts +3 -3
- package/dist/models/psql/pdcHistoryModel.js +22 -22
- package/dist/models/psql/pincodeModel.d.ts +1 -1
- package/dist/models/psql/pincodeModel.js +8 -8
- package/dist/models/psql/productModel.d.ts +3 -3
- package/dist/models/psql/productModel.js +17 -17
- package/dist/models/psql/projectAssessmentOptionModel.d.ts +2 -2
- package/dist/models/psql/projectAssessmentOptionModel.js +9 -9
- package/dist/models/psql/roleModel.d.ts +3 -3
- package/dist/models/psql/roleModel.js +9 -9
- package/dist/models/psql/rulesRegulationModel.d.ts +3 -3
- package/dist/models/psql/rulesRegulationModel.js +8 -8
- package/dist/models/psql/schoolFeeCollectionModel.d.ts +2 -2
- package/dist/models/psql/schoolFeeCollectionModel.js +14 -14
- package/dist/models/psql/schoolOfferModel.d.ts +3 -3
- package/dist/models/psql/schoolOfferModel.js +18 -18
- package/dist/models/psql/sendNotificationModel.d.ts +3 -3
- package/dist/models/psql/sendNotificationModel.js +14 -14
- package/dist/models/psql/slotModel.d.ts +3 -3
- package/dist/models/psql/slotModel.js +14 -14
- package/dist/models/psql/stateModel.d.ts +1 -1
- package/dist/models/psql/stateModel.js +5 -5
- package/dist/models/psql/subjectHasFeeModel.d.ts +2 -2
- package/dist/models/psql/subjectHasFeeModel.js +12 -12
- package/dist/models/psql/subjectHasPayFeeHistoryModel.d.ts +2 -2
- package/dist/models/psql/subjectHasPayFeeHistoryModel.js +17 -17
- package/dist/models/psql/syllabusModel.d.ts +3 -3
- package/dist/models/psql/syllabusModel.js +17 -17
- package/dist/models/psql/testimonialModel.d.ts +3 -3
- package/dist/models/psql/testimonialModel.js +31 -31
- package/dist/models/psql/toDoModel.d.ts +3 -3
- package/dist/models/psql/toDoModel.js +19 -19
- package/dist/models/psql/tokenModel.d.ts +2 -2
- package/dist/models/psql/tokenModel.js +2 -2
- package/dist/models/psql/tripModel.d.ts +3 -3
- package/dist/models/psql/tripModel.js +16 -16
- package/dist/models/psql/typeManagementModel.d.ts +3 -3
- package/dist/models/psql/typeManagementModel.js +16 -16
- package/dist/models/psql/userBookAssessmentModel.d.ts +3 -3
- package/dist/models/psql/userBookAssessmentModel.js +20 -20
- package/dist/models/psql/userFeeTypeByAccountModel.d.ts +2 -2
- package/dist/models/psql/userFeeTypeByAccountModel.js +22 -22
- package/dist/models/psql/userFeeTypeModel.d.ts +3 -3
- package/dist/models/psql/userFeeTypeModel.js +23 -23
- package/dist/models/psql/userHasAnnouncementModel.d.ts +3 -3
- package/dist/models/psql/userHasAnnouncementModel.js +17 -17
- package/dist/models/psql/userHasBatchModel.d.ts +2 -2
- package/dist/models/psql/userHasBatchModel.js +11 -11
- package/dist/models/psql/userHasCourseModel.d.ts +3 -3
- package/dist/models/psql/userHasCourseModel.js +17 -17
- package/dist/models/psql/userHasDeviceModel.d.ts +3 -3
- package/dist/models/psql/userHasDeviceModel.js +11 -11
- package/dist/models/psql/userHasFeeTermsModel.d.ts +3 -3
- package/dist/models/psql/userHasFeeTermsModel.js +23 -23
- package/dist/models/psql/userHasFileModel.d.ts +2 -2
- package/dist/models/psql/userHasFileModel.js +15 -15
- package/dist/models/psql/userHasHomeWorkModel.d.ts +3 -3
- package/dist/models/psql/userHasHomeWorkModel.js +20 -20
- package/dist/models/psql/userHasInventoryHistoryModel.d.ts +3 -3
- package/dist/models/psql/userHasInventoryHistoryModel.js +16 -16
- package/dist/models/psql/userHasInventoryModel.d.ts +3 -3
- package/dist/models/psql/userHasInventoryModel.js +19 -19
- package/dist/models/psql/userHasLeaveHistoryModel.d.ts +3 -3
- package/dist/models/psql/userHasLeaveHistoryModel.js +20 -20
- package/dist/models/psql/userHasLeaveModel.d.ts +3 -3
- package/dist/models/psql/userHasLeaveModel.js +17 -17
- package/dist/models/psql/userHasOfferModel.d.ts +2 -2
- package/dist/models/psql/userHasOfferModel.js +20 -20
- package/dist/models/psql/userHasParentModel.d.ts +3 -3
- package/dist/models/psql/userHasParentModel.js +12 -12
- package/dist/models/psql/userHasRoleModel.d.ts +3 -3
- package/dist/models/psql/userHasRoleModel.js +13 -13
- package/dist/models/psql/userHasRollNumberModel.d.ts +2 -2
- package/dist/models/psql/userHasRollNumberModel.js +14 -14
- package/dist/models/psql/userHasStorageModel.d.ts +3 -3
- package/dist/models/psql/userHasStorageModel.js +11 -11
- package/dist/models/psql/userHasSubjectFeeModel.d.ts +2 -2
- package/dist/models/psql/userHasSubjectFeeModel.js +12 -12
- package/dist/models/psql/userLeaveRequestModel.d.ts +3 -3
- package/dist/models/psql/userLeaveRequestModel.js +23 -23
- package/dist/models/psql/userModel.d.ts +3 -3
- package/dist/models/psql/userModel.js +43 -43
- package/dist/models/psql/userPayoutDetailsModel.d.ts +3 -3
- package/dist/models/psql/userPayoutDetailsModel.js +22 -22
- package/dist/models/psql/userPayoutHistoryModel.d.ts +3 -3
- package/dist/models/psql/userPayoutHistoryModel.js +17 -17
- package/dist/models/psql/userPayoutModel.d.ts +3 -3
- package/dist/models/psql/userPayoutModel.js +31 -31
- package/dist/models/psql/userProjectAssessmentOptionModel.d.ts +3 -3
- package/dist/models/psql/userProjectAssessmentOptionModel.js +17 -17
- package/dist/models/psql/userRequiredStepsModel.d.ts +2 -2
- package/dist/models/psql/userRequiredStepsModel.js +8 -8
- package/dist/models/psql/vehicleModel.d.ts +3 -3
- package/dist/models/psql/vehicleModel.js +14 -14
- package/dist/models/psql/vendorManagementModel.d.ts +3 -3
- package/dist/models/psql/vendorManagementModel.js +20 -20
- package/dist/models/psql/walletHistoryModel.d.ts +3 -3
- package/dist/models/psql/walletHistoryModel.js +13 -13
- package/dist/models/psql/walletModel.d.ts +3 -3
- package/dist/models/psql/walletModel.js +10 -10
- package/dist/models/psql/workingDayModel.d.ts +3 -3
- package/dist/models/psql/workingDayModel.js +8 -8
- package/dist/models/psql/workingShiftModel.d.ts +3 -3
- package/dist/models/psql/workingShiftModel.js +17 -17
- package/dist/services/Concrete/mongooseCommonService.d.ts +2 -2
- package/dist/services/Concrete/mongooseCommonService.js +4 -4
- package/dist/services/Concrete/sequelizeCommonService.d.ts +2 -2
- package/dist/services/Concrete/sequelizeCommonService.js +5 -5
- package/dist/services/Contracts/IMongooseCommonService.d.ts +1 -1
- package/dist/services/Contracts/ISequelizeCommonService.d.ts +1 -1
- package/dist/types/academicCalendarType.d.ts +1 -1
- package/dist/types/accountHasReceiptDetailsType.d.ts +2 -2
- package/dist/types/announcementType.d.ts +1 -1
- package/dist/types/approveRequestType.d.ts +1 -1
- package/dist/types/areaType.d.ts +1 -1
- package/dist/types/attendanceType.d.ts +1 -1
- package/dist/types/bankAccountDetailsType.d.ts +1 -1
- package/dist/types/bannerType.d.ts +2 -2
- package/dist/types/batchSubjectBookAssessmentType.d.ts +2 -2
- package/dist/types/batchSubjectProjectAssessmentType.d.ts +2 -2
- package/dist/types/batchType.d.ts +2 -2
- package/dist/types/blogType.d.ts +1 -1
- package/dist/types/bookAssessmentDateType.d.ts +2 -2
- package/dist/types/careerType.d.ts +1 -1
- package/dist/types/categoriesType.d.ts +1 -1
- package/dist/types/certificatesHistoryType.d.ts +1 -1
- package/dist/types/certificatesManagementType.d.ts +1 -1
- package/dist/types/classRoomType.d.ts +1 -1
- package/dist/types/cloudStorageType.d.ts +1 -1
- package/dist/types/coinPurchaseOfferType.d.ts +1 -1
- package/dist/types/contactFeedBackType.d.ts +1 -1
- package/dist/types/courseHasVisitorsType.d.ts +1 -1
- package/dist/types/courseType.d.ts +1 -1
- package/dist/types/dailyBookType.d.ts +1 -1
- package/dist/types/dashboardManagementType.d.ts +1 -1
- package/dist/types/driverType.d.ts +2 -2
- package/dist/types/entityGroupType.d.ts +1 -1
- package/dist/types/eventType.d.ts +1 -1
- package/dist/types/examGroupType.d.ts +1 -1
- package/dist/types/examHasAnswerSheetType.d.ts +1 -1
- package/dist/types/examType.d.ts +2 -2
- package/dist/types/facilityType.d.ts +1 -1
- package/dist/types/featureActionType.d.ts +1 -1
- package/dist/types/feeHistoryDetailsType.d.ts +2 -2
- package/dist/types/feeHistoryType.d.ts +3 -3
- package/dist/types/feeReminderSettingType.d.ts +1 -1
- package/dist/types/feeReminderType.d.ts +1 -1
- package/dist/types/feeReminderTypeType.d.ts +1 -1
- package/dist/types/feeTypeHasTermsType.d.ts +1 -1
- package/dist/types/feeTypeType.d.ts +1 -1
- package/dist/types/feedBackType.d.ts +1 -1
- package/dist/types/feesCollectionType.d.ts +1 -1
- package/dist/types/fileStorageType.d.ts +1 -1
- package/dist/types/floormanagementType.d.ts +1 -1
- package/dist/types/generateIdCardType.d.ts +1 -1
- package/dist/types/greetingsType.d.ts +2 -2
- package/dist/types/holidayType.d.ts +1 -1
- package/dist/types/homeWorkType.d.ts +1 -1
- package/dist/types/index.d.ts +129 -0
- package/dist/types/index.js +145 -0
- package/dist/types/informationSupportType.d.ts +1 -1
- package/dist/types/inquiryType.d.ts +1 -1
- package/dist/types/instituteEntityType.d.ts +1 -1
- package/dist/types/instituteEntityTypeType.d.ts +1 -1
- package/dist/types/instituteSubscriptionPlanType.d.ts +1 -1
- package/dist/types/instituteType.d.ts +1 -1
- package/dist/types/inventoryHistoryType.d.ts +1 -1
- package/dist/types/inventoryType.d.ts +1 -1
- package/dist/types/jobApply.d.ts +1 -1
- package/dist/types/lectureHistoryType.d.ts +2 -2
- package/dist/types/lectureType.d.ts +2 -2
- package/dist/types/masterLeaveType.d.ts +1 -1
- package/dist/types/moduleFeatureType.d.ts +1 -1
- package/dist/types/moduleType.d.ts +1 -1
- package/dist/types/offerType.d.ts +1 -1
- package/dist/types/paymentTermsType.d.ts +1 -1
- package/dist/types/pdcChequeType.d.ts +2 -2
- package/dist/types/pdcHistoryType.d.ts +1 -1
- package/dist/types/photosGalleryType.d.ts +1 -1
- package/dist/types/plannerType.d.ts +1 -1
- package/dist/types/productType.d.ts +1 -1
- package/dist/types/projectAssessmentOptionType.d.ts +2 -2
- package/dist/types/roleType.d.ts +4 -4
- package/dist/types/rulesRegulationType.d.ts +1 -1
- package/dist/types/schoolFeeCollectionType.d.ts +1 -1
- package/dist/types/schoolFeeType.d.ts +1 -1
- package/dist/types/schoolOfferType.d.ts +1 -1
- package/dist/types/sendNotificationType.d.ts +1 -1
- package/dist/types/slotType.d.ts +1 -1
- package/dist/types/subCategoryType.d.ts +1 -1
- package/dist/types/subjectHasFeeType.d.ts +1 -1
- package/dist/types/subjectHasPayFeeHistoryType.d.ts +1 -1
- package/dist/types/subjectIndexType.d.ts +2 -2
- package/dist/types/subscriptionPlanType.d.ts +1 -1
- package/dist/types/syllabusType.d.ts +2 -2
- package/dist/types/taskManagementType.d.ts +1 -1
- package/dist/types/testimonialType.d.ts +2 -2
- package/dist/types/toDoType.d.ts +2 -2
- package/dist/types/tripType.d.ts +1 -1
- package/dist/types/typeManagementType.d.ts +1 -1
- package/dist/types/uniqueNumberCounterType.d.ts +1 -1
- package/dist/types/userBookAssessmentType.d.ts +2 -2
- package/dist/types/userDetailsType.d.ts +1 -1
- package/dist/types/userFeeTypeByAccountType.d.ts +1 -1
- package/dist/types/userFeeTypeType.d.ts +1 -1
- package/dist/types/userHasAnnouncementType.d.ts +1 -1
- package/dist/types/userHasBatchType.d.ts +3 -3
- package/dist/types/userHasCourseType.d.ts +1 -1
- package/dist/types/userHasDeviceType.d.ts +1 -1
- package/dist/types/userHasFeeTermsType.d.ts +1 -1
- package/dist/types/userHasFileType.d.ts +1 -1
- package/dist/types/userHasHomeWorkType.d.ts +1 -1
- package/dist/types/userHasInventoryHistoryType.d.ts +1 -1
- package/dist/types/userHasInventoryType.d.ts +1 -1
- package/dist/types/userHasLeaveHistoryType.d.ts +1 -1
- package/dist/types/userHasLeaveType.d.ts +1 -1
- package/dist/types/userHasOffer.d.ts +1 -1
- package/dist/types/userHasParentType.d.ts +1 -1
- package/dist/types/userHasRoleType.d.ts +1 -1
- package/dist/types/userHasRollNumberType.d.ts +1 -1
- package/dist/types/userHasStorageType.d.ts +1 -1
- package/dist/types/userHasSubjectFeeType.d.ts +1 -1
- package/dist/types/userInstituteMetaType.d.ts +1 -1
- package/dist/types/userLeaveRequestType.d.ts +1 -1
- package/dist/types/userMetaType.d.ts +2 -2
- package/dist/types/userPayoutDetailsType.d.ts +1 -1
- package/dist/types/userPayoutHistoryType.d.ts +1 -1
- package/dist/types/userPayoutType.d.ts +2 -2
- package/dist/types/userProjectAssessmentOptionType.d.ts +2 -2
- package/dist/types/userRequiredStepsType.d.ts +1 -1
- package/dist/types/userSchoolMetaType.d.ts +1 -1
- package/dist/types/userType.d.ts +3 -3
- package/dist/types/vehicleType.d.ts +1 -1
- package/dist/types/vendorType.d.ts +1 -1
- package/dist/types/videoAnalystType.d.ts +1 -1
- package/dist/types/walletHistoryType.d.ts +1 -1
- package/dist/types/walletTransactionType.d.ts +1 -1
- package/dist/types/walletType.d.ts +1 -1
- package/dist/types/workingDayType.d.ts +1 -1
- package/dist/types/workingShiftType.d.ts +1 -1
- package/package.json +5 -4
- /package/dist/interfaces/{commanInterface.d.ts → commonInterface.d.ts} +0 -0
- /package/dist/interfaces/{commanInterface.js → commonInterface.js} +0 -0
|
@@ -4,11 +4,11 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
const sequelize_1 = require("sequelize");
|
|
7
|
-
const
|
|
8
|
-
const
|
|
9
|
-
// import BatchModel from './batchModel
|
|
10
|
-
const
|
|
11
|
-
const
|
|
7
|
+
const index_1 = require("./index");
|
|
8
|
+
const instituteModel_1 = __importDefault(require("./instituteModel"));
|
|
9
|
+
// import BatchModel from './batchModel';
|
|
10
|
+
const userModel_1 = __importDefault(require("./userModel"));
|
|
11
|
+
const app_1 = require("../../constants/app");
|
|
12
12
|
class AcademicCalendarModel extends sequelize_1.Model {
|
|
13
13
|
}
|
|
14
14
|
AcademicCalendarModel.init({
|
|
@@ -40,17 +40,17 @@ AcademicCalendarModel.init({
|
|
|
40
40
|
// },
|
|
41
41
|
status: {
|
|
42
42
|
type: sequelize_1.DataTypes.ENUM,
|
|
43
|
-
values: Object.values(
|
|
43
|
+
values: Object.values(app_1.ACADEMIC_CALENDARS_STATUS),
|
|
44
44
|
allowNull: false,
|
|
45
|
-
defaultValue:
|
|
45
|
+
defaultValue: app_1.ACADEMIC_CALENDARS_STATUS.FUTURE_ACADEMIC_CALENDAR,
|
|
46
46
|
},
|
|
47
47
|
}, {
|
|
48
48
|
modelName: 'AcademicCalendarModel',
|
|
49
49
|
tableName: 'academic_calendars',
|
|
50
50
|
timestamps: true,
|
|
51
|
-
sequelize:
|
|
51
|
+
sequelize: index_1.sequelize,
|
|
52
52
|
});
|
|
53
|
-
AcademicCalendarModel.belongsTo(
|
|
53
|
+
AcademicCalendarModel.belongsTo(instituteModel_1.default, {
|
|
54
54
|
foreignKey: {
|
|
55
55
|
name: 'instituteId',
|
|
56
56
|
field: 'institute_id',
|
|
@@ -66,8 +66,8 @@ AcademicCalendarModel.belongsTo(instituteModel_js_1.default, {
|
|
|
66
66
|
// as: 'academicCalendarBatch',
|
|
67
67
|
// });
|
|
68
68
|
// BatchModel.hasMany(AcademicCalendarModel, { foreignKey: 'batchId', as: 'batchHasAcademicCalendars' });
|
|
69
|
-
|
|
70
|
-
AcademicCalendarModel.belongsTo(
|
|
69
|
+
instituteModel_1.default.hasMany(AcademicCalendarModel, { foreignKey: 'instituteId', as: 'instituteHasAcademicCalendars' });
|
|
70
|
+
AcademicCalendarModel.belongsTo(userModel_1.default, {
|
|
71
71
|
foreignKey: {
|
|
72
72
|
name: 'createdBy',
|
|
73
73
|
allowNull: true,
|
|
@@ -75,7 +75,7 @@ AcademicCalendarModel.belongsTo(userModel_js_1.default, {
|
|
|
75
75
|
},
|
|
76
76
|
as: 'createdByUser',
|
|
77
77
|
});
|
|
78
|
-
AcademicCalendarModel.belongsTo(
|
|
78
|
+
AcademicCalendarModel.belongsTo(userModel_1.default, {
|
|
79
79
|
foreignKey: {
|
|
80
80
|
name: 'updatedBy',
|
|
81
81
|
allowNull: true,
|
|
@@ -83,7 +83,7 @@ AcademicCalendarModel.belongsTo(userModel_js_1.default, {
|
|
|
83
83
|
},
|
|
84
84
|
as: 'updatedByUser',
|
|
85
85
|
});
|
|
86
|
-
AcademicCalendarModel.belongsTo(
|
|
86
|
+
AcademicCalendarModel.belongsTo(userModel_1.default, {
|
|
87
87
|
foreignKey: {
|
|
88
88
|
name: 'deletedBy',
|
|
89
89
|
allowNull: true,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Model } from 'sequelize';
|
|
2
|
-
import { IAccountHasReceiptDetailsInterfaceModelAttributes } from '../../interfaces/accountHasReceiptDetailsInterface
|
|
3
|
-
import { TAccountHasReceiptDetailsModelCreationAttributes } from '../../types/accountHasReceiptDetailsType
|
|
2
|
+
import { IAccountHasReceiptDetailsInterfaceModelAttributes } from '../../interfaces/accountHasReceiptDetailsInterface';
|
|
3
|
+
import { TAccountHasReceiptDetailsModelCreationAttributes } from '../../types/accountHasReceiptDetailsType';
|
|
4
4
|
declare class AccountHasReceiptDetailsModel extends Model<IAccountHasReceiptDetailsInterfaceModelAttributes, TAccountHasReceiptDetailsModelCreationAttributes> {
|
|
5
5
|
id: string;
|
|
6
6
|
bankId: string;
|
|
@@ -4,11 +4,11 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
const sequelize_1 = require("sequelize");
|
|
7
|
-
const
|
|
8
|
-
const
|
|
9
|
-
const
|
|
10
|
-
const
|
|
11
|
-
const
|
|
7
|
+
const index_1 = require("./index");
|
|
8
|
+
const instituteModel_1 = __importDefault(require("./instituteModel"));
|
|
9
|
+
const userModel_1 = __importDefault(require("./userModel"));
|
|
10
|
+
const fileStorageModel_1 = __importDefault(require("./fileStorageModel"));
|
|
11
|
+
const bankAccountDetailsModel_1 = __importDefault(require("./bankAccountDetailsModel"));
|
|
12
12
|
class AccountHasReceiptDetailsModel extends sequelize_1.Model {
|
|
13
13
|
}
|
|
14
14
|
AccountHasReceiptDetailsModel.init({
|
|
@@ -80,45 +80,45 @@ AccountHasReceiptDetailsModel.init({
|
|
|
80
80
|
modelName: 'AccountHasReceiptDetailsModel',
|
|
81
81
|
tableName: 'account_has_receipt_details',
|
|
82
82
|
timestamps: true,
|
|
83
|
-
sequelize:
|
|
83
|
+
sequelize: index_1.sequelize,
|
|
84
84
|
});
|
|
85
|
-
AccountHasReceiptDetailsModel.belongsTo(
|
|
85
|
+
AccountHasReceiptDetailsModel.belongsTo(instituteModel_1.default, {
|
|
86
86
|
foreignKey: {
|
|
87
87
|
name: 'instituteId',
|
|
88
88
|
field: 'institute_id',
|
|
89
89
|
},
|
|
90
90
|
as: 'receiptInstitute',
|
|
91
91
|
});
|
|
92
|
-
|
|
93
|
-
AccountHasReceiptDetailsModel.belongsTo(
|
|
92
|
+
instituteModel_1.default.hasMany(AccountHasReceiptDetailsModel, { foreignKey: 'instituteId', as: 'instituteHasReceipt' });
|
|
93
|
+
AccountHasReceiptDetailsModel.belongsTo(fileStorageModel_1.default, {
|
|
94
94
|
foreignKey: {
|
|
95
95
|
name: 'profileImage',
|
|
96
96
|
field: 'profile_image',
|
|
97
97
|
},
|
|
98
98
|
as: 'receiptProfileImage',
|
|
99
99
|
});
|
|
100
|
-
|
|
100
|
+
fileStorageModel_1.default.hasMany(AccountHasReceiptDetailsModel, {
|
|
101
101
|
foreignKey: {
|
|
102
102
|
name: 'profileImage',
|
|
103
103
|
field: 'profile_image',
|
|
104
104
|
},
|
|
105
105
|
as: 'profileImageHasReceipt',
|
|
106
106
|
});
|
|
107
|
-
AccountHasReceiptDetailsModel.belongsTo(
|
|
107
|
+
AccountHasReceiptDetailsModel.belongsTo(bankAccountDetailsModel_1.default, {
|
|
108
108
|
foreignKey: {
|
|
109
109
|
name: 'bankId',
|
|
110
110
|
field: 'bank_id',
|
|
111
111
|
},
|
|
112
112
|
as: 'accountHasReceiptBank',
|
|
113
113
|
});
|
|
114
|
-
|
|
114
|
+
bankAccountDetailsModel_1.default.hasMany(AccountHasReceiptDetailsModel, {
|
|
115
115
|
foreignKey: {
|
|
116
116
|
name: 'bankId',
|
|
117
117
|
field: 'bank_id',
|
|
118
118
|
},
|
|
119
119
|
as: 'bankHasReceipt',
|
|
120
120
|
});
|
|
121
|
-
AccountHasReceiptDetailsModel.belongsTo(
|
|
121
|
+
AccountHasReceiptDetailsModel.belongsTo(userModel_1.default, {
|
|
122
122
|
foreignKey: {
|
|
123
123
|
name: 'createdBy',
|
|
124
124
|
allowNull: true,
|
|
@@ -126,7 +126,7 @@ AccountHasReceiptDetailsModel.belongsTo(userModel_js_1.default, {
|
|
|
126
126
|
},
|
|
127
127
|
as: 'createdByUser',
|
|
128
128
|
});
|
|
129
|
-
AccountHasReceiptDetailsModel.belongsTo(
|
|
129
|
+
AccountHasReceiptDetailsModel.belongsTo(userModel_1.default, {
|
|
130
130
|
foreignKey: {
|
|
131
131
|
name: 'updatedBy',
|
|
132
132
|
allowNull: true,
|
|
@@ -134,7 +134,7 @@ AccountHasReceiptDetailsModel.belongsTo(userModel_js_1.default, {
|
|
|
134
134
|
},
|
|
135
135
|
as: 'updatedByUser',
|
|
136
136
|
});
|
|
137
|
-
AccountHasReceiptDetailsModel.belongsTo(
|
|
137
|
+
AccountHasReceiptDetailsModel.belongsTo(userModel_1.default, {
|
|
138
138
|
foreignKey: {
|
|
139
139
|
name: 'deletedBy',
|
|
140
140
|
allowNull: true,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Model } from 'sequelize';
|
|
2
|
-
import { IAnnouncementModelAttributes } from '../../interfaces/announcementInterface
|
|
3
|
-
import { TAnnouncementModelCreationAttributes } from '../../types/announcementType
|
|
4
|
-
import { ANNOUCEMENT_SCHEDULE_TYPE, ANNOUCEMENT_STATUS, USER_TYPES } from '../../constants/app
|
|
2
|
+
import { IAnnouncementModelAttributes } from '../../interfaces/announcementInterface';
|
|
3
|
+
import { TAnnouncementModelCreationAttributes } from '../../types/announcementType';
|
|
4
|
+
import { ANNOUCEMENT_SCHEDULE_TYPE, ANNOUCEMENT_STATUS, USER_TYPES } from '../../constants/app';
|
|
5
5
|
declare class AnnouncementModel extends Model<IAnnouncementModelAttributes, TAnnouncementModelCreationAttributes> {
|
|
6
6
|
id: string;
|
|
7
7
|
title: string;
|
|
@@ -4,14 +4,14 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
const sequelize_1 = require("sequelize");
|
|
7
|
-
const
|
|
8
|
-
const
|
|
9
|
-
const
|
|
10
|
-
const
|
|
11
|
-
const
|
|
12
|
-
const
|
|
13
|
-
const
|
|
14
|
-
const
|
|
7
|
+
const index_1 = require("./index");
|
|
8
|
+
const app_1 = require("../../constants/app");
|
|
9
|
+
const userModel_1 = __importDefault(require("./userModel"));
|
|
10
|
+
const instituteModel_1 = __importDefault(require("./instituteModel"));
|
|
11
|
+
const instituteEntityModel_1 = __importDefault(require("./instituteEntityModel"));
|
|
12
|
+
const errorMessages_1 = require("../../constants/errorMessages");
|
|
13
|
+
const batchModel_1 = __importDefault(require("./batchModel"));
|
|
14
|
+
const fileStorageModel_1 = __importDefault(require("./fileStorageModel"));
|
|
15
15
|
class AnnouncementModel extends sequelize_1.Model {
|
|
16
16
|
}
|
|
17
17
|
AnnouncementModel.init({
|
|
@@ -35,7 +35,7 @@ AnnouncementModel.init({
|
|
|
35
35
|
},
|
|
36
36
|
scheduleType: {
|
|
37
37
|
type: sequelize_1.DataTypes.ENUM,
|
|
38
|
-
values: Object.values(
|
|
38
|
+
values: Object.values(app_1.ANNOUCEMENT_SCHEDULE_TYPE),
|
|
39
39
|
allowNull: false,
|
|
40
40
|
},
|
|
41
41
|
subjects: {
|
|
@@ -49,7 +49,7 @@ AnnouncementModel.init({
|
|
|
49
49
|
allowNull: false,
|
|
50
50
|
},
|
|
51
51
|
userTypes: {
|
|
52
|
-
type: sequelize_1.DataTypes.ARRAY(sequelize_1.DataTypes.ENUM(...Object.values(
|
|
52
|
+
type: sequelize_1.DataTypes.ARRAY(sequelize_1.DataTypes.ENUM(...Object.values(app_1.USER_TYPES))),
|
|
53
53
|
defaultValue: [],
|
|
54
54
|
allowNull: true,
|
|
55
55
|
},
|
|
@@ -78,9 +78,9 @@ AnnouncementModel.init({
|
|
|
78
78
|
},
|
|
79
79
|
status: {
|
|
80
80
|
type: sequelize_1.DataTypes.ENUM,
|
|
81
|
-
values: Object.values(
|
|
81
|
+
values: Object.values(app_1.ANNOUCEMENT_STATUS),
|
|
82
82
|
allowNull: false,
|
|
83
|
-
defaultValue:
|
|
83
|
+
defaultValue: app_1.ANNOUCEMENT_STATUS.PENDING,
|
|
84
84
|
},
|
|
85
85
|
entityIds: {
|
|
86
86
|
type: sequelize_1.DataTypes.ARRAY(sequelize_1.DataTypes.UUID),
|
|
@@ -92,9 +92,9 @@ AnnouncementModel.init({
|
|
|
92
92
|
modelName: 'AnnouncementModel',
|
|
93
93
|
tableName: 'announcementes',
|
|
94
94
|
timestamps: true,
|
|
95
|
-
sequelize:
|
|
95
|
+
sequelize: index_1.sequelize,
|
|
96
96
|
});
|
|
97
|
-
AnnouncementModel.belongsTo(
|
|
97
|
+
AnnouncementModel.belongsTo(userModel_1.default, {
|
|
98
98
|
foreignKey: {
|
|
99
99
|
name: 'createdBy',
|
|
100
100
|
allowNull: true,
|
|
@@ -102,7 +102,7 @@ AnnouncementModel.belongsTo(userModel_js_1.default, {
|
|
|
102
102
|
},
|
|
103
103
|
as: 'createdByUser',
|
|
104
104
|
});
|
|
105
|
-
AnnouncementModel.belongsTo(
|
|
105
|
+
AnnouncementModel.belongsTo(userModel_1.default, {
|
|
106
106
|
foreignKey: {
|
|
107
107
|
name: 'updatedBy',
|
|
108
108
|
allowNull: true,
|
|
@@ -110,7 +110,7 @@ AnnouncementModel.belongsTo(userModel_js_1.default, {
|
|
|
110
110
|
},
|
|
111
111
|
as: 'updatedByUser',
|
|
112
112
|
});
|
|
113
|
-
AnnouncementModel.belongsTo(
|
|
113
|
+
AnnouncementModel.belongsTo(userModel_1.default, {
|
|
114
114
|
foreignKey: {
|
|
115
115
|
name: 'deletedBy',
|
|
116
116
|
allowNull: true,
|
|
@@ -118,25 +118,25 @@ AnnouncementModel.belongsTo(userModel_js_1.default, {
|
|
|
118
118
|
},
|
|
119
119
|
as: 'deletedByUser',
|
|
120
120
|
});
|
|
121
|
-
AnnouncementModel.belongsTo(
|
|
121
|
+
AnnouncementModel.belongsTo(instituteModel_1.default, {
|
|
122
122
|
foreignKey: {
|
|
123
123
|
name: 'instituteId',
|
|
124
124
|
},
|
|
125
125
|
as: 'institute',
|
|
126
126
|
});
|
|
127
|
-
|
|
127
|
+
instituteModel_1.default.hasMany(AnnouncementModel, {
|
|
128
128
|
foreignKey: {
|
|
129
129
|
name: 'instituteId',
|
|
130
130
|
},
|
|
131
131
|
as: 'instituteHasAnnouncementList',
|
|
132
132
|
});
|
|
133
|
-
AnnouncementModel.belongsTo(
|
|
133
|
+
AnnouncementModel.belongsTo(fileStorageModel_1.default, {
|
|
134
134
|
foreignKey: {
|
|
135
135
|
name: 'fileStorageId',
|
|
136
136
|
},
|
|
137
137
|
as: 'announcementFileStorage',
|
|
138
138
|
});
|
|
139
|
-
|
|
139
|
+
fileStorageModel_1.default.hasMany(AnnouncementModel, {
|
|
140
140
|
foreignKey: 'fileStorageId',
|
|
141
141
|
as: 'announcementHasFileList',
|
|
142
142
|
});
|
|
@@ -147,26 +147,26 @@ AnnouncementModel.beforeCreate(async (announcement) => {
|
|
|
147
147
|
include: { association: 'entityType', where: { sequence: 'LAST' } },
|
|
148
148
|
raw: false,
|
|
149
149
|
};
|
|
150
|
-
const entityListCount = await
|
|
150
|
+
const entityListCount = await instituteEntityModel_1.default.count({
|
|
151
151
|
where,
|
|
152
152
|
...options,
|
|
153
153
|
});
|
|
154
154
|
if (entityListCount !== announcement.subjects.length) {
|
|
155
|
-
throw new Error(
|
|
155
|
+
throw new Error(errorMessages_1.ANNOUCEMENT_ERROR_MESSAGES.INVALID_SUBJECTS);
|
|
156
156
|
}
|
|
157
157
|
}
|
|
158
158
|
if (announcement.batches && announcement.batches.length) {
|
|
159
159
|
const where = { id: { [sequelize_1.Op.in]: announcement.batches } };
|
|
160
|
-
const batchCount = await
|
|
160
|
+
const batchCount = await batchModel_1.default.count({ where });
|
|
161
161
|
if (batchCount !== announcement.batches.length) {
|
|
162
|
-
throw new Error(
|
|
162
|
+
throw new Error(errorMessages_1.ANNOUCEMENT_ERROR_MESSAGES.INVALID_BATCHES);
|
|
163
163
|
}
|
|
164
164
|
}
|
|
165
165
|
if (announcement.userIds && announcement.userIds.length) {
|
|
166
166
|
const where = { id: { [sequelize_1.Op.in]: announcement.userIds } };
|
|
167
|
-
const userCount = await
|
|
167
|
+
const userCount = await userModel_1.default.count({ where });
|
|
168
168
|
if (userCount !== announcement.userIds.length) {
|
|
169
|
-
throw new Error(
|
|
169
|
+
throw new Error(errorMessages_1.ANNOUCEMENT_ERROR_MESSAGES.INVALID_USERS);
|
|
170
170
|
}
|
|
171
171
|
}
|
|
172
172
|
});
|
|
@@ -175,7 +175,7 @@ AnnouncementModel.beforeBulkUpdate(async (options) => {
|
|
|
175
175
|
const { attributes } = options;
|
|
176
176
|
if (attributes.subjects && attributes.subjects.length) {
|
|
177
177
|
const where = { id: { [sequelize_1.Op.in]: attributes.subjects } };
|
|
178
|
-
const entityList = await
|
|
178
|
+
const entityList = await instituteEntityModel_1.default.findAll({
|
|
179
179
|
where,
|
|
180
180
|
include: {
|
|
181
181
|
association: 'entityType',
|
|
@@ -184,14 +184,14 @@ AnnouncementModel.beforeBulkUpdate(async (options) => {
|
|
|
184
184
|
raw: false, // Ensure you get Sequelize instances
|
|
185
185
|
});
|
|
186
186
|
if (entityList.length !== attributes.subjects.length) {
|
|
187
|
-
throw new Error(
|
|
187
|
+
throw new Error(errorMessages_1.ANNOUCEMENT_ERROR_MESSAGES.INVALID_SUBJECTS);
|
|
188
188
|
}
|
|
189
189
|
}
|
|
190
190
|
if (attributes.batches && attributes.batches.length) {
|
|
191
191
|
const where = { id: { [sequelize_1.Op.in]: attributes.batches } };
|
|
192
|
-
const batchCount = await
|
|
192
|
+
const batchCount = await batchModel_1.default.count({ where });
|
|
193
193
|
if (batchCount !== attributes.batches.length) {
|
|
194
|
-
throw new Error(
|
|
194
|
+
throw new Error(errorMessages_1.ANNOUCEMENT_ERROR_MESSAGES.INVALID_BATCHES);
|
|
195
195
|
}
|
|
196
196
|
}
|
|
197
197
|
});
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Model } from 'sequelize';
|
|
2
|
-
import { IAreaModelAttributes } from '../../interfaces/areaInterface
|
|
3
|
-
import { TAeraModelCreationAttributes } from '../../types/areaType
|
|
2
|
+
import { IAreaModelAttributes } from '../../interfaces/areaInterface';
|
|
3
|
+
import { TAeraModelCreationAttributes } from '../../types/areaType';
|
|
4
4
|
declare class AreaModel extends Model<IAreaModelAttributes, TAeraModelCreationAttributes> {
|
|
5
5
|
id: string;
|
|
6
6
|
area: string;
|
|
@@ -4,8 +4,8 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
const sequelize_1 = require("sequelize");
|
|
7
|
-
const
|
|
8
|
-
const
|
|
7
|
+
const index_1 = require("./index");
|
|
8
|
+
const cityModel_1 = __importDefault(require("./cityModel"));
|
|
9
9
|
class AreaModel extends sequelize_1.Model {
|
|
10
10
|
}
|
|
11
11
|
AreaModel.init({
|
|
@@ -27,13 +27,13 @@ AreaModel.init({
|
|
|
27
27
|
modelName: 'AreaModel',
|
|
28
28
|
tableName: 'areas',
|
|
29
29
|
timestamps: true,
|
|
30
|
-
sequelize:
|
|
30
|
+
sequelize: index_1.sequelize,
|
|
31
31
|
});
|
|
32
|
-
AreaModel.belongsTo(
|
|
32
|
+
AreaModel.belongsTo(cityModel_1.default, {
|
|
33
33
|
foreignKey: 'city',
|
|
34
34
|
as: 'cityArea',
|
|
35
35
|
});
|
|
36
|
-
|
|
36
|
+
cityModel_1.default.hasMany(AreaModel, {
|
|
37
37
|
foreignKey: 'city',
|
|
38
38
|
as: 'AreasHasCity',
|
|
39
39
|
});
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Model } from 'sequelize';
|
|
2
|
-
import { IBankAccountDetailsInterfaceModelAttributes } from '../../interfaces/bankAccountDetailsInterface
|
|
3
|
-
import { TBankAccountDetailsModelCreationAttributes } from '../../types/bankAccountDetailsType
|
|
4
|
-
import { COMMAN_STATUS, BOOLEAN_STATUS } from '../../constants/app
|
|
2
|
+
import { IBankAccountDetailsInterfaceModelAttributes } from '../../interfaces/bankAccountDetailsInterface';
|
|
3
|
+
import { TBankAccountDetailsModelCreationAttributes } from '../../types/bankAccountDetailsType';
|
|
4
|
+
import { COMMAN_STATUS, BOOLEAN_STATUS } from '../../constants/app';
|
|
5
5
|
declare class BankAccountDetailsModel extends Model<IBankAccountDetailsInterfaceModelAttributes, TBankAccountDetailsModelCreationAttributes> {
|
|
6
6
|
id: string;
|
|
7
7
|
accountHolderName: string;
|
|
@@ -4,10 +4,10 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
const sequelize_1 = require("sequelize");
|
|
7
|
-
const
|
|
8
|
-
const
|
|
9
|
-
const
|
|
10
|
-
const
|
|
7
|
+
const index_1 = require("./index");
|
|
8
|
+
const app_1 = require("../../constants/app");
|
|
9
|
+
const instituteModel_1 = __importDefault(require("./instituteModel"));
|
|
10
|
+
const userModel_1 = __importDefault(require("./userModel"));
|
|
11
11
|
class BankAccountDetailsModel extends sequelize_1.Model {
|
|
12
12
|
}
|
|
13
13
|
BankAccountDetailsModel.init({
|
|
@@ -43,37 +43,37 @@ BankAccountDetailsModel.init({
|
|
|
43
43
|
},
|
|
44
44
|
status: {
|
|
45
45
|
type: sequelize_1.DataTypes.ENUM,
|
|
46
|
-
values: Object.values(
|
|
46
|
+
values: Object.values(app_1.COMMAN_STATUS),
|
|
47
47
|
allowNull: false,
|
|
48
|
-
defaultValue:
|
|
48
|
+
defaultValue: app_1.COMMAN_STATUS.ACTIVE,
|
|
49
49
|
},
|
|
50
50
|
isDefault: {
|
|
51
51
|
type: sequelize_1.DataTypes.ENUM,
|
|
52
|
-
values: Object.values(
|
|
52
|
+
values: Object.values(app_1.BOOLEAN_STATUS),
|
|
53
53
|
allowNull: false,
|
|
54
|
-
defaultValue:
|
|
54
|
+
defaultValue: app_1.BOOLEAN_STATUS.NO,
|
|
55
55
|
},
|
|
56
56
|
isSelfAccount: {
|
|
57
57
|
type: sequelize_1.DataTypes.ENUM,
|
|
58
|
-
values: Object.values(
|
|
58
|
+
values: Object.values(app_1.BOOLEAN_STATUS),
|
|
59
59
|
allowNull: false,
|
|
60
|
-
defaultValue:
|
|
60
|
+
defaultValue: app_1.BOOLEAN_STATUS.NO,
|
|
61
61
|
},
|
|
62
62
|
}, {
|
|
63
63
|
modelName: 'BankAccountDetailsModel',
|
|
64
64
|
tableName: 'bank_account_details',
|
|
65
65
|
timestamps: true,
|
|
66
|
-
sequelize:
|
|
66
|
+
sequelize: index_1.sequelize,
|
|
67
67
|
});
|
|
68
|
-
BankAccountDetailsModel.belongsTo(
|
|
68
|
+
BankAccountDetailsModel.belongsTo(instituteModel_1.default, {
|
|
69
69
|
foreignKey: {
|
|
70
70
|
name: 'instituteId',
|
|
71
71
|
field: 'institute_id',
|
|
72
72
|
},
|
|
73
73
|
as: 'bankAccountDetailsInstitute',
|
|
74
74
|
});
|
|
75
|
-
|
|
76
|
-
BankAccountDetailsModel.belongsTo(
|
|
75
|
+
instituteModel_1.default.hasMany(BankAccountDetailsModel, { foreignKey: 'instituteId', as: 'instituteHasBankAccountDetails' });
|
|
76
|
+
BankAccountDetailsModel.belongsTo(userModel_1.default, {
|
|
77
77
|
foreignKey: {
|
|
78
78
|
name: 'createdBy',
|
|
79
79
|
allowNull: true,
|
|
@@ -81,7 +81,7 @@ BankAccountDetailsModel.belongsTo(userModel_js_1.default, {
|
|
|
81
81
|
},
|
|
82
82
|
as: 'createdByUser',
|
|
83
83
|
});
|
|
84
|
-
BankAccountDetailsModel.belongsTo(
|
|
84
|
+
BankAccountDetailsModel.belongsTo(userModel_1.default, {
|
|
85
85
|
foreignKey: {
|
|
86
86
|
name: 'updatedBy',
|
|
87
87
|
allowNull: true,
|
|
@@ -89,7 +89,7 @@ BankAccountDetailsModel.belongsTo(userModel_js_1.default, {
|
|
|
89
89
|
},
|
|
90
90
|
as: 'updatedByUser',
|
|
91
91
|
});
|
|
92
|
-
BankAccountDetailsModel.belongsTo(
|
|
92
|
+
BankAccountDetailsModel.belongsTo(userModel_1.default, {
|
|
93
93
|
foreignKey: {
|
|
94
94
|
name: 'deletedBy',
|
|
95
95
|
allowNull: true,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Model } from 'sequelize';
|
|
2
|
-
import { IBannerModelAttributes } from '../../interfaces/bannerInterface
|
|
3
|
-
import { TBannerModelCreationAttributes } from '../../types/bannerType
|
|
4
|
-
import { BANNER_TYPE, APP_TYPE, COMMAN_STATUS, USER_TYPES } from '../../constants/app
|
|
2
|
+
import { IBannerModelAttributes } from '../../interfaces/bannerInterface';
|
|
3
|
+
import { TBannerModelCreationAttributes } from '../../types/bannerType';
|
|
4
|
+
import { BANNER_TYPE, APP_TYPE, COMMAN_STATUS, USER_TYPES } from '../../constants/app';
|
|
5
5
|
declare class BannerModel extends Model<IBannerModelAttributes, TBannerModelCreationAttributes> {
|
|
6
6
|
id: string;
|
|
7
7
|
title?: string;
|
|
@@ -4,11 +4,11 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
const sequelize_1 = require("sequelize");
|
|
7
|
-
const
|
|
8
|
-
const
|
|
9
|
-
const
|
|
10
|
-
const
|
|
11
|
-
const
|
|
7
|
+
const index_1 = require("./index");
|
|
8
|
+
const app_1 = require("../../constants/app");
|
|
9
|
+
const instituteModel_1 = __importDefault(require("./instituteModel"));
|
|
10
|
+
const fileStorageModel_1 = __importDefault(require("./fileStorageModel"));
|
|
11
|
+
const userModel_1 = __importDefault(require("./userModel"));
|
|
12
12
|
class BannerModel extends sequelize_1.Model {
|
|
13
13
|
}
|
|
14
14
|
BannerModel.init({
|
|
@@ -36,22 +36,22 @@ BannerModel.init({
|
|
|
36
36
|
},
|
|
37
37
|
type: {
|
|
38
38
|
type: sequelize_1.DataTypes.ENUM,
|
|
39
|
-
values: Object.values(
|
|
39
|
+
values: Object.values(app_1.APP_TYPE),
|
|
40
40
|
allowNull: false,
|
|
41
|
-
defaultValue:
|
|
41
|
+
defaultValue: app_1.APP_TYPE.INSTITUTE_APP,
|
|
42
42
|
},
|
|
43
43
|
userType: {
|
|
44
44
|
type: sequelize_1.DataTypes.ENUM,
|
|
45
45
|
field: 'user_type',
|
|
46
|
-
values: Object.values(
|
|
46
|
+
values: Object.values(app_1.USER_TYPES),
|
|
47
47
|
defaultValue: null,
|
|
48
48
|
allowNull: true,
|
|
49
49
|
},
|
|
50
50
|
bannerType: {
|
|
51
51
|
type: sequelize_1.DataTypes.ENUM,
|
|
52
|
-
values: Object.values(
|
|
52
|
+
values: Object.values(app_1.BANNER_TYPE),
|
|
53
53
|
allowNull: false,
|
|
54
|
-
defaultValue:
|
|
54
|
+
defaultValue: app_1.BANNER_TYPE.BANNER_IMAGE,
|
|
55
55
|
},
|
|
56
56
|
fileStorageId: {
|
|
57
57
|
type: sequelize_1.DataTypes.UUID,
|
|
@@ -59,9 +59,9 @@ BannerModel.init({
|
|
|
59
59
|
},
|
|
60
60
|
status: {
|
|
61
61
|
type: sequelize_1.DataTypes.ENUM,
|
|
62
|
-
values: Object.values(
|
|
62
|
+
values: Object.values(app_1.COMMAN_STATUS),
|
|
63
63
|
allowNull: false,
|
|
64
|
-
defaultValue:
|
|
64
|
+
defaultValue: app_1.COMMAN_STATUS.INACTIVE,
|
|
65
65
|
},
|
|
66
66
|
instituteId: {
|
|
67
67
|
type: sequelize_1.DataTypes.UUID,
|
|
@@ -71,25 +71,25 @@ BannerModel.init({
|
|
|
71
71
|
modelName: 'BannerModel',
|
|
72
72
|
tableName: 'banners',
|
|
73
73
|
timestamps: true,
|
|
74
|
-
sequelize:
|
|
74
|
+
sequelize: index_1.sequelize,
|
|
75
75
|
});
|
|
76
|
-
BannerModel.belongsTo(
|
|
76
|
+
BannerModel.belongsTo(instituteModel_1.default, {
|
|
77
77
|
foreignKey: {
|
|
78
78
|
name: 'instituteId',
|
|
79
79
|
field: 'institute_id',
|
|
80
80
|
},
|
|
81
81
|
as: 'bannerInstitute',
|
|
82
82
|
});
|
|
83
|
-
BannerModel.belongsTo(
|
|
83
|
+
BannerModel.belongsTo(fileStorageModel_1.default, {
|
|
84
84
|
foreignKey: {
|
|
85
85
|
name: 'fileStorageId',
|
|
86
86
|
field: 'file_storage_id',
|
|
87
87
|
},
|
|
88
88
|
as: 'bannerFileStorage',
|
|
89
89
|
});
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
BannerModel.belongsTo(
|
|
90
|
+
instituteModel_1.default.hasMany(BannerModel, { foreignKey: 'instituteId', as: 'instituteHasBanners' });
|
|
91
|
+
fileStorageModel_1.default.hasMany(BannerModel, { foreignKey: 'fileStorageId' });
|
|
92
|
+
BannerModel.belongsTo(userModel_1.default, {
|
|
93
93
|
foreignKey: {
|
|
94
94
|
name: 'createdBy',
|
|
95
95
|
allowNull: true,
|
|
@@ -97,7 +97,7 @@ BannerModel.belongsTo(userModel_js_1.default, {
|
|
|
97
97
|
},
|
|
98
98
|
as: 'createdByUser',
|
|
99
99
|
});
|
|
100
|
-
BannerModel.belongsTo(
|
|
100
|
+
BannerModel.belongsTo(userModel_1.default, {
|
|
101
101
|
foreignKey: {
|
|
102
102
|
name: 'updatedBy',
|
|
103
103
|
allowNull: true,
|
|
@@ -105,7 +105,7 @@ BannerModel.belongsTo(userModel_js_1.default, {
|
|
|
105
105
|
},
|
|
106
106
|
as: 'updatedByUser',
|
|
107
107
|
});
|
|
108
|
-
BannerModel.belongsTo(
|
|
108
|
+
BannerModel.belongsTo(userModel_1.default, {
|
|
109
109
|
foreignKey: {
|
|
110
110
|
name: 'deletedBy',
|
|
111
111
|
allowNull: true,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Model } from 'sequelize';
|
|
2
|
-
import { IBatchModelAttributes } from '../../interfaces/batchInterface
|
|
3
|
-
import { TBatchModelCreationAttributes } from '../../types/batchType
|
|
4
|
-
import { COMMAN_STATUS, PLANNER_SYNC_STATUS } from '../../constants/app
|
|
2
|
+
import { IBatchModelAttributes } from '../../interfaces/batchInterface';
|
|
3
|
+
import { TBatchModelCreationAttributes } from '../../types/batchType';
|
|
4
|
+
import { COMMAN_STATUS, PLANNER_SYNC_STATUS } from '../../constants/app';
|
|
5
5
|
declare class BatchModel extends Model<IBatchModelAttributes, TBatchModelCreationAttributes> {
|
|
6
6
|
id: string;
|
|
7
7
|
title: string;
|