@kipicore/dbcore 1.1.700 → 1.1.702
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/configs/env.d.ts +0 -2
- package/dist/configs/env.js +0 -4
- package/dist/configs/index.d.ts +0 -2
- package/dist/configs/index.js +0 -2
- package/dist/constants/app.d.ts +54 -34
- package/dist/constants/app.js +64 -42
- package/dist/constants/defaultModelAttributes.js +1 -2
- package/dist/constants/errorMessages.d.ts +1 -20
- package/dist/constants/errorMessages.js +1 -22
- package/dist/constants/successMessages.d.ts +0 -14
- package/dist/constants/successMessages.js +1 -17
- package/dist/db/psql/migrations/20260714095754-create-arena-models.js +642 -0
- package/dist/db/psql/migrations/20260720092201-replace-facility-sports-with-sport-group-data.d.ts +2 -0
- package/dist/db/psql/migrations/20260720092201-replace-facility-sports-with-sport-group-data.js +138 -0
- package/dist/db/psql/migrations/20260722143500-create-school_has_sports.js +71 -0
- package/dist/db/psql/migrations/20260728170500-add_sports_academy_id_to_testimonials.js +21 -0
- package/dist/db/psql/migrations/20260729150700-add_sports_academy_id_to_notifications.js +21 -0
- package/dist/db/psql/migrations/20260804100500-update_facility_master.js +27 -0
- package/dist/helpers/index.d.ts +0 -3
- package/dist/helpers/index.js +0 -3
- package/dist/helpers/utils.d.ts +3 -5
- package/dist/helpers/utils.js +31 -58
- package/dist/index.d.ts +0 -4
- package/dist/index.js +0 -4
- package/dist/interfaces/ageGroupInterface.d.ts +12 -0
- package/dist/interfaces/assessmentTestInterface.d.ts +24 -0
- package/dist/interfaces/categoriesInterface.d.ts +1 -2
- package/dist/interfaces/equipmentInterface.d.ts +10 -0
- package/dist/interfaces/equipmentInterface.js +2 -0
- package/dist/interfaces/facilityMasterInterface.d.ts +9 -0
- package/dist/interfaces/facilityMasterInterface.js +2 -0
- package/dist/interfaces/index.d.ts +18 -1
- package/dist/interfaces/index.js +19 -1
- package/dist/interfaces/instituteInterface.d.ts +0 -1
- package/dist/interfaces/instituteOwnershipHistoryInterface.d.ts +1 -2
- package/dist/interfaces/institutePartnersInterface.d.ts +1 -2
- package/dist/interfaces/kipiverseContactFormInterface.d.ts +3 -4
- package/dist/interfaces/photosGalleryInterface.d.ts +3 -1
- package/dist/interfaces/schoolHasSportInterface.d.ts +7 -0
- package/dist/interfaces/schoolHasSportInterface.js +2 -0
- package/dist/interfaces/sendNotificationInerface.d.ts +2 -0
- package/dist/interfaces/skillInterface.d.ts +19 -0
- package/dist/interfaces/skillInterface.js +2 -0
- package/dist/interfaces/sportCategoryInterface.d.ts +9 -0
- package/dist/interfaces/sportCategoryInterface.js +2 -0
- package/dist/interfaces/sportDataApproveInterface.d.ts +19 -0
- package/dist/interfaces/sportDataApproveInterface.js +2 -0
- package/dist/interfaces/sportGroupDataInterface.d.ts +7 -0
- package/dist/interfaces/sportGroupDataInterface.js +2 -0
- package/dist/interfaces/sportInfoInterface.d.ts +24 -0
- package/dist/interfaces/sportInfoInterface.js +2 -0
- package/dist/interfaces/sportInterface.d.ts +10 -0
- package/dist/interfaces/sportInterface.js +2 -0
- package/dist/interfaces/sportRoleInterface.d.ts +11 -0
- package/dist/interfaces/sportRoleInterface.js +2 -0
- package/dist/interfaces/sportSubCategoryInterface.d.ts +10 -0
- package/dist/interfaces/sportSubCategoryInterface.js +2 -0
- package/dist/interfaces/sportsAcademyInterface.d.ts +39 -0
- package/dist/interfaces/sportsAcademyInterface.js +2 -0
- package/dist/interfaces/studentSportTestInterface.d.ts +20 -0
- package/dist/interfaces/studentSportTestInterface.js +2 -0
- package/dist/interfaces/subCategoriesInterface.d.ts +1 -2
- package/dist/interfaces/subscriptionPlanInterface.d.ts +1 -2
- package/dist/interfaces/testimonialInterface.d.ts +1 -0
- package/dist/interfaces/unitInterface.d.ts +10 -0
- package/dist/interfaces/unitInterface.js +2 -0
- package/dist/interfaces/userAcademyMetaInterface.d.ts +17 -0
- package/dist/interfaces/userAcademyMetaInterface.js +2 -0
- package/dist/interfaces/userAmenityInterface.d.ts +24 -0
- package/dist/interfaces/userAmenityInterface.js +2 -0
- package/dist/interfaces/userInstituteMetaInterface.d.ts +1 -1
- package/dist/interfaces/userInterface.d.ts +1 -3
- package/dist/interfaces/vendorCompanyMetaInterface.d.ts +2 -5
- package/dist/models/mongodb/additionalDetailsModel.js +1 -1
- package/dist/models/mongodb/advertisementModel.js +1 -1
- package/dist/models/mongodb/appAnalyticsEventModel.js +1 -1
- package/dist/models/mongodb/appointmentHistoryModel.js +1 -1
- package/dist/models/mongodb/appointmentModel.js +1 -1
- package/dist/models/mongodb/approvalRequestModel.js +1 -1
- package/dist/models/mongodb/assessmentTestModel.d.ts +4 -0
- package/dist/models/mongodb/assessmentTestModel.js +73 -0
- package/dist/models/mongodb/assignFileModel.js +1 -1
- package/dist/models/mongodb/attendanceModel.js +1 -1
- package/dist/models/mongodb/bDayWishModel.js +1 -1
- package/dist/models/mongodb/blogModel.js +1 -1
- package/dist/models/mongodb/campusCarnivalModel.js +1 -1
- package/dist/models/mongodb/canteenModel.js +1 -1
- package/dist/models/mongodb/careerModel.js +1 -1
- package/dist/models/mongodb/certificatesHistoryModel.js +1 -1
- package/dist/models/mongodb/certificatesManagementModel.js +1 -1
- package/dist/models/mongodb/columnModel.js +1 -1
- package/dist/models/mongodb/communityGroupMemberModel.js +1 -1
- package/dist/models/mongodb/communityGroupModel.js +1 -1
- package/dist/models/mongodb/communityMessageModel.js +1 -1
- package/dist/models/mongodb/competitionGroupModel.js +1 -1
- package/dist/models/mongodb/competitionModel.js +1 -1
- package/dist/models/mongodb/competitionUsersModel.js +1 -1
- package/dist/models/mongodb/createPollModel.js +1 -1
- package/dist/models/mongodb/dailyBookModel.js +1 -1
- package/dist/models/mongodb/dashboardManagementModel.js +1 -1
- package/dist/models/mongodb/educationOfficerModel.js +1 -1
- package/dist/models/mongodb/eventModel.js +1 -1
- package/dist/models/mongodb/eventTemplatesModel.js +1 -1
- package/dist/models/mongodb/examGroupModel.js +1 -1
- package/dist/models/mongodb/examHasAnswerSheetModel.js +1 -1
- package/dist/models/mongodb/examModel.js +1 -1
- package/dist/models/mongodb/feeConfigModel.js +1 -1
- package/dist/models/mongodb/feeReminderTypeModel.js +1 -1
- package/dist/models/mongodb/feeSubmissionModel.js +1 -1
- package/dist/models/mongodb/feedBackModel.js +1 -1
- package/dist/models/mongodb/fileUploadUserDetailsModel.js +1 -1
- package/dist/models/mongodb/finalMarkSheetModel.js +1 -1
- package/dist/models/mongodb/generateIdCardModel.js +1 -1
- package/dist/models/mongodb/grantAndDonationModel.js +1 -1
- package/dist/models/mongodb/holidayModel.js +1 -1
- package/dist/models/mongodb/index.d.ts +7 -0
- package/dist/models/mongodb/index.js +16 -1
- package/dist/models/mongodb/informationSupportModel.js +1 -1
- package/dist/models/mongodb/inquiryModel.js +1 -1
- package/dist/models/mongodb/instituteFeeModel.js +1 -1
- package/dist/models/mongodb/invoiceModel.js +1 -1
- package/dist/models/mongodb/jobApplyModel.js +1 -1
- package/dist/models/mongodb/kipiverseContactFormModel.js +4 -9
- package/dist/models/mongodb/markSheetConfigurationModel.js +1 -1
- package/dist/models/mongodb/modulePriceModel.js +1 -1
- package/dist/models/mongodb/offerAndDiscountModel.js +1 -1
- package/dist/models/mongodb/onlineLectureModel.js +1 -1
- package/dist/models/mongodb/pastYearRecordTopperModel.js +1 -1
- package/dist/models/mongodb/pdcChequeConfigurationModel.js +1 -1
- package/dist/models/mongodb/photosGalleryModel.js +6 -2
- package/dist/models/mongodb/plannerModel.js +1 -1
- package/dist/models/mongodb/pollSelectionModel.js +1 -1
- package/dist/models/mongodb/productMetaModel.js +2 -10
- package/dist/models/mongodb/replaceTeacherModel.js +1 -1
- package/dist/models/mongodb/rmsAmcContractModel.js +1 -1
- package/dist/models/mongodb/rmsAuditLogModel.js +1 -1
- package/dist/models/mongodb/rmsDigitalResourceAccessModel.js +1 -1
- package/dist/models/mongodb/rmsDigitalResourceModel.js +1 -1
- package/dist/models/mongodb/rmsResourceDetailsModel.d.ts +7 -1
- package/dist/models/mongodb/rmsResourceDetailsModel.js +1 -1
- package/dist/models/mongodb/roleHasPermissionModel.js +1 -1
- package/dist/models/mongodb/schoolFee1Model.js +1 -1
- package/dist/models/mongodb/seatingArrangementModel.js +1 -1
- package/dist/models/mongodb/sheetFieldModel.js +1 -1
- package/dist/models/mongodb/sportDataApproveModel.d.ts +4 -0
- package/dist/models/mongodb/sportDataApproveModel.js +117 -0
- package/dist/models/mongodb/sportInfoModel.d.ts +4 -0
- package/dist/models/mongodb/sportInfoModel.js +72 -0
- package/dist/models/mongodb/sportsAcademyModel.d.ts +4 -0
- package/dist/models/mongodb/sportsAcademyModel.js +89 -0
- package/dist/models/mongodb/studentSportTestModel.d.ts +4 -0
- package/dist/models/mongodb/studentSportTestModel.js +68 -0
- package/dist/models/mongodb/subjectIndexModel.js +1 -1
- package/dist/models/mongodb/subscriptionConfigurationModel.js +1 -1
- package/dist/models/mongodb/subscriptionPlanModel.js +1 -6
- package/dist/models/mongodb/taskManagementModel.js +1 -1
- package/dist/models/mongodb/themeModel.js +1 -1
- package/dist/models/mongodb/ticketRaiseModel.js +1 -1
- package/dist/models/mongodb/uniqueNumberCounterModel.js +1 -1
- package/dist/models/mongodb/userAcademyMetaModel.d.ts +4 -0
- package/dist/models/mongodb/userAcademyMetaModel.js +109 -0
- package/dist/models/mongodb/userAmenityModel.d.ts +4 -0
- package/dist/models/mongodb/userAmenityModel.js +73 -0
- package/dist/models/mongodb/userDetailsModel.js +1 -1
- package/dist/models/mongodb/userFinalResultModel.js +1 -1
- package/dist/models/mongodb/userInstituteMetaModel.js +5 -1
- package/dist/models/mongodb/userSchoolMetaModel.d.ts +6 -1
- package/dist/models/mongodb/userSchoolMetaModel.js +3 -36
- package/dist/models/mongodb/vendorCompanyMetaModel.js +2 -16
- package/dist/models/mongodb/videoAnalystModel.js +1 -1
- package/dist/models/mongodb/walletTransactionModel.js +1 -1
- package/dist/models/psql/SubCategoriesModel.d.ts +1 -2
- package/dist/models/psql/SubCategoriesModel.js +0 -5
- package/dist/models/psql/ageGroupModel.d.ts +22 -0
- package/dist/models/psql/ageGroupModel.js +76 -0
- package/dist/models/psql/categoriesModel.d.ts +1 -2
- package/dist/models/psql/categoriesModel.js +0 -5
- package/dist/models/psql/equipmentModel.d.ts +20 -0
- package/dist/models/psql/equipmentModel.js +57 -0
- package/dist/models/psql/facilityMasterModel.d.ts +18 -0
- package/dist/models/psql/facilityMasterModel.js +74 -0
- package/dist/models/psql/fileStorageModel.js +4 -3
- package/dist/models/psql/index.d.ts +11 -1
- package/dist/models/psql/index.js +25 -4
- package/dist/models/psql/instituteModel.d.ts +0 -1
- package/dist/models/psql/instituteModel.js +2 -5
- package/dist/models/psql/instituteOwnershipHistoryModel.d.ts +1 -2
- package/dist/models/psql/instituteOwnershipHistoryModel.js +3 -8
- package/dist/models/psql/institutePartnersModel.d.ts +1 -2
- package/dist/models/psql/institutePartnersModel.js +3 -8
- package/dist/models/psql/schoolHasSportModel.d.ts +17 -0
- package/dist/models/psql/schoolHasSportModel.js +76 -0
- package/dist/models/psql/sendNotificationModel.d.ts +1 -0
- package/dist/models/psql/sendNotificationModel.js +5 -0
- package/dist/models/psql/skillModel.d.ts +25 -0
- package/dist/models/psql/skillModel.js +99 -0
- package/dist/models/psql/sportCategoryModel.d.ts +19 -0
- package/dist/models/psql/sportCategoryModel.js +53 -0
- package/dist/models/psql/sportGroupDataModel.d.ts +13 -0
- package/dist/models/psql/sportGroupDataModel.js +64 -0
- package/dist/models/psql/sportModel.d.ts +20 -0
- package/dist/models/psql/sportModel.js +58 -0
- package/dist/models/psql/sportRoleModel.d.ts +21 -0
- package/dist/models/psql/sportRoleModel.js +71 -0
- package/dist/models/psql/sportSubCategoryModel.d.ts +20 -0
- package/dist/models/psql/sportSubCategoryModel.js +75 -0
- package/dist/models/psql/testimonialModel.d.ts +1 -0
- package/dist/models/psql/testimonialModel.js +8 -7
- package/dist/models/psql/unitModel.d.ts +20 -0
- package/dist/models/psql/unitModel.js +57 -0
- package/dist/models/psql/userModel.d.ts +1 -3
- package/dist/models/psql/userModel.js +2 -2
- package/dist/types/ageGroupType.d.ts +2 -0
- package/dist/types/ageGroupType.js +2 -0
- package/dist/types/assessmentTestType.d.ts +2 -0
- package/dist/types/assessmentTestType.js +2 -0
- package/dist/types/commonType.d.ts +1 -29
- package/dist/types/equipmentType.d.ts +2 -0
- package/dist/types/equipmentType.js +2 -0
- package/dist/types/facilityMasterType.d.ts +3 -0
- package/dist/types/facilityMasterType.js +2 -0
- package/dist/types/index.d.ts +18 -1
- package/dist/types/index.js +19 -1
- package/dist/types/schoolHasSportType.d.ts +2 -0
- package/dist/types/schoolHasSportType.js +2 -0
- package/dist/types/skillType.d.ts +2 -0
- package/dist/types/skillType.js +2 -0
- package/dist/types/sportCategoryType.d.ts +2 -0
- package/dist/types/sportCategoryType.js +2 -0
- package/dist/types/sportDataApproveType.d.ts +2 -0
- package/dist/types/sportDataApproveType.js +2 -0
- package/dist/types/sportGroupDataType.d.ts +3 -0
- package/dist/types/sportGroupDataType.js +2 -0
- package/dist/types/sportInfoType.d.ts +2 -0
- package/dist/types/sportInfoType.js +2 -0
- package/dist/types/sportRoleType.d.ts +2 -0
- package/dist/types/sportRoleType.js +2 -0
- package/dist/types/sportSubCategoryType.d.ts +2 -0
- package/dist/types/sportSubCategoryType.js +2 -0
- package/dist/types/sportType.d.ts +2 -0
- package/dist/types/sportType.js +2 -0
- package/dist/types/sportsAcademyType.d.ts +2 -0
- package/dist/types/sportsAcademyType.js +2 -0
- package/dist/types/studentSportTestType.d.ts +2 -0
- package/dist/types/studentSportTestType.js +2 -0
- package/dist/types/unitType.d.ts +2 -0
- package/dist/types/unitType.js +2 -0
- package/dist/types/userAcademyMetaType.d.ts +2 -0
- package/dist/types/userAcademyMetaType.js +2 -0
- package/dist/types/userAmenityType.d.ts +2 -0
- package/dist/types/userAmenityType.js +2 -0
- package/package.json +2 -10
- package/dist/commonValidator/commandValidator.d.ts +0 -27
- package/dist/commonValidator/commandValidator.js +0 -225
- package/dist/commonValidator/index.d.ts +0 -3
- package/dist/commonValidator/index.js +0 -24
- package/dist/commonValidator/joiCommonValidator.d.ts +0 -12
- package/dist/commonValidator/joiCommonValidator.js +0 -47
- package/dist/commonValidator/joiSchemaBuilder.d.ts +0 -6
- package/dist/commonValidator/joiSchemaBuilder.js +0 -70
- package/dist/configs/logger.d.ts +0 -2
- package/dist/configs/logger.js +0 -44
- package/dist/configs/redisConfig.d.ts +0 -4
- package/dist/configs/redisConfig.js +0 -32
- package/dist/db/psql/migrations/20260714111425-change_status_enum_to_string_in_institutes.js +0 -46
- package/dist/db/psql/migrations/20260714131500-add_note_to_institutes.js +0 -20
- package/dist/db/psql/migrations/20260715150000-create-ai-model-keys.js +0 -156
- package/dist/db/psql/migrations/20260717071354-add_type_to_categories.js +0 -19
- package/dist/db/psql/migrations/20260717072745-add_type_to_sub_categories.d.ts +0 -2
- package/dist/db/psql/migrations/20260717072745-add_type_to_sub_categories.js +0 -19
- package/dist/db/psql/migrations/20260717095051-add_status_to_users.d.ts +0 -2
- package/dist/db/psql/migrations/20260717095051-add_status_to_users.js +0 -19
- package/dist/db/psql/migrations/20260721000001-add-deleted-at-to-rms-maintenance-activities.d.ts +0 -2
- package/dist/db/psql/migrations/20260721000001-add-deleted-at-to-rms-maintenance-activities.js +0 -12
- package/dist/db/psql/migrations/20260721000002-change-uploaded-from-enum-to-string-in-file-storage.d.ts +0 -2
- package/dist/db/psql/migrations/20260721000002-change-uploaded-from-enum-to-string-in-file-storage.js +0 -42
- package/dist/db/psql/migrations/20260722130134-add_portfolio_theme_to_users.d.ts +0 -2
- package/dist/db/psql/migrations/20260722130134-add_portfolio_theme_to_users.js +0 -22
- package/dist/db/psql/migrations/20260727123149-add_vendorCompanyId_to_institute_ownership_histories.js +0 -23
- package/dist/db/psql/migrations/20260727130802-add_vendorCompanyId_to_institute_partners.d.ts +0 -2
- package/dist/db/psql/migrations/20260727130802-add_vendorCompanyId_to_institute_partners.js +0 -23
- package/dist/db/psql/migrations/20260727132312-make_instituteId_and_vendorCompanyId_optional_in_institute_partners.d.ts +0 -2
- package/dist/db/psql/migrations/20260727132312-make_instituteId_and_vendorCompanyId_optional_in_institute_partners.js +0 -28
- package/dist/db/psql/migrations/20260727132747-make_instituteId_and_vendorCompanyId_optional_in_institute_ownership_histories.d.ts +0 -2
- package/dist/db/psql/migrations/20260727132747-make_instituteId_and_vendorCompanyId_optional_in_institute_ownership_histories.js +0 -25
- package/dist/db/psql/migrations/20260729055118-institutePartners.d.ts +0 -2
- package/dist/db/psql/migrations/20260729055118-institutePartners.js +0 -28
- package/dist/db/psql/migrations/20260729055121-instituteOwnershipHistory.d.ts +0 -2
- package/dist/db/psql/migrations/20260729055121-instituteOwnershipHistory.js +0 -25
- package/dist/helpers/sendEmail.d.ts +0 -3
- package/dist/helpers/sendEmail.js +0 -117
- package/dist/helpers/sendNotification.d.ts +0 -4
- package/dist/helpers/sendNotification.js +0 -34
- package/dist/helpers/sendSMS.d.ts +0 -5
- package/dist/helpers/sendSMS.js +0 -34
- package/dist/interfaces/aiModelKeysInterface.d.ts +0 -15
- package/dist/models/psql/aiModelKeysModel.d.ts +0 -20
- package/dist/models/psql/aiModelKeysModel.js +0 -70
- package/dist/queues/emailQueue.d.ts +0 -3
- package/dist/queues/emailQueue.js +0 -22
- package/dist/queues/emailWorker.d.ts +0 -3
- package/dist/queues/emailWorker.js +0 -33
- package/dist/queues/index.d.ts +0 -2
- package/dist/queues/index.js +0 -18
- package/dist/types/aiModelKeysType.d.ts +0 -3
- /package/dist/db/psql/migrations/{20260714111425-change_status_enum_to_string_in_institutes.d.ts → 20260714095754-create-arena-models.d.ts} +0 -0
- /package/dist/db/psql/migrations/{20260714131500-add_note_to_institutes.d.ts → 20260722143500-create-school_has_sports.d.ts} +0 -0
- /package/dist/db/psql/migrations/{20260715150000-create-ai-model-keys.d.ts → 20260728170500-add_sports_academy_id_to_testimonials.d.ts} +0 -0
- /package/dist/db/psql/migrations/{20260727123149-add_vendorCompanyId_to_institute_ownership_histories.d.ts → 20260729150700-add_sports_academy_id_to_notifications.d.ts} +0 -0
- /package/dist/db/psql/migrations/{20260717071354-add_type_to_categories.d.ts → 20260804100500-update_facility_master.d.ts} +0 -0
- /package/dist/interfaces/{aiModelKeysInterface.js → ageGroupInterface.js} +0 -0
- /package/dist/{types/aiModelKeysType.js → interfaces/assessmentTestInterface.js} +0 -0
|
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.ANNOUCEMENT_SUCCESS_MESSAGES = exports.TYPE_MANAGEMENT_SUCCESS_MESSAGES = exports.PARENTS_SUCCESS_MESSAGES = exports.USER_INSTITUTE_META_SUCCESS_MESSAGES = exports.INSTITUTE_ENTITY_TYPE_SUCCESS_MESSAGES = exports.INSTITUTE_ENTITY_SUCCESS_MESSAGES = exports.WORKING_DAYS_SUCCESS_MESSAGES = exports.INSTITUTE_SUCCESS_MESSAGES = exports.MODULE_SUCCESS_MESSAGES = exports.ROLE_SUCCESS_MESSAGES = exports.CLASSROOM_SUCCESS_MESSAGES = exports.BATCH_SUCCESS_MESSAGES = exports.ACADEMIC_CALENDAR_SUCCESS_MESSAGES = exports.EVENT_SUCCESS_MESSAGES = exports.HOLIDAY_SUCCESS_MESSAGES = exports.USER_HAS_ROLL_NUMBER_SUCCESS_MESSAGES = exports.USER_HAS_OFFER_SUCCESS_MESSAGES = exports.FEE_REMINDER_SETTING_SUCCESS_MESSAGES = exports.FEEREMINDER_SUCCESS_MESSAGES = exports.FEESCOLLECTION_SUCCESS_MESSAGES = exports.OFFER_SUCCESS_MESSAGES = exports.CATEGORY_SUCCESS_MESSAGES = exports.INVENTORY_HISTORY_SUCCESS_MESSAGES = exports.INVENTORY_SUCCESS_MESSAGES = exports.USER_HAS_INVENTORY_HISTORY_SUCCESS_MESSAGES = exports.USER_HAS_INVENTORY_SUCCESS_MESSAGES = exports.SUBJECT_HAS_FEE_SUCCESS_MESSAGES = exports.FEE_HISTORY_SUCCESS_MESSAGES = exports.MASTER_LEAVE_SUCCESS_MESSAGES = exports.LEAVE_SUCCESS_MESSAGES = exports.PAYMENT_TERMS_SUCCESS_MESSAGES = exports.FACILITY_SUCCESS_MESSAGES = exports.FEE_REMINDER_SUCCESS_MESSAGES = exports.SCHOOL_SHIFT_SUCCESS_MESSAGES = exports.SUBSCRIPTION_SUCCESS_MESSAGES = exports.BANK_ACCOUNT_DETAILS_SUCCESS_MESSAGES = exports.ACCOUNT_RECEIPT_SUCCESS_MESSAGES = exports.FEE_TYPE_SUCCESS_MESSAGES = exports.FEEDBACK_SUCCESS_MESSAGES = exports.INFORMATION_SUPPORT_SUCCESS_MESSAGES = exports.INQUIRY_SUCCESS_MESSAGES = exports.FEE_SUCCESS_MESSAGES = exports.SCHOOL_FEES_COLLECTION_SUCCESS_MESSAGES = exports.USER_FEE_TYPE_SUCCESS_MESSAGES = exports.USER_FEE_TYPE_ACCOUNT_SUCCESS_MESSAGES = exports.ADMIN_SUCCESS_MESSAGES = exports.APPROVE_REQUEST_SUCCESS_MESSAGES = exports.BANNER_SUCCESS_MESSAGES = exports.USER_SUCCESS_MESSAGES = exports.SUCCESS_MESSAGES = void 0;
|
|
4
4
|
exports.CERTIFICATES_HISTORY_SUCCESS_MESSAGES = exports.CERTIFICATES_MANAGEMENT_SUCCESS_MESSAGES = exports.DASHBOARD_MANAGEMENT_SUCCESS_MESSAGES = exports.PDC_HISTORY_SUCCESS_MESSAGES = exports.COLUMN_SUCCESS_MESSAGES = exports.INVOICE_SUCCESS_MESSAGES = exports.PRODUCT_SUCCESS_MESSAGES = exports.SUB_CATEGORY_SUCCESS_MESSAGES = exports.VENDOR_MANAGEMENT_SUCCESS_MESSAGES = exports.COIN_PURCHASE_OFFER_SUCCESS_MESSAGES = exports.SYLLABUS_SUCCESS_MESSAGES = exports.DAILY_BOOK_SUCCESS_MESSAGES = exports.USER_HAS_HOME_WORK_SUCCESS_MESSAGES = exports.HOME_WORK_SUCCESS_MESSAGES = exports.CLOUD_STORAGE_SUCCESS_MESSAGES = exports.SUBSCRIPTION_PLAN_SUCCESS_MESSAGES = exports.FLOOR_MANAGEMENT_SUCCESS_MESSAGES = exports.CAREER_SUCCESS_MESSAGES = exports.RULE_REGULATION_SUCCESS_MESSAGES = exports.CUSTOME_NOTIFICATION_SUCCESS_MESSAGES = exports.NOTIFICATION_SUCCESS_MESSAGES = exports.PHOTO_GALLERY_SUCCESS_MESSAGES = exports.CONTACT_FEED_BACK_SUCCESS_MESSAGES = exports.GENERATE_ID_CARD_SUCCESS_MESSAGES = exports.VEHICLE_SUCCESS_MESSAGES = exports.BATCH_SUBJECT_PROJECT_ASSESSMENT_SUCCESS_MESSAGES = exports.USER_BOOK_ASSESSMENT_SUCCESS_MESSAGES = exports.BATCH_SUBJECT_BOOK_ASSESSMENT_SUCCESS_MESSAGES = exports.TASK_MANAGEMENT_SUCCESS_MESSAGES = exports.EXAM_GROUP_SUCCESS_MESSAGES = exports.PLANNER_SUCCESS_MESSAGES = exports.USER_PAYOUT_HISTORY_SUCCESS_MESSAGES = exports.USER_PAYOUT_SUCCESS_MESSAGES = exports.SUBJECT_INDEX_SUCCESS_MESSAGES = exports.DRIVER_SUCCESS_MESSAGES = exports.BLOG_SUCCESS_MESSAGES = exports.VIDEO_ANALYST_SUCCESS_MESSAGES = exports.TESTIMONIAL_SUCCESS_MESSAGES = exports.PDC_CHEQUE_SUCCESS_MESSAGES = exports.GREETING_SUCCESS_MESSAGES = exports.USER_HAS_COURSE_SUCCESS_MESSAGES = exports.COURSE_SUCCESS_MESSAGES = exports.TO_DO_SUCCESS_MESSAGES = exports.SLOT_SUCCESS_MESSAGES = exports.TRIP_SUCCESS_MESSAGES = exports.LECTURE_SUCCESS_MESSAGES = exports.USER_SCHOOL_METADATA_SUCCESS_MESSAGES = exports.ATTENDANCE_SUCCESS_MESSAGES = exports.EXAM_HAS_ANSWER_SHEET_SUCCESS_MESSAGES = exports.EXAM_SUCCESS_MESSAGES = void 0;
|
|
5
5
|
exports.PDC_CHEQUE_CONFIGURATION_SUCCESS_MESSAGES = exports.MARK_SHEET_CONFIGURATION_SUCCESS_MESSAGES = exports.INTERNAL_MARK_SUCCESS_MESSAGES = exports.APP_ANALYTICS_EVENT_SUCCESS_MESSAGES = exports.GRANT_AND_DONATION_SUCCESS_MESSAGES = exports.TICKET_RAISE_SUCCESS_MESSAGES = exports.TERM_AND_CONDITION_SUCCESS_MESSAGES = exports.EDUCATION_OFFICER_SUCCESS_MESSAGES = exports.USER_HAS_PENALTY_SUCCESS_MESSAGES = exports.PENALTY_SUCCESS_MESSAGES = exports.CLASSROOM_COLLECTION_SUCCESS_MESSAGES = exports.CLASSROOM_EVENT_SUCCESS_MESSAGES = exports.INSTITUTE_FEE_SUCCESS_MESSAGES = exports.FEE_CONFIG_SUCCESS_MESSAGES = exports.USER_DIRECTORY_SUCCESS_MESSAGES = exports.STUDENT_LEAVE_REQUEST_SUCCESS_MESSAGES = exports.EVENT_TEMPLATES_SUCCESS_MESSAGES = exports.POLL_SELECTION_SUCCESS_MESSAGES = exports.POLL_CREATE_SUCCESS_MESSAGES = exports.SHEET_FIELD_SUCCESS_MESSAGES = exports.CLONE_LIST_SUCCESS_MESSAGES = exports.COMPETITION_USER_SUCCESS_MESSAGES = exports.COMPETITION_GROUP_SUCCESS_MESSAGES = exports.COMPETITION_SUCCESS_MESSAGES = exports.CAMPUS_CARNIVAL_SUCCESS_MESSAGES = exports.INCOME_EXPENSE_SUCCESS_MESSAGES = exports.APPOINTMENT_HISTORY_SUCCESS_MESSAGES = exports.APPOINTMENT_SUCCESS_MESSAGES = exports.MAINTENANCE_SUCCESS_MESSAGES = exports.SEATING_ARRANGEMENT_SUCCESS_MESSAGES = exports.ASSIGN_FILE_SUCCESS_MESSAGES = exports.THEME_SUCCESS_MESSAGES = exports.B_DAY_WISH_SUCCESS_MESSAGES = exports.ADDITIONAL_DETAIL_SUCCESS_MESSAGES = exports.ADVERTISEMENT_SUCCESS_MESSAGES = exports.WORK_OFF_DAYS_SUCCESS_MESSAGES = exports.ENTITY_WISE_CALENDAR_SUCCESS_MESSAGES = exports.CAMPUS_SUCCESS_MESSAGES = exports.CANTEEN_SUCCESS_MESSAGES = exports.LOST_FOUND_ITEM_SUCCESS_MESSAGES = exports.PAYMENT_TRANSACTION_SUCCESS_MESSAGES = exports.USER_REQUIRED_STEPS_SUCCESS_MESSAGES = exports.JOB_APPLY_SUCCESS_MESSAGES = exports.ENTITY_GROUP_SUCCESS_MESSAGES = exports.USER_HAS_STORAGE_SUCCESS_MESSAGES = exports.INSTITUTE_SUBSCRIPTION_PLAN_SUCCESS_MESSAGES = exports.WALLET_TRANSACTION_SUCCESS_MESSAGES = exports.WALLET_HISTORY_SUCCESS_MESSAGES = exports.WALLET_SUCCESS_MESSAGES = exports.REPLACE_TEACHER_SUCCESS_MESSAGES = void 0;
|
|
6
|
-
exports.
|
|
6
|
+
exports.VENDOR_COMPANY_META_SUCCESS_MESSAGES = exports.PRODUCT_META_SUCCESS_MESSAGES = exports.ACCOUNT_VOUCHER_TYPE_SUCCESS_MESSAGES = exports.ACCOUNT_COST_CENTER_SUCCESS_MESSAGES = exports.ACCOUNT_LEDGER_OPENING_SUCCESS_MESSAGES = exports.ACCOUNT_LEDGER_SUCCESS_MESSAGES = exports.ACCOUNT_GROUP_SUCCESS_MESSAGES = exports.ACCOUNT_NUMBER_SEQUENCE_SUCCESS_MESSAGES = exports.ACCOUNT_PERIOD_LOCK_SUCCESS_MESSAGES = exports.ACCOUNT_FINANCIAL_YEAR_SUCCESS_MESSAGES = exports.KIPIVERSE_CONTACT_FORM_SUCCESS_MESSAGES = exports.REFUND_SUCCESS_MESSAGES = exports.RMS_SUCCESS_MESSAGES = exports.ONLINE_LECTURE_SUCCESS_MESSAGES = exports.CERTIFICATE_REQUEST_SUCCESS_MESSAGE = exports.USER_HAS_FEE_SUBMISSION_SUCCESS_MESSAGES = exports.ASSIGN_SUBJECT_SUCCESS_MESSAGES = exports.FEE_SUBMISSION_SUCCESS_MESSAGES = exports.USER_HAS_PENALTY_HISTORY_SUCCESS_MESSAGES = exports.PAST_YEAR_RECORD_SUCCESS_MESSAGES = exports.NOTICEBOARD_SUCCESS_MESSAGES = exports.USER_HAS_PERMISSION_SUCCESS_MESSAGES = exports.ROLE_MANAGEMENT_SUCCESS_MESSAGES = exports.ROLE_HAS_PERMISSION_SUCCESS_MESSAGES = exports.PERMISSION_SUCCESS_MESSAGES = exports.COMMUNITY_MESSAGE_SUCCESS_MESSAGES = exports.COMMUNITY_GROUP_SUCCESS_MESSAGES = exports.MEMBER_ADDED_SUCCESS_MESSAGES = exports.DESIGNATION_SUCCESS_MESSAGES = exports.USER_HAS_OFFER_AND_DISCOUNT_SUCCESS_MESSAGES = exports.OFFER_AND_DISCOUNT_SUCCESS_MESSAGES = exports.POSTAL_DISPATCH_SUCCESS_MESSAGES = exports.CALL_REGISTER_SUCCESS_MESSAGES = exports.VISITOR_BOOK_SUCCESS_MESSAGES = void 0;
|
|
7
7
|
var SUCCESS_MESSAGES;
|
|
8
8
|
(function (SUCCESS_MESSAGES) {
|
|
9
9
|
SUCCESS_MESSAGES["CREATE_SUCCESS"] = "Resource created successfully";
|
|
@@ -1271,14 +1271,6 @@ var RMS_SUCCESS_MESSAGES;
|
|
|
1271
1271
|
RMS_SUCCESS_MESSAGES["PURCHASE_REQUEST_APPROVED"] = "Purchase request approved successfully";
|
|
1272
1272
|
RMS_SUCCESS_MESSAGES["PURCHASE_REQUEST_REJECTED"] = "Purchase request rejected successfully";
|
|
1273
1273
|
})(RMS_SUCCESS_MESSAGES || (exports.RMS_SUCCESS_MESSAGES = RMS_SUCCESS_MESSAGES = {}));
|
|
1274
|
-
var MODULE_DOCS_SUCCESS_MESSAGES;
|
|
1275
|
-
(function (MODULE_DOCS_SUCCESS_MESSAGES) {
|
|
1276
|
-
MODULE_DOCS_SUCCESS_MESSAGES["CREATE_SUCCESS"] = "Module document created successfully";
|
|
1277
|
-
MODULE_DOCS_SUCCESS_MESSAGES["UPDATE_SUCCESS"] = "Module document updated successfully";
|
|
1278
|
-
MODULE_DOCS_SUCCESS_MESSAGES["DELETE_SUCCESS"] = "Module document deleted successfully";
|
|
1279
|
-
MODULE_DOCS_SUCCESS_MESSAGES["GET_SUCCESS"] = "Module document fetched successfully";
|
|
1280
|
-
MODULE_DOCS_SUCCESS_MESSAGES["GET_ALL_SUCCESS"] = "Module documents fetched successfully";
|
|
1281
|
-
})(MODULE_DOCS_SUCCESS_MESSAGES || (exports.MODULE_DOCS_SUCCESS_MESSAGES = MODULE_DOCS_SUCCESS_MESSAGES = {}));
|
|
1282
1274
|
var REFUND_SUCCESS_MESSAGES;
|
|
1283
1275
|
(function (REFUND_SUCCESS_MESSAGES) {
|
|
1284
1276
|
REFUND_SUCCESS_MESSAGES["REFUND_SUCCESS"] = "Refund has been initiated";
|
|
@@ -1368,11 +1360,3 @@ var VENDOR_COMPANY_META_SUCCESS_MESSAGES;
|
|
|
1368
1360
|
VENDOR_COMPANY_META_SUCCESS_MESSAGES["LEFT_SUCCESS"] = "Vendor has left the company successfully";
|
|
1369
1361
|
VENDOR_COMPANY_META_SUCCESS_MESSAGES["SEND_EMAIL_SUCCESS"] = "Email sent successfully";
|
|
1370
1362
|
})(VENDOR_COMPANY_META_SUCCESS_MESSAGES || (exports.VENDOR_COMPANY_META_SUCCESS_MESSAGES = VENDOR_COMPANY_META_SUCCESS_MESSAGES = {}));
|
|
1371
|
-
var AI_MODEL_KEYS_SUCCESS_MESSAGES;
|
|
1372
|
-
(function (AI_MODEL_KEYS_SUCCESS_MESSAGES) {
|
|
1373
|
-
AI_MODEL_KEYS_SUCCESS_MESSAGES["CREATE_SUCCESS"] = "AI model key created successfully";
|
|
1374
|
-
AI_MODEL_KEYS_SUCCESS_MESSAGES["UPDATE_SUCCESS"] = "AI model key updated successfully";
|
|
1375
|
-
AI_MODEL_KEYS_SUCCESS_MESSAGES["DELETE_SUCCESS"] = "AI model key deleted successfully";
|
|
1376
|
-
AI_MODEL_KEYS_SUCCESS_MESSAGES["GET_SUCCESS"] = "AI model key fetched successfully";
|
|
1377
|
-
AI_MODEL_KEYS_SUCCESS_MESSAGES["GET_ALL_SUCCESS"] = "AI model keys fetched successfully";
|
|
1378
|
-
})(AI_MODEL_KEYS_SUCCESS_MESSAGES || (exports.AI_MODEL_KEYS_SUCCESS_MESSAGES = AI_MODEL_KEYS_SUCCESS_MESSAGES = {}));
|
|
@@ -0,0 +1,642 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
const up = async (queryInterface, Sequelize) => {
|
|
3
|
+
const tableExists_sports = await queryInterface.describeTable('sports').then(() => true).catch(() => false);
|
|
4
|
+
if (!tableExists_sports) {
|
|
5
|
+
await queryInterface.createTable('sports', {
|
|
6
|
+
id: {
|
|
7
|
+
type: Sequelize.UUID,
|
|
8
|
+
primaryKey: true,
|
|
9
|
+
allowNull: false,
|
|
10
|
+
defaultValue: Sequelize.UUIDV4,
|
|
11
|
+
},
|
|
12
|
+
name: {
|
|
13
|
+
type: Sequelize.STRING,
|
|
14
|
+
allowNull: true,
|
|
15
|
+
},
|
|
16
|
+
code: {
|
|
17
|
+
type: Sequelize.STRING,
|
|
18
|
+
allowNull: true,
|
|
19
|
+
},
|
|
20
|
+
description: {
|
|
21
|
+
type: Sequelize.TEXT,
|
|
22
|
+
allowNull: true,
|
|
23
|
+
},
|
|
24
|
+
icon: {
|
|
25
|
+
type: Sequelize.UUID,
|
|
26
|
+
allowNull: true,
|
|
27
|
+
},
|
|
28
|
+
status: {
|
|
29
|
+
type: Sequelize.STRING,
|
|
30
|
+
allowNull: true,
|
|
31
|
+
},
|
|
32
|
+
createdAt: {
|
|
33
|
+
type: Sequelize.DATE,
|
|
34
|
+
allowNull: false,
|
|
35
|
+
field: 'created_at',
|
|
36
|
+
},
|
|
37
|
+
updatedAt: {
|
|
38
|
+
type: Sequelize.DATE,
|
|
39
|
+
allowNull: false,
|
|
40
|
+
field: 'updated_at',
|
|
41
|
+
},
|
|
42
|
+
deletedAt: {
|
|
43
|
+
type: Sequelize.DATE,
|
|
44
|
+
field: 'deleted_at',
|
|
45
|
+
},
|
|
46
|
+
createdBy: {
|
|
47
|
+
type: Sequelize.UUID,
|
|
48
|
+
allowNull: true,
|
|
49
|
+
field: 'created_by',
|
|
50
|
+
},
|
|
51
|
+
updatedBy: {
|
|
52
|
+
type: Sequelize.UUID,
|
|
53
|
+
allowNull: true,
|
|
54
|
+
field: 'updated_by',
|
|
55
|
+
},
|
|
56
|
+
deletedBy: {
|
|
57
|
+
type: Sequelize.UUID,
|
|
58
|
+
allowNull: true,
|
|
59
|
+
field: 'deleted_by',
|
|
60
|
+
},
|
|
61
|
+
});
|
|
62
|
+
}
|
|
63
|
+
const tableExists_sport_categories = await queryInterface.describeTable('sport_categories').then(() => true).catch(() => false);
|
|
64
|
+
if (!tableExists_sport_categories) {
|
|
65
|
+
await queryInterface.createTable('sport_categories', {
|
|
66
|
+
id: {
|
|
67
|
+
type: Sequelize.UUID,
|
|
68
|
+
primaryKey: true,
|
|
69
|
+
allowNull: false,
|
|
70
|
+
defaultValue: Sequelize.UUIDV4,
|
|
71
|
+
},
|
|
72
|
+
name: {
|
|
73
|
+
type: Sequelize.STRING,
|
|
74
|
+
allowNull: true,
|
|
75
|
+
},
|
|
76
|
+
code: {
|
|
77
|
+
type: Sequelize.STRING,
|
|
78
|
+
allowNull: true,
|
|
79
|
+
},
|
|
80
|
+
description: {
|
|
81
|
+
type: Sequelize.TEXT,
|
|
82
|
+
allowNull: true,
|
|
83
|
+
},
|
|
84
|
+
status: {
|
|
85
|
+
type: Sequelize.STRING,
|
|
86
|
+
allowNull: true,
|
|
87
|
+
},
|
|
88
|
+
createdAt: {
|
|
89
|
+
type: Sequelize.DATE,
|
|
90
|
+
allowNull: false,
|
|
91
|
+
field: 'created_at',
|
|
92
|
+
},
|
|
93
|
+
updatedAt: {
|
|
94
|
+
type: Sequelize.DATE,
|
|
95
|
+
allowNull: false,
|
|
96
|
+
field: 'updated_at',
|
|
97
|
+
},
|
|
98
|
+
deletedAt: {
|
|
99
|
+
type: Sequelize.DATE,
|
|
100
|
+
field: 'deleted_at',
|
|
101
|
+
},
|
|
102
|
+
createdBy: {
|
|
103
|
+
type: Sequelize.UUID,
|
|
104
|
+
allowNull: true,
|
|
105
|
+
field: 'created_by',
|
|
106
|
+
},
|
|
107
|
+
updatedBy: {
|
|
108
|
+
type: Sequelize.UUID,
|
|
109
|
+
allowNull: true,
|
|
110
|
+
field: 'updated_by',
|
|
111
|
+
},
|
|
112
|
+
deletedBy: {
|
|
113
|
+
type: Sequelize.UUID,
|
|
114
|
+
allowNull: true,
|
|
115
|
+
field: 'deleted_by',
|
|
116
|
+
},
|
|
117
|
+
});
|
|
118
|
+
}
|
|
119
|
+
const tableExists_sport_sub_categories = await queryInterface.describeTable('sport_sub_categories').then(() => true).catch(() => false);
|
|
120
|
+
if (!tableExists_sport_sub_categories) {
|
|
121
|
+
await queryInterface.createTable('sport_sub_categories', {
|
|
122
|
+
id: {
|
|
123
|
+
type: Sequelize.UUID,
|
|
124
|
+
primaryKey: true,
|
|
125
|
+
allowNull: false,
|
|
126
|
+
defaultValue: Sequelize.UUIDV4,
|
|
127
|
+
},
|
|
128
|
+
sportId: {
|
|
129
|
+
type: Sequelize.UUID,
|
|
130
|
+
allowNull: true,
|
|
131
|
+
field: 'sport_id',
|
|
132
|
+
},
|
|
133
|
+
categoryId: {
|
|
134
|
+
type: Sequelize.UUID,
|
|
135
|
+
allowNull: true,
|
|
136
|
+
field: 'category_id',
|
|
137
|
+
},
|
|
138
|
+
name: {
|
|
139
|
+
type: Sequelize.STRING,
|
|
140
|
+
allowNull: true,
|
|
141
|
+
},
|
|
142
|
+
code: {
|
|
143
|
+
type: Sequelize.STRING,
|
|
144
|
+
allowNull: true,
|
|
145
|
+
},
|
|
146
|
+
status: {
|
|
147
|
+
type: Sequelize.STRING,
|
|
148
|
+
allowNull: true,
|
|
149
|
+
},
|
|
150
|
+
createdAt: {
|
|
151
|
+
type: Sequelize.DATE,
|
|
152
|
+
allowNull: false,
|
|
153
|
+
field: 'created_at',
|
|
154
|
+
},
|
|
155
|
+
updatedAt: {
|
|
156
|
+
type: Sequelize.DATE,
|
|
157
|
+
allowNull: false,
|
|
158
|
+
field: 'updated_at',
|
|
159
|
+
},
|
|
160
|
+
deletedAt: {
|
|
161
|
+
type: Sequelize.DATE,
|
|
162
|
+
field: 'deleted_at',
|
|
163
|
+
},
|
|
164
|
+
createdBy: {
|
|
165
|
+
type: Sequelize.UUID,
|
|
166
|
+
allowNull: true,
|
|
167
|
+
field: 'created_by',
|
|
168
|
+
},
|
|
169
|
+
updatedBy: {
|
|
170
|
+
type: Sequelize.UUID,
|
|
171
|
+
allowNull: true,
|
|
172
|
+
field: 'updated_by',
|
|
173
|
+
},
|
|
174
|
+
deletedBy: {
|
|
175
|
+
type: Sequelize.UUID,
|
|
176
|
+
allowNull: true,
|
|
177
|
+
field: 'deleted_by',
|
|
178
|
+
},
|
|
179
|
+
});
|
|
180
|
+
}
|
|
181
|
+
const tableExists_sport_roles = await queryInterface.describeTable('sport_roles').then(() => true).catch(() => false);
|
|
182
|
+
if (!tableExists_sport_roles) {
|
|
183
|
+
await queryInterface.createTable('sport_roles', {
|
|
184
|
+
id: {
|
|
185
|
+
type: Sequelize.UUID,
|
|
186
|
+
primaryKey: true,
|
|
187
|
+
allowNull: false,
|
|
188
|
+
defaultValue: Sequelize.UUIDV4,
|
|
189
|
+
},
|
|
190
|
+
sportId: {
|
|
191
|
+
type: Sequelize.UUID,
|
|
192
|
+
allowNull: true,
|
|
193
|
+
field: 'sport_id',
|
|
194
|
+
},
|
|
195
|
+
name: {
|
|
196
|
+
type: Sequelize.STRING,
|
|
197
|
+
allowNull: true,
|
|
198
|
+
},
|
|
199
|
+
code: {
|
|
200
|
+
type: Sequelize.STRING,
|
|
201
|
+
allowNull: true,
|
|
202
|
+
},
|
|
203
|
+
description: {
|
|
204
|
+
type: Sequelize.TEXT,
|
|
205
|
+
allowNull: true,
|
|
206
|
+
},
|
|
207
|
+
icon: {
|
|
208
|
+
type: Sequelize.UUID,
|
|
209
|
+
allowNull: true,
|
|
210
|
+
},
|
|
211
|
+
status: {
|
|
212
|
+
type: Sequelize.STRING,
|
|
213
|
+
allowNull: true,
|
|
214
|
+
},
|
|
215
|
+
createdAt: {
|
|
216
|
+
type: Sequelize.DATE,
|
|
217
|
+
allowNull: false,
|
|
218
|
+
field: 'created_at',
|
|
219
|
+
},
|
|
220
|
+
updatedAt: {
|
|
221
|
+
type: Sequelize.DATE,
|
|
222
|
+
allowNull: false,
|
|
223
|
+
field: 'updated_at',
|
|
224
|
+
},
|
|
225
|
+
deletedAt: {
|
|
226
|
+
type: Sequelize.DATE,
|
|
227
|
+
field: 'deleted_at',
|
|
228
|
+
},
|
|
229
|
+
createdBy: {
|
|
230
|
+
type: Sequelize.UUID,
|
|
231
|
+
allowNull: true,
|
|
232
|
+
field: 'created_by',
|
|
233
|
+
},
|
|
234
|
+
updatedBy: {
|
|
235
|
+
type: Sequelize.UUID,
|
|
236
|
+
allowNull: true,
|
|
237
|
+
field: 'updated_by',
|
|
238
|
+
},
|
|
239
|
+
deletedBy: {
|
|
240
|
+
type: Sequelize.UUID,
|
|
241
|
+
allowNull: true,
|
|
242
|
+
field: 'deleted_by',
|
|
243
|
+
},
|
|
244
|
+
});
|
|
245
|
+
}
|
|
246
|
+
const tableExists_equipments = await queryInterface.describeTable('equipments').then(() => true).catch(() => false);
|
|
247
|
+
if (!tableExists_equipments) {
|
|
248
|
+
await queryInterface.createTable('equipments', {
|
|
249
|
+
id: {
|
|
250
|
+
type: Sequelize.UUID,
|
|
251
|
+
primaryKey: true,
|
|
252
|
+
allowNull: false,
|
|
253
|
+
defaultValue: Sequelize.UUIDV4,
|
|
254
|
+
},
|
|
255
|
+
name: {
|
|
256
|
+
type: Sequelize.STRING,
|
|
257
|
+
allowNull: true,
|
|
258
|
+
},
|
|
259
|
+
code: {
|
|
260
|
+
type: Sequelize.STRING,
|
|
261
|
+
allowNull: true,
|
|
262
|
+
},
|
|
263
|
+
category: {
|
|
264
|
+
type: Sequelize.STRING,
|
|
265
|
+
allowNull: true,
|
|
266
|
+
},
|
|
267
|
+
description: {
|
|
268
|
+
type: Sequelize.TEXT,
|
|
269
|
+
allowNull: true,
|
|
270
|
+
},
|
|
271
|
+
status: {
|
|
272
|
+
type: Sequelize.STRING,
|
|
273
|
+
allowNull: true,
|
|
274
|
+
},
|
|
275
|
+
createdAt: {
|
|
276
|
+
type: Sequelize.DATE,
|
|
277
|
+
allowNull: false,
|
|
278
|
+
field: 'created_at',
|
|
279
|
+
},
|
|
280
|
+
updatedAt: {
|
|
281
|
+
type: Sequelize.DATE,
|
|
282
|
+
allowNull: false,
|
|
283
|
+
field: 'updated_at',
|
|
284
|
+
},
|
|
285
|
+
deletedAt: {
|
|
286
|
+
type: Sequelize.DATE,
|
|
287
|
+
field: 'deleted_at',
|
|
288
|
+
},
|
|
289
|
+
createdBy: {
|
|
290
|
+
type: Sequelize.UUID,
|
|
291
|
+
allowNull: true,
|
|
292
|
+
field: 'created_by',
|
|
293
|
+
},
|
|
294
|
+
updatedBy: {
|
|
295
|
+
type: Sequelize.UUID,
|
|
296
|
+
allowNull: true,
|
|
297
|
+
field: 'updated_by',
|
|
298
|
+
},
|
|
299
|
+
deletedBy: {
|
|
300
|
+
type: Sequelize.UUID,
|
|
301
|
+
allowNull: true,
|
|
302
|
+
field: 'deleted_by',
|
|
303
|
+
},
|
|
304
|
+
});
|
|
305
|
+
}
|
|
306
|
+
const tableExists_skills = await queryInterface.describeTable('skills').then(() => true).catch(() => false);
|
|
307
|
+
if (!tableExists_skills) {
|
|
308
|
+
await queryInterface.createTable('skills', {
|
|
309
|
+
id: {
|
|
310
|
+
type: Sequelize.UUID,
|
|
311
|
+
primaryKey: true,
|
|
312
|
+
allowNull: false,
|
|
313
|
+
defaultValue: Sequelize.UUIDV4,
|
|
314
|
+
},
|
|
315
|
+
sportId: {
|
|
316
|
+
type: Sequelize.UUID,
|
|
317
|
+
allowNull: true,
|
|
318
|
+
field: 'sport_id',
|
|
319
|
+
},
|
|
320
|
+
unitId: {
|
|
321
|
+
type: Sequelize.UUID,
|
|
322
|
+
allowNull: true,
|
|
323
|
+
field: 'unit_id',
|
|
324
|
+
},
|
|
325
|
+
name: {
|
|
326
|
+
type: Sequelize.STRING,
|
|
327
|
+
allowNull: true,
|
|
328
|
+
},
|
|
329
|
+
code: {
|
|
330
|
+
type: Sequelize.STRING,
|
|
331
|
+
allowNull: true,
|
|
332
|
+
},
|
|
333
|
+
description: {
|
|
334
|
+
type: Sequelize.TEXT,
|
|
335
|
+
allowNull: true,
|
|
336
|
+
},
|
|
337
|
+
minValue: {
|
|
338
|
+
type: Sequelize.FLOAT,
|
|
339
|
+
allowNull: true,
|
|
340
|
+
field: 'min_value',
|
|
341
|
+
},
|
|
342
|
+
maxValue: {
|
|
343
|
+
type: Sequelize.FLOAT,
|
|
344
|
+
allowNull: true,
|
|
345
|
+
field: 'max_value',
|
|
346
|
+
},
|
|
347
|
+
betterValueType: {
|
|
348
|
+
type: Sequelize.STRING,
|
|
349
|
+
allowNull: true,
|
|
350
|
+
field: 'better_value_type',
|
|
351
|
+
},
|
|
352
|
+
valueSide: {
|
|
353
|
+
type: Sequelize.ARRAY(Sequelize.STRING),
|
|
354
|
+
allowNull: true,
|
|
355
|
+
field: 'value_side',
|
|
356
|
+
},
|
|
357
|
+
status: {
|
|
358
|
+
type: Sequelize.STRING,
|
|
359
|
+
allowNull: true,
|
|
360
|
+
},
|
|
361
|
+
createdAt: {
|
|
362
|
+
type: Sequelize.DATE,
|
|
363
|
+
allowNull: false,
|
|
364
|
+
field: 'created_at',
|
|
365
|
+
},
|
|
366
|
+
updatedAt: {
|
|
367
|
+
type: Sequelize.DATE,
|
|
368
|
+
allowNull: false,
|
|
369
|
+
field: 'updated_at',
|
|
370
|
+
},
|
|
371
|
+
deletedAt: {
|
|
372
|
+
type: Sequelize.DATE,
|
|
373
|
+
field: 'deleted_at',
|
|
374
|
+
},
|
|
375
|
+
createdBy: {
|
|
376
|
+
type: Sequelize.UUID,
|
|
377
|
+
allowNull: true,
|
|
378
|
+
field: 'created_by',
|
|
379
|
+
},
|
|
380
|
+
updatedBy: {
|
|
381
|
+
type: Sequelize.UUID,
|
|
382
|
+
allowNull: true,
|
|
383
|
+
field: 'updated_by',
|
|
384
|
+
},
|
|
385
|
+
deletedBy: {
|
|
386
|
+
type: Sequelize.UUID,
|
|
387
|
+
allowNull: true,
|
|
388
|
+
field: 'deleted_by',
|
|
389
|
+
},
|
|
390
|
+
});
|
|
391
|
+
}
|
|
392
|
+
const tableExists_age_groups = await queryInterface.describeTable('age_groups').then(() => true).catch(() => false);
|
|
393
|
+
if (!tableExists_age_groups) {
|
|
394
|
+
await queryInterface.createTable('age_groups', {
|
|
395
|
+
id: {
|
|
396
|
+
type: Sequelize.UUID,
|
|
397
|
+
primaryKey: true,
|
|
398
|
+
allowNull: false,
|
|
399
|
+
defaultValue: Sequelize.UUIDV4,
|
|
400
|
+
},
|
|
401
|
+
sportId: {
|
|
402
|
+
type: Sequelize.UUID,
|
|
403
|
+
allowNull: true,
|
|
404
|
+
field: 'sport_id',
|
|
405
|
+
},
|
|
406
|
+
name: {
|
|
407
|
+
type: Sequelize.STRING,
|
|
408
|
+
allowNull: true,
|
|
409
|
+
},
|
|
410
|
+
code: {
|
|
411
|
+
type: Sequelize.STRING,
|
|
412
|
+
allowNull: true,
|
|
413
|
+
},
|
|
414
|
+
minAge: {
|
|
415
|
+
type: Sequelize.FLOAT,
|
|
416
|
+
allowNull: true,
|
|
417
|
+
field: 'min_age',
|
|
418
|
+
},
|
|
419
|
+
maxAge: {
|
|
420
|
+
type: Sequelize.FLOAT,
|
|
421
|
+
allowNull: true,
|
|
422
|
+
field: 'max_age',
|
|
423
|
+
},
|
|
424
|
+
description: {
|
|
425
|
+
type: Sequelize.TEXT,
|
|
426
|
+
allowNull: true,
|
|
427
|
+
},
|
|
428
|
+
status: {
|
|
429
|
+
type: Sequelize.STRING,
|
|
430
|
+
allowNull: true,
|
|
431
|
+
},
|
|
432
|
+
createdAt: {
|
|
433
|
+
type: Sequelize.DATE,
|
|
434
|
+
allowNull: false,
|
|
435
|
+
field: 'created_at',
|
|
436
|
+
},
|
|
437
|
+
updatedAt: {
|
|
438
|
+
type: Sequelize.DATE,
|
|
439
|
+
allowNull: false,
|
|
440
|
+
field: 'updated_at',
|
|
441
|
+
},
|
|
442
|
+
deletedAt: {
|
|
443
|
+
type: Sequelize.DATE,
|
|
444
|
+
field: 'deleted_at',
|
|
445
|
+
},
|
|
446
|
+
createdBy: {
|
|
447
|
+
type: Sequelize.UUID,
|
|
448
|
+
allowNull: true,
|
|
449
|
+
field: 'created_by',
|
|
450
|
+
},
|
|
451
|
+
updatedBy: {
|
|
452
|
+
type: Sequelize.UUID,
|
|
453
|
+
allowNull: true,
|
|
454
|
+
field: 'updated_by',
|
|
455
|
+
},
|
|
456
|
+
deletedBy: {
|
|
457
|
+
type: Sequelize.UUID,
|
|
458
|
+
allowNull: true,
|
|
459
|
+
field: 'deleted_by',
|
|
460
|
+
},
|
|
461
|
+
});
|
|
462
|
+
}
|
|
463
|
+
const tableExists_facility_masters = await queryInterface.describeTable('facility_masters').then(() => true).catch(() => false);
|
|
464
|
+
if (!tableExists_facility_masters) {
|
|
465
|
+
await queryInterface.createTable('facility_masters', {
|
|
466
|
+
id: {
|
|
467
|
+
type: Sequelize.UUID,
|
|
468
|
+
primaryKey: true,
|
|
469
|
+
allowNull: false,
|
|
470
|
+
defaultValue: Sequelize.UUIDV4,
|
|
471
|
+
},
|
|
472
|
+
name: {
|
|
473
|
+
type: Sequelize.STRING,
|
|
474
|
+
allowNull: true,
|
|
475
|
+
},
|
|
476
|
+
code: {
|
|
477
|
+
type: Sequelize.STRING,
|
|
478
|
+
allowNull: true,
|
|
479
|
+
},
|
|
480
|
+
type: {
|
|
481
|
+
type: Sequelize.STRING,
|
|
482
|
+
allowNull: true,
|
|
483
|
+
},
|
|
484
|
+
status: {
|
|
485
|
+
type: Sequelize.STRING,
|
|
486
|
+
allowNull: true,
|
|
487
|
+
},
|
|
488
|
+
createdAt: {
|
|
489
|
+
type: Sequelize.DATE,
|
|
490
|
+
allowNull: false,
|
|
491
|
+
field: 'created_at',
|
|
492
|
+
},
|
|
493
|
+
updatedAt: {
|
|
494
|
+
type: Sequelize.DATE,
|
|
495
|
+
allowNull: false,
|
|
496
|
+
field: 'updated_at',
|
|
497
|
+
},
|
|
498
|
+
deletedAt: {
|
|
499
|
+
type: Sequelize.DATE,
|
|
500
|
+
field: 'deleted_at',
|
|
501
|
+
},
|
|
502
|
+
createdBy: {
|
|
503
|
+
type: Sequelize.UUID,
|
|
504
|
+
allowNull: true,
|
|
505
|
+
field: 'created_by',
|
|
506
|
+
},
|
|
507
|
+
updatedBy: {
|
|
508
|
+
type: Sequelize.UUID,
|
|
509
|
+
allowNull: true,
|
|
510
|
+
field: 'updated_by',
|
|
511
|
+
},
|
|
512
|
+
deletedBy: {
|
|
513
|
+
type: Sequelize.UUID,
|
|
514
|
+
allowNull: true,
|
|
515
|
+
field: 'deleted_by',
|
|
516
|
+
},
|
|
517
|
+
});
|
|
518
|
+
}
|
|
519
|
+
const tableExists_units = await queryInterface.describeTable('units').then(() => true).catch(() => false);
|
|
520
|
+
if (!tableExists_units) {
|
|
521
|
+
await queryInterface.createTable('units', {
|
|
522
|
+
id: {
|
|
523
|
+
type: Sequelize.UUID,
|
|
524
|
+
primaryKey: true,
|
|
525
|
+
allowNull: false,
|
|
526
|
+
defaultValue: Sequelize.UUIDV4,
|
|
527
|
+
},
|
|
528
|
+
name: {
|
|
529
|
+
type: Sequelize.STRING,
|
|
530
|
+
allowNull: true,
|
|
531
|
+
},
|
|
532
|
+
code: {
|
|
533
|
+
type: Sequelize.STRING,
|
|
534
|
+
allowNull: true,
|
|
535
|
+
},
|
|
536
|
+
symbol: {
|
|
537
|
+
type: Sequelize.STRING,
|
|
538
|
+
allowNull: true,
|
|
539
|
+
},
|
|
540
|
+
description: {
|
|
541
|
+
type: Sequelize.TEXT,
|
|
542
|
+
allowNull: true,
|
|
543
|
+
},
|
|
544
|
+
status: {
|
|
545
|
+
type: Sequelize.STRING,
|
|
546
|
+
allowNull: true,
|
|
547
|
+
},
|
|
548
|
+
createdAt: {
|
|
549
|
+
type: Sequelize.DATE,
|
|
550
|
+
allowNull: false,
|
|
551
|
+
field: 'created_at',
|
|
552
|
+
},
|
|
553
|
+
updatedAt: {
|
|
554
|
+
type: Sequelize.DATE,
|
|
555
|
+
allowNull: false,
|
|
556
|
+
field: 'updated_at',
|
|
557
|
+
},
|
|
558
|
+
deletedAt: {
|
|
559
|
+
type: Sequelize.DATE,
|
|
560
|
+
field: 'deleted_at',
|
|
561
|
+
},
|
|
562
|
+
createdBy: {
|
|
563
|
+
type: Sequelize.UUID,
|
|
564
|
+
allowNull: true,
|
|
565
|
+
field: 'created_by',
|
|
566
|
+
},
|
|
567
|
+
updatedBy: {
|
|
568
|
+
type: Sequelize.UUID,
|
|
569
|
+
allowNull: true,
|
|
570
|
+
field: 'updated_by',
|
|
571
|
+
},
|
|
572
|
+
deletedBy: {
|
|
573
|
+
type: Sequelize.UUID,
|
|
574
|
+
allowNull: true,
|
|
575
|
+
field: 'deleted_by',
|
|
576
|
+
},
|
|
577
|
+
});
|
|
578
|
+
}
|
|
579
|
+
const tableExists_facility_sports = await queryInterface.describeTable('facility_sports').then(() => true).catch(() => false);
|
|
580
|
+
if (!tableExists_facility_sports) {
|
|
581
|
+
await queryInterface.createTable('facility_sports', {
|
|
582
|
+
id: {
|
|
583
|
+
type: Sequelize.UUID,
|
|
584
|
+
primaryKey: true,
|
|
585
|
+
allowNull: false,
|
|
586
|
+
defaultValue: Sequelize.UUIDV4,
|
|
587
|
+
},
|
|
588
|
+
facilityId: {
|
|
589
|
+
type: Sequelize.UUID,
|
|
590
|
+
allowNull: false,
|
|
591
|
+
field: 'facility_id',
|
|
592
|
+
},
|
|
593
|
+
sportId: {
|
|
594
|
+
type: Sequelize.UUID,
|
|
595
|
+
allowNull: false,
|
|
596
|
+
field: 'sport_id',
|
|
597
|
+
},
|
|
598
|
+
createdAt: {
|
|
599
|
+
type: Sequelize.DATE,
|
|
600
|
+
allowNull: false,
|
|
601
|
+
field: 'created_at',
|
|
602
|
+
},
|
|
603
|
+
updatedAt: {
|
|
604
|
+
type: Sequelize.DATE,
|
|
605
|
+
allowNull: false,
|
|
606
|
+
field: 'updated_at',
|
|
607
|
+
},
|
|
608
|
+
deletedAt: {
|
|
609
|
+
type: Sequelize.DATE,
|
|
610
|
+
field: 'deleted_at',
|
|
611
|
+
},
|
|
612
|
+
createdBy: {
|
|
613
|
+
type: Sequelize.UUID,
|
|
614
|
+
allowNull: true,
|
|
615
|
+
field: 'created_by',
|
|
616
|
+
},
|
|
617
|
+
updatedBy: {
|
|
618
|
+
type: Sequelize.UUID,
|
|
619
|
+
allowNull: true,
|
|
620
|
+
field: 'updated_by',
|
|
621
|
+
},
|
|
622
|
+
deletedBy: {
|
|
623
|
+
type: Sequelize.UUID,
|
|
624
|
+
allowNull: true,
|
|
625
|
+
field: 'deleted_by',
|
|
626
|
+
},
|
|
627
|
+
});
|
|
628
|
+
}
|
|
629
|
+
};
|
|
630
|
+
const down = async (queryInterface, Sequelize) => {
|
|
631
|
+
await queryInterface.dropTable('sports');
|
|
632
|
+
await queryInterface.dropTable('sport_categories');
|
|
633
|
+
await queryInterface.dropTable('sport_sub_categories');
|
|
634
|
+
await queryInterface.dropTable('sport_roles');
|
|
635
|
+
await queryInterface.dropTable('equipments');
|
|
636
|
+
await queryInterface.dropTable('skills');
|
|
637
|
+
await queryInterface.dropTable('age_groups');
|
|
638
|
+
await queryInterface.dropTable('facility_masters');
|
|
639
|
+
await queryInterface.dropTable('facility_sports');
|
|
640
|
+
await queryInterface.dropTable('units');
|
|
641
|
+
};
|
|
642
|
+
module.exports = { up, down };
|