@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
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./SubCategoriesModel"), exports);
|
|
18
|
+
__exportStar(require("./academicCalendarModel"), exports);
|
|
19
|
+
__exportStar(require("./accountHasReceiptDetailsModel"), exports);
|
|
20
|
+
__exportStar(require("./announcementModel"), exports);
|
|
21
|
+
__exportStar(require("./areaModel"), exports);
|
|
22
|
+
__exportStar(require("./bankAccountDetailsModel"), exports);
|
|
23
|
+
__exportStar(require("./bannerModel"), exports);
|
|
24
|
+
__exportStar(require("./batchModel"), exports);
|
|
25
|
+
__exportStar(require("./batchSubjectBookAssessmentModel"), exports);
|
|
26
|
+
__exportStar(require("./batchSubjectProjectAssessmentModel"), exports);
|
|
27
|
+
__exportStar(require("./bookAssessmentDateModel"), exports);
|
|
28
|
+
__exportStar(require("./categoriesModel"), exports);
|
|
29
|
+
__exportStar(require("./cityModel"), exports);
|
|
30
|
+
__exportStar(require("./classRoomModel"), exports);
|
|
31
|
+
__exportStar(require("./cloudStorageModel"), exports);
|
|
32
|
+
__exportStar(require("./coinPurchaseOfferModel"), exports);
|
|
33
|
+
__exportStar(require("./contactFeedBackModel"), exports);
|
|
34
|
+
__exportStar(require("./countryModel"), exports);
|
|
35
|
+
__exportStar(require("./courseHasVisitorsModel"), exports);
|
|
36
|
+
__exportStar(require("./courseModel"), exports);
|
|
37
|
+
__exportStar(require("./driverModel"), exports);
|
|
38
|
+
__exportStar(require("./entityGroupModel"), exports);
|
|
39
|
+
__exportStar(require("./facilityModel"), exports);
|
|
40
|
+
__exportStar(require("./featureActionModel"), exports);
|
|
41
|
+
__exportStar(require("./feeHistoryDetailsModel"), exports);
|
|
42
|
+
__exportStar(require("./feeHistoryModel"), exports);
|
|
43
|
+
__exportStar(require("./feeReminderModel"), exports);
|
|
44
|
+
__exportStar(require("./feeReminderSettingModel"), exports);
|
|
45
|
+
__exportStar(require("./feeTypeHasTermsModel"), exports);
|
|
46
|
+
__exportStar(require("./feeTypeModel"), exports);
|
|
47
|
+
__exportStar(require("./feesCollectionModel"), exports);
|
|
48
|
+
__exportStar(require("./fileStorageModel"), exports);
|
|
49
|
+
__exportStar(require("./floorManagementModel"), exports);
|
|
50
|
+
__exportStar(require("./greetingsModel"), exports);
|
|
51
|
+
__exportStar(require("./homeWorkModel"), exports);
|
|
52
|
+
__exportStar(require("./instituteEntityModel"), exports);
|
|
53
|
+
__exportStar(require("./instituteEntityTypeModel"), exports);
|
|
54
|
+
__exportStar(require("./instituteModel"), exports);
|
|
55
|
+
__exportStar(require("./instituteSubscriptionPlanModel"), exports);
|
|
56
|
+
__exportStar(require("./inventoryHistoryModel"), exports);
|
|
57
|
+
__exportStar(require("./inventoryModel"), exports);
|
|
58
|
+
__exportStar(require("./lectureHistoryModel"), exports);
|
|
59
|
+
__exportStar(require("./lectureModel"), exports);
|
|
60
|
+
__exportStar(require("./masterLeaveModel"), exports);
|
|
61
|
+
__exportStar(require("./moduleFeatureModel"), exports);
|
|
62
|
+
__exportStar(require("./moduleModel"), exports);
|
|
63
|
+
__exportStar(require("./offerModel"), exports);
|
|
64
|
+
__exportStar(require("./paymentTermsModel"), exports);
|
|
65
|
+
__exportStar(require("./pdcChequeModel"), exports);
|
|
66
|
+
__exportStar(require("./pdcHistoryModel"), exports);
|
|
67
|
+
__exportStar(require("./pincodeModel"), exports);
|
|
68
|
+
__exportStar(require("./productModel"), exports);
|
|
69
|
+
__exportStar(require("./projectAssessmentOptionModel"), exports);
|
|
70
|
+
__exportStar(require("./roleModel"), exports);
|
|
71
|
+
__exportStar(require("./rulesRegulationModel"), exports);
|
|
72
|
+
__exportStar(require("./schoolFeeCollectionModel"), exports);
|
|
73
|
+
__exportStar(require("./schoolOfferModel"), exports);
|
|
74
|
+
__exportStar(require("./sendNotificationModel"), exports);
|
|
75
|
+
__exportStar(require("./slotModel"), exports);
|
|
76
|
+
__exportStar(require("./stateModel"), exports);
|
|
77
|
+
__exportStar(require("./subjectHasFeeModel"), exports);
|
|
78
|
+
__exportStar(require("./subjectHasPayFeeHistoryModel"), exports);
|
|
79
|
+
__exportStar(require("./syllabusModel"), exports);
|
|
80
|
+
__exportStar(require("./testimonialModel"), exports);
|
|
81
|
+
__exportStar(require("./toDoModel"), exports);
|
|
82
|
+
__exportStar(require("./tokenModel"), exports);
|
|
83
|
+
__exportStar(require("./tripModel"), exports);
|
|
84
|
+
__exportStar(require("./typeManagementModel"), exports);
|
|
85
|
+
__exportStar(require("./userBookAssessmentModel"), exports);
|
|
86
|
+
__exportStar(require("./userFeeTypeByAccountModel"), exports);
|
|
87
|
+
__exportStar(require("./userFeeTypeModel"), exports);
|
|
88
|
+
__exportStar(require("./userHasAnnouncementModel"), exports);
|
|
89
|
+
__exportStar(require("./userHasBatchModel"), exports);
|
|
90
|
+
__exportStar(require("./userHasCourseModel"), exports);
|
|
91
|
+
__exportStar(require("./userHasDeviceModel"), exports);
|
|
92
|
+
__exportStar(require("./userHasFeeTermsModel"), exports);
|
|
93
|
+
__exportStar(require("./userHasFileModel"), exports);
|
|
94
|
+
__exportStar(require("./userHasHomeWorkModel"), exports);
|
|
95
|
+
__exportStar(require("./userHasInventoryHistoryModel"), exports);
|
|
96
|
+
__exportStar(require("./userHasInventoryModel"), exports);
|
|
97
|
+
__exportStar(require("./userHasLeaveHistoryModel"), exports);
|
|
98
|
+
__exportStar(require("./userHasLeaveModel"), exports);
|
|
99
|
+
__exportStar(require("./userHasOfferModel"), exports);
|
|
100
|
+
__exportStar(require("./userHasParentModel"), exports);
|
|
101
|
+
__exportStar(require("./userHasRoleModel"), exports);
|
|
102
|
+
__exportStar(require("./userHasRollNumberModel"), exports);
|
|
103
|
+
__exportStar(require("./userHasStorageModel"), exports);
|
|
104
|
+
__exportStar(require("./userHasSubjectFeeModel"), exports);
|
|
105
|
+
__exportStar(require("./userLeaveRequestModel"), exports);
|
|
106
|
+
__exportStar(require("./userModel"), exports);
|
|
107
|
+
__exportStar(require("./userPayoutDetailsModel"), exports);
|
|
108
|
+
__exportStar(require("./userPayoutHistoryModel"), exports);
|
|
109
|
+
__exportStar(require("./userPayoutModel"), exports);
|
|
110
|
+
__exportStar(require("./userProjectAssessmentOptionModel"), exports);
|
|
111
|
+
__exportStar(require("./userRequiredStepsModel"), exports);
|
|
112
|
+
__exportStar(require("./vehicleModel"), exports);
|
|
113
|
+
__exportStar(require("./vendorManagementModel"), exports);
|
|
114
|
+
__exportStar(require("./walletHistoryModel"), exports);
|
|
115
|
+
__exportStar(require("./walletModel"), exports);
|
|
116
|
+
__exportStar(require("./workingDayModel"), exports);
|
|
117
|
+
__exportStar(require("./workingShiftModel"), exports);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Model } from 'sequelize';
|
|
2
|
-
import { APP_TYPE, COMMAN_STATUS } from '../../constants/app
|
|
3
|
-
import { IModuleFeatureAttributes } from '../../interfaces/moduleFeatureInterface
|
|
4
|
-
import { TModuleFeatureCreationAttributes } from '../../types/moduleFeatureType
|
|
2
|
+
import { APP_TYPE, COMMAN_STATUS } from '../../constants/app';
|
|
3
|
+
import { IModuleFeatureAttributes } from '../../interfaces/moduleFeatureInterface';
|
|
4
|
+
import { TModuleFeatureCreationAttributes } from '../../types/moduleFeatureType';
|
|
5
5
|
declare class ModuleFeatureModel extends Model<IModuleFeatureAttributes, TModuleFeatureCreationAttributes> {
|
|
6
6
|
id: string;
|
|
7
7
|
name: 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 userModel_1 = __importDefault(require("./userModel"));
|
|
10
|
+
const featureActionModel_1 = __importDefault(require("./featureActionModel"));
|
|
11
|
+
const roleModel_1 = __importDefault(require("./roleModel"));
|
|
12
12
|
class ModuleFeatureModel extends sequelize_1.Model {
|
|
13
13
|
}
|
|
14
14
|
ModuleFeatureModel.init({
|
|
@@ -33,7 +33,7 @@ ModuleFeatureModel.init({
|
|
|
33
33
|
status: {
|
|
34
34
|
type: sequelize_1.DataTypes.STRING(30),
|
|
35
35
|
allowNull: false,
|
|
36
|
-
defaultValue:
|
|
36
|
+
defaultValue: app_1.COMMAN_STATUS.ACTIVE,
|
|
37
37
|
},
|
|
38
38
|
isDefault: {
|
|
39
39
|
type: sequelize_1.DataTypes.BOOLEAN,
|
|
@@ -55,9 +55,9 @@ ModuleFeatureModel.init({
|
|
|
55
55
|
modelName: 'ModuleFeatureModel',
|
|
56
56
|
tableName: 'module_features',
|
|
57
57
|
timestamps: true,
|
|
58
|
-
sequelize:
|
|
58
|
+
sequelize: index_1.sequelize,
|
|
59
59
|
});
|
|
60
|
-
ModuleFeatureModel.belongsTo(
|
|
60
|
+
ModuleFeatureModel.belongsTo(userModel_1.default, {
|
|
61
61
|
foreignKey: {
|
|
62
62
|
name: 'createdBy',
|
|
63
63
|
allowNull: true,
|
|
@@ -65,7 +65,7 @@ ModuleFeatureModel.belongsTo(userModel_js_1.default, {
|
|
|
65
65
|
},
|
|
66
66
|
as: 'createdByUser',
|
|
67
67
|
});
|
|
68
|
-
ModuleFeatureModel.belongsTo(
|
|
68
|
+
ModuleFeatureModel.belongsTo(userModel_1.default, {
|
|
69
69
|
foreignKey: {
|
|
70
70
|
name: 'updatedBy',
|
|
71
71
|
allowNull: true,
|
|
@@ -73,7 +73,7 @@ ModuleFeatureModel.belongsTo(userModel_js_1.default, {
|
|
|
73
73
|
},
|
|
74
74
|
as: 'updatedByUser',
|
|
75
75
|
});
|
|
76
|
-
ModuleFeatureModel.belongsTo(
|
|
76
|
+
ModuleFeatureModel.belongsTo(userModel_1.default, {
|
|
77
77
|
foreignKey: {
|
|
78
78
|
name: 'deletedBy',
|
|
79
79
|
allowNull: true,
|
|
@@ -81,14 +81,14 @@ ModuleFeatureModel.belongsTo(userModel_js_1.default, {
|
|
|
81
81
|
},
|
|
82
82
|
as: 'deletedByUser',
|
|
83
83
|
});
|
|
84
|
-
ModuleFeatureModel.hasMany(
|
|
84
|
+
ModuleFeatureModel.hasMany(featureActionModel_1.default, {
|
|
85
85
|
foreignKey: {
|
|
86
86
|
name: 'featureId',
|
|
87
87
|
field: 'feature_id',
|
|
88
88
|
},
|
|
89
89
|
as: 'actions',
|
|
90
90
|
});
|
|
91
|
-
ModuleFeatureModel.belongsTo(
|
|
91
|
+
ModuleFeatureModel.belongsTo(roleModel_1.default, {
|
|
92
92
|
foreignKey: {
|
|
93
93
|
name: 'roleId',
|
|
94
94
|
field: 'roleId',
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Model } from 'sequelize';
|
|
2
|
-
import { APP_TYPE, COMMAN_STATUS } from '../../constants/app
|
|
3
|
-
import { IModuleAttributes } from '../../interfaces/moduleInterface
|
|
4
|
-
import { TModuleCreationAttributes } from '../../types/moduleType
|
|
2
|
+
import { APP_TYPE, COMMAN_STATUS } from '../../constants/app';
|
|
3
|
+
import { IModuleAttributes } from '../../interfaces/moduleInterface';
|
|
4
|
+
import { TModuleCreationAttributes } from '../../types/moduleType';
|
|
5
5
|
declare class ModuleModel extends Model<IModuleAttributes, TModuleCreationAttributes> {
|
|
6
6
|
id: string;
|
|
7
7
|
name: string;
|
|
@@ -4,12 +4,12 @@ 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
|
|
7
|
+
const index_1 = require("./index");
|
|
8
|
+
const app_1 = require("../../constants/app");
|
|
9
|
+
const userModel_1 = __importDefault(require("./userModel"));
|
|
10
|
+
const moduleFeatureModel_1 = __importDefault(require("./moduleFeatureModel"));
|
|
11
|
+
const featureActionModel_1 = __importDefault(require("./featureActionModel"));
|
|
12
|
+
const roleModel_1 = __importDefault(require("./roleModel"));
|
|
13
13
|
class ModuleModel extends sequelize_1.Model {
|
|
14
14
|
}
|
|
15
15
|
ModuleModel.init({
|
|
@@ -34,7 +34,7 @@ ModuleModel.init({
|
|
|
34
34
|
status: {
|
|
35
35
|
type: sequelize_1.DataTypes.STRING(30),
|
|
36
36
|
allowNull: false,
|
|
37
|
-
defaultValue:
|
|
37
|
+
defaultValue: app_1.COMMAN_STATUS.ACTIVE,
|
|
38
38
|
},
|
|
39
39
|
isDefault: {
|
|
40
40
|
type: sequelize_1.DataTypes.BOOLEAN,
|
|
@@ -51,9 +51,9 @@ ModuleModel.init({
|
|
|
51
51
|
modelName: 'ModuleModel',
|
|
52
52
|
tableName: 'modules',
|
|
53
53
|
timestamps: true,
|
|
54
|
-
sequelize:
|
|
54
|
+
sequelize: index_1.sequelize,
|
|
55
55
|
});
|
|
56
|
-
ModuleModel.belongsTo(
|
|
56
|
+
ModuleModel.belongsTo(userModel_1.default, {
|
|
57
57
|
foreignKey: {
|
|
58
58
|
name: 'createdBy',
|
|
59
59
|
allowNull: true,
|
|
@@ -61,7 +61,7 @@ ModuleModel.belongsTo(userModel_js_1.default, {
|
|
|
61
61
|
},
|
|
62
62
|
as: 'createdByUser',
|
|
63
63
|
});
|
|
64
|
-
ModuleModel.belongsTo(
|
|
64
|
+
ModuleModel.belongsTo(userModel_1.default, {
|
|
65
65
|
foreignKey: {
|
|
66
66
|
name: 'updatedBy',
|
|
67
67
|
allowNull: true,
|
|
@@ -69,7 +69,7 @@ ModuleModel.belongsTo(userModel_js_1.default, {
|
|
|
69
69
|
},
|
|
70
70
|
as: 'updatedByUser',
|
|
71
71
|
});
|
|
72
|
-
ModuleModel.belongsTo(
|
|
72
|
+
ModuleModel.belongsTo(userModel_1.default, {
|
|
73
73
|
foreignKey: {
|
|
74
74
|
name: 'deletedBy',
|
|
75
75
|
allowNull: true,
|
|
@@ -77,21 +77,21 @@ ModuleModel.belongsTo(userModel_js_1.default, {
|
|
|
77
77
|
},
|
|
78
78
|
as: 'deletedByUser',
|
|
79
79
|
});
|
|
80
|
-
ModuleModel.hasMany(
|
|
80
|
+
ModuleModel.hasMany(moduleFeatureModel_1.default, {
|
|
81
81
|
foreignKey: {
|
|
82
82
|
name: 'moduleId',
|
|
83
83
|
field: 'module_id',
|
|
84
84
|
},
|
|
85
85
|
as: 'features',
|
|
86
86
|
});
|
|
87
|
-
ModuleModel.hasMany(
|
|
87
|
+
ModuleModel.hasMany(featureActionModel_1.default, {
|
|
88
88
|
foreignKey: {
|
|
89
89
|
name: 'moduleId',
|
|
90
90
|
field: 'module_id',
|
|
91
91
|
},
|
|
92
92
|
as: 'actions',
|
|
93
93
|
});
|
|
94
|
-
ModuleModel.belongsTo(
|
|
94
|
+
ModuleModel.belongsTo(roleModel_1.default, {
|
|
95
95
|
foreignKey: {
|
|
96
96
|
name: 'roleId',
|
|
97
97
|
field: 'roleId',
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Model } from 'sequelize';
|
|
2
|
-
import { IOffersModelAttributes } from '../../interfaces/offersInterface
|
|
3
|
-
import { TOfferModelCreationAttributes } from '../../types/offerType
|
|
4
|
-
import { COMMAN_STATUS, OFFER_NAME, OFFER_TYPE } from '../../constants/app
|
|
2
|
+
import { IOffersModelAttributes } from '../../interfaces/offersInterface';
|
|
3
|
+
import { TOfferModelCreationAttributes } from '../../types/offerType';
|
|
4
|
+
import { COMMAN_STATUS, OFFER_NAME, OFFER_TYPE } from '../../constants/app';
|
|
5
5
|
declare class OfferModel extends Model<IOffersModelAttributes, TOfferModelCreationAttributes> {
|
|
6
6
|
id: string;
|
|
7
7
|
type: OFFER_TYPE;
|
|
@@ -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
|
// const instituteService = container.resolve<IInstituteService>(InstituteService);
|
|
12
12
|
// const userService = container.resolve<IUserService>(UserService);
|
|
13
13
|
class OfferModel extends sequelize_1.Model {
|
|
@@ -21,14 +21,14 @@ OfferModel.init({
|
|
|
21
21
|
},
|
|
22
22
|
type: {
|
|
23
23
|
type: sequelize_1.DataTypes.ENUM,
|
|
24
|
-
values: Object.values(
|
|
24
|
+
values: Object.values(app_1.OFFER_TYPE),
|
|
25
25
|
allowNull: false,
|
|
26
26
|
},
|
|
27
27
|
status: {
|
|
28
28
|
type: sequelize_1.DataTypes.ENUM,
|
|
29
|
-
values: Object.values(
|
|
29
|
+
values: Object.values(app_1.COMMAN_STATUS),
|
|
30
30
|
allowNull: true,
|
|
31
|
-
defaultValue:
|
|
31
|
+
defaultValue: app_1.COMMAN_STATUS.ACTIVE,
|
|
32
32
|
},
|
|
33
33
|
userId: {
|
|
34
34
|
type: sequelize_1.DataTypes.UUID,
|
|
@@ -44,7 +44,7 @@ OfferModel.init({
|
|
|
44
44
|
},
|
|
45
45
|
offerType: {
|
|
46
46
|
type: sequelize_1.DataTypes.STRING,
|
|
47
|
-
defaultValue:
|
|
47
|
+
defaultValue: app_1.OFFER_NAME.FEE,
|
|
48
48
|
allowNull: true,
|
|
49
49
|
},
|
|
50
50
|
description: {
|
|
@@ -83,25 +83,25 @@ OfferModel.init({
|
|
|
83
83
|
modelName: 'OfferModel',
|
|
84
84
|
tableName: 'offers',
|
|
85
85
|
timestamps: true,
|
|
86
|
-
sequelize:
|
|
86
|
+
sequelize: index_1.sequelize,
|
|
87
87
|
});
|
|
88
|
-
OfferModel.belongsTo(
|
|
88
|
+
OfferModel.belongsTo(userModel_1.default, {
|
|
89
89
|
foreignKey: {
|
|
90
90
|
name: 'userId',
|
|
91
91
|
field: 'user_id',
|
|
92
92
|
},
|
|
93
93
|
as: 'offerUser',
|
|
94
94
|
});
|
|
95
|
-
|
|
96
|
-
OfferModel.belongsTo(
|
|
95
|
+
userModel_1.default.hasMany(OfferModel, { foreignKey: 'userId', as: 'userHasOffers' });
|
|
96
|
+
OfferModel.belongsTo(instituteModel_1.default, {
|
|
97
97
|
foreignKey: {
|
|
98
98
|
name: 'instituteId',
|
|
99
99
|
field: 'institute_id',
|
|
100
100
|
},
|
|
101
101
|
as: 'offerInstitute',
|
|
102
102
|
});
|
|
103
|
-
|
|
104
|
-
OfferModel.belongsTo(
|
|
103
|
+
instituteModel_1.default.hasMany(OfferModel, { foreignKey: 'instituteId', as: 'instituteHasOffers' });
|
|
104
|
+
OfferModel.belongsTo(userModel_1.default, {
|
|
105
105
|
foreignKey: {
|
|
106
106
|
name: 'createdBy',
|
|
107
107
|
allowNull: true,
|
|
@@ -109,7 +109,7 @@ OfferModel.belongsTo(userModel_js_1.default, {
|
|
|
109
109
|
},
|
|
110
110
|
as: 'createdByUser',
|
|
111
111
|
});
|
|
112
|
-
OfferModel.belongsTo(
|
|
112
|
+
OfferModel.belongsTo(userModel_1.default, {
|
|
113
113
|
foreignKey: {
|
|
114
114
|
name: 'updatedBy',
|
|
115
115
|
allowNull: true,
|
|
@@ -117,7 +117,7 @@ OfferModel.belongsTo(userModel_js_1.default, {
|
|
|
117
117
|
},
|
|
118
118
|
as: 'updatedByUser',
|
|
119
119
|
});
|
|
120
|
-
OfferModel.belongsTo(
|
|
120
|
+
OfferModel.belongsTo(userModel_1.default, {
|
|
121
121
|
foreignKey: {
|
|
122
122
|
name: 'deletedBy',
|
|
123
123
|
allowNull: true,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Model } from 'sequelize';
|
|
2
|
-
import { IPaymentTermsModelAttributes } from '../../interfaces/paymentTermsInterface
|
|
3
|
-
import { PAYMENT_TERMS_STATUS, PAYMENT_TERMS_TYPE } from '../../constants/app
|
|
2
|
+
import { IPaymentTermsModelAttributes } from '../../interfaces/paymentTermsInterface';
|
|
3
|
+
import { PAYMENT_TERMS_STATUS, PAYMENT_TERMS_TYPE } from '../../constants/app';
|
|
4
4
|
declare class PaymentTermsModel extends Model<IPaymentTermsModelAttributes> {
|
|
5
5
|
id: string;
|
|
6
6
|
date?: Date;
|
|
@@ -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 PaymentTermsModel extends sequelize_1.Model {
|
|
12
12
|
}
|
|
13
13
|
PaymentTermsModel.init({
|
|
@@ -31,7 +31,7 @@ PaymentTermsModel.init({
|
|
|
31
31
|
},
|
|
32
32
|
type: {
|
|
33
33
|
type: sequelize_1.DataTypes.ENUM,
|
|
34
|
-
values: Object.values(
|
|
34
|
+
values: Object.values(app_1.PAYMENT_TERMS_TYPE),
|
|
35
35
|
allowNull: false,
|
|
36
36
|
},
|
|
37
37
|
amount: {
|
|
@@ -46,8 +46,8 @@ PaymentTermsModel.init({
|
|
|
46
46
|
},
|
|
47
47
|
status: {
|
|
48
48
|
type: sequelize_1.DataTypes.ENUM,
|
|
49
|
-
values: Object.values(
|
|
50
|
-
defaultValue:
|
|
49
|
+
values: Object.values(app_1.PAYMENT_TERMS_STATUS),
|
|
50
|
+
defaultValue: app_1.PAYMENT_TERMS_STATUS.DUE,
|
|
51
51
|
allowNull: false,
|
|
52
52
|
},
|
|
53
53
|
instituteId: {
|
|
@@ -69,25 +69,25 @@ PaymentTermsModel.init({
|
|
|
69
69
|
modelName: 'PaymentTermsModel',
|
|
70
70
|
tableName: 'payment_terms',
|
|
71
71
|
timestamps: true,
|
|
72
|
-
sequelize:
|
|
72
|
+
sequelize: index_1.sequelize,
|
|
73
73
|
});
|
|
74
|
-
PaymentTermsModel.belongsTo(
|
|
74
|
+
PaymentTermsModel.belongsTo(instituteModel_1.default, {
|
|
75
75
|
foreignKey: {
|
|
76
76
|
name: 'instituteId',
|
|
77
77
|
field: 'institute_id',
|
|
78
78
|
},
|
|
79
79
|
as: 'institute',
|
|
80
80
|
});
|
|
81
|
-
PaymentTermsModel.belongsTo(
|
|
81
|
+
PaymentTermsModel.belongsTo(userModel_1.default, {
|
|
82
82
|
foreignKey: {
|
|
83
83
|
name: 'userId',
|
|
84
84
|
field: 'user_id',
|
|
85
85
|
},
|
|
86
86
|
as: 'user',
|
|
87
87
|
});
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
PaymentTermsModel.belongsTo(
|
|
88
|
+
userModel_1.default.hasMany(PaymentTermsModel, { foreignKey: 'userId', as: 'userHasPaymentTerms' });
|
|
89
|
+
instituteModel_1.default.hasMany(PaymentTermsModel, { foreignKey: 'instituteId', as: 'instituteHasPaymentTerms' });
|
|
90
|
+
PaymentTermsModel.belongsTo(userModel_1.default, {
|
|
91
91
|
foreignKey: {
|
|
92
92
|
name: 'createdBy',
|
|
93
93
|
allowNull: true,
|
|
@@ -95,7 +95,7 @@ PaymentTermsModel.belongsTo(userModel_js_1.default, {
|
|
|
95
95
|
},
|
|
96
96
|
as: 'createdByUser',
|
|
97
97
|
});
|
|
98
|
-
PaymentTermsModel.belongsTo(
|
|
98
|
+
PaymentTermsModel.belongsTo(userModel_1.default, {
|
|
99
99
|
foreignKey: {
|
|
100
100
|
name: 'updatedBy',
|
|
101
101
|
allowNull: true,
|
|
@@ -103,7 +103,7 @@ PaymentTermsModel.belongsTo(userModel_js_1.default, {
|
|
|
103
103
|
},
|
|
104
104
|
as: 'updatedByUser',
|
|
105
105
|
});
|
|
106
|
-
PaymentTermsModel.belongsTo(
|
|
106
|
+
PaymentTermsModel.belongsTo(userModel_1.default, {
|
|
107
107
|
foreignKey: {
|
|
108
108
|
name: 'deletedBy',
|
|
109
109
|
allowNull: true,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Model } from 'sequelize';
|
|
2
|
-
import { IPdcChequeModelAttributes } from '../../interfaces/pdcChequeInterface
|
|
3
|
-
import { TPdcChequeModelCreationAttributes } from '../../types/pdcChequeType
|
|
4
|
-
import { PDF_CHEQUE_FREQUENCY, PDF_CHEQUE_STATUS } from '../../constants/app
|
|
2
|
+
import { IPdcChequeModelAttributes } from '../../interfaces/pdcChequeInterface';
|
|
3
|
+
import { TPdcChequeModelCreationAttributes } from '../../types/pdcChequeType';
|
|
4
|
+
import { PDF_CHEQUE_FREQUENCY, PDF_CHEQUE_STATUS } from '../../constants/app';
|
|
5
5
|
declare class PdcChequeModel extends Model<IPdcChequeModelAttributes, TPdcChequeModelCreationAttributes> {
|
|
6
6
|
id: string;
|
|
7
7
|
instituteId: string;
|
|
@@ -4,12 +4,12 @@ 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
|
|
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 userFeeTypeByAccountModel_1 = __importDefault(require("./userFeeTypeByAccountModel"));
|
|
12
|
+
const instituteEntityModel_1 = __importDefault(require("./instituteEntityModel"));
|
|
13
13
|
class PdcChequeModel extends sequelize_1.Model {
|
|
14
14
|
}
|
|
15
15
|
PdcChequeModel.init({
|
|
@@ -66,7 +66,7 @@ PdcChequeModel.init({
|
|
|
66
66
|
status: {
|
|
67
67
|
type: sequelize_1.DataTypes.STRING,
|
|
68
68
|
allowNull: true,
|
|
69
|
-
defaultValue:
|
|
69
|
+
defaultValue: app_1.PDF_CHEQUE_STATUS.ADDED,
|
|
70
70
|
},
|
|
71
71
|
frequency: {
|
|
72
72
|
type: sequelize_1.DataTypes.STRING,
|
|
@@ -76,10 +76,10 @@ PdcChequeModel.init({
|
|
|
76
76
|
modelName: 'PdcChequeModel',
|
|
77
77
|
tableName: 'pdcCheques',
|
|
78
78
|
timestamps: true,
|
|
79
|
-
sequelize:
|
|
79
|
+
sequelize: index_1.sequelize,
|
|
80
80
|
});
|
|
81
81
|
// Associations
|
|
82
|
-
PdcChequeModel.belongsTo(
|
|
82
|
+
PdcChequeModel.belongsTo(userModel_1.default, {
|
|
83
83
|
foreignKey: {
|
|
84
84
|
name: 'createdBy',
|
|
85
85
|
allowNull: true,
|
|
@@ -87,7 +87,7 @@ PdcChequeModel.belongsTo(userModel_js_1.default, {
|
|
|
87
87
|
},
|
|
88
88
|
as: 'createdByUser',
|
|
89
89
|
});
|
|
90
|
-
PdcChequeModel.belongsTo(
|
|
90
|
+
PdcChequeModel.belongsTo(userModel_1.default, {
|
|
91
91
|
foreignKey: {
|
|
92
92
|
name: 'updatedBy',
|
|
93
93
|
allowNull: true,
|
|
@@ -95,7 +95,7 @@ PdcChequeModel.belongsTo(userModel_js_1.default, {
|
|
|
95
95
|
},
|
|
96
96
|
as: 'updatedByUser',
|
|
97
97
|
});
|
|
98
|
-
PdcChequeModel.belongsTo(
|
|
98
|
+
PdcChequeModel.belongsTo(userModel_1.default, {
|
|
99
99
|
foreignKey: {
|
|
100
100
|
name: 'deletedBy',
|
|
101
101
|
allowNull: true,
|
|
@@ -103,35 +103,35 @@ PdcChequeModel.belongsTo(userModel_js_1.default, {
|
|
|
103
103
|
},
|
|
104
104
|
as: 'deletedByUser',
|
|
105
105
|
});
|
|
106
|
-
PdcChequeModel.belongsTo(
|
|
106
|
+
PdcChequeModel.belongsTo(instituteModel_1.default, {
|
|
107
107
|
foreignKey: 'instituteId',
|
|
108
108
|
as: 'pdcChequeInstitute',
|
|
109
109
|
});
|
|
110
|
-
|
|
110
|
+
instituteModel_1.default.hasMany(PdcChequeModel, {
|
|
111
111
|
foreignKey: 'instituteId',
|
|
112
112
|
as: 'instituteHasPdcCheques',
|
|
113
113
|
});
|
|
114
|
-
PdcChequeModel.belongsTo(
|
|
114
|
+
PdcChequeModel.belongsTo(userModel_1.default, {
|
|
115
115
|
foreignKey: 'userId',
|
|
116
116
|
as: 'pdcChequeUser',
|
|
117
117
|
});
|
|
118
|
-
|
|
118
|
+
userModel_1.default.hasMany(PdcChequeModel, {
|
|
119
119
|
foreignKey: 'userId',
|
|
120
120
|
as: 'userHasPdcCheques',
|
|
121
121
|
});
|
|
122
|
-
PdcChequeModel.belongsTo(
|
|
122
|
+
PdcChequeModel.belongsTo(userFeeTypeByAccountModel_1.default, {
|
|
123
123
|
foreignKey: 'userFeeTypeByAccountId',
|
|
124
124
|
as: 'pdcChequeUserFeeType',
|
|
125
125
|
});
|
|
126
|
-
|
|
126
|
+
userFeeTypeByAccountModel_1.default.hasMany(PdcChequeModel, {
|
|
127
127
|
foreignKey: 'userFeeTypeByAccountId',
|
|
128
128
|
as: 'userFeeTypePdcCheques',
|
|
129
129
|
});
|
|
130
|
-
PdcChequeModel.belongsTo(
|
|
130
|
+
PdcChequeModel.belongsTo(instituteEntityModel_1.default, {
|
|
131
131
|
foreignKey: 'standardId',
|
|
132
132
|
as: 'pdcChequeStandard',
|
|
133
133
|
});
|
|
134
|
-
|
|
134
|
+
instituteEntityModel_1.default.hasMany(PdcChequeModel, {
|
|
135
135
|
foreignKey: 'standardId',
|
|
136
136
|
as: 'StandardPdcCheques',
|
|
137
137
|
});
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Model } from 'sequelize';
|
|
2
|
-
import { IPdcHistoryModelAttributes } from '../../interfaces/pdcHistoryInterface
|
|
3
|
-
import { TPdcHistoryModelCreationAttributes } from '../../types/pdcHistoryType
|
|
4
|
-
import { PDF_CHEQUE_FREQUENCY, PDF_CHEQUE_STATUS } from '../../constants/app
|
|
2
|
+
import { IPdcHistoryModelAttributes } from '../../interfaces/pdcHistoryInterface';
|
|
3
|
+
import { TPdcHistoryModelCreationAttributes } from '../../types/pdcHistoryType';
|
|
4
|
+
import { PDF_CHEQUE_FREQUENCY, PDF_CHEQUE_STATUS } from '../../constants/app';
|
|
5
5
|
declare class PdcHistoryModel extends Model<IPdcHistoryModelAttributes, TPdcHistoryModelCreationAttributes> {
|
|
6
6
|
id: string;
|
|
7
7
|
instituteId: string;
|