@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.
Files changed (312) hide show
  1. package/dist/configs/env.d.ts +0 -2
  2. package/dist/configs/env.js +0 -4
  3. package/dist/configs/index.d.ts +0 -2
  4. package/dist/configs/index.js +0 -2
  5. package/dist/constants/app.d.ts +54 -34
  6. package/dist/constants/app.js +64 -42
  7. package/dist/constants/defaultModelAttributes.js +1 -2
  8. package/dist/constants/errorMessages.d.ts +1 -20
  9. package/dist/constants/errorMessages.js +1 -22
  10. package/dist/constants/successMessages.d.ts +0 -14
  11. package/dist/constants/successMessages.js +1 -17
  12. package/dist/db/psql/migrations/20260714095754-create-arena-models.js +642 -0
  13. package/dist/db/psql/migrations/20260720092201-replace-facility-sports-with-sport-group-data.d.ts +2 -0
  14. package/dist/db/psql/migrations/20260720092201-replace-facility-sports-with-sport-group-data.js +138 -0
  15. package/dist/db/psql/migrations/20260722143500-create-school_has_sports.js +71 -0
  16. package/dist/db/psql/migrations/20260728170500-add_sports_academy_id_to_testimonials.js +21 -0
  17. package/dist/db/psql/migrations/20260729150700-add_sports_academy_id_to_notifications.js +21 -0
  18. package/dist/db/psql/migrations/20260804100500-update_facility_master.js +27 -0
  19. package/dist/helpers/index.d.ts +0 -3
  20. package/dist/helpers/index.js +0 -3
  21. package/dist/helpers/utils.d.ts +3 -5
  22. package/dist/helpers/utils.js +31 -58
  23. package/dist/index.d.ts +0 -4
  24. package/dist/index.js +0 -4
  25. package/dist/interfaces/ageGroupInterface.d.ts +12 -0
  26. package/dist/interfaces/assessmentTestInterface.d.ts +24 -0
  27. package/dist/interfaces/categoriesInterface.d.ts +1 -2
  28. package/dist/interfaces/equipmentInterface.d.ts +10 -0
  29. package/dist/interfaces/equipmentInterface.js +2 -0
  30. package/dist/interfaces/facilityMasterInterface.d.ts +9 -0
  31. package/dist/interfaces/facilityMasterInterface.js +2 -0
  32. package/dist/interfaces/index.d.ts +18 -1
  33. package/dist/interfaces/index.js +19 -1
  34. package/dist/interfaces/instituteInterface.d.ts +0 -1
  35. package/dist/interfaces/instituteOwnershipHistoryInterface.d.ts +1 -2
  36. package/dist/interfaces/institutePartnersInterface.d.ts +1 -2
  37. package/dist/interfaces/kipiverseContactFormInterface.d.ts +3 -4
  38. package/dist/interfaces/photosGalleryInterface.d.ts +3 -1
  39. package/dist/interfaces/schoolHasSportInterface.d.ts +7 -0
  40. package/dist/interfaces/schoolHasSportInterface.js +2 -0
  41. package/dist/interfaces/sendNotificationInerface.d.ts +2 -0
  42. package/dist/interfaces/skillInterface.d.ts +19 -0
  43. package/dist/interfaces/skillInterface.js +2 -0
  44. package/dist/interfaces/sportCategoryInterface.d.ts +9 -0
  45. package/dist/interfaces/sportCategoryInterface.js +2 -0
  46. package/dist/interfaces/sportDataApproveInterface.d.ts +19 -0
  47. package/dist/interfaces/sportDataApproveInterface.js +2 -0
  48. package/dist/interfaces/sportGroupDataInterface.d.ts +7 -0
  49. package/dist/interfaces/sportGroupDataInterface.js +2 -0
  50. package/dist/interfaces/sportInfoInterface.d.ts +24 -0
  51. package/dist/interfaces/sportInfoInterface.js +2 -0
  52. package/dist/interfaces/sportInterface.d.ts +10 -0
  53. package/dist/interfaces/sportInterface.js +2 -0
  54. package/dist/interfaces/sportRoleInterface.d.ts +11 -0
  55. package/dist/interfaces/sportRoleInterface.js +2 -0
  56. package/dist/interfaces/sportSubCategoryInterface.d.ts +10 -0
  57. package/dist/interfaces/sportSubCategoryInterface.js +2 -0
  58. package/dist/interfaces/sportsAcademyInterface.d.ts +39 -0
  59. package/dist/interfaces/sportsAcademyInterface.js +2 -0
  60. package/dist/interfaces/studentSportTestInterface.d.ts +20 -0
  61. package/dist/interfaces/studentSportTestInterface.js +2 -0
  62. package/dist/interfaces/subCategoriesInterface.d.ts +1 -2
  63. package/dist/interfaces/subscriptionPlanInterface.d.ts +1 -2
  64. package/dist/interfaces/testimonialInterface.d.ts +1 -0
  65. package/dist/interfaces/unitInterface.d.ts +10 -0
  66. package/dist/interfaces/unitInterface.js +2 -0
  67. package/dist/interfaces/userAcademyMetaInterface.d.ts +17 -0
  68. package/dist/interfaces/userAcademyMetaInterface.js +2 -0
  69. package/dist/interfaces/userAmenityInterface.d.ts +24 -0
  70. package/dist/interfaces/userAmenityInterface.js +2 -0
  71. package/dist/interfaces/userInstituteMetaInterface.d.ts +1 -1
  72. package/dist/interfaces/userInterface.d.ts +1 -3
  73. package/dist/interfaces/vendorCompanyMetaInterface.d.ts +2 -5
  74. package/dist/models/mongodb/additionalDetailsModel.js +1 -1
  75. package/dist/models/mongodb/advertisementModel.js +1 -1
  76. package/dist/models/mongodb/appAnalyticsEventModel.js +1 -1
  77. package/dist/models/mongodb/appointmentHistoryModel.js +1 -1
  78. package/dist/models/mongodb/appointmentModel.js +1 -1
  79. package/dist/models/mongodb/approvalRequestModel.js +1 -1
  80. package/dist/models/mongodb/assessmentTestModel.d.ts +4 -0
  81. package/dist/models/mongodb/assessmentTestModel.js +73 -0
  82. package/dist/models/mongodb/assignFileModel.js +1 -1
  83. package/dist/models/mongodb/attendanceModel.js +1 -1
  84. package/dist/models/mongodb/bDayWishModel.js +1 -1
  85. package/dist/models/mongodb/blogModel.js +1 -1
  86. package/dist/models/mongodb/campusCarnivalModel.js +1 -1
  87. package/dist/models/mongodb/canteenModel.js +1 -1
  88. package/dist/models/mongodb/careerModel.js +1 -1
  89. package/dist/models/mongodb/certificatesHistoryModel.js +1 -1
  90. package/dist/models/mongodb/certificatesManagementModel.js +1 -1
  91. package/dist/models/mongodb/columnModel.js +1 -1
  92. package/dist/models/mongodb/communityGroupMemberModel.js +1 -1
  93. package/dist/models/mongodb/communityGroupModel.js +1 -1
  94. package/dist/models/mongodb/communityMessageModel.js +1 -1
  95. package/dist/models/mongodb/competitionGroupModel.js +1 -1
  96. package/dist/models/mongodb/competitionModel.js +1 -1
  97. package/dist/models/mongodb/competitionUsersModel.js +1 -1
  98. package/dist/models/mongodb/createPollModel.js +1 -1
  99. package/dist/models/mongodb/dailyBookModel.js +1 -1
  100. package/dist/models/mongodb/dashboardManagementModel.js +1 -1
  101. package/dist/models/mongodb/educationOfficerModel.js +1 -1
  102. package/dist/models/mongodb/eventModel.js +1 -1
  103. package/dist/models/mongodb/eventTemplatesModel.js +1 -1
  104. package/dist/models/mongodb/examGroupModel.js +1 -1
  105. package/dist/models/mongodb/examHasAnswerSheetModel.js +1 -1
  106. package/dist/models/mongodb/examModel.js +1 -1
  107. package/dist/models/mongodb/feeConfigModel.js +1 -1
  108. package/dist/models/mongodb/feeReminderTypeModel.js +1 -1
  109. package/dist/models/mongodb/feeSubmissionModel.js +1 -1
  110. package/dist/models/mongodb/feedBackModel.js +1 -1
  111. package/dist/models/mongodb/fileUploadUserDetailsModel.js +1 -1
  112. package/dist/models/mongodb/finalMarkSheetModel.js +1 -1
  113. package/dist/models/mongodb/generateIdCardModel.js +1 -1
  114. package/dist/models/mongodb/grantAndDonationModel.js +1 -1
  115. package/dist/models/mongodb/holidayModel.js +1 -1
  116. package/dist/models/mongodb/index.d.ts +7 -0
  117. package/dist/models/mongodb/index.js +16 -1
  118. package/dist/models/mongodb/informationSupportModel.js +1 -1
  119. package/dist/models/mongodb/inquiryModel.js +1 -1
  120. package/dist/models/mongodb/instituteFeeModel.js +1 -1
  121. package/dist/models/mongodb/invoiceModel.js +1 -1
  122. package/dist/models/mongodb/jobApplyModel.js +1 -1
  123. package/dist/models/mongodb/kipiverseContactFormModel.js +4 -9
  124. package/dist/models/mongodb/markSheetConfigurationModel.js +1 -1
  125. package/dist/models/mongodb/modulePriceModel.js +1 -1
  126. package/dist/models/mongodb/offerAndDiscountModel.js +1 -1
  127. package/dist/models/mongodb/onlineLectureModel.js +1 -1
  128. package/dist/models/mongodb/pastYearRecordTopperModel.js +1 -1
  129. package/dist/models/mongodb/pdcChequeConfigurationModel.js +1 -1
  130. package/dist/models/mongodb/photosGalleryModel.js +6 -2
  131. package/dist/models/mongodb/plannerModel.js +1 -1
  132. package/dist/models/mongodb/pollSelectionModel.js +1 -1
  133. package/dist/models/mongodb/productMetaModel.js +2 -10
  134. package/dist/models/mongodb/replaceTeacherModel.js +1 -1
  135. package/dist/models/mongodb/rmsAmcContractModel.js +1 -1
  136. package/dist/models/mongodb/rmsAuditLogModel.js +1 -1
  137. package/dist/models/mongodb/rmsDigitalResourceAccessModel.js +1 -1
  138. package/dist/models/mongodb/rmsDigitalResourceModel.js +1 -1
  139. package/dist/models/mongodb/rmsResourceDetailsModel.d.ts +7 -1
  140. package/dist/models/mongodb/rmsResourceDetailsModel.js +1 -1
  141. package/dist/models/mongodb/roleHasPermissionModel.js +1 -1
  142. package/dist/models/mongodb/schoolFee1Model.js +1 -1
  143. package/dist/models/mongodb/seatingArrangementModel.js +1 -1
  144. package/dist/models/mongodb/sheetFieldModel.js +1 -1
  145. package/dist/models/mongodb/sportDataApproveModel.d.ts +4 -0
  146. package/dist/models/mongodb/sportDataApproveModel.js +117 -0
  147. package/dist/models/mongodb/sportInfoModel.d.ts +4 -0
  148. package/dist/models/mongodb/sportInfoModel.js +72 -0
  149. package/dist/models/mongodb/sportsAcademyModel.d.ts +4 -0
  150. package/dist/models/mongodb/sportsAcademyModel.js +89 -0
  151. package/dist/models/mongodb/studentSportTestModel.d.ts +4 -0
  152. package/dist/models/mongodb/studentSportTestModel.js +68 -0
  153. package/dist/models/mongodb/subjectIndexModel.js +1 -1
  154. package/dist/models/mongodb/subscriptionConfigurationModel.js +1 -1
  155. package/dist/models/mongodb/subscriptionPlanModel.js +1 -6
  156. package/dist/models/mongodb/taskManagementModel.js +1 -1
  157. package/dist/models/mongodb/themeModel.js +1 -1
  158. package/dist/models/mongodb/ticketRaiseModel.js +1 -1
  159. package/dist/models/mongodb/uniqueNumberCounterModel.js +1 -1
  160. package/dist/models/mongodb/userAcademyMetaModel.d.ts +4 -0
  161. package/dist/models/mongodb/userAcademyMetaModel.js +109 -0
  162. package/dist/models/mongodb/userAmenityModel.d.ts +4 -0
  163. package/dist/models/mongodb/userAmenityModel.js +73 -0
  164. package/dist/models/mongodb/userDetailsModel.js +1 -1
  165. package/dist/models/mongodb/userFinalResultModel.js +1 -1
  166. package/dist/models/mongodb/userInstituteMetaModel.js +5 -1
  167. package/dist/models/mongodb/userSchoolMetaModel.d.ts +6 -1
  168. package/dist/models/mongodb/userSchoolMetaModel.js +3 -36
  169. package/dist/models/mongodb/vendorCompanyMetaModel.js +2 -16
  170. package/dist/models/mongodb/videoAnalystModel.js +1 -1
  171. package/dist/models/mongodb/walletTransactionModel.js +1 -1
  172. package/dist/models/psql/SubCategoriesModel.d.ts +1 -2
  173. package/dist/models/psql/SubCategoriesModel.js +0 -5
  174. package/dist/models/psql/ageGroupModel.d.ts +22 -0
  175. package/dist/models/psql/ageGroupModel.js +76 -0
  176. package/dist/models/psql/categoriesModel.d.ts +1 -2
  177. package/dist/models/psql/categoriesModel.js +0 -5
  178. package/dist/models/psql/equipmentModel.d.ts +20 -0
  179. package/dist/models/psql/equipmentModel.js +57 -0
  180. package/dist/models/psql/facilityMasterModel.d.ts +18 -0
  181. package/dist/models/psql/facilityMasterModel.js +74 -0
  182. package/dist/models/psql/fileStorageModel.js +4 -3
  183. package/dist/models/psql/index.d.ts +11 -1
  184. package/dist/models/psql/index.js +25 -4
  185. package/dist/models/psql/instituteModel.d.ts +0 -1
  186. package/dist/models/psql/instituteModel.js +2 -5
  187. package/dist/models/psql/instituteOwnershipHistoryModel.d.ts +1 -2
  188. package/dist/models/psql/instituteOwnershipHistoryModel.js +3 -8
  189. package/dist/models/psql/institutePartnersModel.d.ts +1 -2
  190. package/dist/models/psql/institutePartnersModel.js +3 -8
  191. package/dist/models/psql/schoolHasSportModel.d.ts +17 -0
  192. package/dist/models/psql/schoolHasSportModel.js +76 -0
  193. package/dist/models/psql/sendNotificationModel.d.ts +1 -0
  194. package/dist/models/psql/sendNotificationModel.js +5 -0
  195. package/dist/models/psql/skillModel.d.ts +25 -0
  196. package/dist/models/psql/skillModel.js +99 -0
  197. package/dist/models/psql/sportCategoryModel.d.ts +19 -0
  198. package/dist/models/psql/sportCategoryModel.js +53 -0
  199. package/dist/models/psql/sportGroupDataModel.d.ts +13 -0
  200. package/dist/models/psql/sportGroupDataModel.js +64 -0
  201. package/dist/models/psql/sportModel.d.ts +20 -0
  202. package/dist/models/psql/sportModel.js +58 -0
  203. package/dist/models/psql/sportRoleModel.d.ts +21 -0
  204. package/dist/models/psql/sportRoleModel.js +71 -0
  205. package/dist/models/psql/sportSubCategoryModel.d.ts +20 -0
  206. package/dist/models/psql/sportSubCategoryModel.js +75 -0
  207. package/dist/models/psql/testimonialModel.d.ts +1 -0
  208. package/dist/models/psql/testimonialModel.js +8 -7
  209. package/dist/models/psql/unitModel.d.ts +20 -0
  210. package/dist/models/psql/unitModel.js +57 -0
  211. package/dist/models/psql/userModel.d.ts +1 -3
  212. package/dist/models/psql/userModel.js +2 -2
  213. package/dist/types/ageGroupType.d.ts +2 -0
  214. package/dist/types/ageGroupType.js +2 -0
  215. package/dist/types/assessmentTestType.d.ts +2 -0
  216. package/dist/types/assessmentTestType.js +2 -0
  217. package/dist/types/commonType.d.ts +1 -29
  218. package/dist/types/equipmentType.d.ts +2 -0
  219. package/dist/types/equipmentType.js +2 -0
  220. package/dist/types/facilityMasterType.d.ts +3 -0
  221. package/dist/types/facilityMasterType.js +2 -0
  222. package/dist/types/index.d.ts +18 -1
  223. package/dist/types/index.js +19 -1
  224. package/dist/types/schoolHasSportType.d.ts +2 -0
  225. package/dist/types/schoolHasSportType.js +2 -0
  226. package/dist/types/skillType.d.ts +2 -0
  227. package/dist/types/skillType.js +2 -0
  228. package/dist/types/sportCategoryType.d.ts +2 -0
  229. package/dist/types/sportCategoryType.js +2 -0
  230. package/dist/types/sportDataApproveType.d.ts +2 -0
  231. package/dist/types/sportDataApproveType.js +2 -0
  232. package/dist/types/sportGroupDataType.d.ts +3 -0
  233. package/dist/types/sportGroupDataType.js +2 -0
  234. package/dist/types/sportInfoType.d.ts +2 -0
  235. package/dist/types/sportInfoType.js +2 -0
  236. package/dist/types/sportRoleType.d.ts +2 -0
  237. package/dist/types/sportRoleType.js +2 -0
  238. package/dist/types/sportSubCategoryType.d.ts +2 -0
  239. package/dist/types/sportSubCategoryType.js +2 -0
  240. package/dist/types/sportType.d.ts +2 -0
  241. package/dist/types/sportType.js +2 -0
  242. package/dist/types/sportsAcademyType.d.ts +2 -0
  243. package/dist/types/sportsAcademyType.js +2 -0
  244. package/dist/types/studentSportTestType.d.ts +2 -0
  245. package/dist/types/studentSportTestType.js +2 -0
  246. package/dist/types/unitType.d.ts +2 -0
  247. package/dist/types/unitType.js +2 -0
  248. package/dist/types/userAcademyMetaType.d.ts +2 -0
  249. package/dist/types/userAcademyMetaType.js +2 -0
  250. package/dist/types/userAmenityType.d.ts +2 -0
  251. package/dist/types/userAmenityType.js +2 -0
  252. package/package.json +2 -10
  253. package/dist/commonValidator/commandValidator.d.ts +0 -27
  254. package/dist/commonValidator/commandValidator.js +0 -225
  255. package/dist/commonValidator/index.d.ts +0 -3
  256. package/dist/commonValidator/index.js +0 -24
  257. package/dist/commonValidator/joiCommonValidator.d.ts +0 -12
  258. package/dist/commonValidator/joiCommonValidator.js +0 -47
  259. package/dist/commonValidator/joiSchemaBuilder.d.ts +0 -6
  260. package/dist/commonValidator/joiSchemaBuilder.js +0 -70
  261. package/dist/configs/logger.d.ts +0 -2
  262. package/dist/configs/logger.js +0 -44
  263. package/dist/configs/redisConfig.d.ts +0 -4
  264. package/dist/configs/redisConfig.js +0 -32
  265. package/dist/db/psql/migrations/20260714111425-change_status_enum_to_string_in_institutes.js +0 -46
  266. package/dist/db/psql/migrations/20260714131500-add_note_to_institutes.js +0 -20
  267. package/dist/db/psql/migrations/20260715150000-create-ai-model-keys.js +0 -156
  268. package/dist/db/psql/migrations/20260717071354-add_type_to_categories.js +0 -19
  269. package/dist/db/psql/migrations/20260717072745-add_type_to_sub_categories.d.ts +0 -2
  270. package/dist/db/psql/migrations/20260717072745-add_type_to_sub_categories.js +0 -19
  271. package/dist/db/psql/migrations/20260717095051-add_status_to_users.d.ts +0 -2
  272. package/dist/db/psql/migrations/20260717095051-add_status_to_users.js +0 -19
  273. package/dist/db/psql/migrations/20260721000001-add-deleted-at-to-rms-maintenance-activities.d.ts +0 -2
  274. package/dist/db/psql/migrations/20260721000001-add-deleted-at-to-rms-maintenance-activities.js +0 -12
  275. package/dist/db/psql/migrations/20260721000002-change-uploaded-from-enum-to-string-in-file-storage.d.ts +0 -2
  276. package/dist/db/psql/migrations/20260721000002-change-uploaded-from-enum-to-string-in-file-storage.js +0 -42
  277. package/dist/db/psql/migrations/20260722130134-add_portfolio_theme_to_users.d.ts +0 -2
  278. package/dist/db/psql/migrations/20260722130134-add_portfolio_theme_to_users.js +0 -22
  279. package/dist/db/psql/migrations/20260727123149-add_vendorCompanyId_to_institute_ownership_histories.js +0 -23
  280. package/dist/db/psql/migrations/20260727130802-add_vendorCompanyId_to_institute_partners.d.ts +0 -2
  281. package/dist/db/psql/migrations/20260727130802-add_vendorCompanyId_to_institute_partners.js +0 -23
  282. package/dist/db/psql/migrations/20260727132312-make_instituteId_and_vendorCompanyId_optional_in_institute_partners.d.ts +0 -2
  283. package/dist/db/psql/migrations/20260727132312-make_instituteId_and_vendorCompanyId_optional_in_institute_partners.js +0 -28
  284. package/dist/db/psql/migrations/20260727132747-make_instituteId_and_vendorCompanyId_optional_in_institute_ownership_histories.d.ts +0 -2
  285. package/dist/db/psql/migrations/20260727132747-make_instituteId_and_vendorCompanyId_optional_in_institute_ownership_histories.js +0 -25
  286. package/dist/db/psql/migrations/20260729055118-institutePartners.d.ts +0 -2
  287. package/dist/db/psql/migrations/20260729055118-institutePartners.js +0 -28
  288. package/dist/db/psql/migrations/20260729055121-instituteOwnershipHistory.d.ts +0 -2
  289. package/dist/db/psql/migrations/20260729055121-instituteOwnershipHistory.js +0 -25
  290. package/dist/helpers/sendEmail.d.ts +0 -3
  291. package/dist/helpers/sendEmail.js +0 -117
  292. package/dist/helpers/sendNotification.d.ts +0 -4
  293. package/dist/helpers/sendNotification.js +0 -34
  294. package/dist/helpers/sendSMS.d.ts +0 -5
  295. package/dist/helpers/sendSMS.js +0 -34
  296. package/dist/interfaces/aiModelKeysInterface.d.ts +0 -15
  297. package/dist/models/psql/aiModelKeysModel.d.ts +0 -20
  298. package/dist/models/psql/aiModelKeysModel.js +0 -70
  299. package/dist/queues/emailQueue.d.ts +0 -3
  300. package/dist/queues/emailQueue.js +0 -22
  301. package/dist/queues/emailWorker.d.ts +0 -3
  302. package/dist/queues/emailWorker.js +0 -33
  303. package/dist/queues/index.d.ts +0 -2
  304. package/dist/queues/index.js +0 -18
  305. package/dist/types/aiModelKeysType.d.ts +0 -3
  306. /package/dist/db/psql/migrations/{20260714111425-change_status_enum_to_string_in_institutes.d.ts → 20260714095754-create-arena-models.d.ts} +0 -0
  307. /package/dist/db/psql/migrations/{20260714131500-add_note_to_institutes.d.ts → 20260722143500-create-school_has_sports.d.ts} +0 -0
  308. /package/dist/db/psql/migrations/{20260715150000-create-ai-model-keys.d.ts → 20260728170500-add_sports_academy_id_to_testimonials.d.ts} +0 -0
  309. /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
  310. /package/dist/db/psql/migrations/{20260717071354-add_type_to_categories.d.ts → 20260804100500-update_facility_master.d.ts} +0 -0
  311. /package/dist/interfaces/{aiModelKeysInterface.js → ageGroupInterface.js} +0 -0
  312. /package/dist/{types/aiModelKeysType.js → interfaces/assessmentTestInterface.js} +0 -0
@@ -13,5 +13,7 @@ export interface IGalleryAlbumAttributes extends IDefaultAttributes, Document {
13
13
  status: COMMAN_STATUS;
14
14
  instituteId: string;
15
15
  date?: Date;
16
- academicCalendarId: string;
16
+ academicCalendarId?: string;
17
+ sportsAcademyId?: string;
18
+ insId?: string;
17
19
  }
@@ -0,0 +1,7 @@
1
+ import { IDefaultAttributes } from './commonInterface';
2
+ export interface ISchoolHasSportModelAttributes extends IDefaultAttributes {
3
+ id: string;
4
+ instituteId: string;
5
+ academicCalendarId: string;
6
+ sportId: string;
7
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -10,6 +10,7 @@ export interface INotificationModelAttributes extends IDefaultAttributes {
10
10
  viewDate?: Date;
11
11
  status: NOTIFICATION_STATUS;
12
12
  instituteId?: string;
13
+ sportsAcademyId?: string;
13
14
  moduleType: NOTIFICATION_MODULE_TYPE;
14
15
  }
15
16
  export interface INotification {
@@ -18,4 +19,5 @@ export interface INotification {
18
19
  senderId: string;
19
20
  deviceToken: string;
20
21
  instituteId?: string;
22
+ sportsAcademyId?: string;
21
23
  }
@@ -0,0 +1,19 @@
1
+ import { BETTER_VALUE_TYPE, COMMAN_STATUS } from '../constants/app';
2
+ import { IDefaultAttributes } from './commonInterface';
3
+ import { IUnitModelAttributes } from './unitInterface';
4
+ import { ISportModelAttributes } from './sportInterface';
5
+ export interface ISkillModelAttributes extends IDefaultAttributes {
6
+ id: string;
7
+ sportId?: string;
8
+ unitId?: string;
9
+ name: string;
10
+ code: string;
11
+ description?: string;
12
+ minValue?: number;
13
+ maxValue?: number;
14
+ betterValueType?: BETTER_VALUE_TYPE;
15
+ valueSide?: string[];
16
+ status: COMMAN_STATUS;
17
+ unit?: IUnitModelAttributes | null;
18
+ sport?: ISportModelAttributes | null;
19
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,9 @@
1
+ import { COMMAN_STATUS } from '../constants/app';
2
+ import { IDefaultAttributes } from './commonInterface';
3
+ export interface ISportCategoryModelAttributes extends IDefaultAttributes {
4
+ id: string;
5
+ name: string;
6
+ code: string;
7
+ description?: string;
8
+ status: COMMAN_STATUS;
9
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,19 @@
1
+ import { Document } from 'mongoose';
2
+ import { SPORT_DATA_APPROVAL_STATUS, SPORT_DATA_MODULE, SPORT_DATA_ACTION } from '../constants/app';
3
+ import { IDefaultAttributes } from './commonInterface';
4
+ export interface ISportDataApproveModelAttributes extends IDefaultAttributes, Document {
5
+ moduleType: SPORT_DATA_MODULE;
6
+ action: SPORT_DATA_ACTION;
7
+ status: SPORT_DATA_APPROVAL_STATUS;
8
+ payload: any;
9
+ acceptedData?: any;
10
+ referenceId?: string;
11
+ reason?: string;
12
+ createdBy?: string;
13
+ reviewedBy?: string;
14
+ reviewTime?: Date;
15
+ acceptedBy?: string;
16
+ acceptedTime?: Date;
17
+ rejectedBy?: string;
18
+ rejectedTime?: Date;
19
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,7 @@
1
+ import { IDefaultAttributes } from "./commonInterface";
2
+ export interface ISportGroupDataModelAttributes extends IDefaultAttributes {
3
+ id: string;
4
+ sportId: string;
5
+ facilityId?: string | null;
6
+ equipmentId?: string | null;
7
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,24 @@
1
+ import { Document } from 'mongoose';
2
+ import { COMMAN_STATUS } from '../constants/app';
3
+ import { IDefaultAttributes } from './commonInterface';
4
+ export interface ISportInfoSkill {
5
+ ageGroupId: string;
6
+ skillId: string;
7
+ minValue?: number;
8
+ maxValue?: number;
9
+ value?: string;
10
+ }
11
+ export interface ISportInfoModelAttributes extends IDefaultAttributes, Document {
12
+ sportId: string;
13
+ setupGuide?: string;
14
+ images?: string[];
15
+ documents?: string[];
16
+ categories?: string[];
17
+ subCategories?: string[];
18
+ equipments?: string[];
19
+ amenitiesNeeded?: string[];
20
+ infrastructure?: string[];
21
+ specificTests?: string[];
22
+ skills?: ISportInfoSkill[];
23
+ status: COMMAN_STATUS;
24
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,10 @@
1
+ import { COMMAN_STATUS } from '../constants/app';
2
+ import { IDefaultAttributes } from './commonInterface';
3
+ export interface ISportModelAttributes extends IDefaultAttributes {
4
+ id: string;
5
+ name: string;
6
+ code: string;
7
+ description?: string;
8
+ icon?: string;
9
+ status: COMMAN_STATUS;
10
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,11 @@
1
+ import { COMMAN_STATUS } from '../constants/app';
2
+ import { IDefaultAttributes } from './commonInterface';
3
+ export interface ISportRoleModelAttributes extends IDefaultAttributes {
4
+ id: string;
5
+ sportId: string;
6
+ name: string;
7
+ code: string;
8
+ description?: string;
9
+ icon?: string;
10
+ status: COMMAN_STATUS;
11
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,10 @@
1
+ import { COMMAN_STATUS } from '../constants/app';
2
+ import { IDefaultAttributes } from './commonInterface';
3
+ export interface ISportSubCategoryModelAttributes extends IDefaultAttributes {
4
+ id: string;
5
+ sportId: string;
6
+ categoryId: string;
7
+ name: string;
8
+ code: string;
9
+ status: COMMAN_STATUS;
10
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,39 @@
1
+ import { Document } from 'mongoose';
2
+ import { COMMAN_STATUS } from '../constants/app';
3
+ import { IDefaultAttributes } from './commonInterface';
4
+ export interface IMobileDetail {
5
+ name: string;
6
+ mobile: string;
7
+ }
8
+ export interface ISportsHistroy {
9
+ sportId: number;
10
+ startDate: Date;
11
+ endDate?: Date;
12
+ }
13
+ export interface ISportsAcademyModelAttributes extends IDefaultAttributes, Document {
14
+ id: string;
15
+ name: string;
16
+ globalId: string;
17
+ email: string;
18
+ websiteUrl?: string;
19
+ description?: string;
20
+ addressLine1?: string;
21
+ addressLine2?: string;
22
+ pinCode?: string;
23
+ city?: number;
24
+ state?: number;
25
+ country?: number;
26
+ contactPerson?: string;
27
+ mobiles?: IMobileDetail[];
28
+ youtube?: string;
29
+ instagram?: string;
30
+ facebook?: string;
31
+ whatsapp?: string;
32
+ ownerId?: string;
33
+ img?: string;
34
+ bannerImg?: string;
35
+ status: COMMAN_STATUS;
36
+ sportsIds?: string[];
37
+ sportsHistroy?: ISportsHistroy[];
38
+ amenitiesIds?: string[];
39
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,20 @@
1
+ import { Document } from 'mongoose';
2
+ import { IDefaultAttributes } from './commonInterface';
3
+ import { STUDENT_SPORT_TEST_STATUS } from '../constants/app';
4
+ export interface IStudentSportTestResultItem {
5
+ skillId?: string;
6
+ title?: string;
7
+ value: string;
8
+ unit?: string;
9
+ remarks?: string;
10
+ }
11
+ export interface IStudentSportTestModelAttributes extends IDefaultAttributes, Document {
12
+ id: string;
13
+ userId: string;
14
+ instituteId: string;
15
+ academicCalendarId: string;
16
+ userMetaId: string;
17
+ status: STUDENT_SPORT_TEST_STATUS;
18
+ testId: string | null;
19
+ results: IStudentSportTestResultItem[];
20
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,10 +1,9 @@
1
1
  import { IDefaultAttributes } from './commonInterface';
2
- import { CATEGORY_TYPE, COMMAN_STATUS } from '../constants/app';
2
+ import { COMMAN_STATUS } from '../constants/app';
3
3
  export interface ISubCategoriesModelAttributes extends IDefaultAttributes {
4
4
  id: string;
5
5
  name: string;
6
6
  categoryId: string;
7
7
  instituteId?: string;
8
8
  status: COMMAN_STATUS;
9
- type: CATEGORY_TYPE;
10
9
  }
@@ -1,5 +1,5 @@
1
1
  import { Document } from 'mongoose';
2
- import { APP_TYPE, COMMAN_STATUS, SUBSCRIPTION_PLAN_CHARGE_INTERVAL, DISCOUNT_TYPE, SUBSCRIPTION_PLAN_FILES_TYPE, VALID_CURRENCY, USER_TYPES, SUBSCRIPTION_PLAN_TYPE, PLAN_SELL_STATUS } from '../constants/app';
2
+ import { APP_TYPE, COMMAN_STATUS, SUBSCRIPTION_PLAN_CHARGE_INTERVAL, DISCOUNT_TYPE, SUBSCRIPTION_PLAN_FILES_TYPE, VALID_CURRENCY, USER_TYPES, SUBSCRIPTION_PLAN_TYPE } from '../constants/app';
3
3
  import { IDefaultAttributes } from './commonInterface';
4
4
  export interface ISubscriptionPlanFiles {
5
5
  type: SUBSCRIPTION_PLAN_FILES_TYPE;
@@ -33,5 +33,4 @@ export interface ISubscriptionPlanModelAttributes extends IDefaultAttributes, Do
33
33
  maxFreeCourses?: number;
34
34
  maxFreeCoursePrice?: number;
35
35
  maxNumberOfSchool?: number;
36
- sellStatus?: PLAN_SELL_STATUS;
37
36
  }
@@ -10,4 +10,5 @@ export interface ITestimonialModelAttributes extends IDefaultAttributes {
10
10
  userType: USER_TYPES;
11
11
  class?: string | null;
12
12
  academicCalendarId?: string;
13
+ sportsAcademyId?: string;
13
14
  }
@@ -0,0 +1,10 @@
1
+ import { COMMAN_STATUS } from '../constants/app';
2
+ import { IDefaultAttributes } from './commonInterface';
3
+ export interface IUnitModelAttributes extends IDefaultAttributes {
4
+ id: string;
5
+ name: string;
6
+ code: string;
7
+ symbol: string;
8
+ description?: string;
9
+ status: COMMAN_STATUS;
10
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,17 @@
1
+ import { Document } from 'mongoose';
2
+ import { IDefaultAttributes } from './commonInterface';
3
+ import { COMMAN_STATUS, USER_ACADEMY_META_STATUS, USER_TYPES } from '../constants/app';
4
+ export interface IUserAcademyMetaAttributes extends IDefaultAttributes, Document {
5
+ id: string;
6
+ userId: string;
7
+ sportsAcademyId: string;
8
+ userType: USER_TYPES;
9
+ status?: USER_ACADEMY_META_STATUS;
10
+ sportsIds?: string[];
11
+ joiningDate?: Date;
12
+ endTime?: Date;
13
+ rollNumber?: string;
14
+ designation?: string;
15
+ additionalField?: object;
16
+ isActive: COMMAN_STATUS;
17
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,24 @@
1
+ import { Document } from 'mongoose';
2
+ import { AMENITY_STATUS } from '../constants/app';
3
+ import { IDefaultAttributes } from './commonInterface';
4
+ export interface IUserAmenityFacilityDetail {
5
+ facilityMasterId: string;
6
+ count: number;
7
+ description?: string;
8
+ sportsIds?: string[];
9
+ }
10
+ export interface IUserAmenityModelAttributes extends IDefaultAttributes, Document {
11
+ id: string;
12
+ name: string;
13
+ description?: string;
14
+ addressLine1?: string;
15
+ addressLine2?: string;
16
+ pinCode?: string;
17
+ city?: number;
18
+ state?: number;
19
+ country?: number;
20
+ images?: string[];
21
+ ownerId?: string;
22
+ status: AMENITY_STATUS;
23
+ facilities?: IUserAmenityFacilityDetail[];
24
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -62,6 +62,7 @@ export interface IUserInstituteMetaAttributes extends IDefaultAttributes, Docume
62
62
  isFeeCollectionCreated: boolean;
63
63
  designationId?: string;
64
64
  studentProfileImage?: string;
65
+ selectedSportsIds?: string[];
65
66
  }
66
67
  export interface IUserWiseData {
67
68
  userId: string;
@@ -83,5 +84,4 @@ export interface IUserWiseData {
83
84
  section: string | null;
84
85
  subSection: string | null;
85
86
  userInstituteMetaId: string;
86
- isActive: COMMAN_STATUS;
87
87
  }
@@ -1,4 +1,4 @@
1
- import { APP_TYPE, EMAIL_VERIFICATION, MOBILE_VERIFICATION, USER_STATUS, USER_TYPES } from '../constants/app';
1
+ import { APP_TYPE, EMAIL_VERIFICATION, MOBILE_VERIFICATION, USER_TYPES } from '../constants/app';
2
2
  import { IDefaultAttributes } from './commonInterface';
3
3
  export interface IUserAttributes extends IDefaultAttributes {
4
4
  id: string;
@@ -42,6 +42,4 @@ export interface IUserAttributes extends IDefaultAttributes {
42
42
  district?: string;
43
43
  area?: string;
44
44
  taluka?: string;
45
- status?: USER_STATUS;
46
- portfolioTheme?: string;
47
45
  }
@@ -1,6 +1,6 @@
1
1
  import { Document } from 'mongoose';
2
2
  import { IDefaultAttributes } from './commonInterface';
3
- import { VENDOR_COMPANY_META_STATUS, VENDOR_COMPANY_TYPE } from '../constants/app';
3
+ import { VENDOR_COMPANY_META_STATUS } from '../constants/app';
4
4
  export interface IBankDetails {
5
5
  accountHolderName: string;
6
6
  accountNumber: string;
@@ -28,7 +28,7 @@ export interface IVendorCompanyMetaAttributes extends IDefaultAttributes, Docume
28
28
  logo?: string;
29
29
  banner?: string;
30
30
  address1: string;
31
- address2?: string;
31
+ address2: string;
32
32
  area: string;
33
33
  district?: string;
34
34
  pinCode: string;
@@ -40,7 +40,4 @@ export interface IVendorCompanyMetaAttributes extends IDefaultAttributes, Docume
40
40
  description?: string;
41
41
  documents: ICompanyDocument[];
42
42
  bankDetails: IBankDetails;
43
- partnersIds?: string[];
44
- type: VENDOR_COMPANY_TYPE;
45
- isActive?: boolean;
46
43
  }
@@ -70,5 +70,5 @@ const AdditionalDetailSchema = new mongoose_1.Schema({
70
70
  timestamps: true,
71
71
  versionKey: false,
72
72
  });
73
- const AdditionalDetailModel = mongoose_1.default.models['additionalDetails'] || mongoose_1.default.model('additionalDetails', AdditionalDetailSchema);
73
+ const AdditionalDetailModel = mongoose_1.default.model('additionalDetails', AdditionalDetailSchema);
74
74
  exports.default = AdditionalDetailModel;
@@ -105,5 +105,5 @@ const advertisementSchema = new mongoose_1.Schema({
105
105
  timestamps: true,
106
106
  versionKey: false,
107
107
  });
108
- const AdvertisementModel = mongoose_1.default.models['advertisements'] || mongoose_1.default.model('advertisements', advertisementSchema);
108
+ const AdvertisementModel = mongoose_1.default.model('advertisements', advertisementSchema);
109
109
  exports.default = AdvertisementModel;
@@ -133,5 +133,5 @@ const appAnalyticsEvent = new mongoose_1.Schema({
133
133
  timestamps: true,
134
134
  versionKey: false,
135
135
  });
136
- const AppAnalyticsEventModel = mongoose_1.default.models['app_analytics_event'] || mongoose_1.default.model('app_analytics_event', appAnalyticsEvent);
136
+ const AppAnalyticsEventModel = mongoose_1.default.model('app_analytics_event', appAnalyticsEvent);
137
137
  exports.default = AppAnalyticsEventModel;
@@ -122,5 +122,5 @@ const appointmentHistorySchema = new mongoose_1.Schema({
122
122
  timestamps: true,
123
123
  versionKey: false,
124
124
  });
125
- const AppointmentHistoryModel = mongoose_1.default.models['appointment_history'] || mongoose_1.default.model('appointment_history', appointmentHistorySchema);
125
+ const AppointmentHistoryModel = mongoose_1.default.model('appointment_history', appointmentHistorySchema);
126
126
  exports.default = AppointmentHistoryModel;
@@ -123,5 +123,5 @@ const appointmentSchema = new mongoose_1.Schema({
123
123
  timestamps: true,
124
124
  versionKey: false,
125
125
  });
126
- const AppointmentModel = mongoose_1.default.models['appointments'] || mongoose_1.default.model('appointments', appointmentSchema);
126
+ const AppointmentModel = mongoose_1.default.model('appointments', appointmentSchema);
127
127
  exports.default = AppointmentModel;
@@ -121,5 +121,5 @@ approveRequestSchema.index({
121
121
  status: 1,
122
122
  createdBy: 1,
123
123
  });
124
- const ApproveRequestModel = mongoose_1.default.models['approveRequest'] || mongoose_1.default.model('approveRequest', approveRequestSchema);
124
+ const ApproveRequestModel = mongoose_1.default.model('approveRequest', approveRequestSchema);
125
125
  exports.default = ApproveRequestModel;
@@ -0,0 +1,4 @@
1
+ import { Model } from 'mongoose';
2
+ import { IAssessmentTestModelAttributes } from '../../interfaces/assessmentTestInterface';
3
+ declare const AssessmentTestModel: Model<IAssessmentTestModelAttributes>;
4
+ export default AssessmentTestModel;
@@ -0,0 +1,73 @@
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 targetSkillSchema = new mongoose_1.Schema({
39
+ skillId: { type: String, required: true },
40
+ ageGroupId: { type: String, required: false },
41
+ minValue: { type: Number, required: false },
42
+ value: { type: String, required: false },
43
+ }, { _id: false });
44
+ const assessmentTestSchema = new mongoose_1.Schema({
45
+ sportId: { type: String, required: false },
46
+ sportRoleId: { type: String, required: false },
47
+ // ageGroupId: { type: String, required: false },
48
+ name: { type: String, required: true },
49
+ code: { type: String, required: true },
50
+ description: { type: String, required: false },
51
+ passingRules: { type: String, required: false },
52
+ scoreFormula: { type: String, required: false },
53
+ documents: { type: [String], required: false, default: [] },
54
+ videos: { type: [String], required: false, default: [] },
55
+ targetSkills: { type: [targetSkillSchema], required: false, default: [] },
56
+ requiredEquipment: { type: [String], required: false, default: [] },
57
+ status: {
58
+ type: String,
59
+ enum: Object.values(app_1.ASSESSMENT_TEST_STATUS),
60
+ required: true,
61
+ default: app_1.ASSESSMENT_TEST_STATUS.ACTIVE,
62
+ },
63
+ createdBy: { type: String, required: false },
64
+ updatedBy: { type: String, required: false },
65
+ deletedBy: { type: String, required: false },
66
+ deletedAt: { type: Date, default: null },
67
+ }, {
68
+ timestamps: true,
69
+ versionKey: false,
70
+ virtuals: true,
71
+ });
72
+ const AssessmentTestModel = mongoose_1.default.model('assessmentTest', assessmentTestSchema);
73
+ exports.default = AssessmentTestModel;
@@ -70,5 +70,5 @@ const AssignFileSchema = new mongoose_1.Schema({
70
70
  timestamps: true,
71
71
  versionKey: false,
72
72
  });
73
- const AssignFileModel = mongoose_1.default.models['assign_file'] || mongoose_1.default.model('assign_file', AssignFileSchema);
73
+ const AssignFileModel = mongoose_1.default.model('assign_file', AssignFileSchema);
74
74
  exports.default = AssignFileModel;
@@ -178,5 +178,5 @@ attendanceModelSchema.index({
178
178
  instituteId: 1,
179
179
  'users.userId': 1,
180
180
  });
181
- const AttendanceModel = mongoose_1.default.models['attendance'] || mongoose_1.default.model('attendance', attendanceModelSchema);
181
+ const AttendanceModel = mongoose_1.default.model('attendance', attendanceModelSchema);
182
182
  exports.default = AttendanceModel;
@@ -52,5 +52,5 @@ const bDayWishModelSchema = new mongoose_1.Schema({
52
52
  timestamps: true,
53
53
  versionKey: false,
54
54
  });
55
- const BDayWishModel = mongoose_1.default.models['b_day_wish'] || mongoose_1.default.model('b_day_wish', bDayWishModelSchema);
55
+ const BDayWishModel = mongoose_1.default.model('b_day_wish', bDayWishModelSchema);
56
56
  exports.default = BDayWishModel;
@@ -92,5 +92,5 @@ const blogModelSchema = new mongoose_1.Schema({
92
92
  timestamps: true,
93
93
  versionKey: false,
94
94
  });
95
- const BlogModel = mongoose_1.default.models['blog'] || mongoose_1.default.model('blog', blogModelSchema);
95
+ const BlogModel = mongoose_1.default.model('blog', blogModelSchema);
96
96
  exports.default = BlogModel;
@@ -101,5 +101,5 @@ const CampusCarnivalSchema = new mongoose_1.Schema({
101
101
  timestamps: true,
102
102
  versionKey: false,
103
103
  });
104
- const CampusCarnivalModel = mongoose_1.default.models['campus_carnival'] || mongoose_1.default.model('campus_carnival', CampusCarnivalSchema);
104
+ const CampusCarnivalModel = mongoose_1.default.model('campus_carnival', CampusCarnivalSchema);
105
105
  exports.default = CampusCarnivalModel;
@@ -56,5 +56,5 @@ const canteenSchema = new mongoose_1.Schema({
56
56
  timestamps: true,
57
57
  versionKey: false,
58
58
  });
59
- const CanteenModel = mongoose_1.default.models['canteen'] || mongoose_1.default.model('canteen', canteenSchema);
59
+ const CanteenModel = mongoose_1.default.model('canteen', canteenSchema);
60
60
  exports.default = CanteenModel;
@@ -79,5 +79,5 @@ const CareerSchema = new mongoose_1.Schema({
79
79
  timestamps: true,
80
80
  versionKey: false,
81
81
  });
82
- const CareerModel = mongoose_1.default.models['career'] || mongoose_1.default.model('career', CareerSchema);
82
+ const CareerModel = mongoose_1.default.model('career', CareerSchema);
83
83
  exports.default = CareerModel;
@@ -68,5 +68,5 @@ const CertificatesHistorySchema = new mongoose_1.Schema({
68
68
  required: false,
69
69
  },
70
70
  }, { timestamps: true, versionKey: false });
71
- const CertificatesHistory = mongoose_1.default.models['certificates_history'] || mongoose_1.default.model('certificates_history', CertificatesHistorySchema);
71
+ const CertificatesHistory = mongoose_1.default.model('certificates_history', CertificatesHistorySchema);
72
72
  exports.default = CertificatesHistory;
@@ -80,5 +80,5 @@ const CertificatesManagementSchema = new mongoose_1.Schema({
80
80
  required: false,
81
81
  },
82
82
  }, { timestamps: true, versionKey: false });
83
- const CertificatesManagement = mongoose_1.default.models['certificates_details'] || mongoose_1.default.model('certificates_details', CertificatesManagementSchema);
83
+ const CertificatesManagement = mongoose_1.default.model('certificates_details', CertificatesManagementSchema);
84
84
  exports.default = CertificatesManagement;
@@ -72,5 +72,5 @@ const ColumnSchema = new mongoose_1.Schema({
72
72
  timestamps: true,
73
73
  versionKey: false,
74
74
  });
75
- const ColumnModel = mongoose_1.default.models['column_list'] || mongoose_1.default.model('column_list', ColumnSchema);
75
+ const ColumnModel = mongoose_1.default.model('column_list', ColumnSchema);
76
76
  exports.default = ColumnModel;
@@ -55,5 +55,5 @@ const groupMemberSchema = new mongoose_1.Schema({
55
55
  timestamps: true,
56
56
  versionKey: false,
57
57
  });
58
- const CommunityGroupMemberModel = mongoose_1.default.models['group_member'] || mongoose_1.default.model('group_member', groupMemberSchema);
58
+ const CommunityGroupMemberModel = mongoose_1.default.model('group_member', groupMemberSchema);
59
59
  exports.default = CommunityGroupMemberModel;