@kipicore/dbcore 1.1.55 → 1.1.56
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/constants/errorMessages.d.ts +7 -0
- package/dist/constants/errorMessages.js +9 -1
- package/dist/constants/successMessages.d.ts +6 -0
- package/dist/constants/successMessages.js +8 -1
- package/dist/db/psql/migrations/20251009040003-create-working-shift-days.d.ts +2 -0
- package/dist/db/psql/migrations/20251009040003-create-working-shift-days.js +181 -0
- package/dist/db/psql/migrations/20251009042557-create-or-update-academic-calendars.js +155 -0
- package/dist/db/psql/migrations/20251009043250-working_days.js +170 -0
- package/dist/db/psql/migrations/20251009044907-wallets.js +166 -0
- package/dist/db/psql/migrations/20251009045350-wallet_history.js +206 -0
- package/dist/db/psql/migrations/20251009045749-vendor_management.js +236 -0
- package/dist/db/psql/migrations/20251009050216-vehicles.js +180 -0
- package/dist/db/psql/migrations/20251009050518-UserRequiredSteps.js +152 -0
- package/dist/db/psql/migrations/20251009051027-user_project_assessment_options.js +174 -0
- package/dist/db/psql/migrations/20251009052015-user_payouts.js +180 -0
- package/dist/db/psql/migrations/20251009052646-user_payout_history.js +242 -0
- package/dist/db/psql/migrations/20251009052911-user_payout_details.js +132 -0
- package/dist/db/psql/migrations/20251009053200-users.d.ts +2 -0
- package/dist/db/psql/migrations/20251009053200-users.js +206 -0
- package/dist/db/psql/migrations/20251009053408-user_leave_request.d.ts +2 -0
- package/dist/db/psql/migrations/20251009053408-user_leave_request.js +206 -0
- package/dist/db/psql/migrations/20251009053639-user_has_subject_fee.d.ts +2 -0
- package/dist/db/psql/migrations/20251009053639-user_has_subject_fee.js +158 -0
- package/dist/db/psql/migrations/20251009053847-user_has_storage.d.ts +2 -0
- package/dist/db/psql/migrations/20251009053847-user_has_storage.js +172 -0
- package/dist/db/psql/migrations/20251009054048-user_has_roll_number.d.ts +2 -0
- package/dist/db/psql/migrations/20251009054048-user_has_roll_number.js +150 -0
- package/dist/db/psql/migrations/20251009054308-user_has_roles.d.ts +2 -0
- package/dist/db/psql/migrations/20251009054308-user_has_roles.js +150 -0
- package/dist/db/psql/migrations/20251009054554-user_has_parents.d.ts +2 -0
- package/dist/db/psql/migrations/20251009054554-user_has_parents.js +215 -0
- package/dist/db/psql/migrations/20251009054748-user_has_offers.d.ts +2 -0
- package/dist/db/psql/migrations/20251009054748-user_has_offers.js +172 -0
- package/dist/db/psql/migrations/20251009055140-user_has_leave.d.ts +2 -0
- package/dist/db/psql/migrations/20251009055140-user_has_leave.js +184 -0
- package/dist/db/psql/migrations/20251009055325-user_has_leave_history.d.ts +2 -0
- package/dist/db/psql/migrations/20251009055325-user_has_leave_history.js +218 -0
- package/dist/db/psql/migrations/20251009055540-user_has_inventory.d.ts +2 -0
- package/dist/db/psql/migrations/20251009055540-user_has_inventory.js +278 -0
- package/dist/db/psql/migrations/20251009060053-user_has_inventory_history.d.ts +2 -0
- package/dist/db/psql/migrations/20251009060053-user_has_inventory_history.js +270 -0
- package/dist/db/psql/migrations/20251009060301-user_has_home_work.d.ts +2 -0
- package/dist/db/psql/migrations/20251009060301-user_has_home_work.js +172 -0
- package/dist/db/psql/migrations/20251009060506-user_has_files.d.ts +2 -0
- package/dist/db/psql/migrations/20251009060506-user_has_files.js +173 -0
- package/dist/db/psql/migrations/20251009060732-create_account_has_receipt_details.d.ts +2 -0
- package/dist/db/psql/migrations/20251009060732-create_account_has_receipt_details.js +228 -0
- package/dist/db/psql/migrations/20251009060734-user_has_fee_terms.d.ts +2 -0
- package/dist/db/psql/migrations/20251009060734-user_has_fee_terms.js +240 -0
- package/dist/db/psql/migrations/20251009061032-user_has_device.d.ts +2 -0
- package/dist/db/psql/migrations/20251009061032-user_has_device.js +168 -0
- package/dist/db/psql/migrations/20251009061450-announcementes.d.ts +2 -0
- package/dist/db/psql/migrations/20251009061450-announcementes.js +236 -0
- package/dist/db/psql/migrations/20251009061917-userHasUserHasCourses.d.ts +2 -0
- package/dist/db/psql/migrations/20251009061917-userHasUserHasCourses.js +192 -0
- package/dist/db/psql/migrations/20251009061943-areas.d.ts +2 -0
- package/dist/db/psql/migrations/20251009061943-areas.js +130 -0
- package/dist/db/psql/migrations/20251009062112-user_has_batches.d.ts +2 -0
- package/dist/db/psql/migrations/20251009062112-user_has_batches.js +140 -0
- package/dist/db/psql/migrations/20251009062317-user_has_announcementes.d.ts +2 -0
- package/dist/db/psql/migrations/20251009062317-user_has_announcementes.js +150 -0
- package/dist/db/psql/migrations/20251009062408-bank_account_details.d.ts +2 -0
- package/dist/db/psql/migrations/20251009062408-bank_account_details.js +204 -0
- package/dist/db/psql/migrations/20251009062523-user_fee_types.d.ts +2 -0
- package/dist/db/psql/migrations/20251009062523-user_fee_types.js +216 -0
- package/dist/db/psql/migrations/20251009062708-user_fee_type_by_account.d.ts +2 -0
- package/dist/db/psql/migrations/20251009062708-user_fee_type_by_account.js +198 -0
- package/dist/db/psql/migrations/20251009062844-user_book_assessments.d.ts +2 -0
- package/dist/db/psql/migrations/20251009062844-user_book_assessments.js +174 -0
- package/dist/db/psql/migrations/20251009063105-type_management.d.ts +2 -0
- package/dist/db/psql/migrations/20251009063105-type_management.js +170 -0
- package/dist/db/psql/migrations/20251009063225-batches.d.ts +2 -0
- package/dist/db/psql/migrations/20251009063225-batches.js +240 -0
- package/dist/db/psql/migrations/20251009063427-trips.d.ts +2 -0
- package/dist/db/psql/migrations/20251009063427-trips.js +188 -0
- package/dist/db/psql/migrations/20251009063619-tokens.d.ts +2 -0
- package/dist/db/psql/migrations/20251009063619-tokens.js +144 -0
- package/dist/db/psql/migrations/20251009063849-toDos.d.ts +2 -0
- package/dist/db/psql/migrations/20251009063849-toDos.js +168 -0
- package/dist/db/psql/migrations/20251009064034-testimonials.d.ts +2 -0
- package/dist/db/psql/migrations/20251009064034-testimonials.js +178 -0
- package/dist/db/psql/migrations/20251009064240-syllabus.d.ts +2 -0
- package/dist/db/psql/migrations/20251009064240-syllabus.js +150 -0
- package/dist/db/psql/migrations/20251009064430-subject_has_pay_fee_history.d.ts +2 -0
- package/dist/db/psql/migrations/20251009064430-subject_has_pay_fee_history.js +158 -0
- package/dist/db/psql/migrations/20251009064531-batch_subject_book_assessments.d.ts +2 -0
- package/dist/db/psql/migrations/20251009064531-batch_subject_book_assessments.js +180 -0
- package/dist/db/psql/migrations/20251009064601-subject_has_fee.d.ts +2 -0
- package/dist/db/psql/migrations/20251009064601-subject_has_fee.js +138 -0
- package/dist/db/psql/migrations/20251009064917-sub_categories.d.ts +2 -0
- package/dist/db/psql/migrations/20251009064917-sub_categories.js +148 -0
- package/dist/db/psql/migrations/20251009065111-states.d.ts +2 -0
- package/dist/db/psql/migrations/20251009065111-states.js +150 -0
- package/dist/db/psql/migrations/20251009065230-batch_subject_project_assessments.d.ts +2 -0
- package/dist/db/psql/migrations/20251009065230-batch_subject_project_assessments.js +190 -0
- package/dist/db/psql/migrations/20251009065230-slots.d.ts +2 -0
- package/dist/db/psql/migrations/20251009065230-slots.js +152 -0
- package/dist/db/psql/migrations/20251009070114-notifications.d.ts +2 -0
- package/dist/db/psql/migrations/20251009070114-notifications.js +184 -0
- package/dist/db/psql/migrations/20251009070125-book_assessment_dates.d.ts +2 -0
- package/dist/db/psql/migrations/20251009070125-book_assessment_dates.js +152 -0
- package/dist/db/psql/migrations/20251009070250-school_offers.d.ts +2 -0
- package/dist/db/psql/migrations/20251009070250-school_offers.js +260 -0
- package/dist/db/psql/migrations/20251009070502-school_fee_collection.d.ts +2 -0
- package/dist/db/psql/migrations/20251009070502-school_fee_collection.js +202 -0
- package/dist/db/psql/migrations/20251009070735-rules_and_regulation.d.ts +2 -0
- package/dist/db/psql/migrations/20251009070735-rules_and_regulation.js +156 -0
- package/dist/db/psql/migrations/20251009070904-roles.d.ts +2 -0
- package/dist/db/psql/migrations/20251009070904-roles.js +184 -0
- package/dist/db/psql/migrations/20251009071136-project_assessment_options.d.ts +2 -0
- package/dist/db/psql/migrations/20251009071136-project_assessment_options.js +162 -0
- package/dist/db/psql/migrations/20251009071433-products.d.ts +2 -0
- package/dist/db/psql/migrations/20251009071433-products.js +158 -0
- package/dist/db/psql/migrations/20251009071615-pincodes.d.ts +2 -0
- package/dist/db/psql/migrations/20251009071615-pincodes.js +210 -0
- package/dist/db/psql/migrations/20251009071744-pdc_history.d.ts +2 -0
- package/dist/db/psql/migrations/20251009071744-pdc_history.js +226 -0
- package/dist/db/psql/migrations/20251009071958-pdcCheques.d.ts +2 -0
- package/dist/db/psql/migrations/20251009071958-pdcCheques.js +216 -0
- package/dist/db/psql/migrations/20251009072138-payment_terms.d.ts +2 -0
- package/dist/db/psql/migrations/20251009072138-payment_terms.js +208 -0
- package/dist/db/psql/migrations/20251009072258-offers.d.ts +2 -0
- package/dist/db/psql/migrations/20251009072258-offers.js +240 -0
- package/dist/db/psql/migrations/20251009072415-categories.d.ts +2 -0
- package/dist/db/psql/migrations/20251009072415-categories.js +138 -0
- package/dist/db/psql/migrations/20251009072447-modules.d.ts +2 -0
- package/dist/db/psql/migrations/20251009072447-modules.js +168 -0
- package/dist/db/psql/migrations/20251009072840-module_features.d.ts +2 -0
- package/dist/db/psql/migrations/20251009072840-module_features.js +178 -0
- package/dist/db/psql/migrations/20251009073048-cities.d.ts +2 -0
- package/dist/db/psql/migrations/20251009073048-cities.js +148 -0
- package/dist/db/psql/migrations/20251009073128-master_leaves.d.ts +2 -0
- package/dist/db/psql/migrations/20251009073128-master_leaves.js +192 -0
- package/dist/db/psql/migrations/20251009073333-lectures.d.ts +2 -0
- package/dist/db/psql/migrations/20251009073333-lectures.js +150 -0
- package/dist/db/psql/migrations/20251009073526-lecture_history.d.ts +2 -0
- package/dist/db/psql/migrations/20251009073526-lecture_history.js +156 -0
- package/dist/db/psql/migrations/20251009073655-inventory.d.ts +2 -0
- package/dist/db/psql/migrations/20251009073655-inventory.js +208 -0
- package/dist/db/psql/migrations/20251009073859-inventory_history.d.ts +2 -0
- package/dist/db/psql/migrations/20251009073859-inventory_history.js +226 -0
- package/dist/db/psql/migrations/20251009074039-institute_subscription_plans.d.ts +2 -0
- package/dist/db/psql/migrations/20251009074039-institute_subscription_plans.js +280 -0
- package/dist/db/psql/migrations/20251009074217-institutes.d.ts +2 -0
- package/dist/db/psql/migrations/20251009074217-institutes.js +222 -0
- package/dist/db/psql/migrations/20251009074350-institute_entity_types.d.ts +2 -0
- package/dist/db/psql/migrations/20251009074350-institute_entity_types.js +156 -0
- package/dist/db/psql/migrations/20251009074528-institute_entities.d.ts +2 -0
- package/dist/db/psql/migrations/20251009074528-institute_entities.js +204 -0
- package/dist/db/psql/migrations/20251009074701-home_work.d.ts +2 -0
- package/dist/db/psql/migrations/20251009074701-home_work.js +186 -0
- package/dist/db/psql/migrations/20251009074820-greeting.d.ts +2 -0
- package/dist/db/psql/migrations/20251009074820-greeting.js +178 -0
- package/dist/db/psql/migrations/20251009074941-floor_management.d.ts +2 -0
- package/dist/db/psql/migrations/20251009074941-floor_management.js +164 -0
- package/dist/db/psql/migrations/20251009075102-file_storage.d.ts +2 -0
- package/dist/db/psql/migrations/20251009075102-file_storage.js +190 -0
- package/dist/db/psql/migrations/20251009075229-fee_type.d.ts +2 -0
- package/dist/db/psql/migrations/20251009075229-fee_type.js +186 -0
- package/dist/db/psql/migrations/20251009075350-fee_type_has_terms.d.ts +2 -0
- package/dist/db/psql/migrations/20251009075350-fee_type_has_terms.js +174 -0
- package/dist/db/psql/migrations/20251009075519-fees_collections.d.ts +2 -0
- package/dist/db/psql/migrations/20251009075519-fees_collections.js +256 -0
- package/dist/db/psql/migrations/20251009075642-fee_reminder_settings.d.ts +2 -0
- package/dist/db/psql/migrations/20251009075642-fee_reminder_settings.js +160 -0
- package/dist/db/psql/migrations/20251009075804-fee_reminders.d.ts +2 -0
- package/dist/db/psql/migrations/20251009075804-fee_reminders.js +204 -0
- package/dist/db/psql/migrations/20251009075924-fee_history.d.ts +2 -0
- package/dist/db/psql/migrations/20251009075924-fee_history.js +158 -0
- package/dist/db/psql/migrations/20251009082617-class_rooms.d.ts +2 -0
- package/dist/db/psql/migrations/20251009082617-class_rooms.js +188 -0
- package/dist/db/psql/migrations/20251009082910-cloud_storage.d.ts +2 -0
- package/dist/db/psql/migrations/20251009082910-cloud_storage.js +222 -0
- package/dist/db/psql/migrations/20251009083435-coin_purchase_offers.d.ts +2 -0
- package/dist/db/psql/migrations/20251009083435-coin_purchase_offers.js +228 -0
- package/dist/db/psql/migrations/20251009083812-fee_history_details.d.ts +2 -0
- package/dist/db/psql/migrations/20251009083812-fee_history_details.js +230 -0
- package/dist/db/psql/migrations/20251009083949-feature_actions.d.ts +2 -0
- package/dist/db/psql/migrations/20251009083949-feature_actions.js +188 -0
- package/dist/db/psql/migrations/20251009084101-contact_feed_back.d.ts +2 -0
- package/dist/db/psql/migrations/20251009084101-contact_feed_back.js +188 -0
- package/dist/db/psql/migrations/20251009084145-facilities.d.ts +2 -0
- package/dist/db/psql/migrations/20251009084145-facilities.js +148 -0
- package/dist/db/psql/migrations/20251009084446-countries.d.ts +2 -0
- package/dist/db/psql/migrations/20251009084446-countries.js +160 -0
- package/dist/db/psql/migrations/20251009084908-courseHasVisitors.d.ts +2 -0
- package/dist/db/psql/migrations/20251009084908-courseHasVisitors.js +142 -0
- package/dist/db/psql/migrations/20251009085333-courses.d.ts +2 -0
- package/dist/db/psql/migrations/20251009085333-courses.js +242 -0
- package/dist/db/psql/migrations/20251009085654-drivers.d.ts +2 -0
- package/dist/db/psql/migrations/20251009085654-drivers.js +262 -0
- package/dist/db/psql/migrations/20251009090107-entity_group.d.ts +2 -0
- package/dist/db/psql/migrations/20251009090107-entity_group.js +184 -0
- package/dist/db/psql/migrations/20251009093327-banners.d.ts +2 -0
- package/dist/db/psql/migrations/20251009093327-banners.js +214 -0
- package/dist/interfaces/canteenInterface.d.ts +11 -0
- package/dist/interfaces/canteenInterface.js +2 -0
- package/dist/interfaces/coinPurchaseOfferInterface.d.ts +1 -1
- package/dist/interfaces/examInterface.d.ts +1 -0
- package/dist/interfaces/feedBackInterface.d.ts +1 -0
- package/dist/interfaces/index.d.ts +1 -0
- package/dist/interfaces/index.js +1 -0
- package/dist/models/mongodb/canteenModel.d.ts +4 -0
- package/dist/models/mongodb/canteenModel.js +63 -0
- package/dist/models/mongodb/examModel.js +4 -0
- package/dist/models/mongodb/feedBackModel.js +3 -0
- package/dist/models/mongodb/index.d.ts +1 -0
- package/dist/models/mongodb/index.js +3 -1
- package/dist/models/psql/coinPurchaseOfferModel.d.ts +1 -1
- package/dist/models/psql/coinPurchaseOfferModel.js +1 -1
- package/dist/models/psql/userHasHomeWorkModel.d.ts +0 -1
- package/dist/models/psql/userHasHomeWorkModel.js +0 -8
- package/dist/types/canteenType.d.ts +2 -0
- package/dist/types/canteenType.js +2 -0
- package/dist/types/index.d.ts +1 -0
- package/dist/types/index.js +1 -0
- package/package.json +1 -1
- package/dist/db/psql/migrations/20241225101052-add-deleted-by-and-deleted-at-fields.d.ts +0 -2
- package/dist/db/psql/migrations/20241225101052-add-deleted-by-and-deleted-at-fields.js +0 -71
- package/dist/db/psql/migrations/20250106070945-add-user-fields-and-deleted-user-fields.d.ts +0 -3
- package/dist/db/psql/migrations/20250106070945-add-user-fields-and-deleted-user-fields.js +0 -33
- package/dist/db/psql/migrations/20250106080059-add-fields-and-deleted-fields.d.ts +0 -3
- package/dist/db/psql/migrations/20250106080059-add-fields-and-deleted-fields.js +0 -94
- package/dist/db/psql/migrations/20250108092439-update-batch-model-fields.d.ts +0 -2
- package/dist/db/psql/migrations/20250108092439-update-batch-model-fields.js +0 -38
- package/dist/db/psql/migrations/20250210102846-add-profileImage-coverImage-to-users.d.ts +0 -3
- package/dist/db/psql/migrations/20250210102846-add-profileImage-coverImage-to-users.js +0 -102
- package/dist/db/psql/migrations/20250211071743-add-action-user-has-histroy.d.ts +0 -3
- package/dist/db/psql/migrations/20250211071743-add-action-user-has-histroy.js +0 -76
- package/dist/db/psql/migrations/20250213140815-add-assignQuantity-user-has-histroy.d.ts +0 -3
- package/dist/db/psql/migrations/20250213140815-add-assignQuantity-user-has-histroy.js +0 -80
- package/dist/db/psql/migrations/20250214072626-add-middlename-user.d.ts +0 -3
- package/dist/db/psql/migrations/20250214072626-add-middlename-user.js +0 -80
- package/dist/db/psql/migrations/20250224085333-add-apptype-in-user.d.ts +0 -3
- package/dist/db/psql/migrations/20250224085333-add-apptype-in-user.js +0 -78
- package/dist/db/psql/migrations/20250226053006-add-brouchure-in-institute.d.ts +0 -3
- package/dist/db/psql/migrations/20250226053006-add-brouchure-in-institute.js +0 -80
- package/dist/db/psql/migrations/20250227123530-add-defult-in-fee-reminder.d.ts +0 -3
- package/dist/db/psql/migrations/20250227123530-add-defult-in-fee-reminder.js +0 -78
- package/dist/db/psql/migrations/20250304052831-add-institued-in-school-data-clm.d.ts +0 -3
- package/dist/db/psql/migrations/20250304052831-add-institued-in-school-data-clm.js +0 -112
- package/dist/db/psql/migrations/20250306053557-add-shifyId-in-batch.d.ts +0 -3
- package/dist/db/psql/migrations/20250306053557-add-shifyId-in-batch.js +0 -86
- package/dist/db/psql/migrations/20250311044606-add-institued-in-school-data-clm-subtype.d.ts +0 -2
- package/dist/db/psql/migrations/20250311044606-add-institued-in-school-data-clm-subtype.js +0 -43
- package/dist/db/psql/migrations/20250402090653-add-user-area.d.ts +0 -3
- package/dist/db/psql/migrations/20250402090653-add-user-area.js +0 -94
- package/dist/db/psql/migrations/20250407094125-update-type-in-typeManagement.d.ts +0 -2
- package/dist/db/psql/migrations/20250407094125-update-type-in-typeManagement.js +0 -64
- package/dist/db/psql/migrations/20250409105229-add-user-type-in-role.d.ts +0 -3
- package/dist/db/psql/migrations/20250409105229-add-user-type-in-role.js +0 -55
- package/dist/db/psql/migrations/20250417121316-make-institute-id-nullable-in-type-management.d.ts +0 -2
- package/dist/db/psql/migrations/20250417121316-make-institute-id-nullable-in-type-management.js +0 -16
- package/dist/db/psql/migrations/20250419071236-fee_histroy_add_school_clm.d.ts +0 -3
- package/dist/db/psql/migrations/20250419071236-fee_histroy_add_school_clm.js +0 -134
- package/dist/db/psql/migrations/20250419085334-fee_histroy_add_school_clm.d.ts +0 -3
- package/dist/db/psql/migrations/20250419085334-fee_histroy_add_school_clm.js +0 -86
- package/dist/db/psql/migrations/20250421085618-add-entityIds-field-in-announcements.d.ts +0 -3
- package/dist/db/psql/migrations/20250421085618-add-entityIds-field-in-announcements.js +0 -81
- package/dist/db/psql/migrations/20250422114032-add-account.d.ts +0 -3
- package/dist/db/psql/migrations/20250422114032-add-account.js +0 -86
- package/dist/db/psql/migrations/20250423051841-add-master-leave-clm.d.ts +0 -3
- package/dist/db/psql/migrations/20250423051841-add-master-leave-clm.js +0 -71
- package/dist/db/psql/migrations/20250423064522-update-calender-enum.d.ts +0 -2
- package/dist/db/psql/migrations/20250423064522-update-calender-enum.js +0 -34
- package/dist/db/psql/migrations/20250423093827-update-institued-district.d.ts +0 -3
- package/dist/db/psql/migrations/20250423093827-update-institued-district.js +0 -78
- package/dist/db/psql/migrations/20250424044755-update-fee-history-feeTyps-clm.d.ts +0 -3
- package/dist/db/psql/migrations/20250424044755-update-fee-history-feeTyps-clm.js +0 -34
- package/dist/db/psql/migrations/20250424053841-update-fee-history-key.d.ts +0 -2
- package/dist/db/psql/migrations/20250424053841-update-fee-history-key.js +0 -35
- package/dist/db/psql/migrations/20250426070309-update-banner-clm-userType.d.ts +0 -3
- package/dist/db/psql/migrations/20250426070309-update-banner-clm-userType.js +0 -55
- package/dist/db/psql/migrations/20250505035157-update-fee-collection-clm-add.d.ts +0 -3
- package/dist/db/psql/migrations/20250505035157-update-fee-collection-clm-add.js +0 -86
- package/dist/db/psql/migrations/20250505082924-update-banner-clm.d.ts +0 -3
- package/dist/db/psql/migrations/20250505082924-update-banner-clm.js +0 -18
- package/dist/db/psql/migrations/20250505094616-about-as-clm-in-institued.d.ts +0 -2
- package/dist/db/psql/migrations/20250505094616-about-as-clm-in-institued.js +0 -16
- package/dist/db/psql/migrations/20250506070110-add-dayOfWeek-clm-in-working-model.d.ts +0 -3
- package/dist/db/psql/migrations/20250506070110-add-dayOfWeek-clm-in-working-model.js +0 -80
- package/dist/db/psql/migrations/20250509055920-add-feecollection-isleft-clm.d.ts +0 -3
- package/dist/db/psql/migrations/20250509055920-add-feecollection-isleft-clm.js +0 -80
- package/dist/db/psql/migrations/20250513061037-add-techer-clm-batch.d.ts +0 -3
- package/dist/db/psql/migrations/20250513061037-add-techer-clm-batch.js +0 -88
- package/dist/db/psql/migrations/20250514101801-add-slotId-workingShif.d.ts +0 -3
- package/dist/db/psql/migrations/20250514101801-add-slotId-workingShif.js +0 -86
- package/dist/db/psql/migrations/20250516062917-add-globalId-clm-user-model.d.ts +0 -3
- package/dist/db/psql/migrations/20250516062917-add-globalId-clm-user-model.js +0 -80
- package/dist/db/psql/migrations/20250516063542-add-globalId-clm-institute-model.d.ts +0 -3
- package/dist/db/psql/migrations/20250516063542-add-globalId-clm-institute-model.js +0 -80
- package/dist/db/psql/migrations/20250520061231-add-institued_mobile_person_data.d.ts +0 -3
- package/dist/db/psql/migrations/20250520061231-add-institued_mobile_person_data.js +0 -116
- package/dist/db/psql/migrations/20250522044729-add-institued_update_add_2.d.ts +0 -2
- package/dist/db/psql/migrations/20250522044729-add-institued_update_add_2.js +0 -16
- package/dist/db/psql/migrations/20250526035543-add-totalQuantity_add_remainingQuantiy_clm_userHasInventoryHistory.d.ts +0 -3
- package/dist/db/psql/migrations/20250526035543-add-totalQuantity_add_remainingQuantiy_clm_userHasInventoryHistory.js +0 -98
- package/dist/db/psql/migrations/20250526093322-add-appType_clm_in_module.d.ts +0 -3
- package/dist/db/psql/migrations/20250526093322-add-appType_clm_in_module.js +0 -80
- package/dist/db/psql/migrations/20250526094030-add-appType_clm_in_action.d.ts +0 -3
- package/dist/db/psql/migrations/20250526094030-add-appType_clm_in_action.js +0 -80
- package/dist/db/psql/migrations/20250526094233-add-appType_clm_in_module_features.d.ts +0 -3
- package/dist/db/psql/migrations/20250526094233-add-appType_clm_in_module_features.js +0 -80
- package/dist/db/psql/migrations/20250527065001-add-app-type-in-role-model.d.ts +0 -3
- package/dist/db/psql/migrations/20250527065001-add-app-type-in-role-model.js +0 -57
- package/dist/db/psql/migrations/20250528045906-add-module-type-to-notifications.d.ts +0 -2
- package/dist/db/psql/migrations/20250528045906-add-module-type-to-notifications.js +0 -13
- package/dist/db/psql/migrations/20250602090331-add-or-update-user-model-medicalHistory.d.ts +0 -3
- package/dist/db/psql/migrations/20250602090331-add-or-update-user-model-medicalHistory.js +0 -107
- package/dist/db/psql/migrations/20250602100550-add-planner-sync-status-to-institute.d.ts +0 -3
- package/dist/db/psql/migrations/20250602100550-add-planner-sync-status-to-institute.js +0 -113
- package/dist/db/psql/migrations/20250603054900-add-clm-for-defult-data-add-or-not-in-ins-model.d.ts +0 -3
- package/dist/db/psql/migrations/20250603054900-add-clm-for-defult-data-add-or-not-in-ins-model.js +0 -80
- package/dist/db/psql/migrations/20250604103905-add-is-institute-default-field-in-role.d.ts +0 -3
- package/dist/db/psql/migrations/20250604103905-add-is-institute-default-field-in-role.js +0 -57
- package/dist/db/psql/migrations/20250604121051-update-mobile-number-opstion.d.ts +0 -3
- package/dist/db/psql/migrations/20250604121051-update-mobile-number-opstion.js +0 -15
- package/dist/db/psql/migrations/20250617064159-update-type-management-jun-17.d.ts +0 -2
- package/dist/db/psql/migrations/20250617064159-update-type-management-jun-17.js +0 -11
- package/dist/db/psql/migrations/20250627065013-is-institute-default-added-type-managemente.js +0 -12
- package/dist/db/psql/migrations/20250701095321-add-clm-institute-pdfId.d.ts +0 -3
- package/dist/db/psql/migrations/20250701095321-add-clm-institute-pdfId.js +0 -57
- package/dist/db/psql/migrations/20250704102117-add-clm-isDefult-in-typeManagemet.js +0 -12
- package/dist/db/psql/migrations/20250715103324-add-academic-calendar-id-to-batches.js +0 -13
- package/dist/db/psql/migrations/20250715121047-remove-batch-id-from-academic-calendars.d.ts +0 -2
- package/dist/db/psql/migrations/20250715121047-remove-batch-id-from-academic-calendars.js +0 -12
- package/dist/db/psql/migrations/20250716131731-rename-user-id-to-primary-user-id.d.ts +0 -2
- package/dist/db/psql/migrations/20250716131731-rename-user-id-to-primary-user-id.js +0 -9
- package/dist/db/psql/migrations/20250717092933-add-floor-id-to-class-rooms.d.ts +0 -3
- package/dist/db/psql/migrations/20250717092933-add-floor-id-to-class-rooms.js +0 -86
- package/dist/db/psql/migrations/20250718121251-add-clm-classroom-typeid.d.ts +0 -3
- package/dist/db/psql/migrations/20250718121251-add-clm-classroom-typeid.js +0 -86
- package/dist/db/psql/migrations/20250721065317-add-instituteId-fileSize-to-fileStorage.js +0 -22
- package/dist/db/psql/migrations/20250721100004-add-shift-slot-id-to-lectures.js +0 -17
- package/dist/db/psql/migrations/20250721105455-add-clm-classroom-add-classroomnumber.d.ts +0 -3
- package/dist/db/psql/migrations/20250721105455-add-clm-classroom-add-classroomnumber.js +0 -78
- package/dist/db/psql/migrations/20250722071836-add-title-to-floor-management.d.ts +0 -2
- package/dist/db/psql/migrations/20250722071836-add-title-to-floor-management.js +0 -14
- package/dist/db/psql/migrations/20250723150111-add-clm-batch-slotId.d.ts +0 -3
- package/dist/db/psql/migrations/20250723150111-add-clm-batch-slotId.js +0 -86
- package/dist/db/psql/migrations/20250724062458-update_classRoom_number_clm_to_string.d.ts +0 -2
- package/dist/db/psql/migrations/20250724062458-update_classRoom_number_clm_to_string.js +0 -15
- package/dist/db/psql/migrations/20250725132424-add-unique-index-on-instituteId-name-type.d.ts +0 -2
- package/dist/db/psql/migrations/20250725132424-add-unique-index-on-instituteId-name-type.js +0 -24
- package/dist/db/psql/migrations/20250730104844-update-unique-key-assessment-type.d.ts +0 -2
- package/dist/db/psql/migrations/20250730104844-update-unique-key-assessment-type.js +0 -30
- package/dist/db/psql/migrations/20250804090437-update_ins_in_pdf_id_string_to_uuid.d.ts +0 -3
- package/dist/db/psql/migrations/20250804090437-update_ins_in_pdf_id_string_to_uuid.js +0 -62
- package/dist/db/psql/migrations/20250805062440-remove_unique_key_into_batch_subject_project_assessments.d.ts +0 -2
- package/dist/db/psql/migrations/20250805062440-remove_unique_key_into_batch_subject_project_assessments.js +0 -21
- package/dist/db/psql/migrations/20250805115805-add-descriptions-to-lectures.js +0 -12
- package/dist/db/psql/migrations/20250808100700-add_clm_contectFeed_in_ins_givenId.d.ts +0 -3
- package/dist/db/psql/migrations/20250808100700-add_clm_contectFeed_in_ins_givenId.js +0 -86
- package/dist/db/psql/migrations/20250808101515-add-sequence-to-institute_entities.js +0 -12
- package/dist/db/psql/migrations/20250812080521-add-title-and-descriptions-to-batch-subject-project-assessments.js +0 -17
- package/dist/db/psql/migrations/20250820092836-add-sequence-number-to-institute-entities.js +0 -15
- package/dist/db/psql/migrations/20250829103203-remove-syllabus-composit-index.d.ts +0 -2
- package/dist/db/psql/migrations/20250829103203-remove-syllabus-composit-index.js +0 -15
- package/dist/db/psql/migrations/20250905132024-add-uuid-to-users.js +0 -12
- package/dist/db/psql/migrations/20250908054025-userHasOffer_model_update.d.ts +0 -3
- package/dist/db/psql/migrations/20250908054025-userHasOffer_model_update.js +0 -112
- package/dist/db/psql/migrations/20250908054754-offer_in_add_offertype_clm.d.ts +0 -3
- package/dist/db/psql/migrations/20250908054754-offer_in_add_offertype_clm.js +0 -70
- package/dist/db/psql/migrations/20250909061117-add-instituteId-isDefault-to-entityGroup.js +0 -17
- package/dist/db/psql/migrations/20250911060106-change-wallet-history-columns-to-float.d.ts +0 -2
- package/dist/db/psql/migrations/20250911060106-change-wallet-history-columns-to-float.js +0 -39
- package/dist/db/psql/migrations/20250911060245-change-coin-to-float-in-wallets.d.ts +0 -2
- package/dist/db/psql/migrations/20250911060245-change-coin-to-float-in-wallets.js +0 -17
- package/dist/db/psql/migrations/20250917135646-change-storageInBytes-to-float.d.ts +0 -2
- package/dist/db/psql/migrations/20250917135646-change-storageInBytes-to-float.js +0 -17
- /package/dist/db/psql/migrations/{20250627065013-is-institute-default-added-type-managemente.d.ts → 20251009042557-create-or-update-academic-calendars.d.ts} +0 -0
- /package/dist/db/psql/migrations/{20250704102117-add-clm-isDefult-in-typeManagemet.d.ts → 20251009043250-working_days.d.ts} +0 -0
- /package/dist/db/psql/migrations/{20250715103324-add-academic-calendar-id-to-batches.d.ts → 20251009044907-wallets.d.ts} +0 -0
- /package/dist/db/psql/migrations/{20250721065317-add-instituteId-fileSize-to-fileStorage.d.ts → 20251009045350-wallet_history.d.ts} +0 -0
- /package/dist/db/psql/migrations/{20250721100004-add-shift-slot-id-to-lectures.d.ts → 20251009045749-vendor_management.d.ts} +0 -0
- /package/dist/db/psql/migrations/{20250805115805-add-descriptions-to-lectures.d.ts → 20251009050216-vehicles.d.ts} +0 -0
- /package/dist/db/psql/migrations/{20250808101515-add-sequence-to-institute_entities.d.ts → 20251009050518-UserRequiredSteps.d.ts} +0 -0
- /package/dist/db/psql/migrations/{20250812080521-add-title-and-descriptions-to-batch-subject-project-assessments.d.ts → 20251009051027-user_project_assessment_options.d.ts} +0 -0
- /package/dist/db/psql/migrations/{20250820092836-add-sequence-number-to-institute-entities.d.ts → 20251009052015-user_payouts.d.ts} +0 -0
- /package/dist/db/psql/migrations/{20250905132024-add-uuid-to-users.d.ts → 20251009052646-user_payout_history.d.ts} +0 -0
- /package/dist/db/psql/migrations/{20250909061117-add-instituteId-isDefault-to-entityGroup.d.ts → 20251009052911-user_payout_details.d.ts} +0 -0
|
@@ -0,0 +1,214 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
const up = async (queryInterface, Sequelize) => {
|
|
3
|
+
const tableName = 'banners';
|
|
4
|
+
const tableExists = await queryInterface
|
|
5
|
+
.describeTable(tableName)
|
|
6
|
+
.then(() => true)
|
|
7
|
+
.catch(() => false);
|
|
8
|
+
if (!tableExists) {
|
|
9
|
+
await queryInterface.createTable(tableName, {
|
|
10
|
+
id: {
|
|
11
|
+
type: Sequelize.UUID,
|
|
12
|
+
defaultValue: Sequelize.UUIDV4,
|
|
13
|
+
allowNull: false,
|
|
14
|
+
primaryKey: true,
|
|
15
|
+
},
|
|
16
|
+
title: {
|
|
17
|
+
type: Sequelize.STRING(500),
|
|
18
|
+
allowNull: true,
|
|
19
|
+
},
|
|
20
|
+
subTitle: {
|
|
21
|
+
type: Sequelize.STRING(500),
|
|
22
|
+
allowNull: true,
|
|
23
|
+
field: 'sub_title'
|
|
24
|
+
},
|
|
25
|
+
description: {
|
|
26
|
+
type: Sequelize.STRING(1000),
|
|
27
|
+
allowNull: true,
|
|
28
|
+
},
|
|
29
|
+
fileUrl: {
|
|
30
|
+
type: Sequelize.STRING,
|
|
31
|
+
allowNull: true,
|
|
32
|
+
field: 'file_url'
|
|
33
|
+
},
|
|
34
|
+
type: {
|
|
35
|
+
type: Sequelize.ENUM('INSTITUTE_APP', 'SCHOOL_APP', 'GLOBAL_APP', 'STUDENT_APP'),
|
|
36
|
+
allowNull: false,
|
|
37
|
+
defaultValue: 'INSTITUTE_APP',
|
|
38
|
+
},
|
|
39
|
+
userType: {
|
|
40
|
+
type: Sequelize.ENUM('MASTER_ADMIN', 'ADMIN', 'INSTITUTE_MASTER_ADMIN', 'INSTITUTE_ADMIN', 'TEACHER', 'STUDENT', 'PARENTS', 'DRIVER'),
|
|
41
|
+
field: 'user_type',
|
|
42
|
+
allowNull: true,
|
|
43
|
+
defaultValue: null,
|
|
44
|
+
},
|
|
45
|
+
bannerType: {
|
|
46
|
+
type: Sequelize.ENUM('BANNER_IMAGE', 'BANNER_VIDEO'),
|
|
47
|
+
allowNull: false,
|
|
48
|
+
defaultValue: 'BANNER_IMAGE',
|
|
49
|
+
field: 'banner_type'
|
|
50
|
+
},
|
|
51
|
+
fileStorageId: {
|
|
52
|
+
type: Sequelize.UUID,
|
|
53
|
+
allowNull: false,
|
|
54
|
+
field: 'file_storage_id'
|
|
55
|
+
},
|
|
56
|
+
status: {
|
|
57
|
+
type: Sequelize.ENUM('ACTIVE', 'INACTIVE'),
|
|
58
|
+
allowNull: false,
|
|
59
|
+
defaultValue: 'INACTIVE',
|
|
60
|
+
},
|
|
61
|
+
instituteId: {
|
|
62
|
+
type: Sequelize.UUID,
|
|
63
|
+
allowNull: true,
|
|
64
|
+
field: 'institute_id'
|
|
65
|
+
},
|
|
66
|
+
createdBy: {
|
|
67
|
+
type: Sequelize.UUID,
|
|
68
|
+
allowNull: true,
|
|
69
|
+
field: 'created_by',
|
|
70
|
+
},
|
|
71
|
+
updatedBy: {
|
|
72
|
+
type: Sequelize.UUID,
|
|
73
|
+
allowNull: true,
|
|
74
|
+
field: 'updated_by',
|
|
75
|
+
},
|
|
76
|
+
deletedBy: {
|
|
77
|
+
type: Sequelize.UUID,
|
|
78
|
+
allowNull: true,
|
|
79
|
+
field: 'deleted_by',
|
|
80
|
+
},
|
|
81
|
+
createdAt: {
|
|
82
|
+
type: Sequelize.DATE,
|
|
83
|
+
allowNull: false,
|
|
84
|
+
defaultValue: Sequelize.NOW,
|
|
85
|
+
field: 'created_at'
|
|
86
|
+
},
|
|
87
|
+
updatedAt: {
|
|
88
|
+
type: Sequelize.DATE,
|
|
89
|
+
allowNull: false,
|
|
90
|
+
defaultValue: Sequelize.NOW,
|
|
91
|
+
field: 'updated_at'
|
|
92
|
+
},
|
|
93
|
+
deletedAt: {
|
|
94
|
+
type: Sequelize.DATE,
|
|
95
|
+
allowNull: true,
|
|
96
|
+
field: 'deleted_at'
|
|
97
|
+
},
|
|
98
|
+
});
|
|
99
|
+
}
|
|
100
|
+
else {
|
|
101
|
+
const tableDefinition = await queryInterface.describeTable(tableName);
|
|
102
|
+
const columnsToAdd = {
|
|
103
|
+
id: {
|
|
104
|
+
type: Sequelize.UUID,
|
|
105
|
+
defaultValue: Sequelize.UUIDV4,
|
|
106
|
+
allowNull: false,
|
|
107
|
+
primaryKey: true,
|
|
108
|
+
},
|
|
109
|
+
title: {
|
|
110
|
+
type: Sequelize.STRING(500),
|
|
111
|
+
allowNull: true,
|
|
112
|
+
},
|
|
113
|
+
subTitle: {
|
|
114
|
+
type: Sequelize.STRING(500),
|
|
115
|
+
allowNull: true,
|
|
116
|
+
field: 'sub_title'
|
|
117
|
+
},
|
|
118
|
+
description: {
|
|
119
|
+
type: Sequelize.STRING(1000),
|
|
120
|
+
allowNull: true,
|
|
121
|
+
},
|
|
122
|
+
fileUrl: {
|
|
123
|
+
type: Sequelize.STRING,
|
|
124
|
+
allowNull: true,
|
|
125
|
+
field: 'file_url'
|
|
126
|
+
},
|
|
127
|
+
type: {
|
|
128
|
+
type: Sequelize.ENUM('INSTITUTE_APP', 'SCHOOL_APP', 'GLOBAL_APP', 'STUDENT_APP'),
|
|
129
|
+
allowNull: false,
|
|
130
|
+
defaultValue: 'INSTITUTE_APP',
|
|
131
|
+
},
|
|
132
|
+
userType: {
|
|
133
|
+
type: Sequelize.ENUM('MASTER_ADMIN', 'ADMIN', 'INSTITUTE_MASTER_ADMIN', 'INSTITUTE_ADMIN', 'TEACHER', 'STUDENT', 'PARENTS', 'DRIVER'),
|
|
134
|
+
field: 'user_type',
|
|
135
|
+
allowNull: true,
|
|
136
|
+
defaultValue: null,
|
|
137
|
+
},
|
|
138
|
+
bannerType: {
|
|
139
|
+
type: Sequelize.ENUM('BANNER_IMAGE', 'BANNER_VIDEO'),
|
|
140
|
+
allowNull: false,
|
|
141
|
+
defaultValue: 'BANNER_IMAGE',
|
|
142
|
+
field: 'banner_type'
|
|
143
|
+
},
|
|
144
|
+
fileStorageId: {
|
|
145
|
+
type: Sequelize.UUID,
|
|
146
|
+
allowNull: false,
|
|
147
|
+
field: 'file_storage_id'
|
|
148
|
+
},
|
|
149
|
+
status: {
|
|
150
|
+
type: Sequelize.ENUM('ACTIVE', 'INACTIVE'),
|
|
151
|
+
allowNull: false,
|
|
152
|
+
defaultValue: 'INACTIVE',
|
|
153
|
+
},
|
|
154
|
+
instituteId: {
|
|
155
|
+
type: Sequelize.UUID,
|
|
156
|
+
allowNull: true,
|
|
157
|
+
field: 'institute_id'
|
|
158
|
+
},
|
|
159
|
+
createdBy: {
|
|
160
|
+
type: Sequelize.UUID,
|
|
161
|
+
allowNull: true,
|
|
162
|
+
field: 'created_by',
|
|
163
|
+
},
|
|
164
|
+
updatedBy: {
|
|
165
|
+
type: Sequelize.UUID,
|
|
166
|
+
allowNull: true,
|
|
167
|
+
field: 'updated_by',
|
|
168
|
+
},
|
|
169
|
+
deletedBy: {
|
|
170
|
+
type: Sequelize.UUID,
|
|
171
|
+
allowNull: true,
|
|
172
|
+
field: 'deleted_by',
|
|
173
|
+
},
|
|
174
|
+
createdAt: {
|
|
175
|
+
type: Sequelize.DATE,
|
|
176
|
+
allowNull: false,
|
|
177
|
+
defaultValue: Sequelize.NOW,
|
|
178
|
+
field: 'created_at'
|
|
179
|
+
},
|
|
180
|
+
updatedAt: {
|
|
181
|
+
type: Sequelize.DATE,
|
|
182
|
+
allowNull: false,
|
|
183
|
+
defaultValue: Sequelize.NOW,
|
|
184
|
+
field: 'updated_at'
|
|
185
|
+
},
|
|
186
|
+
deletedAt: {
|
|
187
|
+
type: Sequelize.DATE,
|
|
188
|
+
allowNull: true,
|
|
189
|
+
field: 'deleted_at'
|
|
190
|
+
},
|
|
191
|
+
};
|
|
192
|
+
for (const column of Object.keys(columnsToAdd)) {
|
|
193
|
+
const columnToAdd = columnsToAdd[column];
|
|
194
|
+
const tableColumn = columnToAdd.field || column;
|
|
195
|
+
if (!tableDefinition[tableColumn]) {
|
|
196
|
+
await queryInterface.addColumn(tableName, tableColumn, columnToAdd);
|
|
197
|
+
}
|
|
198
|
+
}
|
|
199
|
+
}
|
|
200
|
+
};
|
|
201
|
+
const down = async (queryInterface) => {
|
|
202
|
+
const tableName = 'banners';
|
|
203
|
+
const tableExists = await queryInterface
|
|
204
|
+
.describeTable(tableName)
|
|
205
|
+
.then(() => true)
|
|
206
|
+
.catch(() => false);
|
|
207
|
+
if (tableExists) {
|
|
208
|
+
await queryInterface.dropTable(tableName);
|
|
209
|
+
}
|
|
210
|
+
};
|
|
211
|
+
module.exports = {
|
|
212
|
+
up,
|
|
213
|
+
down,
|
|
214
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Document } from 'mongoose';
|
|
2
|
+
import { IDefaultAttributes } from './commonInterface';
|
|
3
|
+
import { COMMAN_STATUS } from '../constants/app';
|
|
4
|
+
export interface ICanteenModelAttributes extends IDefaultAttributes, Document {
|
|
5
|
+
id: string;
|
|
6
|
+
date: Date;
|
|
7
|
+
menu: string[];
|
|
8
|
+
instituteId: string;
|
|
9
|
+
academicYearId: string;
|
|
10
|
+
status: COMMAN_STATUS;
|
|
11
|
+
}
|
|
@@ -33,6 +33,7 @@ export interface IExamModelAttributes extends IDefaultAttributes, Document {
|
|
|
33
33
|
standard?: string;
|
|
34
34
|
groupId?: mongoose.Types.ObjectId;
|
|
35
35
|
isPublished: boolean;
|
|
36
|
+
publishDate: Date;
|
|
36
37
|
isMarksAdded?: boolean;
|
|
37
38
|
plannerSyncStatus?: PLANNER_SYNC_STATUS;
|
|
38
39
|
publishedDate?: Date;
|
package/dist/interfaces/index.js
CHANGED
|
@@ -151,3 +151,4 @@ __exportStar(require("./walletInterface"), exports);
|
|
|
151
151
|
__exportStar(require("./walletTransactionInterface"), exports);
|
|
152
152
|
__exportStar(require("./workingDayInterface"), exports);
|
|
153
153
|
__exportStar(require("./workingShiftInterface"), exports);
|
|
154
|
+
__exportStar(require("./canteenInterface"), exports);
|
|
@@ -0,0 +1,63 @@
|
|
|
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 __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
35
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
+
const mongoose_1 = __importStar(require("mongoose"));
|
|
37
|
+
const app_1 = require("../../constants/app");
|
|
38
|
+
const canteenSchema = new mongoose_1.Schema({
|
|
39
|
+
date: {
|
|
40
|
+
type: Date,
|
|
41
|
+
required: true,
|
|
42
|
+
trim: true,
|
|
43
|
+
},
|
|
44
|
+
menu: {
|
|
45
|
+
type: [String],
|
|
46
|
+
trim: true,
|
|
47
|
+
},
|
|
48
|
+
instituteId: {
|
|
49
|
+
type: String,
|
|
50
|
+
},
|
|
51
|
+
academicYearId: {
|
|
52
|
+
type: String,
|
|
53
|
+
},
|
|
54
|
+
status: {
|
|
55
|
+
type: String,
|
|
56
|
+
enum: Object.values(app_1.COMMAN_STATUS),
|
|
57
|
+
}
|
|
58
|
+
}, {
|
|
59
|
+
timestamps: true,
|
|
60
|
+
versionKey: false,
|
|
61
|
+
});
|
|
62
|
+
const CanteenModel = mongoose_1.default.model('canteen', canteenSchema);
|
|
63
|
+
exports.default = CanteenModel;
|
|
@@ -33,3 +33,4 @@ export { default as UserInstituteMetaModel } from './userInstituteMetaModel';
|
|
|
33
33
|
export { default as UserSchoolMetaModel } from './userSchoolMetaModel';
|
|
34
34
|
export { default as VideoAnalystModel } from './videoAnalystModel';
|
|
35
35
|
export { default as WalletTransactionModel } from './walletTransactionModel';
|
|
36
|
+
export { default as CanteenModel } from './canteenModel';
|
|
@@ -3,7 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.WalletTransactionModel = exports.VideoAnalystModel = exports.UserSchoolMetaModel = exports.UserInstituteMetaModel = exports.UserDetailsModel = exports.UniqueNumberCounterModel = exports.TaskManagementModel = exports.SubscriptionPlanModel = exports.SubjectIndexModel = exports.SchoolFeeModel = exports.ReplaceTeacherModel = exports.PlannerModel = exports.PhotosGalleryModel = exports.JobApplyModel = exports.InvoiceModel = exports.InquiryModel = exports.InformationSupportModel = exports.HolidayModel = exports.GenerateIdCardModel = exports.FeedBackModel = exports.FeeReminderTypeModel = exports.ExamModel = exports.ExamHasAnswerSheetModel = exports.ExamGroupModel = exports.EventModel = exports.DashboardManagementModel = exports.DailyBookModel = exports.ColumnModel = exports.CertificatesManagementModel = exports.CertificatesHistoryModel = exports.CareerModel = exports.BlogModel = exports.AttendanceModel = exports.ApprovalRequestModel = exports.connectMongoDb = void 0;
|
|
6
|
+
exports.CanteenModel = exports.WalletTransactionModel = exports.VideoAnalystModel = exports.UserSchoolMetaModel = exports.UserInstituteMetaModel = exports.UserDetailsModel = exports.UniqueNumberCounterModel = exports.TaskManagementModel = exports.SubscriptionPlanModel = exports.SubjectIndexModel = exports.SchoolFeeModel = exports.ReplaceTeacherModel = exports.PlannerModel = exports.PhotosGalleryModel = exports.JobApplyModel = exports.InvoiceModel = exports.InquiryModel = exports.InformationSupportModel = exports.HolidayModel = exports.GenerateIdCardModel = exports.FeedBackModel = exports.FeeReminderTypeModel = exports.ExamModel = exports.ExamHasAnswerSheetModel = exports.ExamGroupModel = exports.EventModel = exports.DashboardManagementModel = exports.DailyBookModel = exports.ColumnModel = exports.CertificatesManagementModel = exports.CertificatesHistoryModel = exports.CareerModel = exports.BlogModel = exports.AttendanceModel = exports.ApprovalRequestModel = exports.connectMongoDb = void 0;
|
|
7
7
|
const mongoose_1 = __importDefault(require("mongoose"));
|
|
8
8
|
const env_1 = require("../../configs/env");
|
|
9
9
|
const transformIdInQueryPlugin_1 = __importDefault(require("./plugin/transformIdInQueryPlugin"));
|
|
@@ -91,3 +91,5 @@ var videoAnalystModel_1 = require("./videoAnalystModel");
|
|
|
91
91
|
Object.defineProperty(exports, "VideoAnalystModel", { enumerable: true, get: function () { return __importDefault(videoAnalystModel_1).default; } });
|
|
92
92
|
var walletTransactionModel_1 = require("./walletTransactionModel");
|
|
93
93
|
Object.defineProperty(exports, "WalletTransactionModel", { enumerable: true, get: function () { return __importDefault(walletTransactionModel_1).default; } });
|
|
94
|
+
var canteenModel_1 = require("./canteenModel");
|
|
95
|
+
Object.defineProperty(exports, "CanteenModel", { enumerable: true, get: function () { return __importDefault(canteenModel_1).default; } });
|
|
@@ -14,14 +14,6 @@ class UserHasHomeWorkModel extends sequelize_1.Model {
|
|
|
14
14
|
foreignKey: { name: 'instituteId', field: 'institute_id' },
|
|
15
15
|
as: 'instituteHasHomeWork',
|
|
16
16
|
});
|
|
17
|
-
UserHasHomeWorkModel.belongsTo(BatchModel, {
|
|
18
|
-
foreignKey: { name: 'batchId', field: 'batch_id' },
|
|
19
|
-
as: 'homeWorkHasBatch',
|
|
20
|
-
});
|
|
21
|
-
BatchModel.hasMany(UserHasHomeWorkModel, {
|
|
22
|
-
foreignKey: { name: 'batchId', field: 'batch_id' },
|
|
23
|
-
as: 'batchHasHomeWork',
|
|
24
|
-
});
|
|
25
17
|
UserHasHomeWorkModel.belongsTo(UserModel, {
|
|
26
18
|
foreignKey: { name: 'userId', field: 'user_id' },
|
|
27
19
|
as: 'userHomeWork',
|
package/dist/types/index.d.ts
CHANGED
package/dist/types/index.js
CHANGED
|
@@ -143,3 +143,4 @@ __exportStar(require("./walletTransactionType"), exports);
|
|
|
143
143
|
__exportStar(require("./walletType"), exports);
|
|
144
144
|
__exportStar(require("./workingDayType"), exports);
|
|
145
145
|
__exportStar(require("./workingShiftType"), exports);
|
|
146
|
+
__exportStar(require("./canteenType"), exports);
|
package/package.json
CHANGED
|
@@ -1,71 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
// eslint-disable-next-line @typescript-eslint/no-require-imports
|
|
3
|
-
const { DataTypes } = require('sequelize');
|
|
4
|
-
/** @type {import('sequelize-cli').Migration} */
|
|
5
|
-
module.exports = {
|
|
6
|
-
async up(queryInterface) {
|
|
7
|
-
const tables = await queryInterface.showAllTables();
|
|
8
|
-
for (const table of tables) {
|
|
9
|
-
const columns = await queryInterface.describeTable(table);
|
|
10
|
-
// Add `deleted_by` if it exists
|
|
11
|
-
if (!columns.deleted_by) {
|
|
12
|
-
await queryInterface.addColumn(table, 'deleted_by', {
|
|
13
|
-
type: DataTypes.UUID,
|
|
14
|
-
allowNull: true,
|
|
15
|
-
references: {
|
|
16
|
-
model: 'users', // 'users' is the table for your User model
|
|
17
|
-
key: 'id',
|
|
18
|
-
},
|
|
19
|
-
});
|
|
20
|
-
}
|
|
21
|
-
if (!columns.created_by) {
|
|
22
|
-
await queryInterface.addColumn(table, 'created_by', {
|
|
23
|
-
type: DataTypes.UUID,
|
|
24
|
-
allowNull: true,
|
|
25
|
-
references: {
|
|
26
|
-
model: 'users', // 'users' is the table for your User model
|
|
27
|
-
key: 'id',
|
|
28
|
-
},
|
|
29
|
-
});
|
|
30
|
-
}
|
|
31
|
-
if (!columns.updated_by) {
|
|
32
|
-
await queryInterface.addColumn(table, 'updated_by', {
|
|
33
|
-
type: DataTypes.UUID,
|
|
34
|
-
allowNull: true,
|
|
35
|
-
references: {
|
|
36
|
-
model: 'users', // 'users' is the table for your User model
|
|
37
|
-
key: 'id',
|
|
38
|
-
},
|
|
39
|
-
});
|
|
40
|
-
}
|
|
41
|
-
// Add `deleted_at` if it exists
|
|
42
|
-
if (!columns.deleted_at) {
|
|
43
|
-
await queryInterface.addColumn(table, 'deleted_at', {
|
|
44
|
-
type: DataTypes.DATE,
|
|
45
|
-
allowNull: true,
|
|
46
|
-
});
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
},
|
|
50
|
-
async down(queryInterface) {
|
|
51
|
-
const tables = await queryInterface.showAllTables();
|
|
52
|
-
for (const table of tables) {
|
|
53
|
-
const columns = await queryInterface.describeTable(table);
|
|
54
|
-
// Remove `deleted_at` if it exists
|
|
55
|
-
if (columns.deleted_at) {
|
|
56
|
-
await queryInterface.removeColumn(table, 'deleted_at');
|
|
57
|
-
}
|
|
58
|
-
// Remove `deleted_by` if it exists
|
|
59
|
-
if (columns.deleted_by) {
|
|
60
|
-
await queryInterface.removeColumn(table, 'deleted_by');
|
|
61
|
-
}
|
|
62
|
-
if (columns.created_by) {
|
|
63
|
-
await queryInterface.removeColumn(table, 'created_by');
|
|
64
|
-
}
|
|
65
|
-
// Remove `deleted_by` if it exists
|
|
66
|
-
if (columns.updated_by) {
|
|
67
|
-
await queryInterface.removeColumn(table, 'updated_by');
|
|
68
|
-
}
|
|
69
|
-
}
|
|
70
|
-
},
|
|
71
|
-
};
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
/** @type {import('sequelize-cli').Migration} */
|
|
3
|
-
const up = async (queryInterface, Sequelize) => {
|
|
4
|
-
const columns = [
|
|
5
|
-
{ name: 'school_name', type: Sequelize.STRING },
|
|
6
|
-
{ name: 'board', type: Sequelize.STRING },
|
|
7
|
-
{ name: 'medium', type: Sequelize.STRING },
|
|
8
|
-
{ name: 'standard', type: Sequelize.STRING },
|
|
9
|
-
{ name: 'stream', type: Sequelize.STRING },
|
|
10
|
-
{ name: 'school_address', type: Sequelize.STRING },
|
|
11
|
-
{ name: 'medical_history', type: Sequelize.STRING },
|
|
12
|
-
{ name: 'relation', type: Sequelize.STRING },
|
|
13
|
-
];
|
|
14
|
-
const tableDescription = await queryInterface.describeTable('users');
|
|
15
|
-
for (const column of columns) {
|
|
16
|
-
if (!tableDescription[column.name]) {
|
|
17
|
-
await queryInterface.addColumn('users', column.name, {
|
|
18
|
-
type: column.type,
|
|
19
|
-
allowNull: true,
|
|
20
|
-
});
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
};
|
|
24
|
-
const down = async (queryInterface) => {
|
|
25
|
-
const columns = ['school_name', 'board', 'medium', 'standard', 'stream', 'school_address', 'medical_history', 'relation'];
|
|
26
|
-
const tableDescription = await queryInterface.describeTable('users');
|
|
27
|
-
for (const column of columns) {
|
|
28
|
-
if (tableDescription[column]) {
|
|
29
|
-
await queryInterface.removeColumn('users', column);
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
};
|
|
33
|
-
module.exports = { up, down };
|